1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: mysqlx_notice.proto
3 
4 #ifndef PROTOBUF_mysqlx_5fnotice_2eproto__INCLUDED
5 #define PROTOBUF_mysqlx_5fnotice_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 2006000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers.  Please update
14 #error your headers.
15 #endif
16 #if 2006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers.  Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
22 #include <google/protobuf/generated_message_util.h>
23 #include <google/protobuf/message_lite.h>
24 #include <google/protobuf/repeated_field.h>
25 #include <google/protobuf/extension_set.h>
26 #include "mysqlx_datatypes.pb.h"
27 // @@protoc_insertion_point(includes)
28 
29 namespace Mysqlx {
30 namespace Notice {
31 
32 // Internal implementation detail -- do not call these.
33 void  protobuf_AddDesc_mysqlx_5fnotice_2eproto();
34 void protobuf_AssignDesc_mysqlx_5fnotice_2eproto();
35 void protobuf_ShutdownFile_mysqlx_5fnotice_2eproto();
36 
37 class Frame;
38 class Warning;
39 class SessionVariableChanged;
40 class SessionStateChanged;
41 
42 enum Frame_Scope {
43   Frame_Scope_GLOBAL = 1,
44   Frame_Scope_LOCAL = 2
45 };
46 bool Frame_Scope_IsValid(int value);
47 const Frame_Scope Frame_Scope_Scope_MIN = Frame_Scope_GLOBAL;
48 const Frame_Scope Frame_Scope_Scope_MAX = Frame_Scope_LOCAL;
49 const int Frame_Scope_Scope_ARRAYSIZE = Frame_Scope_Scope_MAX + 1;
50 
51 enum Warning_Level {
52   Warning_Level_NOTE = 1,
53   Warning_Level_WARNING = 2,
54   Warning_Level_ERROR = 3
55 };
56 bool Warning_Level_IsValid(int value);
57 const Warning_Level Warning_Level_Level_MIN = Warning_Level_NOTE;
58 const Warning_Level Warning_Level_Level_MAX = Warning_Level_ERROR;
59 const int Warning_Level_Level_ARRAYSIZE = Warning_Level_Level_MAX + 1;
60 
61 enum SessionStateChanged_Parameter {
62   SessionStateChanged_Parameter_CURRENT_SCHEMA = 1,
63   SessionStateChanged_Parameter_ACCOUNT_EXPIRED = 2,
64   SessionStateChanged_Parameter_GENERATED_INSERT_ID = 3,
65   SessionStateChanged_Parameter_ROWS_AFFECTED = 4,
66   SessionStateChanged_Parameter_ROWS_FOUND = 5,
67   SessionStateChanged_Parameter_ROWS_MATCHED = 6,
68   SessionStateChanged_Parameter_TRX_COMMITTED = 7,
69   SessionStateChanged_Parameter_TRX_ROLLEDBACK = 9,
70   SessionStateChanged_Parameter_PRODUCED_MESSAGE = 10,
71   SessionStateChanged_Parameter_CLIENT_ID_ASSIGNED = 11
72 };
73 bool SessionStateChanged_Parameter_IsValid(int value);
74 const SessionStateChanged_Parameter SessionStateChanged_Parameter_Parameter_MIN = SessionStateChanged_Parameter_CURRENT_SCHEMA;
75 const SessionStateChanged_Parameter SessionStateChanged_Parameter_Parameter_MAX = SessionStateChanged_Parameter_CLIENT_ID_ASSIGNED;
76 const int SessionStateChanged_Parameter_Parameter_ARRAYSIZE = SessionStateChanged_Parameter_Parameter_MAX + 1;
77 
78 // ===================================================================
79 
80 class Frame : public ::google::protobuf::MessageLite {
81  public:
82   Frame();
83   virtual ~Frame();
84 
85   Frame(const Frame& from);
86 
87   inline Frame& operator=(const Frame& from) {
88     CopyFrom(from);
89     return *this;
90   }
91 
unknown_fields()92   inline const ::std::string& unknown_fields() const {
93     return _unknown_fields_;
94   }
95 
mutable_unknown_fields()96   inline ::std::string* mutable_unknown_fields() {
97     return &_unknown_fields_;
98   }
99 
100   static const Frame& default_instance();
101 
102   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
103   // Returns the internal default instance pointer. This function can
104   // return NULL thus should not be used by the user. This is intended
105   // for Protobuf internal code. Please use default_instance() declared
106   // above instead.
internal_default_instance()107   static inline const Frame* internal_default_instance() {
108     return default_instance_;
109   }
110   #endif
111 
112   void Swap(Frame* other);
113 
114   // implements Message ----------------------------------------------
115 
116   Frame* New() const;
117   void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
118   void CopyFrom(const Frame& from);
119   void MergeFrom(const Frame& from);
120   void Clear();
121   bool IsInitialized() const;
122 
123   int ByteSize() const;
124   bool MergePartialFromCodedStream(
125       ::google::protobuf::io::CodedInputStream* input);
126   void SerializeWithCachedSizes(
127       ::google::protobuf::io::CodedOutputStream* output) const;
128   void DiscardUnknownFields();
GetCachedSize()129   int GetCachedSize() const { return _cached_size_; }
130   private:
131   void SharedCtor();
132   void SharedDtor();
133   void SetCachedSize(int size) const;
134   public:
135   ::std::string GetTypeName() const;
136 
137   // nested types ----------------------------------------------------
138 
139   typedef Frame_Scope Scope;
140   static const Scope GLOBAL = Frame_Scope_GLOBAL;
141   static const Scope LOCAL = Frame_Scope_LOCAL;
Scope_IsValid(int value)142   static inline bool Scope_IsValid(int value) {
143     return Frame_Scope_IsValid(value);
144   }
145   static const Scope Scope_MIN =
146     Frame_Scope_Scope_MIN;
147   static const Scope Scope_MAX =
148     Frame_Scope_Scope_MAX;
149   static const int Scope_ARRAYSIZE =
150     Frame_Scope_Scope_ARRAYSIZE;
151 
152   // accessors -------------------------------------------------------
153 
154   // required uint32 type = 1;
155   inline bool has_type() const;
156   inline void clear_type();
157   static const int kTypeFieldNumber = 1;
158   inline ::google::protobuf::uint32 type() const;
159   inline void set_type(::google::protobuf::uint32 value);
160 
161   // optional .Mysqlx.Notice.Frame.Scope scope = 2 [default = GLOBAL];
162   inline bool has_scope() const;
163   inline void clear_scope();
164   static const int kScopeFieldNumber = 2;
165   inline ::Mysqlx::Notice::Frame_Scope scope() const;
166   inline void set_scope(::Mysqlx::Notice::Frame_Scope value);
167 
168   // optional bytes payload = 3;
169   inline bool has_payload() const;
170   inline void clear_payload();
171   static const int kPayloadFieldNumber = 3;
172   inline const ::std::string& payload() const;
173   inline void set_payload(const ::std::string& value);
174   inline void set_payload(const char* value);
175   inline void set_payload(const void* value, size_t size);
176   inline ::std::string* mutable_payload();
177   inline ::std::string* release_payload();
178   inline void set_allocated_payload(::std::string* payload);
179 
180   // @@protoc_insertion_point(class_scope:Mysqlx.Notice.Frame)
181  private:
182   inline void set_has_type();
183   inline void clear_has_type();
184   inline void set_has_scope();
185   inline void clear_has_scope();
186   inline void set_has_payload();
187   inline void clear_has_payload();
188 
189   ::std::string _unknown_fields_;
190 
191   ::google::protobuf::uint32 _has_bits_[1];
192   mutable int _cached_size_;
193   ::google::protobuf::uint32 type_;
194   int scope_;
195   ::std::string* payload_;
196   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
197   friend void  protobuf_AddDesc_mysqlx_5fnotice_2eproto_impl();
198   #else
199   friend void  protobuf_AddDesc_mysqlx_5fnotice_2eproto();
200   #endif
201   friend void protobuf_AssignDesc_mysqlx_5fnotice_2eproto();
202   friend void protobuf_ShutdownFile_mysqlx_5fnotice_2eproto();
203 
204   void InitAsDefaultInstance();
205   static Frame* default_instance_;
206 };
207 // -------------------------------------------------------------------
208 
209 class Warning : public ::google::protobuf::MessageLite {
210  public:
211   Warning();
212   virtual ~Warning();
213 
214   Warning(const Warning& from);
215 
216   inline Warning& operator=(const Warning& from) {
217     CopyFrom(from);
218     return *this;
219   }
220 
unknown_fields()221   inline const ::std::string& unknown_fields() const {
222     return _unknown_fields_;
223   }
224 
mutable_unknown_fields()225   inline ::std::string* mutable_unknown_fields() {
226     return &_unknown_fields_;
227   }
228 
229   static const Warning& default_instance();
230 
231   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
232   // Returns the internal default instance pointer. This function can
233   // return NULL thus should not be used by the user. This is intended
234   // for Protobuf internal code. Please use default_instance() declared
235   // above instead.
internal_default_instance()236   static inline const Warning* internal_default_instance() {
237     return default_instance_;
238   }
239   #endif
240 
241   void Swap(Warning* other);
242 
243   // implements Message ----------------------------------------------
244 
245   Warning* New() const;
246   void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
247   void CopyFrom(const Warning& from);
248   void MergeFrom(const Warning& from);
249   void Clear();
250   bool IsInitialized() const;
251 
252   int ByteSize() const;
253   bool MergePartialFromCodedStream(
254       ::google::protobuf::io::CodedInputStream* input);
255   void SerializeWithCachedSizes(
256       ::google::protobuf::io::CodedOutputStream* output) const;
257   void DiscardUnknownFields();
GetCachedSize()258   int GetCachedSize() const { return _cached_size_; }
259   private:
260   void SharedCtor();
261   void SharedDtor();
262   void SetCachedSize(int size) const;
263   public:
264   ::std::string GetTypeName() const;
265 
266   // nested types ----------------------------------------------------
267 
268   typedef Warning_Level Level;
269   static const Level NOTE = Warning_Level_NOTE;
270   static const Level WARNING = Warning_Level_WARNING;
271   static const Level ERROR = Warning_Level_ERROR;
Level_IsValid(int value)272   static inline bool Level_IsValid(int value) {
273     return Warning_Level_IsValid(value);
274   }
275   static const Level Level_MIN =
276     Warning_Level_Level_MIN;
277   static const Level Level_MAX =
278     Warning_Level_Level_MAX;
279   static const int Level_ARRAYSIZE =
280     Warning_Level_Level_ARRAYSIZE;
281 
282   // accessors -------------------------------------------------------
283 
284   // optional .Mysqlx.Notice.Warning.Level level = 1 [default = WARNING];
285   inline bool has_level() const;
286   inline void clear_level();
287   static const int kLevelFieldNumber = 1;
288   inline ::Mysqlx::Notice::Warning_Level level() const;
289   inline void set_level(::Mysqlx::Notice::Warning_Level value);
290 
291   // required uint32 code = 2;
292   inline bool has_code() const;
293   inline void clear_code();
294   static const int kCodeFieldNumber = 2;
295   inline ::google::protobuf::uint32 code() const;
296   inline void set_code(::google::protobuf::uint32 value);
297 
298   // required string msg = 3;
299   inline bool has_msg() const;
300   inline void clear_msg();
301   static const int kMsgFieldNumber = 3;
302   inline const ::std::string& msg() const;
303   inline void set_msg(const ::std::string& value);
304   inline void set_msg(const char* value);
305   inline void set_msg(const char* value, size_t size);
306   inline ::std::string* mutable_msg();
307   inline ::std::string* release_msg();
308   inline void set_allocated_msg(::std::string* msg);
309 
310   // @@protoc_insertion_point(class_scope:Mysqlx.Notice.Warning)
311  private:
312   inline void set_has_level();
313   inline void clear_has_level();
314   inline void set_has_code();
315   inline void clear_has_code();
316   inline void set_has_msg();
317   inline void clear_has_msg();
318 
319   ::std::string _unknown_fields_;
320 
321   ::google::protobuf::uint32 _has_bits_[1];
322   mutable int _cached_size_;
323   int level_;
324   ::google::protobuf::uint32 code_;
325   ::std::string* msg_;
326   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
327   friend void  protobuf_AddDesc_mysqlx_5fnotice_2eproto_impl();
328   #else
329   friend void  protobuf_AddDesc_mysqlx_5fnotice_2eproto();
330   #endif
331   friend void protobuf_AssignDesc_mysqlx_5fnotice_2eproto();
332   friend void protobuf_ShutdownFile_mysqlx_5fnotice_2eproto();
333 
334   void InitAsDefaultInstance();
335   static Warning* default_instance_;
336 };
337 // -------------------------------------------------------------------
338 
339 class SessionVariableChanged : public ::google::protobuf::MessageLite {
340  public:
341   SessionVariableChanged();
342   virtual ~SessionVariableChanged();
343 
344   SessionVariableChanged(const SessionVariableChanged& from);
345 
346   inline SessionVariableChanged& operator=(const SessionVariableChanged& from) {
347     CopyFrom(from);
348     return *this;
349   }
350 
unknown_fields()351   inline const ::std::string& unknown_fields() const {
352     return _unknown_fields_;
353   }
354 
mutable_unknown_fields()355   inline ::std::string* mutable_unknown_fields() {
356     return &_unknown_fields_;
357   }
358 
359   static const SessionVariableChanged& default_instance();
360 
361   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
362   // Returns the internal default instance pointer. This function can
363   // return NULL thus should not be used by the user. This is intended
364   // for Protobuf internal code. Please use default_instance() declared
365   // above instead.
internal_default_instance()366   static inline const SessionVariableChanged* internal_default_instance() {
367     return default_instance_;
368   }
369   #endif
370 
371   void Swap(SessionVariableChanged* other);
372 
373   // implements Message ----------------------------------------------
374 
375   SessionVariableChanged* New() const;
376   void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
377   void CopyFrom(const SessionVariableChanged& from);
378   void MergeFrom(const SessionVariableChanged& from);
379   void Clear();
380   bool IsInitialized() const;
381 
382   int ByteSize() const;
383   bool MergePartialFromCodedStream(
384       ::google::protobuf::io::CodedInputStream* input);
385   void SerializeWithCachedSizes(
386       ::google::protobuf::io::CodedOutputStream* output) const;
387   void DiscardUnknownFields();
GetCachedSize()388   int GetCachedSize() const { return _cached_size_; }
389   private:
390   void SharedCtor();
391   void SharedDtor();
392   void SetCachedSize(int size) const;
393   public:
394   ::std::string GetTypeName() const;
395 
396   // nested types ----------------------------------------------------
397 
398   // accessors -------------------------------------------------------
399 
400   // required string param = 1;
401   inline bool has_param() const;
402   inline void clear_param();
403   static const int kParamFieldNumber = 1;
404   inline const ::std::string& param() const;
405   inline void set_param(const ::std::string& value);
406   inline void set_param(const char* value);
407   inline void set_param(const char* value, size_t size);
408   inline ::std::string* mutable_param();
409   inline ::std::string* release_param();
410   inline void set_allocated_param(::std::string* param);
411 
412   // optional .Mysqlx.Datatypes.Scalar value = 2;
413   inline bool has_value() const;
414   inline void clear_value();
415   static const int kValueFieldNumber = 2;
416   inline const ::Mysqlx::Datatypes::Scalar& value() const;
417   inline ::Mysqlx::Datatypes::Scalar* mutable_value();
418   inline ::Mysqlx::Datatypes::Scalar* release_value();
419   inline void set_allocated_value(::Mysqlx::Datatypes::Scalar* value);
420 
421   // @@protoc_insertion_point(class_scope:Mysqlx.Notice.SessionVariableChanged)
422  private:
423   inline void set_has_param();
424   inline void clear_has_param();
425   inline void set_has_value();
426   inline void clear_has_value();
427 
428   ::std::string _unknown_fields_;
429 
430   ::google::protobuf::uint32 _has_bits_[1];
431   mutable int _cached_size_;
432   ::std::string* param_;
433   ::Mysqlx::Datatypes::Scalar* value_;
434   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
435   friend void  protobuf_AddDesc_mysqlx_5fnotice_2eproto_impl();
436   #else
437   friend void  protobuf_AddDesc_mysqlx_5fnotice_2eproto();
438   #endif
439   friend void protobuf_AssignDesc_mysqlx_5fnotice_2eproto();
440   friend void protobuf_ShutdownFile_mysqlx_5fnotice_2eproto();
441 
442   void InitAsDefaultInstance();
443   static SessionVariableChanged* default_instance_;
444 };
445 // -------------------------------------------------------------------
446 
447 class SessionStateChanged : public ::google::protobuf::MessageLite {
448  public:
449   SessionStateChanged();
450   virtual ~SessionStateChanged();
451 
452   SessionStateChanged(const SessionStateChanged& from);
453 
454   inline SessionStateChanged& operator=(const SessionStateChanged& from) {
455     CopyFrom(from);
456     return *this;
457   }
458 
unknown_fields()459   inline const ::std::string& unknown_fields() const {
460     return _unknown_fields_;
461   }
462 
mutable_unknown_fields()463   inline ::std::string* mutable_unknown_fields() {
464     return &_unknown_fields_;
465   }
466 
467   static const SessionStateChanged& default_instance();
468 
469   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
470   // Returns the internal default instance pointer. This function can
471   // return NULL thus should not be used by the user. This is intended
472   // for Protobuf internal code. Please use default_instance() declared
473   // above instead.
internal_default_instance()474   static inline const SessionStateChanged* internal_default_instance() {
475     return default_instance_;
476   }
477   #endif
478 
479   void Swap(SessionStateChanged* other);
480 
481   // implements Message ----------------------------------------------
482 
483   SessionStateChanged* New() const;
484   void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
485   void CopyFrom(const SessionStateChanged& from);
486   void MergeFrom(const SessionStateChanged& from);
487   void Clear();
488   bool IsInitialized() const;
489 
490   int ByteSize() const;
491   bool MergePartialFromCodedStream(
492       ::google::protobuf::io::CodedInputStream* input);
493   void SerializeWithCachedSizes(
494       ::google::protobuf::io::CodedOutputStream* output) const;
495   void DiscardUnknownFields();
GetCachedSize()496   int GetCachedSize() const { return _cached_size_; }
497   private:
498   void SharedCtor();
499   void SharedDtor();
500   void SetCachedSize(int size) const;
501   public:
502   ::std::string GetTypeName() const;
503 
504   // nested types ----------------------------------------------------
505 
506   typedef SessionStateChanged_Parameter Parameter;
507   static const Parameter CURRENT_SCHEMA = SessionStateChanged_Parameter_CURRENT_SCHEMA;
508   static const Parameter ACCOUNT_EXPIRED = SessionStateChanged_Parameter_ACCOUNT_EXPIRED;
509   static const Parameter GENERATED_INSERT_ID = SessionStateChanged_Parameter_GENERATED_INSERT_ID;
510   static const Parameter ROWS_AFFECTED = SessionStateChanged_Parameter_ROWS_AFFECTED;
511   static const Parameter ROWS_FOUND = SessionStateChanged_Parameter_ROWS_FOUND;
512   static const Parameter ROWS_MATCHED = SessionStateChanged_Parameter_ROWS_MATCHED;
513   static const Parameter TRX_COMMITTED = SessionStateChanged_Parameter_TRX_COMMITTED;
514   static const Parameter TRX_ROLLEDBACK = SessionStateChanged_Parameter_TRX_ROLLEDBACK;
515   static const Parameter PRODUCED_MESSAGE = SessionStateChanged_Parameter_PRODUCED_MESSAGE;
516   static const Parameter CLIENT_ID_ASSIGNED = SessionStateChanged_Parameter_CLIENT_ID_ASSIGNED;
Parameter_IsValid(int value)517   static inline bool Parameter_IsValid(int value) {
518     return SessionStateChanged_Parameter_IsValid(value);
519   }
520   static const Parameter Parameter_MIN =
521     SessionStateChanged_Parameter_Parameter_MIN;
522   static const Parameter Parameter_MAX =
523     SessionStateChanged_Parameter_Parameter_MAX;
524   static const int Parameter_ARRAYSIZE =
525     SessionStateChanged_Parameter_Parameter_ARRAYSIZE;
526 
527   // accessors -------------------------------------------------------
528 
529   // required .Mysqlx.Notice.SessionStateChanged.Parameter param = 1;
530   inline bool has_param() const;
531   inline void clear_param();
532   static const int kParamFieldNumber = 1;
533   inline ::Mysqlx::Notice::SessionStateChanged_Parameter param() const;
534   inline void set_param(::Mysqlx::Notice::SessionStateChanged_Parameter value);
535 
536   // optional .Mysqlx.Datatypes.Scalar value = 2;
537   inline bool has_value() const;
538   inline void clear_value();
539   static const int kValueFieldNumber = 2;
540   inline const ::Mysqlx::Datatypes::Scalar& value() const;
541   inline ::Mysqlx::Datatypes::Scalar* mutable_value();
542   inline ::Mysqlx::Datatypes::Scalar* release_value();
543   inline void set_allocated_value(::Mysqlx::Datatypes::Scalar* value);
544 
545   // @@protoc_insertion_point(class_scope:Mysqlx.Notice.SessionStateChanged)
546  private:
547   inline void set_has_param();
548   inline void clear_has_param();
549   inline void set_has_value();
550   inline void clear_has_value();
551 
552   ::std::string _unknown_fields_;
553 
554   ::google::protobuf::uint32 _has_bits_[1];
555   mutable int _cached_size_;
556   ::Mysqlx::Datatypes::Scalar* value_;
557   int param_;
558   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
559   friend void  protobuf_AddDesc_mysqlx_5fnotice_2eproto_impl();
560   #else
561   friend void  protobuf_AddDesc_mysqlx_5fnotice_2eproto();
562   #endif
563   friend void protobuf_AssignDesc_mysqlx_5fnotice_2eproto();
564   friend void protobuf_ShutdownFile_mysqlx_5fnotice_2eproto();
565 
566   void InitAsDefaultInstance();
567   static SessionStateChanged* default_instance_;
568 };
569 // ===================================================================
570 
571 
572 // ===================================================================
573 
574 // Frame
575 
576 // required uint32 type = 1;
has_type()577 inline bool Frame::has_type() const {
578   return (_has_bits_[0] & 0x00000001u) != 0;
579 }
set_has_type()580 inline void Frame::set_has_type() {
581   _has_bits_[0] |= 0x00000001u;
582 }
clear_has_type()583 inline void Frame::clear_has_type() {
584   _has_bits_[0] &= ~0x00000001u;
585 }
clear_type()586 inline void Frame::clear_type() {
587   type_ = 0u;
588   clear_has_type();
589 }
type()590 inline ::google::protobuf::uint32 Frame::type() const {
591   // @@protoc_insertion_point(field_get:Mysqlx.Notice.Frame.type)
592   return type_;
593 }
set_type(::google::protobuf::uint32 value)594 inline void Frame::set_type(::google::protobuf::uint32 value) {
595   set_has_type();
596   type_ = value;
597   // @@protoc_insertion_point(field_set:Mysqlx.Notice.Frame.type)
598 }
599 
600 // optional .Mysqlx.Notice.Frame.Scope scope = 2 [default = GLOBAL];
has_scope()601 inline bool Frame::has_scope() const {
602   return (_has_bits_[0] & 0x00000002u) != 0;
603 }
set_has_scope()604 inline void Frame::set_has_scope() {
605   _has_bits_[0] |= 0x00000002u;
606 }
clear_has_scope()607 inline void Frame::clear_has_scope() {
608   _has_bits_[0] &= ~0x00000002u;
609 }
clear_scope()610 inline void Frame::clear_scope() {
611   scope_ = 1;
612   clear_has_scope();
613 }
scope()614 inline ::Mysqlx::Notice::Frame_Scope Frame::scope() const {
615   // @@protoc_insertion_point(field_get:Mysqlx.Notice.Frame.scope)
616   return static_cast< ::Mysqlx::Notice::Frame_Scope >(scope_);
617 }
set_scope(::Mysqlx::Notice::Frame_Scope value)618 inline void Frame::set_scope(::Mysqlx::Notice::Frame_Scope value) {
619   assert(::Mysqlx::Notice::Frame_Scope_IsValid(value));
620   set_has_scope();
621   scope_ = value;
622   // @@protoc_insertion_point(field_set:Mysqlx.Notice.Frame.scope)
623 }
624 
625 // optional bytes payload = 3;
has_payload()626 inline bool Frame::has_payload() const {
627   return (_has_bits_[0] & 0x00000004u) != 0;
628 }
set_has_payload()629 inline void Frame::set_has_payload() {
630   _has_bits_[0] |= 0x00000004u;
631 }
clear_has_payload()632 inline void Frame::clear_has_payload() {
633   _has_bits_[0] &= ~0x00000004u;
634 }
clear_payload()635 inline void Frame::clear_payload() {
636   if (payload_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
637     payload_->clear();
638   }
639   clear_has_payload();
640 }
payload()641 inline const ::std::string& Frame::payload() const {
642   // @@protoc_insertion_point(field_get:Mysqlx.Notice.Frame.payload)
643   return *payload_;
644 }
set_payload(const::std::string & value)645 inline void Frame::set_payload(const ::std::string& value) {
646   set_has_payload();
647   if (payload_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
648     payload_ = new ::std::string;
649   }
650   payload_->assign(value);
651   // @@protoc_insertion_point(field_set:Mysqlx.Notice.Frame.payload)
652 }
set_payload(const char * value)653 inline void Frame::set_payload(const char* value) {
654   set_has_payload();
655   if (payload_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
656     payload_ = new ::std::string;
657   }
658   payload_->assign(value);
659   // @@protoc_insertion_point(field_set_char:Mysqlx.Notice.Frame.payload)
660 }
set_payload(const void * value,size_t size)661 inline void Frame::set_payload(const void* value, size_t size) {
662   set_has_payload();
663   if (payload_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
664     payload_ = new ::std::string;
665   }
666   payload_->assign(reinterpret_cast<const char*>(value), size);
667   // @@protoc_insertion_point(field_set_pointer:Mysqlx.Notice.Frame.payload)
668 }
mutable_payload()669 inline ::std::string* Frame::mutable_payload() {
670   set_has_payload();
671   if (payload_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
672     payload_ = new ::std::string;
673   }
674   // @@protoc_insertion_point(field_mutable:Mysqlx.Notice.Frame.payload)
675   return payload_;
676 }
release_payload()677 inline ::std::string* Frame::release_payload() {
678   clear_has_payload();
679   if (payload_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
680     return NULL;
681   } else {
682     ::std::string* temp = payload_;
683     payload_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
684     return temp;
685   }
686 }
set_allocated_payload(::std::string * payload)687 inline void Frame::set_allocated_payload(::std::string* payload) {
688   if (payload_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
689     delete payload_;
690   }
691   if (payload) {
692     set_has_payload();
693     payload_ = payload;
694   } else {
695     clear_has_payload();
696     payload_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
697   }
698   // @@protoc_insertion_point(field_set_allocated:Mysqlx.Notice.Frame.payload)
699 }
700 
701 // -------------------------------------------------------------------
702 
703 // Warning
704 
705 // optional .Mysqlx.Notice.Warning.Level level = 1 [default = WARNING];
has_level()706 inline bool Warning::has_level() const {
707   return (_has_bits_[0] & 0x00000001u) != 0;
708 }
set_has_level()709 inline void Warning::set_has_level() {
710   _has_bits_[0] |= 0x00000001u;
711 }
clear_has_level()712 inline void Warning::clear_has_level() {
713   _has_bits_[0] &= ~0x00000001u;
714 }
clear_level()715 inline void Warning::clear_level() {
716   level_ = 2;
717   clear_has_level();
718 }
level()719 inline ::Mysqlx::Notice::Warning_Level Warning::level() const {
720   // @@protoc_insertion_point(field_get:Mysqlx.Notice.Warning.level)
721   return static_cast< ::Mysqlx::Notice::Warning_Level >(level_);
722 }
set_level(::Mysqlx::Notice::Warning_Level value)723 inline void Warning::set_level(::Mysqlx::Notice::Warning_Level value) {
724   assert(::Mysqlx::Notice::Warning_Level_IsValid(value));
725   set_has_level();
726   level_ = value;
727   // @@protoc_insertion_point(field_set:Mysqlx.Notice.Warning.level)
728 }
729 
730 // required uint32 code = 2;
has_code()731 inline bool Warning::has_code() const {
732   return (_has_bits_[0] & 0x00000002u) != 0;
733 }
set_has_code()734 inline void Warning::set_has_code() {
735   _has_bits_[0] |= 0x00000002u;
736 }
clear_has_code()737 inline void Warning::clear_has_code() {
738   _has_bits_[0] &= ~0x00000002u;
739 }
clear_code()740 inline void Warning::clear_code() {
741   code_ = 0u;
742   clear_has_code();
743 }
code()744 inline ::google::protobuf::uint32 Warning::code() const {
745   // @@protoc_insertion_point(field_get:Mysqlx.Notice.Warning.code)
746   return code_;
747 }
set_code(::google::protobuf::uint32 value)748 inline void Warning::set_code(::google::protobuf::uint32 value) {
749   set_has_code();
750   code_ = value;
751   // @@protoc_insertion_point(field_set:Mysqlx.Notice.Warning.code)
752 }
753 
754 // required string msg = 3;
has_msg()755 inline bool Warning::has_msg() const {
756   return (_has_bits_[0] & 0x00000004u) != 0;
757 }
set_has_msg()758 inline void Warning::set_has_msg() {
759   _has_bits_[0] |= 0x00000004u;
760 }
clear_has_msg()761 inline void Warning::clear_has_msg() {
762   _has_bits_[0] &= ~0x00000004u;
763 }
clear_msg()764 inline void Warning::clear_msg() {
765   if (msg_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
766     msg_->clear();
767   }
768   clear_has_msg();
769 }
msg()770 inline const ::std::string& Warning::msg() const {
771   // @@protoc_insertion_point(field_get:Mysqlx.Notice.Warning.msg)
772   return *msg_;
773 }
set_msg(const::std::string & value)774 inline void Warning::set_msg(const ::std::string& value) {
775   set_has_msg();
776   if (msg_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
777     msg_ = new ::std::string;
778   }
779   msg_->assign(value);
780   // @@protoc_insertion_point(field_set:Mysqlx.Notice.Warning.msg)
781 }
set_msg(const char * value)782 inline void Warning::set_msg(const char* value) {
783   set_has_msg();
784   if (msg_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
785     msg_ = new ::std::string;
786   }
787   msg_->assign(value);
788   // @@protoc_insertion_point(field_set_char:Mysqlx.Notice.Warning.msg)
789 }
set_msg(const char * value,size_t size)790 inline void Warning::set_msg(const char* value, size_t size) {
791   set_has_msg();
792   if (msg_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
793     msg_ = new ::std::string;
794   }
795   msg_->assign(reinterpret_cast<const char*>(value), size);
796   // @@protoc_insertion_point(field_set_pointer:Mysqlx.Notice.Warning.msg)
797 }
mutable_msg()798 inline ::std::string* Warning::mutable_msg() {
799   set_has_msg();
800   if (msg_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
801     msg_ = new ::std::string;
802   }
803   // @@protoc_insertion_point(field_mutable:Mysqlx.Notice.Warning.msg)
804   return msg_;
805 }
release_msg()806 inline ::std::string* Warning::release_msg() {
807   clear_has_msg();
808   if (msg_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
809     return NULL;
810   } else {
811     ::std::string* temp = msg_;
812     msg_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
813     return temp;
814   }
815 }
set_allocated_msg(::std::string * msg)816 inline void Warning::set_allocated_msg(::std::string* msg) {
817   if (msg_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
818     delete msg_;
819   }
820   if (msg) {
821     set_has_msg();
822     msg_ = msg;
823   } else {
824     clear_has_msg();
825     msg_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
826   }
827   // @@protoc_insertion_point(field_set_allocated:Mysqlx.Notice.Warning.msg)
828 }
829 
830 // -------------------------------------------------------------------
831 
832 // SessionVariableChanged
833 
834 // required string param = 1;
has_param()835 inline bool SessionVariableChanged::has_param() const {
836   return (_has_bits_[0] & 0x00000001u) != 0;
837 }
set_has_param()838 inline void SessionVariableChanged::set_has_param() {
839   _has_bits_[0] |= 0x00000001u;
840 }
clear_has_param()841 inline void SessionVariableChanged::clear_has_param() {
842   _has_bits_[0] &= ~0x00000001u;
843 }
clear_param()844 inline void SessionVariableChanged::clear_param() {
845   if (param_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
846     param_->clear();
847   }
848   clear_has_param();
849 }
param()850 inline const ::std::string& SessionVariableChanged::param() const {
851   // @@protoc_insertion_point(field_get:Mysqlx.Notice.SessionVariableChanged.param)
852   return *param_;
853 }
set_param(const::std::string & value)854 inline void SessionVariableChanged::set_param(const ::std::string& value) {
855   set_has_param();
856   if (param_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
857     param_ = new ::std::string;
858   }
859   param_->assign(value);
860   // @@protoc_insertion_point(field_set:Mysqlx.Notice.SessionVariableChanged.param)
861 }
set_param(const char * value)862 inline void SessionVariableChanged::set_param(const char* value) {
863   set_has_param();
864   if (param_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
865     param_ = new ::std::string;
866   }
867   param_->assign(value);
868   // @@protoc_insertion_point(field_set_char:Mysqlx.Notice.SessionVariableChanged.param)
869 }
set_param(const char * value,size_t size)870 inline void SessionVariableChanged::set_param(const char* value, size_t size) {
871   set_has_param();
872   if (param_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
873     param_ = new ::std::string;
874   }
875   param_->assign(reinterpret_cast<const char*>(value), size);
876   // @@protoc_insertion_point(field_set_pointer:Mysqlx.Notice.SessionVariableChanged.param)
877 }
mutable_param()878 inline ::std::string* SessionVariableChanged::mutable_param() {
879   set_has_param();
880   if (param_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
881     param_ = new ::std::string;
882   }
883   // @@protoc_insertion_point(field_mutable:Mysqlx.Notice.SessionVariableChanged.param)
884   return param_;
885 }
release_param()886 inline ::std::string* SessionVariableChanged::release_param() {
887   clear_has_param();
888   if (param_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
889     return NULL;
890   } else {
891     ::std::string* temp = param_;
892     param_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
893     return temp;
894   }
895 }
set_allocated_param(::std::string * param)896 inline void SessionVariableChanged::set_allocated_param(::std::string* param) {
897   if (param_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
898     delete param_;
899   }
900   if (param) {
901     set_has_param();
902     param_ = param;
903   } else {
904     clear_has_param();
905     param_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
906   }
907   // @@protoc_insertion_point(field_set_allocated:Mysqlx.Notice.SessionVariableChanged.param)
908 }
909 
910 // optional .Mysqlx.Datatypes.Scalar value = 2;
has_value()911 inline bool SessionVariableChanged::has_value() const {
912   return (_has_bits_[0] & 0x00000002u) != 0;
913 }
set_has_value()914 inline void SessionVariableChanged::set_has_value() {
915   _has_bits_[0] |= 0x00000002u;
916 }
clear_has_value()917 inline void SessionVariableChanged::clear_has_value() {
918   _has_bits_[0] &= ~0x00000002u;
919 }
clear_value()920 inline void SessionVariableChanged::clear_value() {
921   if (value_ != NULL) value_->::Mysqlx::Datatypes::Scalar::Clear();
922   clear_has_value();
923 }
value()924 inline const ::Mysqlx::Datatypes::Scalar& SessionVariableChanged::value() const {
925   // @@protoc_insertion_point(field_get:Mysqlx.Notice.SessionVariableChanged.value)
926 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
927   return value_ != NULL ? *value_ : *default_instance().value_;
928 #else
929   return value_ != NULL ? *value_ : *default_instance_->value_;
930 #endif
931 }
mutable_value()932 inline ::Mysqlx::Datatypes::Scalar* SessionVariableChanged::mutable_value() {
933   set_has_value();
934   if (value_ == NULL) value_ = new ::Mysqlx::Datatypes::Scalar;
935   // @@protoc_insertion_point(field_mutable:Mysqlx.Notice.SessionVariableChanged.value)
936   return value_;
937 }
release_value()938 inline ::Mysqlx::Datatypes::Scalar* SessionVariableChanged::release_value() {
939   clear_has_value();
940   ::Mysqlx::Datatypes::Scalar* temp = value_;
941   value_ = NULL;
942   return temp;
943 }
set_allocated_value(::Mysqlx::Datatypes::Scalar * value)944 inline void SessionVariableChanged::set_allocated_value(::Mysqlx::Datatypes::Scalar* value) {
945   delete value_;
946   value_ = value;
947   if (value) {
948     set_has_value();
949   } else {
950     clear_has_value();
951   }
952   // @@protoc_insertion_point(field_set_allocated:Mysqlx.Notice.SessionVariableChanged.value)
953 }
954 
955 // -------------------------------------------------------------------
956 
957 // SessionStateChanged
958 
959 // required .Mysqlx.Notice.SessionStateChanged.Parameter param = 1;
has_param()960 inline bool SessionStateChanged::has_param() const {
961   return (_has_bits_[0] & 0x00000001u) != 0;
962 }
set_has_param()963 inline void SessionStateChanged::set_has_param() {
964   _has_bits_[0] |= 0x00000001u;
965 }
clear_has_param()966 inline void SessionStateChanged::clear_has_param() {
967   _has_bits_[0] &= ~0x00000001u;
968 }
clear_param()969 inline void SessionStateChanged::clear_param() {
970   param_ = 1;
971   clear_has_param();
972 }
param()973 inline ::Mysqlx::Notice::SessionStateChanged_Parameter SessionStateChanged::param() const {
974   // @@protoc_insertion_point(field_get:Mysqlx.Notice.SessionStateChanged.param)
975   return static_cast< ::Mysqlx::Notice::SessionStateChanged_Parameter >(param_);
976 }
set_param(::Mysqlx::Notice::SessionStateChanged_Parameter value)977 inline void SessionStateChanged::set_param(::Mysqlx::Notice::SessionStateChanged_Parameter value) {
978   assert(::Mysqlx::Notice::SessionStateChanged_Parameter_IsValid(value));
979   set_has_param();
980   param_ = value;
981   // @@protoc_insertion_point(field_set:Mysqlx.Notice.SessionStateChanged.param)
982 }
983 
984 // optional .Mysqlx.Datatypes.Scalar value = 2;
has_value()985 inline bool SessionStateChanged::has_value() const {
986   return (_has_bits_[0] & 0x00000002u) != 0;
987 }
set_has_value()988 inline void SessionStateChanged::set_has_value() {
989   _has_bits_[0] |= 0x00000002u;
990 }
clear_has_value()991 inline void SessionStateChanged::clear_has_value() {
992   _has_bits_[0] &= ~0x00000002u;
993 }
clear_value()994 inline void SessionStateChanged::clear_value() {
995   if (value_ != NULL) value_->::Mysqlx::Datatypes::Scalar::Clear();
996   clear_has_value();
997 }
value()998 inline const ::Mysqlx::Datatypes::Scalar& SessionStateChanged::value() const {
999   // @@protoc_insertion_point(field_get:Mysqlx.Notice.SessionStateChanged.value)
1000 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
1001   return value_ != NULL ? *value_ : *default_instance().value_;
1002 #else
1003   return value_ != NULL ? *value_ : *default_instance_->value_;
1004 #endif
1005 }
mutable_value()1006 inline ::Mysqlx::Datatypes::Scalar* SessionStateChanged::mutable_value() {
1007   set_has_value();
1008   if (value_ == NULL) value_ = new ::Mysqlx::Datatypes::Scalar;
1009   // @@protoc_insertion_point(field_mutable:Mysqlx.Notice.SessionStateChanged.value)
1010   return value_;
1011 }
release_value()1012 inline ::Mysqlx::Datatypes::Scalar* SessionStateChanged::release_value() {
1013   clear_has_value();
1014   ::Mysqlx::Datatypes::Scalar* temp = value_;
1015   value_ = NULL;
1016   return temp;
1017 }
set_allocated_value(::Mysqlx::Datatypes::Scalar * value)1018 inline void SessionStateChanged::set_allocated_value(::Mysqlx::Datatypes::Scalar* value) {
1019   delete value_;
1020   value_ = value;
1021   if (value) {
1022     set_has_value();
1023   } else {
1024     clear_has_value();
1025   }
1026   // @@protoc_insertion_point(field_set_allocated:Mysqlx.Notice.SessionStateChanged.value)
1027 }
1028 
1029 
1030 // @@protoc_insertion_point(namespace_scope)
1031 
1032 }  // namespace Notice
1033 }  // namespace Mysqlx
1034 
1035 // @@protoc_insertion_point(global_scope)
1036 
1037 #endif  // PROTOBUF_mysqlx_5fnotice_2eproto__INCLUDED
1038