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/descriptor.h>
14 #include <google/protobuf/generated_message_reflection.h>
15 #include <google/protobuf/reflection_ops.h>
16 #include <google/protobuf/wire_format.h>
17 // @@protoc_insertion_point(includes)
18 
19 namespace Mysqlx {
20 namespace Notice {
21 
22 namespace {
23 
24 const ::google::protobuf::Descriptor* Frame_descriptor_ = NULL;
25 const ::google::protobuf::internal::GeneratedMessageReflection*
26   Frame_reflection_ = NULL;
27 const ::google::protobuf::EnumDescriptor* Frame_Scope_descriptor_ = NULL;
28 const ::google::protobuf::Descriptor* Warning_descriptor_ = NULL;
29 const ::google::protobuf::internal::GeneratedMessageReflection*
30   Warning_reflection_ = NULL;
31 const ::google::protobuf::EnumDescriptor* Warning_Level_descriptor_ = NULL;
32 const ::google::protobuf::Descriptor* SessionVariableChanged_descriptor_ = NULL;
33 const ::google::protobuf::internal::GeneratedMessageReflection*
34   SessionVariableChanged_reflection_ = NULL;
35 const ::google::protobuf::Descriptor* SessionStateChanged_descriptor_ = NULL;
36 const ::google::protobuf::internal::GeneratedMessageReflection*
37   SessionStateChanged_reflection_ = NULL;
38 const ::google::protobuf::EnumDescriptor* SessionStateChanged_Parameter_descriptor_ = NULL;
39 
40 }  // namespace
41 
42 
protobuf_AssignDesc_mysqlx_5fnotice_2eproto()43 void protobuf_AssignDesc_mysqlx_5fnotice_2eproto() {
44   protobuf_AddDesc_mysqlx_5fnotice_2eproto();
45   const ::google::protobuf::FileDescriptor* file =
46     ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
47       "mysqlx_notice.proto");
48   GOOGLE_CHECK(file != NULL);
49   Frame_descriptor_ = file->message_type(0);
50   static const int Frame_offsets_[3] = {
51     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Frame, type_),
52     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Frame, scope_),
53     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Frame, payload_),
54   };
55   Frame_reflection_ =
56     new ::google::protobuf::internal::GeneratedMessageReflection(
57       Frame_descriptor_,
58       Frame::default_instance_,
59       Frame_offsets_,
60       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Frame, _has_bits_[0]),
61       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Frame, _unknown_fields_),
62       -1,
63       ::google::protobuf::DescriptorPool::generated_pool(),
64       ::google::protobuf::MessageFactory::generated_factory(),
65       sizeof(Frame));
66   Frame_Scope_descriptor_ = Frame_descriptor_->enum_type(0);
67   Warning_descriptor_ = file->message_type(1);
68   static const int Warning_offsets_[3] = {
69     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Warning, level_),
70     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Warning, code_),
71     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Warning, msg_),
72   };
73   Warning_reflection_ =
74     new ::google::protobuf::internal::GeneratedMessageReflection(
75       Warning_descriptor_,
76       Warning::default_instance_,
77       Warning_offsets_,
78       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Warning, _has_bits_[0]),
79       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Warning, _unknown_fields_),
80       -1,
81       ::google::protobuf::DescriptorPool::generated_pool(),
82       ::google::protobuf::MessageFactory::generated_factory(),
83       sizeof(Warning));
84   Warning_Level_descriptor_ = Warning_descriptor_->enum_type(0);
85   SessionVariableChanged_descriptor_ = file->message_type(2);
86   static const int SessionVariableChanged_offsets_[2] = {
87     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionVariableChanged, param_),
88     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionVariableChanged, value_),
89   };
90   SessionVariableChanged_reflection_ =
91     new ::google::protobuf::internal::GeneratedMessageReflection(
92       SessionVariableChanged_descriptor_,
93       SessionVariableChanged::default_instance_,
94       SessionVariableChanged_offsets_,
95       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionVariableChanged, _has_bits_[0]),
96       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionVariableChanged, _unknown_fields_),
97       -1,
98       ::google::protobuf::DescriptorPool::generated_pool(),
99       ::google::protobuf::MessageFactory::generated_factory(),
100       sizeof(SessionVariableChanged));
101   SessionStateChanged_descriptor_ = file->message_type(3);
102   static const int SessionStateChanged_offsets_[2] = {
103     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionStateChanged, param_),
104     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionStateChanged, value_),
105   };
106   SessionStateChanged_reflection_ =
107     new ::google::protobuf::internal::GeneratedMessageReflection(
108       SessionStateChanged_descriptor_,
109       SessionStateChanged::default_instance_,
110       SessionStateChanged_offsets_,
111       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionStateChanged, _has_bits_[0]),
112       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionStateChanged, _unknown_fields_),
113       -1,
114       ::google::protobuf::DescriptorPool::generated_pool(),
115       ::google::protobuf::MessageFactory::generated_factory(),
116       sizeof(SessionStateChanged));
117   SessionStateChanged_Parameter_descriptor_ = SessionStateChanged_descriptor_->enum_type(0);
118 }
119 
120 namespace {
121 
122 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
protobuf_AssignDescriptorsOnce()123 inline void protobuf_AssignDescriptorsOnce() {
124   ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
125                  &protobuf_AssignDesc_mysqlx_5fnotice_2eproto);
126 }
127 
protobuf_RegisterTypes(const::std::string &)128 void protobuf_RegisterTypes(const ::std::string&) {
129   protobuf_AssignDescriptorsOnce();
130   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
131     Frame_descriptor_, &Frame::default_instance());
132   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
133     Warning_descriptor_, &Warning::default_instance());
134   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
135     SessionVariableChanged_descriptor_, &SessionVariableChanged::default_instance());
136   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
137     SessionStateChanged_descriptor_, &SessionStateChanged::default_instance());
138 }
139 
140 }  // namespace
141 
protobuf_ShutdownFile_mysqlx_5fnotice_2eproto()142 void protobuf_ShutdownFile_mysqlx_5fnotice_2eproto() {
143   delete Frame::default_instance_;
144   delete Frame_reflection_;
145   delete Warning::default_instance_;
146   delete Warning_reflection_;
147   delete SessionVariableChanged::default_instance_;
148   delete SessionVariableChanged_reflection_;
149   delete SessionStateChanged::default_instance_;
150   delete SessionStateChanged_reflection_;
151 }
152 
protobuf_AddDesc_mysqlx_5fnotice_2eproto()153 void protobuf_AddDesc_mysqlx_5fnotice_2eproto() {
154   static bool already_here = false;
155   if (already_here) return;
156   already_here = true;
157   GOOGLE_PROTOBUF_VERIFY_VERSION;
158 
159   ::Mysqlx::Datatypes::protobuf_AddDesc_mysqlx_5fdatatypes_2eproto();
160   ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
161     "\n\023mysqlx_notice.proto\022\rMysqlx.Notice\032\026my"
162     "sqlx_datatypes.proto\"y\n\005Frame\022\014\n\004type\030\001 "
163     "\002(\r\0221\n\005scope\030\002 \001(\0162\032.Mysqlx.Notice.Frame"
164     ".Scope:\006GLOBAL\022\017\n\007payload\030\003 \001(\014\"\036\n\005Scope"
165     "\022\n\n\006GLOBAL\020\001\022\t\n\005LOCAL\020\002\"\205\001\n\007Warning\0224\n\005l"
166     "evel\030\001 \001(\0162\034.Mysqlx.Notice.Warning.Level"
167     ":\007WARNING\022\014\n\004code\030\002 \002(\r\022\013\n\003msg\030\003 \002(\t\")\n\005"
168     "Level\022\010\n\004NOTE\020\001\022\013\n\007WARNING\020\002\022\t\n\005ERROR\020\003\""
169     "P\n\026SessionVariableChanged\022\r\n\005param\030\001 \002(\t"
170     "\022\'\n\005value\030\002 \001(\0132\030.Mysqlx.Datatypes.Scala"
171     "r\"\325\002\n\023SessionStateChanged\022;\n\005param\030\001 \002(\016"
172     "2,.Mysqlx.Notice.SessionStateChanged.Par"
173     "ameter\022\'\n\005value\030\002 \001(\0132\030.Mysqlx.Datatypes"
174     ".Scalar\"\327\001\n\tParameter\022\022\n\016CURRENT_SCHEMA\020"
175     "\001\022\023\n\017ACCOUNT_EXPIRED\020\002\022\027\n\023GENERATED_INSE"
176     "RT_ID\020\003\022\021\n\rROWS_AFFECTED\020\004\022\016\n\nROWS_FOUND"
177     "\020\005\022\020\n\014ROWS_MATCHED\020\006\022\021\n\rTRX_COMMITTED\020\007\022"
178     "\022\n\016TRX_ROLLEDBACK\020\t\022\024\n\020PRODUCED_MESSAGE\020"
179     "\n\022\026\n\022CLIENT_ID_ASSIGNED\020\013B\036\n\034com.mysql.c"
180     "j.mysqlx.protobuf", 777);
181   ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
182     "mysqlx_notice.proto", &protobuf_RegisterTypes);
183   Frame::default_instance_ = new Frame();
184   Warning::default_instance_ = new Warning();
185   SessionVariableChanged::default_instance_ = new SessionVariableChanged();
186   SessionStateChanged::default_instance_ = new SessionStateChanged();
187   Frame::default_instance_->InitAsDefaultInstance();
188   Warning::default_instance_->InitAsDefaultInstance();
189   SessionVariableChanged::default_instance_->InitAsDefaultInstance();
190   SessionStateChanged::default_instance_->InitAsDefaultInstance();
191   ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_mysqlx_5fnotice_2eproto);
192 }
193 
194 // Force AddDescriptors() to be called at static initialization time.
195 struct StaticDescriptorInitializer_mysqlx_5fnotice_2eproto {
StaticDescriptorInitializer_mysqlx_5fnotice_2eprotoMysqlx::Notice::StaticDescriptorInitializer_mysqlx_5fnotice_2eproto196   StaticDescriptorInitializer_mysqlx_5fnotice_2eproto() {
197     protobuf_AddDesc_mysqlx_5fnotice_2eproto();
198   }
199 } static_descriptor_initializer_mysqlx_5fnotice_2eproto_;
200 
201 // ===================================================================
202 
Frame_Scope_descriptor()203 const ::google::protobuf::EnumDescriptor* Frame_Scope_descriptor() {
204   protobuf_AssignDescriptorsOnce();
205   return Frame_Scope_descriptor_;
206 }
Frame_Scope_IsValid(int value)207 bool Frame_Scope_IsValid(int value) {
208   switch(value) {
209     case 1:
210     case 2:
211       return true;
212     default:
213       return false;
214   }
215 }
216 
217 #ifndef _MSC_VER
218 const Frame_Scope Frame::GLOBAL;
219 const Frame_Scope Frame::LOCAL;
220 const Frame_Scope Frame::Scope_MIN;
221 const Frame_Scope Frame::Scope_MAX;
222 const int Frame::Scope_ARRAYSIZE;
223 #endif  // _MSC_VER
224 #ifndef _MSC_VER
225 const int Frame::kTypeFieldNumber;
226 const int Frame::kScopeFieldNumber;
227 const int Frame::kPayloadFieldNumber;
228 #endif  // !_MSC_VER
229 
Frame()230 Frame::Frame()
231   : ::google::protobuf::Message() {
232   SharedCtor();
233   // @@protoc_insertion_point(constructor:Mysqlx.Notice.Frame)
234 }
235 
InitAsDefaultInstance()236 void Frame::InitAsDefaultInstance() {
237 }
238 
Frame(const Frame & from)239 Frame::Frame(const Frame& from)
240   : ::google::protobuf::Message() {
241   SharedCtor();
242   MergeFrom(from);
243   // @@protoc_insertion_point(copy_constructor:Mysqlx.Notice.Frame)
244 }
245 
SharedCtor()246 void Frame::SharedCtor() {
247   ::google::protobuf::internal::GetEmptyString();
248   _cached_size_ = 0;
249   type_ = 0u;
250   scope_ = 1;
251   payload_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
252   ::memset(_has_bits_, 0, sizeof(_has_bits_));
253 }
254 
~Frame()255 Frame::~Frame() {
256   // @@protoc_insertion_point(destructor:Mysqlx.Notice.Frame)
257   SharedDtor();
258 }
259 
SharedDtor()260 void Frame::SharedDtor() {
261   if (payload_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
262     delete payload_;
263   }
264   if (this != default_instance_) {
265   }
266 }
267 
SetCachedSize(int size) const268 void Frame::SetCachedSize(int size) const {
269   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
270   _cached_size_ = size;
271   GOOGLE_SAFE_CONCURRENT_WRITES_END();
272 }
descriptor()273 const ::google::protobuf::Descriptor* Frame::descriptor() {
274   protobuf_AssignDescriptorsOnce();
275   return Frame_descriptor_;
276 }
277 
default_instance()278 const Frame& Frame::default_instance() {
279   if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fnotice_2eproto();
280   return *default_instance_;
281 }
282 
283 Frame* Frame::default_instance_ = NULL;
284 
New() const285 Frame* Frame::New() const {
286   return new Frame;
287 }
288 
Clear()289 void Frame::Clear() {
290   if (_has_bits_[0 / 32] & 7) {
291     type_ = 0u;
292     scope_ = 1;
293     if (has_payload()) {
294       if (payload_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
295         payload_->clear();
296       }
297     }
298   }
299   ::memset(_has_bits_, 0, sizeof(_has_bits_));
300   mutable_unknown_fields()->Clear();
301 }
302 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)303 bool Frame::MergePartialFromCodedStream(
304     ::google::protobuf::io::CodedInputStream* input) {
305 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
306   ::google::protobuf::uint32 tag;
307   // @@protoc_insertion_point(parse_start:Mysqlx.Notice.Frame)
308   for (;;) {
309     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
310     tag = p.first;
311     if (!p.second) goto handle_unusual;
312     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
313       // required uint32 type = 1;
314       case 1: {
315         if (tag == 8) {
316           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
317                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
318                  input, &type_)));
319           set_has_type();
320         } else {
321           goto handle_unusual;
322         }
323         if (input->ExpectTag(16)) goto parse_scope;
324         break;
325       }
326 
327       // optional .Mysqlx.Notice.Frame.Scope scope = 2 [default = GLOBAL];
328       case 2: {
329         if (tag == 16) {
330          parse_scope:
331           int value;
332           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
333                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
334                  input, &value)));
335           if (::Mysqlx::Notice::Frame_Scope_IsValid(value)) {
336             set_scope(static_cast< ::Mysqlx::Notice::Frame_Scope >(value));
337           } else {
338             mutable_unknown_fields()->AddVarint(2, value);
339           }
340         } else {
341           goto handle_unusual;
342         }
343         if (input->ExpectTag(26)) goto parse_payload;
344         break;
345       }
346 
347       // optional bytes payload = 3;
348       case 3: {
349         if (tag == 26) {
350          parse_payload:
351           DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
352                 input, this->mutable_payload()));
353         } else {
354           goto handle_unusual;
355         }
356         if (input->ExpectAtEnd()) goto success;
357         break;
358       }
359 
360       default: {
361       handle_unusual:
362         if (tag == 0 ||
363             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
364             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
365           goto success;
366         }
367         DO_(::google::protobuf::internal::WireFormat::SkipField(
368               input, tag, mutable_unknown_fields()));
369         break;
370       }
371     }
372   }
373 success:
374   // @@protoc_insertion_point(parse_success:Mysqlx.Notice.Frame)
375   return true;
376 failure:
377   // @@protoc_insertion_point(parse_failure:Mysqlx.Notice.Frame)
378   return false;
379 #undef DO_
380 }
381 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const382 void Frame::SerializeWithCachedSizes(
383     ::google::protobuf::io::CodedOutputStream* output) const {
384   // @@protoc_insertion_point(serialize_start:Mysqlx.Notice.Frame)
385   // required uint32 type = 1;
386   if (has_type()) {
387     ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->type(), output);
388   }
389 
390   // optional .Mysqlx.Notice.Frame.Scope scope = 2 [default = GLOBAL];
391   if (has_scope()) {
392     ::google::protobuf::internal::WireFormatLite::WriteEnum(
393       2, this->scope(), output);
394   }
395 
396   // optional bytes payload = 3;
397   if (has_payload()) {
398     ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
399       3, this->payload(), output);
400   }
401 
402   if (!unknown_fields().empty()) {
403     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
404         unknown_fields(), output);
405   }
406   // @@protoc_insertion_point(serialize_end:Mysqlx.Notice.Frame)
407 }
408 
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const409 ::google::protobuf::uint8* Frame::SerializeWithCachedSizesToArray(
410     ::google::protobuf::uint8* target) const {
411   // @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Notice.Frame)
412   // required uint32 type = 1;
413   if (has_type()) {
414     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->type(), target);
415   }
416 
417   // optional .Mysqlx.Notice.Frame.Scope scope = 2 [default = GLOBAL];
418   if (has_scope()) {
419     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
420       2, this->scope(), target);
421   }
422 
423   // optional bytes payload = 3;
424   if (has_payload()) {
425     target =
426       ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
427         3, this->payload(), target);
428   }
429 
430   if (!unknown_fields().empty()) {
431     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
432         unknown_fields(), target);
433   }
434   // @@protoc_insertion_point(serialize_to_array_end:Mysqlx.Notice.Frame)
435   return target;
436 }
437 
ByteSize() const438 int Frame::ByteSize() const {
439   int total_size = 0;
440 
441   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
442     // required uint32 type = 1;
443     if (has_type()) {
444       total_size += 1 +
445         ::google::protobuf::internal::WireFormatLite::UInt32Size(
446           this->type());
447     }
448 
449     // optional .Mysqlx.Notice.Frame.Scope scope = 2 [default = GLOBAL];
450     if (has_scope()) {
451       total_size += 1 +
452         ::google::protobuf::internal::WireFormatLite::EnumSize(this->scope());
453     }
454 
455     // optional bytes payload = 3;
456     if (has_payload()) {
457       total_size += 1 +
458         ::google::protobuf::internal::WireFormatLite::BytesSize(
459           this->payload());
460     }
461 
462   }
463   if (!unknown_fields().empty()) {
464     total_size +=
465       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
466         unknown_fields());
467   }
468   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
469   _cached_size_ = total_size;
470   GOOGLE_SAFE_CONCURRENT_WRITES_END();
471   return total_size;
472 }
473 
MergeFrom(const::google::protobuf::Message & from)474 void Frame::MergeFrom(const ::google::protobuf::Message& from) {
475   GOOGLE_CHECK_NE(&from, this);
476   const Frame* source =
477     ::google::protobuf::internal::dynamic_cast_if_available<const Frame*>(
478       &from);
479   if (source == NULL) {
480     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
481   } else {
482     MergeFrom(*source);
483   }
484 }
485 
MergeFrom(const Frame & from)486 void Frame::MergeFrom(const Frame& from) {
487   GOOGLE_CHECK_NE(&from, this);
488   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
489     if (from.has_type()) {
490       set_type(from.type());
491     }
492     if (from.has_scope()) {
493       set_scope(from.scope());
494     }
495     if (from.has_payload()) {
496       set_payload(from.payload());
497     }
498   }
499   mutable_unknown_fields()->MergeFrom(from.unknown_fields());
500 }
501 
CopyFrom(const::google::protobuf::Message & from)502 void Frame::CopyFrom(const ::google::protobuf::Message& from) {
503   if (&from == this) return;
504   Clear();
505   MergeFrom(from);
506 }
507 
CopyFrom(const Frame & from)508 void Frame::CopyFrom(const Frame& from) {
509   if (&from == this) return;
510   Clear();
511   MergeFrom(from);
512 }
513 
IsInitialized() const514 bool Frame::IsInitialized() const {
515   if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
516 
517   return true;
518 }
519 
Swap(Frame * other)520 void Frame::Swap(Frame* other) {
521   if (other != this) {
522     std::swap(type_, other->type_);
523     std::swap(scope_, other->scope_);
524     std::swap(payload_, other->payload_);
525     std::swap(_has_bits_[0], other->_has_bits_[0]);
526     _unknown_fields_.Swap(&other->_unknown_fields_);
527     std::swap(_cached_size_, other->_cached_size_);
528   }
529 }
530 
GetMetadata() const531 ::google::protobuf::Metadata Frame::GetMetadata() const {
532   protobuf_AssignDescriptorsOnce();
533   ::google::protobuf::Metadata metadata;
534   metadata.descriptor = Frame_descriptor_;
535   metadata.reflection = Frame_reflection_;
536   return metadata;
537 }
538 
539 
540 // ===================================================================
541 
Warning_Level_descriptor()542 const ::google::protobuf::EnumDescriptor* Warning_Level_descriptor() {
543   protobuf_AssignDescriptorsOnce();
544   return Warning_Level_descriptor_;
545 }
Warning_Level_IsValid(int value)546 bool Warning_Level_IsValid(int value) {
547   switch(value) {
548     case 1:
549     case 2:
550     case 3:
551       return true;
552     default:
553       return false;
554   }
555 }
556 
557 #ifndef _MSC_VER
558 const Warning_Level Warning::NOTE;
559 const Warning_Level Warning::WARNING;
560 const Warning_Level Warning::ERROR;
561 const Warning_Level Warning::Level_MIN;
562 const Warning_Level Warning::Level_MAX;
563 const int Warning::Level_ARRAYSIZE;
564 #endif  // _MSC_VER
565 #ifndef _MSC_VER
566 const int Warning::kLevelFieldNumber;
567 const int Warning::kCodeFieldNumber;
568 const int Warning::kMsgFieldNumber;
569 #endif  // !_MSC_VER
570 
Warning()571 Warning::Warning()
572   : ::google::protobuf::Message() {
573   SharedCtor();
574   // @@protoc_insertion_point(constructor:Mysqlx.Notice.Warning)
575 }
576 
InitAsDefaultInstance()577 void Warning::InitAsDefaultInstance() {
578 }
579 
Warning(const Warning & from)580 Warning::Warning(const Warning& from)
581   : ::google::protobuf::Message() {
582   SharedCtor();
583   MergeFrom(from);
584   // @@protoc_insertion_point(copy_constructor:Mysqlx.Notice.Warning)
585 }
586 
SharedCtor()587 void Warning::SharedCtor() {
588   ::google::protobuf::internal::GetEmptyString();
589   _cached_size_ = 0;
590   level_ = 2;
591   code_ = 0u;
592   msg_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
593   ::memset(_has_bits_, 0, sizeof(_has_bits_));
594 }
595 
~Warning()596 Warning::~Warning() {
597   // @@protoc_insertion_point(destructor:Mysqlx.Notice.Warning)
598   SharedDtor();
599 }
600 
SharedDtor()601 void Warning::SharedDtor() {
602   if (msg_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
603     delete msg_;
604   }
605   if (this != default_instance_) {
606   }
607 }
608 
SetCachedSize(int size) const609 void Warning::SetCachedSize(int size) const {
610   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
611   _cached_size_ = size;
612   GOOGLE_SAFE_CONCURRENT_WRITES_END();
613 }
descriptor()614 const ::google::protobuf::Descriptor* Warning::descriptor() {
615   protobuf_AssignDescriptorsOnce();
616   return Warning_descriptor_;
617 }
618 
default_instance()619 const Warning& Warning::default_instance() {
620   if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fnotice_2eproto();
621   return *default_instance_;
622 }
623 
624 Warning* Warning::default_instance_ = NULL;
625 
New() const626 Warning* Warning::New() const {
627   return new Warning;
628 }
629 
Clear()630 void Warning::Clear() {
631   if (_has_bits_[0 / 32] & 7) {
632     level_ = 2;
633     code_ = 0u;
634     if (has_msg()) {
635       if (msg_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
636         msg_->clear();
637       }
638     }
639   }
640   ::memset(_has_bits_, 0, sizeof(_has_bits_));
641   mutable_unknown_fields()->Clear();
642 }
643 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)644 bool Warning::MergePartialFromCodedStream(
645     ::google::protobuf::io::CodedInputStream* input) {
646 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
647   ::google::protobuf::uint32 tag;
648   // @@protoc_insertion_point(parse_start:Mysqlx.Notice.Warning)
649   for (;;) {
650     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
651     tag = p.first;
652     if (!p.second) goto handle_unusual;
653     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
654       // optional .Mysqlx.Notice.Warning.Level level = 1 [default = WARNING];
655       case 1: {
656         if (tag == 8) {
657           int value;
658           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
659                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
660                  input, &value)));
661           if (::Mysqlx::Notice::Warning_Level_IsValid(value)) {
662             set_level(static_cast< ::Mysqlx::Notice::Warning_Level >(value));
663           } else {
664             mutable_unknown_fields()->AddVarint(1, value);
665           }
666         } else {
667           goto handle_unusual;
668         }
669         if (input->ExpectTag(16)) goto parse_code;
670         break;
671       }
672 
673       // required uint32 code = 2;
674       case 2: {
675         if (tag == 16) {
676          parse_code:
677           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
678                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
679                  input, &code_)));
680           set_has_code();
681         } else {
682           goto handle_unusual;
683         }
684         if (input->ExpectTag(26)) goto parse_msg;
685         break;
686       }
687 
688       // required string msg = 3;
689       case 3: {
690         if (tag == 26) {
691          parse_msg:
692           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
693                 input, this->mutable_msg()));
694           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
695             this->msg().data(), this->msg().length(),
696             ::google::protobuf::internal::WireFormat::PARSE,
697             "msg");
698         } else {
699           goto handle_unusual;
700         }
701         if (input->ExpectAtEnd()) goto success;
702         break;
703       }
704 
705       default: {
706       handle_unusual:
707         if (tag == 0 ||
708             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
709             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
710           goto success;
711         }
712         DO_(::google::protobuf::internal::WireFormat::SkipField(
713               input, tag, mutable_unknown_fields()));
714         break;
715       }
716     }
717   }
718 success:
719   // @@protoc_insertion_point(parse_success:Mysqlx.Notice.Warning)
720   return true;
721 failure:
722   // @@protoc_insertion_point(parse_failure:Mysqlx.Notice.Warning)
723   return false;
724 #undef DO_
725 }
726 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const727 void Warning::SerializeWithCachedSizes(
728     ::google::protobuf::io::CodedOutputStream* output) const {
729   // @@protoc_insertion_point(serialize_start:Mysqlx.Notice.Warning)
730   // optional .Mysqlx.Notice.Warning.Level level = 1 [default = WARNING];
731   if (has_level()) {
732     ::google::protobuf::internal::WireFormatLite::WriteEnum(
733       1, this->level(), output);
734   }
735 
736   // required uint32 code = 2;
737   if (has_code()) {
738     ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->code(), output);
739   }
740 
741   // required string msg = 3;
742   if (has_msg()) {
743     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
744       this->msg().data(), this->msg().length(),
745       ::google::protobuf::internal::WireFormat::SERIALIZE,
746       "msg");
747     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
748       3, this->msg(), output);
749   }
750 
751   if (!unknown_fields().empty()) {
752     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
753         unknown_fields(), output);
754   }
755   // @@protoc_insertion_point(serialize_end:Mysqlx.Notice.Warning)
756 }
757 
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const758 ::google::protobuf::uint8* Warning::SerializeWithCachedSizesToArray(
759     ::google::protobuf::uint8* target) const {
760   // @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Notice.Warning)
761   // optional .Mysqlx.Notice.Warning.Level level = 1 [default = WARNING];
762   if (has_level()) {
763     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
764       1, this->level(), target);
765   }
766 
767   // required uint32 code = 2;
768   if (has_code()) {
769     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->code(), target);
770   }
771 
772   // required string msg = 3;
773   if (has_msg()) {
774     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
775       this->msg().data(), this->msg().length(),
776       ::google::protobuf::internal::WireFormat::SERIALIZE,
777       "msg");
778     target =
779       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
780         3, this->msg(), target);
781   }
782 
783   if (!unknown_fields().empty()) {
784     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
785         unknown_fields(), target);
786   }
787   // @@protoc_insertion_point(serialize_to_array_end:Mysqlx.Notice.Warning)
788   return target;
789 }
790 
ByteSize() const791 int Warning::ByteSize() const {
792   int total_size = 0;
793 
794   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
795     // optional .Mysqlx.Notice.Warning.Level level = 1 [default = WARNING];
796     if (has_level()) {
797       total_size += 1 +
798         ::google::protobuf::internal::WireFormatLite::EnumSize(this->level());
799     }
800 
801     // required uint32 code = 2;
802     if (has_code()) {
803       total_size += 1 +
804         ::google::protobuf::internal::WireFormatLite::UInt32Size(
805           this->code());
806     }
807 
808     // required string msg = 3;
809     if (has_msg()) {
810       total_size += 1 +
811         ::google::protobuf::internal::WireFormatLite::StringSize(
812           this->msg());
813     }
814 
815   }
816   if (!unknown_fields().empty()) {
817     total_size +=
818       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
819         unknown_fields());
820   }
821   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
822   _cached_size_ = total_size;
823   GOOGLE_SAFE_CONCURRENT_WRITES_END();
824   return total_size;
825 }
826 
MergeFrom(const::google::protobuf::Message & from)827 void Warning::MergeFrom(const ::google::protobuf::Message& from) {
828   GOOGLE_CHECK_NE(&from, this);
829   const Warning* source =
830     ::google::protobuf::internal::dynamic_cast_if_available<const Warning*>(
831       &from);
832   if (source == NULL) {
833     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
834   } else {
835     MergeFrom(*source);
836   }
837 }
838 
MergeFrom(const Warning & from)839 void Warning::MergeFrom(const Warning& from) {
840   GOOGLE_CHECK_NE(&from, this);
841   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
842     if (from.has_level()) {
843       set_level(from.level());
844     }
845     if (from.has_code()) {
846       set_code(from.code());
847     }
848     if (from.has_msg()) {
849       set_msg(from.msg());
850     }
851   }
852   mutable_unknown_fields()->MergeFrom(from.unknown_fields());
853 }
854 
CopyFrom(const::google::protobuf::Message & from)855 void Warning::CopyFrom(const ::google::protobuf::Message& from) {
856   if (&from == this) return;
857   Clear();
858   MergeFrom(from);
859 }
860 
CopyFrom(const Warning & from)861 void Warning::CopyFrom(const Warning& from) {
862   if (&from == this) return;
863   Clear();
864   MergeFrom(from);
865 }
866 
IsInitialized() const867 bool Warning::IsInitialized() const {
868   if ((_has_bits_[0] & 0x00000006) != 0x00000006) return false;
869 
870   return true;
871 }
872 
Swap(Warning * other)873 void Warning::Swap(Warning* other) {
874   if (other != this) {
875     std::swap(level_, other->level_);
876     std::swap(code_, other->code_);
877     std::swap(msg_, other->msg_);
878     std::swap(_has_bits_[0], other->_has_bits_[0]);
879     _unknown_fields_.Swap(&other->_unknown_fields_);
880     std::swap(_cached_size_, other->_cached_size_);
881   }
882 }
883 
GetMetadata() const884 ::google::protobuf::Metadata Warning::GetMetadata() const {
885   protobuf_AssignDescriptorsOnce();
886   ::google::protobuf::Metadata metadata;
887   metadata.descriptor = Warning_descriptor_;
888   metadata.reflection = Warning_reflection_;
889   return metadata;
890 }
891 
892 
893 // ===================================================================
894 
895 #ifndef _MSC_VER
896 const int SessionVariableChanged::kParamFieldNumber;
897 const int SessionVariableChanged::kValueFieldNumber;
898 #endif  // !_MSC_VER
899 
SessionVariableChanged()900 SessionVariableChanged::SessionVariableChanged()
901   : ::google::protobuf::Message() {
902   SharedCtor();
903   // @@protoc_insertion_point(constructor:Mysqlx.Notice.SessionVariableChanged)
904 }
905 
InitAsDefaultInstance()906 void SessionVariableChanged::InitAsDefaultInstance() {
907   value_ = const_cast< ::Mysqlx::Datatypes::Scalar*>(&::Mysqlx::Datatypes::Scalar::default_instance());
908 }
909 
SessionVariableChanged(const SessionVariableChanged & from)910 SessionVariableChanged::SessionVariableChanged(const SessionVariableChanged& from)
911   : ::google::protobuf::Message() {
912   SharedCtor();
913   MergeFrom(from);
914   // @@protoc_insertion_point(copy_constructor:Mysqlx.Notice.SessionVariableChanged)
915 }
916 
SharedCtor()917 void SessionVariableChanged::SharedCtor() {
918   ::google::protobuf::internal::GetEmptyString();
919   _cached_size_ = 0;
920   param_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
921   value_ = NULL;
922   ::memset(_has_bits_, 0, sizeof(_has_bits_));
923 }
924 
~SessionVariableChanged()925 SessionVariableChanged::~SessionVariableChanged() {
926   // @@protoc_insertion_point(destructor:Mysqlx.Notice.SessionVariableChanged)
927   SharedDtor();
928 }
929 
SharedDtor()930 void SessionVariableChanged::SharedDtor() {
931   if (param_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
932     delete param_;
933   }
934   if (this != default_instance_) {
935     delete value_;
936   }
937 }
938 
SetCachedSize(int size) const939 void SessionVariableChanged::SetCachedSize(int size) const {
940   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
941   _cached_size_ = size;
942   GOOGLE_SAFE_CONCURRENT_WRITES_END();
943 }
descriptor()944 const ::google::protobuf::Descriptor* SessionVariableChanged::descriptor() {
945   protobuf_AssignDescriptorsOnce();
946   return SessionVariableChanged_descriptor_;
947 }
948 
default_instance()949 const SessionVariableChanged& SessionVariableChanged::default_instance() {
950   if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fnotice_2eproto();
951   return *default_instance_;
952 }
953 
954 SessionVariableChanged* SessionVariableChanged::default_instance_ = NULL;
955 
New() const956 SessionVariableChanged* SessionVariableChanged::New() const {
957   return new SessionVariableChanged;
958 }
959 
Clear()960 void SessionVariableChanged::Clear() {
961   if (_has_bits_[0 / 32] & 3) {
962     if (has_param()) {
963       if (param_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
964         param_->clear();
965       }
966     }
967     if (has_value()) {
968       if (value_ != NULL) value_->::Mysqlx::Datatypes::Scalar::Clear();
969     }
970   }
971   ::memset(_has_bits_, 0, sizeof(_has_bits_));
972   mutable_unknown_fields()->Clear();
973 }
974 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)975 bool SessionVariableChanged::MergePartialFromCodedStream(
976     ::google::protobuf::io::CodedInputStream* input) {
977 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
978   ::google::protobuf::uint32 tag;
979   // @@protoc_insertion_point(parse_start:Mysqlx.Notice.SessionVariableChanged)
980   for (;;) {
981     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
982     tag = p.first;
983     if (!p.second) goto handle_unusual;
984     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
985       // required string param = 1;
986       case 1: {
987         if (tag == 10) {
988           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
989                 input, this->mutable_param()));
990           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
991             this->param().data(), this->param().length(),
992             ::google::protobuf::internal::WireFormat::PARSE,
993             "param");
994         } else {
995           goto handle_unusual;
996         }
997         if (input->ExpectTag(18)) goto parse_value;
998         break;
999       }
1000 
1001       // optional .Mysqlx.Datatypes.Scalar value = 2;
1002       case 2: {
1003         if (tag == 18) {
1004          parse_value:
1005           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1006                input, mutable_value()));
1007         } else {
1008           goto handle_unusual;
1009         }
1010         if (input->ExpectAtEnd()) goto success;
1011         break;
1012       }
1013 
1014       default: {
1015       handle_unusual:
1016         if (tag == 0 ||
1017             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1018             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1019           goto success;
1020         }
1021         DO_(::google::protobuf::internal::WireFormat::SkipField(
1022               input, tag, mutable_unknown_fields()));
1023         break;
1024       }
1025     }
1026   }
1027 success:
1028   // @@protoc_insertion_point(parse_success:Mysqlx.Notice.SessionVariableChanged)
1029   return true;
1030 failure:
1031   // @@protoc_insertion_point(parse_failure:Mysqlx.Notice.SessionVariableChanged)
1032   return false;
1033 #undef DO_
1034 }
1035 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const1036 void SessionVariableChanged::SerializeWithCachedSizes(
1037     ::google::protobuf::io::CodedOutputStream* output) const {
1038   // @@protoc_insertion_point(serialize_start:Mysqlx.Notice.SessionVariableChanged)
1039   // required string param = 1;
1040   if (has_param()) {
1041     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1042       this->param().data(), this->param().length(),
1043       ::google::protobuf::internal::WireFormat::SERIALIZE,
1044       "param");
1045     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1046       1, this->param(), output);
1047   }
1048 
1049   // optional .Mysqlx.Datatypes.Scalar value = 2;
1050   if (has_value()) {
1051     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1052       2, this->value(), output);
1053   }
1054 
1055   if (!unknown_fields().empty()) {
1056     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1057         unknown_fields(), output);
1058   }
1059   // @@protoc_insertion_point(serialize_end:Mysqlx.Notice.SessionVariableChanged)
1060 }
1061 
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const1062 ::google::protobuf::uint8* SessionVariableChanged::SerializeWithCachedSizesToArray(
1063     ::google::protobuf::uint8* target) const {
1064   // @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Notice.SessionVariableChanged)
1065   // required string param = 1;
1066   if (has_param()) {
1067     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1068       this->param().data(), this->param().length(),
1069       ::google::protobuf::internal::WireFormat::SERIALIZE,
1070       "param");
1071     target =
1072       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1073         1, this->param(), target);
1074   }
1075 
1076   // optional .Mysqlx.Datatypes.Scalar value = 2;
1077   if (has_value()) {
1078     target = ::google::protobuf::internal::WireFormatLite::
1079       WriteMessageNoVirtualToArray(
1080         2, this->value(), target);
1081   }
1082 
1083   if (!unknown_fields().empty()) {
1084     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1085         unknown_fields(), target);
1086   }
1087   // @@protoc_insertion_point(serialize_to_array_end:Mysqlx.Notice.SessionVariableChanged)
1088   return target;
1089 }
1090 
ByteSize() const1091 int SessionVariableChanged::ByteSize() const {
1092   int total_size = 0;
1093 
1094   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1095     // required string param = 1;
1096     if (has_param()) {
1097       total_size += 1 +
1098         ::google::protobuf::internal::WireFormatLite::StringSize(
1099           this->param());
1100     }
1101 
1102     // optional .Mysqlx.Datatypes.Scalar value = 2;
1103     if (has_value()) {
1104       total_size += 1 +
1105         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1106           this->value());
1107     }
1108 
1109   }
1110   if (!unknown_fields().empty()) {
1111     total_size +=
1112       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1113         unknown_fields());
1114   }
1115   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1116   _cached_size_ = total_size;
1117   GOOGLE_SAFE_CONCURRENT_WRITES_END();
1118   return total_size;
1119 }
1120 
MergeFrom(const::google::protobuf::Message & from)1121 void SessionVariableChanged::MergeFrom(const ::google::protobuf::Message& from) {
1122   GOOGLE_CHECK_NE(&from, this);
1123   const SessionVariableChanged* source =
1124     ::google::protobuf::internal::dynamic_cast_if_available<const SessionVariableChanged*>(
1125       &from);
1126   if (source == NULL) {
1127     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1128   } else {
1129     MergeFrom(*source);
1130   }
1131 }
1132 
MergeFrom(const SessionVariableChanged & from)1133 void SessionVariableChanged::MergeFrom(const SessionVariableChanged& from) {
1134   GOOGLE_CHECK_NE(&from, this);
1135   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1136     if (from.has_param()) {
1137       set_param(from.param());
1138     }
1139     if (from.has_value()) {
1140       mutable_value()->::Mysqlx::Datatypes::Scalar::MergeFrom(from.value());
1141     }
1142   }
1143   mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1144 }
1145 
CopyFrom(const::google::protobuf::Message & from)1146 void SessionVariableChanged::CopyFrom(const ::google::protobuf::Message& from) {
1147   if (&from == this) return;
1148   Clear();
1149   MergeFrom(from);
1150 }
1151 
CopyFrom(const SessionVariableChanged & from)1152 void SessionVariableChanged::CopyFrom(const SessionVariableChanged& from) {
1153   if (&from == this) return;
1154   Clear();
1155   MergeFrom(from);
1156 }
1157 
IsInitialized() const1158 bool SessionVariableChanged::IsInitialized() const {
1159   if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
1160 
1161   if (has_value()) {
1162     if (!this->value().IsInitialized()) return false;
1163   }
1164   return true;
1165 }
1166 
Swap(SessionVariableChanged * other)1167 void SessionVariableChanged::Swap(SessionVariableChanged* other) {
1168   if (other != this) {
1169     std::swap(param_, other->param_);
1170     std::swap(value_, other->value_);
1171     std::swap(_has_bits_[0], other->_has_bits_[0]);
1172     _unknown_fields_.Swap(&other->_unknown_fields_);
1173     std::swap(_cached_size_, other->_cached_size_);
1174   }
1175 }
1176 
GetMetadata() const1177 ::google::protobuf::Metadata SessionVariableChanged::GetMetadata() const {
1178   protobuf_AssignDescriptorsOnce();
1179   ::google::protobuf::Metadata metadata;
1180   metadata.descriptor = SessionVariableChanged_descriptor_;
1181   metadata.reflection = SessionVariableChanged_reflection_;
1182   return metadata;
1183 }
1184 
1185 
1186 // ===================================================================
1187 
SessionStateChanged_Parameter_descriptor()1188 const ::google::protobuf::EnumDescriptor* SessionStateChanged_Parameter_descriptor() {
1189   protobuf_AssignDescriptorsOnce();
1190   return SessionStateChanged_Parameter_descriptor_;
1191 }
SessionStateChanged_Parameter_IsValid(int value)1192 bool SessionStateChanged_Parameter_IsValid(int value) {
1193   switch(value) {
1194     case 1:
1195     case 2:
1196     case 3:
1197     case 4:
1198     case 5:
1199     case 6:
1200     case 7:
1201     case 9:
1202     case 10:
1203     case 11:
1204       return true;
1205     default:
1206       return false;
1207   }
1208 }
1209 
1210 #ifndef _MSC_VER
1211 const SessionStateChanged_Parameter SessionStateChanged::CURRENT_SCHEMA;
1212 const SessionStateChanged_Parameter SessionStateChanged::ACCOUNT_EXPIRED;
1213 const SessionStateChanged_Parameter SessionStateChanged::GENERATED_INSERT_ID;
1214 const SessionStateChanged_Parameter SessionStateChanged::ROWS_AFFECTED;
1215 const SessionStateChanged_Parameter SessionStateChanged::ROWS_FOUND;
1216 const SessionStateChanged_Parameter SessionStateChanged::ROWS_MATCHED;
1217 const SessionStateChanged_Parameter SessionStateChanged::TRX_COMMITTED;
1218 const SessionStateChanged_Parameter SessionStateChanged::TRX_ROLLEDBACK;
1219 const SessionStateChanged_Parameter SessionStateChanged::PRODUCED_MESSAGE;
1220 const SessionStateChanged_Parameter SessionStateChanged::CLIENT_ID_ASSIGNED;
1221 const SessionStateChanged_Parameter SessionStateChanged::Parameter_MIN;
1222 const SessionStateChanged_Parameter SessionStateChanged::Parameter_MAX;
1223 const int SessionStateChanged::Parameter_ARRAYSIZE;
1224 #endif  // _MSC_VER
1225 #ifndef _MSC_VER
1226 const int SessionStateChanged::kParamFieldNumber;
1227 const int SessionStateChanged::kValueFieldNumber;
1228 #endif  // !_MSC_VER
1229 
SessionStateChanged()1230 SessionStateChanged::SessionStateChanged()
1231   : ::google::protobuf::Message() {
1232   SharedCtor();
1233   // @@protoc_insertion_point(constructor:Mysqlx.Notice.SessionStateChanged)
1234 }
1235 
InitAsDefaultInstance()1236 void SessionStateChanged::InitAsDefaultInstance() {
1237   value_ = const_cast< ::Mysqlx::Datatypes::Scalar*>(&::Mysqlx::Datatypes::Scalar::default_instance());
1238 }
1239 
SessionStateChanged(const SessionStateChanged & from)1240 SessionStateChanged::SessionStateChanged(const SessionStateChanged& from)
1241   : ::google::protobuf::Message() {
1242   SharedCtor();
1243   MergeFrom(from);
1244   // @@protoc_insertion_point(copy_constructor:Mysqlx.Notice.SessionStateChanged)
1245 }
1246 
SharedCtor()1247 void SessionStateChanged::SharedCtor() {
1248   _cached_size_ = 0;
1249   param_ = 1;
1250   value_ = NULL;
1251   ::memset(_has_bits_, 0, sizeof(_has_bits_));
1252 }
1253 
~SessionStateChanged()1254 SessionStateChanged::~SessionStateChanged() {
1255   // @@protoc_insertion_point(destructor:Mysqlx.Notice.SessionStateChanged)
1256   SharedDtor();
1257 }
1258 
SharedDtor()1259 void SessionStateChanged::SharedDtor() {
1260   if (this != default_instance_) {
1261     delete value_;
1262   }
1263 }
1264 
SetCachedSize(int size) const1265 void SessionStateChanged::SetCachedSize(int size) const {
1266   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1267   _cached_size_ = size;
1268   GOOGLE_SAFE_CONCURRENT_WRITES_END();
1269 }
descriptor()1270 const ::google::protobuf::Descriptor* SessionStateChanged::descriptor() {
1271   protobuf_AssignDescriptorsOnce();
1272   return SessionStateChanged_descriptor_;
1273 }
1274 
default_instance()1275 const SessionStateChanged& SessionStateChanged::default_instance() {
1276   if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fnotice_2eproto();
1277   return *default_instance_;
1278 }
1279 
1280 SessionStateChanged* SessionStateChanged::default_instance_ = NULL;
1281 
New() const1282 SessionStateChanged* SessionStateChanged::New() const {
1283   return new SessionStateChanged;
1284 }
1285 
Clear()1286 void SessionStateChanged::Clear() {
1287   if (_has_bits_[0 / 32] & 3) {
1288     param_ = 1;
1289     if (has_value()) {
1290       if (value_ != NULL) value_->::Mysqlx::Datatypes::Scalar::Clear();
1291     }
1292   }
1293   ::memset(_has_bits_, 0, sizeof(_has_bits_));
1294   mutable_unknown_fields()->Clear();
1295 }
1296 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)1297 bool SessionStateChanged::MergePartialFromCodedStream(
1298     ::google::protobuf::io::CodedInputStream* input) {
1299 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1300   ::google::protobuf::uint32 tag;
1301   // @@protoc_insertion_point(parse_start:Mysqlx.Notice.SessionStateChanged)
1302   for (;;) {
1303     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1304     tag = p.first;
1305     if (!p.second) goto handle_unusual;
1306     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1307       // required .Mysqlx.Notice.SessionStateChanged.Parameter param = 1;
1308       case 1: {
1309         if (tag == 8) {
1310           int value;
1311           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1312                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1313                  input, &value)));
1314           if (::Mysqlx::Notice::SessionStateChanged_Parameter_IsValid(value)) {
1315             set_param(static_cast< ::Mysqlx::Notice::SessionStateChanged_Parameter >(value));
1316           } else {
1317             mutable_unknown_fields()->AddVarint(1, value);
1318           }
1319         } else {
1320           goto handle_unusual;
1321         }
1322         if (input->ExpectTag(18)) goto parse_value;
1323         break;
1324       }
1325 
1326       // optional .Mysqlx.Datatypes.Scalar value = 2;
1327       case 2: {
1328         if (tag == 18) {
1329          parse_value:
1330           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1331                input, mutable_value()));
1332         } else {
1333           goto handle_unusual;
1334         }
1335         if (input->ExpectAtEnd()) goto success;
1336         break;
1337       }
1338 
1339       default: {
1340       handle_unusual:
1341         if (tag == 0 ||
1342             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1343             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1344           goto success;
1345         }
1346         DO_(::google::protobuf::internal::WireFormat::SkipField(
1347               input, tag, mutable_unknown_fields()));
1348         break;
1349       }
1350     }
1351   }
1352 success:
1353   // @@protoc_insertion_point(parse_success:Mysqlx.Notice.SessionStateChanged)
1354   return true;
1355 failure:
1356   // @@protoc_insertion_point(parse_failure:Mysqlx.Notice.SessionStateChanged)
1357   return false;
1358 #undef DO_
1359 }
1360 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const1361 void SessionStateChanged::SerializeWithCachedSizes(
1362     ::google::protobuf::io::CodedOutputStream* output) const {
1363   // @@protoc_insertion_point(serialize_start:Mysqlx.Notice.SessionStateChanged)
1364   // required .Mysqlx.Notice.SessionStateChanged.Parameter param = 1;
1365   if (has_param()) {
1366     ::google::protobuf::internal::WireFormatLite::WriteEnum(
1367       1, this->param(), output);
1368   }
1369 
1370   // optional .Mysqlx.Datatypes.Scalar value = 2;
1371   if (has_value()) {
1372     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1373       2, this->value(), output);
1374   }
1375 
1376   if (!unknown_fields().empty()) {
1377     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1378         unknown_fields(), output);
1379   }
1380   // @@protoc_insertion_point(serialize_end:Mysqlx.Notice.SessionStateChanged)
1381 }
1382 
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const1383 ::google::protobuf::uint8* SessionStateChanged::SerializeWithCachedSizesToArray(
1384     ::google::protobuf::uint8* target) const {
1385   // @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Notice.SessionStateChanged)
1386   // required .Mysqlx.Notice.SessionStateChanged.Parameter param = 1;
1387   if (has_param()) {
1388     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1389       1, this->param(), target);
1390   }
1391 
1392   // optional .Mysqlx.Datatypes.Scalar value = 2;
1393   if (has_value()) {
1394     target = ::google::protobuf::internal::WireFormatLite::
1395       WriteMessageNoVirtualToArray(
1396         2, this->value(), target);
1397   }
1398 
1399   if (!unknown_fields().empty()) {
1400     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1401         unknown_fields(), target);
1402   }
1403   // @@protoc_insertion_point(serialize_to_array_end:Mysqlx.Notice.SessionStateChanged)
1404   return target;
1405 }
1406 
ByteSize() const1407 int SessionStateChanged::ByteSize() const {
1408   int total_size = 0;
1409 
1410   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1411     // required .Mysqlx.Notice.SessionStateChanged.Parameter param = 1;
1412     if (has_param()) {
1413       total_size += 1 +
1414         ::google::protobuf::internal::WireFormatLite::EnumSize(this->param());
1415     }
1416 
1417     // optional .Mysqlx.Datatypes.Scalar value = 2;
1418     if (has_value()) {
1419       total_size += 1 +
1420         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1421           this->value());
1422     }
1423 
1424   }
1425   if (!unknown_fields().empty()) {
1426     total_size +=
1427       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1428         unknown_fields());
1429   }
1430   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1431   _cached_size_ = total_size;
1432   GOOGLE_SAFE_CONCURRENT_WRITES_END();
1433   return total_size;
1434 }
1435 
MergeFrom(const::google::protobuf::Message & from)1436 void SessionStateChanged::MergeFrom(const ::google::protobuf::Message& from) {
1437   GOOGLE_CHECK_NE(&from, this);
1438   const SessionStateChanged* source =
1439     ::google::protobuf::internal::dynamic_cast_if_available<const SessionStateChanged*>(
1440       &from);
1441   if (source == NULL) {
1442     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1443   } else {
1444     MergeFrom(*source);
1445   }
1446 }
1447 
MergeFrom(const SessionStateChanged & from)1448 void SessionStateChanged::MergeFrom(const SessionStateChanged& from) {
1449   GOOGLE_CHECK_NE(&from, this);
1450   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1451     if (from.has_param()) {
1452       set_param(from.param());
1453     }
1454     if (from.has_value()) {
1455       mutable_value()->::Mysqlx::Datatypes::Scalar::MergeFrom(from.value());
1456     }
1457   }
1458   mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1459 }
1460 
CopyFrom(const::google::protobuf::Message & from)1461 void SessionStateChanged::CopyFrom(const ::google::protobuf::Message& from) {
1462   if (&from == this) return;
1463   Clear();
1464   MergeFrom(from);
1465 }
1466 
CopyFrom(const SessionStateChanged & from)1467 void SessionStateChanged::CopyFrom(const SessionStateChanged& from) {
1468   if (&from == this) return;
1469   Clear();
1470   MergeFrom(from);
1471 }
1472 
IsInitialized() const1473 bool SessionStateChanged::IsInitialized() const {
1474   if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
1475 
1476   if (has_value()) {
1477     if (!this->value().IsInitialized()) return false;
1478   }
1479   return true;
1480 }
1481 
Swap(SessionStateChanged * other)1482 void SessionStateChanged::Swap(SessionStateChanged* other) {
1483   if (other != this) {
1484     std::swap(param_, other->param_);
1485     std::swap(value_, other->value_);
1486     std::swap(_has_bits_[0], other->_has_bits_[0]);
1487     _unknown_fields_.Swap(&other->_unknown_fields_);
1488     std::swap(_cached_size_, other->_cached_size_);
1489   }
1490 }
1491 
GetMetadata() const1492 ::google::protobuf::Metadata SessionStateChanged::GetMetadata() const {
1493   protobuf_AssignDescriptorsOnce();
1494   ::google::protobuf::Metadata metadata;
1495   metadata.descriptor = SessionStateChanged_descriptor_;
1496   metadata.reflection = SessionStateChanged_reflection_;
1497   return metadata;
1498 }
1499 
1500 
1501 // @@protoc_insertion_point(namespace_scope)
1502 
1503 }  // namespace Notice
1504 }  // namespace Mysqlx
1505 
1506 // @@protoc_insertion_point(global_scope)
1507