1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: mysqlx_connection.proto
3
4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 #include "mysqlx_connection.pb.h"
6
7 #include <algorithm>
8
9 #include <google/protobuf/stubs/common.h>
10 #include <google/protobuf/stubs/once.h>
11 #include <google/protobuf/io/coded_stream.h>
12 #include <google/protobuf/wire_format_lite_inl.h>
13 #include <google/protobuf/io/zero_copy_stream_impl_lite.h>
14 // @@protoc_insertion_point(includes)
15
16 namespace Mysqlx {
17 namespace Connection {
18
protobuf_ShutdownFile_mysqlx_5fconnection_2eproto()19 void protobuf_ShutdownFile_mysqlx_5fconnection_2eproto() {
20 delete Capability::default_instance_;
21 delete Capabilities::default_instance_;
22 delete CapabilitiesGet::default_instance_;
23 delete CapabilitiesSet::default_instance_;
24 delete Close::default_instance_;
25 }
26
27 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
protobuf_AddDesc_mysqlx_5fconnection_2eproto_impl()28 void protobuf_AddDesc_mysqlx_5fconnection_2eproto_impl() {
29 GOOGLE_PROTOBUF_VERIFY_VERSION;
30
31 #else
32 void protobuf_AddDesc_mysqlx_5fconnection_2eproto() {
33 static bool already_here = false;
34 if (already_here) return;
35 already_here = true;
36 GOOGLE_PROTOBUF_VERIFY_VERSION;
37
38 #endif
39 ::Mysqlx::Datatypes::protobuf_AddDesc_mysqlx_5fdatatypes_2eproto();
40 Capability::default_instance_ = new Capability();
41 Capabilities::default_instance_ = new Capabilities();
42 CapabilitiesGet::default_instance_ = new CapabilitiesGet();
43 CapabilitiesSet::default_instance_ = new CapabilitiesSet();
44 Close::default_instance_ = new Close();
45 Capability::default_instance_->InitAsDefaultInstance();
46 Capabilities::default_instance_->InitAsDefaultInstance();
47 CapabilitiesGet::default_instance_->InitAsDefaultInstance();
48 CapabilitiesSet::default_instance_->InitAsDefaultInstance();
49 Close::default_instance_->InitAsDefaultInstance();
50 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_mysqlx_5fconnection_2eproto);
51 }
52
53 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
54 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_mysqlx_5fconnection_2eproto_once_);
55 void protobuf_AddDesc_mysqlx_5fconnection_2eproto() {
56 ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_mysqlx_5fconnection_2eproto_once_,
57 &protobuf_AddDesc_mysqlx_5fconnection_2eproto_impl);
58 }
59 #else
60 // Force AddDescriptors() to be called at static initialization time.
61 struct StaticDescriptorInitializer_mysqlx_5fconnection_2eproto {
62 StaticDescriptorInitializer_mysqlx_5fconnection_2eproto() {
63 protobuf_AddDesc_mysqlx_5fconnection_2eproto();
64 }
65 } static_descriptor_initializer_mysqlx_5fconnection_2eproto_;
66 #endif
67
68 // ===================================================================
69
70 #ifndef _MSC_VER
71 const int Capability::kNameFieldNumber;
72 const int Capability::kValueFieldNumber;
73 #endif // !_MSC_VER
74
75 Capability::Capability()
76 : ::google::protobuf::MessageLite() {
77 SharedCtor();
78 // @@protoc_insertion_point(constructor:Mysqlx.Connection.Capability)
79 }
80
81 void Capability::InitAsDefaultInstance() {
82 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
83 value_ = const_cast< ::Mysqlx::Datatypes::Any*>(
84 ::Mysqlx::Datatypes::Any::internal_default_instance());
85 #else
86 value_ = const_cast< ::Mysqlx::Datatypes::Any*>(&::Mysqlx::Datatypes::Any::default_instance());
87 #endif
88 }
89
90 Capability::Capability(const Capability& from)
91 : ::google::protobuf::MessageLite() {
92 SharedCtor();
93 MergeFrom(from);
94 // @@protoc_insertion_point(copy_constructor:Mysqlx.Connection.Capability)
95 }
96
97 void Capability::SharedCtor() {
98 ::google::protobuf::internal::GetEmptyString();
99 _cached_size_ = 0;
100 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
101 value_ = NULL;
102 ::memset(_has_bits_, 0, sizeof(_has_bits_));
103 }
104
105 Capability::~Capability() {
106 // @@protoc_insertion_point(destructor:Mysqlx.Connection.Capability)
107 SharedDtor();
108 }
109
110 void Capability::SharedDtor() {
111 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
112 delete name_;
113 }
114 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
115 if (this != &default_instance()) {
116 #else
117 if (this != default_instance_) {
118 #endif
119 delete value_;
120 }
121 }
122
123 void Capability::SetCachedSize(int size) const {
124 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
125 _cached_size_ = size;
126 GOOGLE_SAFE_CONCURRENT_WRITES_END();
127 }
128 const Capability& Capability::default_instance() {
129 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
130 protobuf_AddDesc_mysqlx_5fconnection_2eproto();
131 #else
132 if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fconnection_2eproto();
133 #endif
134 return *default_instance_;
135 }
136
137 Capability* Capability::default_instance_ = NULL;
138
139 Capability* Capability::New() const {
140 return new Capability;
141 }
142
143 void Capability::Clear() {
144 if (_has_bits_[0 / 32] & 3) {
145 if (has_name()) {
146 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
147 name_->clear();
148 }
149 }
150 if (has_value()) {
151 if (value_ != NULL) value_->::Mysqlx::Datatypes::Any::Clear();
152 }
153 }
154 ::memset(_has_bits_, 0, sizeof(_has_bits_));
155 mutable_unknown_fields()->clear();
156 }
157
158 bool Capability::MergePartialFromCodedStream(
159 ::google::protobuf::io::CodedInputStream* input) {
160 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
161 ::google::protobuf::uint32 tag;
162 ::google::protobuf::io::StringOutputStream unknown_fields_string(
163 mutable_unknown_fields());
164 ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
165 &unknown_fields_string);
166 // @@protoc_insertion_point(parse_start:Mysqlx.Connection.Capability)
167 for (;;) {
168 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
169 tag = p.first;
170 if (!p.second) goto handle_unusual;
171 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
172 // required string name = 1;
173 case 1: {
174 if (tag == 10) {
175 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
176 input, this->mutable_name()));
177 } else {
178 goto handle_unusual;
179 }
180 if (input->ExpectTag(18)) goto parse_value;
181 break;
182 }
183
184 // required .Mysqlx.Datatypes.Any value = 2;
185 case 2: {
186 if (tag == 18) {
187 parse_value:
188 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
189 input, mutable_value()));
190 } else {
191 goto handle_unusual;
192 }
193 if (input->ExpectAtEnd()) goto success;
194 break;
195 }
196
197 default: {
198 handle_unusual:
199 if (tag == 0 ||
200 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
201 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
202 goto success;
203 }
204 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
205 input, tag, &unknown_fields_stream));
206 break;
207 }
208 }
209 }
210 success:
211 // @@protoc_insertion_point(parse_success:Mysqlx.Connection.Capability)
212 return true;
213 failure:
214 // @@protoc_insertion_point(parse_failure:Mysqlx.Connection.Capability)
215 return false;
216 #undef DO_
217 }
218
219 void Capability::SerializeWithCachedSizes(
220 ::google::protobuf::io::CodedOutputStream* output) const {
221 // @@protoc_insertion_point(serialize_start:Mysqlx.Connection.Capability)
222 // required string name = 1;
223 if (has_name()) {
224 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
225 1, this->name(), output);
226 }
227
228 // required .Mysqlx.Datatypes.Any value = 2;
229 if (has_value()) {
230 ::google::protobuf::internal::WireFormatLite::WriteMessage(
231 2, this->value(), output);
232 }
233
234 output->WriteRaw(unknown_fields().data(),
235 unknown_fields().size());
236 // @@protoc_insertion_point(serialize_end:Mysqlx.Connection.Capability)
237 }
238
239 int Capability::ByteSize() const {
240 int total_size = 0;
241
242 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
243 // required string name = 1;
244 if (has_name()) {
245 total_size += 1 +
246 ::google::protobuf::internal::WireFormatLite::StringSize(
247 this->name());
248 }
249
250 // required .Mysqlx.Datatypes.Any value = 2;
251 if (has_value()) {
252 total_size += 1 +
253 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
254 this->value());
255 }
256
257 }
258 total_size += unknown_fields().size();
259
260 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
261 _cached_size_ = total_size;
262 GOOGLE_SAFE_CONCURRENT_WRITES_END();
263 return total_size;
264 }
265
266 void Capability::CheckTypeAndMergeFrom(
267 const ::google::protobuf::MessageLite& from) {
268 MergeFrom(*::google::protobuf::down_cast<const Capability*>(&from));
269 }
270
271 void Capability::MergeFrom(const Capability& from) {
272 GOOGLE_CHECK_NE(&from, this);
273 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
274 if (from.has_name()) {
275 set_name(from.name());
276 }
277 if (from.has_value()) {
278 mutable_value()->::Mysqlx::Datatypes::Any::MergeFrom(from.value());
279 }
280 }
281 mutable_unknown_fields()->append(from.unknown_fields());
282 }
283
284 void Capability::CopyFrom(const Capability& from) {
285 if (&from == this) return;
286 Clear();
287 MergeFrom(from);
288 }
289
290 bool Capability::IsInitialized() const {
291 if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
292
293 if (has_value()) {
294 if (!this->value().IsInitialized()) return false;
295 }
296 return true;
297 }
298
299 void Capability::Swap(Capability* other) {
300 if (other != this) {
301 std::swap(name_, other->name_);
302 std::swap(value_, other->value_);
303 std::swap(_has_bits_[0], other->_has_bits_[0]);
304 _unknown_fields_.swap(other->_unknown_fields_);
305 std::swap(_cached_size_, other->_cached_size_);
306 }
307 }
308
309 ::std::string Capability::GetTypeName() const {
310 return "Mysqlx.Connection.Capability";
311 }
312
313
314 // ===================================================================
315
316 #ifndef _MSC_VER
317 const int Capabilities::kCapabilitiesFieldNumber;
318 #endif // !_MSC_VER
319
320 Capabilities::Capabilities()
321 : ::google::protobuf::MessageLite() {
322 SharedCtor();
323 // @@protoc_insertion_point(constructor:Mysqlx.Connection.Capabilities)
324 }
325
326 void Capabilities::InitAsDefaultInstance() {
327 }
328
329 Capabilities::Capabilities(const Capabilities& from)
330 : ::google::protobuf::MessageLite() {
331 SharedCtor();
332 MergeFrom(from);
333 // @@protoc_insertion_point(copy_constructor:Mysqlx.Connection.Capabilities)
334 }
335
336 void Capabilities::SharedCtor() {
337 _cached_size_ = 0;
338 ::memset(_has_bits_, 0, sizeof(_has_bits_));
339 }
340
341 Capabilities::~Capabilities() {
342 // @@protoc_insertion_point(destructor:Mysqlx.Connection.Capabilities)
343 SharedDtor();
344 }
345
346 void Capabilities::SharedDtor() {
347 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
348 if (this != &default_instance()) {
349 #else
350 if (this != default_instance_) {
351 #endif
352 }
353 }
354
355 void Capabilities::SetCachedSize(int size) const {
356 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
357 _cached_size_ = size;
358 GOOGLE_SAFE_CONCURRENT_WRITES_END();
359 }
360 const Capabilities& Capabilities::default_instance() {
361 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
362 protobuf_AddDesc_mysqlx_5fconnection_2eproto();
363 #else
364 if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fconnection_2eproto();
365 #endif
366 return *default_instance_;
367 }
368
369 Capabilities* Capabilities::default_instance_ = NULL;
370
371 Capabilities* Capabilities::New() const {
372 return new Capabilities;
373 }
374
375 void Capabilities::Clear() {
376 capabilities_.Clear();
377 ::memset(_has_bits_, 0, sizeof(_has_bits_));
378 mutable_unknown_fields()->clear();
379 }
380
381 bool Capabilities::MergePartialFromCodedStream(
382 ::google::protobuf::io::CodedInputStream* input) {
383 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
384 ::google::protobuf::uint32 tag;
385 ::google::protobuf::io::StringOutputStream unknown_fields_string(
386 mutable_unknown_fields());
387 ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
388 &unknown_fields_string);
389 // @@protoc_insertion_point(parse_start:Mysqlx.Connection.Capabilities)
390 for (;;) {
391 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
392 tag = p.first;
393 if (!p.second) goto handle_unusual;
394 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
395 // repeated .Mysqlx.Connection.Capability capabilities = 1;
396 case 1: {
397 if (tag == 10) {
398 parse_capabilities:
399 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
400 input, add_capabilities()));
401 } else {
402 goto handle_unusual;
403 }
404 if (input->ExpectTag(10)) goto parse_capabilities;
405 if (input->ExpectAtEnd()) goto success;
406 break;
407 }
408
409 default: {
410 handle_unusual:
411 if (tag == 0 ||
412 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
413 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
414 goto success;
415 }
416 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
417 input, tag, &unknown_fields_stream));
418 break;
419 }
420 }
421 }
422 success:
423 // @@protoc_insertion_point(parse_success:Mysqlx.Connection.Capabilities)
424 return true;
425 failure:
426 // @@protoc_insertion_point(parse_failure:Mysqlx.Connection.Capabilities)
427 return false;
428 #undef DO_
429 }
430
431 void Capabilities::SerializeWithCachedSizes(
432 ::google::protobuf::io::CodedOutputStream* output) const {
433 // @@protoc_insertion_point(serialize_start:Mysqlx.Connection.Capabilities)
434 // repeated .Mysqlx.Connection.Capability capabilities = 1;
435 for (int i = 0; i < this->capabilities_size(); i++) {
436 ::google::protobuf::internal::WireFormatLite::WriteMessage(
437 1, this->capabilities(i), output);
438 }
439
440 output->WriteRaw(unknown_fields().data(),
441 unknown_fields().size());
442 // @@protoc_insertion_point(serialize_end:Mysqlx.Connection.Capabilities)
443 }
444
445 int Capabilities::ByteSize() const {
446 int total_size = 0;
447
448 // repeated .Mysqlx.Connection.Capability capabilities = 1;
449 total_size += 1 * this->capabilities_size();
450 for (int i = 0; i < this->capabilities_size(); i++) {
451 total_size +=
452 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
453 this->capabilities(i));
454 }
455
456 total_size += unknown_fields().size();
457
458 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
459 _cached_size_ = total_size;
460 GOOGLE_SAFE_CONCURRENT_WRITES_END();
461 return total_size;
462 }
463
464 void Capabilities::CheckTypeAndMergeFrom(
465 const ::google::protobuf::MessageLite& from) {
466 MergeFrom(*::google::protobuf::down_cast<const Capabilities*>(&from));
467 }
468
469 void Capabilities::MergeFrom(const Capabilities& from) {
470 GOOGLE_CHECK_NE(&from, this);
471 capabilities_.MergeFrom(from.capabilities_);
472 mutable_unknown_fields()->append(from.unknown_fields());
473 }
474
475 void Capabilities::CopyFrom(const Capabilities& from) {
476 if (&from == this) return;
477 Clear();
478 MergeFrom(from);
479 }
480
481 bool Capabilities::IsInitialized() const {
482
483 if (!::google::protobuf::internal::AllAreInitialized(this->capabilities())) return false;
484 return true;
485 }
486
487 void Capabilities::Swap(Capabilities* other) {
488 if (other != this) {
489 capabilities_.Swap(&other->capabilities_);
490 std::swap(_has_bits_[0], other->_has_bits_[0]);
491 _unknown_fields_.swap(other->_unknown_fields_);
492 std::swap(_cached_size_, other->_cached_size_);
493 }
494 }
495
496 ::std::string Capabilities::GetTypeName() const {
497 return "Mysqlx.Connection.Capabilities";
498 }
499
500
501 // ===================================================================
502
503 #ifndef _MSC_VER
504 #endif // !_MSC_VER
505
506 CapabilitiesGet::CapabilitiesGet()
507 : ::google::protobuf::MessageLite() {
508 SharedCtor();
509 // @@protoc_insertion_point(constructor:Mysqlx.Connection.CapabilitiesGet)
510 }
511
512 void CapabilitiesGet::InitAsDefaultInstance() {
513 }
514
515 CapabilitiesGet::CapabilitiesGet(const CapabilitiesGet& from)
516 : ::google::protobuf::MessageLite() {
517 SharedCtor();
518 MergeFrom(from);
519 // @@protoc_insertion_point(copy_constructor:Mysqlx.Connection.CapabilitiesGet)
520 }
521
522 void CapabilitiesGet::SharedCtor() {
523 _cached_size_ = 0;
524 ::memset(_has_bits_, 0, sizeof(_has_bits_));
525 }
526
527 CapabilitiesGet::~CapabilitiesGet() {
528 // @@protoc_insertion_point(destructor:Mysqlx.Connection.CapabilitiesGet)
529 SharedDtor();
530 }
531
532 void CapabilitiesGet::SharedDtor() {
533 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
534 if (this != &default_instance()) {
535 #else
536 if (this != default_instance_) {
537 #endif
538 }
539 }
540
541 void CapabilitiesGet::SetCachedSize(int size) const {
542 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
543 _cached_size_ = size;
544 GOOGLE_SAFE_CONCURRENT_WRITES_END();
545 }
546 const CapabilitiesGet& CapabilitiesGet::default_instance() {
547 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
548 protobuf_AddDesc_mysqlx_5fconnection_2eproto();
549 #else
550 if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fconnection_2eproto();
551 #endif
552 return *default_instance_;
553 }
554
555 CapabilitiesGet* CapabilitiesGet::default_instance_ = NULL;
556
557 CapabilitiesGet* CapabilitiesGet::New() const {
558 return new CapabilitiesGet;
559 }
560
561 void CapabilitiesGet::Clear() {
562 ::memset(_has_bits_, 0, sizeof(_has_bits_));
563 mutable_unknown_fields()->clear();
564 }
565
566 bool CapabilitiesGet::MergePartialFromCodedStream(
567 ::google::protobuf::io::CodedInputStream* input) {
568 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
569 ::google::protobuf::uint32 tag;
570 ::google::protobuf::io::StringOutputStream unknown_fields_string(
571 mutable_unknown_fields());
572 ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
573 &unknown_fields_string);
574 // @@protoc_insertion_point(parse_start:Mysqlx.Connection.CapabilitiesGet)
575 for (;;) {
576 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
577 tag = p.first;
578 if (!p.second) goto handle_unusual;
579 handle_unusual:
580 if (tag == 0 ||
581 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
582 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
583 goto success;
584 }
585 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
586 input, tag, &unknown_fields_stream));
587 }
588 success:
589 // @@protoc_insertion_point(parse_success:Mysqlx.Connection.CapabilitiesGet)
590 return true;
591 failure:
592 // @@protoc_insertion_point(parse_failure:Mysqlx.Connection.CapabilitiesGet)
593 return false;
594 #undef DO_
595 }
596
597 void CapabilitiesGet::SerializeWithCachedSizes(
598 ::google::protobuf::io::CodedOutputStream* output) const {
599 // @@protoc_insertion_point(serialize_start:Mysqlx.Connection.CapabilitiesGet)
600 output->WriteRaw(unknown_fields().data(),
601 unknown_fields().size());
602 // @@protoc_insertion_point(serialize_end:Mysqlx.Connection.CapabilitiesGet)
603 }
604
605 int CapabilitiesGet::ByteSize() const {
606 int total_size = 0;
607
608 total_size += unknown_fields().size();
609
610 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
611 _cached_size_ = total_size;
612 GOOGLE_SAFE_CONCURRENT_WRITES_END();
613 return total_size;
614 }
615
616 void CapabilitiesGet::CheckTypeAndMergeFrom(
617 const ::google::protobuf::MessageLite& from) {
618 MergeFrom(*::google::protobuf::down_cast<const CapabilitiesGet*>(&from));
619 }
620
621 void CapabilitiesGet::MergeFrom(const CapabilitiesGet& from) {
622 GOOGLE_CHECK_NE(&from, this);
623 mutable_unknown_fields()->append(from.unknown_fields());
624 }
625
626 void CapabilitiesGet::CopyFrom(const CapabilitiesGet& from) {
627 if (&from == this) return;
628 Clear();
629 MergeFrom(from);
630 }
631
632 bool CapabilitiesGet::IsInitialized() const {
633
634 return true;
635 }
636
637 void CapabilitiesGet::Swap(CapabilitiesGet* other) {
638 if (other != this) {
639 _unknown_fields_.swap(other->_unknown_fields_);
640 std::swap(_cached_size_, other->_cached_size_);
641 }
642 }
643
644 ::std::string CapabilitiesGet::GetTypeName() const {
645 return "Mysqlx.Connection.CapabilitiesGet";
646 }
647
648
649 // ===================================================================
650
651 #ifndef _MSC_VER
652 const int CapabilitiesSet::kCapabilitiesFieldNumber;
653 #endif // !_MSC_VER
654
655 CapabilitiesSet::CapabilitiesSet()
656 : ::google::protobuf::MessageLite() {
657 SharedCtor();
658 // @@protoc_insertion_point(constructor:Mysqlx.Connection.CapabilitiesSet)
659 }
660
661 void CapabilitiesSet::InitAsDefaultInstance() {
662 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
663 capabilities_ = const_cast< ::Mysqlx::Connection::Capabilities*>(
664 ::Mysqlx::Connection::Capabilities::internal_default_instance());
665 #else
666 capabilities_ = const_cast< ::Mysqlx::Connection::Capabilities*>(&::Mysqlx::Connection::Capabilities::default_instance());
667 #endif
668 }
669
670 CapabilitiesSet::CapabilitiesSet(const CapabilitiesSet& from)
671 : ::google::protobuf::MessageLite() {
672 SharedCtor();
673 MergeFrom(from);
674 // @@protoc_insertion_point(copy_constructor:Mysqlx.Connection.CapabilitiesSet)
675 }
676
677 void CapabilitiesSet::SharedCtor() {
678 _cached_size_ = 0;
679 capabilities_ = NULL;
680 ::memset(_has_bits_, 0, sizeof(_has_bits_));
681 }
682
683 CapabilitiesSet::~CapabilitiesSet() {
684 // @@protoc_insertion_point(destructor:Mysqlx.Connection.CapabilitiesSet)
685 SharedDtor();
686 }
687
688 void CapabilitiesSet::SharedDtor() {
689 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
690 if (this != &default_instance()) {
691 #else
692 if (this != default_instance_) {
693 #endif
694 delete capabilities_;
695 }
696 }
697
698 void CapabilitiesSet::SetCachedSize(int size) const {
699 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
700 _cached_size_ = size;
701 GOOGLE_SAFE_CONCURRENT_WRITES_END();
702 }
703 const CapabilitiesSet& CapabilitiesSet::default_instance() {
704 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
705 protobuf_AddDesc_mysqlx_5fconnection_2eproto();
706 #else
707 if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fconnection_2eproto();
708 #endif
709 return *default_instance_;
710 }
711
712 CapabilitiesSet* CapabilitiesSet::default_instance_ = NULL;
713
714 CapabilitiesSet* CapabilitiesSet::New() const {
715 return new CapabilitiesSet;
716 }
717
718 void CapabilitiesSet::Clear() {
719 if (has_capabilities()) {
720 if (capabilities_ != NULL) capabilities_->::Mysqlx::Connection::Capabilities::Clear();
721 }
722 ::memset(_has_bits_, 0, sizeof(_has_bits_));
723 mutable_unknown_fields()->clear();
724 }
725
726 bool CapabilitiesSet::MergePartialFromCodedStream(
727 ::google::protobuf::io::CodedInputStream* input) {
728 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
729 ::google::protobuf::uint32 tag;
730 ::google::protobuf::io::StringOutputStream unknown_fields_string(
731 mutable_unknown_fields());
732 ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
733 &unknown_fields_string);
734 // @@protoc_insertion_point(parse_start:Mysqlx.Connection.CapabilitiesSet)
735 for (;;) {
736 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
737 tag = p.first;
738 if (!p.second) goto handle_unusual;
739 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
740 // required .Mysqlx.Connection.Capabilities capabilities = 1;
741 case 1: {
742 if (tag == 10) {
743 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
744 input, mutable_capabilities()));
745 } else {
746 goto handle_unusual;
747 }
748 if (input->ExpectAtEnd()) goto success;
749 break;
750 }
751
752 default: {
753 handle_unusual:
754 if (tag == 0 ||
755 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
756 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
757 goto success;
758 }
759 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
760 input, tag, &unknown_fields_stream));
761 break;
762 }
763 }
764 }
765 success:
766 // @@protoc_insertion_point(parse_success:Mysqlx.Connection.CapabilitiesSet)
767 return true;
768 failure:
769 // @@protoc_insertion_point(parse_failure:Mysqlx.Connection.CapabilitiesSet)
770 return false;
771 #undef DO_
772 }
773
774 void CapabilitiesSet::SerializeWithCachedSizes(
775 ::google::protobuf::io::CodedOutputStream* output) const {
776 // @@protoc_insertion_point(serialize_start:Mysqlx.Connection.CapabilitiesSet)
777 // required .Mysqlx.Connection.Capabilities capabilities = 1;
778 if (has_capabilities()) {
779 ::google::protobuf::internal::WireFormatLite::WriteMessage(
780 1, this->capabilities(), output);
781 }
782
783 output->WriteRaw(unknown_fields().data(),
784 unknown_fields().size());
785 // @@protoc_insertion_point(serialize_end:Mysqlx.Connection.CapabilitiesSet)
786 }
787
788 int CapabilitiesSet::ByteSize() const {
789 int total_size = 0;
790
791 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
792 // required .Mysqlx.Connection.Capabilities capabilities = 1;
793 if (has_capabilities()) {
794 total_size += 1 +
795 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
796 this->capabilities());
797 }
798
799 }
800 total_size += unknown_fields().size();
801
802 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
803 _cached_size_ = total_size;
804 GOOGLE_SAFE_CONCURRENT_WRITES_END();
805 return total_size;
806 }
807
808 void CapabilitiesSet::CheckTypeAndMergeFrom(
809 const ::google::protobuf::MessageLite& from) {
810 MergeFrom(*::google::protobuf::down_cast<const CapabilitiesSet*>(&from));
811 }
812
813 void CapabilitiesSet::MergeFrom(const CapabilitiesSet& from) {
814 GOOGLE_CHECK_NE(&from, this);
815 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
816 if (from.has_capabilities()) {
817 mutable_capabilities()->::Mysqlx::Connection::Capabilities::MergeFrom(from.capabilities());
818 }
819 }
820 mutable_unknown_fields()->append(from.unknown_fields());
821 }
822
823 void CapabilitiesSet::CopyFrom(const CapabilitiesSet& from) {
824 if (&from == this) return;
825 Clear();
826 MergeFrom(from);
827 }
828
829 bool CapabilitiesSet::IsInitialized() const {
830 if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
831
832 if (has_capabilities()) {
833 if (!this->capabilities().IsInitialized()) return false;
834 }
835 return true;
836 }
837
838 void CapabilitiesSet::Swap(CapabilitiesSet* other) {
839 if (other != this) {
840 std::swap(capabilities_, other->capabilities_);
841 std::swap(_has_bits_[0], other->_has_bits_[0]);
842 _unknown_fields_.swap(other->_unknown_fields_);
843 std::swap(_cached_size_, other->_cached_size_);
844 }
845 }
846
847 ::std::string CapabilitiesSet::GetTypeName() const {
848 return "Mysqlx.Connection.CapabilitiesSet";
849 }
850
851
852 // ===================================================================
853
854 #ifndef _MSC_VER
855 #endif // !_MSC_VER
856
857 Close::Close()
858 : ::google::protobuf::MessageLite() {
859 SharedCtor();
860 // @@protoc_insertion_point(constructor:Mysqlx.Connection.Close)
861 }
862
863 void Close::InitAsDefaultInstance() {
864 }
865
866 Close::Close(const Close& from)
867 : ::google::protobuf::MessageLite() {
868 SharedCtor();
869 MergeFrom(from);
870 // @@protoc_insertion_point(copy_constructor:Mysqlx.Connection.Close)
871 }
872
873 void Close::SharedCtor() {
874 _cached_size_ = 0;
875 ::memset(_has_bits_, 0, sizeof(_has_bits_));
876 }
877
878 Close::~Close() {
879 // @@protoc_insertion_point(destructor:Mysqlx.Connection.Close)
880 SharedDtor();
881 }
882
883 void Close::SharedDtor() {
884 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
885 if (this != &default_instance()) {
886 #else
887 if (this != default_instance_) {
888 #endif
889 }
890 }
891
892 void Close::SetCachedSize(int size) const {
893 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
894 _cached_size_ = size;
895 GOOGLE_SAFE_CONCURRENT_WRITES_END();
896 }
897 const Close& Close::default_instance() {
898 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
899 protobuf_AddDesc_mysqlx_5fconnection_2eproto();
900 #else
901 if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fconnection_2eproto();
902 #endif
903 return *default_instance_;
904 }
905
906 Close* Close::default_instance_ = NULL;
907
908 Close* Close::New() const {
909 return new Close;
910 }
911
912 void Close::Clear() {
913 ::memset(_has_bits_, 0, sizeof(_has_bits_));
914 mutable_unknown_fields()->clear();
915 }
916
917 bool Close::MergePartialFromCodedStream(
918 ::google::protobuf::io::CodedInputStream* input) {
919 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
920 ::google::protobuf::uint32 tag;
921 ::google::protobuf::io::StringOutputStream unknown_fields_string(
922 mutable_unknown_fields());
923 ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
924 &unknown_fields_string);
925 // @@protoc_insertion_point(parse_start:Mysqlx.Connection.Close)
926 for (;;) {
927 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
928 tag = p.first;
929 if (!p.second) goto handle_unusual;
930 handle_unusual:
931 if (tag == 0 ||
932 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
933 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
934 goto success;
935 }
936 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
937 input, tag, &unknown_fields_stream));
938 }
939 success:
940 // @@protoc_insertion_point(parse_success:Mysqlx.Connection.Close)
941 return true;
942 failure:
943 // @@protoc_insertion_point(parse_failure:Mysqlx.Connection.Close)
944 return false;
945 #undef DO_
946 }
947
948 void Close::SerializeWithCachedSizes(
949 ::google::protobuf::io::CodedOutputStream* output) const {
950 // @@protoc_insertion_point(serialize_start:Mysqlx.Connection.Close)
951 output->WriteRaw(unknown_fields().data(),
952 unknown_fields().size());
953 // @@protoc_insertion_point(serialize_end:Mysqlx.Connection.Close)
954 }
955
956 int Close::ByteSize() const {
957 int total_size = 0;
958
959 total_size += unknown_fields().size();
960
961 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
962 _cached_size_ = total_size;
963 GOOGLE_SAFE_CONCURRENT_WRITES_END();
964 return total_size;
965 }
966
967 void Close::CheckTypeAndMergeFrom(
968 const ::google::protobuf::MessageLite& from) {
969 MergeFrom(*::google::protobuf::down_cast<const Close*>(&from));
970 }
971
972 void Close::MergeFrom(const Close& from) {
973 GOOGLE_CHECK_NE(&from, this);
974 mutable_unknown_fields()->append(from.unknown_fields());
975 }
976
977 void Close::CopyFrom(const Close& from) {
978 if (&from == this) return;
979 Clear();
980 MergeFrom(from);
981 }
982
983 bool Close::IsInitialized() const {
984
985 return true;
986 }
987
988 void Close::Swap(Close* other) {
989 if (other != this) {
990 _unknown_fields_.swap(other->_unknown_fields_);
991 std::swap(_cached_size_, other->_cached_size_);
992 }
993 }
994
995 ::std::string Close::GetTypeName() const {
996 return "Mysqlx.Connection.Close";
997 }
998
999
1000 // @@protoc_insertion_point(namespace_scope)
1001
1002 } // namespace Connection
1003 } // namespace Mysqlx
1004
1005 // @@protoc_insertion_point(global_scope)
1006