• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: google/protobuf/type.proto
3 
4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 #include <google/protobuf/type.pb.h>
6 
7 #include <algorithm>
8 
9 #include <google/protobuf/stubs/common.h>
10 #include <google/protobuf/stubs/port.h>
11 #include <google/protobuf/stubs/once.h>
12 #include <google/protobuf/io/coded_stream.h>
13 #include <google/protobuf/wire_format_lite_inl.h>
14 #include <google/protobuf/descriptor.h>
15 #include <google/protobuf/generated_message_reflection.h>
16 #include <google/protobuf/reflection_ops.h>
17 #include <google/protobuf/wire_format.h>
18 // @@protoc_insertion_point(includes)
19 
20 namespace google {
21 namespace protobuf {
22 
23 namespace {
24 
25 const ::google::protobuf::Descriptor* Type_descriptor_ = NULL;
26 const ::google::protobuf::internal::GeneratedMessageReflection*
27   Type_reflection_ = NULL;
28 const ::google::protobuf::Descriptor* Field_descriptor_ = NULL;
29 const ::google::protobuf::internal::GeneratedMessageReflection*
30   Field_reflection_ = NULL;
31 const ::google::protobuf::EnumDescriptor* Field_Kind_descriptor_ = NULL;
32 const ::google::protobuf::EnumDescriptor* Field_Cardinality_descriptor_ = NULL;
33 const ::google::protobuf::Descriptor* Enum_descriptor_ = NULL;
34 const ::google::protobuf::internal::GeneratedMessageReflection*
35   Enum_reflection_ = NULL;
36 const ::google::protobuf::Descriptor* EnumValue_descriptor_ = NULL;
37 const ::google::protobuf::internal::GeneratedMessageReflection*
38   EnumValue_reflection_ = NULL;
39 const ::google::protobuf::Descriptor* Option_descriptor_ = NULL;
40 const ::google::protobuf::internal::GeneratedMessageReflection*
41   Option_reflection_ = NULL;
42 const ::google::protobuf::EnumDescriptor* Syntax_descriptor_ = NULL;
43 
44 }  // namespace
45 
46 
47 void protobuf_AssignDesc_google_2fprotobuf_2ftype_2eproto() GOOGLE_ATTRIBUTE_COLD;
protobuf_AssignDesc_google_2fprotobuf_2ftype_2eproto()48 void protobuf_AssignDesc_google_2fprotobuf_2ftype_2eproto() {
49   protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto();
50   const ::google::protobuf::FileDescriptor* file =
51     ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
52       "google/protobuf/type.proto");
53   GOOGLE_CHECK(file != NULL);
54   Type_descriptor_ = file->message_type(0);
55   static const int Type_offsets_[6] = {
56     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, name_),
57     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, fields_),
58     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, oneofs_),
59     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, options_),
60     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, source_context_),
61     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, syntax_),
62   };
63   Type_reflection_ =
64     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
65       Type_descriptor_,
66       Type::default_instance_,
67       Type_offsets_,
68       -1,
69       -1,
70       -1,
71       sizeof(Type),
72       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, _internal_metadata_),
73       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, _is_default_instance_));
74   Field_descriptor_ = file->message_type(1);
75   static const int Field_offsets_[10] = {
76     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, kind_),
77     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, cardinality_),
78     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, number_),
79     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, name_),
80     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, type_url_),
81     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, oneof_index_),
82     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, packed_),
83     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, options_),
84     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, json_name_),
85     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, default_value_),
86   };
87   Field_reflection_ =
88     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
89       Field_descriptor_,
90       Field::default_instance_,
91       Field_offsets_,
92       -1,
93       -1,
94       -1,
95       sizeof(Field),
96       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, _internal_metadata_),
97       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, _is_default_instance_));
98   Field_Kind_descriptor_ = Field_descriptor_->enum_type(0);
99   Field_Cardinality_descriptor_ = Field_descriptor_->enum_type(1);
100   Enum_descriptor_ = file->message_type(2);
101   static const int Enum_offsets_[5] = {
102     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, name_),
103     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, enumvalue_),
104     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, options_),
105     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, source_context_),
106     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, syntax_),
107   };
108   Enum_reflection_ =
109     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
110       Enum_descriptor_,
111       Enum::default_instance_,
112       Enum_offsets_,
113       -1,
114       -1,
115       -1,
116       sizeof(Enum),
117       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, _internal_metadata_),
118       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, _is_default_instance_));
119   EnumValue_descriptor_ = file->message_type(3);
120   static const int EnumValue_offsets_[3] = {
121     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValue, name_),
122     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValue, number_),
123     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValue, options_),
124   };
125   EnumValue_reflection_ =
126     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
127       EnumValue_descriptor_,
128       EnumValue::default_instance_,
129       EnumValue_offsets_,
130       -1,
131       -1,
132       -1,
133       sizeof(EnumValue),
134       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValue, _internal_metadata_),
135       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValue, _is_default_instance_));
136   Option_descriptor_ = file->message_type(4);
137   static const int Option_offsets_[2] = {
138     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Option, name_),
139     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Option, value_),
140   };
141   Option_reflection_ =
142     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
143       Option_descriptor_,
144       Option::default_instance_,
145       Option_offsets_,
146       -1,
147       -1,
148       -1,
149       sizeof(Option),
150       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Option, _internal_metadata_),
151       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Option, _is_default_instance_));
152   Syntax_descriptor_ = file->enum_type(0);
153 }
154 
155 namespace {
156 
157 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
protobuf_AssignDescriptorsOnce()158 inline void protobuf_AssignDescriptorsOnce() {
159   ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
160                  &protobuf_AssignDesc_google_2fprotobuf_2ftype_2eproto);
161 }
162 
163 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
protobuf_RegisterTypes(const::std::string &)164 void protobuf_RegisterTypes(const ::std::string&) {
165   protobuf_AssignDescriptorsOnce();
166   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
167       Type_descriptor_, &Type::default_instance());
168   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
169       Field_descriptor_, &Field::default_instance());
170   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
171       Enum_descriptor_, &Enum::default_instance());
172   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
173       EnumValue_descriptor_, &EnumValue::default_instance());
174   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
175       Option_descriptor_, &Option::default_instance());
176 }
177 
178 }  // namespace
179 
protobuf_ShutdownFile_google_2fprotobuf_2ftype_2eproto()180 void protobuf_ShutdownFile_google_2fprotobuf_2ftype_2eproto() {
181   delete Type::default_instance_;
182   delete Type_reflection_;
183   delete Field::default_instance_;
184   delete Field_reflection_;
185   delete Enum::default_instance_;
186   delete Enum_reflection_;
187   delete EnumValue::default_instance_;
188   delete EnumValue_reflection_;
189   delete Option::default_instance_;
190   delete Option_reflection_;
191 }
192 
193 void protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto() GOOGLE_ATTRIBUTE_COLD;
protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto()194 void protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto() {
195   static bool already_here = false;
196   if (already_here) return;
197   already_here = true;
198   GOOGLE_PROTOBUF_VERIFY_VERSION;
199 
200   ::google::protobuf::protobuf_AddDesc_google_2fprotobuf_2fany_2eproto();
201   ::google::protobuf::protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2eproto();
202   ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
203     "\n\032google/protobuf/type.proto\022\017google.pro"
204     "tobuf\032\031google/protobuf/any.proto\032$google"
205     "/protobuf/source_context.proto\"\327\001\n\004Type\022"
206     "\014\n\004name\030\001 \001(\t\022&\n\006fields\030\002 \003(\0132\026.google.p"
207     "rotobuf.Field\022\016\n\006oneofs\030\003 \003(\t\022(\n\007options"
208     "\030\004 \003(\0132\027.google.protobuf.Option\0226\n\016sourc"
209     "e_context\030\005 \001(\0132\036.google.protobuf.Source"
210     "Context\022\'\n\006syntax\030\006 \001(\0162\027.google.protobu"
211     "f.Syntax\"\325\005\n\005Field\022)\n\004kind\030\001 \001(\0162\033.googl"
212     "e.protobuf.Field.Kind\0227\n\013cardinality\030\002 \001"
213     "(\0162\".google.protobuf.Field.Cardinality\022\016"
214     "\n\006number\030\003 \001(\005\022\014\n\004name\030\004 \001(\t\022\020\n\010type_url"
215     "\030\006 \001(\t\022\023\n\013oneof_index\030\007 \001(\005\022\016\n\006packed\030\010 "
216     "\001(\010\022(\n\007options\030\t \003(\0132\027.google.protobuf.O"
217     "ption\022\021\n\tjson_name\030\n \001(\t\022\025\n\rdefault_valu"
218     "e\030\013 \001(\t\"\310\002\n\004Kind\022\020\n\014TYPE_UNKNOWN\020\000\022\017\n\013TY"
219     "PE_DOUBLE\020\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTYPE_INT6"
220     "4\020\003\022\017\n\013TYPE_UINT64\020\004\022\016\n\nTYPE_INT32\020\005\022\020\n\014"
221     "TYPE_FIXED64\020\006\022\020\n\014TYPE_FIXED32\020\007\022\r\n\tTYPE"
222     "_BOOL\020\010\022\017\n\013TYPE_STRING\020\t\022\016\n\nTYPE_GROUP\020\n"
223     "\022\020\n\014TYPE_MESSAGE\020\013\022\016\n\nTYPE_BYTES\020\014\022\017\n\013TY"
224     "PE_UINT32\020\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_SFIXE"
225     "D32\020\017\022\021\n\rTYPE_SFIXED64\020\020\022\017\n\013TYPE_SINT32\020"
226     "\021\022\017\n\013TYPE_SINT64\020\022\"t\n\013Cardinality\022\027\n\023CAR"
227     "DINALITY_UNKNOWN\020\000\022\030\n\024CARDINALITY_OPTION"
228     "AL\020\001\022\030\n\024CARDINALITY_REQUIRED\020\002\022\030\n\024CARDIN"
229     "ALITY_REPEATED\020\003\"\316\001\n\004Enum\022\014\n\004name\030\001 \001(\t\022"
230     "-\n\tenumvalue\030\002 \003(\0132\032.google.protobuf.Enu"
231     "mValue\022(\n\007options\030\003 \003(\0132\027.google.protobu"
232     "f.Option\0226\n\016source_context\030\004 \001(\0132\036.googl"
233     "e.protobuf.SourceContext\022\'\n\006syntax\030\005 \001(\016"
234     "2\027.google.protobuf.Syntax\"S\n\tEnumValue\022\014"
235     "\n\004name\030\001 \001(\t\022\016\n\006number\030\002 \001(\005\022(\n\007options\030"
236     "\003 \003(\0132\027.google.protobuf.Option\";\n\006Option"
237     "\022\014\n\004name\030\001 \001(\t\022#\n\005value\030\002 \001(\0132\024.google.p"
238     "rotobuf.Any*.\n\006Syntax\022\021\n\rSYNTAX_PROTO2\020\000"
239     "\022\021\n\rSYNTAX_PROTO3\020\001BL\n\023com.google.protob"
240     "ufB\tTypeProtoP\001\240\001\001\242\002\003GPB\252\002\036Google.Protob"
241     "uf.WellKnownTypesb\006proto3", 1545);
242   ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
243     "google/protobuf/type.proto", &protobuf_RegisterTypes);
244   Type::default_instance_ = new Type();
245   Field::default_instance_ = new Field();
246   Enum::default_instance_ = new Enum();
247   EnumValue::default_instance_ = new EnumValue();
248   Option::default_instance_ = new Option();
249   Type::default_instance_->InitAsDefaultInstance();
250   Field::default_instance_->InitAsDefaultInstance();
251   Enum::default_instance_->InitAsDefaultInstance();
252   EnumValue::default_instance_->InitAsDefaultInstance();
253   Option::default_instance_->InitAsDefaultInstance();
254   ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2ftype_2eproto);
255 }
256 
257 // Force AddDescriptors() to be called at static initialization time.
258 struct StaticDescriptorInitializer_google_2fprotobuf_2ftype_2eproto {
StaticDescriptorInitializer_google_2fprotobuf_2ftype_2eprotogoogle::protobuf::StaticDescriptorInitializer_google_2fprotobuf_2ftype_2eproto259   StaticDescriptorInitializer_google_2fprotobuf_2ftype_2eproto() {
260     protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto();
261   }
262 } static_descriptor_initializer_google_2fprotobuf_2ftype_2eproto_;
Syntax_descriptor()263 const ::google::protobuf::EnumDescriptor* Syntax_descriptor() {
264   protobuf_AssignDescriptorsOnce();
265   return Syntax_descriptor_;
266 }
Syntax_IsValid(int value)267 bool Syntax_IsValid(int value) {
268   switch(value) {
269     case 0:
270     case 1:
271       return true;
272     default:
273       return false;
274   }
275 }
276 
277 
278 // ===================================================================
279 
280 #if !defined(_MSC_VER) || _MSC_VER >= 1900
281 const int Type::kNameFieldNumber;
282 const int Type::kFieldsFieldNumber;
283 const int Type::kOneofsFieldNumber;
284 const int Type::kOptionsFieldNumber;
285 const int Type::kSourceContextFieldNumber;
286 const int Type::kSyntaxFieldNumber;
287 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
288 
Type()289 Type::Type()
290   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
291   SharedCtor();
292   // @@protoc_insertion_point(constructor:google.protobuf.Type)
293 }
294 
InitAsDefaultInstance()295 void Type::InitAsDefaultInstance() {
296   _is_default_instance_ = true;
297   source_context_ = const_cast< ::google::protobuf::SourceContext*>(&::google::protobuf::SourceContext::default_instance());
298 }
299 
Type(const Type & from)300 Type::Type(const Type& from)
301   : ::google::protobuf::Message(),
302     _internal_metadata_(NULL) {
303   SharedCtor();
304   MergeFrom(from);
305   // @@protoc_insertion_point(copy_constructor:google.protobuf.Type)
306 }
307 
SharedCtor()308 void Type::SharedCtor() {
309     _is_default_instance_ = false;
310   ::google::protobuf::internal::GetEmptyString();
311   _cached_size_ = 0;
312   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
313   source_context_ = NULL;
314   syntax_ = 0;
315 }
316 
~Type()317 Type::~Type() {
318   // @@protoc_insertion_point(destructor:google.protobuf.Type)
319   SharedDtor();
320 }
321 
SharedDtor()322 void Type::SharedDtor() {
323   name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
324   if (this != default_instance_) {
325     delete source_context_;
326   }
327 }
328 
SetCachedSize(int size) const329 void Type::SetCachedSize(int size) const {
330   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
331   _cached_size_ = size;
332   GOOGLE_SAFE_CONCURRENT_WRITES_END();
333 }
descriptor()334 const ::google::protobuf::Descriptor* Type::descriptor() {
335   protobuf_AssignDescriptorsOnce();
336   return Type_descriptor_;
337 }
338 
default_instance()339 const Type& Type::default_instance() {
340   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto();
341   return *default_instance_;
342 }
343 
344 Type* Type::default_instance_ = NULL;
345 
New(::google::protobuf::Arena * arena) const346 Type* Type::New(::google::protobuf::Arena* arena) const {
347   Type* n = new Type;
348   if (arena != NULL) {
349     arena->Own(n);
350   }
351   return n;
352 }
353 
Clear()354 void Type::Clear() {
355 // @@protoc_insertion_point(message_clear_start:google.protobuf.Type)
356   name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
357   if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_context_;
358   source_context_ = NULL;
359   syntax_ = 0;
360   fields_.Clear();
361   oneofs_.Clear();
362   options_.Clear();
363 }
364 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)365 bool Type::MergePartialFromCodedStream(
366     ::google::protobuf::io::CodedInputStream* input) {
367 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
368   ::google::protobuf::uint32 tag;
369   // @@protoc_insertion_point(parse_start:google.protobuf.Type)
370   for (;;) {
371     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
372     tag = p.first;
373     if (!p.second) goto handle_unusual;
374     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
375       // optional string name = 1;
376       case 1: {
377         if (tag == 10) {
378           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
379                 input, this->mutable_name()));
380           DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
381             this->name().data(), this->name().length(),
382             ::google::protobuf::internal::WireFormatLite::PARSE,
383             "google.protobuf.Type.name"));
384         } else {
385           goto handle_unusual;
386         }
387         if (input->ExpectTag(18)) goto parse_fields;
388         break;
389       }
390 
391       // repeated .google.protobuf.Field fields = 2;
392       case 2: {
393         if (tag == 18) {
394          parse_fields:
395           DO_(input->IncrementRecursionDepth());
396          parse_loop_fields:
397           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
398                 input, add_fields()));
399         } else {
400           goto handle_unusual;
401         }
402         if (input->ExpectTag(18)) goto parse_loop_fields;
403         input->UnsafeDecrementRecursionDepth();
404         if (input->ExpectTag(26)) goto parse_oneofs;
405         break;
406       }
407 
408       // repeated string oneofs = 3;
409       case 3: {
410         if (tag == 26) {
411          parse_oneofs:
412           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
413                 input, this->add_oneofs()));
414           DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
415             this->oneofs(this->oneofs_size() - 1).data(),
416             this->oneofs(this->oneofs_size() - 1).length(),
417             ::google::protobuf::internal::WireFormatLite::PARSE,
418             "google.protobuf.Type.oneofs"));
419         } else {
420           goto handle_unusual;
421         }
422         if (input->ExpectTag(26)) goto parse_oneofs;
423         if (input->ExpectTag(34)) goto parse_options;
424         break;
425       }
426 
427       // repeated .google.protobuf.Option options = 4;
428       case 4: {
429         if (tag == 34) {
430          parse_options:
431           DO_(input->IncrementRecursionDepth());
432          parse_loop_options:
433           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
434                 input, add_options()));
435         } else {
436           goto handle_unusual;
437         }
438         if (input->ExpectTag(34)) goto parse_loop_options;
439         input->UnsafeDecrementRecursionDepth();
440         if (input->ExpectTag(42)) goto parse_source_context;
441         break;
442       }
443 
444       // optional .google.protobuf.SourceContext source_context = 5;
445       case 5: {
446         if (tag == 42) {
447          parse_source_context:
448           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
449                input, mutable_source_context()));
450         } else {
451           goto handle_unusual;
452         }
453         if (input->ExpectTag(48)) goto parse_syntax;
454         break;
455       }
456 
457       // optional .google.protobuf.Syntax syntax = 6;
458       case 6: {
459         if (tag == 48) {
460          parse_syntax:
461           int value;
462           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
463                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
464                  input, &value)));
465           set_syntax(static_cast< ::google::protobuf::Syntax >(value));
466         } else {
467           goto handle_unusual;
468         }
469         if (input->ExpectAtEnd()) goto success;
470         break;
471       }
472 
473       default: {
474       handle_unusual:
475         if (tag == 0 ||
476             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
477             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
478           goto success;
479         }
480         DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
481         break;
482       }
483     }
484   }
485 success:
486   // @@protoc_insertion_point(parse_success:google.protobuf.Type)
487   return true;
488 failure:
489   // @@protoc_insertion_point(parse_failure:google.protobuf.Type)
490   return false;
491 #undef DO_
492 }
493 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const494 void Type::SerializeWithCachedSizes(
495     ::google::protobuf::io::CodedOutputStream* output) const {
496   // @@protoc_insertion_point(serialize_start:google.protobuf.Type)
497   // optional string name = 1;
498   if (this->name().size() > 0) {
499     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
500       this->name().data(), this->name().length(),
501       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
502       "google.protobuf.Type.name");
503     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
504       1, this->name(), output);
505   }
506 
507   // repeated .google.protobuf.Field fields = 2;
508   for (unsigned int i = 0, n = this->fields_size(); i < n; i++) {
509     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
510       2, this->fields(i), output);
511   }
512 
513   // repeated string oneofs = 3;
514   for (int i = 0; i < this->oneofs_size(); i++) {
515     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
516       this->oneofs(i).data(), this->oneofs(i).length(),
517       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
518       "google.protobuf.Type.oneofs");
519     ::google::protobuf::internal::WireFormatLite::WriteString(
520       3, this->oneofs(i), output);
521   }
522 
523   // repeated .google.protobuf.Option options = 4;
524   for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
525     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
526       4, this->options(i), output);
527   }
528 
529   // optional .google.protobuf.SourceContext source_context = 5;
530   if (this->has_source_context()) {
531     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
532       5, *this->source_context_, output);
533   }
534 
535   // optional .google.protobuf.Syntax syntax = 6;
536   if (this->syntax() != 0) {
537     ::google::protobuf::internal::WireFormatLite::WriteEnum(
538       6, this->syntax(), output);
539   }
540 
541   // @@protoc_insertion_point(serialize_end:google.protobuf.Type)
542 }
543 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const544 ::google::protobuf::uint8* Type::InternalSerializeWithCachedSizesToArray(
545     bool deterministic, ::google::protobuf::uint8* target) const {
546   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Type)
547   // optional string name = 1;
548   if (this->name().size() > 0) {
549     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
550       this->name().data(), this->name().length(),
551       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
552       "google.protobuf.Type.name");
553     target =
554       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
555         1, this->name(), target);
556   }
557 
558   // repeated .google.protobuf.Field fields = 2;
559   for (unsigned int i = 0, n = this->fields_size(); i < n; i++) {
560     target = ::google::protobuf::internal::WireFormatLite::
561       InternalWriteMessageNoVirtualToArray(
562         2, this->fields(i), false, target);
563   }
564 
565   // repeated string oneofs = 3;
566   for (int i = 0; i < this->oneofs_size(); i++) {
567     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
568       this->oneofs(i).data(), this->oneofs(i).length(),
569       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
570       "google.protobuf.Type.oneofs");
571     target = ::google::protobuf::internal::WireFormatLite::
572       WriteStringToArray(3, this->oneofs(i), target);
573   }
574 
575   // repeated .google.protobuf.Option options = 4;
576   for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
577     target = ::google::protobuf::internal::WireFormatLite::
578       InternalWriteMessageNoVirtualToArray(
579         4, this->options(i), false, target);
580   }
581 
582   // optional .google.protobuf.SourceContext source_context = 5;
583   if (this->has_source_context()) {
584     target = ::google::protobuf::internal::WireFormatLite::
585       InternalWriteMessageNoVirtualToArray(
586         5, *this->source_context_, false, target);
587   }
588 
589   // optional .google.protobuf.Syntax syntax = 6;
590   if (this->syntax() != 0) {
591     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
592       6, this->syntax(), target);
593   }
594 
595   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Type)
596   return target;
597 }
598 
ByteSize() const599 int Type::ByteSize() const {
600 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Type)
601   int total_size = 0;
602 
603   // optional string name = 1;
604   if (this->name().size() > 0) {
605     total_size += 1 +
606       ::google::protobuf::internal::WireFormatLite::StringSize(
607         this->name());
608   }
609 
610   // optional .google.protobuf.SourceContext source_context = 5;
611   if (this->has_source_context()) {
612     total_size += 1 +
613       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
614         *this->source_context_);
615   }
616 
617   // optional .google.protobuf.Syntax syntax = 6;
618   if (this->syntax() != 0) {
619     total_size += 1 +
620       ::google::protobuf::internal::WireFormatLite::EnumSize(this->syntax());
621   }
622 
623   // repeated .google.protobuf.Field fields = 2;
624   total_size += 1 * this->fields_size();
625   for (int i = 0; i < this->fields_size(); i++) {
626     total_size +=
627       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
628         this->fields(i));
629   }
630 
631   // repeated string oneofs = 3;
632   total_size += 1 * this->oneofs_size();
633   for (int i = 0; i < this->oneofs_size(); i++) {
634     total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
635       this->oneofs(i));
636   }
637 
638   // repeated .google.protobuf.Option options = 4;
639   total_size += 1 * this->options_size();
640   for (int i = 0; i < this->options_size(); i++) {
641     total_size +=
642       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
643         this->options(i));
644   }
645 
646   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
647   _cached_size_ = total_size;
648   GOOGLE_SAFE_CONCURRENT_WRITES_END();
649   return total_size;
650 }
651 
MergeFrom(const::google::protobuf::Message & from)652 void Type::MergeFrom(const ::google::protobuf::Message& from) {
653 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Type)
654   if (GOOGLE_PREDICT_FALSE(&from == this)) {
655     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
656   }
657   const Type* source =
658       ::google::protobuf::internal::DynamicCastToGenerated<const Type>(
659           &from);
660   if (source == NULL) {
661   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Type)
662     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
663   } else {
664   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Type)
665     MergeFrom(*source);
666   }
667 }
668 
MergeFrom(const Type & from)669 void Type::MergeFrom(const Type& from) {
670 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Type)
671   if (GOOGLE_PREDICT_FALSE(&from == this)) {
672     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
673   }
674   fields_.MergeFrom(from.fields_);
675   oneofs_.MergeFrom(from.oneofs_);
676   options_.MergeFrom(from.options_);
677   if (from.name().size() > 0) {
678 
679     name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
680   }
681   if (from.has_source_context()) {
682     mutable_source_context()->::google::protobuf::SourceContext::MergeFrom(from.source_context());
683   }
684   if (from.syntax() != 0) {
685     set_syntax(from.syntax());
686   }
687 }
688 
CopyFrom(const::google::protobuf::Message & from)689 void Type::CopyFrom(const ::google::protobuf::Message& from) {
690 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Type)
691   if (&from == this) return;
692   Clear();
693   MergeFrom(from);
694 }
695 
CopyFrom(const Type & from)696 void Type::CopyFrom(const Type& from) {
697 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Type)
698   if (&from == this) return;
699   Clear();
700   MergeFrom(from);
701 }
702 
IsInitialized() const703 bool Type::IsInitialized() const {
704 
705   return true;
706 }
707 
Swap(Type * other)708 void Type::Swap(Type* other) {
709   if (other == this) return;
710   InternalSwap(other);
711 }
InternalSwap(Type * other)712 void Type::InternalSwap(Type* other) {
713   name_.Swap(&other->name_);
714   fields_.UnsafeArenaSwap(&other->fields_);
715   oneofs_.UnsafeArenaSwap(&other->oneofs_);
716   options_.UnsafeArenaSwap(&other->options_);
717   std::swap(source_context_, other->source_context_);
718   std::swap(syntax_, other->syntax_);
719   _internal_metadata_.Swap(&other->_internal_metadata_);
720   std::swap(_cached_size_, other->_cached_size_);
721 }
722 
GetMetadata() const723 ::google::protobuf::Metadata Type::GetMetadata() const {
724   protobuf_AssignDescriptorsOnce();
725   ::google::protobuf::Metadata metadata;
726   metadata.descriptor = Type_descriptor_;
727   metadata.reflection = Type_reflection_;
728   return metadata;
729 }
730 
731 #if PROTOBUF_INLINE_NOT_IN_HEADERS
732 // Type
733 
734 // optional string name = 1;
clear_name()735 void Type::clear_name() {
736   name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
737 }
name() const738  const ::std::string& Type::name() const {
739   // @@protoc_insertion_point(field_get:google.protobuf.Type.name)
740   return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
741 }
set_name(const::std::string & value)742  void Type::set_name(const ::std::string& value) {
743 
744   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
745   // @@protoc_insertion_point(field_set:google.protobuf.Type.name)
746 }
set_name(const char * value)747  void Type::set_name(const char* value) {
748 
749   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
750   // @@protoc_insertion_point(field_set_char:google.protobuf.Type.name)
751 }
set_name(const char * value,size_t size)752  void Type::set_name(const char* value, size_t size) {
753 
754   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
755       ::std::string(reinterpret_cast<const char*>(value), size));
756   // @@protoc_insertion_point(field_set_pointer:google.protobuf.Type.name)
757 }
mutable_name()758  ::std::string* Type::mutable_name() {
759 
760   // @@protoc_insertion_point(field_mutable:google.protobuf.Type.name)
761   return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
762 }
release_name()763  ::std::string* Type::release_name() {
764   // @@protoc_insertion_point(field_release:google.protobuf.Type.name)
765 
766   return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
767 }
set_allocated_name(::std::string * name)768  void Type::set_allocated_name(::std::string* name) {
769   if (name != NULL) {
770 
771   } else {
772 
773   }
774   name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
775   // @@protoc_insertion_point(field_set_allocated:google.protobuf.Type.name)
776 }
777 
778 // repeated .google.protobuf.Field fields = 2;
fields_size() const779 int Type::fields_size() const {
780   return fields_.size();
781 }
clear_fields()782 void Type::clear_fields() {
783   fields_.Clear();
784 }
fields(int index) const785 const ::google::protobuf::Field& Type::fields(int index) const {
786   // @@protoc_insertion_point(field_get:google.protobuf.Type.fields)
787   return fields_.Get(index);
788 }
mutable_fields(int index)789 ::google::protobuf::Field* Type::mutable_fields(int index) {
790   // @@protoc_insertion_point(field_mutable:google.protobuf.Type.fields)
791   return fields_.Mutable(index);
792 }
add_fields()793 ::google::protobuf::Field* Type::add_fields() {
794   // @@protoc_insertion_point(field_add:google.protobuf.Type.fields)
795   return fields_.Add();
796 }
797 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Field >*
mutable_fields()798 Type::mutable_fields() {
799   // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.fields)
800   return &fields_;
801 }
802 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Field >&
fields() const803 Type::fields() const {
804   // @@protoc_insertion_point(field_list:google.protobuf.Type.fields)
805   return fields_;
806 }
807 
808 // repeated string oneofs = 3;
oneofs_size() const809 int Type::oneofs_size() const {
810   return oneofs_.size();
811 }
clear_oneofs()812 void Type::clear_oneofs() {
813   oneofs_.Clear();
814 }
oneofs(int index) const815  const ::std::string& Type::oneofs(int index) const {
816   // @@protoc_insertion_point(field_get:google.protobuf.Type.oneofs)
817   return oneofs_.Get(index);
818 }
mutable_oneofs(int index)819  ::std::string* Type::mutable_oneofs(int index) {
820   // @@protoc_insertion_point(field_mutable:google.protobuf.Type.oneofs)
821   return oneofs_.Mutable(index);
822 }
set_oneofs(int index,const::std::string & value)823  void Type::set_oneofs(int index, const ::std::string& value) {
824   // @@protoc_insertion_point(field_set:google.protobuf.Type.oneofs)
825   oneofs_.Mutable(index)->assign(value);
826 }
set_oneofs(int index,const char * value)827  void Type::set_oneofs(int index, const char* value) {
828   oneofs_.Mutable(index)->assign(value);
829   // @@protoc_insertion_point(field_set_char:google.protobuf.Type.oneofs)
830 }
set_oneofs(int index,const char * value,size_t size)831  void Type::set_oneofs(int index, const char* value, size_t size) {
832   oneofs_.Mutable(index)->assign(
833     reinterpret_cast<const char*>(value), size);
834   // @@protoc_insertion_point(field_set_pointer:google.protobuf.Type.oneofs)
835 }
add_oneofs()836  ::std::string* Type::add_oneofs() {
837   // @@protoc_insertion_point(field_add_mutable:google.protobuf.Type.oneofs)
838   return oneofs_.Add();
839 }
add_oneofs(const::std::string & value)840  void Type::add_oneofs(const ::std::string& value) {
841   oneofs_.Add()->assign(value);
842   // @@protoc_insertion_point(field_add:google.protobuf.Type.oneofs)
843 }
add_oneofs(const char * value)844  void Type::add_oneofs(const char* value) {
845   oneofs_.Add()->assign(value);
846   // @@protoc_insertion_point(field_add_char:google.protobuf.Type.oneofs)
847 }
add_oneofs(const char * value,size_t size)848  void Type::add_oneofs(const char* value, size_t size) {
849   oneofs_.Add()->assign(reinterpret_cast<const char*>(value), size);
850   // @@protoc_insertion_point(field_add_pointer:google.protobuf.Type.oneofs)
851 }
852  const ::google::protobuf::RepeatedPtrField< ::std::string>&
oneofs() const853 Type::oneofs() const {
854   // @@protoc_insertion_point(field_list:google.protobuf.Type.oneofs)
855   return oneofs_;
856 }
857  ::google::protobuf::RepeatedPtrField< ::std::string>*
mutable_oneofs()858 Type::mutable_oneofs() {
859   // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.oneofs)
860   return &oneofs_;
861 }
862 
863 // repeated .google.protobuf.Option options = 4;
options_size() const864 int Type::options_size() const {
865   return options_.size();
866 }
clear_options()867 void Type::clear_options() {
868   options_.Clear();
869 }
options(int index) const870 const ::google::protobuf::Option& Type::options(int index) const {
871   // @@protoc_insertion_point(field_get:google.protobuf.Type.options)
872   return options_.Get(index);
873 }
mutable_options(int index)874 ::google::protobuf::Option* Type::mutable_options(int index) {
875   // @@protoc_insertion_point(field_mutable:google.protobuf.Type.options)
876   return options_.Mutable(index);
877 }
add_options()878 ::google::protobuf::Option* Type::add_options() {
879   // @@protoc_insertion_point(field_add:google.protobuf.Type.options)
880   return options_.Add();
881 }
882 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
mutable_options()883 Type::mutable_options() {
884   // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.options)
885   return &options_;
886 }
887 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
options() const888 Type::options() const {
889   // @@protoc_insertion_point(field_list:google.protobuf.Type.options)
890   return options_;
891 }
892 
893 // optional .google.protobuf.SourceContext source_context = 5;
has_source_context() const894 bool Type::has_source_context() const {
895   return !_is_default_instance_ && source_context_ != NULL;
896 }
clear_source_context()897 void Type::clear_source_context() {
898   if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_context_;
899   source_context_ = NULL;
900 }
source_context() const901 const ::google::protobuf::SourceContext& Type::source_context() const {
902   // @@protoc_insertion_point(field_get:google.protobuf.Type.source_context)
903   return source_context_ != NULL ? *source_context_ : *default_instance_->source_context_;
904 }
mutable_source_context()905 ::google::protobuf::SourceContext* Type::mutable_source_context() {
906 
907   if (source_context_ == NULL) {
908     source_context_ = new ::google::protobuf::SourceContext;
909   }
910   // @@protoc_insertion_point(field_mutable:google.protobuf.Type.source_context)
911   return source_context_;
912 }
release_source_context()913 ::google::protobuf::SourceContext* Type::release_source_context() {
914   // @@protoc_insertion_point(field_release:google.protobuf.Type.source_context)
915 
916   ::google::protobuf::SourceContext* temp = source_context_;
917   source_context_ = NULL;
918   return temp;
919 }
set_allocated_source_context(::google::protobuf::SourceContext * source_context)920 void Type::set_allocated_source_context(::google::protobuf::SourceContext* source_context) {
921   delete source_context_;
922   source_context_ = source_context;
923   if (source_context) {
924 
925   } else {
926 
927   }
928   // @@protoc_insertion_point(field_set_allocated:google.protobuf.Type.source_context)
929 }
930 
931 // optional .google.protobuf.Syntax syntax = 6;
clear_syntax()932 void Type::clear_syntax() {
933   syntax_ = 0;
934 }
syntax() const935  ::google::protobuf::Syntax Type::syntax() const {
936   // @@protoc_insertion_point(field_get:google.protobuf.Type.syntax)
937   return static_cast< ::google::protobuf::Syntax >(syntax_);
938 }
set_syntax(::google::protobuf::Syntax value)939  void Type::set_syntax(::google::protobuf::Syntax value) {
940 
941   syntax_ = value;
942   // @@protoc_insertion_point(field_set:google.protobuf.Type.syntax)
943 }
944 
945 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
946 
947 // ===================================================================
948 
Field_Kind_descriptor()949 const ::google::protobuf::EnumDescriptor* Field_Kind_descriptor() {
950   protobuf_AssignDescriptorsOnce();
951   return Field_Kind_descriptor_;
952 }
Field_Kind_IsValid(int value)953 bool Field_Kind_IsValid(int value) {
954   switch(value) {
955     case 0:
956     case 1:
957     case 2:
958     case 3:
959     case 4:
960     case 5:
961     case 6:
962     case 7:
963     case 8:
964     case 9:
965     case 10:
966     case 11:
967     case 12:
968     case 13:
969     case 14:
970     case 15:
971     case 16:
972     case 17:
973     case 18:
974       return true;
975     default:
976       return false;
977   }
978 }
979 
980 #if !defined(_MSC_VER) || _MSC_VER >= 1900
981 const Field_Kind Field::TYPE_UNKNOWN;
982 const Field_Kind Field::TYPE_DOUBLE;
983 const Field_Kind Field::TYPE_FLOAT;
984 const Field_Kind Field::TYPE_INT64;
985 const Field_Kind Field::TYPE_UINT64;
986 const Field_Kind Field::TYPE_INT32;
987 const Field_Kind Field::TYPE_FIXED64;
988 const Field_Kind Field::TYPE_FIXED32;
989 const Field_Kind Field::TYPE_BOOL;
990 const Field_Kind Field::TYPE_STRING;
991 const Field_Kind Field::TYPE_GROUP;
992 const Field_Kind Field::TYPE_MESSAGE;
993 const Field_Kind Field::TYPE_BYTES;
994 const Field_Kind Field::TYPE_UINT32;
995 const Field_Kind Field::TYPE_ENUM;
996 const Field_Kind Field::TYPE_SFIXED32;
997 const Field_Kind Field::TYPE_SFIXED64;
998 const Field_Kind Field::TYPE_SINT32;
999 const Field_Kind Field::TYPE_SINT64;
1000 const Field_Kind Field::Kind_MIN;
1001 const Field_Kind Field::Kind_MAX;
1002 const int Field::Kind_ARRAYSIZE;
1003 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
Field_Cardinality_descriptor()1004 const ::google::protobuf::EnumDescriptor* Field_Cardinality_descriptor() {
1005   protobuf_AssignDescriptorsOnce();
1006   return Field_Cardinality_descriptor_;
1007 }
Field_Cardinality_IsValid(int value)1008 bool Field_Cardinality_IsValid(int value) {
1009   switch(value) {
1010     case 0:
1011     case 1:
1012     case 2:
1013     case 3:
1014       return true;
1015     default:
1016       return false;
1017   }
1018 }
1019 
1020 #if !defined(_MSC_VER) || _MSC_VER >= 1900
1021 const Field_Cardinality Field::CARDINALITY_UNKNOWN;
1022 const Field_Cardinality Field::CARDINALITY_OPTIONAL;
1023 const Field_Cardinality Field::CARDINALITY_REQUIRED;
1024 const Field_Cardinality Field::CARDINALITY_REPEATED;
1025 const Field_Cardinality Field::Cardinality_MIN;
1026 const Field_Cardinality Field::Cardinality_MAX;
1027 const int Field::Cardinality_ARRAYSIZE;
1028 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1029 #if !defined(_MSC_VER) || _MSC_VER >= 1900
1030 const int Field::kKindFieldNumber;
1031 const int Field::kCardinalityFieldNumber;
1032 const int Field::kNumberFieldNumber;
1033 const int Field::kNameFieldNumber;
1034 const int Field::kTypeUrlFieldNumber;
1035 const int Field::kOneofIndexFieldNumber;
1036 const int Field::kPackedFieldNumber;
1037 const int Field::kOptionsFieldNumber;
1038 const int Field::kJsonNameFieldNumber;
1039 const int Field::kDefaultValueFieldNumber;
1040 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1041 
Field()1042 Field::Field()
1043   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1044   SharedCtor();
1045   // @@protoc_insertion_point(constructor:google.protobuf.Field)
1046 }
1047 
InitAsDefaultInstance()1048 void Field::InitAsDefaultInstance() {
1049   _is_default_instance_ = true;
1050 }
1051 
Field(const Field & from)1052 Field::Field(const Field& from)
1053   : ::google::protobuf::Message(),
1054     _internal_metadata_(NULL) {
1055   SharedCtor();
1056   MergeFrom(from);
1057   // @@protoc_insertion_point(copy_constructor:google.protobuf.Field)
1058 }
1059 
SharedCtor()1060 void Field::SharedCtor() {
1061     _is_default_instance_ = false;
1062   ::google::protobuf::internal::GetEmptyString();
1063   _cached_size_ = 0;
1064   kind_ = 0;
1065   cardinality_ = 0;
1066   number_ = 0;
1067   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1068   type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1069   oneof_index_ = 0;
1070   packed_ = false;
1071   json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1072   default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1073 }
1074 
~Field()1075 Field::~Field() {
1076   // @@protoc_insertion_point(destructor:google.protobuf.Field)
1077   SharedDtor();
1078 }
1079 
SharedDtor()1080 void Field::SharedDtor() {
1081   name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1082   type_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1083   json_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1084   default_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1085   if (this != default_instance_) {
1086   }
1087 }
1088 
SetCachedSize(int size) const1089 void Field::SetCachedSize(int size) const {
1090   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1091   _cached_size_ = size;
1092   GOOGLE_SAFE_CONCURRENT_WRITES_END();
1093 }
descriptor()1094 const ::google::protobuf::Descriptor* Field::descriptor() {
1095   protobuf_AssignDescriptorsOnce();
1096   return Field_descriptor_;
1097 }
1098 
default_instance()1099 const Field& Field::default_instance() {
1100   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto();
1101   return *default_instance_;
1102 }
1103 
1104 Field* Field::default_instance_ = NULL;
1105 
New(::google::protobuf::Arena * arena) const1106 Field* Field::New(::google::protobuf::Arena* arena) const {
1107   Field* n = new Field;
1108   if (arena != NULL) {
1109     arena->Own(n);
1110   }
1111   return n;
1112 }
1113 
Clear()1114 void Field::Clear() {
1115 // @@protoc_insertion_point(message_clear_start:google.protobuf.Field)
1116 #if defined(__clang__)
1117 #define ZR_HELPER_(f) \
1118   _Pragma("clang diagnostic push") \
1119   _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
1120   __builtin_offsetof(Field, f) \
1121   _Pragma("clang diagnostic pop")
1122 #else
1123 #define ZR_HELPER_(f) reinterpret_cast<char*>(\
1124   &reinterpret_cast<Field*>(16)->f)
1125 #endif
1126 
1127 #define ZR_(first, last) do {\
1128   ::memset(&first, 0,\
1129            ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
1130 } while (0)
1131 
1132   ZR_(kind_, cardinality_);
1133   ZR_(number_, oneof_index_);
1134   name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1135   type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1136   packed_ = false;
1137   json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1138   default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1139 
1140 #undef ZR_HELPER_
1141 #undef ZR_
1142 
1143   options_.Clear();
1144 }
1145 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)1146 bool Field::MergePartialFromCodedStream(
1147     ::google::protobuf::io::CodedInputStream* input) {
1148 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1149   ::google::protobuf::uint32 tag;
1150   // @@protoc_insertion_point(parse_start:google.protobuf.Field)
1151   for (;;) {
1152     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1153     tag = p.first;
1154     if (!p.second) goto handle_unusual;
1155     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1156       // optional .google.protobuf.Field.Kind kind = 1;
1157       case 1: {
1158         if (tag == 8) {
1159           int value;
1160           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1161                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1162                  input, &value)));
1163           set_kind(static_cast< ::google::protobuf::Field_Kind >(value));
1164         } else {
1165           goto handle_unusual;
1166         }
1167         if (input->ExpectTag(16)) goto parse_cardinality;
1168         break;
1169       }
1170 
1171       // optional .google.protobuf.Field.Cardinality cardinality = 2;
1172       case 2: {
1173         if (tag == 16) {
1174          parse_cardinality:
1175           int value;
1176           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1177                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1178                  input, &value)));
1179           set_cardinality(static_cast< ::google::protobuf::Field_Cardinality >(value));
1180         } else {
1181           goto handle_unusual;
1182         }
1183         if (input->ExpectTag(24)) goto parse_number;
1184         break;
1185       }
1186 
1187       // optional int32 number = 3;
1188       case 3: {
1189         if (tag == 24) {
1190          parse_number:
1191           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1192                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1193                  input, &number_)));
1194 
1195         } else {
1196           goto handle_unusual;
1197         }
1198         if (input->ExpectTag(34)) goto parse_name;
1199         break;
1200       }
1201 
1202       // optional string name = 4;
1203       case 4: {
1204         if (tag == 34) {
1205          parse_name:
1206           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1207                 input, this->mutable_name()));
1208           DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1209             this->name().data(), this->name().length(),
1210             ::google::protobuf::internal::WireFormatLite::PARSE,
1211             "google.protobuf.Field.name"));
1212         } else {
1213           goto handle_unusual;
1214         }
1215         if (input->ExpectTag(50)) goto parse_type_url;
1216         break;
1217       }
1218 
1219       // optional string type_url = 6;
1220       case 6: {
1221         if (tag == 50) {
1222          parse_type_url:
1223           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1224                 input, this->mutable_type_url()));
1225           DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1226             this->type_url().data(), this->type_url().length(),
1227             ::google::protobuf::internal::WireFormatLite::PARSE,
1228             "google.protobuf.Field.type_url"));
1229         } else {
1230           goto handle_unusual;
1231         }
1232         if (input->ExpectTag(56)) goto parse_oneof_index;
1233         break;
1234       }
1235 
1236       // optional int32 oneof_index = 7;
1237       case 7: {
1238         if (tag == 56) {
1239          parse_oneof_index:
1240           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1241                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1242                  input, &oneof_index_)));
1243 
1244         } else {
1245           goto handle_unusual;
1246         }
1247         if (input->ExpectTag(64)) goto parse_packed;
1248         break;
1249       }
1250 
1251       // optional bool packed = 8;
1252       case 8: {
1253         if (tag == 64) {
1254          parse_packed:
1255           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1256                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1257                  input, &packed_)));
1258 
1259         } else {
1260           goto handle_unusual;
1261         }
1262         if (input->ExpectTag(74)) goto parse_options;
1263         break;
1264       }
1265 
1266       // repeated .google.protobuf.Option options = 9;
1267       case 9: {
1268         if (tag == 74) {
1269          parse_options:
1270           DO_(input->IncrementRecursionDepth());
1271          parse_loop_options:
1272           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
1273                 input, add_options()));
1274         } else {
1275           goto handle_unusual;
1276         }
1277         if (input->ExpectTag(74)) goto parse_loop_options;
1278         input->UnsafeDecrementRecursionDepth();
1279         if (input->ExpectTag(82)) goto parse_json_name;
1280         break;
1281       }
1282 
1283       // optional string json_name = 10;
1284       case 10: {
1285         if (tag == 82) {
1286          parse_json_name:
1287           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1288                 input, this->mutable_json_name()));
1289           DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1290             this->json_name().data(), this->json_name().length(),
1291             ::google::protobuf::internal::WireFormatLite::PARSE,
1292             "google.protobuf.Field.json_name"));
1293         } else {
1294           goto handle_unusual;
1295         }
1296         if (input->ExpectTag(90)) goto parse_default_value;
1297         break;
1298       }
1299 
1300       // optional string default_value = 11;
1301       case 11: {
1302         if (tag == 90) {
1303          parse_default_value:
1304           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1305                 input, this->mutable_default_value()));
1306           DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1307             this->default_value().data(), this->default_value().length(),
1308             ::google::protobuf::internal::WireFormatLite::PARSE,
1309             "google.protobuf.Field.default_value"));
1310         } else {
1311           goto handle_unusual;
1312         }
1313         if (input->ExpectAtEnd()) goto success;
1314         break;
1315       }
1316 
1317       default: {
1318       handle_unusual:
1319         if (tag == 0 ||
1320             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1321             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1322           goto success;
1323         }
1324         DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
1325         break;
1326       }
1327     }
1328   }
1329 success:
1330   // @@protoc_insertion_point(parse_success:google.protobuf.Field)
1331   return true;
1332 failure:
1333   // @@protoc_insertion_point(parse_failure:google.protobuf.Field)
1334   return false;
1335 #undef DO_
1336 }
1337 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const1338 void Field::SerializeWithCachedSizes(
1339     ::google::protobuf::io::CodedOutputStream* output) const {
1340   // @@protoc_insertion_point(serialize_start:google.protobuf.Field)
1341   // optional .google.protobuf.Field.Kind kind = 1;
1342   if (this->kind() != 0) {
1343     ::google::protobuf::internal::WireFormatLite::WriteEnum(
1344       1, this->kind(), output);
1345   }
1346 
1347   // optional .google.protobuf.Field.Cardinality cardinality = 2;
1348   if (this->cardinality() != 0) {
1349     ::google::protobuf::internal::WireFormatLite::WriteEnum(
1350       2, this->cardinality(), output);
1351   }
1352 
1353   // optional int32 number = 3;
1354   if (this->number() != 0) {
1355     ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->number(), output);
1356   }
1357 
1358   // optional string name = 4;
1359   if (this->name().size() > 0) {
1360     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1361       this->name().data(), this->name().length(),
1362       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1363       "google.protobuf.Field.name");
1364     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1365       4, this->name(), output);
1366   }
1367 
1368   // optional string type_url = 6;
1369   if (this->type_url().size() > 0) {
1370     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1371       this->type_url().data(), this->type_url().length(),
1372       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1373       "google.protobuf.Field.type_url");
1374     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1375       6, this->type_url(), output);
1376   }
1377 
1378   // optional int32 oneof_index = 7;
1379   if (this->oneof_index() != 0) {
1380     ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->oneof_index(), output);
1381   }
1382 
1383   // optional bool packed = 8;
1384   if (this->packed() != 0) {
1385     ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->packed(), output);
1386   }
1387 
1388   // repeated .google.protobuf.Option options = 9;
1389   for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
1390     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1391       9, this->options(i), output);
1392   }
1393 
1394   // optional string json_name = 10;
1395   if (this->json_name().size() > 0) {
1396     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1397       this->json_name().data(), this->json_name().length(),
1398       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1399       "google.protobuf.Field.json_name");
1400     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1401       10, this->json_name(), output);
1402   }
1403 
1404   // optional string default_value = 11;
1405   if (this->default_value().size() > 0) {
1406     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1407       this->default_value().data(), this->default_value().length(),
1408       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1409       "google.protobuf.Field.default_value");
1410     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1411       11, this->default_value(), output);
1412   }
1413 
1414   // @@protoc_insertion_point(serialize_end:google.protobuf.Field)
1415 }
1416 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const1417 ::google::protobuf::uint8* Field::InternalSerializeWithCachedSizesToArray(
1418     bool deterministic, ::google::protobuf::uint8* target) const {
1419   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Field)
1420   // optional .google.protobuf.Field.Kind kind = 1;
1421   if (this->kind() != 0) {
1422     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1423       1, this->kind(), target);
1424   }
1425 
1426   // optional .google.protobuf.Field.Cardinality cardinality = 2;
1427   if (this->cardinality() != 0) {
1428     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1429       2, this->cardinality(), target);
1430   }
1431 
1432   // optional int32 number = 3;
1433   if (this->number() != 0) {
1434     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->number(), target);
1435   }
1436 
1437   // optional string name = 4;
1438   if (this->name().size() > 0) {
1439     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1440       this->name().data(), this->name().length(),
1441       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1442       "google.protobuf.Field.name");
1443     target =
1444       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1445         4, this->name(), target);
1446   }
1447 
1448   // optional string type_url = 6;
1449   if (this->type_url().size() > 0) {
1450     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1451       this->type_url().data(), this->type_url().length(),
1452       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1453       "google.protobuf.Field.type_url");
1454     target =
1455       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1456         6, this->type_url(), target);
1457   }
1458 
1459   // optional int32 oneof_index = 7;
1460   if (this->oneof_index() != 0) {
1461     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->oneof_index(), target);
1462   }
1463 
1464   // optional bool packed = 8;
1465   if (this->packed() != 0) {
1466     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->packed(), target);
1467   }
1468 
1469   // repeated .google.protobuf.Option options = 9;
1470   for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
1471     target = ::google::protobuf::internal::WireFormatLite::
1472       InternalWriteMessageNoVirtualToArray(
1473         9, this->options(i), false, target);
1474   }
1475 
1476   // optional string json_name = 10;
1477   if (this->json_name().size() > 0) {
1478     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1479       this->json_name().data(), this->json_name().length(),
1480       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1481       "google.protobuf.Field.json_name");
1482     target =
1483       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1484         10, this->json_name(), target);
1485   }
1486 
1487   // optional string default_value = 11;
1488   if (this->default_value().size() > 0) {
1489     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1490       this->default_value().data(), this->default_value().length(),
1491       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1492       "google.protobuf.Field.default_value");
1493     target =
1494       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1495         11, this->default_value(), target);
1496   }
1497 
1498   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Field)
1499   return target;
1500 }
1501 
ByteSize() const1502 int Field::ByteSize() const {
1503 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Field)
1504   int total_size = 0;
1505 
1506   // optional .google.protobuf.Field.Kind kind = 1;
1507   if (this->kind() != 0) {
1508     total_size += 1 +
1509       ::google::protobuf::internal::WireFormatLite::EnumSize(this->kind());
1510   }
1511 
1512   // optional .google.protobuf.Field.Cardinality cardinality = 2;
1513   if (this->cardinality() != 0) {
1514     total_size += 1 +
1515       ::google::protobuf::internal::WireFormatLite::EnumSize(this->cardinality());
1516   }
1517 
1518   // optional int32 number = 3;
1519   if (this->number() != 0) {
1520     total_size += 1 +
1521       ::google::protobuf::internal::WireFormatLite::Int32Size(
1522         this->number());
1523   }
1524 
1525   // optional string name = 4;
1526   if (this->name().size() > 0) {
1527     total_size += 1 +
1528       ::google::protobuf::internal::WireFormatLite::StringSize(
1529         this->name());
1530   }
1531 
1532   // optional string type_url = 6;
1533   if (this->type_url().size() > 0) {
1534     total_size += 1 +
1535       ::google::protobuf::internal::WireFormatLite::StringSize(
1536         this->type_url());
1537   }
1538 
1539   // optional int32 oneof_index = 7;
1540   if (this->oneof_index() != 0) {
1541     total_size += 1 +
1542       ::google::protobuf::internal::WireFormatLite::Int32Size(
1543         this->oneof_index());
1544   }
1545 
1546   // optional bool packed = 8;
1547   if (this->packed() != 0) {
1548     total_size += 1 + 1;
1549   }
1550 
1551   // optional string json_name = 10;
1552   if (this->json_name().size() > 0) {
1553     total_size += 1 +
1554       ::google::protobuf::internal::WireFormatLite::StringSize(
1555         this->json_name());
1556   }
1557 
1558   // optional string default_value = 11;
1559   if (this->default_value().size() > 0) {
1560     total_size += 1 +
1561       ::google::protobuf::internal::WireFormatLite::StringSize(
1562         this->default_value());
1563   }
1564 
1565   // repeated .google.protobuf.Option options = 9;
1566   total_size += 1 * this->options_size();
1567   for (int i = 0; i < this->options_size(); i++) {
1568     total_size +=
1569       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1570         this->options(i));
1571   }
1572 
1573   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1574   _cached_size_ = total_size;
1575   GOOGLE_SAFE_CONCURRENT_WRITES_END();
1576   return total_size;
1577 }
1578 
MergeFrom(const::google::protobuf::Message & from)1579 void Field::MergeFrom(const ::google::protobuf::Message& from) {
1580 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Field)
1581   if (GOOGLE_PREDICT_FALSE(&from == this)) {
1582     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
1583   }
1584   const Field* source =
1585       ::google::protobuf::internal::DynamicCastToGenerated<const Field>(
1586           &from);
1587   if (source == NULL) {
1588   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Field)
1589     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1590   } else {
1591   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Field)
1592     MergeFrom(*source);
1593   }
1594 }
1595 
MergeFrom(const Field & from)1596 void Field::MergeFrom(const Field& from) {
1597 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Field)
1598   if (GOOGLE_PREDICT_FALSE(&from == this)) {
1599     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
1600   }
1601   options_.MergeFrom(from.options_);
1602   if (from.kind() != 0) {
1603     set_kind(from.kind());
1604   }
1605   if (from.cardinality() != 0) {
1606     set_cardinality(from.cardinality());
1607   }
1608   if (from.number() != 0) {
1609     set_number(from.number());
1610   }
1611   if (from.name().size() > 0) {
1612 
1613     name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
1614   }
1615   if (from.type_url().size() > 0) {
1616 
1617     type_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_url_);
1618   }
1619   if (from.oneof_index() != 0) {
1620     set_oneof_index(from.oneof_index());
1621   }
1622   if (from.packed() != 0) {
1623     set_packed(from.packed());
1624   }
1625   if (from.json_name().size() > 0) {
1626 
1627     json_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.json_name_);
1628   }
1629   if (from.default_value().size() > 0) {
1630 
1631     default_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.default_value_);
1632   }
1633 }
1634 
CopyFrom(const::google::protobuf::Message & from)1635 void Field::CopyFrom(const ::google::protobuf::Message& from) {
1636 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Field)
1637   if (&from == this) return;
1638   Clear();
1639   MergeFrom(from);
1640 }
1641 
CopyFrom(const Field & from)1642 void Field::CopyFrom(const Field& from) {
1643 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Field)
1644   if (&from == this) return;
1645   Clear();
1646   MergeFrom(from);
1647 }
1648 
IsInitialized() const1649 bool Field::IsInitialized() const {
1650 
1651   return true;
1652 }
1653 
Swap(Field * other)1654 void Field::Swap(Field* other) {
1655   if (other == this) return;
1656   InternalSwap(other);
1657 }
InternalSwap(Field * other)1658 void Field::InternalSwap(Field* other) {
1659   std::swap(kind_, other->kind_);
1660   std::swap(cardinality_, other->cardinality_);
1661   std::swap(number_, other->number_);
1662   name_.Swap(&other->name_);
1663   type_url_.Swap(&other->type_url_);
1664   std::swap(oneof_index_, other->oneof_index_);
1665   std::swap(packed_, other->packed_);
1666   options_.UnsafeArenaSwap(&other->options_);
1667   json_name_.Swap(&other->json_name_);
1668   default_value_.Swap(&other->default_value_);
1669   _internal_metadata_.Swap(&other->_internal_metadata_);
1670   std::swap(_cached_size_, other->_cached_size_);
1671 }
1672 
GetMetadata() const1673 ::google::protobuf::Metadata Field::GetMetadata() const {
1674   protobuf_AssignDescriptorsOnce();
1675   ::google::protobuf::Metadata metadata;
1676   metadata.descriptor = Field_descriptor_;
1677   metadata.reflection = Field_reflection_;
1678   return metadata;
1679 }
1680 
1681 #if PROTOBUF_INLINE_NOT_IN_HEADERS
1682 // Field
1683 
1684 // optional .google.protobuf.Field.Kind kind = 1;
clear_kind()1685 void Field::clear_kind() {
1686   kind_ = 0;
1687 }
kind() const1688  ::google::protobuf::Field_Kind Field::kind() const {
1689   // @@protoc_insertion_point(field_get:google.protobuf.Field.kind)
1690   return static_cast< ::google::protobuf::Field_Kind >(kind_);
1691 }
set_kind(::google::protobuf::Field_Kind value)1692  void Field::set_kind(::google::protobuf::Field_Kind value) {
1693 
1694   kind_ = value;
1695   // @@protoc_insertion_point(field_set:google.protobuf.Field.kind)
1696 }
1697 
1698 // optional .google.protobuf.Field.Cardinality cardinality = 2;
clear_cardinality()1699 void Field::clear_cardinality() {
1700   cardinality_ = 0;
1701 }
cardinality() const1702  ::google::protobuf::Field_Cardinality Field::cardinality() const {
1703   // @@protoc_insertion_point(field_get:google.protobuf.Field.cardinality)
1704   return static_cast< ::google::protobuf::Field_Cardinality >(cardinality_);
1705 }
set_cardinality(::google::protobuf::Field_Cardinality value)1706  void Field::set_cardinality(::google::protobuf::Field_Cardinality value) {
1707 
1708   cardinality_ = value;
1709   // @@protoc_insertion_point(field_set:google.protobuf.Field.cardinality)
1710 }
1711 
1712 // optional int32 number = 3;
clear_number()1713 void Field::clear_number() {
1714   number_ = 0;
1715 }
number() const1716  ::google::protobuf::int32 Field::number() const {
1717   // @@protoc_insertion_point(field_get:google.protobuf.Field.number)
1718   return number_;
1719 }
set_number(::google::protobuf::int32 value)1720  void Field::set_number(::google::protobuf::int32 value) {
1721 
1722   number_ = value;
1723   // @@protoc_insertion_point(field_set:google.protobuf.Field.number)
1724 }
1725 
1726 // optional string name = 4;
clear_name()1727 void Field::clear_name() {
1728   name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1729 }
name() const1730  const ::std::string& Field::name() const {
1731   // @@protoc_insertion_point(field_get:google.protobuf.Field.name)
1732   return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1733 }
set_name(const::std::string & value)1734  void Field::set_name(const ::std::string& value) {
1735 
1736   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1737   // @@protoc_insertion_point(field_set:google.protobuf.Field.name)
1738 }
set_name(const char * value)1739  void Field::set_name(const char* value) {
1740 
1741   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1742   // @@protoc_insertion_point(field_set_char:google.protobuf.Field.name)
1743 }
set_name(const char * value,size_t size)1744  void Field::set_name(const char* value, size_t size) {
1745 
1746   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1747       ::std::string(reinterpret_cast<const char*>(value), size));
1748   // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.name)
1749 }
mutable_name()1750  ::std::string* Field::mutable_name() {
1751 
1752   // @@protoc_insertion_point(field_mutable:google.protobuf.Field.name)
1753   return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1754 }
release_name()1755  ::std::string* Field::release_name() {
1756   // @@protoc_insertion_point(field_release:google.protobuf.Field.name)
1757 
1758   return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1759 }
set_allocated_name(::std::string * name)1760  void Field::set_allocated_name(::std::string* name) {
1761   if (name != NULL) {
1762 
1763   } else {
1764 
1765   }
1766   name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
1767   // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.name)
1768 }
1769 
1770 // optional string type_url = 6;
clear_type_url()1771 void Field::clear_type_url() {
1772   type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1773 }
type_url() const1774  const ::std::string& Field::type_url() const {
1775   // @@protoc_insertion_point(field_get:google.protobuf.Field.type_url)
1776   return type_url_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1777 }
set_type_url(const::std::string & value)1778  void Field::set_type_url(const ::std::string& value) {
1779 
1780   type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1781   // @@protoc_insertion_point(field_set:google.protobuf.Field.type_url)
1782 }
set_type_url(const char * value)1783  void Field::set_type_url(const char* value) {
1784 
1785   type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1786   // @@protoc_insertion_point(field_set_char:google.protobuf.Field.type_url)
1787 }
set_type_url(const char * value,size_t size)1788  void Field::set_type_url(const char* value, size_t size) {
1789 
1790   type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1791       ::std::string(reinterpret_cast<const char*>(value), size));
1792   // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.type_url)
1793 }
mutable_type_url()1794  ::std::string* Field::mutable_type_url() {
1795 
1796   // @@protoc_insertion_point(field_mutable:google.protobuf.Field.type_url)
1797   return type_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1798 }
release_type_url()1799  ::std::string* Field::release_type_url() {
1800   // @@protoc_insertion_point(field_release:google.protobuf.Field.type_url)
1801 
1802   return type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1803 }
set_allocated_type_url(::std::string * type_url)1804  void Field::set_allocated_type_url(::std::string* type_url) {
1805   if (type_url != NULL) {
1806 
1807   } else {
1808 
1809   }
1810   type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_url);
1811   // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.type_url)
1812 }
1813 
1814 // optional int32 oneof_index = 7;
clear_oneof_index()1815 void Field::clear_oneof_index() {
1816   oneof_index_ = 0;
1817 }
oneof_index() const1818  ::google::protobuf::int32 Field::oneof_index() const {
1819   // @@protoc_insertion_point(field_get:google.protobuf.Field.oneof_index)
1820   return oneof_index_;
1821 }
set_oneof_index(::google::protobuf::int32 value)1822  void Field::set_oneof_index(::google::protobuf::int32 value) {
1823 
1824   oneof_index_ = value;
1825   // @@protoc_insertion_point(field_set:google.protobuf.Field.oneof_index)
1826 }
1827 
1828 // optional bool packed = 8;
clear_packed()1829 void Field::clear_packed() {
1830   packed_ = false;
1831 }
packed() const1832  bool Field::packed() const {
1833   // @@protoc_insertion_point(field_get:google.protobuf.Field.packed)
1834   return packed_;
1835 }
set_packed(bool value)1836  void Field::set_packed(bool value) {
1837 
1838   packed_ = value;
1839   // @@protoc_insertion_point(field_set:google.protobuf.Field.packed)
1840 }
1841 
1842 // repeated .google.protobuf.Option options = 9;
options_size() const1843 int Field::options_size() const {
1844   return options_.size();
1845 }
clear_options()1846 void Field::clear_options() {
1847   options_.Clear();
1848 }
options(int index) const1849 const ::google::protobuf::Option& Field::options(int index) const {
1850   // @@protoc_insertion_point(field_get:google.protobuf.Field.options)
1851   return options_.Get(index);
1852 }
mutable_options(int index)1853 ::google::protobuf::Option* Field::mutable_options(int index) {
1854   // @@protoc_insertion_point(field_mutable:google.protobuf.Field.options)
1855   return options_.Mutable(index);
1856 }
add_options()1857 ::google::protobuf::Option* Field::add_options() {
1858   // @@protoc_insertion_point(field_add:google.protobuf.Field.options)
1859   return options_.Add();
1860 }
1861 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
mutable_options()1862 Field::mutable_options() {
1863   // @@protoc_insertion_point(field_mutable_list:google.protobuf.Field.options)
1864   return &options_;
1865 }
1866 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
options() const1867 Field::options() const {
1868   // @@protoc_insertion_point(field_list:google.protobuf.Field.options)
1869   return options_;
1870 }
1871 
1872 // optional string json_name = 10;
clear_json_name()1873 void Field::clear_json_name() {
1874   json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1875 }
json_name() const1876  const ::std::string& Field::json_name() const {
1877   // @@protoc_insertion_point(field_get:google.protobuf.Field.json_name)
1878   return json_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1879 }
set_json_name(const::std::string & value)1880  void Field::set_json_name(const ::std::string& value) {
1881 
1882   json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1883   // @@protoc_insertion_point(field_set:google.protobuf.Field.json_name)
1884 }
set_json_name(const char * value)1885  void Field::set_json_name(const char* value) {
1886 
1887   json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1888   // @@protoc_insertion_point(field_set_char:google.protobuf.Field.json_name)
1889 }
set_json_name(const char * value,size_t size)1890  void Field::set_json_name(const char* value, size_t size) {
1891 
1892   json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1893       ::std::string(reinterpret_cast<const char*>(value), size));
1894   // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.json_name)
1895 }
mutable_json_name()1896  ::std::string* Field::mutable_json_name() {
1897 
1898   // @@protoc_insertion_point(field_mutable:google.protobuf.Field.json_name)
1899   return json_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1900 }
release_json_name()1901  ::std::string* Field::release_json_name() {
1902   // @@protoc_insertion_point(field_release:google.protobuf.Field.json_name)
1903 
1904   return json_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1905 }
set_allocated_json_name(::std::string * json_name)1906  void Field::set_allocated_json_name(::std::string* json_name) {
1907   if (json_name != NULL) {
1908 
1909   } else {
1910 
1911   }
1912   json_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json_name);
1913   // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.json_name)
1914 }
1915 
1916 // optional string default_value = 11;
clear_default_value()1917 void Field::clear_default_value() {
1918   default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1919 }
default_value() const1920  const ::std::string& Field::default_value() const {
1921   // @@protoc_insertion_point(field_get:google.protobuf.Field.default_value)
1922   return default_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1923 }
set_default_value(const::std::string & value)1924  void Field::set_default_value(const ::std::string& value) {
1925 
1926   default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1927   // @@protoc_insertion_point(field_set:google.protobuf.Field.default_value)
1928 }
set_default_value(const char * value)1929  void Field::set_default_value(const char* value) {
1930 
1931   default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1932   // @@protoc_insertion_point(field_set_char:google.protobuf.Field.default_value)
1933 }
set_default_value(const char * value,size_t size)1934  void Field::set_default_value(const char* value, size_t size) {
1935 
1936   default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1937       ::std::string(reinterpret_cast<const char*>(value), size));
1938   // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.default_value)
1939 }
mutable_default_value()1940  ::std::string* Field::mutable_default_value() {
1941 
1942   // @@protoc_insertion_point(field_mutable:google.protobuf.Field.default_value)
1943   return default_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1944 }
release_default_value()1945  ::std::string* Field::release_default_value() {
1946   // @@protoc_insertion_point(field_release:google.protobuf.Field.default_value)
1947 
1948   return default_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1949 }
set_allocated_default_value(::std::string * default_value)1950  void Field::set_allocated_default_value(::std::string* default_value) {
1951   if (default_value != NULL) {
1952 
1953   } else {
1954 
1955   }
1956   default_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), default_value);
1957   // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.default_value)
1958 }
1959 
1960 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
1961 
1962 // ===================================================================
1963 
1964 #if !defined(_MSC_VER) || _MSC_VER >= 1900
1965 const int Enum::kNameFieldNumber;
1966 const int Enum::kEnumvalueFieldNumber;
1967 const int Enum::kOptionsFieldNumber;
1968 const int Enum::kSourceContextFieldNumber;
1969 const int Enum::kSyntaxFieldNumber;
1970 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1971 
Enum()1972 Enum::Enum()
1973   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1974   SharedCtor();
1975   // @@protoc_insertion_point(constructor:google.protobuf.Enum)
1976 }
1977 
InitAsDefaultInstance()1978 void Enum::InitAsDefaultInstance() {
1979   _is_default_instance_ = true;
1980   source_context_ = const_cast< ::google::protobuf::SourceContext*>(&::google::protobuf::SourceContext::default_instance());
1981 }
1982 
Enum(const Enum & from)1983 Enum::Enum(const Enum& from)
1984   : ::google::protobuf::Message(),
1985     _internal_metadata_(NULL) {
1986   SharedCtor();
1987   MergeFrom(from);
1988   // @@protoc_insertion_point(copy_constructor:google.protobuf.Enum)
1989 }
1990 
SharedCtor()1991 void Enum::SharedCtor() {
1992     _is_default_instance_ = false;
1993   ::google::protobuf::internal::GetEmptyString();
1994   _cached_size_ = 0;
1995   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1996   source_context_ = NULL;
1997   syntax_ = 0;
1998 }
1999 
~Enum()2000 Enum::~Enum() {
2001   // @@protoc_insertion_point(destructor:google.protobuf.Enum)
2002   SharedDtor();
2003 }
2004 
SharedDtor()2005 void Enum::SharedDtor() {
2006   name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2007   if (this != default_instance_) {
2008     delete source_context_;
2009   }
2010 }
2011 
SetCachedSize(int size) const2012 void Enum::SetCachedSize(int size) const {
2013   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2014   _cached_size_ = size;
2015   GOOGLE_SAFE_CONCURRENT_WRITES_END();
2016 }
descriptor()2017 const ::google::protobuf::Descriptor* Enum::descriptor() {
2018   protobuf_AssignDescriptorsOnce();
2019   return Enum_descriptor_;
2020 }
2021 
default_instance()2022 const Enum& Enum::default_instance() {
2023   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto();
2024   return *default_instance_;
2025 }
2026 
2027 Enum* Enum::default_instance_ = NULL;
2028 
New(::google::protobuf::Arena * arena) const2029 Enum* Enum::New(::google::protobuf::Arena* arena) const {
2030   Enum* n = new Enum;
2031   if (arena != NULL) {
2032     arena->Own(n);
2033   }
2034   return n;
2035 }
2036 
Clear()2037 void Enum::Clear() {
2038 // @@protoc_insertion_point(message_clear_start:google.protobuf.Enum)
2039   name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2040   if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_context_;
2041   source_context_ = NULL;
2042   syntax_ = 0;
2043   enumvalue_.Clear();
2044   options_.Clear();
2045 }
2046 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)2047 bool Enum::MergePartialFromCodedStream(
2048     ::google::protobuf::io::CodedInputStream* input) {
2049 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2050   ::google::protobuf::uint32 tag;
2051   // @@protoc_insertion_point(parse_start:google.protobuf.Enum)
2052   for (;;) {
2053     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2054     tag = p.first;
2055     if (!p.second) goto handle_unusual;
2056     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2057       // optional string name = 1;
2058       case 1: {
2059         if (tag == 10) {
2060           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2061                 input, this->mutable_name()));
2062           DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2063             this->name().data(), this->name().length(),
2064             ::google::protobuf::internal::WireFormatLite::PARSE,
2065             "google.protobuf.Enum.name"));
2066         } else {
2067           goto handle_unusual;
2068         }
2069         if (input->ExpectTag(18)) goto parse_enumvalue;
2070         break;
2071       }
2072 
2073       // repeated .google.protobuf.EnumValue enumvalue = 2;
2074       case 2: {
2075         if (tag == 18) {
2076          parse_enumvalue:
2077           DO_(input->IncrementRecursionDepth());
2078          parse_loop_enumvalue:
2079           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
2080                 input, add_enumvalue()));
2081         } else {
2082           goto handle_unusual;
2083         }
2084         if (input->ExpectTag(18)) goto parse_loop_enumvalue;
2085         if (input->ExpectTag(26)) goto parse_loop_options;
2086         input->UnsafeDecrementRecursionDepth();
2087         break;
2088       }
2089 
2090       // repeated .google.protobuf.Option options = 3;
2091       case 3: {
2092         if (tag == 26) {
2093           DO_(input->IncrementRecursionDepth());
2094          parse_loop_options:
2095           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
2096                 input, add_options()));
2097         } else {
2098           goto handle_unusual;
2099         }
2100         if (input->ExpectTag(26)) goto parse_loop_options;
2101         input->UnsafeDecrementRecursionDepth();
2102         if (input->ExpectTag(34)) goto parse_source_context;
2103         break;
2104       }
2105 
2106       // optional .google.protobuf.SourceContext source_context = 4;
2107       case 4: {
2108         if (tag == 34) {
2109          parse_source_context:
2110           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2111                input, mutable_source_context()));
2112         } else {
2113           goto handle_unusual;
2114         }
2115         if (input->ExpectTag(40)) goto parse_syntax;
2116         break;
2117       }
2118 
2119       // optional .google.protobuf.Syntax syntax = 5;
2120       case 5: {
2121         if (tag == 40) {
2122          parse_syntax:
2123           int value;
2124           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2125                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2126                  input, &value)));
2127           set_syntax(static_cast< ::google::protobuf::Syntax >(value));
2128         } else {
2129           goto handle_unusual;
2130         }
2131         if (input->ExpectAtEnd()) goto success;
2132         break;
2133       }
2134 
2135       default: {
2136       handle_unusual:
2137         if (tag == 0 ||
2138             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2139             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2140           goto success;
2141         }
2142         DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
2143         break;
2144       }
2145     }
2146   }
2147 success:
2148   // @@protoc_insertion_point(parse_success:google.protobuf.Enum)
2149   return true;
2150 failure:
2151   // @@protoc_insertion_point(parse_failure:google.protobuf.Enum)
2152   return false;
2153 #undef DO_
2154 }
2155 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const2156 void Enum::SerializeWithCachedSizes(
2157     ::google::protobuf::io::CodedOutputStream* output) const {
2158   // @@protoc_insertion_point(serialize_start:google.protobuf.Enum)
2159   // optional string name = 1;
2160   if (this->name().size() > 0) {
2161     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2162       this->name().data(), this->name().length(),
2163       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2164       "google.protobuf.Enum.name");
2165     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2166       1, this->name(), output);
2167   }
2168 
2169   // repeated .google.protobuf.EnumValue enumvalue = 2;
2170   for (unsigned int i = 0, n = this->enumvalue_size(); i < n; i++) {
2171     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2172       2, this->enumvalue(i), output);
2173   }
2174 
2175   // repeated .google.protobuf.Option options = 3;
2176   for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
2177     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2178       3, this->options(i), output);
2179   }
2180 
2181   // optional .google.protobuf.SourceContext source_context = 4;
2182   if (this->has_source_context()) {
2183     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2184       4, *this->source_context_, output);
2185   }
2186 
2187   // optional .google.protobuf.Syntax syntax = 5;
2188   if (this->syntax() != 0) {
2189     ::google::protobuf::internal::WireFormatLite::WriteEnum(
2190       5, this->syntax(), output);
2191   }
2192 
2193   // @@protoc_insertion_point(serialize_end:google.protobuf.Enum)
2194 }
2195 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const2196 ::google::protobuf::uint8* Enum::InternalSerializeWithCachedSizesToArray(
2197     bool deterministic, ::google::protobuf::uint8* target) const {
2198   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Enum)
2199   // optional string name = 1;
2200   if (this->name().size() > 0) {
2201     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2202       this->name().data(), this->name().length(),
2203       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2204       "google.protobuf.Enum.name");
2205     target =
2206       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2207         1, this->name(), target);
2208   }
2209 
2210   // repeated .google.protobuf.EnumValue enumvalue = 2;
2211   for (unsigned int i = 0, n = this->enumvalue_size(); i < n; i++) {
2212     target = ::google::protobuf::internal::WireFormatLite::
2213       InternalWriteMessageNoVirtualToArray(
2214         2, this->enumvalue(i), false, target);
2215   }
2216 
2217   // repeated .google.protobuf.Option options = 3;
2218   for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
2219     target = ::google::protobuf::internal::WireFormatLite::
2220       InternalWriteMessageNoVirtualToArray(
2221         3, this->options(i), false, target);
2222   }
2223 
2224   // optional .google.protobuf.SourceContext source_context = 4;
2225   if (this->has_source_context()) {
2226     target = ::google::protobuf::internal::WireFormatLite::
2227       InternalWriteMessageNoVirtualToArray(
2228         4, *this->source_context_, false, target);
2229   }
2230 
2231   // optional .google.protobuf.Syntax syntax = 5;
2232   if (this->syntax() != 0) {
2233     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2234       5, this->syntax(), target);
2235   }
2236 
2237   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Enum)
2238   return target;
2239 }
2240 
ByteSize() const2241 int Enum::ByteSize() const {
2242 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Enum)
2243   int total_size = 0;
2244 
2245   // optional string name = 1;
2246   if (this->name().size() > 0) {
2247     total_size += 1 +
2248       ::google::protobuf::internal::WireFormatLite::StringSize(
2249         this->name());
2250   }
2251 
2252   // optional .google.protobuf.SourceContext source_context = 4;
2253   if (this->has_source_context()) {
2254     total_size += 1 +
2255       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2256         *this->source_context_);
2257   }
2258 
2259   // optional .google.protobuf.Syntax syntax = 5;
2260   if (this->syntax() != 0) {
2261     total_size += 1 +
2262       ::google::protobuf::internal::WireFormatLite::EnumSize(this->syntax());
2263   }
2264 
2265   // repeated .google.protobuf.EnumValue enumvalue = 2;
2266   total_size += 1 * this->enumvalue_size();
2267   for (int i = 0; i < this->enumvalue_size(); i++) {
2268     total_size +=
2269       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2270         this->enumvalue(i));
2271   }
2272 
2273   // repeated .google.protobuf.Option options = 3;
2274   total_size += 1 * this->options_size();
2275   for (int i = 0; i < this->options_size(); i++) {
2276     total_size +=
2277       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2278         this->options(i));
2279   }
2280 
2281   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2282   _cached_size_ = total_size;
2283   GOOGLE_SAFE_CONCURRENT_WRITES_END();
2284   return total_size;
2285 }
2286 
MergeFrom(const::google::protobuf::Message & from)2287 void Enum::MergeFrom(const ::google::protobuf::Message& from) {
2288 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Enum)
2289   if (GOOGLE_PREDICT_FALSE(&from == this)) {
2290     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
2291   }
2292   const Enum* source =
2293       ::google::protobuf::internal::DynamicCastToGenerated<const Enum>(
2294           &from);
2295   if (source == NULL) {
2296   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Enum)
2297     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2298   } else {
2299   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Enum)
2300     MergeFrom(*source);
2301   }
2302 }
2303 
MergeFrom(const Enum & from)2304 void Enum::MergeFrom(const Enum& from) {
2305 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum)
2306   if (GOOGLE_PREDICT_FALSE(&from == this)) {
2307     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
2308   }
2309   enumvalue_.MergeFrom(from.enumvalue_);
2310   options_.MergeFrom(from.options_);
2311   if (from.name().size() > 0) {
2312 
2313     name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
2314   }
2315   if (from.has_source_context()) {
2316     mutable_source_context()->::google::protobuf::SourceContext::MergeFrom(from.source_context());
2317   }
2318   if (from.syntax() != 0) {
2319     set_syntax(from.syntax());
2320   }
2321 }
2322 
CopyFrom(const::google::protobuf::Message & from)2323 void Enum::CopyFrom(const ::google::protobuf::Message& from) {
2324 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Enum)
2325   if (&from == this) return;
2326   Clear();
2327   MergeFrom(from);
2328 }
2329 
CopyFrom(const Enum & from)2330 void Enum::CopyFrom(const Enum& from) {
2331 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Enum)
2332   if (&from == this) return;
2333   Clear();
2334   MergeFrom(from);
2335 }
2336 
IsInitialized() const2337 bool Enum::IsInitialized() const {
2338 
2339   return true;
2340 }
2341 
Swap(Enum * other)2342 void Enum::Swap(Enum* other) {
2343   if (other == this) return;
2344   InternalSwap(other);
2345 }
InternalSwap(Enum * other)2346 void Enum::InternalSwap(Enum* other) {
2347   name_.Swap(&other->name_);
2348   enumvalue_.UnsafeArenaSwap(&other->enumvalue_);
2349   options_.UnsafeArenaSwap(&other->options_);
2350   std::swap(source_context_, other->source_context_);
2351   std::swap(syntax_, other->syntax_);
2352   _internal_metadata_.Swap(&other->_internal_metadata_);
2353   std::swap(_cached_size_, other->_cached_size_);
2354 }
2355 
GetMetadata() const2356 ::google::protobuf::Metadata Enum::GetMetadata() const {
2357   protobuf_AssignDescriptorsOnce();
2358   ::google::protobuf::Metadata metadata;
2359   metadata.descriptor = Enum_descriptor_;
2360   metadata.reflection = Enum_reflection_;
2361   return metadata;
2362 }
2363 
2364 #if PROTOBUF_INLINE_NOT_IN_HEADERS
2365 // Enum
2366 
2367 // optional string name = 1;
clear_name()2368 void Enum::clear_name() {
2369   name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2370 }
name() const2371  const ::std::string& Enum::name() const {
2372   // @@protoc_insertion_point(field_get:google.protobuf.Enum.name)
2373   return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2374 }
set_name(const::std::string & value)2375  void Enum::set_name(const ::std::string& value) {
2376 
2377   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2378   // @@protoc_insertion_point(field_set:google.protobuf.Enum.name)
2379 }
set_name(const char * value)2380  void Enum::set_name(const char* value) {
2381 
2382   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2383   // @@protoc_insertion_point(field_set_char:google.protobuf.Enum.name)
2384 }
set_name(const char * value,size_t size)2385  void Enum::set_name(const char* value, size_t size) {
2386 
2387   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2388       ::std::string(reinterpret_cast<const char*>(value), size));
2389   // @@protoc_insertion_point(field_set_pointer:google.protobuf.Enum.name)
2390 }
mutable_name()2391  ::std::string* Enum::mutable_name() {
2392 
2393   // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.name)
2394   return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2395 }
release_name()2396  ::std::string* Enum::release_name() {
2397   // @@protoc_insertion_point(field_release:google.protobuf.Enum.name)
2398 
2399   return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2400 }
set_allocated_name(::std::string * name)2401  void Enum::set_allocated_name(::std::string* name) {
2402   if (name != NULL) {
2403 
2404   } else {
2405 
2406   }
2407   name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
2408   // @@protoc_insertion_point(field_set_allocated:google.protobuf.Enum.name)
2409 }
2410 
2411 // repeated .google.protobuf.EnumValue enumvalue = 2;
enumvalue_size() const2412 int Enum::enumvalue_size() const {
2413   return enumvalue_.size();
2414 }
clear_enumvalue()2415 void Enum::clear_enumvalue() {
2416   enumvalue_.Clear();
2417 }
enumvalue(int index) const2418 const ::google::protobuf::EnumValue& Enum::enumvalue(int index) const {
2419   // @@protoc_insertion_point(field_get:google.protobuf.Enum.enumvalue)
2420   return enumvalue_.Get(index);
2421 }
mutable_enumvalue(int index)2422 ::google::protobuf::EnumValue* Enum::mutable_enumvalue(int index) {
2423   // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.enumvalue)
2424   return enumvalue_.Mutable(index);
2425 }
add_enumvalue()2426 ::google::protobuf::EnumValue* Enum::add_enumvalue() {
2427   // @@protoc_insertion_point(field_add:google.protobuf.Enum.enumvalue)
2428   return enumvalue_.Add();
2429 }
2430 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue >*
mutable_enumvalue()2431 Enum::mutable_enumvalue() {
2432   // @@protoc_insertion_point(field_mutable_list:google.protobuf.Enum.enumvalue)
2433   return &enumvalue_;
2434 }
2435 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue >&
enumvalue() const2436 Enum::enumvalue() const {
2437   // @@protoc_insertion_point(field_list:google.protobuf.Enum.enumvalue)
2438   return enumvalue_;
2439 }
2440 
2441 // repeated .google.protobuf.Option options = 3;
options_size() const2442 int Enum::options_size() const {
2443   return options_.size();
2444 }
clear_options()2445 void Enum::clear_options() {
2446   options_.Clear();
2447 }
options(int index) const2448 const ::google::protobuf::Option& Enum::options(int index) const {
2449   // @@protoc_insertion_point(field_get:google.protobuf.Enum.options)
2450   return options_.Get(index);
2451 }
mutable_options(int index)2452 ::google::protobuf::Option* Enum::mutable_options(int index) {
2453   // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.options)
2454   return options_.Mutable(index);
2455 }
add_options()2456 ::google::protobuf::Option* Enum::add_options() {
2457   // @@protoc_insertion_point(field_add:google.protobuf.Enum.options)
2458   return options_.Add();
2459 }
2460 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
mutable_options()2461 Enum::mutable_options() {
2462   // @@protoc_insertion_point(field_mutable_list:google.protobuf.Enum.options)
2463   return &options_;
2464 }
2465 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
options() const2466 Enum::options() const {
2467   // @@protoc_insertion_point(field_list:google.protobuf.Enum.options)
2468   return options_;
2469 }
2470 
2471 // optional .google.protobuf.SourceContext source_context = 4;
has_source_context() const2472 bool Enum::has_source_context() const {
2473   return !_is_default_instance_ && source_context_ != NULL;
2474 }
clear_source_context()2475 void Enum::clear_source_context() {
2476   if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_context_;
2477   source_context_ = NULL;
2478 }
source_context() const2479 const ::google::protobuf::SourceContext& Enum::source_context() const {
2480   // @@protoc_insertion_point(field_get:google.protobuf.Enum.source_context)
2481   return source_context_ != NULL ? *source_context_ : *default_instance_->source_context_;
2482 }
mutable_source_context()2483 ::google::protobuf::SourceContext* Enum::mutable_source_context() {
2484 
2485   if (source_context_ == NULL) {
2486     source_context_ = new ::google::protobuf::SourceContext;
2487   }
2488   // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.source_context)
2489   return source_context_;
2490 }
release_source_context()2491 ::google::protobuf::SourceContext* Enum::release_source_context() {
2492   // @@protoc_insertion_point(field_release:google.protobuf.Enum.source_context)
2493 
2494   ::google::protobuf::SourceContext* temp = source_context_;
2495   source_context_ = NULL;
2496   return temp;
2497 }
set_allocated_source_context(::google::protobuf::SourceContext * source_context)2498 void Enum::set_allocated_source_context(::google::protobuf::SourceContext* source_context) {
2499   delete source_context_;
2500   source_context_ = source_context;
2501   if (source_context) {
2502 
2503   } else {
2504 
2505   }
2506   // @@protoc_insertion_point(field_set_allocated:google.protobuf.Enum.source_context)
2507 }
2508 
2509 // optional .google.protobuf.Syntax syntax = 5;
clear_syntax()2510 void Enum::clear_syntax() {
2511   syntax_ = 0;
2512 }
syntax() const2513  ::google::protobuf::Syntax Enum::syntax() const {
2514   // @@protoc_insertion_point(field_get:google.protobuf.Enum.syntax)
2515   return static_cast< ::google::protobuf::Syntax >(syntax_);
2516 }
set_syntax(::google::protobuf::Syntax value)2517  void Enum::set_syntax(::google::protobuf::Syntax value) {
2518 
2519   syntax_ = value;
2520   // @@protoc_insertion_point(field_set:google.protobuf.Enum.syntax)
2521 }
2522 
2523 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
2524 
2525 // ===================================================================
2526 
2527 #if !defined(_MSC_VER) || _MSC_VER >= 1900
2528 const int EnumValue::kNameFieldNumber;
2529 const int EnumValue::kNumberFieldNumber;
2530 const int EnumValue::kOptionsFieldNumber;
2531 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2532 
EnumValue()2533 EnumValue::EnumValue()
2534   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2535   SharedCtor();
2536   // @@protoc_insertion_point(constructor:google.protobuf.EnumValue)
2537 }
2538 
InitAsDefaultInstance()2539 void EnumValue::InitAsDefaultInstance() {
2540   _is_default_instance_ = true;
2541 }
2542 
EnumValue(const EnumValue & from)2543 EnumValue::EnumValue(const EnumValue& from)
2544   : ::google::protobuf::Message(),
2545     _internal_metadata_(NULL) {
2546   SharedCtor();
2547   MergeFrom(from);
2548   // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValue)
2549 }
2550 
SharedCtor()2551 void EnumValue::SharedCtor() {
2552     _is_default_instance_ = false;
2553   ::google::protobuf::internal::GetEmptyString();
2554   _cached_size_ = 0;
2555   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2556   number_ = 0;
2557 }
2558 
~EnumValue()2559 EnumValue::~EnumValue() {
2560   // @@protoc_insertion_point(destructor:google.protobuf.EnumValue)
2561   SharedDtor();
2562 }
2563 
SharedDtor()2564 void EnumValue::SharedDtor() {
2565   name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2566   if (this != default_instance_) {
2567   }
2568 }
2569 
SetCachedSize(int size) const2570 void EnumValue::SetCachedSize(int size) const {
2571   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2572   _cached_size_ = size;
2573   GOOGLE_SAFE_CONCURRENT_WRITES_END();
2574 }
descriptor()2575 const ::google::protobuf::Descriptor* EnumValue::descriptor() {
2576   protobuf_AssignDescriptorsOnce();
2577   return EnumValue_descriptor_;
2578 }
2579 
default_instance()2580 const EnumValue& EnumValue::default_instance() {
2581   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto();
2582   return *default_instance_;
2583 }
2584 
2585 EnumValue* EnumValue::default_instance_ = NULL;
2586 
New(::google::protobuf::Arena * arena) const2587 EnumValue* EnumValue::New(::google::protobuf::Arena* arena) const {
2588   EnumValue* n = new EnumValue;
2589   if (arena != NULL) {
2590     arena->Own(n);
2591   }
2592   return n;
2593 }
2594 
Clear()2595 void EnumValue::Clear() {
2596 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValue)
2597   name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2598   number_ = 0;
2599   options_.Clear();
2600 }
2601 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)2602 bool EnumValue::MergePartialFromCodedStream(
2603     ::google::protobuf::io::CodedInputStream* input) {
2604 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2605   ::google::protobuf::uint32 tag;
2606   // @@protoc_insertion_point(parse_start:google.protobuf.EnumValue)
2607   for (;;) {
2608     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2609     tag = p.first;
2610     if (!p.second) goto handle_unusual;
2611     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2612       // optional string name = 1;
2613       case 1: {
2614         if (tag == 10) {
2615           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2616                 input, this->mutable_name()));
2617           DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2618             this->name().data(), this->name().length(),
2619             ::google::protobuf::internal::WireFormatLite::PARSE,
2620             "google.protobuf.EnumValue.name"));
2621         } else {
2622           goto handle_unusual;
2623         }
2624         if (input->ExpectTag(16)) goto parse_number;
2625         break;
2626       }
2627 
2628       // optional int32 number = 2;
2629       case 2: {
2630         if (tag == 16) {
2631          parse_number:
2632           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2633                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2634                  input, &number_)));
2635 
2636         } else {
2637           goto handle_unusual;
2638         }
2639         if (input->ExpectTag(26)) goto parse_options;
2640         break;
2641       }
2642 
2643       // repeated .google.protobuf.Option options = 3;
2644       case 3: {
2645         if (tag == 26) {
2646          parse_options:
2647           DO_(input->IncrementRecursionDepth());
2648          parse_loop_options:
2649           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
2650                 input, add_options()));
2651         } else {
2652           goto handle_unusual;
2653         }
2654         if (input->ExpectTag(26)) goto parse_loop_options;
2655         input->UnsafeDecrementRecursionDepth();
2656         if (input->ExpectAtEnd()) goto success;
2657         break;
2658       }
2659 
2660       default: {
2661       handle_unusual:
2662         if (tag == 0 ||
2663             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2664             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2665           goto success;
2666         }
2667         DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
2668         break;
2669       }
2670     }
2671   }
2672 success:
2673   // @@protoc_insertion_point(parse_success:google.protobuf.EnumValue)
2674   return true;
2675 failure:
2676   // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValue)
2677   return false;
2678 #undef DO_
2679 }
2680 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const2681 void EnumValue::SerializeWithCachedSizes(
2682     ::google::protobuf::io::CodedOutputStream* output) const {
2683   // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValue)
2684   // optional string name = 1;
2685   if (this->name().size() > 0) {
2686     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2687       this->name().data(), this->name().length(),
2688       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2689       "google.protobuf.EnumValue.name");
2690     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2691       1, this->name(), output);
2692   }
2693 
2694   // optional int32 number = 2;
2695   if (this->number() != 0) {
2696     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->number(), output);
2697   }
2698 
2699   // repeated .google.protobuf.Option options = 3;
2700   for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
2701     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2702       3, this->options(i), output);
2703   }
2704 
2705   // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValue)
2706 }
2707 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const2708 ::google::protobuf::uint8* EnumValue::InternalSerializeWithCachedSizesToArray(
2709     bool deterministic, ::google::protobuf::uint8* target) const {
2710   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue)
2711   // optional string name = 1;
2712   if (this->name().size() > 0) {
2713     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2714       this->name().data(), this->name().length(),
2715       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2716       "google.protobuf.EnumValue.name");
2717     target =
2718       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2719         1, this->name(), target);
2720   }
2721 
2722   // optional int32 number = 2;
2723   if (this->number() != 0) {
2724     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->number(), target);
2725   }
2726 
2727   // repeated .google.protobuf.Option options = 3;
2728   for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
2729     target = ::google::protobuf::internal::WireFormatLite::
2730       InternalWriteMessageNoVirtualToArray(
2731         3, this->options(i), false, target);
2732   }
2733 
2734   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValue)
2735   return target;
2736 }
2737 
ByteSize() const2738 int EnumValue::ByteSize() const {
2739 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValue)
2740   int total_size = 0;
2741 
2742   // optional string name = 1;
2743   if (this->name().size() > 0) {
2744     total_size += 1 +
2745       ::google::protobuf::internal::WireFormatLite::StringSize(
2746         this->name());
2747   }
2748 
2749   // optional int32 number = 2;
2750   if (this->number() != 0) {
2751     total_size += 1 +
2752       ::google::protobuf::internal::WireFormatLite::Int32Size(
2753         this->number());
2754   }
2755 
2756   // repeated .google.protobuf.Option options = 3;
2757   total_size += 1 * this->options_size();
2758   for (int i = 0; i < this->options_size(); i++) {
2759     total_size +=
2760       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2761         this->options(i));
2762   }
2763 
2764   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2765   _cached_size_ = total_size;
2766   GOOGLE_SAFE_CONCURRENT_WRITES_END();
2767   return total_size;
2768 }
2769 
MergeFrom(const::google::protobuf::Message & from)2770 void EnumValue::MergeFrom(const ::google::protobuf::Message& from) {
2771 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumValue)
2772   if (GOOGLE_PREDICT_FALSE(&from == this)) {
2773     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
2774   }
2775   const EnumValue* source =
2776       ::google::protobuf::internal::DynamicCastToGenerated<const EnumValue>(
2777           &from);
2778   if (source == NULL) {
2779   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.EnumValue)
2780     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2781   } else {
2782   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumValue)
2783     MergeFrom(*source);
2784   }
2785 }
2786 
MergeFrom(const EnumValue & from)2787 void EnumValue::MergeFrom(const EnumValue& from) {
2788 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumValue)
2789   if (GOOGLE_PREDICT_FALSE(&from == this)) {
2790     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
2791   }
2792   options_.MergeFrom(from.options_);
2793   if (from.name().size() > 0) {
2794 
2795     name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
2796   }
2797   if (from.number() != 0) {
2798     set_number(from.number());
2799   }
2800 }
2801 
CopyFrom(const::google::protobuf::Message & from)2802 void EnumValue::CopyFrom(const ::google::protobuf::Message& from) {
2803 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValue)
2804   if (&from == this) return;
2805   Clear();
2806   MergeFrom(from);
2807 }
2808 
CopyFrom(const EnumValue & from)2809 void EnumValue::CopyFrom(const EnumValue& from) {
2810 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumValue)
2811   if (&from == this) return;
2812   Clear();
2813   MergeFrom(from);
2814 }
2815 
IsInitialized() const2816 bool EnumValue::IsInitialized() const {
2817 
2818   return true;
2819 }
2820 
Swap(EnumValue * other)2821 void EnumValue::Swap(EnumValue* other) {
2822   if (other == this) return;
2823   InternalSwap(other);
2824 }
InternalSwap(EnumValue * other)2825 void EnumValue::InternalSwap(EnumValue* other) {
2826   name_.Swap(&other->name_);
2827   std::swap(number_, other->number_);
2828   options_.UnsafeArenaSwap(&other->options_);
2829   _internal_metadata_.Swap(&other->_internal_metadata_);
2830   std::swap(_cached_size_, other->_cached_size_);
2831 }
2832 
GetMetadata() const2833 ::google::protobuf::Metadata EnumValue::GetMetadata() const {
2834   protobuf_AssignDescriptorsOnce();
2835   ::google::protobuf::Metadata metadata;
2836   metadata.descriptor = EnumValue_descriptor_;
2837   metadata.reflection = EnumValue_reflection_;
2838   return metadata;
2839 }
2840 
2841 #if PROTOBUF_INLINE_NOT_IN_HEADERS
2842 // EnumValue
2843 
2844 // optional string name = 1;
clear_name()2845 void EnumValue::clear_name() {
2846   name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2847 }
name() const2848  const ::std::string& EnumValue::name() const {
2849   // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.name)
2850   return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2851 }
set_name(const::std::string & value)2852  void EnumValue::set_name(const ::std::string& value) {
2853 
2854   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2855   // @@protoc_insertion_point(field_set:google.protobuf.EnumValue.name)
2856 }
set_name(const char * value)2857  void EnumValue::set_name(const char* value) {
2858 
2859   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2860   // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValue.name)
2861 }
set_name(const char * value,size_t size)2862  void EnumValue::set_name(const char* value, size_t size) {
2863 
2864   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2865       ::std::string(reinterpret_cast<const char*>(value), size));
2866   // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValue.name)
2867 }
mutable_name()2868  ::std::string* EnumValue::mutable_name() {
2869 
2870   // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValue.name)
2871   return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2872 }
release_name()2873  ::std::string* EnumValue::release_name() {
2874   // @@protoc_insertion_point(field_release:google.protobuf.EnumValue.name)
2875 
2876   return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2877 }
set_allocated_name(::std::string * name)2878  void EnumValue::set_allocated_name(::std::string* name) {
2879   if (name != NULL) {
2880 
2881   } else {
2882 
2883   }
2884   name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
2885   // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValue.name)
2886 }
2887 
2888 // optional int32 number = 2;
clear_number()2889 void EnumValue::clear_number() {
2890   number_ = 0;
2891 }
number() const2892  ::google::protobuf::int32 EnumValue::number() const {
2893   // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.number)
2894   return number_;
2895 }
set_number(::google::protobuf::int32 value)2896  void EnumValue::set_number(::google::protobuf::int32 value) {
2897 
2898   number_ = value;
2899   // @@protoc_insertion_point(field_set:google.protobuf.EnumValue.number)
2900 }
2901 
2902 // repeated .google.protobuf.Option options = 3;
options_size() const2903 int EnumValue::options_size() const {
2904   return options_.size();
2905 }
clear_options()2906 void EnumValue::clear_options() {
2907   options_.Clear();
2908 }
options(int index) const2909 const ::google::protobuf::Option& EnumValue::options(int index) const {
2910   // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.options)
2911   return options_.Get(index);
2912 }
mutable_options(int index)2913 ::google::protobuf::Option* EnumValue::mutable_options(int index) {
2914   // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValue.options)
2915   return options_.Mutable(index);
2916 }
add_options()2917 ::google::protobuf::Option* EnumValue::add_options() {
2918   // @@protoc_insertion_point(field_add:google.protobuf.EnumValue.options)
2919   return options_.Add();
2920 }
2921 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
mutable_options()2922 EnumValue::mutable_options() {
2923   // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValue.options)
2924   return &options_;
2925 }
2926 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
options() const2927 EnumValue::options() const {
2928   // @@protoc_insertion_point(field_list:google.protobuf.EnumValue.options)
2929   return options_;
2930 }
2931 
2932 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
2933 
2934 // ===================================================================
2935 
2936 #if !defined(_MSC_VER) || _MSC_VER >= 1900
2937 const int Option::kNameFieldNumber;
2938 const int Option::kValueFieldNumber;
2939 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2940 
Option()2941 Option::Option()
2942   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2943   SharedCtor();
2944   // @@protoc_insertion_point(constructor:google.protobuf.Option)
2945 }
2946 
InitAsDefaultInstance()2947 void Option::InitAsDefaultInstance() {
2948   _is_default_instance_ = true;
2949   value_ = const_cast< ::google::protobuf::Any*>(&::google::protobuf::Any::default_instance());
2950 }
2951 
Option(const Option & from)2952 Option::Option(const Option& from)
2953   : ::google::protobuf::Message(),
2954     _internal_metadata_(NULL) {
2955   SharedCtor();
2956   MergeFrom(from);
2957   // @@protoc_insertion_point(copy_constructor:google.protobuf.Option)
2958 }
2959 
SharedCtor()2960 void Option::SharedCtor() {
2961     _is_default_instance_ = false;
2962   ::google::protobuf::internal::GetEmptyString();
2963   _cached_size_ = 0;
2964   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2965   value_ = NULL;
2966 }
2967 
~Option()2968 Option::~Option() {
2969   // @@protoc_insertion_point(destructor:google.protobuf.Option)
2970   SharedDtor();
2971 }
2972 
SharedDtor()2973 void Option::SharedDtor() {
2974   name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2975   if (this != default_instance_) {
2976     delete value_;
2977   }
2978 }
2979 
SetCachedSize(int size) const2980 void Option::SetCachedSize(int size) const {
2981   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2982   _cached_size_ = size;
2983   GOOGLE_SAFE_CONCURRENT_WRITES_END();
2984 }
descriptor()2985 const ::google::protobuf::Descriptor* Option::descriptor() {
2986   protobuf_AssignDescriptorsOnce();
2987   return Option_descriptor_;
2988 }
2989 
default_instance()2990 const Option& Option::default_instance() {
2991   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto();
2992   return *default_instance_;
2993 }
2994 
2995 Option* Option::default_instance_ = NULL;
2996 
New(::google::protobuf::Arena * arena) const2997 Option* Option::New(::google::protobuf::Arena* arena) const {
2998   Option* n = new Option;
2999   if (arena != NULL) {
3000     arena->Own(n);
3001   }
3002   return n;
3003 }
3004 
Clear()3005 void Option::Clear() {
3006 // @@protoc_insertion_point(message_clear_start:google.protobuf.Option)
3007   name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3008   if (GetArenaNoVirtual() == NULL && value_ != NULL) delete value_;
3009   value_ = NULL;
3010 }
3011 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)3012 bool Option::MergePartialFromCodedStream(
3013     ::google::protobuf::io::CodedInputStream* input) {
3014 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3015   ::google::protobuf::uint32 tag;
3016   // @@protoc_insertion_point(parse_start:google.protobuf.Option)
3017   for (;;) {
3018     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
3019     tag = p.first;
3020     if (!p.second) goto handle_unusual;
3021     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3022       // optional string name = 1;
3023       case 1: {
3024         if (tag == 10) {
3025           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3026                 input, this->mutable_name()));
3027           DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3028             this->name().data(), this->name().length(),
3029             ::google::protobuf::internal::WireFormatLite::PARSE,
3030             "google.protobuf.Option.name"));
3031         } else {
3032           goto handle_unusual;
3033         }
3034         if (input->ExpectTag(18)) goto parse_value;
3035         break;
3036       }
3037 
3038       // optional .google.protobuf.Any value = 2;
3039       case 2: {
3040         if (tag == 18) {
3041          parse_value:
3042           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3043                input, mutable_value()));
3044         } else {
3045           goto handle_unusual;
3046         }
3047         if (input->ExpectAtEnd()) goto success;
3048         break;
3049       }
3050 
3051       default: {
3052       handle_unusual:
3053         if (tag == 0 ||
3054             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3055             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3056           goto success;
3057         }
3058         DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
3059         break;
3060       }
3061     }
3062   }
3063 success:
3064   // @@protoc_insertion_point(parse_success:google.protobuf.Option)
3065   return true;
3066 failure:
3067   // @@protoc_insertion_point(parse_failure:google.protobuf.Option)
3068   return false;
3069 #undef DO_
3070 }
3071 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const3072 void Option::SerializeWithCachedSizes(
3073     ::google::protobuf::io::CodedOutputStream* output) const {
3074   // @@protoc_insertion_point(serialize_start:google.protobuf.Option)
3075   // optional string name = 1;
3076   if (this->name().size() > 0) {
3077     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3078       this->name().data(), this->name().length(),
3079       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3080       "google.protobuf.Option.name");
3081     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3082       1, this->name(), output);
3083   }
3084 
3085   // optional .google.protobuf.Any value = 2;
3086   if (this->has_value()) {
3087     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3088       2, *this->value_, output);
3089   }
3090 
3091   // @@protoc_insertion_point(serialize_end:google.protobuf.Option)
3092 }
3093 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const3094 ::google::protobuf::uint8* Option::InternalSerializeWithCachedSizesToArray(
3095     bool deterministic, ::google::protobuf::uint8* target) const {
3096   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Option)
3097   // optional string name = 1;
3098   if (this->name().size() > 0) {
3099     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3100       this->name().data(), this->name().length(),
3101       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3102       "google.protobuf.Option.name");
3103     target =
3104       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3105         1, this->name(), target);
3106   }
3107 
3108   // optional .google.protobuf.Any value = 2;
3109   if (this->has_value()) {
3110     target = ::google::protobuf::internal::WireFormatLite::
3111       InternalWriteMessageNoVirtualToArray(
3112         2, *this->value_, false, target);
3113   }
3114 
3115   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Option)
3116   return target;
3117 }
3118 
ByteSize() const3119 int Option::ByteSize() const {
3120 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Option)
3121   int total_size = 0;
3122 
3123   // optional string name = 1;
3124   if (this->name().size() > 0) {
3125     total_size += 1 +
3126       ::google::protobuf::internal::WireFormatLite::StringSize(
3127         this->name());
3128   }
3129 
3130   // optional .google.protobuf.Any value = 2;
3131   if (this->has_value()) {
3132     total_size += 1 +
3133       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3134         *this->value_);
3135   }
3136 
3137   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3138   _cached_size_ = total_size;
3139   GOOGLE_SAFE_CONCURRENT_WRITES_END();
3140   return total_size;
3141 }
3142 
MergeFrom(const::google::protobuf::Message & from)3143 void Option::MergeFrom(const ::google::protobuf::Message& from) {
3144 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Option)
3145   if (GOOGLE_PREDICT_FALSE(&from == this)) {
3146     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
3147   }
3148   const Option* source =
3149       ::google::protobuf::internal::DynamicCastToGenerated<const Option>(
3150           &from);
3151   if (source == NULL) {
3152   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Option)
3153     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3154   } else {
3155   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Option)
3156     MergeFrom(*source);
3157   }
3158 }
3159 
MergeFrom(const Option & from)3160 void Option::MergeFrom(const Option& from) {
3161 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Option)
3162   if (GOOGLE_PREDICT_FALSE(&from == this)) {
3163     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
3164   }
3165   if (from.name().size() > 0) {
3166 
3167     name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
3168   }
3169   if (from.has_value()) {
3170     mutable_value()->::google::protobuf::Any::MergeFrom(from.value());
3171   }
3172 }
3173 
CopyFrom(const::google::protobuf::Message & from)3174 void Option::CopyFrom(const ::google::protobuf::Message& from) {
3175 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Option)
3176   if (&from == this) return;
3177   Clear();
3178   MergeFrom(from);
3179 }
3180 
CopyFrom(const Option & from)3181 void Option::CopyFrom(const Option& from) {
3182 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Option)
3183   if (&from == this) return;
3184   Clear();
3185   MergeFrom(from);
3186 }
3187 
IsInitialized() const3188 bool Option::IsInitialized() const {
3189 
3190   return true;
3191 }
3192 
Swap(Option * other)3193 void Option::Swap(Option* other) {
3194   if (other == this) return;
3195   InternalSwap(other);
3196 }
InternalSwap(Option * other)3197 void Option::InternalSwap(Option* other) {
3198   name_.Swap(&other->name_);
3199   std::swap(value_, other->value_);
3200   _internal_metadata_.Swap(&other->_internal_metadata_);
3201   std::swap(_cached_size_, other->_cached_size_);
3202 }
3203 
GetMetadata() const3204 ::google::protobuf::Metadata Option::GetMetadata() const {
3205   protobuf_AssignDescriptorsOnce();
3206   ::google::protobuf::Metadata metadata;
3207   metadata.descriptor = Option_descriptor_;
3208   metadata.reflection = Option_reflection_;
3209   return metadata;
3210 }
3211 
3212 #if PROTOBUF_INLINE_NOT_IN_HEADERS
3213 // Option
3214 
3215 // optional string name = 1;
clear_name()3216 void Option::clear_name() {
3217   name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3218 }
name() const3219  const ::std::string& Option::name() const {
3220   // @@protoc_insertion_point(field_get:google.protobuf.Option.name)
3221   return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3222 }
set_name(const::std::string & value)3223  void Option::set_name(const ::std::string& value) {
3224 
3225   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3226   // @@protoc_insertion_point(field_set:google.protobuf.Option.name)
3227 }
set_name(const char * value)3228  void Option::set_name(const char* value) {
3229 
3230   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3231   // @@protoc_insertion_point(field_set_char:google.protobuf.Option.name)
3232 }
set_name(const char * value,size_t size)3233  void Option::set_name(const char* value, size_t size) {
3234 
3235   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3236       ::std::string(reinterpret_cast<const char*>(value), size));
3237   // @@protoc_insertion_point(field_set_pointer:google.protobuf.Option.name)
3238 }
mutable_name()3239  ::std::string* Option::mutable_name() {
3240 
3241   // @@protoc_insertion_point(field_mutable:google.protobuf.Option.name)
3242   return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3243 }
release_name()3244  ::std::string* Option::release_name() {
3245   // @@protoc_insertion_point(field_release:google.protobuf.Option.name)
3246 
3247   return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3248 }
set_allocated_name(::std::string * name)3249  void Option::set_allocated_name(::std::string* name) {
3250   if (name != NULL) {
3251 
3252   } else {
3253 
3254   }
3255   name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
3256   // @@protoc_insertion_point(field_set_allocated:google.protobuf.Option.name)
3257 }
3258 
3259 // optional .google.protobuf.Any value = 2;
has_value() const3260 bool Option::has_value() const {
3261   return !_is_default_instance_ && value_ != NULL;
3262 }
clear_value()3263 void Option::clear_value() {
3264   if (GetArenaNoVirtual() == NULL && value_ != NULL) delete value_;
3265   value_ = NULL;
3266 }
value() const3267 const ::google::protobuf::Any& Option::value() const {
3268   // @@protoc_insertion_point(field_get:google.protobuf.Option.value)
3269   return value_ != NULL ? *value_ : *default_instance_->value_;
3270 }
mutable_value()3271 ::google::protobuf::Any* Option::mutable_value() {
3272 
3273   if (value_ == NULL) {
3274     value_ = new ::google::protobuf::Any;
3275   }
3276   // @@protoc_insertion_point(field_mutable:google.protobuf.Option.value)
3277   return value_;
3278 }
release_value()3279 ::google::protobuf::Any* Option::release_value() {
3280   // @@protoc_insertion_point(field_release:google.protobuf.Option.value)
3281 
3282   ::google::protobuf::Any* temp = value_;
3283   value_ = NULL;
3284   return temp;
3285 }
set_allocated_value(::google::protobuf::Any * value)3286 void Option::set_allocated_value(::google::protobuf::Any* value) {
3287   delete value_;
3288   value_ = value;
3289   if (value) {
3290 
3291   } else {
3292 
3293   }
3294   // @@protoc_insertion_point(field_set_allocated:google.protobuf.Option.value)
3295 }
3296 
3297 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
3298 
3299 // @@protoc_insertion_point(namespace_scope)
3300 
3301 }  // namespace protobuf
3302 }  // namespace google
3303 
3304 // @@protoc_insertion_point(global_scope)
3305