1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: mysqlx_expr.proto
3 
4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 #include "mysqlx_expr.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 Expr {
21 
22 namespace {
23 
24 const ::google::protobuf::Descriptor* Expr_descriptor_ = NULL;
25 const ::google::protobuf::internal::GeneratedMessageReflection*
26   Expr_reflection_ = NULL;
27 const ::google::protobuf::EnumDescriptor* Expr_Type_descriptor_ = NULL;
28 const ::google::protobuf::Descriptor* Identifier_descriptor_ = NULL;
29 const ::google::protobuf::internal::GeneratedMessageReflection*
30   Identifier_reflection_ = NULL;
31 const ::google::protobuf::Descriptor* DocumentPathItem_descriptor_ = NULL;
32 const ::google::protobuf::internal::GeneratedMessageReflection*
33   DocumentPathItem_reflection_ = NULL;
34 const ::google::protobuf::EnumDescriptor* DocumentPathItem_Type_descriptor_ = NULL;
35 const ::google::protobuf::Descriptor* ColumnIdentifier_descriptor_ = NULL;
36 const ::google::protobuf::internal::GeneratedMessageReflection*
37   ColumnIdentifier_reflection_ = NULL;
38 const ::google::protobuf::Descriptor* FunctionCall_descriptor_ = NULL;
39 const ::google::protobuf::internal::GeneratedMessageReflection*
40   FunctionCall_reflection_ = NULL;
41 const ::google::protobuf::Descriptor* Operator_descriptor_ = NULL;
42 const ::google::protobuf::internal::GeneratedMessageReflection*
43   Operator_reflection_ = NULL;
44 const ::google::protobuf::Descriptor* Object_descriptor_ = NULL;
45 const ::google::protobuf::internal::GeneratedMessageReflection*
46   Object_reflection_ = NULL;
47 const ::google::protobuf::Descriptor* Object_ObjectField_descriptor_ = NULL;
48 const ::google::protobuf::internal::GeneratedMessageReflection*
49   Object_ObjectField_reflection_ = NULL;
50 const ::google::protobuf::Descriptor* Array_descriptor_ = NULL;
51 const ::google::protobuf::internal::GeneratedMessageReflection*
52   Array_reflection_ = NULL;
53 
54 }  // namespace
55 
56 
protobuf_AssignDesc_mysqlx_5fexpr_2eproto()57 void protobuf_AssignDesc_mysqlx_5fexpr_2eproto() {
58   protobuf_AddDesc_mysqlx_5fexpr_2eproto();
59   const ::google::protobuf::FileDescriptor* file =
60     ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
61       "mysqlx_expr.proto");
62   GOOGLE_CHECK(file != NULL);
63   Expr_descriptor_ = file->message_type(0);
64   static const int Expr_offsets_[9] = {
65     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Expr, type_),
66     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Expr, identifier_),
67     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Expr, variable_),
68     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Expr, literal_),
69     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Expr, function_call_),
70     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Expr, operator__),
71     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Expr, position_),
72     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Expr, object_),
73     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Expr, array_),
74   };
75   Expr_reflection_ =
76     new ::google::protobuf::internal::GeneratedMessageReflection(
77       Expr_descriptor_,
78       Expr::default_instance_,
79       Expr_offsets_,
80       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Expr, _has_bits_[0]),
81       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Expr, _unknown_fields_),
82       -1,
83       ::google::protobuf::DescriptorPool::generated_pool(),
84       ::google::protobuf::MessageFactory::generated_factory(),
85       sizeof(Expr));
86   Expr_Type_descriptor_ = Expr_descriptor_->enum_type(0);
87   Identifier_descriptor_ = file->message_type(1);
88   static const int Identifier_offsets_[2] = {
89     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Identifier, name_),
90     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Identifier, schema_name_),
91   };
92   Identifier_reflection_ =
93     new ::google::protobuf::internal::GeneratedMessageReflection(
94       Identifier_descriptor_,
95       Identifier::default_instance_,
96       Identifier_offsets_,
97       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Identifier, _has_bits_[0]),
98       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Identifier, _unknown_fields_),
99       -1,
100       ::google::protobuf::DescriptorPool::generated_pool(),
101       ::google::protobuf::MessageFactory::generated_factory(),
102       sizeof(Identifier));
103   DocumentPathItem_descriptor_ = file->message_type(2);
104   static const int DocumentPathItem_offsets_[3] = {
105     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DocumentPathItem, type_),
106     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DocumentPathItem, value_),
107     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DocumentPathItem, index_),
108   };
109   DocumentPathItem_reflection_ =
110     new ::google::protobuf::internal::GeneratedMessageReflection(
111       DocumentPathItem_descriptor_,
112       DocumentPathItem::default_instance_,
113       DocumentPathItem_offsets_,
114       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DocumentPathItem, _has_bits_[0]),
115       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DocumentPathItem, _unknown_fields_),
116       -1,
117       ::google::protobuf::DescriptorPool::generated_pool(),
118       ::google::protobuf::MessageFactory::generated_factory(),
119       sizeof(DocumentPathItem));
120   DocumentPathItem_Type_descriptor_ = DocumentPathItem_descriptor_->enum_type(0);
121   ColumnIdentifier_descriptor_ = file->message_type(3);
122   static const int ColumnIdentifier_offsets_[4] = {
123     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnIdentifier, document_path_),
124     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnIdentifier, name_),
125     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnIdentifier, table_name_),
126     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnIdentifier, schema_name_),
127   };
128   ColumnIdentifier_reflection_ =
129     new ::google::protobuf::internal::GeneratedMessageReflection(
130       ColumnIdentifier_descriptor_,
131       ColumnIdentifier::default_instance_,
132       ColumnIdentifier_offsets_,
133       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnIdentifier, _has_bits_[0]),
134       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnIdentifier, _unknown_fields_),
135       -1,
136       ::google::protobuf::DescriptorPool::generated_pool(),
137       ::google::protobuf::MessageFactory::generated_factory(),
138       sizeof(ColumnIdentifier));
139   FunctionCall_descriptor_ = file->message_type(4);
140   static const int FunctionCall_offsets_[2] = {
141     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionCall, name_),
142     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionCall, param_),
143   };
144   FunctionCall_reflection_ =
145     new ::google::protobuf::internal::GeneratedMessageReflection(
146       FunctionCall_descriptor_,
147       FunctionCall::default_instance_,
148       FunctionCall_offsets_,
149       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionCall, _has_bits_[0]),
150       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionCall, _unknown_fields_),
151       -1,
152       ::google::protobuf::DescriptorPool::generated_pool(),
153       ::google::protobuf::MessageFactory::generated_factory(),
154       sizeof(FunctionCall));
155   Operator_descriptor_ = file->message_type(5);
156   static const int Operator_offsets_[2] = {
157     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Operator, name_),
158     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Operator, param_),
159   };
160   Operator_reflection_ =
161     new ::google::protobuf::internal::GeneratedMessageReflection(
162       Operator_descriptor_,
163       Operator::default_instance_,
164       Operator_offsets_,
165       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Operator, _has_bits_[0]),
166       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Operator, _unknown_fields_),
167       -1,
168       ::google::protobuf::DescriptorPool::generated_pool(),
169       ::google::protobuf::MessageFactory::generated_factory(),
170       sizeof(Operator));
171   Object_descriptor_ = file->message_type(6);
172   static const int Object_offsets_[1] = {
173     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Object, fld_),
174   };
175   Object_reflection_ =
176     new ::google::protobuf::internal::GeneratedMessageReflection(
177       Object_descriptor_,
178       Object::default_instance_,
179       Object_offsets_,
180       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Object, _has_bits_[0]),
181       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Object, _unknown_fields_),
182       -1,
183       ::google::protobuf::DescriptorPool::generated_pool(),
184       ::google::protobuf::MessageFactory::generated_factory(),
185       sizeof(Object));
186   Object_ObjectField_descriptor_ = Object_descriptor_->nested_type(0);
187   static const int Object_ObjectField_offsets_[2] = {
188     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Object_ObjectField, key_),
189     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Object_ObjectField, value_),
190   };
191   Object_ObjectField_reflection_ =
192     new ::google::protobuf::internal::GeneratedMessageReflection(
193       Object_ObjectField_descriptor_,
194       Object_ObjectField::default_instance_,
195       Object_ObjectField_offsets_,
196       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Object_ObjectField, _has_bits_[0]),
197       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Object_ObjectField, _unknown_fields_),
198       -1,
199       ::google::protobuf::DescriptorPool::generated_pool(),
200       ::google::protobuf::MessageFactory::generated_factory(),
201       sizeof(Object_ObjectField));
202   Array_descriptor_ = file->message_type(7);
203   static const int Array_offsets_[1] = {
204     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Array, value_),
205   };
206   Array_reflection_ =
207     new ::google::protobuf::internal::GeneratedMessageReflection(
208       Array_descriptor_,
209       Array::default_instance_,
210       Array_offsets_,
211       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Array, _has_bits_[0]),
212       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Array, _unknown_fields_),
213       -1,
214       ::google::protobuf::DescriptorPool::generated_pool(),
215       ::google::protobuf::MessageFactory::generated_factory(),
216       sizeof(Array));
217 }
218 
219 namespace {
220 
221 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
protobuf_AssignDescriptorsOnce()222 inline void protobuf_AssignDescriptorsOnce() {
223   ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
224                  &protobuf_AssignDesc_mysqlx_5fexpr_2eproto);
225 }
226 
protobuf_RegisterTypes(const::std::string &)227 void protobuf_RegisterTypes(const ::std::string&) {
228   protobuf_AssignDescriptorsOnce();
229   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
230     Expr_descriptor_, &Expr::default_instance());
231   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
232     Identifier_descriptor_, &Identifier::default_instance());
233   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
234     DocumentPathItem_descriptor_, &DocumentPathItem::default_instance());
235   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
236     ColumnIdentifier_descriptor_, &ColumnIdentifier::default_instance());
237   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
238     FunctionCall_descriptor_, &FunctionCall::default_instance());
239   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
240     Operator_descriptor_, &Operator::default_instance());
241   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
242     Object_descriptor_, &Object::default_instance());
243   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
244     Object_ObjectField_descriptor_, &Object_ObjectField::default_instance());
245   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
246     Array_descriptor_, &Array::default_instance());
247 }
248 
249 }  // namespace
250 
protobuf_ShutdownFile_mysqlx_5fexpr_2eproto()251 void protobuf_ShutdownFile_mysqlx_5fexpr_2eproto() {
252   delete Expr::default_instance_;
253   delete Expr_reflection_;
254   delete Identifier::default_instance_;
255   delete Identifier_reflection_;
256   delete DocumentPathItem::default_instance_;
257   delete DocumentPathItem_reflection_;
258   delete ColumnIdentifier::default_instance_;
259   delete ColumnIdentifier_reflection_;
260   delete FunctionCall::default_instance_;
261   delete FunctionCall_reflection_;
262   delete Operator::default_instance_;
263   delete Operator_reflection_;
264   delete Object::default_instance_;
265   delete Object_reflection_;
266   delete Object_ObjectField::default_instance_;
267   delete Object_ObjectField_reflection_;
268   delete Array::default_instance_;
269   delete Array_reflection_;
270 }
271 
protobuf_AddDesc_mysqlx_5fexpr_2eproto()272 void protobuf_AddDesc_mysqlx_5fexpr_2eproto() {
273   static bool already_here = false;
274   if (already_here) return;
275   already_here = true;
276   GOOGLE_PROTOBUF_VERIFY_VERSION;
277 
278   ::Mysqlx::Datatypes::protobuf_AddDesc_mysqlx_5fdatatypes_2eproto();
279   ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
280     "\n\021mysqlx_expr.proto\022\013Mysqlx.Expr\032\026mysqlx"
281     "_datatypes.proto\"\304\003\n\004Expr\022$\n\004type\030\001 \002(\0162"
282     "\026.Mysqlx.Expr.Expr.Type\0221\n\nidentifier\030\002 "
283     "\001(\0132\035.Mysqlx.Expr.ColumnIdentifier\022\020\n\010va"
284     "riable\030\003 \001(\t\022)\n\007literal\030\004 \001(\0132\030.Mysqlx.D"
285     "atatypes.Scalar\0220\n\rfunction_call\030\005 \001(\0132\031"
286     ".Mysqlx.Expr.FunctionCall\022\'\n\010operator\030\006 "
287     "\001(\0132\025.Mysqlx.Expr.Operator\022\020\n\010position\030\007"
288     " \001(\r\022#\n\006object\030\010 \001(\0132\023.Mysqlx.Expr.Objec"
289     "t\022!\n\005array\030\t \001(\0132\022.Mysqlx.Expr.Array\"q\n\004"
290     "Type\022\t\n\005IDENT\020\001\022\013\n\007LITERAL\020\002\022\014\n\010VARIABLE"
291     "\020\003\022\r\n\tFUNC_CALL\020\004\022\014\n\010OPERATOR\020\005\022\017\n\013PLACE"
292     "HOLDER\020\006\022\n\n\006OBJECT\020\007\022\t\n\005ARRAY\020\010\"/\n\nIdent"
293     "ifier\022\014\n\004name\030\001 \002(\t\022\023\n\013schema_name\030\002 \001(\t"
294     "\"\313\001\n\020DocumentPathItem\0220\n\004type\030\001 \002(\0162\".My"
295     "sqlx.Expr.DocumentPathItem.Type\022\r\n\005value"
296     "\030\002 \001(\t\022\r\n\005index\030\003 \001(\r\"g\n\004Type\022\n\n\006MEMBER\020"
297     "\001\022\023\n\017MEMBER_ASTERISK\020\002\022\017\n\013ARRAY_INDEX\020\003\022"
298     "\030\n\024ARRAY_INDEX_ASTERISK\020\004\022\023\n\017DOUBLE_ASTE"
299     "RISK\020\005\"\177\n\020ColumnIdentifier\0224\n\rdocument_p"
300     "ath\030\001 \003(\0132\035.Mysqlx.Expr.DocumentPathItem"
301     "\022\014\n\004name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022\023\n\013sc"
302     "hema_name\030\004 \001(\t\"W\n\014FunctionCall\022%\n\004name\030"
303     "\001 \002(\0132\027.Mysqlx.Expr.Identifier\022 \n\005param\030"
304     "\002 \003(\0132\021.Mysqlx.Expr.Expr\":\n\010Operator\022\014\n\004"
305     "name\030\001 \002(\t\022 \n\005param\030\002 \003(\0132\021.Mysqlx.Expr."
306     "Expr\"t\n\006Object\022,\n\003fld\030\001 \003(\0132\037.Mysqlx.Exp"
307     "r.Object.ObjectField\032<\n\013ObjectField\022\013\n\003k"
308     "ey\030\001 \002(\t\022 \n\005value\030\002 \002(\0132\021.Mysqlx.Expr.Ex"
309     "pr\")\n\005Array\022 \n\005value\030\001 \003(\0132\021.Mysqlx.Expr"
310     ".ExprB\036\n\034com.mysql.cj.mysqlx.protobuf", 1237);
311   ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
312     "mysqlx_expr.proto", &protobuf_RegisterTypes);
313   Expr::default_instance_ = new Expr();
314   Identifier::default_instance_ = new Identifier();
315   DocumentPathItem::default_instance_ = new DocumentPathItem();
316   ColumnIdentifier::default_instance_ = new ColumnIdentifier();
317   FunctionCall::default_instance_ = new FunctionCall();
318   Operator::default_instance_ = new Operator();
319   Object::default_instance_ = new Object();
320   Object_ObjectField::default_instance_ = new Object_ObjectField();
321   Array::default_instance_ = new Array();
322   Expr::default_instance_->InitAsDefaultInstance();
323   Identifier::default_instance_->InitAsDefaultInstance();
324   DocumentPathItem::default_instance_->InitAsDefaultInstance();
325   ColumnIdentifier::default_instance_->InitAsDefaultInstance();
326   FunctionCall::default_instance_->InitAsDefaultInstance();
327   Operator::default_instance_->InitAsDefaultInstance();
328   Object::default_instance_->InitAsDefaultInstance();
329   Object_ObjectField::default_instance_->InitAsDefaultInstance();
330   Array::default_instance_->InitAsDefaultInstance();
331   ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_mysqlx_5fexpr_2eproto);
332 }
333 
334 // Force AddDescriptors() to be called at static initialization time.
335 struct StaticDescriptorInitializer_mysqlx_5fexpr_2eproto {
StaticDescriptorInitializer_mysqlx_5fexpr_2eprotoMysqlx::Expr::StaticDescriptorInitializer_mysqlx_5fexpr_2eproto336   StaticDescriptorInitializer_mysqlx_5fexpr_2eproto() {
337     protobuf_AddDesc_mysqlx_5fexpr_2eproto();
338   }
339 } static_descriptor_initializer_mysqlx_5fexpr_2eproto_;
340 
341 // ===================================================================
342 
Expr_Type_descriptor()343 const ::google::protobuf::EnumDescriptor* Expr_Type_descriptor() {
344   protobuf_AssignDescriptorsOnce();
345   return Expr_Type_descriptor_;
346 }
Expr_Type_IsValid(int value)347 bool Expr_Type_IsValid(int value) {
348   switch(value) {
349     case 1:
350     case 2:
351     case 3:
352     case 4:
353     case 5:
354     case 6:
355     case 7:
356     case 8:
357       return true;
358     default:
359       return false;
360   }
361 }
362 
363 #ifndef _MSC_VER
364 const Expr_Type Expr::IDENT;
365 const Expr_Type Expr::LITERAL;
366 const Expr_Type Expr::VARIABLE;
367 const Expr_Type Expr::FUNC_CALL;
368 const Expr_Type Expr::OPERATOR;
369 const Expr_Type Expr::PLACEHOLDER;
370 const Expr_Type Expr::OBJECT;
371 const Expr_Type Expr::ARRAY;
372 const Expr_Type Expr::Type_MIN;
373 const Expr_Type Expr::Type_MAX;
374 const int Expr::Type_ARRAYSIZE;
375 #endif  // _MSC_VER
376 #ifndef _MSC_VER
377 const int Expr::kTypeFieldNumber;
378 const int Expr::kIdentifierFieldNumber;
379 const int Expr::kVariableFieldNumber;
380 const int Expr::kLiteralFieldNumber;
381 const int Expr::kFunctionCallFieldNumber;
382 const int Expr::kOperatorFieldNumber;
383 const int Expr::kPositionFieldNumber;
384 const int Expr::kObjectFieldNumber;
385 const int Expr::kArrayFieldNumber;
386 #endif  // !_MSC_VER
387 
Expr()388 Expr::Expr()
389   : ::google::protobuf::Message() {
390   SharedCtor();
391   // @@protoc_insertion_point(constructor:Mysqlx.Expr.Expr)
392 }
393 
InitAsDefaultInstance()394 void Expr::InitAsDefaultInstance() {
395   identifier_ = const_cast< ::Mysqlx::Expr::ColumnIdentifier*>(&::Mysqlx::Expr::ColumnIdentifier::default_instance());
396   literal_ = const_cast< ::Mysqlx::Datatypes::Scalar*>(&::Mysqlx::Datatypes::Scalar::default_instance());
397   function_call_ = const_cast< ::Mysqlx::Expr::FunctionCall*>(&::Mysqlx::Expr::FunctionCall::default_instance());
398   operator__ = const_cast< ::Mysqlx::Expr::Operator*>(&::Mysqlx::Expr::Operator::default_instance());
399   object_ = const_cast< ::Mysqlx::Expr::Object*>(&::Mysqlx::Expr::Object::default_instance());
400   array_ = const_cast< ::Mysqlx::Expr::Array*>(&::Mysqlx::Expr::Array::default_instance());
401 }
402 
Expr(const Expr & from)403 Expr::Expr(const Expr& from)
404   : ::google::protobuf::Message() {
405   SharedCtor();
406   MergeFrom(from);
407   // @@protoc_insertion_point(copy_constructor:Mysqlx.Expr.Expr)
408 }
409 
SharedCtor()410 void Expr::SharedCtor() {
411   ::google::protobuf::internal::GetEmptyString();
412   _cached_size_ = 0;
413   type_ = 1;
414   identifier_ = NULL;
415   variable_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
416   literal_ = NULL;
417   function_call_ = NULL;
418   operator__ = NULL;
419   position_ = 0u;
420   object_ = NULL;
421   array_ = NULL;
422   ::memset(_has_bits_, 0, sizeof(_has_bits_));
423 }
424 
~Expr()425 Expr::~Expr() {
426   // @@protoc_insertion_point(destructor:Mysqlx.Expr.Expr)
427   SharedDtor();
428 }
429 
SharedDtor()430 void Expr::SharedDtor() {
431   if (variable_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
432     delete variable_;
433   }
434   if (this != default_instance_) {
435     delete identifier_;
436     delete literal_;
437     delete function_call_;
438     delete operator__;
439     delete object_;
440     delete array_;
441   }
442 }
443 
SetCachedSize(int size) const444 void Expr::SetCachedSize(int size) const {
445   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
446   _cached_size_ = size;
447   GOOGLE_SAFE_CONCURRENT_WRITES_END();
448 }
descriptor()449 const ::google::protobuf::Descriptor* Expr::descriptor() {
450   protobuf_AssignDescriptorsOnce();
451   return Expr_descriptor_;
452 }
453 
default_instance()454 const Expr& Expr::default_instance() {
455   if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fexpr_2eproto();
456   return *default_instance_;
457 }
458 
459 Expr* Expr::default_instance_ = NULL;
460 
New() const461 Expr* Expr::New() const {
462   return new Expr;
463 }
464 
Clear()465 void Expr::Clear() {
466   if (_has_bits_[0 / 32] & 255) {
467     type_ = 1;
468     if (has_identifier()) {
469       if (identifier_ != NULL) identifier_->::Mysqlx::Expr::ColumnIdentifier::Clear();
470     }
471     if (has_variable()) {
472       if (variable_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
473         variable_->clear();
474       }
475     }
476     if (has_literal()) {
477       if (literal_ != NULL) literal_->::Mysqlx::Datatypes::Scalar::Clear();
478     }
479     if (has_function_call()) {
480       if (function_call_ != NULL) function_call_->::Mysqlx::Expr::FunctionCall::Clear();
481     }
482     if (has_operator_()) {
483       if (operator__ != NULL) operator__->::Mysqlx::Expr::Operator::Clear();
484     }
485     position_ = 0u;
486     if (has_object()) {
487       if (object_ != NULL) object_->::Mysqlx::Expr::Object::Clear();
488     }
489   }
490   if (has_array()) {
491     if (array_ != NULL) array_->::Mysqlx::Expr::Array::Clear();
492   }
493   ::memset(_has_bits_, 0, sizeof(_has_bits_));
494   mutable_unknown_fields()->Clear();
495 }
496 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)497 bool Expr::MergePartialFromCodedStream(
498     ::google::protobuf::io::CodedInputStream* input) {
499 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
500   ::google::protobuf::uint32 tag;
501   // @@protoc_insertion_point(parse_start:Mysqlx.Expr.Expr)
502   for (;;) {
503     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
504     tag = p.first;
505     if (!p.second) goto handle_unusual;
506     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
507       // required .Mysqlx.Expr.Expr.Type type = 1;
508       case 1: {
509         if (tag == 8) {
510           int value;
511           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
512                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
513                  input, &value)));
514           if (::Mysqlx::Expr::Expr_Type_IsValid(value)) {
515             set_type(static_cast< ::Mysqlx::Expr::Expr_Type >(value));
516           } else {
517             mutable_unknown_fields()->AddVarint(1, value);
518           }
519         } else {
520           goto handle_unusual;
521         }
522         if (input->ExpectTag(18)) goto parse_identifier;
523         break;
524       }
525 
526       // optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;
527       case 2: {
528         if (tag == 18) {
529          parse_identifier:
530           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
531                input, mutable_identifier()));
532         } else {
533           goto handle_unusual;
534         }
535         if (input->ExpectTag(26)) goto parse_variable;
536         break;
537       }
538 
539       // optional string variable = 3;
540       case 3: {
541         if (tag == 26) {
542          parse_variable:
543           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
544                 input, this->mutable_variable()));
545           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
546             this->variable().data(), this->variable().length(),
547             ::google::protobuf::internal::WireFormat::PARSE,
548             "variable");
549         } else {
550           goto handle_unusual;
551         }
552         if (input->ExpectTag(34)) goto parse_literal;
553         break;
554       }
555 
556       // optional .Mysqlx.Datatypes.Scalar literal = 4;
557       case 4: {
558         if (tag == 34) {
559          parse_literal:
560           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
561                input, mutable_literal()));
562         } else {
563           goto handle_unusual;
564         }
565         if (input->ExpectTag(42)) goto parse_function_call;
566         break;
567       }
568 
569       // optional .Mysqlx.Expr.FunctionCall function_call = 5;
570       case 5: {
571         if (tag == 42) {
572          parse_function_call:
573           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
574                input, mutable_function_call()));
575         } else {
576           goto handle_unusual;
577         }
578         if (input->ExpectTag(50)) goto parse_operator;
579         break;
580       }
581 
582       // optional .Mysqlx.Expr.Operator operator = 6;
583       case 6: {
584         if (tag == 50) {
585          parse_operator:
586           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
587                input, mutable_operator_()));
588         } else {
589           goto handle_unusual;
590         }
591         if (input->ExpectTag(56)) goto parse_position;
592         break;
593       }
594 
595       // optional uint32 position = 7;
596       case 7: {
597         if (tag == 56) {
598          parse_position:
599           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
600                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
601                  input, &position_)));
602           set_has_position();
603         } else {
604           goto handle_unusual;
605         }
606         if (input->ExpectTag(66)) goto parse_object;
607         break;
608       }
609 
610       // optional .Mysqlx.Expr.Object object = 8;
611       case 8: {
612         if (tag == 66) {
613          parse_object:
614           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
615                input, mutable_object()));
616         } else {
617           goto handle_unusual;
618         }
619         if (input->ExpectTag(74)) goto parse_array;
620         break;
621       }
622 
623       // optional .Mysqlx.Expr.Array array = 9;
624       case 9: {
625         if (tag == 74) {
626          parse_array:
627           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
628                input, mutable_array()));
629         } else {
630           goto handle_unusual;
631         }
632         if (input->ExpectAtEnd()) goto success;
633         break;
634       }
635 
636       default: {
637       handle_unusual:
638         if (tag == 0 ||
639             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
640             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
641           goto success;
642         }
643         DO_(::google::protobuf::internal::WireFormat::SkipField(
644               input, tag, mutable_unknown_fields()));
645         break;
646       }
647     }
648   }
649 success:
650   // @@protoc_insertion_point(parse_success:Mysqlx.Expr.Expr)
651   return true;
652 failure:
653   // @@protoc_insertion_point(parse_failure:Mysqlx.Expr.Expr)
654   return false;
655 #undef DO_
656 }
657 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const658 void Expr::SerializeWithCachedSizes(
659     ::google::protobuf::io::CodedOutputStream* output) const {
660   // @@protoc_insertion_point(serialize_start:Mysqlx.Expr.Expr)
661   // required .Mysqlx.Expr.Expr.Type type = 1;
662   if (has_type()) {
663     ::google::protobuf::internal::WireFormatLite::WriteEnum(
664       1, this->type(), output);
665   }
666 
667   // optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;
668   if (has_identifier()) {
669     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
670       2, this->identifier(), output);
671   }
672 
673   // optional string variable = 3;
674   if (has_variable()) {
675     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
676       this->variable().data(), this->variable().length(),
677       ::google::protobuf::internal::WireFormat::SERIALIZE,
678       "variable");
679     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
680       3, this->variable(), output);
681   }
682 
683   // optional .Mysqlx.Datatypes.Scalar literal = 4;
684   if (has_literal()) {
685     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
686       4, this->literal(), output);
687   }
688 
689   // optional .Mysqlx.Expr.FunctionCall function_call = 5;
690   if (has_function_call()) {
691     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
692       5, this->function_call(), output);
693   }
694 
695   // optional .Mysqlx.Expr.Operator operator = 6;
696   if (has_operator_()) {
697     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
698       6, this->operator_(), output);
699   }
700 
701   // optional uint32 position = 7;
702   if (has_position()) {
703     ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->position(), output);
704   }
705 
706   // optional .Mysqlx.Expr.Object object = 8;
707   if (has_object()) {
708     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
709       8, this->object(), output);
710   }
711 
712   // optional .Mysqlx.Expr.Array array = 9;
713   if (has_array()) {
714     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
715       9, this->array(), output);
716   }
717 
718   if (!unknown_fields().empty()) {
719     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
720         unknown_fields(), output);
721   }
722   // @@protoc_insertion_point(serialize_end:Mysqlx.Expr.Expr)
723 }
724 
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const725 ::google::protobuf::uint8* Expr::SerializeWithCachedSizesToArray(
726     ::google::protobuf::uint8* target) const {
727   // @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Expr.Expr)
728   // required .Mysqlx.Expr.Expr.Type type = 1;
729   if (has_type()) {
730     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
731       1, this->type(), target);
732   }
733 
734   // optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;
735   if (has_identifier()) {
736     target = ::google::protobuf::internal::WireFormatLite::
737       WriteMessageNoVirtualToArray(
738         2, this->identifier(), target);
739   }
740 
741   // optional string variable = 3;
742   if (has_variable()) {
743     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
744       this->variable().data(), this->variable().length(),
745       ::google::protobuf::internal::WireFormat::SERIALIZE,
746       "variable");
747     target =
748       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
749         3, this->variable(), target);
750   }
751 
752   // optional .Mysqlx.Datatypes.Scalar literal = 4;
753   if (has_literal()) {
754     target = ::google::protobuf::internal::WireFormatLite::
755       WriteMessageNoVirtualToArray(
756         4, this->literal(), target);
757   }
758 
759   // optional .Mysqlx.Expr.FunctionCall function_call = 5;
760   if (has_function_call()) {
761     target = ::google::protobuf::internal::WireFormatLite::
762       WriteMessageNoVirtualToArray(
763         5, this->function_call(), target);
764   }
765 
766   // optional .Mysqlx.Expr.Operator operator = 6;
767   if (has_operator_()) {
768     target = ::google::protobuf::internal::WireFormatLite::
769       WriteMessageNoVirtualToArray(
770         6, this->operator_(), target);
771   }
772 
773   // optional uint32 position = 7;
774   if (has_position()) {
775     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->position(), target);
776   }
777 
778   // optional .Mysqlx.Expr.Object object = 8;
779   if (has_object()) {
780     target = ::google::protobuf::internal::WireFormatLite::
781       WriteMessageNoVirtualToArray(
782         8, this->object(), target);
783   }
784 
785   // optional .Mysqlx.Expr.Array array = 9;
786   if (has_array()) {
787     target = ::google::protobuf::internal::WireFormatLite::
788       WriteMessageNoVirtualToArray(
789         9, this->array(), target);
790   }
791 
792   if (!unknown_fields().empty()) {
793     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
794         unknown_fields(), target);
795   }
796   // @@protoc_insertion_point(serialize_to_array_end:Mysqlx.Expr.Expr)
797   return target;
798 }
799 
ByteSize() const800 int Expr::ByteSize() const {
801   int total_size = 0;
802 
803   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
804     // required .Mysqlx.Expr.Expr.Type type = 1;
805     if (has_type()) {
806       total_size += 1 +
807         ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
808     }
809 
810     // optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;
811     if (has_identifier()) {
812       total_size += 1 +
813         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
814           this->identifier());
815     }
816 
817     // optional string variable = 3;
818     if (has_variable()) {
819       total_size += 1 +
820         ::google::protobuf::internal::WireFormatLite::StringSize(
821           this->variable());
822     }
823 
824     // optional .Mysqlx.Datatypes.Scalar literal = 4;
825     if (has_literal()) {
826       total_size += 1 +
827         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
828           this->literal());
829     }
830 
831     // optional .Mysqlx.Expr.FunctionCall function_call = 5;
832     if (has_function_call()) {
833       total_size += 1 +
834         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
835           this->function_call());
836     }
837 
838     // optional .Mysqlx.Expr.Operator operator = 6;
839     if (has_operator_()) {
840       total_size += 1 +
841         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
842           this->operator_());
843     }
844 
845     // optional uint32 position = 7;
846     if (has_position()) {
847       total_size += 1 +
848         ::google::protobuf::internal::WireFormatLite::UInt32Size(
849           this->position());
850     }
851 
852     // optional .Mysqlx.Expr.Object object = 8;
853     if (has_object()) {
854       total_size += 1 +
855         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
856           this->object());
857     }
858 
859   }
860   if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
861     // optional .Mysqlx.Expr.Array array = 9;
862     if (has_array()) {
863       total_size += 1 +
864         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
865           this->array());
866     }
867 
868   }
869   if (!unknown_fields().empty()) {
870     total_size +=
871       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
872         unknown_fields());
873   }
874   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
875   _cached_size_ = total_size;
876   GOOGLE_SAFE_CONCURRENT_WRITES_END();
877   return total_size;
878 }
879 
MergeFrom(const::google::protobuf::Message & from)880 void Expr::MergeFrom(const ::google::protobuf::Message& from) {
881   GOOGLE_CHECK_NE(&from, this);
882   const Expr* source =
883     ::google::protobuf::internal::dynamic_cast_if_available<const Expr*>(
884       &from);
885   if (source == NULL) {
886     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
887   } else {
888     MergeFrom(*source);
889   }
890 }
891 
MergeFrom(const Expr & from)892 void Expr::MergeFrom(const Expr& from) {
893   GOOGLE_CHECK_NE(&from, this);
894   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
895     if (from.has_type()) {
896       set_type(from.type());
897     }
898     if (from.has_identifier()) {
899       mutable_identifier()->::Mysqlx::Expr::ColumnIdentifier::MergeFrom(from.identifier());
900     }
901     if (from.has_variable()) {
902       set_variable(from.variable());
903     }
904     if (from.has_literal()) {
905       mutable_literal()->::Mysqlx::Datatypes::Scalar::MergeFrom(from.literal());
906     }
907     if (from.has_function_call()) {
908       mutable_function_call()->::Mysqlx::Expr::FunctionCall::MergeFrom(from.function_call());
909     }
910     if (from.has_operator_()) {
911       mutable_operator_()->::Mysqlx::Expr::Operator::MergeFrom(from.operator_());
912     }
913     if (from.has_position()) {
914       set_position(from.position());
915     }
916     if (from.has_object()) {
917       mutable_object()->::Mysqlx::Expr::Object::MergeFrom(from.object());
918     }
919   }
920   if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
921     if (from.has_array()) {
922       mutable_array()->::Mysqlx::Expr::Array::MergeFrom(from.array());
923     }
924   }
925   mutable_unknown_fields()->MergeFrom(from.unknown_fields());
926 }
927 
CopyFrom(const::google::protobuf::Message & from)928 void Expr::CopyFrom(const ::google::protobuf::Message& from) {
929   if (&from == this) return;
930   Clear();
931   MergeFrom(from);
932 }
933 
CopyFrom(const Expr & from)934 void Expr::CopyFrom(const Expr& from) {
935   if (&from == this) return;
936   Clear();
937   MergeFrom(from);
938 }
939 
IsInitialized() const940 bool Expr::IsInitialized() const {
941   if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
942 
943   if (has_identifier()) {
944     if (!this->identifier().IsInitialized()) return false;
945   }
946   if (has_literal()) {
947     if (!this->literal().IsInitialized()) return false;
948   }
949   if (has_function_call()) {
950     if (!this->function_call().IsInitialized()) return false;
951   }
952   if (has_operator_()) {
953     if (!this->operator_().IsInitialized()) return false;
954   }
955   if (has_object()) {
956     if (!this->object().IsInitialized()) return false;
957   }
958   if (has_array()) {
959     if (!this->array().IsInitialized()) return false;
960   }
961   return true;
962 }
963 
Swap(Expr * other)964 void Expr::Swap(Expr* other) {
965   if (other != this) {
966     std::swap(type_, other->type_);
967     std::swap(identifier_, other->identifier_);
968     std::swap(variable_, other->variable_);
969     std::swap(literal_, other->literal_);
970     std::swap(function_call_, other->function_call_);
971     std::swap(operator__, other->operator__);
972     std::swap(position_, other->position_);
973     std::swap(object_, other->object_);
974     std::swap(array_, other->array_);
975     std::swap(_has_bits_[0], other->_has_bits_[0]);
976     _unknown_fields_.Swap(&other->_unknown_fields_);
977     std::swap(_cached_size_, other->_cached_size_);
978   }
979 }
980 
GetMetadata() const981 ::google::protobuf::Metadata Expr::GetMetadata() const {
982   protobuf_AssignDescriptorsOnce();
983   ::google::protobuf::Metadata metadata;
984   metadata.descriptor = Expr_descriptor_;
985   metadata.reflection = Expr_reflection_;
986   return metadata;
987 }
988 
989 
990 // ===================================================================
991 
992 #ifndef _MSC_VER
993 const int Identifier::kNameFieldNumber;
994 const int Identifier::kSchemaNameFieldNumber;
995 #endif  // !_MSC_VER
996 
Identifier()997 Identifier::Identifier()
998   : ::google::protobuf::Message() {
999   SharedCtor();
1000   // @@protoc_insertion_point(constructor:Mysqlx.Expr.Identifier)
1001 }
1002 
InitAsDefaultInstance()1003 void Identifier::InitAsDefaultInstance() {
1004 }
1005 
Identifier(const Identifier & from)1006 Identifier::Identifier(const Identifier& from)
1007   : ::google::protobuf::Message() {
1008   SharedCtor();
1009   MergeFrom(from);
1010   // @@protoc_insertion_point(copy_constructor:Mysqlx.Expr.Identifier)
1011 }
1012 
SharedCtor()1013 void Identifier::SharedCtor() {
1014   ::google::protobuf::internal::GetEmptyString();
1015   _cached_size_ = 0;
1016   name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1017   schema_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1018   ::memset(_has_bits_, 0, sizeof(_has_bits_));
1019 }
1020 
~Identifier()1021 Identifier::~Identifier() {
1022   // @@protoc_insertion_point(destructor:Mysqlx.Expr.Identifier)
1023   SharedDtor();
1024 }
1025 
SharedDtor()1026 void Identifier::SharedDtor() {
1027   if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1028     delete name_;
1029   }
1030   if (schema_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1031     delete schema_name_;
1032   }
1033   if (this != default_instance_) {
1034   }
1035 }
1036 
SetCachedSize(int size) const1037 void Identifier::SetCachedSize(int size) const {
1038   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1039   _cached_size_ = size;
1040   GOOGLE_SAFE_CONCURRENT_WRITES_END();
1041 }
descriptor()1042 const ::google::protobuf::Descriptor* Identifier::descriptor() {
1043   protobuf_AssignDescriptorsOnce();
1044   return Identifier_descriptor_;
1045 }
1046 
default_instance()1047 const Identifier& Identifier::default_instance() {
1048   if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fexpr_2eproto();
1049   return *default_instance_;
1050 }
1051 
1052 Identifier* Identifier::default_instance_ = NULL;
1053 
New() const1054 Identifier* Identifier::New() const {
1055   return new Identifier;
1056 }
1057 
Clear()1058 void Identifier::Clear() {
1059   if (_has_bits_[0 / 32] & 3) {
1060     if (has_name()) {
1061       if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1062         name_->clear();
1063       }
1064     }
1065     if (has_schema_name()) {
1066       if (schema_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1067         schema_name_->clear();
1068       }
1069     }
1070   }
1071   ::memset(_has_bits_, 0, sizeof(_has_bits_));
1072   mutable_unknown_fields()->Clear();
1073 }
1074 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)1075 bool Identifier::MergePartialFromCodedStream(
1076     ::google::protobuf::io::CodedInputStream* input) {
1077 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1078   ::google::protobuf::uint32 tag;
1079   // @@protoc_insertion_point(parse_start:Mysqlx.Expr.Identifier)
1080   for (;;) {
1081     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1082     tag = p.first;
1083     if (!p.second) goto handle_unusual;
1084     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1085       // required string name = 1;
1086       case 1: {
1087         if (tag == 10) {
1088           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1089                 input, this->mutable_name()));
1090           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1091             this->name().data(), this->name().length(),
1092             ::google::protobuf::internal::WireFormat::PARSE,
1093             "name");
1094         } else {
1095           goto handle_unusual;
1096         }
1097         if (input->ExpectTag(18)) goto parse_schema_name;
1098         break;
1099       }
1100 
1101       // optional string schema_name = 2;
1102       case 2: {
1103         if (tag == 18) {
1104          parse_schema_name:
1105           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1106                 input, this->mutable_schema_name()));
1107           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1108             this->schema_name().data(), this->schema_name().length(),
1109             ::google::protobuf::internal::WireFormat::PARSE,
1110             "schema_name");
1111         } else {
1112           goto handle_unusual;
1113         }
1114         if (input->ExpectAtEnd()) goto success;
1115         break;
1116       }
1117 
1118       default: {
1119       handle_unusual:
1120         if (tag == 0 ||
1121             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1122             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1123           goto success;
1124         }
1125         DO_(::google::protobuf::internal::WireFormat::SkipField(
1126               input, tag, mutable_unknown_fields()));
1127         break;
1128       }
1129     }
1130   }
1131 success:
1132   // @@protoc_insertion_point(parse_success:Mysqlx.Expr.Identifier)
1133   return true;
1134 failure:
1135   // @@protoc_insertion_point(parse_failure:Mysqlx.Expr.Identifier)
1136   return false;
1137 #undef DO_
1138 }
1139 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const1140 void Identifier::SerializeWithCachedSizes(
1141     ::google::protobuf::io::CodedOutputStream* output) const {
1142   // @@protoc_insertion_point(serialize_start:Mysqlx.Expr.Identifier)
1143   // required string name = 1;
1144   if (has_name()) {
1145     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1146       this->name().data(), this->name().length(),
1147       ::google::protobuf::internal::WireFormat::SERIALIZE,
1148       "name");
1149     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1150       1, this->name(), output);
1151   }
1152 
1153   // optional string schema_name = 2;
1154   if (has_schema_name()) {
1155     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1156       this->schema_name().data(), this->schema_name().length(),
1157       ::google::protobuf::internal::WireFormat::SERIALIZE,
1158       "schema_name");
1159     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1160       2, this->schema_name(), output);
1161   }
1162 
1163   if (!unknown_fields().empty()) {
1164     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1165         unknown_fields(), output);
1166   }
1167   // @@protoc_insertion_point(serialize_end:Mysqlx.Expr.Identifier)
1168 }
1169 
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const1170 ::google::protobuf::uint8* Identifier::SerializeWithCachedSizesToArray(
1171     ::google::protobuf::uint8* target) const {
1172   // @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Expr.Identifier)
1173   // required string name = 1;
1174   if (has_name()) {
1175     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1176       this->name().data(), this->name().length(),
1177       ::google::protobuf::internal::WireFormat::SERIALIZE,
1178       "name");
1179     target =
1180       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1181         1, this->name(), target);
1182   }
1183 
1184   // optional string schema_name = 2;
1185   if (has_schema_name()) {
1186     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1187       this->schema_name().data(), this->schema_name().length(),
1188       ::google::protobuf::internal::WireFormat::SERIALIZE,
1189       "schema_name");
1190     target =
1191       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1192         2, this->schema_name(), target);
1193   }
1194 
1195   if (!unknown_fields().empty()) {
1196     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1197         unknown_fields(), target);
1198   }
1199   // @@protoc_insertion_point(serialize_to_array_end:Mysqlx.Expr.Identifier)
1200   return target;
1201 }
1202 
ByteSize() const1203 int Identifier::ByteSize() const {
1204   int total_size = 0;
1205 
1206   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1207     // required string name = 1;
1208     if (has_name()) {
1209       total_size += 1 +
1210         ::google::protobuf::internal::WireFormatLite::StringSize(
1211           this->name());
1212     }
1213 
1214     // optional string schema_name = 2;
1215     if (has_schema_name()) {
1216       total_size += 1 +
1217         ::google::protobuf::internal::WireFormatLite::StringSize(
1218           this->schema_name());
1219     }
1220 
1221   }
1222   if (!unknown_fields().empty()) {
1223     total_size +=
1224       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1225         unknown_fields());
1226   }
1227   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1228   _cached_size_ = total_size;
1229   GOOGLE_SAFE_CONCURRENT_WRITES_END();
1230   return total_size;
1231 }
1232 
MergeFrom(const::google::protobuf::Message & from)1233 void Identifier::MergeFrom(const ::google::protobuf::Message& from) {
1234   GOOGLE_CHECK_NE(&from, this);
1235   const Identifier* source =
1236     ::google::protobuf::internal::dynamic_cast_if_available<const Identifier*>(
1237       &from);
1238   if (source == NULL) {
1239     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1240   } else {
1241     MergeFrom(*source);
1242   }
1243 }
1244 
MergeFrom(const Identifier & from)1245 void Identifier::MergeFrom(const Identifier& from) {
1246   GOOGLE_CHECK_NE(&from, this);
1247   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1248     if (from.has_name()) {
1249       set_name(from.name());
1250     }
1251     if (from.has_schema_name()) {
1252       set_schema_name(from.schema_name());
1253     }
1254   }
1255   mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1256 }
1257 
CopyFrom(const::google::protobuf::Message & from)1258 void Identifier::CopyFrom(const ::google::protobuf::Message& from) {
1259   if (&from == this) return;
1260   Clear();
1261   MergeFrom(from);
1262 }
1263 
CopyFrom(const Identifier & from)1264 void Identifier::CopyFrom(const Identifier& from) {
1265   if (&from == this) return;
1266   Clear();
1267   MergeFrom(from);
1268 }
1269 
IsInitialized() const1270 bool Identifier::IsInitialized() const {
1271   if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
1272 
1273   return true;
1274 }
1275 
Swap(Identifier * other)1276 void Identifier::Swap(Identifier* other) {
1277   if (other != this) {
1278     std::swap(name_, other->name_);
1279     std::swap(schema_name_, other->schema_name_);
1280     std::swap(_has_bits_[0], other->_has_bits_[0]);
1281     _unknown_fields_.Swap(&other->_unknown_fields_);
1282     std::swap(_cached_size_, other->_cached_size_);
1283   }
1284 }
1285 
GetMetadata() const1286 ::google::protobuf::Metadata Identifier::GetMetadata() const {
1287   protobuf_AssignDescriptorsOnce();
1288   ::google::protobuf::Metadata metadata;
1289   metadata.descriptor = Identifier_descriptor_;
1290   metadata.reflection = Identifier_reflection_;
1291   return metadata;
1292 }
1293 
1294 
1295 // ===================================================================
1296 
DocumentPathItem_Type_descriptor()1297 const ::google::protobuf::EnumDescriptor* DocumentPathItem_Type_descriptor() {
1298   protobuf_AssignDescriptorsOnce();
1299   return DocumentPathItem_Type_descriptor_;
1300 }
DocumentPathItem_Type_IsValid(int value)1301 bool DocumentPathItem_Type_IsValid(int value) {
1302   switch(value) {
1303     case 1:
1304     case 2:
1305     case 3:
1306     case 4:
1307     case 5:
1308       return true;
1309     default:
1310       return false;
1311   }
1312 }
1313 
1314 #ifndef _MSC_VER
1315 const DocumentPathItem_Type DocumentPathItem::MEMBER;
1316 const DocumentPathItem_Type DocumentPathItem::MEMBER_ASTERISK;
1317 const DocumentPathItem_Type DocumentPathItem::ARRAY_INDEX;
1318 const DocumentPathItem_Type DocumentPathItem::ARRAY_INDEX_ASTERISK;
1319 const DocumentPathItem_Type DocumentPathItem::DOUBLE_ASTERISK;
1320 const DocumentPathItem_Type DocumentPathItem::Type_MIN;
1321 const DocumentPathItem_Type DocumentPathItem::Type_MAX;
1322 const int DocumentPathItem::Type_ARRAYSIZE;
1323 #endif  // _MSC_VER
1324 #ifndef _MSC_VER
1325 const int DocumentPathItem::kTypeFieldNumber;
1326 const int DocumentPathItem::kValueFieldNumber;
1327 const int DocumentPathItem::kIndexFieldNumber;
1328 #endif  // !_MSC_VER
1329 
DocumentPathItem()1330 DocumentPathItem::DocumentPathItem()
1331   : ::google::protobuf::Message() {
1332   SharedCtor();
1333   // @@protoc_insertion_point(constructor:Mysqlx.Expr.DocumentPathItem)
1334 }
1335 
InitAsDefaultInstance()1336 void DocumentPathItem::InitAsDefaultInstance() {
1337 }
1338 
DocumentPathItem(const DocumentPathItem & from)1339 DocumentPathItem::DocumentPathItem(const DocumentPathItem& from)
1340   : ::google::protobuf::Message() {
1341   SharedCtor();
1342   MergeFrom(from);
1343   // @@protoc_insertion_point(copy_constructor:Mysqlx.Expr.DocumentPathItem)
1344 }
1345 
SharedCtor()1346 void DocumentPathItem::SharedCtor() {
1347   ::google::protobuf::internal::GetEmptyString();
1348   _cached_size_ = 0;
1349   type_ = 1;
1350   value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1351   index_ = 0u;
1352   ::memset(_has_bits_, 0, sizeof(_has_bits_));
1353 }
1354 
~DocumentPathItem()1355 DocumentPathItem::~DocumentPathItem() {
1356   // @@protoc_insertion_point(destructor:Mysqlx.Expr.DocumentPathItem)
1357   SharedDtor();
1358 }
1359 
SharedDtor()1360 void DocumentPathItem::SharedDtor() {
1361   if (value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1362     delete value_;
1363   }
1364   if (this != default_instance_) {
1365   }
1366 }
1367 
SetCachedSize(int size) const1368 void DocumentPathItem::SetCachedSize(int size) const {
1369   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1370   _cached_size_ = size;
1371   GOOGLE_SAFE_CONCURRENT_WRITES_END();
1372 }
descriptor()1373 const ::google::protobuf::Descriptor* DocumentPathItem::descriptor() {
1374   protobuf_AssignDescriptorsOnce();
1375   return DocumentPathItem_descriptor_;
1376 }
1377 
default_instance()1378 const DocumentPathItem& DocumentPathItem::default_instance() {
1379   if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fexpr_2eproto();
1380   return *default_instance_;
1381 }
1382 
1383 DocumentPathItem* DocumentPathItem::default_instance_ = NULL;
1384 
New() const1385 DocumentPathItem* DocumentPathItem::New() const {
1386   return new DocumentPathItem;
1387 }
1388 
Clear()1389 void DocumentPathItem::Clear() {
1390   if (_has_bits_[0 / 32] & 7) {
1391     type_ = 1;
1392     if (has_value()) {
1393       if (value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1394         value_->clear();
1395       }
1396     }
1397     index_ = 0u;
1398   }
1399   ::memset(_has_bits_, 0, sizeof(_has_bits_));
1400   mutable_unknown_fields()->Clear();
1401 }
1402 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)1403 bool DocumentPathItem::MergePartialFromCodedStream(
1404     ::google::protobuf::io::CodedInputStream* input) {
1405 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1406   ::google::protobuf::uint32 tag;
1407   // @@protoc_insertion_point(parse_start:Mysqlx.Expr.DocumentPathItem)
1408   for (;;) {
1409     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1410     tag = p.first;
1411     if (!p.second) goto handle_unusual;
1412     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1413       // required .Mysqlx.Expr.DocumentPathItem.Type type = 1;
1414       case 1: {
1415         if (tag == 8) {
1416           int value;
1417           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1418                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1419                  input, &value)));
1420           if (::Mysqlx::Expr::DocumentPathItem_Type_IsValid(value)) {
1421             set_type(static_cast< ::Mysqlx::Expr::DocumentPathItem_Type >(value));
1422           } else {
1423             mutable_unknown_fields()->AddVarint(1, value);
1424           }
1425         } else {
1426           goto handle_unusual;
1427         }
1428         if (input->ExpectTag(18)) goto parse_value;
1429         break;
1430       }
1431 
1432       // optional string value = 2;
1433       case 2: {
1434         if (tag == 18) {
1435          parse_value:
1436           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1437                 input, this->mutable_value()));
1438           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1439             this->value().data(), this->value().length(),
1440             ::google::protobuf::internal::WireFormat::PARSE,
1441             "value");
1442         } else {
1443           goto handle_unusual;
1444         }
1445         if (input->ExpectTag(24)) goto parse_index;
1446         break;
1447       }
1448 
1449       // optional uint32 index = 3;
1450       case 3: {
1451         if (tag == 24) {
1452          parse_index:
1453           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1454                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1455                  input, &index_)));
1456           set_has_index();
1457         } else {
1458           goto handle_unusual;
1459         }
1460         if (input->ExpectAtEnd()) goto success;
1461         break;
1462       }
1463 
1464       default: {
1465       handle_unusual:
1466         if (tag == 0 ||
1467             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1468             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1469           goto success;
1470         }
1471         DO_(::google::protobuf::internal::WireFormat::SkipField(
1472               input, tag, mutable_unknown_fields()));
1473         break;
1474       }
1475     }
1476   }
1477 success:
1478   // @@protoc_insertion_point(parse_success:Mysqlx.Expr.DocumentPathItem)
1479   return true;
1480 failure:
1481   // @@protoc_insertion_point(parse_failure:Mysqlx.Expr.DocumentPathItem)
1482   return false;
1483 #undef DO_
1484 }
1485 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const1486 void DocumentPathItem::SerializeWithCachedSizes(
1487     ::google::protobuf::io::CodedOutputStream* output) const {
1488   // @@protoc_insertion_point(serialize_start:Mysqlx.Expr.DocumentPathItem)
1489   // required .Mysqlx.Expr.DocumentPathItem.Type type = 1;
1490   if (has_type()) {
1491     ::google::protobuf::internal::WireFormatLite::WriteEnum(
1492       1, this->type(), output);
1493   }
1494 
1495   // optional string value = 2;
1496   if (has_value()) {
1497     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1498       this->value().data(), this->value().length(),
1499       ::google::protobuf::internal::WireFormat::SERIALIZE,
1500       "value");
1501     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1502       2, this->value(), output);
1503   }
1504 
1505   // optional uint32 index = 3;
1506   if (has_index()) {
1507     ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->index(), output);
1508   }
1509 
1510   if (!unknown_fields().empty()) {
1511     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1512         unknown_fields(), output);
1513   }
1514   // @@protoc_insertion_point(serialize_end:Mysqlx.Expr.DocumentPathItem)
1515 }
1516 
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const1517 ::google::protobuf::uint8* DocumentPathItem::SerializeWithCachedSizesToArray(
1518     ::google::protobuf::uint8* target) const {
1519   // @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Expr.DocumentPathItem)
1520   // required .Mysqlx.Expr.DocumentPathItem.Type type = 1;
1521   if (has_type()) {
1522     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1523       1, this->type(), target);
1524   }
1525 
1526   // optional string value = 2;
1527   if (has_value()) {
1528     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1529       this->value().data(), this->value().length(),
1530       ::google::protobuf::internal::WireFormat::SERIALIZE,
1531       "value");
1532     target =
1533       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1534         2, this->value(), target);
1535   }
1536 
1537   // optional uint32 index = 3;
1538   if (has_index()) {
1539     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->index(), target);
1540   }
1541 
1542   if (!unknown_fields().empty()) {
1543     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1544         unknown_fields(), target);
1545   }
1546   // @@protoc_insertion_point(serialize_to_array_end:Mysqlx.Expr.DocumentPathItem)
1547   return target;
1548 }
1549 
ByteSize() const1550 int DocumentPathItem::ByteSize() const {
1551   int total_size = 0;
1552 
1553   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1554     // required .Mysqlx.Expr.DocumentPathItem.Type type = 1;
1555     if (has_type()) {
1556       total_size += 1 +
1557         ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
1558     }
1559 
1560     // optional string value = 2;
1561     if (has_value()) {
1562       total_size += 1 +
1563         ::google::protobuf::internal::WireFormatLite::StringSize(
1564           this->value());
1565     }
1566 
1567     // optional uint32 index = 3;
1568     if (has_index()) {
1569       total_size += 1 +
1570         ::google::protobuf::internal::WireFormatLite::UInt32Size(
1571           this->index());
1572     }
1573 
1574   }
1575   if (!unknown_fields().empty()) {
1576     total_size +=
1577       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1578         unknown_fields());
1579   }
1580   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1581   _cached_size_ = total_size;
1582   GOOGLE_SAFE_CONCURRENT_WRITES_END();
1583   return total_size;
1584 }
1585 
MergeFrom(const::google::protobuf::Message & from)1586 void DocumentPathItem::MergeFrom(const ::google::protobuf::Message& from) {
1587   GOOGLE_CHECK_NE(&from, this);
1588   const DocumentPathItem* source =
1589     ::google::protobuf::internal::dynamic_cast_if_available<const DocumentPathItem*>(
1590       &from);
1591   if (source == NULL) {
1592     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1593   } else {
1594     MergeFrom(*source);
1595   }
1596 }
1597 
MergeFrom(const DocumentPathItem & from)1598 void DocumentPathItem::MergeFrom(const DocumentPathItem& from) {
1599   GOOGLE_CHECK_NE(&from, this);
1600   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1601     if (from.has_type()) {
1602       set_type(from.type());
1603     }
1604     if (from.has_value()) {
1605       set_value(from.value());
1606     }
1607     if (from.has_index()) {
1608       set_index(from.index());
1609     }
1610   }
1611   mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1612 }
1613 
CopyFrom(const::google::protobuf::Message & from)1614 void DocumentPathItem::CopyFrom(const ::google::protobuf::Message& from) {
1615   if (&from == this) return;
1616   Clear();
1617   MergeFrom(from);
1618 }
1619 
CopyFrom(const DocumentPathItem & from)1620 void DocumentPathItem::CopyFrom(const DocumentPathItem& from) {
1621   if (&from == this) return;
1622   Clear();
1623   MergeFrom(from);
1624 }
1625 
IsInitialized() const1626 bool DocumentPathItem::IsInitialized() const {
1627   if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
1628 
1629   return true;
1630 }
1631 
Swap(DocumentPathItem * other)1632 void DocumentPathItem::Swap(DocumentPathItem* other) {
1633   if (other != this) {
1634     std::swap(type_, other->type_);
1635     std::swap(value_, other->value_);
1636     std::swap(index_, other->index_);
1637     std::swap(_has_bits_[0], other->_has_bits_[0]);
1638     _unknown_fields_.Swap(&other->_unknown_fields_);
1639     std::swap(_cached_size_, other->_cached_size_);
1640   }
1641 }
1642 
GetMetadata() const1643 ::google::protobuf::Metadata DocumentPathItem::GetMetadata() const {
1644   protobuf_AssignDescriptorsOnce();
1645   ::google::protobuf::Metadata metadata;
1646   metadata.descriptor = DocumentPathItem_descriptor_;
1647   metadata.reflection = DocumentPathItem_reflection_;
1648   return metadata;
1649 }
1650 
1651 
1652 // ===================================================================
1653 
1654 #ifndef _MSC_VER
1655 const int ColumnIdentifier::kDocumentPathFieldNumber;
1656 const int ColumnIdentifier::kNameFieldNumber;
1657 const int ColumnIdentifier::kTableNameFieldNumber;
1658 const int ColumnIdentifier::kSchemaNameFieldNumber;
1659 #endif  // !_MSC_VER
1660 
ColumnIdentifier()1661 ColumnIdentifier::ColumnIdentifier()
1662   : ::google::protobuf::Message() {
1663   SharedCtor();
1664   // @@protoc_insertion_point(constructor:Mysqlx.Expr.ColumnIdentifier)
1665 }
1666 
InitAsDefaultInstance()1667 void ColumnIdentifier::InitAsDefaultInstance() {
1668 }
1669 
ColumnIdentifier(const ColumnIdentifier & from)1670 ColumnIdentifier::ColumnIdentifier(const ColumnIdentifier& from)
1671   : ::google::protobuf::Message() {
1672   SharedCtor();
1673   MergeFrom(from);
1674   // @@protoc_insertion_point(copy_constructor:Mysqlx.Expr.ColumnIdentifier)
1675 }
1676 
SharedCtor()1677 void ColumnIdentifier::SharedCtor() {
1678   ::google::protobuf::internal::GetEmptyString();
1679   _cached_size_ = 0;
1680   name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1681   table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1682   schema_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1683   ::memset(_has_bits_, 0, sizeof(_has_bits_));
1684 }
1685 
~ColumnIdentifier()1686 ColumnIdentifier::~ColumnIdentifier() {
1687   // @@protoc_insertion_point(destructor:Mysqlx.Expr.ColumnIdentifier)
1688   SharedDtor();
1689 }
1690 
SharedDtor()1691 void ColumnIdentifier::SharedDtor() {
1692   if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1693     delete name_;
1694   }
1695   if (table_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1696     delete table_name_;
1697   }
1698   if (schema_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1699     delete schema_name_;
1700   }
1701   if (this != default_instance_) {
1702   }
1703 }
1704 
SetCachedSize(int size) const1705 void ColumnIdentifier::SetCachedSize(int size) const {
1706   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1707   _cached_size_ = size;
1708   GOOGLE_SAFE_CONCURRENT_WRITES_END();
1709 }
descriptor()1710 const ::google::protobuf::Descriptor* ColumnIdentifier::descriptor() {
1711   protobuf_AssignDescriptorsOnce();
1712   return ColumnIdentifier_descriptor_;
1713 }
1714 
default_instance()1715 const ColumnIdentifier& ColumnIdentifier::default_instance() {
1716   if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fexpr_2eproto();
1717   return *default_instance_;
1718 }
1719 
1720 ColumnIdentifier* ColumnIdentifier::default_instance_ = NULL;
1721 
New() const1722 ColumnIdentifier* ColumnIdentifier::New() const {
1723   return new ColumnIdentifier;
1724 }
1725 
Clear()1726 void ColumnIdentifier::Clear() {
1727   if (_has_bits_[0 / 32] & 14) {
1728     if (has_name()) {
1729       if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1730         name_->clear();
1731       }
1732     }
1733     if (has_table_name()) {
1734       if (table_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1735         table_name_->clear();
1736       }
1737     }
1738     if (has_schema_name()) {
1739       if (schema_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1740         schema_name_->clear();
1741       }
1742     }
1743   }
1744   document_path_.Clear();
1745   ::memset(_has_bits_, 0, sizeof(_has_bits_));
1746   mutable_unknown_fields()->Clear();
1747 }
1748 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)1749 bool ColumnIdentifier::MergePartialFromCodedStream(
1750     ::google::protobuf::io::CodedInputStream* input) {
1751 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1752   ::google::protobuf::uint32 tag;
1753   // @@protoc_insertion_point(parse_start:Mysqlx.Expr.ColumnIdentifier)
1754   for (;;) {
1755     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1756     tag = p.first;
1757     if (!p.second) goto handle_unusual;
1758     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1759       // repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
1760       case 1: {
1761         if (tag == 10) {
1762          parse_document_path:
1763           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1764                 input, add_document_path()));
1765         } else {
1766           goto handle_unusual;
1767         }
1768         if (input->ExpectTag(10)) goto parse_document_path;
1769         if (input->ExpectTag(18)) goto parse_name;
1770         break;
1771       }
1772 
1773       // optional string name = 2;
1774       case 2: {
1775         if (tag == 18) {
1776          parse_name:
1777           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1778                 input, this->mutable_name()));
1779           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1780             this->name().data(), this->name().length(),
1781             ::google::protobuf::internal::WireFormat::PARSE,
1782             "name");
1783         } else {
1784           goto handle_unusual;
1785         }
1786         if (input->ExpectTag(26)) goto parse_table_name;
1787         break;
1788       }
1789 
1790       // optional string table_name = 3;
1791       case 3: {
1792         if (tag == 26) {
1793          parse_table_name:
1794           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1795                 input, this->mutable_table_name()));
1796           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1797             this->table_name().data(), this->table_name().length(),
1798             ::google::protobuf::internal::WireFormat::PARSE,
1799             "table_name");
1800         } else {
1801           goto handle_unusual;
1802         }
1803         if (input->ExpectTag(34)) goto parse_schema_name;
1804         break;
1805       }
1806 
1807       // optional string schema_name = 4;
1808       case 4: {
1809         if (tag == 34) {
1810          parse_schema_name:
1811           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1812                 input, this->mutable_schema_name()));
1813           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1814             this->schema_name().data(), this->schema_name().length(),
1815             ::google::protobuf::internal::WireFormat::PARSE,
1816             "schema_name");
1817         } else {
1818           goto handle_unusual;
1819         }
1820         if (input->ExpectAtEnd()) goto success;
1821         break;
1822       }
1823 
1824       default: {
1825       handle_unusual:
1826         if (tag == 0 ||
1827             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1828             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1829           goto success;
1830         }
1831         DO_(::google::protobuf::internal::WireFormat::SkipField(
1832               input, tag, mutable_unknown_fields()));
1833         break;
1834       }
1835     }
1836   }
1837 success:
1838   // @@protoc_insertion_point(parse_success:Mysqlx.Expr.ColumnIdentifier)
1839   return true;
1840 failure:
1841   // @@protoc_insertion_point(parse_failure:Mysqlx.Expr.ColumnIdentifier)
1842   return false;
1843 #undef DO_
1844 }
1845 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const1846 void ColumnIdentifier::SerializeWithCachedSizes(
1847     ::google::protobuf::io::CodedOutputStream* output) const {
1848   // @@protoc_insertion_point(serialize_start:Mysqlx.Expr.ColumnIdentifier)
1849   // repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
1850   for (int i = 0; i < this->document_path_size(); i++) {
1851     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1852       1, this->document_path(i), output);
1853   }
1854 
1855   // optional string name = 2;
1856   if (has_name()) {
1857     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1858       this->name().data(), this->name().length(),
1859       ::google::protobuf::internal::WireFormat::SERIALIZE,
1860       "name");
1861     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1862       2, this->name(), output);
1863   }
1864 
1865   // optional string table_name = 3;
1866   if (has_table_name()) {
1867     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1868       this->table_name().data(), this->table_name().length(),
1869       ::google::protobuf::internal::WireFormat::SERIALIZE,
1870       "table_name");
1871     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1872       3, this->table_name(), output);
1873   }
1874 
1875   // optional string schema_name = 4;
1876   if (has_schema_name()) {
1877     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1878       this->schema_name().data(), this->schema_name().length(),
1879       ::google::protobuf::internal::WireFormat::SERIALIZE,
1880       "schema_name");
1881     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1882       4, this->schema_name(), output);
1883   }
1884 
1885   if (!unknown_fields().empty()) {
1886     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1887         unknown_fields(), output);
1888   }
1889   // @@protoc_insertion_point(serialize_end:Mysqlx.Expr.ColumnIdentifier)
1890 }
1891 
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const1892 ::google::protobuf::uint8* ColumnIdentifier::SerializeWithCachedSizesToArray(
1893     ::google::protobuf::uint8* target) const {
1894   // @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Expr.ColumnIdentifier)
1895   // repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
1896   for (int i = 0; i < this->document_path_size(); i++) {
1897     target = ::google::protobuf::internal::WireFormatLite::
1898       WriteMessageNoVirtualToArray(
1899         1, this->document_path(i), target);
1900   }
1901 
1902   // optional string name = 2;
1903   if (has_name()) {
1904     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1905       this->name().data(), this->name().length(),
1906       ::google::protobuf::internal::WireFormat::SERIALIZE,
1907       "name");
1908     target =
1909       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1910         2, this->name(), target);
1911   }
1912 
1913   // optional string table_name = 3;
1914   if (has_table_name()) {
1915     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1916       this->table_name().data(), this->table_name().length(),
1917       ::google::protobuf::internal::WireFormat::SERIALIZE,
1918       "table_name");
1919     target =
1920       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1921         3, this->table_name(), target);
1922   }
1923 
1924   // optional string schema_name = 4;
1925   if (has_schema_name()) {
1926     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1927       this->schema_name().data(), this->schema_name().length(),
1928       ::google::protobuf::internal::WireFormat::SERIALIZE,
1929       "schema_name");
1930     target =
1931       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1932         4, this->schema_name(), target);
1933   }
1934 
1935   if (!unknown_fields().empty()) {
1936     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1937         unknown_fields(), target);
1938   }
1939   // @@protoc_insertion_point(serialize_to_array_end:Mysqlx.Expr.ColumnIdentifier)
1940   return target;
1941 }
1942 
ByteSize() const1943 int ColumnIdentifier::ByteSize() const {
1944   int total_size = 0;
1945 
1946   if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
1947     // optional string name = 2;
1948     if (has_name()) {
1949       total_size += 1 +
1950         ::google::protobuf::internal::WireFormatLite::StringSize(
1951           this->name());
1952     }
1953 
1954     // optional string table_name = 3;
1955     if (has_table_name()) {
1956       total_size += 1 +
1957         ::google::protobuf::internal::WireFormatLite::StringSize(
1958           this->table_name());
1959     }
1960 
1961     // optional string schema_name = 4;
1962     if (has_schema_name()) {
1963       total_size += 1 +
1964         ::google::protobuf::internal::WireFormatLite::StringSize(
1965           this->schema_name());
1966     }
1967 
1968   }
1969   // repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
1970   total_size += 1 * this->document_path_size();
1971   for (int i = 0; i < this->document_path_size(); i++) {
1972     total_size +=
1973       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1974         this->document_path(i));
1975   }
1976 
1977   if (!unknown_fields().empty()) {
1978     total_size +=
1979       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1980         unknown_fields());
1981   }
1982   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1983   _cached_size_ = total_size;
1984   GOOGLE_SAFE_CONCURRENT_WRITES_END();
1985   return total_size;
1986 }
1987 
MergeFrom(const::google::protobuf::Message & from)1988 void ColumnIdentifier::MergeFrom(const ::google::protobuf::Message& from) {
1989   GOOGLE_CHECK_NE(&from, this);
1990   const ColumnIdentifier* source =
1991     ::google::protobuf::internal::dynamic_cast_if_available<const ColumnIdentifier*>(
1992       &from);
1993   if (source == NULL) {
1994     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1995   } else {
1996     MergeFrom(*source);
1997   }
1998 }
1999 
MergeFrom(const ColumnIdentifier & from)2000 void ColumnIdentifier::MergeFrom(const ColumnIdentifier& from) {
2001   GOOGLE_CHECK_NE(&from, this);
2002   document_path_.MergeFrom(from.document_path_);
2003   if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
2004     if (from.has_name()) {
2005       set_name(from.name());
2006     }
2007     if (from.has_table_name()) {
2008       set_table_name(from.table_name());
2009     }
2010     if (from.has_schema_name()) {
2011       set_schema_name(from.schema_name());
2012     }
2013   }
2014   mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2015 }
2016 
CopyFrom(const::google::protobuf::Message & from)2017 void ColumnIdentifier::CopyFrom(const ::google::protobuf::Message& from) {
2018   if (&from == this) return;
2019   Clear();
2020   MergeFrom(from);
2021 }
2022 
CopyFrom(const ColumnIdentifier & from)2023 void ColumnIdentifier::CopyFrom(const ColumnIdentifier& from) {
2024   if (&from == this) return;
2025   Clear();
2026   MergeFrom(from);
2027 }
2028 
IsInitialized() const2029 bool ColumnIdentifier::IsInitialized() const {
2030 
2031   if (!::google::protobuf::internal::AllAreInitialized(this->document_path())) return false;
2032   return true;
2033 }
2034 
Swap(ColumnIdentifier * other)2035 void ColumnIdentifier::Swap(ColumnIdentifier* other) {
2036   if (other != this) {
2037     document_path_.Swap(&other->document_path_);
2038     std::swap(name_, other->name_);
2039     std::swap(table_name_, other->table_name_);
2040     std::swap(schema_name_, other->schema_name_);
2041     std::swap(_has_bits_[0], other->_has_bits_[0]);
2042     _unknown_fields_.Swap(&other->_unknown_fields_);
2043     std::swap(_cached_size_, other->_cached_size_);
2044   }
2045 }
2046 
GetMetadata() const2047 ::google::protobuf::Metadata ColumnIdentifier::GetMetadata() const {
2048   protobuf_AssignDescriptorsOnce();
2049   ::google::protobuf::Metadata metadata;
2050   metadata.descriptor = ColumnIdentifier_descriptor_;
2051   metadata.reflection = ColumnIdentifier_reflection_;
2052   return metadata;
2053 }
2054 
2055 
2056 // ===================================================================
2057 
2058 #ifndef _MSC_VER
2059 const int FunctionCall::kNameFieldNumber;
2060 const int FunctionCall::kParamFieldNumber;
2061 #endif  // !_MSC_VER
2062 
FunctionCall()2063 FunctionCall::FunctionCall()
2064   : ::google::protobuf::Message() {
2065   SharedCtor();
2066   // @@protoc_insertion_point(constructor:Mysqlx.Expr.FunctionCall)
2067 }
2068 
InitAsDefaultInstance()2069 void FunctionCall::InitAsDefaultInstance() {
2070   name_ = const_cast< ::Mysqlx::Expr::Identifier*>(&::Mysqlx::Expr::Identifier::default_instance());
2071 }
2072 
FunctionCall(const FunctionCall & from)2073 FunctionCall::FunctionCall(const FunctionCall& from)
2074   : ::google::protobuf::Message() {
2075   SharedCtor();
2076   MergeFrom(from);
2077   // @@protoc_insertion_point(copy_constructor:Mysqlx.Expr.FunctionCall)
2078 }
2079 
SharedCtor()2080 void FunctionCall::SharedCtor() {
2081   _cached_size_ = 0;
2082   name_ = NULL;
2083   ::memset(_has_bits_, 0, sizeof(_has_bits_));
2084 }
2085 
~FunctionCall()2086 FunctionCall::~FunctionCall() {
2087   // @@protoc_insertion_point(destructor:Mysqlx.Expr.FunctionCall)
2088   SharedDtor();
2089 }
2090 
SharedDtor()2091 void FunctionCall::SharedDtor() {
2092   if (this != default_instance_) {
2093     delete name_;
2094   }
2095 }
2096 
SetCachedSize(int size) const2097 void FunctionCall::SetCachedSize(int size) const {
2098   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2099   _cached_size_ = size;
2100   GOOGLE_SAFE_CONCURRENT_WRITES_END();
2101 }
descriptor()2102 const ::google::protobuf::Descriptor* FunctionCall::descriptor() {
2103   protobuf_AssignDescriptorsOnce();
2104   return FunctionCall_descriptor_;
2105 }
2106 
default_instance()2107 const FunctionCall& FunctionCall::default_instance() {
2108   if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fexpr_2eproto();
2109   return *default_instance_;
2110 }
2111 
2112 FunctionCall* FunctionCall::default_instance_ = NULL;
2113 
New() const2114 FunctionCall* FunctionCall::New() const {
2115   return new FunctionCall;
2116 }
2117 
Clear()2118 void FunctionCall::Clear() {
2119   if (has_name()) {
2120     if (name_ != NULL) name_->::Mysqlx::Expr::Identifier::Clear();
2121   }
2122   param_.Clear();
2123   ::memset(_has_bits_, 0, sizeof(_has_bits_));
2124   mutable_unknown_fields()->Clear();
2125 }
2126 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)2127 bool FunctionCall::MergePartialFromCodedStream(
2128     ::google::protobuf::io::CodedInputStream* input) {
2129 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
2130   ::google::protobuf::uint32 tag;
2131   // @@protoc_insertion_point(parse_start:Mysqlx.Expr.FunctionCall)
2132   for (;;) {
2133     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2134     tag = p.first;
2135     if (!p.second) goto handle_unusual;
2136     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2137       // required .Mysqlx.Expr.Identifier name = 1;
2138       case 1: {
2139         if (tag == 10) {
2140           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2141                input, mutable_name()));
2142         } else {
2143           goto handle_unusual;
2144         }
2145         if (input->ExpectTag(18)) goto parse_param;
2146         break;
2147       }
2148 
2149       // repeated .Mysqlx.Expr.Expr param = 2;
2150       case 2: {
2151         if (tag == 18) {
2152          parse_param:
2153           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2154                 input, add_param()));
2155         } else {
2156           goto handle_unusual;
2157         }
2158         if (input->ExpectTag(18)) goto parse_param;
2159         if (input->ExpectAtEnd()) goto success;
2160         break;
2161       }
2162 
2163       default: {
2164       handle_unusual:
2165         if (tag == 0 ||
2166             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2167             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2168           goto success;
2169         }
2170         DO_(::google::protobuf::internal::WireFormat::SkipField(
2171               input, tag, mutable_unknown_fields()));
2172         break;
2173       }
2174     }
2175   }
2176 success:
2177   // @@protoc_insertion_point(parse_success:Mysqlx.Expr.FunctionCall)
2178   return true;
2179 failure:
2180   // @@protoc_insertion_point(parse_failure:Mysqlx.Expr.FunctionCall)
2181   return false;
2182 #undef DO_
2183 }
2184 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const2185 void FunctionCall::SerializeWithCachedSizes(
2186     ::google::protobuf::io::CodedOutputStream* output) const {
2187   // @@protoc_insertion_point(serialize_start:Mysqlx.Expr.FunctionCall)
2188   // required .Mysqlx.Expr.Identifier name = 1;
2189   if (has_name()) {
2190     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2191       1, this->name(), output);
2192   }
2193 
2194   // repeated .Mysqlx.Expr.Expr param = 2;
2195   for (int i = 0; i < this->param_size(); i++) {
2196     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2197       2, this->param(i), output);
2198   }
2199 
2200   if (!unknown_fields().empty()) {
2201     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2202         unknown_fields(), output);
2203   }
2204   // @@protoc_insertion_point(serialize_end:Mysqlx.Expr.FunctionCall)
2205 }
2206 
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const2207 ::google::protobuf::uint8* FunctionCall::SerializeWithCachedSizesToArray(
2208     ::google::protobuf::uint8* target) const {
2209   // @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Expr.FunctionCall)
2210   // required .Mysqlx.Expr.Identifier name = 1;
2211   if (has_name()) {
2212     target = ::google::protobuf::internal::WireFormatLite::
2213       WriteMessageNoVirtualToArray(
2214         1, this->name(), target);
2215   }
2216 
2217   // repeated .Mysqlx.Expr.Expr param = 2;
2218   for (int i = 0; i < this->param_size(); i++) {
2219     target = ::google::protobuf::internal::WireFormatLite::
2220       WriteMessageNoVirtualToArray(
2221         2, this->param(i), target);
2222   }
2223 
2224   if (!unknown_fields().empty()) {
2225     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2226         unknown_fields(), target);
2227   }
2228   // @@protoc_insertion_point(serialize_to_array_end:Mysqlx.Expr.FunctionCall)
2229   return target;
2230 }
2231 
ByteSize() const2232 int FunctionCall::ByteSize() const {
2233   int total_size = 0;
2234 
2235   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2236     // required .Mysqlx.Expr.Identifier name = 1;
2237     if (has_name()) {
2238       total_size += 1 +
2239         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2240           this->name());
2241     }
2242 
2243   }
2244   // repeated .Mysqlx.Expr.Expr param = 2;
2245   total_size += 1 * this->param_size();
2246   for (int i = 0; i < this->param_size(); i++) {
2247     total_size +=
2248       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2249         this->param(i));
2250   }
2251 
2252   if (!unknown_fields().empty()) {
2253     total_size +=
2254       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2255         unknown_fields());
2256   }
2257   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2258   _cached_size_ = total_size;
2259   GOOGLE_SAFE_CONCURRENT_WRITES_END();
2260   return total_size;
2261 }
2262 
MergeFrom(const::google::protobuf::Message & from)2263 void FunctionCall::MergeFrom(const ::google::protobuf::Message& from) {
2264   GOOGLE_CHECK_NE(&from, this);
2265   const FunctionCall* source =
2266     ::google::protobuf::internal::dynamic_cast_if_available<const FunctionCall*>(
2267       &from);
2268   if (source == NULL) {
2269     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2270   } else {
2271     MergeFrom(*source);
2272   }
2273 }
2274 
MergeFrom(const FunctionCall & from)2275 void FunctionCall::MergeFrom(const FunctionCall& from) {
2276   GOOGLE_CHECK_NE(&from, this);
2277   param_.MergeFrom(from.param_);
2278   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2279     if (from.has_name()) {
2280       mutable_name()->::Mysqlx::Expr::Identifier::MergeFrom(from.name());
2281     }
2282   }
2283   mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2284 }
2285 
CopyFrom(const::google::protobuf::Message & from)2286 void FunctionCall::CopyFrom(const ::google::protobuf::Message& from) {
2287   if (&from == this) return;
2288   Clear();
2289   MergeFrom(from);
2290 }
2291 
CopyFrom(const FunctionCall & from)2292 void FunctionCall::CopyFrom(const FunctionCall& from) {
2293   if (&from == this) return;
2294   Clear();
2295   MergeFrom(from);
2296 }
2297 
IsInitialized() const2298 bool FunctionCall::IsInitialized() const {
2299   if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
2300 
2301   if (has_name()) {
2302     if (!this->name().IsInitialized()) return false;
2303   }
2304   if (!::google::protobuf::internal::AllAreInitialized(this->param())) return false;
2305   return true;
2306 }
2307 
Swap(FunctionCall * other)2308 void FunctionCall::Swap(FunctionCall* other) {
2309   if (other != this) {
2310     std::swap(name_, other->name_);
2311     param_.Swap(&other->param_);
2312     std::swap(_has_bits_[0], other->_has_bits_[0]);
2313     _unknown_fields_.Swap(&other->_unknown_fields_);
2314     std::swap(_cached_size_, other->_cached_size_);
2315   }
2316 }
2317 
GetMetadata() const2318 ::google::protobuf::Metadata FunctionCall::GetMetadata() const {
2319   protobuf_AssignDescriptorsOnce();
2320   ::google::protobuf::Metadata metadata;
2321   metadata.descriptor = FunctionCall_descriptor_;
2322   metadata.reflection = FunctionCall_reflection_;
2323   return metadata;
2324 }
2325 
2326 
2327 // ===================================================================
2328 
2329 #ifndef _MSC_VER
2330 const int Operator::kNameFieldNumber;
2331 const int Operator::kParamFieldNumber;
2332 #endif  // !_MSC_VER
2333 
Operator()2334 Operator::Operator()
2335   : ::google::protobuf::Message() {
2336   SharedCtor();
2337   // @@protoc_insertion_point(constructor:Mysqlx.Expr.Operator)
2338 }
2339 
InitAsDefaultInstance()2340 void Operator::InitAsDefaultInstance() {
2341 }
2342 
Operator(const Operator & from)2343 Operator::Operator(const Operator& from)
2344   : ::google::protobuf::Message() {
2345   SharedCtor();
2346   MergeFrom(from);
2347   // @@protoc_insertion_point(copy_constructor:Mysqlx.Expr.Operator)
2348 }
2349 
SharedCtor()2350 void Operator::SharedCtor() {
2351   ::google::protobuf::internal::GetEmptyString();
2352   _cached_size_ = 0;
2353   name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2354   ::memset(_has_bits_, 0, sizeof(_has_bits_));
2355 }
2356 
~Operator()2357 Operator::~Operator() {
2358   // @@protoc_insertion_point(destructor:Mysqlx.Expr.Operator)
2359   SharedDtor();
2360 }
2361 
SharedDtor()2362 void Operator::SharedDtor() {
2363   if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2364     delete name_;
2365   }
2366   if (this != default_instance_) {
2367   }
2368 }
2369 
SetCachedSize(int size) const2370 void Operator::SetCachedSize(int size) const {
2371   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2372   _cached_size_ = size;
2373   GOOGLE_SAFE_CONCURRENT_WRITES_END();
2374 }
descriptor()2375 const ::google::protobuf::Descriptor* Operator::descriptor() {
2376   protobuf_AssignDescriptorsOnce();
2377   return Operator_descriptor_;
2378 }
2379 
default_instance()2380 const Operator& Operator::default_instance() {
2381   if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fexpr_2eproto();
2382   return *default_instance_;
2383 }
2384 
2385 Operator* Operator::default_instance_ = NULL;
2386 
New() const2387 Operator* Operator::New() const {
2388   return new Operator;
2389 }
2390 
Clear()2391 void Operator::Clear() {
2392   if (has_name()) {
2393     if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2394       name_->clear();
2395     }
2396   }
2397   param_.Clear();
2398   ::memset(_has_bits_, 0, sizeof(_has_bits_));
2399   mutable_unknown_fields()->Clear();
2400 }
2401 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)2402 bool Operator::MergePartialFromCodedStream(
2403     ::google::protobuf::io::CodedInputStream* input) {
2404 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
2405   ::google::protobuf::uint32 tag;
2406   // @@protoc_insertion_point(parse_start:Mysqlx.Expr.Operator)
2407   for (;;) {
2408     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2409     tag = p.first;
2410     if (!p.second) goto handle_unusual;
2411     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2412       // required string name = 1;
2413       case 1: {
2414         if (tag == 10) {
2415           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2416                 input, this->mutable_name()));
2417           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2418             this->name().data(), this->name().length(),
2419             ::google::protobuf::internal::WireFormat::PARSE,
2420             "name");
2421         } else {
2422           goto handle_unusual;
2423         }
2424         if (input->ExpectTag(18)) goto parse_param;
2425         break;
2426       }
2427 
2428       // repeated .Mysqlx.Expr.Expr param = 2;
2429       case 2: {
2430         if (tag == 18) {
2431          parse_param:
2432           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2433                 input, add_param()));
2434         } else {
2435           goto handle_unusual;
2436         }
2437         if (input->ExpectTag(18)) goto parse_param;
2438         if (input->ExpectAtEnd()) goto success;
2439         break;
2440       }
2441 
2442       default: {
2443       handle_unusual:
2444         if (tag == 0 ||
2445             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2446             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2447           goto success;
2448         }
2449         DO_(::google::protobuf::internal::WireFormat::SkipField(
2450               input, tag, mutable_unknown_fields()));
2451         break;
2452       }
2453     }
2454   }
2455 success:
2456   // @@protoc_insertion_point(parse_success:Mysqlx.Expr.Operator)
2457   return true;
2458 failure:
2459   // @@protoc_insertion_point(parse_failure:Mysqlx.Expr.Operator)
2460   return false;
2461 #undef DO_
2462 }
2463 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const2464 void Operator::SerializeWithCachedSizes(
2465     ::google::protobuf::io::CodedOutputStream* output) const {
2466   // @@protoc_insertion_point(serialize_start:Mysqlx.Expr.Operator)
2467   // required string name = 1;
2468   if (has_name()) {
2469     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2470       this->name().data(), this->name().length(),
2471       ::google::protobuf::internal::WireFormat::SERIALIZE,
2472       "name");
2473     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2474       1, this->name(), output);
2475   }
2476 
2477   // repeated .Mysqlx.Expr.Expr param = 2;
2478   for (int i = 0; i < this->param_size(); i++) {
2479     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2480       2, this->param(i), output);
2481   }
2482 
2483   if (!unknown_fields().empty()) {
2484     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2485         unknown_fields(), output);
2486   }
2487   // @@protoc_insertion_point(serialize_end:Mysqlx.Expr.Operator)
2488 }
2489 
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const2490 ::google::protobuf::uint8* Operator::SerializeWithCachedSizesToArray(
2491     ::google::protobuf::uint8* target) const {
2492   // @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Expr.Operator)
2493   // required string name = 1;
2494   if (has_name()) {
2495     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2496       this->name().data(), this->name().length(),
2497       ::google::protobuf::internal::WireFormat::SERIALIZE,
2498       "name");
2499     target =
2500       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2501         1, this->name(), target);
2502   }
2503 
2504   // repeated .Mysqlx.Expr.Expr param = 2;
2505   for (int i = 0; i < this->param_size(); i++) {
2506     target = ::google::protobuf::internal::WireFormatLite::
2507       WriteMessageNoVirtualToArray(
2508         2, this->param(i), target);
2509   }
2510 
2511   if (!unknown_fields().empty()) {
2512     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2513         unknown_fields(), target);
2514   }
2515   // @@protoc_insertion_point(serialize_to_array_end:Mysqlx.Expr.Operator)
2516   return target;
2517 }
2518 
ByteSize() const2519 int Operator::ByteSize() const {
2520   int total_size = 0;
2521 
2522   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2523     // required string name = 1;
2524     if (has_name()) {
2525       total_size += 1 +
2526         ::google::protobuf::internal::WireFormatLite::StringSize(
2527           this->name());
2528     }
2529 
2530   }
2531   // repeated .Mysqlx.Expr.Expr param = 2;
2532   total_size += 1 * this->param_size();
2533   for (int i = 0; i < this->param_size(); i++) {
2534     total_size +=
2535       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2536         this->param(i));
2537   }
2538 
2539   if (!unknown_fields().empty()) {
2540     total_size +=
2541       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2542         unknown_fields());
2543   }
2544   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2545   _cached_size_ = total_size;
2546   GOOGLE_SAFE_CONCURRENT_WRITES_END();
2547   return total_size;
2548 }
2549 
MergeFrom(const::google::protobuf::Message & from)2550 void Operator::MergeFrom(const ::google::protobuf::Message& from) {
2551   GOOGLE_CHECK_NE(&from, this);
2552   const Operator* source =
2553     ::google::protobuf::internal::dynamic_cast_if_available<const Operator*>(
2554       &from);
2555   if (source == NULL) {
2556     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2557   } else {
2558     MergeFrom(*source);
2559   }
2560 }
2561 
MergeFrom(const Operator & from)2562 void Operator::MergeFrom(const Operator& from) {
2563   GOOGLE_CHECK_NE(&from, this);
2564   param_.MergeFrom(from.param_);
2565   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2566     if (from.has_name()) {
2567       set_name(from.name());
2568     }
2569   }
2570   mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2571 }
2572 
CopyFrom(const::google::protobuf::Message & from)2573 void Operator::CopyFrom(const ::google::protobuf::Message& from) {
2574   if (&from == this) return;
2575   Clear();
2576   MergeFrom(from);
2577 }
2578 
CopyFrom(const Operator & from)2579 void Operator::CopyFrom(const Operator& from) {
2580   if (&from == this) return;
2581   Clear();
2582   MergeFrom(from);
2583 }
2584 
IsInitialized() const2585 bool Operator::IsInitialized() const {
2586   if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
2587 
2588   if (!::google::protobuf::internal::AllAreInitialized(this->param())) return false;
2589   return true;
2590 }
2591 
Swap(Operator * other)2592 void Operator::Swap(Operator* other) {
2593   if (other != this) {
2594     std::swap(name_, other->name_);
2595     param_.Swap(&other->param_);
2596     std::swap(_has_bits_[0], other->_has_bits_[0]);
2597     _unknown_fields_.Swap(&other->_unknown_fields_);
2598     std::swap(_cached_size_, other->_cached_size_);
2599   }
2600 }
2601 
GetMetadata() const2602 ::google::protobuf::Metadata Operator::GetMetadata() const {
2603   protobuf_AssignDescriptorsOnce();
2604   ::google::protobuf::Metadata metadata;
2605   metadata.descriptor = Operator_descriptor_;
2606   metadata.reflection = Operator_reflection_;
2607   return metadata;
2608 }
2609 
2610 
2611 // ===================================================================
2612 
2613 #ifndef _MSC_VER
2614 const int Object_ObjectField::kKeyFieldNumber;
2615 const int Object_ObjectField::kValueFieldNumber;
2616 #endif  // !_MSC_VER
2617 
Object_ObjectField()2618 Object_ObjectField::Object_ObjectField()
2619   : ::google::protobuf::Message() {
2620   SharedCtor();
2621   // @@protoc_insertion_point(constructor:Mysqlx.Expr.Object.ObjectField)
2622 }
2623 
InitAsDefaultInstance()2624 void Object_ObjectField::InitAsDefaultInstance() {
2625   value_ = const_cast< ::Mysqlx::Expr::Expr*>(&::Mysqlx::Expr::Expr::default_instance());
2626 }
2627 
Object_ObjectField(const Object_ObjectField & from)2628 Object_ObjectField::Object_ObjectField(const Object_ObjectField& from)
2629   : ::google::protobuf::Message() {
2630   SharedCtor();
2631   MergeFrom(from);
2632   // @@protoc_insertion_point(copy_constructor:Mysqlx.Expr.Object.ObjectField)
2633 }
2634 
SharedCtor()2635 void Object_ObjectField::SharedCtor() {
2636   ::google::protobuf::internal::GetEmptyString();
2637   _cached_size_ = 0;
2638   key_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2639   value_ = NULL;
2640   ::memset(_has_bits_, 0, sizeof(_has_bits_));
2641 }
2642 
~Object_ObjectField()2643 Object_ObjectField::~Object_ObjectField() {
2644   // @@protoc_insertion_point(destructor:Mysqlx.Expr.Object.ObjectField)
2645   SharedDtor();
2646 }
2647 
SharedDtor()2648 void Object_ObjectField::SharedDtor() {
2649   if (key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2650     delete key_;
2651   }
2652   if (this != default_instance_) {
2653     delete value_;
2654   }
2655 }
2656 
SetCachedSize(int size) const2657 void Object_ObjectField::SetCachedSize(int size) const {
2658   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2659   _cached_size_ = size;
2660   GOOGLE_SAFE_CONCURRENT_WRITES_END();
2661 }
descriptor()2662 const ::google::protobuf::Descriptor* Object_ObjectField::descriptor() {
2663   protobuf_AssignDescriptorsOnce();
2664   return Object_ObjectField_descriptor_;
2665 }
2666 
default_instance()2667 const Object_ObjectField& Object_ObjectField::default_instance() {
2668   if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fexpr_2eproto();
2669   return *default_instance_;
2670 }
2671 
2672 Object_ObjectField* Object_ObjectField::default_instance_ = NULL;
2673 
New() const2674 Object_ObjectField* Object_ObjectField::New() const {
2675   return new Object_ObjectField;
2676 }
2677 
Clear()2678 void Object_ObjectField::Clear() {
2679   if (_has_bits_[0 / 32] & 3) {
2680     if (has_key()) {
2681       if (key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2682         key_->clear();
2683       }
2684     }
2685     if (has_value()) {
2686       if (value_ != NULL) value_->::Mysqlx::Expr::Expr::Clear();
2687     }
2688   }
2689   ::memset(_has_bits_, 0, sizeof(_has_bits_));
2690   mutable_unknown_fields()->Clear();
2691 }
2692 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)2693 bool Object_ObjectField::MergePartialFromCodedStream(
2694     ::google::protobuf::io::CodedInputStream* input) {
2695 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
2696   ::google::protobuf::uint32 tag;
2697   // @@protoc_insertion_point(parse_start:Mysqlx.Expr.Object.ObjectField)
2698   for (;;) {
2699     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2700     tag = p.first;
2701     if (!p.second) goto handle_unusual;
2702     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2703       // required string key = 1;
2704       case 1: {
2705         if (tag == 10) {
2706           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2707                 input, this->mutable_key()));
2708           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2709             this->key().data(), this->key().length(),
2710             ::google::protobuf::internal::WireFormat::PARSE,
2711             "key");
2712         } else {
2713           goto handle_unusual;
2714         }
2715         if (input->ExpectTag(18)) goto parse_value;
2716         break;
2717       }
2718 
2719       // required .Mysqlx.Expr.Expr value = 2;
2720       case 2: {
2721         if (tag == 18) {
2722          parse_value:
2723           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2724                input, mutable_value()));
2725         } else {
2726           goto handle_unusual;
2727         }
2728         if (input->ExpectAtEnd()) goto success;
2729         break;
2730       }
2731 
2732       default: {
2733       handle_unusual:
2734         if (tag == 0 ||
2735             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2736             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2737           goto success;
2738         }
2739         DO_(::google::protobuf::internal::WireFormat::SkipField(
2740               input, tag, mutable_unknown_fields()));
2741         break;
2742       }
2743     }
2744   }
2745 success:
2746   // @@protoc_insertion_point(parse_success:Mysqlx.Expr.Object.ObjectField)
2747   return true;
2748 failure:
2749   // @@protoc_insertion_point(parse_failure:Mysqlx.Expr.Object.ObjectField)
2750   return false;
2751 #undef DO_
2752 }
2753 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const2754 void Object_ObjectField::SerializeWithCachedSizes(
2755     ::google::protobuf::io::CodedOutputStream* output) const {
2756   // @@protoc_insertion_point(serialize_start:Mysqlx.Expr.Object.ObjectField)
2757   // required string key = 1;
2758   if (has_key()) {
2759     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2760       this->key().data(), this->key().length(),
2761       ::google::protobuf::internal::WireFormat::SERIALIZE,
2762       "key");
2763     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2764       1, this->key(), output);
2765   }
2766 
2767   // required .Mysqlx.Expr.Expr value = 2;
2768   if (has_value()) {
2769     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2770       2, this->value(), output);
2771   }
2772 
2773   if (!unknown_fields().empty()) {
2774     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2775         unknown_fields(), output);
2776   }
2777   // @@protoc_insertion_point(serialize_end:Mysqlx.Expr.Object.ObjectField)
2778 }
2779 
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const2780 ::google::protobuf::uint8* Object_ObjectField::SerializeWithCachedSizesToArray(
2781     ::google::protobuf::uint8* target) const {
2782   // @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Expr.Object.ObjectField)
2783   // required string key = 1;
2784   if (has_key()) {
2785     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2786       this->key().data(), this->key().length(),
2787       ::google::protobuf::internal::WireFormat::SERIALIZE,
2788       "key");
2789     target =
2790       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2791         1, this->key(), target);
2792   }
2793 
2794   // required .Mysqlx.Expr.Expr value = 2;
2795   if (has_value()) {
2796     target = ::google::protobuf::internal::WireFormatLite::
2797       WriteMessageNoVirtualToArray(
2798         2, this->value(), target);
2799   }
2800 
2801   if (!unknown_fields().empty()) {
2802     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2803         unknown_fields(), target);
2804   }
2805   // @@protoc_insertion_point(serialize_to_array_end:Mysqlx.Expr.Object.ObjectField)
2806   return target;
2807 }
2808 
ByteSize() const2809 int Object_ObjectField::ByteSize() const {
2810   int total_size = 0;
2811 
2812   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2813     // required string key = 1;
2814     if (has_key()) {
2815       total_size += 1 +
2816         ::google::protobuf::internal::WireFormatLite::StringSize(
2817           this->key());
2818     }
2819 
2820     // required .Mysqlx.Expr.Expr value = 2;
2821     if (has_value()) {
2822       total_size += 1 +
2823         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2824           this->value());
2825     }
2826 
2827   }
2828   if (!unknown_fields().empty()) {
2829     total_size +=
2830       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2831         unknown_fields());
2832   }
2833   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2834   _cached_size_ = total_size;
2835   GOOGLE_SAFE_CONCURRENT_WRITES_END();
2836   return total_size;
2837 }
2838 
MergeFrom(const::google::protobuf::Message & from)2839 void Object_ObjectField::MergeFrom(const ::google::protobuf::Message& from) {
2840   GOOGLE_CHECK_NE(&from, this);
2841   const Object_ObjectField* source =
2842     ::google::protobuf::internal::dynamic_cast_if_available<const Object_ObjectField*>(
2843       &from);
2844   if (source == NULL) {
2845     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2846   } else {
2847     MergeFrom(*source);
2848   }
2849 }
2850 
MergeFrom(const Object_ObjectField & from)2851 void Object_ObjectField::MergeFrom(const Object_ObjectField& from) {
2852   GOOGLE_CHECK_NE(&from, this);
2853   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2854     if (from.has_key()) {
2855       set_key(from.key());
2856     }
2857     if (from.has_value()) {
2858       mutable_value()->::Mysqlx::Expr::Expr::MergeFrom(from.value());
2859     }
2860   }
2861   mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2862 }
2863 
CopyFrom(const::google::protobuf::Message & from)2864 void Object_ObjectField::CopyFrom(const ::google::protobuf::Message& from) {
2865   if (&from == this) return;
2866   Clear();
2867   MergeFrom(from);
2868 }
2869 
CopyFrom(const Object_ObjectField & from)2870 void Object_ObjectField::CopyFrom(const Object_ObjectField& from) {
2871   if (&from == this) return;
2872   Clear();
2873   MergeFrom(from);
2874 }
2875 
IsInitialized() const2876 bool Object_ObjectField::IsInitialized() const {
2877   if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
2878 
2879   if (has_value()) {
2880     if (!this->value().IsInitialized()) return false;
2881   }
2882   return true;
2883 }
2884 
Swap(Object_ObjectField * other)2885 void Object_ObjectField::Swap(Object_ObjectField* other) {
2886   if (other != this) {
2887     std::swap(key_, other->key_);
2888     std::swap(value_, other->value_);
2889     std::swap(_has_bits_[0], other->_has_bits_[0]);
2890     _unknown_fields_.Swap(&other->_unknown_fields_);
2891     std::swap(_cached_size_, other->_cached_size_);
2892   }
2893 }
2894 
GetMetadata() const2895 ::google::protobuf::Metadata Object_ObjectField::GetMetadata() const {
2896   protobuf_AssignDescriptorsOnce();
2897   ::google::protobuf::Metadata metadata;
2898   metadata.descriptor = Object_ObjectField_descriptor_;
2899   metadata.reflection = Object_ObjectField_reflection_;
2900   return metadata;
2901 }
2902 
2903 
2904 // -------------------------------------------------------------------
2905 
2906 #ifndef _MSC_VER
2907 const int Object::kFldFieldNumber;
2908 #endif  // !_MSC_VER
2909 
Object()2910 Object::Object()
2911   : ::google::protobuf::Message() {
2912   SharedCtor();
2913   // @@protoc_insertion_point(constructor:Mysqlx.Expr.Object)
2914 }
2915 
InitAsDefaultInstance()2916 void Object::InitAsDefaultInstance() {
2917 }
2918 
Object(const Object & from)2919 Object::Object(const Object& from)
2920   : ::google::protobuf::Message() {
2921   SharedCtor();
2922   MergeFrom(from);
2923   // @@protoc_insertion_point(copy_constructor:Mysqlx.Expr.Object)
2924 }
2925 
SharedCtor()2926 void Object::SharedCtor() {
2927   _cached_size_ = 0;
2928   ::memset(_has_bits_, 0, sizeof(_has_bits_));
2929 }
2930 
~Object()2931 Object::~Object() {
2932   // @@protoc_insertion_point(destructor:Mysqlx.Expr.Object)
2933   SharedDtor();
2934 }
2935 
SharedDtor()2936 void Object::SharedDtor() {
2937   if (this != default_instance_) {
2938   }
2939 }
2940 
SetCachedSize(int size) const2941 void Object::SetCachedSize(int size) const {
2942   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2943   _cached_size_ = size;
2944   GOOGLE_SAFE_CONCURRENT_WRITES_END();
2945 }
descriptor()2946 const ::google::protobuf::Descriptor* Object::descriptor() {
2947   protobuf_AssignDescriptorsOnce();
2948   return Object_descriptor_;
2949 }
2950 
default_instance()2951 const Object& Object::default_instance() {
2952   if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fexpr_2eproto();
2953   return *default_instance_;
2954 }
2955 
2956 Object* Object::default_instance_ = NULL;
2957 
New() const2958 Object* Object::New() const {
2959   return new Object;
2960 }
2961 
Clear()2962 void Object::Clear() {
2963   fld_.Clear();
2964   ::memset(_has_bits_, 0, sizeof(_has_bits_));
2965   mutable_unknown_fields()->Clear();
2966 }
2967 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)2968 bool Object::MergePartialFromCodedStream(
2969     ::google::protobuf::io::CodedInputStream* input) {
2970 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
2971   ::google::protobuf::uint32 tag;
2972   // @@protoc_insertion_point(parse_start:Mysqlx.Expr.Object)
2973   for (;;) {
2974     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2975     tag = p.first;
2976     if (!p.second) goto handle_unusual;
2977     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2978       // repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
2979       case 1: {
2980         if (tag == 10) {
2981          parse_fld:
2982           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2983                 input, add_fld()));
2984         } else {
2985           goto handle_unusual;
2986         }
2987         if (input->ExpectTag(10)) goto parse_fld;
2988         if (input->ExpectAtEnd()) goto success;
2989         break;
2990       }
2991 
2992       default: {
2993       handle_unusual:
2994         if (tag == 0 ||
2995             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2996             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2997           goto success;
2998         }
2999         DO_(::google::protobuf::internal::WireFormat::SkipField(
3000               input, tag, mutable_unknown_fields()));
3001         break;
3002       }
3003     }
3004   }
3005 success:
3006   // @@protoc_insertion_point(parse_success:Mysqlx.Expr.Object)
3007   return true;
3008 failure:
3009   // @@protoc_insertion_point(parse_failure:Mysqlx.Expr.Object)
3010   return false;
3011 #undef DO_
3012 }
3013 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const3014 void Object::SerializeWithCachedSizes(
3015     ::google::protobuf::io::CodedOutputStream* output) const {
3016   // @@protoc_insertion_point(serialize_start:Mysqlx.Expr.Object)
3017   // repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
3018   for (int i = 0; i < this->fld_size(); i++) {
3019     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3020       1, this->fld(i), output);
3021   }
3022 
3023   if (!unknown_fields().empty()) {
3024     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3025         unknown_fields(), output);
3026   }
3027   // @@protoc_insertion_point(serialize_end:Mysqlx.Expr.Object)
3028 }
3029 
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const3030 ::google::protobuf::uint8* Object::SerializeWithCachedSizesToArray(
3031     ::google::protobuf::uint8* target) const {
3032   // @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Expr.Object)
3033   // repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
3034   for (int i = 0; i < this->fld_size(); i++) {
3035     target = ::google::protobuf::internal::WireFormatLite::
3036       WriteMessageNoVirtualToArray(
3037         1, this->fld(i), target);
3038   }
3039 
3040   if (!unknown_fields().empty()) {
3041     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3042         unknown_fields(), target);
3043   }
3044   // @@protoc_insertion_point(serialize_to_array_end:Mysqlx.Expr.Object)
3045   return target;
3046 }
3047 
ByteSize() const3048 int Object::ByteSize() const {
3049   int total_size = 0;
3050 
3051   // repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
3052   total_size += 1 * this->fld_size();
3053   for (int i = 0; i < this->fld_size(); i++) {
3054     total_size +=
3055       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3056         this->fld(i));
3057   }
3058 
3059   if (!unknown_fields().empty()) {
3060     total_size +=
3061       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3062         unknown_fields());
3063   }
3064   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3065   _cached_size_ = total_size;
3066   GOOGLE_SAFE_CONCURRENT_WRITES_END();
3067   return total_size;
3068 }
3069 
MergeFrom(const::google::protobuf::Message & from)3070 void Object::MergeFrom(const ::google::protobuf::Message& from) {
3071   GOOGLE_CHECK_NE(&from, this);
3072   const Object* source =
3073     ::google::protobuf::internal::dynamic_cast_if_available<const Object*>(
3074       &from);
3075   if (source == NULL) {
3076     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3077   } else {
3078     MergeFrom(*source);
3079   }
3080 }
3081 
MergeFrom(const Object & from)3082 void Object::MergeFrom(const Object& from) {
3083   GOOGLE_CHECK_NE(&from, this);
3084   fld_.MergeFrom(from.fld_);
3085   mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3086 }
3087 
CopyFrom(const::google::protobuf::Message & from)3088 void Object::CopyFrom(const ::google::protobuf::Message& from) {
3089   if (&from == this) return;
3090   Clear();
3091   MergeFrom(from);
3092 }
3093 
CopyFrom(const Object & from)3094 void Object::CopyFrom(const Object& from) {
3095   if (&from == this) return;
3096   Clear();
3097   MergeFrom(from);
3098 }
3099 
IsInitialized() const3100 bool Object::IsInitialized() const {
3101 
3102   if (!::google::protobuf::internal::AllAreInitialized(this->fld())) return false;
3103   return true;
3104 }
3105 
Swap(Object * other)3106 void Object::Swap(Object* other) {
3107   if (other != this) {
3108     fld_.Swap(&other->fld_);
3109     std::swap(_has_bits_[0], other->_has_bits_[0]);
3110     _unknown_fields_.Swap(&other->_unknown_fields_);
3111     std::swap(_cached_size_, other->_cached_size_);
3112   }
3113 }
3114 
GetMetadata() const3115 ::google::protobuf::Metadata Object::GetMetadata() const {
3116   protobuf_AssignDescriptorsOnce();
3117   ::google::protobuf::Metadata metadata;
3118   metadata.descriptor = Object_descriptor_;
3119   metadata.reflection = Object_reflection_;
3120   return metadata;
3121 }
3122 
3123 
3124 // ===================================================================
3125 
3126 #ifndef _MSC_VER
3127 const int Array::kValueFieldNumber;
3128 #endif  // !_MSC_VER
3129 
Array()3130 Array::Array()
3131   : ::google::protobuf::Message() {
3132   SharedCtor();
3133   // @@protoc_insertion_point(constructor:Mysqlx.Expr.Array)
3134 }
3135 
InitAsDefaultInstance()3136 void Array::InitAsDefaultInstance() {
3137 }
3138 
Array(const Array & from)3139 Array::Array(const Array& from)
3140   : ::google::protobuf::Message() {
3141   SharedCtor();
3142   MergeFrom(from);
3143   // @@protoc_insertion_point(copy_constructor:Mysqlx.Expr.Array)
3144 }
3145 
SharedCtor()3146 void Array::SharedCtor() {
3147   _cached_size_ = 0;
3148   ::memset(_has_bits_, 0, sizeof(_has_bits_));
3149 }
3150 
~Array()3151 Array::~Array() {
3152   // @@protoc_insertion_point(destructor:Mysqlx.Expr.Array)
3153   SharedDtor();
3154 }
3155 
SharedDtor()3156 void Array::SharedDtor() {
3157   if (this != default_instance_) {
3158   }
3159 }
3160 
SetCachedSize(int size) const3161 void Array::SetCachedSize(int size) const {
3162   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3163   _cached_size_ = size;
3164   GOOGLE_SAFE_CONCURRENT_WRITES_END();
3165 }
descriptor()3166 const ::google::protobuf::Descriptor* Array::descriptor() {
3167   protobuf_AssignDescriptorsOnce();
3168   return Array_descriptor_;
3169 }
3170 
default_instance()3171 const Array& Array::default_instance() {
3172   if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fexpr_2eproto();
3173   return *default_instance_;
3174 }
3175 
3176 Array* Array::default_instance_ = NULL;
3177 
New() const3178 Array* Array::New() const {
3179   return new Array;
3180 }
3181 
Clear()3182 void Array::Clear() {
3183   value_.Clear();
3184   ::memset(_has_bits_, 0, sizeof(_has_bits_));
3185   mutable_unknown_fields()->Clear();
3186 }
3187 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)3188 bool Array::MergePartialFromCodedStream(
3189     ::google::protobuf::io::CodedInputStream* input) {
3190 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
3191   ::google::protobuf::uint32 tag;
3192   // @@protoc_insertion_point(parse_start:Mysqlx.Expr.Array)
3193   for (;;) {
3194     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
3195     tag = p.first;
3196     if (!p.second) goto handle_unusual;
3197     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3198       // repeated .Mysqlx.Expr.Expr value = 1;
3199       case 1: {
3200         if (tag == 10) {
3201          parse_value:
3202           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3203                 input, add_value()));
3204         } else {
3205           goto handle_unusual;
3206         }
3207         if (input->ExpectTag(10)) goto parse_value;
3208         if (input->ExpectAtEnd()) goto success;
3209         break;
3210       }
3211 
3212       default: {
3213       handle_unusual:
3214         if (tag == 0 ||
3215             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3216             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3217           goto success;
3218         }
3219         DO_(::google::protobuf::internal::WireFormat::SkipField(
3220               input, tag, mutable_unknown_fields()));
3221         break;
3222       }
3223     }
3224   }
3225 success:
3226   // @@protoc_insertion_point(parse_success:Mysqlx.Expr.Array)
3227   return true;
3228 failure:
3229   // @@protoc_insertion_point(parse_failure:Mysqlx.Expr.Array)
3230   return false;
3231 #undef DO_
3232 }
3233 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const3234 void Array::SerializeWithCachedSizes(
3235     ::google::protobuf::io::CodedOutputStream* output) const {
3236   // @@protoc_insertion_point(serialize_start:Mysqlx.Expr.Array)
3237   // repeated .Mysqlx.Expr.Expr value = 1;
3238   for (int i = 0; i < this->value_size(); i++) {
3239     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3240       1, this->value(i), output);
3241   }
3242 
3243   if (!unknown_fields().empty()) {
3244     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3245         unknown_fields(), output);
3246   }
3247   // @@protoc_insertion_point(serialize_end:Mysqlx.Expr.Array)
3248 }
3249 
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const3250 ::google::protobuf::uint8* Array::SerializeWithCachedSizesToArray(
3251     ::google::protobuf::uint8* target) const {
3252   // @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Expr.Array)
3253   // repeated .Mysqlx.Expr.Expr value = 1;
3254   for (int i = 0; i < this->value_size(); i++) {
3255     target = ::google::protobuf::internal::WireFormatLite::
3256       WriteMessageNoVirtualToArray(
3257         1, this->value(i), target);
3258   }
3259 
3260   if (!unknown_fields().empty()) {
3261     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3262         unknown_fields(), target);
3263   }
3264   // @@protoc_insertion_point(serialize_to_array_end:Mysqlx.Expr.Array)
3265   return target;
3266 }
3267 
ByteSize() const3268 int Array::ByteSize() const {
3269   int total_size = 0;
3270 
3271   // repeated .Mysqlx.Expr.Expr value = 1;
3272   total_size += 1 * this->value_size();
3273   for (int i = 0; i < this->value_size(); i++) {
3274     total_size +=
3275       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3276         this->value(i));
3277   }
3278 
3279   if (!unknown_fields().empty()) {
3280     total_size +=
3281       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3282         unknown_fields());
3283   }
3284   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3285   _cached_size_ = total_size;
3286   GOOGLE_SAFE_CONCURRENT_WRITES_END();
3287   return total_size;
3288 }
3289 
MergeFrom(const::google::protobuf::Message & from)3290 void Array::MergeFrom(const ::google::protobuf::Message& from) {
3291   GOOGLE_CHECK_NE(&from, this);
3292   const Array* source =
3293     ::google::protobuf::internal::dynamic_cast_if_available<const Array*>(
3294       &from);
3295   if (source == NULL) {
3296     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3297   } else {
3298     MergeFrom(*source);
3299   }
3300 }
3301 
MergeFrom(const Array & from)3302 void Array::MergeFrom(const Array& from) {
3303   GOOGLE_CHECK_NE(&from, this);
3304   value_.MergeFrom(from.value_);
3305   mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3306 }
3307 
CopyFrom(const::google::protobuf::Message & from)3308 void Array::CopyFrom(const ::google::protobuf::Message& from) {
3309   if (&from == this) return;
3310   Clear();
3311   MergeFrom(from);
3312 }
3313 
CopyFrom(const Array & from)3314 void Array::CopyFrom(const Array& from) {
3315   if (&from == this) return;
3316   Clear();
3317   MergeFrom(from);
3318 }
3319 
IsInitialized() const3320 bool Array::IsInitialized() const {
3321 
3322   if (!::google::protobuf::internal::AllAreInitialized(this->value())) return false;
3323   return true;
3324 }
3325 
Swap(Array * other)3326 void Array::Swap(Array* other) {
3327   if (other != this) {
3328     value_.Swap(&other->value_);
3329     std::swap(_has_bits_[0], other->_has_bits_[0]);
3330     _unknown_fields_.Swap(&other->_unknown_fields_);
3331     std::swap(_cached_size_, other->_cached_size_);
3332   }
3333 }
3334 
GetMetadata() const3335 ::google::protobuf::Metadata Array::GetMetadata() const {
3336   protobuf_AssignDescriptorsOnce();
3337   ::google::protobuf::Metadata metadata;
3338   metadata.descriptor = Array_descriptor_;
3339   metadata.reflection = Array_reflection_;
3340   return metadata;
3341 }
3342 
3343 
3344 // @@protoc_insertion_point(namespace_scope)
3345 
3346 }  // namespace Expr
3347 }  // namespace Mysqlx
3348 
3349 // @@protoc_insertion_point(global_scope)
3350