1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: mysqlx_session.proto
3
4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 #include "mysqlx_session.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 Session {
21
22 namespace {
23
24 const ::google::protobuf::Descriptor* AuthenticateStart_descriptor_ = NULL;
25 const ::google::protobuf::internal::GeneratedMessageReflection*
26 AuthenticateStart_reflection_ = NULL;
27 const ::google::protobuf::Descriptor* AuthenticateContinue_descriptor_ = NULL;
28 const ::google::protobuf::internal::GeneratedMessageReflection*
29 AuthenticateContinue_reflection_ = NULL;
30 const ::google::protobuf::Descriptor* AuthenticateOk_descriptor_ = NULL;
31 const ::google::protobuf::internal::GeneratedMessageReflection*
32 AuthenticateOk_reflection_ = NULL;
33 const ::google::protobuf::Descriptor* Reset_descriptor_ = NULL;
34 const ::google::protobuf::internal::GeneratedMessageReflection*
35 Reset_reflection_ = NULL;
36 const ::google::protobuf::Descriptor* Close_descriptor_ = NULL;
37 const ::google::protobuf::internal::GeneratedMessageReflection*
38 Close_reflection_ = NULL;
39
40 } // namespace
41
42
protobuf_AssignDesc_mysqlx_5fsession_2eproto()43 void protobuf_AssignDesc_mysqlx_5fsession_2eproto() {
44 protobuf_AddDesc_mysqlx_5fsession_2eproto();
45 const ::google::protobuf::FileDescriptor* file =
46 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
47 "mysqlx_session.proto");
48 GOOGLE_CHECK(file != NULL);
49 AuthenticateStart_descriptor_ = file->message_type(0);
50 static const int AuthenticateStart_offsets_[3] = {
51 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthenticateStart, mech_name_),
52 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthenticateStart, auth_data_),
53 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthenticateStart, initial_response_),
54 };
55 AuthenticateStart_reflection_ =
56 new ::google::protobuf::internal::GeneratedMessageReflection(
57 AuthenticateStart_descriptor_,
58 AuthenticateStart::default_instance_,
59 AuthenticateStart_offsets_,
60 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthenticateStart, _has_bits_[0]),
61 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthenticateStart, _unknown_fields_),
62 -1,
63 ::google::protobuf::DescriptorPool::generated_pool(),
64 ::google::protobuf::MessageFactory::generated_factory(),
65 sizeof(AuthenticateStart));
66 AuthenticateContinue_descriptor_ = file->message_type(1);
67 static const int AuthenticateContinue_offsets_[1] = {
68 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthenticateContinue, auth_data_),
69 };
70 AuthenticateContinue_reflection_ =
71 new ::google::protobuf::internal::GeneratedMessageReflection(
72 AuthenticateContinue_descriptor_,
73 AuthenticateContinue::default_instance_,
74 AuthenticateContinue_offsets_,
75 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthenticateContinue, _has_bits_[0]),
76 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthenticateContinue, _unknown_fields_),
77 -1,
78 ::google::protobuf::DescriptorPool::generated_pool(),
79 ::google::protobuf::MessageFactory::generated_factory(),
80 sizeof(AuthenticateContinue));
81 AuthenticateOk_descriptor_ = file->message_type(2);
82 static const int AuthenticateOk_offsets_[1] = {
83 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthenticateOk, auth_data_),
84 };
85 AuthenticateOk_reflection_ =
86 new ::google::protobuf::internal::GeneratedMessageReflection(
87 AuthenticateOk_descriptor_,
88 AuthenticateOk::default_instance_,
89 AuthenticateOk_offsets_,
90 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthenticateOk, _has_bits_[0]),
91 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthenticateOk, _unknown_fields_),
92 -1,
93 ::google::protobuf::DescriptorPool::generated_pool(),
94 ::google::protobuf::MessageFactory::generated_factory(),
95 sizeof(AuthenticateOk));
96 Reset_descriptor_ = file->message_type(3);
97 static const int Reset_offsets_[1] = {
98 };
99 Reset_reflection_ =
100 new ::google::protobuf::internal::GeneratedMessageReflection(
101 Reset_descriptor_,
102 Reset::default_instance_,
103 Reset_offsets_,
104 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Reset, _has_bits_[0]),
105 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Reset, _unknown_fields_),
106 -1,
107 ::google::protobuf::DescriptorPool::generated_pool(),
108 ::google::protobuf::MessageFactory::generated_factory(),
109 sizeof(Reset));
110 Close_descriptor_ = file->message_type(4);
111 static const int Close_offsets_[1] = {
112 };
113 Close_reflection_ =
114 new ::google::protobuf::internal::GeneratedMessageReflection(
115 Close_descriptor_,
116 Close::default_instance_,
117 Close_offsets_,
118 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Close, _has_bits_[0]),
119 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Close, _unknown_fields_),
120 -1,
121 ::google::protobuf::DescriptorPool::generated_pool(),
122 ::google::protobuf::MessageFactory::generated_factory(),
123 sizeof(Close));
124 }
125
126 namespace {
127
128 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
protobuf_AssignDescriptorsOnce()129 inline void protobuf_AssignDescriptorsOnce() {
130 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
131 &protobuf_AssignDesc_mysqlx_5fsession_2eproto);
132 }
133
protobuf_RegisterTypes(const::std::string &)134 void protobuf_RegisterTypes(const ::std::string&) {
135 protobuf_AssignDescriptorsOnce();
136 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
137 AuthenticateStart_descriptor_, &AuthenticateStart::default_instance());
138 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
139 AuthenticateContinue_descriptor_, &AuthenticateContinue::default_instance());
140 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
141 AuthenticateOk_descriptor_, &AuthenticateOk::default_instance());
142 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
143 Reset_descriptor_, &Reset::default_instance());
144 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
145 Close_descriptor_, &Close::default_instance());
146 }
147
148 } // namespace
149
protobuf_ShutdownFile_mysqlx_5fsession_2eproto()150 void protobuf_ShutdownFile_mysqlx_5fsession_2eproto() {
151 delete AuthenticateStart::default_instance_;
152 delete AuthenticateStart_reflection_;
153 delete AuthenticateContinue::default_instance_;
154 delete AuthenticateContinue_reflection_;
155 delete AuthenticateOk::default_instance_;
156 delete AuthenticateOk_reflection_;
157 delete Reset::default_instance_;
158 delete Reset_reflection_;
159 delete Close::default_instance_;
160 delete Close_reflection_;
161 }
162
protobuf_AddDesc_mysqlx_5fsession_2eproto()163 void protobuf_AddDesc_mysqlx_5fsession_2eproto() {
164 static bool already_here = false;
165 if (already_here) return;
166 already_here = true;
167 GOOGLE_PROTOBUF_VERIFY_VERSION;
168
169 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
170 "\n\024mysqlx_session.proto\022\016Mysqlx.Session\"S"
171 "\n\021AuthenticateStart\022\021\n\tmech_name\030\001 \002(\t\022\021"
172 "\n\tauth_data\030\002 \001(\014\022\030\n\020initial_response\030\003 "
173 "\001(\014\")\n\024AuthenticateContinue\022\021\n\tauth_data"
174 "\030\001 \002(\014\"#\n\016AuthenticateOk\022\021\n\tauth_data\030\001 "
175 "\001(\014\"\007\n\005Reset\"\007\n\005CloseB\036\n\034com.mysql.cj.my"
176 "sqlx.protobuf", 253);
177 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
178 "mysqlx_session.proto", &protobuf_RegisterTypes);
179 AuthenticateStart::default_instance_ = new AuthenticateStart();
180 AuthenticateContinue::default_instance_ = new AuthenticateContinue();
181 AuthenticateOk::default_instance_ = new AuthenticateOk();
182 Reset::default_instance_ = new Reset();
183 Close::default_instance_ = new Close();
184 AuthenticateStart::default_instance_->InitAsDefaultInstance();
185 AuthenticateContinue::default_instance_->InitAsDefaultInstance();
186 AuthenticateOk::default_instance_->InitAsDefaultInstance();
187 Reset::default_instance_->InitAsDefaultInstance();
188 Close::default_instance_->InitAsDefaultInstance();
189 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_mysqlx_5fsession_2eproto);
190 }
191
192 // Force AddDescriptors() to be called at static initialization time.
193 struct StaticDescriptorInitializer_mysqlx_5fsession_2eproto {
StaticDescriptorInitializer_mysqlx_5fsession_2eprotoMysqlx::Session::StaticDescriptorInitializer_mysqlx_5fsession_2eproto194 StaticDescriptorInitializer_mysqlx_5fsession_2eproto() {
195 protobuf_AddDesc_mysqlx_5fsession_2eproto();
196 }
197 } static_descriptor_initializer_mysqlx_5fsession_2eproto_;
198
199 // ===================================================================
200
201 #ifndef _MSC_VER
202 const int AuthenticateStart::kMechNameFieldNumber;
203 const int AuthenticateStart::kAuthDataFieldNumber;
204 const int AuthenticateStart::kInitialResponseFieldNumber;
205 #endif // !_MSC_VER
206
AuthenticateStart()207 AuthenticateStart::AuthenticateStart()
208 : ::google::protobuf::Message() {
209 SharedCtor();
210 // @@protoc_insertion_point(constructor:Mysqlx.Session.AuthenticateStart)
211 }
212
InitAsDefaultInstance()213 void AuthenticateStart::InitAsDefaultInstance() {
214 }
215
AuthenticateStart(const AuthenticateStart & from)216 AuthenticateStart::AuthenticateStart(const AuthenticateStart& from)
217 : ::google::protobuf::Message() {
218 SharedCtor();
219 MergeFrom(from);
220 // @@protoc_insertion_point(copy_constructor:Mysqlx.Session.AuthenticateStart)
221 }
222
SharedCtor()223 void AuthenticateStart::SharedCtor() {
224 ::google::protobuf::internal::GetEmptyString();
225 _cached_size_ = 0;
226 mech_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
227 auth_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
228 initial_response_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
229 ::memset(_has_bits_, 0, sizeof(_has_bits_));
230 }
231
~AuthenticateStart()232 AuthenticateStart::~AuthenticateStart() {
233 // @@protoc_insertion_point(destructor:Mysqlx.Session.AuthenticateStart)
234 SharedDtor();
235 }
236
SharedDtor()237 void AuthenticateStart::SharedDtor() {
238 if (mech_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
239 delete mech_name_;
240 }
241 if (auth_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
242 delete auth_data_;
243 }
244 if (initial_response_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
245 delete initial_response_;
246 }
247 if (this != default_instance_) {
248 }
249 }
250
SetCachedSize(int size) const251 void AuthenticateStart::SetCachedSize(int size) const {
252 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
253 _cached_size_ = size;
254 GOOGLE_SAFE_CONCURRENT_WRITES_END();
255 }
descriptor()256 const ::google::protobuf::Descriptor* AuthenticateStart::descriptor() {
257 protobuf_AssignDescriptorsOnce();
258 return AuthenticateStart_descriptor_;
259 }
260
default_instance()261 const AuthenticateStart& AuthenticateStart::default_instance() {
262 if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fsession_2eproto();
263 return *default_instance_;
264 }
265
266 AuthenticateStart* AuthenticateStart::default_instance_ = NULL;
267
New() const268 AuthenticateStart* AuthenticateStart::New() const {
269 return new AuthenticateStart;
270 }
271
Clear()272 void AuthenticateStart::Clear() {
273 if (_has_bits_[0 / 32] & 7) {
274 if (has_mech_name()) {
275 if (mech_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
276 mech_name_->clear();
277 }
278 }
279 if (has_auth_data()) {
280 if (auth_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
281 auth_data_->clear();
282 }
283 }
284 if (has_initial_response()) {
285 if (initial_response_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
286 initial_response_->clear();
287 }
288 }
289 }
290 ::memset(_has_bits_, 0, sizeof(_has_bits_));
291 mutable_unknown_fields()->Clear();
292 }
293
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)294 bool AuthenticateStart::MergePartialFromCodedStream(
295 ::google::protobuf::io::CodedInputStream* input) {
296 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
297 ::google::protobuf::uint32 tag;
298 // @@protoc_insertion_point(parse_start:Mysqlx.Session.AuthenticateStart)
299 for (;;) {
300 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
301 tag = p.first;
302 if (!p.second) goto handle_unusual;
303 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
304 // required string mech_name = 1;
305 case 1: {
306 if (tag == 10) {
307 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
308 input, this->mutable_mech_name()));
309 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
310 this->mech_name().data(), this->mech_name().length(),
311 ::google::protobuf::internal::WireFormat::PARSE,
312 "mech_name");
313 } else {
314 goto handle_unusual;
315 }
316 if (input->ExpectTag(18)) goto parse_auth_data;
317 break;
318 }
319
320 // optional bytes auth_data = 2;
321 case 2: {
322 if (tag == 18) {
323 parse_auth_data:
324 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
325 input, this->mutable_auth_data()));
326 } else {
327 goto handle_unusual;
328 }
329 if (input->ExpectTag(26)) goto parse_initial_response;
330 break;
331 }
332
333 // optional bytes initial_response = 3;
334 case 3: {
335 if (tag == 26) {
336 parse_initial_response:
337 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
338 input, this->mutable_initial_response()));
339 } else {
340 goto handle_unusual;
341 }
342 if (input->ExpectAtEnd()) goto success;
343 break;
344 }
345
346 default: {
347 handle_unusual:
348 if (tag == 0 ||
349 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
350 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
351 goto success;
352 }
353 DO_(::google::protobuf::internal::WireFormat::SkipField(
354 input, tag, mutable_unknown_fields()));
355 break;
356 }
357 }
358 }
359 success:
360 // @@protoc_insertion_point(parse_success:Mysqlx.Session.AuthenticateStart)
361 return true;
362 failure:
363 // @@protoc_insertion_point(parse_failure:Mysqlx.Session.AuthenticateStart)
364 return false;
365 #undef DO_
366 }
367
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const368 void AuthenticateStart::SerializeWithCachedSizes(
369 ::google::protobuf::io::CodedOutputStream* output) const {
370 // @@protoc_insertion_point(serialize_start:Mysqlx.Session.AuthenticateStart)
371 // required string mech_name = 1;
372 if (has_mech_name()) {
373 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
374 this->mech_name().data(), this->mech_name().length(),
375 ::google::protobuf::internal::WireFormat::SERIALIZE,
376 "mech_name");
377 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
378 1, this->mech_name(), output);
379 }
380
381 // optional bytes auth_data = 2;
382 if (has_auth_data()) {
383 ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
384 2, this->auth_data(), output);
385 }
386
387 // optional bytes initial_response = 3;
388 if (has_initial_response()) {
389 ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
390 3, this->initial_response(), output);
391 }
392
393 if (!unknown_fields().empty()) {
394 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
395 unknown_fields(), output);
396 }
397 // @@protoc_insertion_point(serialize_end:Mysqlx.Session.AuthenticateStart)
398 }
399
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const400 ::google::protobuf::uint8* AuthenticateStart::SerializeWithCachedSizesToArray(
401 ::google::protobuf::uint8* target) const {
402 // @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Session.AuthenticateStart)
403 // required string mech_name = 1;
404 if (has_mech_name()) {
405 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
406 this->mech_name().data(), this->mech_name().length(),
407 ::google::protobuf::internal::WireFormat::SERIALIZE,
408 "mech_name");
409 target =
410 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
411 1, this->mech_name(), target);
412 }
413
414 // optional bytes auth_data = 2;
415 if (has_auth_data()) {
416 target =
417 ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
418 2, this->auth_data(), target);
419 }
420
421 // optional bytes initial_response = 3;
422 if (has_initial_response()) {
423 target =
424 ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
425 3, this->initial_response(), target);
426 }
427
428 if (!unknown_fields().empty()) {
429 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
430 unknown_fields(), target);
431 }
432 // @@protoc_insertion_point(serialize_to_array_end:Mysqlx.Session.AuthenticateStart)
433 return target;
434 }
435
ByteSize() const436 int AuthenticateStart::ByteSize() const {
437 int total_size = 0;
438
439 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
440 // required string mech_name = 1;
441 if (has_mech_name()) {
442 total_size += 1 +
443 ::google::protobuf::internal::WireFormatLite::StringSize(
444 this->mech_name());
445 }
446
447 // optional bytes auth_data = 2;
448 if (has_auth_data()) {
449 total_size += 1 +
450 ::google::protobuf::internal::WireFormatLite::BytesSize(
451 this->auth_data());
452 }
453
454 // optional bytes initial_response = 3;
455 if (has_initial_response()) {
456 total_size += 1 +
457 ::google::protobuf::internal::WireFormatLite::BytesSize(
458 this->initial_response());
459 }
460
461 }
462 if (!unknown_fields().empty()) {
463 total_size +=
464 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
465 unknown_fields());
466 }
467 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
468 _cached_size_ = total_size;
469 GOOGLE_SAFE_CONCURRENT_WRITES_END();
470 return total_size;
471 }
472
MergeFrom(const::google::protobuf::Message & from)473 void AuthenticateStart::MergeFrom(const ::google::protobuf::Message& from) {
474 GOOGLE_CHECK_NE(&from, this);
475 const AuthenticateStart* source =
476 ::google::protobuf::internal::dynamic_cast_if_available<const AuthenticateStart*>(
477 &from);
478 if (source == NULL) {
479 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
480 } else {
481 MergeFrom(*source);
482 }
483 }
484
MergeFrom(const AuthenticateStart & from)485 void AuthenticateStart::MergeFrom(const AuthenticateStart& from) {
486 GOOGLE_CHECK_NE(&from, this);
487 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
488 if (from.has_mech_name()) {
489 set_mech_name(from.mech_name());
490 }
491 if (from.has_auth_data()) {
492 set_auth_data(from.auth_data());
493 }
494 if (from.has_initial_response()) {
495 set_initial_response(from.initial_response());
496 }
497 }
498 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
499 }
500
CopyFrom(const::google::protobuf::Message & from)501 void AuthenticateStart::CopyFrom(const ::google::protobuf::Message& from) {
502 if (&from == this) return;
503 Clear();
504 MergeFrom(from);
505 }
506
CopyFrom(const AuthenticateStart & from)507 void AuthenticateStart::CopyFrom(const AuthenticateStart& from) {
508 if (&from == this) return;
509 Clear();
510 MergeFrom(from);
511 }
512
IsInitialized() const513 bool AuthenticateStart::IsInitialized() const {
514 if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
515
516 return true;
517 }
518
Swap(AuthenticateStart * other)519 void AuthenticateStart::Swap(AuthenticateStart* other) {
520 if (other != this) {
521 std::swap(mech_name_, other->mech_name_);
522 std::swap(auth_data_, other->auth_data_);
523 std::swap(initial_response_, other->initial_response_);
524 std::swap(_has_bits_[0], other->_has_bits_[0]);
525 _unknown_fields_.Swap(&other->_unknown_fields_);
526 std::swap(_cached_size_, other->_cached_size_);
527 }
528 }
529
GetMetadata() const530 ::google::protobuf::Metadata AuthenticateStart::GetMetadata() const {
531 protobuf_AssignDescriptorsOnce();
532 ::google::protobuf::Metadata metadata;
533 metadata.descriptor = AuthenticateStart_descriptor_;
534 metadata.reflection = AuthenticateStart_reflection_;
535 return metadata;
536 }
537
538
539 // ===================================================================
540
541 #ifndef _MSC_VER
542 const int AuthenticateContinue::kAuthDataFieldNumber;
543 #endif // !_MSC_VER
544
AuthenticateContinue()545 AuthenticateContinue::AuthenticateContinue()
546 : ::google::protobuf::Message() {
547 SharedCtor();
548 // @@protoc_insertion_point(constructor:Mysqlx.Session.AuthenticateContinue)
549 }
550
InitAsDefaultInstance()551 void AuthenticateContinue::InitAsDefaultInstance() {
552 }
553
AuthenticateContinue(const AuthenticateContinue & from)554 AuthenticateContinue::AuthenticateContinue(const AuthenticateContinue& from)
555 : ::google::protobuf::Message() {
556 SharedCtor();
557 MergeFrom(from);
558 // @@protoc_insertion_point(copy_constructor:Mysqlx.Session.AuthenticateContinue)
559 }
560
SharedCtor()561 void AuthenticateContinue::SharedCtor() {
562 ::google::protobuf::internal::GetEmptyString();
563 _cached_size_ = 0;
564 auth_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
565 ::memset(_has_bits_, 0, sizeof(_has_bits_));
566 }
567
~AuthenticateContinue()568 AuthenticateContinue::~AuthenticateContinue() {
569 // @@protoc_insertion_point(destructor:Mysqlx.Session.AuthenticateContinue)
570 SharedDtor();
571 }
572
SharedDtor()573 void AuthenticateContinue::SharedDtor() {
574 if (auth_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
575 delete auth_data_;
576 }
577 if (this != default_instance_) {
578 }
579 }
580
SetCachedSize(int size) const581 void AuthenticateContinue::SetCachedSize(int size) const {
582 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
583 _cached_size_ = size;
584 GOOGLE_SAFE_CONCURRENT_WRITES_END();
585 }
descriptor()586 const ::google::protobuf::Descriptor* AuthenticateContinue::descriptor() {
587 protobuf_AssignDescriptorsOnce();
588 return AuthenticateContinue_descriptor_;
589 }
590
default_instance()591 const AuthenticateContinue& AuthenticateContinue::default_instance() {
592 if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fsession_2eproto();
593 return *default_instance_;
594 }
595
596 AuthenticateContinue* AuthenticateContinue::default_instance_ = NULL;
597
New() const598 AuthenticateContinue* AuthenticateContinue::New() const {
599 return new AuthenticateContinue;
600 }
601
Clear()602 void AuthenticateContinue::Clear() {
603 if (has_auth_data()) {
604 if (auth_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
605 auth_data_->clear();
606 }
607 }
608 ::memset(_has_bits_, 0, sizeof(_has_bits_));
609 mutable_unknown_fields()->Clear();
610 }
611
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)612 bool AuthenticateContinue::MergePartialFromCodedStream(
613 ::google::protobuf::io::CodedInputStream* input) {
614 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
615 ::google::protobuf::uint32 tag;
616 // @@protoc_insertion_point(parse_start:Mysqlx.Session.AuthenticateContinue)
617 for (;;) {
618 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
619 tag = p.first;
620 if (!p.second) goto handle_unusual;
621 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
622 // required bytes auth_data = 1;
623 case 1: {
624 if (tag == 10) {
625 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
626 input, this->mutable_auth_data()));
627 } else {
628 goto handle_unusual;
629 }
630 if (input->ExpectAtEnd()) goto success;
631 break;
632 }
633
634 default: {
635 handle_unusual:
636 if (tag == 0 ||
637 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
638 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
639 goto success;
640 }
641 DO_(::google::protobuf::internal::WireFormat::SkipField(
642 input, tag, mutable_unknown_fields()));
643 break;
644 }
645 }
646 }
647 success:
648 // @@protoc_insertion_point(parse_success:Mysqlx.Session.AuthenticateContinue)
649 return true;
650 failure:
651 // @@protoc_insertion_point(parse_failure:Mysqlx.Session.AuthenticateContinue)
652 return false;
653 #undef DO_
654 }
655
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const656 void AuthenticateContinue::SerializeWithCachedSizes(
657 ::google::protobuf::io::CodedOutputStream* output) const {
658 // @@protoc_insertion_point(serialize_start:Mysqlx.Session.AuthenticateContinue)
659 // required bytes auth_data = 1;
660 if (has_auth_data()) {
661 ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
662 1, this->auth_data(), output);
663 }
664
665 if (!unknown_fields().empty()) {
666 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
667 unknown_fields(), output);
668 }
669 // @@protoc_insertion_point(serialize_end:Mysqlx.Session.AuthenticateContinue)
670 }
671
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const672 ::google::protobuf::uint8* AuthenticateContinue::SerializeWithCachedSizesToArray(
673 ::google::protobuf::uint8* target) const {
674 // @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Session.AuthenticateContinue)
675 // required bytes auth_data = 1;
676 if (has_auth_data()) {
677 target =
678 ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
679 1, this->auth_data(), target);
680 }
681
682 if (!unknown_fields().empty()) {
683 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
684 unknown_fields(), target);
685 }
686 // @@protoc_insertion_point(serialize_to_array_end:Mysqlx.Session.AuthenticateContinue)
687 return target;
688 }
689
ByteSize() const690 int AuthenticateContinue::ByteSize() const {
691 int total_size = 0;
692
693 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
694 // required bytes auth_data = 1;
695 if (has_auth_data()) {
696 total_size += 1 +
697 ::google::protobuf::internal::WireFormatLite::BytesSize(
698 this->auth_data());
699 }
700
701 }
702 if (!unknown_fields().empty()) {
703 total_size +=
704 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
705 unknown_fields());
706 }
707 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
708 _cached_size_ = total_size;
709 GOOGLE_SAFE_CONCURRENT_WRITES_END();
710 return total_size;
711 }
712
MergeFrom(const::google::protobuf::Message & from)713 void AuthenticateContinue::MergeFrom(const ::google::protobuf::Message& from) {
714 GOOGLE_CHECK_NE(&from, this);
715 const AuthenticateContinue* source =
716 ::google::protobuf::internal::dynamic_cast_if_available<const AuthenticateContinue*>(
717 &from);
718 if (source == NULL) {
719 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
720 } else {
721 MergeFrom(*source);
722 }
723 }
724
MergeFrom(const AuthenticateContinue & from)725 void AuthenticateContinue::MergeFrom(const AuthenticateContinue& from) {
726 GOOGLE_CHECK_NE(&from, this);
727 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
728 if (from.has_auth_data()) {
729 set_auth_data(from.auth_data());
730 }
731 }
732 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
733 }
734
CopyFrom(const::google::protobuf::Message & from)735 void AuthenticateContinue::CopyFrom(const ::google::protobuf::Message& from) {
736 if (&from == this) return;
737 Clear();
738 MergeFrom(from);
739 }
740
CopyFrom(const AuthenticateContinue & from)741 void AuthenticateContinue::CopyFrom(const AuthenticateContinue& from) {
742 if (&from == this) return;
743 Clear();
744 MergeFrom(from);
745 }
746
IsInitialized() const747 bool AuthenticateContinue::IsInitialized() const {
748 if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
749
750 return true;
751 }
752
Swap(AuthenticateContinue * other)753 void AuthenticateContinue::Swap(AuthenticateContinue* other) {
754 if (other != this) {
755 std::swap(auth_data_, other->auth_data_);
756 std::swap(_has_bits_[0], other->_has_bits_[0]);
757 _unknown_fields_.Swap(&other->_unknown_fields_);
758 std::swap(_cached_size_, other->_cached_size_);
759 }
760 }
761
GetMetadata() const762 ::google::protobuf::Metadata AuthenticateContinue::GetMetadata() const {
763 protobuf_AssignDescriptorsOnce();
764 ::google::protobuf::Metadata metadata;
765 metadata.descriptor = AuthenticateContinue_descriptor_;
766 metadata.reflection = AuthenticateContinue_reflection_;
767 return metadata;
768 }
769
770
771 // ===================================================================
772
773 #ifndef _MSC_VER
774 const int AuthenticateOk::kAuthDataFieldNumber;
775 #endif // !_MSC_VER
776
AuthenticateOk()777 AuthenticateOk::AuthenticateOk()
778 : ::google::protobuf::Message() {
779 SharedCtor();
780 // @@protoc_insertion_point(constructor:Mysqlx.Session.AuthenticateOk)
781 }
782
InitAsDefaultInstance()783 void AuthenticateOk::InitAsDefaultInstance() {
784 }
785
AuthenticateOk(const AuthenticateOk & from)786 AuthenticateOk::AuthenticateOk(const AuthenticateOk& from)
787 : ::google::protobuf::Message() {
788 SharedCtor();
789 MergeFrom(from);
790 // @@protoc_insertion_point(copy_constructor:Mysqlx.Session.AuthenticateOk)
791 }
792
SharedCtor()793 void AuthenticateOk::SharedCtor() {
794 ::google::protobuf::internal::GetEmptyString();
795 _cached_size_ = 0;
796 auth_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
797 ::memset(_has_bits_, 0, sizeof(_has_bits_));
798 }
799
~AuthenticateOk()800 AuthenticateOk::~AuthenticateOk() {
801 // @@protoc_insertion_point(destructor:Mysqlx.Session.AuthenticateOk)
802 SharedDtor();
803 }
804
SharedDtor()805 void AuthenticateOk::SharedDtor() {
806 if (auth_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
807 delete auth_data_;
808 }
809 if (this != default_instance_) {
810 }
811 }
812
SetCachedSize(int size) const813 void AuthenticateOk::SetCachedSize(int size) const {
814 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
815 _cached_size_ = size;
816 GOOGLE_SAFE_CONCURRENT_WRITES_END();
817 }
descriptor()818 const ::google::protobuf::Descriptor* AuthenticateOk::descriptor() {
819 protobuf_AssignDescriptorsOnce();
820 return AuthenticateOk_descriptor_;
821 }
822
default_instance()823 const AuthenticateOk& AuthenticateOk::default_instance() {
824 if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fsession_2eproto();
825 return *default_instance_;
826 }
827
828 AuthenticateOk* AuthenticateOk::default_instance_ = NULL;
829
New() const830 AuthenticateOk* AuthenticateOk::New() const {
831 return new AuthenticateOk;
832 }
833
Clear()834 void AuthenticateOk::Clear() {
835 if (has_auth_data()) {
836 if (auth_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
837 auth_data_->clear();
838 }
839 }
840 ::memset(_has_bits_, 0, sizeof(_has_bits_));
841 mutable_unknown_fields()->Clear();
842 }
843
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)844 bool AuthenticateOk::MergePartialFromCodedStream(
845 ::google::protobuf::io::CodedInputStream* input) {
846 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
847 ::google::protobuf::uint32 tag;
848 // @@protoc_insertion_point(parse_start:Mysqlx.Session.AuthenticateOk)
849 for (;;) {
850 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
851 tag = p.first;
852 if (!p.second) goto handle_unusual;
853 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
854 // optional bytes auth_data = 1;
855 case 1: {
856 if (tag == 10) {
857 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
858 input, this->mutable_auth_data()));
859 } else {
860 goto handle_unusual;
861 }
862 if (input->ExpectAtEnd()) goto success;
863 break;
864 }
865
866 default: {
867 handle_unusual:
868 if (tag == 0 ||
869 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
870 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
871 goto success;
872 }
873 DO_(::google::protobuf::internal::WireFormat::SkipField(
874 input, tag, mutable_unknown_fields()));
875 break;
876 }
877 }
878 }
879 success:
880 // @@protoc_insertion_point(parse_success:Mysqlx.Session.AuthenticateOk)
881 return true;
882 failure:
883 // @@protoc_insertion_point(parse_failure:Mysqlx.Session.AuthenticateOk)
884 return false;
885 #undef DO_
886 }
887
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const888 void AuthenticateOk::SerializeWithCachedSizes(
889 ::google::protobuf::io::CodedOutputStream* output) const {
890 // @@protoc_insertion_point(serialize_start:Mysqlx.Session.AuthenticateOk)
891 // optional bytes auth_data = 1;
892 if (has_auth_data()) {
893 ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
894 1, this->auth_data(), output);
895 }
896
897 if (!unknown_fields().empty()) {
898 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
899 unknown_fields(), output);
900 }
901 // @@protoc_insertion_point(serialize_end:Mysqlx.Session.AuthenticateOk)
902 }
903
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const904 ::google::protobuf::uint8* AuthenticateOk::SerializeWithCachedSizesToArray(
905 ::google::protobuf::uint8* target) const {
906 // @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Session.AuthenticateOk)
907 // optional bytes auth_data = 1;
908 if (has_auth_data()) {
909 target =
910 ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
911 1, this->auth_data(), target);
912 }
913
914 if (!unknown_fields().empty()) {
915 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
916 unknown_fields(), target);
917 }
918 // @@protoc_insertion_point(serialize_to_array_end:Mysqlx.Session.AuthenticateOk)
919 return target;
920 }
921
ByteSize() const922 int AuthenticateOk::ByteSize() const {
923 int total_size = 0;
924
925 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
926 // optional bytes auth_data = 1;
927 if (has_auth_data()) {
928 total_size += 1 +
929 ::google::protobuf::internal::WireFormatLite::BytesSize(
930 this->auth_data());
931 }
932
933 }
934 if (!unknown_fields().empty()) {
935 total_size +=
936 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
937 unknown_fields());
938 }
939 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
940 _cached_size_ = total_size;
941 GOOGLE_SAFE_CONCURRENT_WRITES_END();
942 return total_size;
943 }
944
MergeFrom(const::google::protobuf::Message & from)945 void AuthenticateOk::MergeFrom(const ::google::protobuf::Message& from) {
946 GOOGLE_CHECK_NE(&from, this);
947 const AuthenticateOk* source =
948 ::google::protobuf::internal::dynamic_cast_if_available<const AuthenticateOk*>(
949 &from);
950 if (source == NULL) {
951 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
952 } else {
953 MergeFrom(*source);
954 }
955 }
956
MergeFrom(const AuthenticateOk & from)957 void AuthenticateOk::MergeFrom(const AuthenticateOk& from) {
958 GOOGLE_CHECK_NE(&from, this);
959 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
960 if (from.has_auth_data()) {
961 set_auth_data(from.auth_data());
962 }
963 }
964 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
965 }
966
CopyFrom(const::google::protobuf::Message & from)967 void AuthenticateOk::CopyFrom(const ::google::protobuf::Message& from) {
968 if (&from == this) return;
969 Clear();
970 MergeFrom(from);
971 }
972
CopyFrom(const AuthenticateOk & from)973 void AuthenticateOk::CopyFrom(const AuthenticateOk& from) {
974 if (&from == this) return;
975 Clear();
976 MergeFrom(from);
977 }
978
IsInitialized() const979 bool AuthenticateOk::IsInitialized() const {
980
981 return true;
982 }
983
Swap(AuthenticateOk * other)984 void AuthenticateOk::Swap(AuthenticateOk* other) {
985 if (other != this) {
986 std::swap(auth_data_, other->auth_data_);
987 std::swap(_has_bits_[0], other->_has_bits_[0]);
988 _unknown_fields_.Swap(&other->_unknown_fields_);
989 std::swap(_cached_size_, other->_cached_size_);
990 }
991 }
992
GetMetadata() const993 ::google::protobuf::Metadata AuthenticateOk::GetMetadata() const {
994 protobuf_AssignDescriptorsOnce();
995 ::google::protobuf::Metadata metadata;
996 metadata.descriptor = AuthenticateOk_descriptor_;
997 metadata.reflection = AuthenticateOk_reflection_;
998 return metadata;
999 }
1000
1001
1002 // ===================================================================
1003
1004 #ifndef _MSC_VER
1005 #endif // !_MSC_VER
1006
Reset()1007 Reset::Reset()
1008 : ::google::protobuf::Message() {
1009 SharedCtor();
1010 // @@protoc_insertion_point(constructor:Mysqlx.Session.Reset)
1011 }
1012
InitAsDefaultInstance()1013 void Reset::InitAsDefaultInstance() {
1014 }
1015
Reset(const Reset & from)1016 Reset::Reset(const Reset& from)
1017 : ::google::protobuf::Message() {
1018 SharedCtor();
1019 MergeFrom(from);
1020 // @@protoc_insertion_point(copy_constructor:Mysqlx.Session.Reset)
1021 }
1022
SharedCtor()1023 void Reset::SharedCtor() {
1024 _cached_size_ = 0;
1025 ::memset(_has_bits_, 0, sizeof(_has_bits_));
1026 }
1027
~Reset()1028 Reset::~Reset() {
1029 // @@protoc_insertion_point(destructor:Mysqlx.Session.Reset)
1030 SharedDtor();
1031 }
1032
SharedDtor()1033 void Reset::SharedDtor() {
1034 if (this != default_instance_) {
1035 }
1036 }
1037
SetCachedSize(int size) const1038 void Reset::SetCachedSize(int size) const {
1039 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1040 _cached_size_ = size;
1041 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1042 }
descriptor()1043 const ::google::protobuf::Descriptor* Reset::descriptor() {
1044 protobuf_AssignDescriptorsOnce();
1045 return Reset_descriptor_;
1046 }
1047
default_instance()1048 const Reset& Reset::default_instance() {
1049 if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fsession_2eproto();
1050 return *default_instance_;
1051 }
1052
1053 Reset* Reset::default_instance_ = NULL;
1054
New() const1055 Reset* Reset::New() const {
1056 return new Reset;
1057 }
1058
Clear()1059 void Reset::Clear() {
1060 ::memset(_has_bits_, 0, sizeof(_has_bits_));
1061 mutable_unknown_fields()->Clear();
1062 }
1063
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)1064 bool Reset::MergePartialFromCodedStream(
1065 ::google::protobuf::io::CodedInputStream* input) {
1066 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1067 ::google::protobuf::uint32 tag;
1068 // @@protoc_insertion_point(parse_start:Mysqlx.Session.Reset)
1069 for (;;) {
1070 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1071 tag = p.first;
1072 if (!p.second) goto handle_unusual;
1073 handle_unusual:
1074 if (tag == 0 ||
1075 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1076 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1077 goto success;
1078 }
1079 DO_(::google::protobuf::internal::WireFormat::SkipField(
1080 input, tag, mutable_unknown_fields()));
1081 }
1082 success:
1083 // @@protoc_insertion_point(parse_success:Mysqlx.Session.Reset)
1084 return true;
1085 failure:
1086 // @@protoc_insertion_point(parse_failure:Mysqlx.Session.Reset)
1087 return false;
1088 #undef DO_
1089 }
1090
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const1091 void Reset::SerializeWithCachedSizes(
1092 ::google::protobuf::io::CodedOutputStream* output) const {
1093 // @@protoc_insertion_point(serialize_start:Mysqlx.Session.Reset)
1094 if (!unknown_fields().empty()) {
1095 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1096 unknown_fields(), output);
1097 }
1098 // @@protoc_insertion_point(serialize_end:Mysqlx.Session.Reset)
1099 }
1100
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const1101 ::google::protobuf::uint8* Reset::SerializeWithCachedSizesToArray(
1102 ::google::protobuf::uint8* target) const {
1103 // @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Session.Reset)
1104 if (!unknown_fields().empty()) {
1105 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1106 unknown_fields(), target);
1107 }
1108 // @@protoc_insertion_point(serialize_to_array_end:Mysqlx.Session.Reset)
1109 return target;
1110 }
1111
ByteSize() const1112 int Reset::ByteSize() const {
1113 int total_size = 0;
1114
1115 if (!unknown_fields().empty()) {
1116 total_size +=
1117 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1118 unknown_fields());
1119 }
1120 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1121 _cached_size_ = total_size;
1122 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1123 return total_size;
1124 }
1125
MergeFrom(const::google::protobuf::Message & from)1126 void Reset::MergeFrom(const ::google::protobuf::Message& from) {
1127 GOOGLE_CHECK_NE(&from, this);
1128 const Reset* source =
1129 ::google::protobuf::internal::dynamic_cast_if_available<const Reset*>(
1130 &from);
1131 if (source == NULL) {
1132 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1133 } else {
1134 MergeFrom(*source);
1135 }
1136 }
1137
MergeFrom(const Reset & from)1138 void Reset::MergeFrom(const Reset& from) {
1139 GOOGLE_CHECK_NE(&from, this);
1140 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1141 }
1142
CopyFrom(const::google::protobuf::Message & from)1143 void Reset::CopyFrom(const ::google::protobuf::Message& from) {
1144 if (&from == this) return;
1145 Clear();
1146 MergeFrom(from);
1147 }
1148
CopyFrom(const Reset & from)1149 void Reset::CopyFrom(const Reset& from) {
1150 if (&from == this) return;
1151 Clear();
1152 MergeFrom(from);
1153 }
1154
IsInitialized() const1155 bool Reset::IsInitialized() const {
1156
1157 return true;
1158 }
1159
Swap(Reset * other)1160 void Reset::Swap(Reset* other) {
1161 if (other != this) {
1162 _unknown_fields_.Swap(&other->_unknown_fields_);
1163 std::swap(_cached_size_, other->_cached_size_);
1164 }
1165 }
1166
GetMetadata() const1167 ::google::protobuf::Metadata Reset::GetMetadata() const {
1168 protobuf_AssignDescriptorsOnce();
1169 ::google::protobuf::Metadata metadata;
1170 metadata.descriptor = Reset_descriptor_;
1171 metadata.reflection = Reset_reflection_;
1172 return metadata;
1173 }
1174
1175
1176 // ===================================================================
1177
1178 #ifndef _MSC_VER
1179 #endif // !_MSC_VER
1180
Close()1181 Close::Close()
1182 : ::google::protobuf::Message() {
1183 SharedCtor();
1184 // @@protoc_insertion_point(constructor:Mysqlx.Session.Close)
1185 }
1186
InitAsDefaultInstance()1187 void Close::InitAsDefaultInstance() {
1188 }
1189
Close(const Close & from)1190 Close::Close(const Close& from)
1191 : ::google::protobuf::Message() {
1192 SharedCtor();
1193 MergeFrom(from);
1194 // @@protoc_insertion_point(copy_constructor:Mysqlx.Session.Close)
1195 }
1196
SharedCtor()1197 void Close::SharedCtor() {
1198 _cached_size_ = 0;
1199 ::memset(_has_bits_, 0, sizeof(_has_bits_));
1200 }
1201
~Close()1202 Close::~Close() {
1203 // @@protoc_insertion_point(destructor:Mysqlx.Session.Close)
1204 SharedDtor();
1205 }
1206
SharedDtor()1207 void Close::SharedDtor() {
1208 if (this != default_instance_) {
1209 }
1210 }
1211
SetCachedSize(int size) const1212 void Close::SetCachedSize(int size) const {
1213 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1214 _cached_size_ = size;
1215 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1216 }
descriptor()1217 const ::google::protobuf::Descriptor* Close::descriptor() {
1218 protobuf_AssignDescriptorsOnce();
1219 return Close_descriptor_;
1220 }
1221
default_instance()1222 const Close& Close::default_instance() {
1223 if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fsession_2eproto();
1224 return *default_instance_;
1225 }
1226
1227 Close* Close::default_instance_ = NULL;
1228
New() const1229 Close* Close::New() const {
1230 return new Close;
1231 }
1232
Clear()1233 void Close::Clear() {
1234 ::memset(_has_bits_, 0, sizeof(_has_bits_));
1235 mutable_unknown_fields()->Clear();
1236 }
1237
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)1238 bool Close::MergePartialFromCodedStream(
1239 ::google::protobuf::io::CodedInputStream* input) {
1240 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1241 ::google::protobuf::uint32 tag;
1242 // @@protoc_insertion_point(parse_start:Mysqlx.Session.Close)
1243 for (;;) {
1244 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1245 tag = p.first;
1246 if (!p.second) goto handle_unusual;
1247 handle_unusual:
1248 if (tag == 0 ||
1249 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1250 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1251 goto success;
1252 }
1253 DO_(::google::protobuf::internal::WireFormat::SkipField(
1254 input, tag, mutable_unknown_fields()));
1255 }
1256 success:
1257 // @@protoc_insertion_point(parse_success:Mysqlx.Session.Close)
1258 return true;
1259 failure:
1260 // @@protoc_insertion_point(parse_failure:Mysqlx.Session.Close)
1261 return false;
1262 #undef DO_
1263 }
1264
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const1265 void Close::SerializeWithCachedSizes(
1266 ::google::protobuf::io::CodedOutputStream* output) const {
1267 // @@protoc_insertion_point(serialize_start:Mysqlx.Session.Close)
1268 if (!unknown_fields().empty()) {
1269 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1270 unknown_fields(), output);
1271 }
1272 // @@protoc_insertion_point(serialize_end:Mysqlx.Session.Close)
1273 }
1274
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const1275 ::google::protobuf::uint8* Close::SerializeWithCachedSizesToArray(
1276 ::google::protobuf::uint8* target) const {
1277 // @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Session.Close)
1278 if (!unknown_fields().empty()) {
1279 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1280 unknown_fields(), target);
1281 }
1282 // @@protoc_insertion_point(serialize_to_array_end:Mysqlx.Session.Close)
1283 return target;
1284 }
1285
ByteSize() const1286 int Close::ByteSize() const {
1287 int total_size = 0;
1288
1289 if (!unknown_fields().empty()) {
1290 total_size +=
1291 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1292 unknown_fields());
1293 }
1294 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1295 _cached_size_ = total_size;
1296 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1297 return total_size;
1298 }
1299
MergeFrom(const::google::protobuf::Message & from)1300 void Close::MergeFrom(const ::google::protobuf::Message& from) {
1301 GOOGLE_CHECK_NE(&from, this);
1302 const Close* source =
1303 ::google::protobuf::internal::dynamic_cast_if_available<const Close*>(
1304 &from);
1305 if (source == NULL) {
1306 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1307 } else {
1308 MergeFrom(*source);
1309 }
1310 }
1311
MergeFrom(const Close & from)1312 void Close::MergeFrom(const Close& from) {
1313 GOOGLE_CHECK_NE(&from, this);
1314 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1315 }
1316
CopyFrom(const::google::protobuf::Message & from)1317 void Close::CopyFrom(const ::google::protobuf::Message& from) {
1318 if (&from == this) return;
1319 Clear();
1320 MergeFrom(from);
1321 }
1322
CopyFrom(const Close & from)1323 void Close::CopyFrom(const Close& from) {
1324 if (&from == this) return;
1325 Clear();
1326 MergeFrom(from);
1327 }
1328
IsInitialized() const1329 bool Close::IsInitialized() const {
1330
1331 return true;
1332 }
1333
Swap(Close * other)1334 void Close::Swap(Close* other) {
1335 if (other != this) {
1336 _unknown_fields_.Swap(&other->_unknown_fields_);
1337 std::swap(_cached_size_, other->_cached_size_);
1338 }
1339 }
1340
GetMetadata() const1341 ::google::protobuf::Metadata Close::GetMetadata() const {
1342 protobuf_AssignDescriptorsOnce();
1343 ::google::protobuf::Metadata metadata;
1344 metadata.descriptor = Close_descriptor_;
1345 metadata.reflection = Close_reflection_;
1346 return metadata;
1347 }
1348
1349
1350 // @@protoc_insertion_point(namespace_scope)
1351
1352 } // namespace Session
1353 } // namespace Mysqlx
1354
1355 // @@protoc_insertion_point(global_scope)
1356