1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: mysqlx_expect.proto
3
4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 #include "mysqlx_expect.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 Expect {
21
22 namespace {
23
24 const ::google::protobuf::Descriptor* Open_descriptor_ = NULL;
25 const ::google::protobuf::internal::GeneratedMessageReflection*
26 Open_reflection_ = NULL;
27 const ::google::protobuf::Descriptor* Open_Condition_descriptor_ = NULL;
28 const ::google::protobuf::internal::GeneratedMessageReflection*
29 Open_Condition_reflection_ = NULL;
30 const ::google::protobuf::EnumDescriptor* Open_Condition_ConditionOperation_descriptor_ = NULL;
31 const ::google::protobuf::EnumDescriptor* Open_CtxOperation_descriptor_ = NULL;
32 const ::google::protobuf::Descriptor* Close_descriptor_ = NULL;
33 const ::google::protobuf::internal::GeneratedMessageReflection*
34 Close_reflection_ = NULL;
35
36 } // namespace
37
38
protobuf_AssignDesc_mysqlx_5fexpect_2eproto()39 void protobuf_AssignDesc_mysqlx_5fexpect_2eproto() {
40 protobuf_AddDesc_mysqlx_5fexpect_2eproto();
41 const ::google::protobuf::FileDescriptor* file =
42 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
43 "mysqlx_expect.proto");
44 GOOGLE_CHECK(file != NULL);
45 Open_descriptor_ = file->message_type(0);
46 static const int Open_offsets_[2] = {
47 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Open, op_),
48 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Open, cond_),
49 };
50 Open_reflection_ =
51 new ::google::protobuf::internal::GeneratedMessageReflection(
52 Open_descriptor_,
53 Open::default_instance_,
54 Open_offsets_,
55 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Open, _has_bits_[0]),
56 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Open, _unknown_fields_),
57 -1,
58 ::google::protobuf::DescriptorPool::generated_pool(),
59 ::google::protobuf::MessageFactory::generated_factory(),
60 sizeof(Open));
61 Open_Condition_descriptor_ = Open_descriptor_->nested_type(0);
62 static const int Open_Condition_offsets_[3] = {
63 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Open_Condition, condition_key_),
64 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Open_Condition, condition_value_),
65 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Open_Condition, op_),
66 };
67 Open_Condition_reflection_ =
68 new ::google::protobuf::internal::GeneratedMessageReflection(
69 Open_Condition_descriptor_,
70 Open_Condition::default_instance_,
71 Open_Condition_offsets_,
72 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Open_Condition, _has_bits_[0]),
73 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Open_Condition, _unknown_fields_),
74 -1,
75 ::google::protobuf::DescriptorPool::generated_pool(),
76 ::google::protobuf::MessageFactory::generated_factory(),
77 sizeof(Open_Condition));
78 Open_Condition_ConditionOperation_descriptor_ = Open_Condition_descriptor_->enum_type(0);
79 Open_CtxOperation_descriptor_ = Open_descriptor_->enum_type(0);
80 Close_descriptor_ = file->message_type(1);
81 static const int Close_offsets_[1] = {
82 };
83 Close_reflection_ =
84 new ::google::protobuf::internal::GeneratedMessageReflection(
85 Close_descriptor_,
86 Close::default_instance_,
87 Close_offsets_,
88 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Close, _has_bits_[0]),
89 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Close, _unknown_fields_),
90 -1,
91 ::google::protobuf::DescriptorPool::generated_pool(),
92 ::google::protobuf::MessageFactory::generated_factory(),
93 sizeof(Close));
94 }
95
96 namespace {
97
98 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
protobuf_AssignDescriptorsOnce()99 inline void protobuf_AssignDescriptorsOnce() {
100 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
101 &protobuf_AssignDesc_mysqlx_5fexpect_2eproto);
102 }
103
protobuf_RegisterTypes(const::std::string &)104 void protobuf_RegisterTypes(const ::std::string&) {
105 protobuf_AssignDescriptorsOnce();
106 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
107 Open_descriptor_, &Open::default_instance());
108 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
109 Open_Condition_descriptor_, &Open_Condition::default_instance());
110 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
111 Close_descriptor_, &Close::default_instance());
112 }
113
114 } // namespace
115
protobuf_ShutdownFile_mysqlx_5fexpect_2eproto()116 void protobuf_ShutdownFile_mysqlx_5fexpect_2eproto() {
117 delete Open::default_instance_;
118 delete Open_reflection_;
119 delete Open_Condition::default_instance_;
120 delete Open_Condition_reflection_;
121 delete Close::default_instance_;
122 delete Close_reflection_;
123 }
124
protobuf_AddDesc_mysqlx_5fexpect_2eproto()125 void protobuf_AddDesc_mysqlx_5fexpect_2eproto() {
126 static bool already_here = false;
127 if (already_here) return;
128 already_here = true;
129 GOOGLE_PROTOBUF_VERIFY_VERSION;
130
131 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
132 "\n\023mysqlx_expect.proto\022\rMysqlx.Expect\"\200\003\n"
133 "\004Open\022B\n\002op\030\001 \001(\0162 .Mysqlx.Expect.Open.C"
134 "txOperation:\024EXPECT_CTX_COPY_PREV\022+\n\004con"
135 "d\030\002 \003(\0132\035.Mysqlx.Expect.Open.Condition\032\306"
136 "\001\n\tCondition\022\025\n\rcondition_key\030\001 \002(\r\022\027\n\017c"
137 "ondition_value\030\002 \001(\014\022K\n\002op\030\003 \001(\01620.Mysql"
138 "x.Expect.Open.Condition.ConditionOperati"
139 "on:\rEXPECT_OP_SET\"<\n\022ConditionOperation\022"
140 "\021\n\rEXPECT_OP_SET\020\000\022\023\n\017EXPECT_OP_UNSET\020\001\""
141 ">\n\014CtxOperation\022\030\n\024EXPECT_CTX_COPY_PREV\020"
142 "\000\022\024\n\020EXPECT_CTX_EMPTY\020\001\"\007\n\005CloseB\036\n\034com."
143 "mysql.cj.mysqlx.protobuf", 464);
144 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
145 "mysqlx_expect.proto", &protobuf_RegisterTypes);
146 Open::default_instance_ = new Open();
147 Open_Condition::default_instance_ = new Open_Condition();
148 Close::default_instance_ = new Close();
149 Open::default_instance_->InitAsDefaultInstance();
150 Open_Condition::default_instance_->InitAsDefaultInstance();
151 Close::default_instance_->InitAsDefaultInstance();
152 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_mysqlx_5fexpect_2eproto);
153 }
154
155 // Force AddDescriptors() to be called at static initialization time.
156 struct StaticDescriptorInitializer_mysqlx_5fexpect_2eproto {
StaticDescriptorInitializer_mysqlx_5fexpect_2eprotoMysqlx::Expect::StaticDescriptorInitializer_mysqlx_5fexpect_2eproto157 StaticDescriptorInitializer_mysqlx_5fexpect_2eproto() {
158 protobuf_AddDesc_mysqlx_5fexpect_2eproto();
159 }
160 } static_descriptor_initializer_mysqlx_5fexpect_2eproto_;
161
162 // ===================================================================
163
Open_CtxOperation_descriptor()164 const ::google::protobuf::EnumDescriptor* Open_CtxOperation_descriptor() {
165 protobuf_AssignDescriptorsOnce();
166 return Open_CtxOperation_descriptor_;
167 }
Open_CtxOperation_IsValid(int value)168 bool Open_CtxOperation_IsValid(int value) {
169 switch(value) {
170 case 0:
171 case 1:
172 return true;
173 default:
174 return false;
175 }
176 }
177
178 #ifndef _MSC_VER
179 const Open_CtxOperation Open::EXPECT_CTX_COPY_PREV;
180 const Open_CtxOperation Open::EXPECT_CTX_EMPTY;
181 const Open_CtxOperation Open::CtxOperation_MIN;
182 const Open_CtxOperation Open::CtxOperation_MAX;
183 const int Open::CtxOperation_ARRAYSIZE;
184 #endif // _MSC_VER
Open_Condition_ConditionOperation_descriptor()185 const ::google::protobuf::EnumDescriptor* Open_Condition_ConditionOperation_descriptor() {
186 protobuf_AssignDescriptorsOnce();
187 return Open_Condition_ConditionOperation_descriptor_;
188 }
Open_Condition_ConditionOperation_IsValid(int value)189 bool Open_Condition_ConditionOperation_IsValid(int value) {
190 switch(value) {
191 case 0:
192 case 1:
193 return true;
194 default:
195 return false;
196 }
197 }
198
199 #ifndef _MSC_VER
200 const Open_Condition_ConditionOperation Open_Condition::EXPECT_OP_SET;
201 const Open_Condition_ConditionOperation Open_Condition::EXPECT_OP_UNSET;
202 const Open_Condition_ConditionOperation Open_Condition::ConditionOperation_MIN;
203 const Open_Condition_ConditionOperation Open_Condition::ConditionOperation_MAX;
204 const int Open_Condition::ConditionOperation_ARRAYSIZE;
205 #endif // _MSC_VER
206 #ifndef _MSC_VER
207 const int Open_Condition::kConditionKeyFieldNumber;
208 const int Open_Condition::kConditionValueFieldNumber;
209 const int Open_Condition::kOpFieldNumber;
210 #endif // !_MSC_VER
211
Open_Condition()212 Open_Condition::Open_Condition()
213 : ::google::protobuf::Message() {
214 SharedCtor();
215 // @@protoc_insertion_point(constructor:Mysqlx.Expect.Open.Condition)
216 }
217
InitAsDefaultInstance()218 void Open_Condition::InitAsDefaultInstance() {
219 }
220
Open_Condition(const Open_Condition & from)221 Open_Condition::Open_Condition(const Open_Condition& from)
222 : ::google::protobuf::Message() {
223 SharedCtor();
224 MergeFrom(from);
225 // @@protoc_insertion_point(copy_constructor:Mysqlx.Expect.Open.Condition)
226 }
227
SharedCtor()228 void Open_Condition::SharedCtor() {
229 ::google::protobuf::internal::GetEmptyString();
230 _cached_size_ = 0;
231 condition_key_ = 0u;
232 condition_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
233 op_ = 0;
234 ::memset(_has_bits_, 0, sizeof(_has_bits_));
235 }
236
~Open_Condition()237 Open_Condition::~Open_Condition() {
238 // @@protoc_insertion_point(destructor:Mysqlx.Expect.Open.Condition)
239 SharedDtor();
240 }
241
SharedDtor()242 void Open_Condition::SharedDtor() {
243 if (condition_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
244 delete condition_value_;
245 }
246 if (this != default_instance_) {
247 }
248 }
249
SetCachedSize(int size) const250 void Open_Condition::SetCachedSize(int size) const {
251 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
252 _cached_size_ = size;
253 GOOGLE_SAFE_CONCURRENT_WRITES_END();
254 }
descriptor()255 const ::google::protobuf::Descriptor* Open_Condition::descriptor() {
256 protobuf_AssignDescriptorsOnce();
257 return Open_Condition_descriptor_;
258 }
259
default_instance()260 const Open_Condition& Open_Condition::default_instance() {
261 if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fexpect_2eproto();
262 return *default_instance_;
263 }
264
265 Open_Condition* Open_Condition::default_instance_ = NULL;
266
New() const267 Open_Condition* Open_Condition::New() const {
268 return new Open_Condition;
269 }
270
Clear()271 void Open_Condition::Clear() {
272 #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
273 &reinterpret_cast<Open_Condition*>(16)->f) - \
274 reinterpret_cast<char*>(16))
275
276 #define ZR_(first, last) do { \
277 size_t f = OFFSET_OF_FIELD_(first); \
278 size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
279 ::memset(&first, 0, n); \
280 } while (0)
281
282 if (_has_bits_[0 / 32] & 7) {
283 ZR_(condition_key_, op_);
284 if (has_condition_value()) {
285 if (condition_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
286 condition_value_->clear();
287 }
288 }
289 }
290
291 #undef OFFSET_OF_FIELD_
292 #undef ZR_
293
294 ::memset(_has_bits_, 0, sizeof(_has_bits_));
295 mutable_unknown_fields()->Clear();
296 }
297
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)298 bool Open_Condition::MergePartialFromCodedStream(
299 ::google::protobuf::io::CodedInputStream* input) {
300 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
301 ::google::protobuf::uint32 tag;
302 // @@protoc_insertion_point(parse_start:Mysqlx.Expect.Open.Condition)
303 for (;;) {
304 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
305 tag = p.first;
306 if (!p.second) goto handle_unusual;
307 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
308 // required uint32 condition_key = 1;
309 case 1: {
310 if (tag == 8) {
311 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
312 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
313 input, &condition_key_)));
314 set_has_condition_key();
315 } else {
316 goto handle_unusual;
317 }
318 if (input->ExpectTag(18)) goto parse_condition_value;
319 break;
320 }
321
322 // optional bytes condition_value = 2;
323 case 2: {
324 if (tag == 18) {
325 parse_condition_value:
326 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
327 input, this->mutable_condition_value()));
328 } else {
329 goto handle_unusual;
330 }
331 if (input->ExpectTag(24)) goto parse_op;
332 break;
333 }
334
335 // optional .Mysqlx.Expect.Open.Condition.ConditionOperation op = 3 [default = EXPECT_OP_SET];
336 case 3: {
337 if (tag == 24) {
338 parse_op:
339 int value;
340 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
341 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
342 input, &value)));
343 if (::Mysqlx::Expect::Open_Condition_ConditionOperation_IsValid(value)) {
344 set_op(static_cast< ::Mysqlx::Expect::Open_Condition_ConditionOperation >(value));
345 } else {
346 mutable_unknown_fields()->AddVarint(3, value);
347 }
348 } else {
349 goto handle_unusual;
350 }
351 if (input->ExpectAtEnd()) goto success;
352 break;
353 }
354
355 default: {
356 handle_unusual:
357 if (tag == 0 ||
358 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
359 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
360 goto success;
361 }
362 DO_(::google::protobuf::internal::WireFormat::SkipField(
363 input, tag, mutable_unknown_fields()));
364 break;
365 }
366 }
367 }
368 success:
369 // @@protoc_insertion_point(parse_success:Mysqlx.Expect.Open.Condition)
370 return true;
371 failure:
372 // @@protoc_insertion_point(parse_failure:Mysqlx.Expect.Open.Condition)
373 return false;
374 #undef DO_
375 }
376
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const377 void Open_Condition::SerializeWithCachedSizes(
378 ::google::protobuf::io::CodedOutputStream* output) const {
379 // @@protoc_insertion_point(serialize_start:Mysqlx.Expect.Open.Condition)
380 // required uint32 condition_key = 1;
381 if (has_condition_key()) {
382 ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->condition_key(), output);
383 }
384
385 // optional bytes condition_value = 2;
386 if (has_condition_value()) {
387 ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
388 2, this->condition_value(), output);
389 }
390
391 // optional .Mysqlx.Expect.Open.Condition.ConditionOperation op = 3 [default = EXPECT_OP_SET];
392 if (has_op()) {
393 ::google::protobuf::internal::WireFormatLite::WriteEnum(
394 3, this->op(), output);
395 }
396
397 if (!unknown_fields().empty()) {
398 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
399 unknown_fields(), output);
400 }
401 // @@protoc_insertion_point(serialize_end:Mysqlx.Expect.Open.Condition)
402 }
403
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const404 ::google::protobuf::uint8* Open_Condition::SerializeWithCachedSizesToArray(
405 ::google::protobuf::uint8* target) const {
406 // @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Expect.Open.Condition)
407 // required uint32 condition_key = 1;
408 if (has_condition_key()) {
409 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->condition_key(), target);
410 }
411
412 // optional bytes condition_value = 2;
413 if (has_condition_value()) {
414 target =
415 ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
416 2, this->condition_value(), target);
417 }
418
419 // optional .Mysqlx.Expect.Open.Condition.ConditionOperation op = 3 [default = EXPECT_OP_SET];
420 if (has_op()) {
421 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
422 3, this->op(), target);
423 }
424
425 if (!unknown_fields().empty()) {
426 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
427 unknown_fields(), target);
428 }
429 // @@protoc_insertion_point(serialize_to_array_end:Mysqlx.Expect.Open.Condition)
430 return target;
431 }
432
ByteSize() const433 int Open_Condition::ByteSize() const {
434 int total_size = 0;
435
436 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
437 // required uint32 condition_key = 1;
438 if (has_condition_key()) {
439 total_size += 1 +
440 ::google::protobuf::internal::WireFormatLite::UInt32Size(
441 this->condition_key());
442 }
443
444 // optional bytes condition_value = 2;
445 if (has_condition_value()) {
446 total_size += 1 +
447 ::google::protobuf::internal::WireFormatLite::BytesSize(
448 this->condition_value());
449 }
450
451 // optional .Mysqlx.Expect.Open.Condition.ConditionOperation op = 3 [default = EXPECT_OP_SET];
452 if (has_op()) {
453 total_size += 1 +
454 ::google::protobuf::internal::WireFormatLite::EnumSize(this->op());
455 }
456
457 }
458 if (!unknown_fields().empty()) {
459 total_size +=
460 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
461 unknown_fields());
462 }
463 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
464 _cached_size_ = total_size;
465 GOOGLE_SAFE_CONCURRENT_WRITES_END();
466 return total_size;
467 }
468
MergeFrom(const::google::protobuf::Message & from)469 void Open_Condition::MergeFrom(const ::google::protobuf::Message& from) {
470 GOOGLE_CHECK_NE(&from, this);
471 const Open_Condition* source =
472 ::google::protobuf::internal::dynamic_cast_if_available<const Open_Condition*>(
473 &from);
474 if (source == NULL) {
475 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
476 } else {
477 MergeFrom(*source);
478 }
479 }
480
MergeFrom(const Open_Condition & from)481 void Open_Condition::MergeFrom(const Open_Condition& from) {
482 GOOGLE_CHECK_NE(&from, this);
483 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
484 if (from.has_condition_key()) {
485 set_condition_key(from.condition_key());
486 }
487 if (from.has_condition_value()) {
488 set_condition_value(from.condition_value());
489 }
490 if (from.has_op()) {
491 set_op(from.op());
492 }
493 }
494 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
495 }
496
CopyFrom(const::google::protobuf::Message & from)497 void Open_Condition::CopyFrom(const ::google::protobuf::Message& from) {
498 if (&from == this) return;
499 Clear();
500 MergeFrom(from);
501 }
502
CopyFrom(const Open_Condition & from)503 void Open_Condition::CopyFrom(const Open_Condition& from) {
504 if (&from == this) return;
505 Clear();
506 MergeFrom(from);
507 }
508
IsInitialized() const509 bool Open_Condition::IsInitialized() const {
510 if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
511
512 return true;
513 }
514
Swap(Open_Condition * other)515 void Open_Condition::Swap(Open_Condition* other) {
516 if (other != this) {
517 std::swap(condition_key_, other->condition_key_);
518 std::swap(condition_value_, other->condition_value_);
519 std::swap(op_, other->op_);
520 std::swap(_has_bits_[0], other->_has_bits_[0]);
521 _unknown_fields_.Swap(&other->_unknown_fields_);
522 std::swap(_cached_size_, other->_cached_size_);
523 }
524 }
525
GetMetadata() const526 ::google::protobuf::Metadata Open_Condition::GetMetadata() const {
527 protobuf_AssignDescriptorsOnce();
528 ::google::protobuf::Metadata metadata;
529 metadata.descriptor = Open_Condition_descriptor_;
530 metadata.reflection = Open_Condition_reflection_;
531 return metadata;
532 }
533
534
535 // -------------------------------------------------------------------
536
537 #ifndef _MSC_VER
538 const int Open::kOpFieldNumber;
539 const int Open::kCondFieldNumber;
540 #endif // !_MSC_VER
541
Open()542 Open::Open()
543 : ::google::protobuf::Message() {
544 SharedCtor();
545 // @@protoc_insertion_point(constructor:Mysqlx.Expect.Open)
546 }
547
InitAsDefaultInstance()548 void Open::InitAsDefaultInstance() {
549 }
550
Open(const Open & from)551 Open::Open(const Open& from)
552 : ::google::protobuf::Message() {
553 SharedCtor();
554 MergeFrom(from);
555 // @@protoc_insertion_point(copy_constructor:Mysqlx.Expect.Open)
556 }
557
SharedCtor()558 void Open::SharedCtor() {
559 _cached_size_ = 0;
560 op_ = 0;
561 ::memset(_has_bits_, 0, sizeof(_has_bits_));
562 }
563
~Open()564 Open::~Open() {
565 // @@protoc_insertion_point(destructor:Mysqlx.Expect.Open)
566 SharedDtor();
567 }
568
SharedDtor()569 void Open::SharedDtor() {
570 if (this != default_instance_) {
571 }
572 }
573
SetCachedSize(int size) const574 void Open::SetCachedSize(int size) const {
575 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
576 _cached_size_ = size;
577 GOOGLE_SAFE_CONCURRENT_WRITES_END();
578 }
descriptor()579 const ::google::protobuf::Descriptor* Open::descriptor() {
580 protobuf_AssignDescriptorsOnce();
581 return Open_descriptor_;
582 }
583
default_instance()584 const Open& Open::default_instance() {
585 if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fexpect_2eproto();
586 return *default_instance_;
587 }
588
589 Open* Open::default_instance_ = NULL;
590
New() const591 Open* Open::New() const {
592 return new Open;
593 }
594
Clear()595 void Open::Clear() {
596 op_ = 0;
597 cond_.Clear();
598 ::memset(_has_bits_, 0, sizeof(_has_bits_));
599 mutable_unknown_fields()->Clear();
600 }
601
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)602 bool Open::MergePartialFromCodedStream(
603 ::google::protobuf::io::CodedInputStream* input) {
604 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
605 ::google::protobuf::uint32 tag;
606 // @@protoc_insertion_point(parse_start:Mysqlx.Expect.Open)
607 for (;;) {
608 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
609 tag = p.first;
610 if (!p.second) goto handle_unusual;
611 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
612 // optional .Mysqlx.Expect.Open.CtxOperation op = 1 [default = EXPECT_CTX_COPY_PREV];
613 case 1: {
614 if (tag == 8) {
615 int value;
616 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
617 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
618 input, &value)));
619 if (::Mysqlx::Expect::Open_CtxOperation_IsValid(value)) {
620 set_op(static_cast< ::Mysqlx::Expect::Open_CtxOperation >(value));
621 } else {
622 mutable_unknown_fields()->AddVarint(1, value);
623 }
624 } else {
625 goto handle_unusual;
626 }
627 if (input->ExpectTag(18)) goto parse_cond;
628 break;
629 }
630
631 // repeated .Mysqlx.Expect.Open.Condition cond = 2;
632 case 2: {
633 if (tag == 18) {
634 parse_cond:
635 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
636 input, add_cond()));
637 } else {
638 goto handle_unusual;
639 }
640 if (input->ExpectTag(18)) goto parse_cond;
641 if (input->ExpectAtEnd()) goto success;
642 break;
643 }
644
645 default: {
646 handle_unusual:
647 if (tag == 0 ||
648 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
649 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
650 goto success;
651 }
652 DO_(::google::protobuf::internal::WireFormat::SkipField(
653 input, tag, mutable_unknown_fields()));
654 break;
655 }
656 }
657 }
658 success:
659 // @@protoc_insertion_point(parse_success:Mysqlx.Expect.Open)
660 return true;
661 failure:
662 // @@protoc_insertion_point(parse_failure:Mysqlx.Expect.Open)
663 return false;
664 #undef DO_
665 }
666
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const667 void Open::SerializeWithCachedSizes(
668 ::google::protobuf::io::CodedOutputStream* output) const {
669 // @@protoc_insertion_point(serialize_start:Mysqlx.Expect.Open)
670 // optional .Mysqlx.Expect.Open.CtxOperation op = 1 [default = EXPECT_CTX_COPY_PREV];
671 if (has_op()) {
672 ::google::protobuf::internal::WireFormatLite::WriteEnum(
673 1, this->op(), output);
674 }
675
676 // repeated .Mysqlx.Expect.Open.Condition cond = 2;
677 for (int i = 0; i < this->cond_size(); i++) {
678 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
679 2, this->cond(i), output);
680 }
681
682 if (!unknown_fields().empty()) {
683 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
684 unknown_fields(), output);
685 }
686 // @@protoc_insertion_point(serialize_end:Mysqlx.Expect.Open)
687 }
688
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const689 ::google::protobuf::uint8* Open::SerializeWithCachedSizesToArray(
690 ::google::protobuf::uint8* target) const {
691 // @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Expect.Open)
692 // optional .Mysqlx.Expect.Open.CtxOperation op = 1 [default = EXPECT_CTX_COPY_PREV];
693 if (has_op()) {
694 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
695 1, this->op(), target);
696 }
697
698 // repeated .Mysqlx.Expect.Open.Condition cond = 2;
699 for (int i = 0; i < this->cond_size(); i++) {
700 target = ::google::protobuf::internal::WireFormatLite::
701 WriteMessageNoVirtualToArray(
702 2, this->cond(i), target);
703 }
704
705 if (!unknown_fields().empty()) {
706 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
707 unknown_fields(), target);
708 }
709 // @@protoc_insertion_point(serialize_to_array_end:Mysqlx.Expect.Open)
710 return target;
711 }
712
ByteSize() const713 int Open::ByteSize() const {
714 int total_size = 0;
715
716 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
717 // optional .Mysqlx.Expect.Open.CtxOperation op = 1 [default = EXPECT_CTX_COPY_PREV];
718 if (has_op()) {
719 total_size += 1 +
720 ::google::protobuf::internal::WireFormatLite::EnumSize(this->op());
721 }
722
723 }
724 // repeated .Mysqlx.Expect.Open.Condition cond = 2;
725 total_size += 1 * this->cond_size();
726 for (int i = 0; i < this->cond_size(); i++) {
727 total_size +=
728 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
729 this->cond(i));
730 }
731
732 if (!unknown_fields().empty()) {
733 total_size +=
734 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
735 unknown_fields());
736 }
737 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
738 _cached_size_ = total_size;
739 GOOGLE_SAFE_CONCURRENT_WRITES_END();
740 return total_size;
741 }
742
MergeFrom(const::google::protobuf::Message & from)743 void Open::MergeFrom(const ::google::protobuf::Message& from) {
744 GOOGLE_CHECK_NE(&from, this);
745 const Open* source =
746 ::google::protobuf::internal::dynamic_cast_if_available<const Open*>(
747 &from);
748 if (source == NULL) {
749 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
750 } else {
751 MergeFrom(*source);
752 }
753 }
754
MergeFrom(const Open & from)755 void Open::MergeFrom(const Open& from) {
756 GOOGLE_CHECK_NE(&from, this);
757 cond_.MergeFrom(from.cond_);
758 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
759 if (from.has_op()) {
760 set_op(from.op());
761 }
762 }
763 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
764 }
765
CopyFrom(const::google::protobuf::Message & from)766 void Open::CopyFrom(const ::google::protobuf::Message& from) {
767 if (&from == this) return;
768 Clear();
769 MergeFrom(from);
770 }
771
CopyFrom(const Open & from)772 void Open::CopyFrom(const Open& from) {
773 if (&from == this) return;
774 Clear();
775 MergeFrom(from);
776 }
777
IsInitialized() const778 bool Open::IsInitialized() const {
779
780 if (!::google::protobuf::internal::AllAreInitialized(this->cond())) return false;
781 return true;
782 }
783
Swap(Open * other)784 void Open::Swap(Open* other) {
785 if (other != this) {
786 std::swap(op_, other->op_);
787 cond_.Swap(&other->cond_);
788 std::swap(_has_bits_[0], other->_has_bits_[0]);
789 _unknown_fields_.Swap(&other->_unknown_fields_);
790 std::swap(_cached_size_, other->_cached_size_);
791 }
792 }
793
GetMetadata() const794 ::google::protobuf::Metadata Open::GetMetadata() const {
795 protobuf_AssignDescriptorsOnce();
796 ::google::protobuf::Metadata metadata;
797 metadata.descriptor = Open_descriptor_;
798 metadata.reflection = Open_reflection_;
799 return metadata;
800 }
801
802
803 // ===================================================================
804
805 #ifndef _MSC_VER
806 #endif // !_MSC_VER
807
Close()808 Close::Close()
809 : ::google::protobuf::Message() {
810 SharedCtor();
811 // @@protoc_insertion_point(constructor:Mysqlx.Expect.Close)
812 }
813
InitAsDefaultInstance()814 void Close::InitAsDefaultInstance() {
815 }
816
Close(const Close & from)817 Close::Close(const Close& from)
818 : ::google::protobuf::Message() {
819 SharedCtor();
820 MergeFrom(from);
821 // @@protoc_insertion_point(copy_constructor:Mysqlx.Expect.Close)
822 }
823
SharedCtor()824 void Close::SharedCtor() {
825 _cached_size_ = 0;
826 ::memset(_has_bits_, 0, sizeof(_has_bits_));
827 }
828
~Close()829 Close::~Close() {
830 // @@protoc_insertion_point(destructor:Mysqlx.Expect.Close)
831 SharedDtor();
832 }
833
SharedDtor()834 void Close::SharedDtor() {
835 if (this != default_instance_) {
836 }
837 }
838
SetCachedSize(int size) const839 void Close::SetCachedSize(int size) const {
840 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
841 _cached_size_ = size;
842 GOOGLE_SAFE_CONCURRENT_WRITES_END();
843 }
descriptor()844 const ::google::protobuf::Descriptor* Close::descriptor() {
845 protobuf_AssignDescriptorsOnce();
846 return Close_descriptor_;
847 }
848
default_instance()849 const Close& Close::default_instance() {
850 if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fexpect_2eproto();
851 return *default_instance_;
852 }
853
854 Close* Close::default_instance_ = NULL;
855
New() const856 Close* Close::New() const {
857 return new Close;
858 }
859
Clear()860 void Close::Clear() {
861 ::memset(_has_bits_, 0, sizeof(_has_bits_));
862 mutable_unknown_fields()->Clear();
863 }
864
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)865 bool Close::MergePartialFromCodedStream(
866 ::google::protobuf::io::CodedInputStream* input) {
867 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
868 ::google::protobuf::uint32 tag;
869 // @@protoc_insertion_point(parse_start:Mysqlx.Expect.Close)
870 for (;;) {
871 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
872 tag = p.first;
873 if (!p.second) goto handle_unusual;
874 handle_unusual:
875 if (tag == 0 ||
876 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
877 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
878 goto success;
879 }
880 DO_(::google::protobuf::internal::WireFormat::SkipField(
881 input, tag, mutable_unknown_fields()));
882 }
883 success:
884 // @@protoc_insertion_point(parse_success:Mysqlx.Expect.Close)
885 return true;
886 failure:
887 // @@protoc_insertion_point(parse_failure:Mysqlx.Expect.Close)
888 return false;
889 #undef DO_
890 }
891
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const892 void Close::SerializeWithCachedSizes(
893 ::google::protobuf::io::CodedOutputStream* output) const {
894 // @@protoc_insertion_point(serialize_start:Mysqlx.Expect.Close)
895 if (!unknown_fields().empty()) {
896 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
897 unknown_fields(), output);
898 }
899 // @@protoc_insertion_point(serialize_end:Mysqlx.Expect.Close)
900 }
901
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const902 ::google::protobuf::uint8* Close::SerializeWithCachedSizesToArray(
903 ::google::protobuf::uint8* target) const {
904 // @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Expect.Close)
905 if (!unknown_fields().empty()) {
906 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
907 unknown_fields(), target);
908 }
909 // @@protoc_insertion_point(serialize_to_array_end:Mysqlx.Expect.Close)
910 return target;
911 }
912
ByteSize() const913 int Close::ByteSize() const {
914 int total_size = 0;
915
916 if (!unknown_fields().empty()) {
917 total_size +=
918 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
919 unknown_fields());
920 }
921 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
922 _cached_size_ = total_size;
923 GOOGLE_SAFE_CONCURRENT_WRITES_END();
924 return total_size;
925 }
926
MergeFrom(const::google::protobuf::Message & from)927 void Close::MergeFrom(const ::google::protobuf::Message& from) {
928 GOOGLE_CHECK_NE(&from, this);
929 const Close* source =
930 ::google::protobuf::internal::dynamic_cast_if_available<const Close*>(
931 &from);
932 if (source == NULL) {
933 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
934 } else {
935 MergeFrom(*source);
936 }
937 }
938
MergeFrom(const Close & from)939 void Close::MergeFrom(const Close& from) {
940 GOOGLE_CHECK_NE(&from, this);
941 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
942 }
943
CopyFrom(const::google::protobuf::Message & from)944 void Close::CopyFrom(const ::google::protobuf::Message& from) {
945 if (&from == this) return;
946 Clear();
947 MergeFrom(from);
948 }
949
CopyFrom(const Close & from)950 void Close::CopyFrom(const Close& from) {
951 if (&from == this) return;
952 Clear();
953 MergeFrom(from);
954 }
955
IsInitialized() const956 bool Close::IsInitialized() const {
957
958 return true;
959 }
960
Swap(Close * other)961 void Close::Swap(Close* other) {
962 if (other != this) {
963 _unknown_fields_.Swap(&other->_unknown_fields_);
964 std::swap(_cached_size_, other->_cached_size_);
965 }
966 }
967
GetMetadata() const968 ::google::protobuf::Metadata Close::GetMetadata() const {
969 protobuf_AssignDescriptorsOnce();
970 ::google::protobuf::Metadata metadata;
971 metadata.descriptor = Close_descriptor_;
972 metadata.reflection = Close_reflection_;
973 return metadata;
974 }
975
976
977 // @@protoc_insertion_point(namespace_scope)
978
979 } // namespace Expect
980 } // namespace Mysqlx
981
982 // @@protoc_insertion_point(global_scope)
983