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 class TypeDefaultTypeInternal {
23 public:
24  ::google::protobuf::internal::ExplicitlyConstructed<Type>
25      _instance;
26 } _Type_default_instance_;
27 class FieldDefaultTypeInternal {
28 public:
29  ::google::protobuf::internal::ExplicitlyConstructed<Field>
30      _instance;
31 } _Field_default_instance_;
32 class EnumDefaultTypeInternal {
33 public:
34  ::google::protobuf::internal::ExplicitlyConstructed<Enum>
35      _instance;
36 } _Enum_default_instance_;
37 class EnumValueDefaultTypeInternal {
38 public:
39  ::google::protobuf::internal::ExplicitlyConstructed<EnumValue>
40      _instance;
41 } _EnumValue_default_instance_;
42 class OptionDefaultTypeInternal {
43 public:
44  ::google::protobuf::internal::ExplicitlyConstructed<Option>
45      _instance;
46 } _Option_default_instance_;
47 
48 namespace protobuf_google_2fprotobuf_2ftype_2eproto {
49 
50 
51 namespace {
52 
53 ::google::protobuf::Metadata file_level_metadata[5];
54 const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[3];
55 
56 }  // namespace
57 
58 PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTableField
59     const TableStruct::entries[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
60   {0, 0, 0, ::google::protobuf::internal::kInvalidMask, 0, 0},
61 };
62 
63 PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::AuxillaryParseTableField
64     const TableStruct::aux[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
65   ::google::protobuf::internal::AuxillaryParseTableField(),
66 };
67 PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const
68     TableStruct::schema[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
69   { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
70   { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
71   { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
72   { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
73   { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
74 };
75 
76 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
77   ~0u,  // no _has_bits_
78   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, _internal_metadata_),
79   ~0u,  // no _extensions_
80   ~0u,  // no _oneof_case_
81   ~0u,  // no _weak_field_map_
82   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, name_),
83   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, fields_),
84   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, oneofs_),
85   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, options_),
86   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, source_context_),
87   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, syntax_),
88   ~0u,  // no _has_bits_
89   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, _internal_metadata_),
90   ~0u,  // no _extensions_
91   ~0u,  // no _oneof_case_
92   ~0u,  // no _weak_field_map_
93   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, kind_),
94   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, cardinality_),
95   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, number_),
96   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, name_),
97   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, type_url_),
98   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, oneof_index_),
99   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, packed_),
100   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, options_),
101   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, json_name_),
102   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, default_value_),
103   ~0u,  // no _has_bits_
104   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, _internal_metadata_),
105   ~0u,  // no _extensions_
106   ~0u,  // no _oneof_case_
107   ~0u,  // no _weak_field_map_
108   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, name_),
109   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, enumvalue_),
110   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, options_),
111   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, source_context_),
112   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, syntax_),
113   ~0u,  // no _has_bits_
114   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValue, _internal_metadata_),
115   ~0u,  // no _extensions_
116   ~0u,  // no _oneof_case_
117   ~0u,  // no _weak_field_map_
118   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValue, name_),
119   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValue, number_),
120   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValue, options_),
121   ~0u,  // no _has_bits_
122   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Option, _internal_metadata_),
123   ~0u,  // no _extensions_
124   ~0u,  // no _oneof_case_
125   ~0u,  // no _weak_field_map_
126   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Option, name_),
127   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Option, value_),
128 };
129 static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
130   { 0, -1, sizeof(Type)},
131   { 11, -1, sizeof(Field)},
132   { 26, -1, sizeof(Enum)},
133   { 36, -1, sizeof(EnumValue)},
134   { 44, -1, sizeof(Option)},
135 };
136 
137 static ::google::protobuf::Message const * const file_default_instances[] = {
138   reinterpret_cast<const ::google::protobuf::Message*>(&_Type_default_instance_),
139   reinterpret_cast<const ::google::protobuf::Message*>(&_Field_default_instance_),
140   reinterpret_cast<const ::google::protobuf::Message*>(&_Enum_default_instance_),
141   reinterpret_cast<const ::google::protobuf::Message*>(&_EnumValue_default_instance_),
142   reinterpret_cast<const ::google::protobuf::Message*>(&_Option_default_instance_),
143 };
144 
145 namespace {
146 
protobuf_AssignDescriptors()147 void protobuf_AssignDescriptors() {
148   AddDescriptors();
149   ::google::protobuf::MessageFactory* factory = NULL;
150   AssignDescriptors(
151       "google/protobuf/type.proto", schemas, file_default_instances, TableStruct::offsets, factory,
152       file_level_metadata, file_level_enum_descriptors, NULL);
153 }
154 
protobuf_AssignDescriptorsOnce()155 void protobuf_AssignDescriptorsOnce() {
156   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
157   ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
158 }
159 
160 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
protobuf_RegisterTypes(const::std::string &)161 void protobuf_RegisterTypes(const ::std::string&) {
162   protobuf_AssignDescriptorsOnce();
163   ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 5);
164 }
165 
166 }  // namespace
InitDefaultsImpl()167 void TableStruct::InitDefaultsImpl() {
168   GOOGLE_PROTOBUF_VERIFY_VERSION;
169 
170   ::google::protobuf::internal::InitProtobufDefaults();
171   ::google::protobuf::protobuf_google_2fprotobuf_2fany_2eproto::InitDefaults();
172   ::google::protobuf::protobuf_google_2fprotobuf_2fsource_5fcontext_2eproto::InitDefaults();
173   _Type_default_instance_._instance.DefaultConstruct();
174   ::google::protobuf::internal::OnShutdownDestroyMessage(
175       &_Type_default_instance_);_Field_default_instance_._instance.DefaultConstruct();
176   ::google::protobuf::internal::OnShutdownDestroyMessage(
177       &_Field_default_instance_);_Enum_default_instance_._instance.DefaultConstruct();
178   ::google::protobuf::internal::OnShutdownDestroyMessage(
179       &_Enum_default_instance_);_EnumValue_default_instance_._instance.DefaultConstruct();
180   ::google::protobuf::internal::OnShutdownDestroyMessage(
181       &_EnumValue_default_instance_);_Option_default_instance_._instance.DefaultConstruct();
182   ::google::protobuf::internal::OnShutdownDestroyMessage(
183       &_Option_default_instance_);_Type_default_instance_._instance.get_mutable()->source_context_ = const_cast< ::google::protobuf::SourceContext*>(
184       ::google::protobuf::SourceContext::internal_default_instance());
185   _Enum_default_instance_._instance.get_mutable()->source_context_ = const_cast< ::google::protobuf::SourceContext*>(
186       ::google::protobuf::SourceContext::internal_default_instance());
187   _Option_default_instance_._instance.get_mutable()->value_ = const_cast< ::google::protobuf::Any*>(
188       ::google::protobuf::Any::internal_default_instance());
189 }
190 
InitDefaults()191 void InitDefaults() {
192   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
193   ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl);
194 }
195 namespace {
AddDescriptorsImpl()196 void AddDescriptorsImpl() {
197   InitDefaults();
198   static const char descriptor[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
199       "\n\032google/protobuf/type.proto\022\017google.pro"
200       "tobuf\032\031google/protobuf/any.proto\032$google"
201       "/protobuf/source_context.proto\"\327\001\n\004Type\022"
202       "\014\n\004name\030\001 \001(\t\022&\n\006fields\030\002 \003(\0132\026.google.p"
203       "rotobuf.Field\022\016\n\006oneofs\030\003 \003(\t\022(\n\007options"
204       "\030\004 \003(\0132\027.google.protobuf.Option\0226\n\016sourc"
205       "e_context\030\005 \001(\0132\036.google.protobuf.Source"
206       "Context\022\'\n\006syntax\030\006 \001(\0162\027.google.protobu"
207       "f.Syntax\"\325\005\n\005Field\022)\n\004kind\030\001 \001(\0162\033.googl"
208       "e.protobuf.Field.Kind\0227\n\013cardinality\030\002 \001"
209       "(\0162\".google.protobuf.Field.Cardinality\022\016"
210       "\n\006number\030\003 \001(\005\022\014\n\004name\030\004 \001(\t\022\020\n\010type_url"
211       "\030\006 \001(\t\022\023\n\013oneof_index\030\007 \001(\005\022\016\n\006packed\030\010 "
212       "\001(\010\022(\n\007options\030\t \003(\0132\027.google.protobuf.O"
213       "ption\022\021\n\tjson_name\030\n \001(\t\022\025\n\rdefault_valu"
214       "e\030\013 \001(\t\"\310\002\n\004Kind\022\020\n\014TYPE_UNKNOWN\020\000\022\017\n\013TY"
215       "PE_DOUBLE\020\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTYPE_INT6"
216       "4\020\003\022\017\n\013TYPE_UINT64\020\004\022\016\n\nTYPE_INT32\020\005\022\020\n\014"
217       "TYPE_FIXED64\020\006\022\020\n\014TYPE_FIXED32\020\007\022\r\n\tTYPE"
218       "_BOOL\020\010\022\017\n\013TYPE_STRING\020\t\022\016\n\nTYPE_GROUP\020\n"
219       "\022\020\n\014TYPE_MESSAGE\020\013\022\016\n\nTYPE_BYTES\020\014\022\017\n\013TY"
220       "PE_UINT32\020\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_SFIXE"
221       "D32\020\017\022\021\n\rTYPE_SFIXED64\020\020\022\017\n\013TYPE_SINT32\020"
222       "\021\022\017\n\013TYPE_SINT64\020\022\"t\n\013Cardinality\022\027\n\023CAR"
223       "DINALITY_UNKNOWN\020\000\022\030\n\024CARDINALITY_OPTION"
224       "AL\020\001\022\030\n\024CARDINALITY_REQUIRED\020\002\022\030\n\024CARDIN"
225       "ALITY_REPEATED\020\003\"\316\001\n\004Enum\022\014\n\004name\030\001 \001(\t\022"
226       "-\n\tenumvalue\030\002 \003(\0132\032.google.protobuf.Enu"
227       "mValue\022(\n\007options\030\003 \003(\0132\027.google.protobu"
228       "f.Option\0226\n\016source_context\030\004 \001(\0132\036.googl"
229       "e.protobuf.SourceContext\022\'\n\006syntax\030\005 \001(\016"
230       "2\027.google.protobuf.Syntax\"S\n\tEnumValue\022\014"
231       "\n\004name\030\001 \001(\t\022\016\n\006number\030\002 \001(\005\022(\n\007options\030"
232       "\003 \003(\0132\027.google.protobuf.Option\";\n\006Option"
233       "\022\014\n\004name\030\001 \001(\t\022#\n\005value\030\002 \001(\0132\024.google.p"
234       "rotobuf.Any*.\n\006Syntax\022\021\n\rSYNTAX_PROTO2\020\000"
235       "\022\021\n\rSYNTAX_PROTO3\020\001B}\n\023com.google.protob"
236       "ufB\tTypeProtoP\001Z/google.golang.org/genpr"
237       "oto/protobuf/ptype;ptype\370\001\001\242\002\003GPB\252\002\036Goog"
238       "le.Protobuf.WellKnownTypesb\006proto3"
239   };
240   ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
241       descriptor, 1594);
242   ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
243     "google/protobuf/type.proto", &protobuf_RegisterTypes);
244   ::google::protobuf::protobuf_google_2fprotobuf_2fany_2eproto::AddDescriptors();
245   ::google::protobuf::protobuf_google_2fprotobuf_2fsource_5fcontext_2eproto::AddDescriptors();
246 }
247 } // anonymous namespace
248 
AddDescriptors()249 void AddDescriptors() {
250   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
251   ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
252 }
253 // Force AddDescriptors() to be called at dynamic initialization time.
254 struct StaticDescriptorInitializer {
StaticDescriptorInitializergoogle::protobuf::protobuf_google_2fprotobuf_2ftype_2eproto::StaticDescriptorInitializer255   StaticDescriptorInitializer() {
256     AddDescriptors();
257   }
258 } static_descriptor_initializer;
259 
260 }  // namespace protobuf_google_2fprotobuf_2ftype_2eproto
261 
Field_Kind_descriptor()262 const ::google::protobuf::EnumDescriptor* Field_Kind_descriptor() {
263   protobuf_google_2fprotobuf_2ftype_2eproto::protobuf_AssignDescriptorsOnce();
264   return protobuf_google_2fprotobuf_2ftype_2eproto::file_level_enum_descriptors[0];
265 }
Field_Kind_IsValid(int value)266 bool Field_Kind_IsValid(int value) {
267   switch (value) {
268     case 0:
269     case 1:
270     case 2:
271     case 3:
272     case 4:
273     case 5:
274     case 6:
275     case 7:
276     case 8:
277     case 9:
278     case 10:
279     case 11:
280     case 12:
281     case 13:
282     case 14:
283     case 15:
284     case 16:
285     case 17:
286     case 18:
287       return true;
288     default:
289       return false;
290   }
291 }
292 
293 #if !defined(_MSC_VER) || _MSC_VER >= 1900
294 const Field_Kind Field::TYPE_UNKNOWN;
295 const Field_Kind Field::TYPE_DOUBLE;
296 const Field_Kind Field::TYPE_FLOAT;
297 const Field_Kind Field::TYPE_INT64;
298 const Field_Kind Field::TYPE_UINT64;
299 const Field_Kind Field::TYPE_INT32;
300 const Field_Kind Field::TYPE_FIXED64;
301 const Field_Kind Field::TYPE_FIXED32;
302 const Field_Kind Field::TYPE_BOOL;
303 const Field_Kind Field::TYPE_STRING;
304 const Field_Kind Field::TYPE_GROUP;
305 const Field_Kind Field::TYPE_MESSAGE;
306 const Field_Kind Field::TYPE_BYTES;
307 const Field_Kind Field::TYPE_UINT32;
308 const Field_Kind Field::TYPE_ENUM;
309 const Field_Kind Field::TYPE_SFIXED32;
310 const Field_Kind Field::TYPE_SFIXED64;
311 const Field_Kind Field::TYPE_SINT32;
312 const Field_Kind Field::TYPE_SINT64;
313 const Field_Kind Field::Kind_MIN;
314 const Field_Kind Field::Kind_MAX;
315 const int Field::Kind_ARRAYSIZE;
316 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
Field_Cardinality_descriptor()317 const ::google::protobuf::EnumDescriptor* Field_Cardinality_descriptor() {
318   protobuf_google_2fprotobuf_2ftype_2eproto::protobuf_AssignDescriptorsOnce();
319   return protobuf_google_2fprotobuf_2ftype_2eproto::file_level_enum_descriptors[1];
320 }
Field_Cardinality_IsValid(int value)321 bool Field_Cardinality_IsValid(int value) {
322   switch (value) {
323     case 0:
324     case 1:
325     case 2:
326     case 3:
327       return true;
328     default:
329       return false;
330   }
331 }
332 
333 #if !defined(_MSC_VER) || _MSC_VER >= 1900
334 const Field_Cardinality Field::CARDINALITY_UNKNOWN;
335 const Field_Cardinality Field::CARDINALITY_OPTIONAL;
336 const Field_Cardinality Field::CARDINALITY_REQUIRED;
337 const Field_Cardinality Field::CARDINALITY_REPEATED;
338 const Field_Cardinality Field::Cardinality_MIN;
339 const Field_Cardinality Field::Cardinality_MAX;
340 const int Field::Cardinality_ARRAYSIZE;
341 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
Syntax_descriptor()342 const ::google::protobuf::EnumDescriptor* Syntax_descriptor() {
343   protobuf_google_2fprotobuf_2ftype_2eproto::protobuf_AssignDescriptorsOnce();
344   return protobuf_google_2fprotobuf_2ftype_2eproto::file_level_enum_descriptors[2];
345 }
Syntax_IsValid(int value)346 bool Syntax_IsValid(int value) {
347   switch (value) {
348     case 0:
349     case 1:
350       return true;
351     default:
352       return false;
353   }
354 }
355 
356 
357 // ===================================================================
358 
_slow_mutable_source_context()359 void Type::_slow_mutable_source_context() {
360   source_context_ = ::google::protobuf::Arena::Create< ::google::protobuf::SourceContext >(
361       GetArenaNoVirtual());
362 }
_slow_release_source_context()363 ::google::protobuf::SourceContext* Type::_slow_release_source_context() {
364   if (source_context_ == NULL) {
365     return NULL;
366   } else {
367     ::google::protobuf::SourceContext* temp = new ::google::protobuf::SourceContext(*source_context_);
368     source_context_ = NULL;
369     return temp;
370   }
371 }
unsafe_arena_release_source_context()372 ::google::protobuf::SourceContext* Type::unsafe_arena_release_source_context() {
373   // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Type.source_context)
374 
375   ::google::protobuf::SourceContext* temp = source_context_;
376   source_context_ = NULL;
377   return temp;
378 }
unsafe_arena_set_allocated_source_context(::google::protobuf::SourceContext * source_context)379 void Type::unsafe_arena_set_allocated_source_context(
380     ::google::protobuf::SourceContext* source_context) {
381   if (GetArenaNoVirtual() == NULL) {
382     delete source_context_;
383   }
384   source_context_ = source_context;
385   if (source_context) {
386 
387   } else {
388 
389   }
390   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Type.source_context)
391 }
392 #if !defined(_MSC_VER) || _MSC_VER >= 1900
393 const int Type::kNameFieldNumber;
394 const int Type::kFieldsFieldNumber;
395 const int Type::kOneofsFieldNumber;
396 const int Type::kOptionsFieldNumber;
397 const int Type::kSourceContextFieldNumber;
398 const int Type::kSyntaxFieldNumber;
399 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
400 
Type()401 Type::Type()
402   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
403   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
404     protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaults();
405   }
406   SharedCtor();
407   // @@protoc_insertion_point(constructor:google.protobuf.Type)
408 }
Type(::google::protobuf::Arena * arena)409 Type::Type(::google::protobuf::Arena* arena)
410   : ::google::protobuf::Message(),
411   _internal_metadata_(arena),
412   fields_(arena),
413   oneofs_(arena),
414   options_(arena) {
415   protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaults();
416   SharedCtor();
417   RegisterArenaDtor(arena);
418   // @@protoc_insertion_point(arena_constructor:google.protobuf.Type)
419 }
Type(const Type & from)420 Type::Type(const Type& from)
421   : ::google::protobuf::Message(),
422       _internal_metadata_(NULL),
423       fields_(from.fields_),
424       oneofs_(from.oneofs_),
425       options_(from.options_),
426       _cached_size_(0) {
427   _internal_metadata_.MergeFrom(from._internal_metadata_);
428   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
429   if (from.name().size() > 0) {
430     name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(),
431       GetArenaNoVirtual());
432   }
433   if (from.has_source_context()) {
434     source_context_ = new ::google::protobuf::SourceContext(*from.source_context_);
435   } else {
436     source_context_ = NULL;
437   }
438   syntax_ = from.syntax_;
439   // @@protoc_insertion_point(copy_constructor:google.protobuf.Type)
440 }
441 
SharedCtor()442 void Type::SharedCtor() {
443   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
444   ::memset(&source_context_, 0, static_cast<size_t>(
445       reinterpret_cast<char*>(&syntax_) -
446       reinterpret_cast<char*>(&source_context_)) + sizeof(syntax_));
447   _cached_size_ = 0;
448 }
449 
~Type()450 Type::~Type() {
451   // @@protoc_insertion_point(destructor:google.protobuf.Type)
452   SharedDtor();
453 }
454 
SharedDtor()455 void Type::SharedDtor() {
456   ::google::protobuf::Arena* arena = GetArenaNoVirtual();
457   GOOGLE_DCHECK(arena == NULL);
458   if (arena != NULL) {
459     return;
460   }
461 
462   name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena);
463   if (this != internal_default_instance()) delete source_context_;
464 }
465 
ArenaDtor(void * object)466 void Type::ArenaDtor(void* object) {
467   Type* _this = reinterpret_cast< Type* >(object);
468   (void)_this;
469 }
RegisterArenaDtor(::google::protobuf::Arena * arena)470 void Type::RegisterArenaDtor(::google::protobuf::Arena* arena) {
471 }
SetCachedSize(int size) const472 void Type::SetCachedSize(int size) const {
473   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
474   _cached_size_ = size;
475   GOOGLE_SAFE_CONCURRENT_WRITES_END();
476 }
descriptor()477 const ::google::protobuf::Descriptor* Type::descriptor() {
478   protobuf_google_2fprotobuf_2ftype_2eproto::protobuf_AssignDescriptorsOnce();
479   return protobuf_google_2fprotobuf_2ftype_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
480 }
481 
default_instance()482 const Type& Type::default_instance() {
483   protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaults();
484   return *internal_default_instance();
485 }
486 
New(::google::protobuf::Arena * arena) const487 Type* Type::New(::google::protobuf::Arena* arena) const {
488   return ::google::protobuf::Arena::CreateMessage<Type>(arena);
489 }
490 
Clear()491 void Type::Clear() {
492 // @@protoc_insertion_point(message_clear_start:google.protobuf.Type)
493   ::google::protobuf::uint32 cached_has_bits = 0;
494   // Prevent compiler warnings about cached_has_bits being unused
495   (void) cached_has_bits;
496 
497   fields_.Clear();
498   oneofs_.Clear();
499   options_.Clear();
500   name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
501   if (GetArenaNoVirtual() == NULL && source_context_ != NULL) {
502     delete source_context_;
503   }
504   source_context_ = NULL;
505   syntax_ = 0;
506   _internal_metadata_.Clear();
507 }
508 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)509 bool Type::MergePartialFromCodedStream(
510     ::google::protobuf::io::CodedInputStream* input) {
511 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
512   ::google::protobuf::uint32 tag;
513   // @@protoc_insertion_point(parse_start:google.protobuf.Type)
514   for (;;) {
515     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
516     tag = p.first;
517     if (!p.second) goto handle_unusual;
518     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
519       // string name = 1;
520       case 1: {
521         if (static_cast< ::google::protobuf::uint8>(tag) ==
522             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
523           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
524                 input, this->mutable_name()));
525           DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
526             this->name().data(), static_cast<int>(this->name().length()),
527             ::google::protobuf::internal::WireFormatLite::PARSE,
528             "google.protobuf.Type.name"));
529         } else {
530           goto handle_unusual;
531         }
532         break;
533       }
534 
535       // repeated .google.protobuf.Field fields = 2;
536       case 2: {
537         if (static_cast< ::google::protobuf::uint8>(tag) ==
538             static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
539           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
540                 input, add_fields()));
541         } else {
542           goto handle_unusual;
543         }
544         break;
545       }
546 
547       // repeated string oneofs = 3;
548       case 3: {
549         if (static_cast< ::google::protobuf::uint8>(tag) ==
550             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
551           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
552                 input, this->add_oneofs()));
553           DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
554             this->oneofs(this->oneofs_size() - 1).data(),
555             static_cast<int>(this->oneofs(this->oneofs_size() - 1).length()),
556             ::google::protobuf::internal::WireFormatLite::PARSE,
557             "google.protobuf.Type.oneofs"));
558         } else {
559           goto handle_unusual;
560         }
561         break;
562       }
563 
564       // repeated .google.protobuf.Option options = 4;
565       case 4: {
566         if (static_cast< ::google::protobuf::uint8>(tag) ==
567             static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
568           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
569                 input, add_options()));
570         } else {
571           goto handle_unusual;
572         }
573         break;
574       }
575 
576       // .google.protobuf.SourceContext source_context = 5;
577       case 5: {
578         if (static_cast< ::google::protobuf::uint8>(tag) ==
579             static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
580           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
581                input, mutable_source_context()));
582         } else {
583           goto handle_unusual;
584         }
585         break;
586       }
587 
588       // .google.protobuf.Syntax syntax = 6;
589       case 6: {
590         if (static_cast< ::google::protobuf::uint8>(tag) ==
591             static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
592           int value;
593           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
594                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
595                  input, &value)));
596           set_syntax(static_cast< ::google::protobuf::Syntax >(value));
597         } else {
598           goto handle_unusual;
599         }
600         break;
601       }
602 
603       default: {
604       handle_unusual:
605         if (tag == 0) {
606           goto success;
607         }
608         DO_(::google::protobuf::internal::WireFormat::SkipField(
609               input, tag, _internal_metadata_.mutable_unknown_fields()));
610         break;
611       }
612     }
613   }
614 success:
615   // @@protoc_insertion_point(parse_success:google.protobuf.Type)
616   return true;
617 failure:
618   // @@protoc_insertion_point(parse_failure:google.protobuf.Type)
619   return false;
620 #undef DO_
621 }
622 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const623 void Type::SerializeWithCachedSizes(
624     ::google::protobuf::io::CodedOutputStream* output) const {
625   // @@protoc_insertion_point(serialize_start:google.protobuf.Type)
626   ::google::protobuf::uint32 cached_has_bits = 0;
627   (void) cached_has_bits;
628 
629   // string name = 1;
630   if (this->name().size() > 0) {
631     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
632       this->name().data(), static_cast<int>(this->name().length()),
633       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
634       "google.protobuf.Type.name");
635     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
636       1, this->name(), output);
637   }
638 
639   // repeated .google.protobuf.Field fields = 2;
640   for (unsigned int i = 0,
641       n = static_cast<unsigned int>(this->fields_size()); i < n; i++) {
642     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
643       2, this->fields(static_cast<int>(i)), output);
644   }
645 
646   // repeated string oneofs = 3;
647   for (int i = 0, n = this->oneofs_size(); i < n; i++) {
648     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
649       this->oneofs(i).data(), static_cast<int>(this->oneofs(i).length()),
650       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
651       "google.protobuf.Type.oneofs");
652     ::google::protobuf::internal::WireFormatLite::WriteString(
653       3, this->oneofs(i), output);
654   }
655 
656   // repeated .google.protobuf.Option options = 4;
657   for (unsigned int i = 0,
658       n = static_cast<unsigned int>(this->options_size()); i < n; i++) {
659     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
660       4, this->options(static_cast<int>(i)), output);
661   }
662 
663   // .google.protobuf.SourceContext source_context = 5;
664   if (this->has_source_context()) {
665     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
666       5, *this->source_context_, output);
667   }
668 
669   // .google.protobuf.Syntax syntax = 6;
670   if (this->syntax() != 0) {
671     ::google::protobuf::internal::WireFormatLite::WriteEnum(
672       6, this->syntax(), output);
673   }
674 
675   if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
676     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
677         (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), output);
678   }
679   // @@protoc_insertion_point(serialize_end:google.protobuf.Type)
680 }
681 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const682 ::google::protobuf::uint8* Type::InternalSerializeWithCachedSizesToArray(
683     bool deterministic, ::google::protobuf::uint8* target) const {
684   (void)deterministic; // Unused
685   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Type)
686   ::google::protobuf::uint32 cached_has_bits = 0;
687   (void) cached_has_bits;
688 
689   // string name = 1;
690   if (this->name().size() > 0) {
691     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
692       this->name().data(), static_cast<int>(this->name().length()),
693       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
694       "google.protobuf.Type.name");
695     target =
696       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
697         1, this->name(), target);
698   }
699 
700   // repeated .google.protobuf.Field fields = 2;
701   for (unsigned int i = 0,
702       n = static_cast<unsigned int>(this->fields_size()); i < n; i++) {
703     target = ::google::protobuf::internal::WireFormatLite::
704       InternalWriteMessageNoVirtualToArray(
705         2, this->fields(static_cast<int>(i)), deterministic, target);
706   }
707 
708   // repeated string oneofs = 3;
709   for (int i = 0, n = this->oneofs_size(); i < n; i++) {
710     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
711       this->oneofs(i).data(), static_cast<int>(this->oneofs(i).length()),
712       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
713       "google.protobuf.Type.oneofs");
714     target = ::google::protobuf::internal::WireFormatLite::
715       WriteStringToArray(3, this->oneofs(i), target);
716   }
717 
718   // repeated .google.protobuf.Option options = 4;
719   for (unsigned int i = 0,
720       n = static_cast<unsigned int>(this->options_size()); i < n; i++) {
721     target = ::google::protobuf::internal::WireFormatLite::
722       InternalWriteMessageNoVirtualToArray(
723         4, this->options(static_cast<int>(i)), deterministic, target);
724   }
725 
726   // .google.protobuf.SourceContext source_context = 5;
727   if (this->has_source_context()) {
728     target = ::google::protobuf::internal::WireFormatLite::
729       InternalWriteMessageNoVirtualToArray(
730         5, *this->source_context_, deterministic, target);
731   }
732 
733   // .google.protobuf.Syntax syntax = 6;
734   if (this->syntax() != 0) {
735     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
736       6, this->syntax(), target);
737   }
738 
739   if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
740     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
741         (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), target);
742   }
743   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Type)
744   return target;
745 }
746 
ByteSizeLong() const747 size_t Type::ByteSizeLong() const {
748 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Type)
749   size_t total_size = 0;
750 
751   if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
752     total_size +=
753       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
754         (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()));
755   }
756   // repeated .google.protobuf.Field fields = 2;
757   {
758     unsigned int count = static_cast<unsigned int>(this->fields_size());
759     total_size += 1UL * count;
760     for (unsigned int i = 0; i < count; i++) {
761       total_size +=
762         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
763           this->fields(static_cast<int>(i)));
764     }
765   }
766 
767   // repeated string oneofs = 3;
768   total_size += 1 *
769       ::google::protobuf::internal::FromIntSize(this->oneofs_size());
770   for (int i = 0, n = this->oneofs_size(); i < n; i++) {
771     total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
772       this->oneofs(i));
773   }
774 
775   // repeated .google.protobuf.Option options = 4;
776   {
777     unsigned int count = static_cast<unsigned int>(this->options_size());
778     total_size += 1UL * count;
779     for (unsigned int i = 0; i < count; i++) {
780       total_size +=
781         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
782           this->options(static_cast<int>(i)));
783     }
784   }
785 
786   // string name = 1;
787   if (this->name().size() > 0) {
788     total_size += 1 +
789       ::google::protobuf::internal::WireFormatLite::StringSize(
790         this->name());
791   }
792 
793   // .google.protobuf.SourceContext source_context = 5;
794   if (this->has_source_context()) {
795     total_size += 1 +
796       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
797         *this->source_context_);
798   }
799 
800   // .google.protobuf.Syntax syntax = 6;
801   if (this->syntax() != 0) {
802     total_size += 1 +
803       ::google::protobuf::internal::WireFormatLite::EnumSize(this->syntax());
804   }
805 
806   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
807   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
808   _cached_size_ = cached_size;
809   GOOGLE_SAFE_CONCURRENT_WRITES_END();
810   return total_size;
811 }
812 
MergeFrom(const::google::protobuf::Message & from)813 void Type::MergeFrom(const ::google::protobuf::Message& from) {
814 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Type)
815   GOOGLE_DCHECK_NE(&from, this);
816   const Type* source =
817       ::google::protobuf::internal::DynamicCastToGenerated<const Type>(
818           &from);
819   if (source == NULL) {
820   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Type)
821     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
822   } else {
823   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Type)
824     MergeFrom(*source);
825   }
826 }
827 
MergeFrom(const Type & from)828 void Type::MergeFrom(const Type& from) {
829 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Type)
830   GOOGLE_DCHECK_NE(&from, this);
831   _internal_metadata_.MergeFrom(from._internal_metadata_);
832   ::google::protobuf::uint32 cached_has_bits = 0;
833   (void) cached_has_bits;
834 
835   fields_.MergeFrom(from.fields_);
836   oneofs_.MergeFrom(from.oneofs_);
837   options_.MergeFrom(from.options_);
838   if (from.name().size() > 0) {
839     set_name(from.name());
840   }
841   if (from.has_source_context()) {
842     mutable_source_context()->::google::protobuf::SourceContext::MergeFrom(from.source_context());
843   }
844   if (from.syntax() != 0) {
845     set_syntax(from.syntax());
846   }
847 }
848 
CopyFrom(const::google::protobuf::Message & from)849 void Type::CopyFrom(const ::google::protobuf::Message& from) {
850 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Type)
851   if (&from == this) return;
852   Clear();
853   MergeFrom(from);
854 }
855 
CopyFrom(const Type & from)856 void Type::CopyFrom(const Type& from) {
857 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Type)
858   if (&from == this) return;
859   Clear();
860   MergeFrom(from);
861 }
862 
IsInitialized() const863 bool Type::IsInitialized() const {
864   return true;
865 }
866 
Swap(Type * other)867 void Type::Swap(Type* other) {
868   if (other == this) return;
869   if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
870     InternalSwap(other);
871   } else {
872     Type* temp = New(GetArenaNoVirtual());
873     temp->MergeFrom(*other);
874     other->CopyFrom(*this);
875     InternalSwap(temp);
876     if (GetArenaNoVirtual() == NULL) {
877       delete temp;
878     }
879   }
880 }
UnsafeArenaSwap(Type * other)881 void Type::UnsafeArenaSwap(Type* other) {
882   if (other == this) return;
883   GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
884   InternalSwap(other);
885 }
InternalSwap(Type * other)886 void Type::InternalSwap(Type* other) {
887   using std::swap;
888   fields_.InternalSwap(&other->fields_);
889   oneofs_.InternalSwap(&other->oneofs_);
890   options_.InternalSwap(&other->options_);
891   name_.Swap(&other->name_);
892   swap(source_context_, other->source_context_);
893   swap(syntax_, other->syntax_);
894   _internal_metadata_.Swap(&other->_internal_metadata_);
895   swap(_cached_size_, other->_cached_size_);
896 }
897 
GetMetadata() const898 ::google::protobuf::Metadata Type::GetMetadata() const {
899   protobuf_google_2fprotobuf_2ftype_2eproto::protobuf_AssignDescriptorsOnce();
900   return protobuf_google_2fprotobuf_2ftype_2eproto::file_level_metadata[kIndexInFileMessages];
901 }
902 
903 #if PROTOBUF_INLINE_NOT_IN_HEADERS
904 // Type
905 
906 // string name = 1;
clear_name()907 void Type::clear_name() {
908   name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
909 }
name() const910 const ::std::string& Type::name() const {
911   // @@protoc_insertion_point(field_get:google.protobuf.Type.name)
912   return name_.Get();
913 }
set_name(const::std::string & value)914 void Type::set_name(const ::std::string& value) {
915 
916   name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
917   // @@protoc_insertion_point(field_set:google.protobuf.Type.name)
918 }
919 #if LANG_CXX11
set_name(::std::string && value)920 void Type::set_name(::std::string&& value) {
921 
922   name_.Set(
923     &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
924   // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Type.name)
925 }
926 #endif
set_name(const char * value)927 void Type::set_name(const char* value) {
928   GOOGLE_DCHECK(value != NULL);
929 
930   name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
931               GetArenaNoVirtual());
932   // @@protoc_insertion_point(field_set_char:google.protobuf.Type.name)
933 }
set_name(const char * value,size_t size)934 void Type::set_name(const char* value,
935     size_t size) {
936 
937   name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
938       reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
939   // @@protoc_insertion_point(field_set_pointer:google.protobuf.Type.name)
940 }
mutable_name()941 ::std::string* Type::mutable_name() {
942 
943   // @@protoc_insertion_point(field_mutable:google.protobuf.Type.name)
944   return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
945 }
release_name()946 ::std::string* Type::release_name() {
947   // @@protoc_insertion_point(field_release:google.protobuf.Type.name)
948 
949   return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
950 }
unsafe_arena_release_name()951 ::std::string* Type::unsafe_arena_release_name() {
952   // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Type.name)
953   GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
954 
955   return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
956       GetArenaNoVirtual());
957 }
set_allocated_name(::std::string * name)958 void Type::set_allocated_name(::std::string* name) {
959   if (name != NULL) {
960 
961   } else {
962 
963   }
964   name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
965       GetArenaNoVirtual());
966   // @@protoc_insertion_point(field_set_allocated:google.protobuf.Type.name)
967 }
unsafe_arena_set_allocated_name(::std::string * name)968 void Type::unsafe_arena_set_allocated_name(
969     ::std::string* name) {
970   GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
971   if (name != NULL) {
972 
973   } else {
974 
975   }
976   name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
977       name, GetArenaNoVirtual());
978   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Type.name)
979 }
980 
981 // repeated .google.protobuf.Field fields = 2;
fields_size() const982 int Type::fields_size() const {
983   return fields_.size();
984 }
clear_fields()985 void Type::clear_fields() {
986   fields_.Clear();
987 }
fields(int index) const988 const ::google::protobuf::Field& Type::fields(int index) const {
989   // @@protoc_insertion_point(field_get:google.protobuf.Type.fields)
990   return fields_.Get(index);
991 }
mutable_fields(int index)992 ::google::protobuf::Field* Type::mutable_fields(int index) {
993   // @@protoc_insertion_point(field_mutable:google.protobuf.Type.fields)
994   return fields_.Mutable(index);
995 }
add_fields()996 ::google::protobuf::Field* Type::add_fields() {
997   // @@protoc_insertion_point(field_add:google.protobuf.Type.fields)
998   return fields_.Add();
999 }
1000 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Field >*
mutable_fields()1001 Type::mutable_fields() {
1002   // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.fields)
1003   return &fields_;
1004 }
1005 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Field >&
fields() const1006 Type::fields() const {
1007   // @@protoc_insertion_point(field_list:google.protobuf.Type.fields)
1008   return fields_;
1009 }
1010 
1011 // repeated string oneofs = 3;
oneofs_size() const1012 int Type::oneofs_size() const {
1013   return oneofs_.size();
1014 }
clear_oneofs()1015 void Type::clear_oneofs() {
1016   oneofs_.Clear();
1017 }
oneofs(int index) const1018 const ::std::string& Type::oneofs(int index) const {
1019   // @@protoc_insertion_point(field_get:google.protobuf.Type.oneofs)
1020   return oneofs_.Get(index);
1021 }
mutable_oneofs(int index)1022 ::std::string* Type::mutable_oneofs(int index) {
1023   // @@protoc_insertion_point(field_mutable:google.protobuf.Type.oneofs)
1024   return oneofs_.Mutable(index);
1025 }
set_oneofs(int index,const::std::string & value)1026 void Type::set_oneofs(int index, const ::std::string& value) {
1027   // @@protoc_insertion_point(field_set:google.protobuf.Type.oneofs)
1028   oneofs_.Mutable(index)->assign(value);
1029 }
1030 #if LANG_CXX11
set_oneofs(int index,::std::string && value)1031 void Type::set_oneofs(int index, ::std::string&& value) {
1032   // @@protoc_insertion_point(field_set:google.protobuf.Type.oneofs)
1033   oneofs_.Mutable(index)->assign(std::move(value));
1034 }
1035 #endif
set_oneofs(int index,const char * value)1036 void Type::set_oneofs(int index, const char* value) {
1037   GOOGLE_DCHECK(value != NULL);
1038   oneofs_.Mutable(index)->assign(value);
1039   // @@protoc_insertion_point(field_set_char:google.protobuf.Type.oneofs)
1040 }
set_oneofs(int index,const char * value,size_t size)1041 void Type::set_oneofs(int index, const char* value, size_t size) {
1042   oneofs_.Mutable(index)->assign(
1043     reinterpret_cast<const char*>(value), size);
1044   // @@protoc_insertion_point(field_set_pointer:google.protobuf.Type.oneofs)
1045 }
add_oneofs()1046 ::std::string* Type::add_oneofs() {
1047   // @@protoc_insertion_point(field_add_mutable:google.protobuf.Type.oneofs)
1048   return oneofs_.Add();
1049 }
add_oneofs(const::std::string & value)1050 void Type::add_oneofs(const ::std::string& value) {
1051   oneofs_.Add()->assign(value);
1052   // @@protoc_insertion_point(field_add:google.protobuf.Type.oneofs)
1053 }
1054 #if LANG_CXX11
add_oneofs(::std::string && value)1055 void Type::add_oneofs(::std::string&& value) {
1056   oneofs_.Add(std::move(value));
1057   // @@protoc_insertion_point(field_add:google.protobuf.Type.oneofs)
1058 }
1059 #endif
add_oneofs(const char * value)1060 void Type::add_oneofs(const char* value) {
1061   GOOGLE_DCHECK(value != NULL);
1062   oneofs_.Add()->assign(value);
1063   // @@protoc_insertion_point(field_add_char:google.protobuf.Type.oneofs)
1064 }
add_oneofs(const char * value,size_t size)1065 void Type::add_oneofs(const char* value, size_t size) {
1066   oneofs_.Add()->assign(reinterpret_cast<const char*>(value), size);
1067   // @@protoc_insertion_point(field_add_pointer:google.protobuf.Type.oneofs)
1068 }
1069 const ::google::protobuf::RepeatedPtrField< ::std::string>&
oneofs() const1070 Type::oneofs() const {
1071   // @@protoc_insertion_point(field_list:google.protobuf.Type.oneofs)
1072   return oneofs_;
1073 }
1074 ::google::protobuf::RepeatedPtrField< ::std::string>*
mutable_oneofs()1075 Type::mutable_oneofs() {
1076   // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.oneofs)
1077   return &oneofs_;
1078 }
1079 
1080 // repeated .google.protobuf.Option options = 4;
options_size() const1081 int Type::options_size() const {
1082   return options_.size();
1083 }
clear_options()1084 void Type::clear_options() {
1085   options_.Clear();
1086 }
options(int index) const1087 const ::google::protobuf::Option& Type::options(int index) const {
1088   // @@protoc_insertion_point(field_get:google.protobuf.Type.options)
1089   return options_.Get(index);
1090 }
mutable_options(int index)1091 ::google::protobuf::Option* Type::mutable_options(int index) {
1092   // @@protoc_insertion_point(field_mutable:google.protobuf.Type.options)
1093   return options_.Mutable(index);
1094 }
add_options()1095 ::google::protobuf::Option* Type::add_options() {
1096   // @@protoc_insertion_point(field_add:google.protobuf.Type.options)
1097   return options_.Add();
1098 }
1099 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
mutable_options()1100 Type::mutable_options() {
1101   // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.options)
1102   return &options_;
1103 }
1104 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
options() const1105 Type::options() const {
1106   // @@protoc_insertion_point(field_list:google.protobuf.Type.options)
1107   return options_;
1108 }
1109 
1110 // .google.protobuf.SourceContext source_context = 5;
has_source_context() const1111 bool Type::has_source_context() const {
1112   return this != internal_default_instance() && source_context_ != NULL;
1113 }
clear_source_context()1114 void Type::clear_source_context() {
1115   if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_context_;
1116   source_context_ = NULL;
1117 }
source_context() const1118 const ::google::protobuf::SourceContext& Type::source_context() const {
1119   const ::google::protobuf::SourceContext* p = source_context_;
1120   // @@protoc_insertion_point(field_get:google.protobuf.Type.source_context)
1121   return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::SourceContext*>(
1122       &::google::protobuf::_SourceContext_default_instance_);
1123 }
mutable_source_context()1124 ::google::protobuf::SourceContext* Type::mutable_source_context() {
1125 
1126   if (source_context_ == NULL) {
1127     _slow_mutable_source_context();
1128   }
1129   // @@protoc_insertion_point(field_mutable:google.protobuf.Type.source_context)
1130   return source_context_;
1131 }
release_source_context()1132 ::google::protobuf::SourceContext* Type::release_source_context() {
1133   // @@protoc_insertion_point(field_release:google.protobuf.Type.source_context)
1134 
1135   if (GetArenaNoVirtual() != NULL) {
1136     return _slow_release_source_context();
1137   } else {
1138     ::google::protobuf::SourceContext* temp = source_context_;
1139     source_context_ = NULL;
1140     return temp;
1141   }
1142 }
set_allocated_source_context(::google::protobuf::SourceContext * source_context)1143  void Type::set_allocated_source_context(::google::protobuf::SourceContext* source_context) {
1144   ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1145   if (message_arena == NULL) {
1146     delete source_context_;
1147   }
1148   if (source_context != NULL) {
1149     if (message_arena != NULL) {
1150       message_arena->Own(source_context);
1151     }
1152   }
1153   source_context_ = source_context;
1154   if (source_context) {
1155 
1156   } else {
1157 
1158   }
1159   // @@protoc_insertion_point(field_set_allocated:google.protobuf.Type.source_context)
1160 }
1161 
1162 // .google.protobuf.Syntax syntax = 6;
clear_syntax()1163 void Type::clear_syntax() {
1164   syntax_ = 0;
1165 }
syntax() const1166 ::google::protobuf::Syntax Type::syntax() const {
1167   // @@protoc_insertion_point(field_get:google.protobuf.Type.syntax)
1168   return static_cast< ::google::protobuf::Syntax >(syntax_);
1169 }
set_syntax(::google::protobuf::Syntax value)1170 void Type::set_syntax(::google::protobuf::Syntax value) {
1171 
1172   syntax_ = value;
1173   // @@protoc_insertion_point(field_set:google.protobuf.Type.syntax)
1174 }
1175 
1176 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
1177 
1178 // ===================================================================
1179 
1180 #if !defined(_MSC_VER) || _MSC_VER >= 1900
1181 const int Field::kKindFieldNumber;
1182 const int Field::kCardinalityFieldNumber;
1183 const int Field::kNumberFieldNumber;
1184 const int Field::kNameFieldNumber;
1185 const int Field::kTypeUrlFieldNumber;
1186 const int Field::kOneofIndexFieldNumber;
1187 const int Field::kPackedFieldNumber;
1188 const int Field::kOptionsFieldNumber;
1189 const int Field::kJsonNameFieldNumber;
1190 const int Field::kDefaultValueFieldNumber;
1191 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1192 
Field()1193 Field::Field()
1194   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1195   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1196     protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaults();
1197   }
1198   SharedCtor();
1199   // @@protoc_insertion_point(constructor:google.protobuf.Field)
1200 }
Field(::google::protobuf::Arena * arena)1201 Field::Field(::google::protobuf::Arena* arena)
1202   : ::google::protobuf::Message(),
1203   _internal_metadata_(arena),
1204   options_(arena) {
1205   protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaults();
1206   SharedCtor();
1207   RegisterArenaDtor(arena);
1208   // @@protoc_insertion_point(arena_constructor:google.protobuf.Field)
1209 }
Field(const Field & from)1210 Field::Field(const Field& from)
1211   : ::google::protobuf::Message(),
1212       _internal_metadata_(NULL),
1213       options_(from.options_),
1214       _cached_size_(0) {
1215   _internal_metadata_.MergeFrom(from._internal_metadata_);
1216   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1217   if (from.name().size() > 0) {
1218     name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(),
1219       GetArenaNoVirtual());
1220   }
1221   type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1222   if (from.type_url().size() > 0) {
1223     type_url_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_url(),
1224       GetArenaNoVirtual());
1225   }
1226   json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1227   if (from.json_name().size() > 0) {
1228     json_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.json_name(),
1229       GetArenaNoVirtual());
1230   }
1231   default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1232   if (from.default_value().size() > 0) {
1233     default_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.default_value(),
1234       GetArenaNoVirtual());
1235   }
1236   ::memcpy(&kind_, &from.kind_,
1237     static_cast<size_t>(reinterpret_cast<char*>(&packed_) -
1238     reinterpret_cast<char*>(&kind_)) + sizeof(packed_));
1239   // @@protoc_insertion_point(copy_constructor:google.protobuf.Field)
1240 }
1241 
SharedCtor()1242 void Field::SharedCtor() {
1243   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1244   type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1245   json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1246   default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1247   ::memset(&kind_, 0, static_cast<size_t>(
1248       reinterpret_cast<char*>(&packed_) -
1249       reinterpret_cast<char*>(&kind_)) + sizeof(packed_));
1250   _cached_size_ = 0;
1251 }
1252 
~Field()1253 Field::~Field() {
1254   // @@protoc_insertion_point(destructor:google.protobuf.Field)
1255   SharedDtor();
1256 }
1257 
SharedDtor()1258 void Field::SharedDtor() {
1259   ::google::protobuf::Arena* arena = GetArenaNoVirtual();
1260   GOOGLE_DCHECK(arena == NULL);
1261   if (arena != NULL) {
1262     return;
1263   }
1264 
1265   name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena);
1266   type_url_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena);
1267   json_name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena);
1268   default_value_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena);
1269 }
1270 
ArenaDtor(void * object)1271 void Field::ArenaDtor(void* object) {
1272   Field* _this = reinterpret_cast< Field* >(object);
1273   (void)_this;
1274 }
RegisterArenaDtor(::google::protobuf::Arena * arena)1275 void Field::RegisterArenaDtor(::google::protobuf::Arena* arena) {
1276 }
SetCachedSize(int size) const1277 void Field::SetCachedSize(int size) const {
1278   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1279   _cached_size_ = size;
1280   GOOGLE_SAFE_CONCURRENT_WRITES_END();
1281 }
descriptor()1282 const ::google::protobuf::Descriptor* Field::descriptor() {
1283   protobuf_google_2fprotobuf_2ftype_2eproto::protobuf_AssignDescriptorsOnce();
1284   return protobuf_google_2fprotobuf_2ftype_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1285 }
1286 
default_instance()1287 const Field& Field::default_instance() {
1288   protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaults();
1289   return *internal_default_instance();
1290 }
1291 
New(::google::protobuf::Arena * arena) const1292 Field* Field::New(::google::protobuf::Arena* arena) const {
1293   return ::google::protobuf::Arena::CreateMessage<Field>(arena);
1294 }
1295 
Clear()1296 void Field::Clear() {
1297 // @@protoc_insertion_point(message_clear_start:google.protobuf.Field)
1298   ::google::protobuf::uint32 cached_has_bits = 0;
1299   // Prevent compiler warnings about cached_has_bits being unused
1300   (void) cached_has_bits;
1301 
1302   options_.Clear();
1303   name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1304   type_url_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1305   json_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1306   default_value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1307   ::memset(&kind_, 0, static_cast<size_t>(
1308       reinterpret_cast<char*>(&packed_) -
1309       reinterpret_cast<char*>(&kind_)) + sizeof(packed_));
1310   _internal_metadata_.Clear();
1311 }
1312 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)1313 bool Field::MergePartialFromCodedStream(
1314     ::google::protobuf::io::CodedInputStream* input) {
1315 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1316   ::google::protobuf::uint32 tag;
1317   // @@protoc_insertion_point(parse_start:google.protobuf.Field)
1318   for (;;) {
1319     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1320     tag = p.first;
1321     if (!p.second) goto handle_unusual;
1322     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1323       // .google.protobuf.Field.Kind kind = 1;
1324       case 1: {
1325         if (static_cast< ::google::protobuf::uint8>(tag) ==
1326             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
1327           int value;
1328           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1329                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1330                  input, &value)));
1331           set_kind(static_cast< ::google::protobuf::Field_Kind >(value));
1332         } else {
1333           goto handle_unusual;
1334         }
1335         break;
1336       }
1337 
1338       // .google.protobuf.Field.Cardinality cardinality = 2;
1339       case 2: {
1340         if (static_cast< ::google::protobuf::uint8>(tag) ==
1341             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
1342           int value;
1343           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1344                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1345                  input, &value)));
1346           set_cardinality(static_cast< ::google::protobuf::Field_Cardinality >(value));
1347         } else {
1348           goto handle_unusual;
1349         }
1350         break;
1351       }
1352 
1353       // int32 number = 3;
1354       case 3: {
1355         if (static_cast< ::google::protobuf::uint8>(tag) ==
1356             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
1357 
1358           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1359                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1360                  input, &number_)));
1361         } else {
1362           goto handle_unusual;
1363         }
1364         break;
1365       }
1366 
1367       // string name = 4;
1368       case 4: {
1369         if (static_cast< ::google::protobuf::uint8>(tag) ==
1370             static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
1371           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1372                 input, this->mutable_name()));
1373           DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1374             this->name().data(), static_cast<int>(this->name().length()),
1375             ::google::protobuf::internal::WireFormatLite::PARSE,
1376             "google.protobuf.Field.name"));
1377         } else {
1378           goto handle_unusual;
1379         }
1380         break;
1381       }
1382 
1383       // string type_url = 6;
1384       case 6: {
1385         if (static_cast< ::google::protobuf::uint8>(tag) ==
1386             static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
1387           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1388                 input, this->mutable_type_url()));
1389           DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1390             this->type_url().data(), static_cast<int>(this->type_url().length()),
1391             ::google::protobuf::internal::WireFormatLite::PARSE,
1392             "google.protobuf.Field.type_url"));
1393         } else {
1394           goto handle_unusual;
1395         }
1396         break;
1397       }
1398 
1399       // int32 oneof_index = 7;
1400       case 7: {
1401         if (static_cast< ::google::protobuf::uint8>(tag) ==
1402             static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
1403 
1404           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1405                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1406                  input, &oneof_index_)));
1407         } else {
1408           goto handle_unusual;
1409         }
1410         break;
1411       }
1412 
1413       // bool packed = 8;
1414       case 8: {
1415         if (static_cast< ::google::protobuf::uint8>(tag) ==
1416             static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
1417 
1418           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1419                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1420                  input, &packed_)));
1421         } else {
1422           goto handle_unusual;
1423         }
1424         break;
1425       }
1426 
1427       // repeated .google.protobuf.Option options = 9;
1428       case 9: {
1429         if (static_cast< ::google::protobuf::uint8>(tag) ==
1430             static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
1431           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1432                 input, add_options()));
1433         } else {
1434           goto handle_unusual;
1435         }
1436         break;
1437       }
1438 
1439       // string json_name = 10;
1440       case 10: {
1441         if (static_cast< ::google::protobuf::uint8>(tag) ==
1442             static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
1443           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1444                 input, this->mutable_json_name()));
1445           DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1446             this->json_name().data(), static_cast<int>(this->json_name().length()),
1447             ::google::protobuf::internal::WireFormatLite::PARSE,
1448             "google.protobuf.Field.json_name"));
1449         } else {
1450           goto handle_unusual;
1451         }
1452         break;
1453       }
1454 
1455       // string default_value = 11;
1456       case 11: {
1457         if (static_cast< ::google::protobuf::uint8>(tag) ==
1458             static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
1459           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1460                 input, this->mutable_default_value()));
1461           DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1462             this->default_value().data(), static_cast<int>(this->default_value().length()),
1463             ::google::protobuf::internal::WireFormatLite::PARSE,
1464             "google.protobuf.Field.default_value"));
1465         } else {
1466           goto handle_unusual;
1467         }
1468         break;
1469       }
1470 
1471       default: {
1472       handle_unusual:
1473         if (tag == 0) {
1474           goto success;
1475         }
1476         DO_(::google::protobuf::internal::WireFormat::SkipField(
1477               input, tag, _internal_metadata_.mutable_unknown_fields()));
1478         break;
1479       }
1480     }
1481   }
1482 success:
1483   // @@protoc_insertion_point(parse_success:google.protobuf.Field)
1484   return true;
1485 failure:
1486   // @@protoc_insertion_point(parse_failure:google.protobuf.Field)
1487   return false;
1488 #undef DO_
1489 }
1490 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const1491 void Field::SerializeWithCachedSizes(
1492     ::google::protobuf::io::CodedOutputStream* output) const {
1493   // @@protoc_insertion_point(serialize_start:google.protobuf.Field)
1494   ::google::protobuf::uint32 cached_has_bits = 0;
1495   (void) cached_has_bits;
1496 
1497   // .google.protobuf.Field.Kind kind = 1;
1498   if (this->kind() != 0) {
1499     ::google::protobuf::internal::WireFormatLite::WriteEnum(
1500       1, this->kind(), output);
1501   }
1502 
1503   // .google.protobuf.Field.Cardinality cardinality = 2;
1504   if (this->cardinality() != 0) {
1505     ::google::protobuf::internal::WireFormatLite::WriteEnum(
1506       2, this->cardinality(), output);
1507   }
1508 
1509   // int32 number = 3;
1510   if (this->number() != 0) {
1511     ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->number(), output);
1512   }
1513 
1514   // string name = 4;
1515   if (this->name().size() > 0) {
1516     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1517       this->name().data(), static_cast<int>(this->name().length()),
1518       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1519       "google.protobuf.Field.name");
1520     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1521       4, this->name(), output);
1522   }
1523 
1524   // string type_url = 6;
1525   if (this->type_url().size() > 0) {
1526     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1527       this->type_url().data(), static_cast<int>(this->type_url().length()),
1528       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1529       "google.protobuf.Field.type_url");
1530     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1531       6, this->type_url(), output);
1532   }
1533 
1534   // int32 oneof_index = 7;
1535   if (this->oneof_index() != 0) {
1536     ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->oneof_index(), output);
1537   }
1538 
1539   // bool packed = 8;
1540   if (this->packed() != 0) {
1541     ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->packed(), output);
1542   }
1543 
1544   // repeated .google.protobuf.Option options = 9;
1545   for (unsigned int i = 0,
1546       n = static_cast<unsigned int>(this->options_size()); i < n; i++) {
1547     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1548       9, this->options(static_cast<int>(i)), output);
1549   }
1550 
1551   // string json_name = 10;
1552   if (this->json_name().size() > 0) {
1553     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1554       this->json_name().data(), static_cast<int>(this->json_name().length()),
1555       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1556       "google.protobuf.Field.json_name");
1557     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1558       10, this->json_name(), output);
1559   }
1560 
1561   // string default_value = 11;
1562   if (this->default_value().size() > 0) {
1563     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1564       this->default_value().data(), static_cast<int>(this->default_value().length()),
1565       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1566       "google.protobuf.Field.default_value");
1567     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1568       11, this->default_value(), output);
1569   }
1570 
1571   if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1572     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1573         (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), output);
1574   }
1575   // @@protoc_insertion_point(serialize_end:google.protobuf.Field)
1576 }
1577 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const1578 ::google::protobuf::uint8* Field::InternalSerializeWithCachedSizesToArray(
1579     bool deterministic, ::google::protobuf::uint8* target) const {
1580   (void)deterministic; // Unused
1581   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Field)
1582   ::google::protobuf::uint32 cached_has_bits = 0;
1583   (void) cached_has_bits;
1584 
1585   // .google.protobuf.Field.Kind kind = 1;
1586   if (this->kind() != 0) {
1587     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1588       1, this->kind(), target);
1589   }
1590 
1591   // .google.protobuf.Field.Cardinality cardinality = 2;
1592   if (this->cardinality() != 0) {
1593     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1594       2, this->cardinality(), target);
1595   }
1596 
1597   // int32 number = 3;
1598   if (this->number() != 0) {
1599     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->number(), target);
1600   }
1601 
1602   // string name = 4;
1603   if (this->name().size() > 0) {
1604     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1605       this->name().data(), static_cast<int>(this->name().length()),
1606       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1607       "google.protobuf.Field.name");
1608     target =
1609       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1610         4, this->name(), target);
1611   }
1612 
1613   // string type_url = 6;
1614   if (this->type_url().size() > 0) {
1615     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1616       this->type_url().data(), static_cast<int>(this->type_url().length()),
1617       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1618       "google.protobuf.Field.type_url");
1619     target =
1620       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1621         6, this->type_url(), target);
1622   }
1623 
1624   // int32 oneof_index = 7;
1625   if (this->oneof_index() != 0) {
1626     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->oneof_index(), target);
1627   }
1628 
1629   // bool packed = 8;
1630   if (this->packed() != 0) {
1631     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->packed(), target);
1632   }
1633 
1634   // repeated .google.protobuf.Option options = 9;
1635   for (unsigned int i = 0,
1636       n = static_cast<unsigned int>(this->options_size()); i < n; i++) {
1637     target = ::google::protobuf::internal::WireFormatLite::
1638       InternalWriteMessageNoVirtualToArray(
1639         9, this->options(static_cast<int>(i)), deterministic, target);
1640   }
1641 
1642   // string json_name = 10;
1643   if (this->json_name().size() > 0) {
1644     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1645       this->json_name().data(), static_cast<int>(this->json_name().length()),
1646       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1647       "google.protobuf.Field.json_name");
1648     target =
1649       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1650         10, this->json_name(), target);
1651   }
1652 
1653   // string default_value = 11;
1654   if (this->default_value().size() > 0) {
1655     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1656       this->default_value().data(), static_cast<int>(this->default_value().length()),
1657       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1658       "google.protobuf.Field.default_value");
1659     target =
1660       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1661         11, this->default_value(), target);
1662   }
1663 
1664   if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1665     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1666         (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), target);
1667   }
1668   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Field)
1669   return target;
1670 }
1671 
ByteSizeLong() const1672 size_t Field::ByteSizeLong() const {
1673 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Field)
1674   size_t total_size = 0;
1675 
1676   if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1677     total_size +=
1678       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1679         (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()));
1680   }
1681   // repeated .google.protobuf.Option options = 9;
1682   {
1683     unsigned int count = static_cast<unsigned int>(this->options_size());
1684     total_size += 1UL * count;
1685     for (unsigned int i = 0; i < count; i++) {
1686       total_size +=
1687         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1688           this->options(static_cast<int>(i)));
1689     }
1690   }
1691 
1692   // string name = 4;
1693   if (this->name().size() > 0) {
1694     total_size += 1 +
1695       ::google::protobuf::internal::WireFormatLite::StringSize(
1696         this->name());
1697   }
1698 
1699   // string type_url = 6;
1700   if (this->type_url().size() > 0) {
1701     total_size += 1 +
1702       ::google::protobuf::internal::WireFormatLite::StringSize(
1703         this->type_url());
1704   }
1705 
1706   // string json_name = 10;
1707   if (this->json_name().size() > 0) {
1708     total_size += 1 +
1709       ::google::protobuf::internal::WireFormatLite::StringSize(
1710         this->json_name());
1711   }
1712 
1713   // string default_value = 11;
1714   if (this->default_value().size() > 0) {
1715     total_size += 1 +
1716       ::google::protobuf::internal::WireFormatLite::StringSize(
1717         this->default_value());
1718   }
1719 
1720   // .google.protobuf.Field.Kind kind = 1;
1721   if (this->kind() != 0) {
1722     total_size += 1 +
1723       ::google::protobuf::internal::WireFormatLite::EnumSize(this->kind());
1724   }
1725 
1726   // .google.protobuf.Field.Cardinality cardinality = 2;
1727   if (this->cardinality() != 0) {
1728     total_size += 1 +
1729       ::google::protobuf::internal::WireFormatLite::EnumSize(this->cardinality());
1730   }
1731 
1732   // int32 number = 3;
1733   if (this->number() != 0) {
1734     total_size += 1 +
1735       ::google::protobuf::internal::WireFormatLite::Int32Size(
1736         this->number());
1737   }
1738 
1739   // int32 oneof_index = 7;
1740   if (this->oneof_index() != 0) {
1741     total_size += 1 +
1742       ::google::protobuf::internal::WireFormatLite::Int32Size(
1743         this->oneof_index());
1744   }
1745 
1746   // bool packed = 8;
1747   if (this->packed() != 0) {
1748     total_size += 1 + 1;
1749   }
1750 
1751   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1752   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1753   _cached_size_ = cached_size;
1754   GOOGLE_SAFE_CONCURRENT_WRITES_END();
1755   return total_size;
1756 }
1757 
MergeFrom(const::google::protobuf::Message & from)1758 void Field::MergeFrom(const ::google::protobuf::Message& from) {
1759 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Field)
1760   GOOGLE_DCHECK_NE(&from, this);
1761   const Field* source =
1762       ::google::protobuf::internal::DynamicCastToGenerated<const Field>(
1763           &from);
1764   if (source == NULL) {
1765   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Field)
1766     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1767   } else {
1768   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Field)
1769     MergeFrom(*source);
1770   }
1771 }
1772 
MergeFrom(const Field & from)1773 void Field::MergeFrom(const Field& from) {
1774 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Field)
1775   GOOGLE_DCHECK_NE(&from, this);
1776   _internal_metadata_.MergeFrom(from._internal_metadata_);
1777   ::google::protobuf::uint32 cached_has_bits = 0;
1778   (void) cached_has_bits;
1779 
1780   options_.MergeFrom(from.options_);
1781   if (from.name().size() > 0) {
1782     set_name(from.name());
1783   }
1784   if (from.type_url().size() > 0) {
1785     set_type_url(from.type_url());
1786   }
1787   if (from.json_name().size() > 0) {
1788     set_json_name(from.json_name());
1789   }
1790   if (from.default_value().size() > 0) {
1791     set_default_value(from.default_value());
1792   }
1793   if (from.kind() != 0) {
1794     set_kind(from.kind());
1795   }
1796   if (from.cardinality() != 0) {
1797     set_cardinality(from.cardinality());
1798   }
1799   if (from.number() != 0) {
1800     set_number(from.number());
1801   }
1802   if (from.oneof_index() != 0) {
1803     set_oneof_index(from.oneof_index());
1804   }
1805   if (from.packed() != 0) {
1806     set_packed(from.packed());
1807   }
1808 }
1809 
CopyFrom(const::google::protobuf::Message & from)1810 void Field::CopyFrom(const ::google::protobuf::Message& from) {
1811 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Field)
1812   if (&from == this) return;
1813   Clear();
1814   MergeFrom(from);
1815 }
1816 
CopyFrom(const Field & from)1817 void Field::CopyFrom(const Field& from) {
1818 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Field)
1819   if (&from == this) return;
1820   Clear();
1821   MergeFrom(from);
1822 }
1823 
IsInitialized() const1824 bool Field::IsInitialized() const {
1825   return true;
1826 }
1827 
Swap(Field * other)1828 void Field::Swap(Field* other) {
1829   if (other == this) return;
1830   if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
1831     InternalSwap(other);
1832   } else {
1833     Field* temp = New(GetArenaNoVirtual());
1834     temp->MergeFrom(*other);
1835     other->CopyFrom(*this);
1836     InternalSwap(temp);
1837     if (GetArenaNoVirtual() == NULL) {
1838       delete temp;
1839     }
1840   }
1841 }
UnsafeArenaSwap(Field * other)1842 void Field::UnsafeArenaSwap(Field* other) {
1843   if (other == this) return;
1844   GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
1845   InternalSwap(other);
1846 }
InternalSwap(Field * other)1847 void Field::InternalSwap(Field* other) {
1848   using std::swap;
1849   options_.InternalSwap(&other->options_);
1850   name_.Swap(&other->name_);
1851   type_url_.Swap(&other->type_url_);
1852   json_name_.Swap(&other->json_name_);
1853   default_value_.Swap(&other->default_value_);
1854   swap(kind_, other->kind_);
1855   swap(cardinality_, other->cardinality_);
1856   swap(number_, other->number_);
1857   swap(oneof_index_, other->oneof_index_);
1858   swap(packed_, other->packed_);
1859   _internal_metadata_.Swap(&other->_internal_metadata_);
1860   swap(_cached_size_, other->_cached_size_);
1861 }
1862 
GetMetadata() const1863 ::google::protobuf::Metadata Field::GetMetadata() const {
1864   protobuf_google_2fprotobuf_2ftype_2eproto::protobuf_AssignDescriptorsOnce();
1865   return protobuf_google_2fprotobuf_2ftype_2eproto::file_level_metadata[kIndexInFileMessages];
1866 }
1867 
1868 #if PROTOBUF_INLINE_NOT_IN_HEADERS
1869 // Field
1870 
1871 // .google.protobuf.Field.Kind kind = 1;
clear_kind()1872 void Field::clear_kind() {
1873   kind_ = 0;
1874 }
kind() const1875 ::google::protobuf::Field_Kind Field::kind() const {
1876   // @@protoc_insertion_point(field_get:google.protobuf.Field.kind)
1877   return static_cast< ::google::protobuf::Field_Kind >(kind_);
1878 }
set_kind(::google::protobuf::Field_Kind value)1879 void Field::set_kind(::google::protobuf::Field_Kind value) {
1880 
1881   kind_ = value;
1882   // @@protoc_insertion_point(field_set:google.protobuf.Field.kind)
1883 }
1884 
1885 // .google.protobuf.Field.Cardinality cardinality = 2;
clear_cardinality()1886 void Field::clear_cardinality() {
1887   cardinality_ = 0;
1888 }
cardinality() const1889 ::google::protobuf::Field_Cardinality Field::cardinality() const {
1890   // @@protoc_insertion_point(field_get:google.protobuf.Field.cardinality)
1891   return static_cast< ::google::protobuf::Field_Cardinality >(cardinality_);
1892 }
set_cardinality(::google::protobuf::Field_Cardinality value)1893 void Field::set_cardinality(::google::protobuf::Field_Cardinality value) {
1894 
1895   cardinality_ = value;
1896   // @@protoc_insertion_point(field_set:google.protobuf.Field.cardinality)
1897 }
1898 
1899 // int32 number = 3;
clear_number()1900 void Field::clear_number() {
1901   number_ = 0;
1902 }
number() const1903 ::google::protobuf::int32 Field::number() const {
1904   // @@protoc_insertion_point(field_get:google.protobuf.Field.number)
1905   return number_;
1906 }
set_number(::google::protobuf::int32 value)1907 void Field::set_number(::google::protobuf::int32 value) {
1908 
1909   number_ = value;
1910   // @@protoc_insertion_point(field_set:google.protobuf.Field.number)
1911 }
1912 
1913 // string name = 4;
clear_name()1914 void Field::clear_name() {
1915   name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1916 }
name() const1917 const ::std::string& Field::name() const {
1918   // @@protoc_insertion_point(field_get:google.protobuf.Field.name)
1919   return name_.Get();
1920 }
set_name(const::std::string & value)1921 void Field::set_name(const ::std::string& value) {
1922 
1923   name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1924   // @@protoc_insertion_point(field_set:google.protobuf.Field.name)
1925 }
1926 #if LANG_CXX11
set_name(::std::string && value)1927 void Field::set_name(::std::string&& value) {
1928 
1929   name_.Set(
1930     &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
1931   // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Field.name)
1932 }
1933 #endif
set_name(const char * value)1934 void Field::set_name(const char* value) {
1935   GOOGLE_DCHECK(value != NULL);
1936 
1937   name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1938               GetArenaNoVirtual());
1939   // @@protoc_insertion_point(field_set_char:google.protobuf.Field.name)
1940 }
set_name(const char * value,size_t size)1941 void Field::set_name(const char* value,
1942     size_t size) {
1943 
1944   name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
1945       reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1946   // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.name)
1947 }
mutable_name()1948 ::std::string* Field::mutable_name() {
1949 
1950   // @@protoc_insertion_point(field_mutable:google.protobuf.Field.name)
1951   return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1952 }
release_name()1953 ::std::string* Field::release_name() {
1954   // @@protoc_insertion_point(field_release:google.protobuf.Field.name)
1955 
1956   return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1957 }
unsafe_arena_release_name()1958 ::std::string* Field::unsafe_arena_release_name() {
1959   // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Field.name)
1960   GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1961 
1962   return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1963       GetArenaNoVirtual());
1964 }
set_allocated_name(::std::string * name)1965 void Field::set_allocated_name(::std::string* name) {
1966   if (name != NULL) {
1967 
1968   } else {
1969 
1970   }
1971   name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
1972       GetArenaNoVirtual());
1973   // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.name)
1974 }
unsafe_arena_set_allocated_name(::std::string * name)1975 void Field::unsafe_arena_set_allocated_name(
1976     ::std::string* name) {
1977   GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1978   if (name != NULL) {
1979 
1980   } else {
1981 
1982   }
1983   name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1984       name, GetArenaNoVirtual());
1985   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Field.name)
1986 }
1987 
1988 // string type_url = 6;
clear_type_url()1989 void Field::clear_type_url() {
1990   type_url_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1991 }
type_url() const1992 const ::std::string& Field::type_url() const {
1993   // @@protoc_insertion_point(field_get:google.protobuf.Field.type_url)
1994   return type_url_.Get();
1995 }
set_type_url(const::std::string & value)1996 void Field::set_type_url(const ::std::string& value) {
1997 
1998   type_url_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1999   // @@protoc_insertion_point(field_set:google.protobuf.Field.type_url)
2000 }
2001 #if LANG_CXX11
set_type_url(::std::string && value)2002 void Field::set_type_url(::std::string&& value) {
2003 
2004   type_url_.Set(
2005     &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
2006   // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Field.type_url)
2007 }
2008 #endif
set_type_url(const char * value)2009 void Field::set_type_url(const char* value) {
2010   GOOGLE_DCHECK(value != NULL);
2011 
2012   type_url_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
2013               GetArenaNoVirtual());
2014   // @@protoc_insertion_point(field_set_char:google.protobuf.Field.type_url)
2015 }
set_type_url(const char * value,size_t size)2016 void Field::set_type_url(const char* value,
2017     size_t size) {
2018 
2019   type_url_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
2020       reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
2021   // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.type_url)
2022 }
mutable_type_url()2023 ::std::string* Field::mutable_type_url() {
2024 
2025   // @@protoc_insertion_point(field_mutable:google.protobuf.Field.type_url)
2026   return type_url_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2027 }
release_type_url()2028 ::std::string* Field::release_type_url() {
2029   // @@protoc_insertion_point(field_release:google.protobuf.Field.type_url)
2030 
2031   return type_url_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2032 }
unsafe_arena_release_type_url()2033 ::std::string* Field::unsafe_arena_release_type_url() {
2034   // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Field.type_url)
2035   GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
2036 
2037   return type_url_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2038       GetArenaNoVirtual());
2039 }
set_allocated_type_url(::std::string * type_url)2040 void Field::set_allocated_type_url(::std::string* type_url) {
2041   if (type_url != NULL) {
2042 
2043   } else {
2044 
2045   }
2046   type_url_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_url,
2047       GetArenaNoVirtual());
2048   // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.type_url)
2049 }
unsafe_arena_set_allocated_type_url(::std::string * type_url)2050 void Field::unsafe_arena_set_allocated_type_url(
2051     ::std::string* type_url) {
2052   GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
2053   if (type_url != NULL) {
2054 
2055   } else {
2056 
2057   }
2058   type_url_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2059       type_url, GetArenaNoVirtual());
2060   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Field.type_url)
2061 }
2062 
2063 // int32 oneof_index = 7;
clear_oneof_index()2064 void Field::clear_oneof_index() {
2065   oneof_index_ = 0;
2066 }
oneof_index() const2067 ::google::protobuf::int32 Field::oneof_index() const {
2068   // @@protoc_insertion_point(field_get:google.protobuf.Field.oneof_index)
2069   return oneof_index_;
2070 }
set_oneof_index(::google::protobuf::int32 value)2071 void Field::set_oneof_index(::google::protobuf::int32 value) {
2072 
2073   oneof_index_ = value;
2074   // @@protoc_insertion_point(field_set:google.protobuf.Field.oneof_index)
2075 }
2076 
2077 // bool packed = 8;
clear_packed()2078 void Field::clear_packed() {
2079   packed_ = false;
2080 }
packed() const2081 bool Field::packed() const {
2082   // @@protoc_insertion_point(field_get:google.protobuf.Field.packed)
2083   return packed_;
2084 }
set_packed(bool value)2085 void Field::set_packed(bool value) {
2086 
2087   packed_ = value;
2088   // @@protoc_insertion_point(field_set:google.protobuf.Field.packed)
2089 }
2090 
2091 // repeated .google.protobuf.Option options = 9;
options_size() const2092 int Field::options_size() const {
2093   return options_.size();
2094 }
clear_options()2095 void Field::clear_options() {
2096   options_.Clear();
2097 }
options(int index) const2098 const ::google::protobuf::Option& Field::options(int index) const {
2099   // @@protoc_insertion_point(field_get:google.protobuf.Field.options)
2100   return options_.Get(index);
2101 }
mutable_options(int index)2102 ::google::protobuf::Option* Field::mutable_options(int index) {
2103   // @@protoc_insertion_point(field_mutable:google.protobuf.Field.options)
2104   return options_.Mutable(index);
2105 }
add_options()2106 ::google::protobuf::Option* Field::add_options() {
2107   // @@protoc_insertion_point(field_add:google.protobuf.Field.options)
2108   return options_.Add();
2109 }
2110 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
mutable_options()2111 Field::mutable_options() {
2112   // @@protoc_insertion_point(field_mutable_list:google.protobuf.Field.options)
2113   return &options_;
2114 }
2115 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
options() const2116 Field::options() const {
2117   // @@protoc_insertion_point(field_list:google.protobuf.Field.options)
2118   return options_;
2119 }
2120 
2121 // string json_name = 10;
clear_json_name()2122 void Field::clear_json_name() {
2123   json_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2124 }
json_name() const2125 const ::std::string& Field::json_name() const {
2126   // @@protoc_insertion_point(field_get:google.protobuf.Field.json_name)
2127   return json_name_.Get();
2128 }
set_json_name(const::std::string & value)2129 void Field::set_json_name(const ::std::string& value) {
2130 
2131   json_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
2132   // @@protoc_insertion_point(field_set:google.protobuf.Field.json_name)
2133 }
2134 #if LANG_CXX11
set_json_name(::std::string && value)2135 void Field::set_json_name(::std::string&& value) {
2136 
2137   json_name_.Set(
2138     &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
2139   // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Field.json_name)
2140 }
2141 #endif
set_json_name(const char * value)2142 void Field::set_json_name(const char* value) {
2143   GOOGLE_DCHECK(value != NULL);
2144 
2145   json_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
2146               GetArenaNoVirtual());
2147   // @@protoc_insertion_point(field_set_char:google.protobuf.Field.json_name)
2148 }
set_json_name(const char * value,size_t size)2149 void Field::set_json_name(const char* value,
2150     size_t size) {
2151 
2152   json_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
2153       reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
2154   // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.json_name)
2155 }
mutable_json_name()2156 ::std::string* Field::mutable_json_name() {
2157 
2158   // @@protoc_insertion_point(field_mutable:google.protobuf.Field.json_name)
2159   return json_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2160 }
release_json_name()2161 ::std::string* Field::release_json_name() {
2162   // @@protoc_insertion_point(field_release:google.protobuf.Field.json_name)
2163 
2164   return json_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2165 }
unsafe_arena_release_json_name()2166 ::std::string* Field::unsafe_arena_release_json_name() {
2167   // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Field.json_name)
2168   GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
2169 
2170   return json_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2171       GetArenaNoVirtual());
2172 }
set_allocated_json_name(::std::string * json_name)2173 void Field::set_allocated_json_name(::std::string* json_name) {
2174   if (json_name != NULL) {
2175 
2176   } else {
2177 
2178   }
2179   json_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json_name,
2180       GetArenaNoVirtual());
2181   // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.json_name)
2182 }
unsafe_arena_set_allocated_json_name(::std::string * json_name)2183 void Field::unsafe_arena_set_allocated_json_name(
2184     ::std::string* json_name) {
2185   GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
2186   if (json_name != NULL) {
2187 
2188   } else {
2189 
2190   }
2191   json_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2192       json_name, GetArenaNoVirtual());
2193   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Field.json_name)
2194 }
2195 
2196 // string default_value = 11;
clear_default_value()2197 void Field::clear_default_value() {
2198   default_value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2199 }
default_value() const2200 const ::std::string& Field::default_value() const {
2201   // @@protoc_insertion_point(field_get:google.protobuf.Field.default_value)
2202   return default_value_.Get();
2203 }
set_default_value(const::std::string & value)2204 void Field::set_default_value(const ::std::string& value) {
2205 
2206   default_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
2207   // @@protoc_insertion_point(field_set:google.protobuf.Field.default_value)
2208 }
2209 #if LANG_CXX11
set_default_value(::std::string && value)2210 void Field::set_default_value(::std::string&& value) {
2211 
2212   default_value_.Set(
2213     &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
2214   // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Field.default_value)
2215 }
2216 #endif
set_default_value(const char * value)2217 void Field::set_default_value(const char* value) {
2218   GOOGLE_DCHECK(value != NULL);
2219 
2220   default_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
2221               GetArenaNoVirtual());
2222   // @@protoc_insertion_point(field_set_char:google.protobuf.Field.default_value)
2223 }
set_default_value(const char * value,size_t size)2224 void Field::set_default_value(const char* value,
2225     size_t size) {
2226 
2227   default_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
2228       reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
2229   // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.default_value)
2230 }
mutable_default_value()2231 ::std::string* Field::mutable_default_value() {
2232 
2233   // @@protoc_insertion_point(field_mutable:google.protobuf.Field.default_value)
2234   return default_value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2235 }
release_default_value()2236 ::std::string* Field::release_default_value() {
2237   // @@protoc_insertion_point(field_release:google.protobuf.Field.default_value)
2238 
2239   return default_value_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2240 }
unsafe_arena_release_default_value()2241 ::std::string* Field::unsafe_arena_release_default_value() {
2242   // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Field.default_value)
2243   GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
2244 
2245   return default_value_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2246       GetArenaNoVirtual());
2247 }
set_allocated_default_value(::std::string * default_value)2248 void Field::set_allocated_default_value(::std::string* default_value) {
2249   if (default_value != NULL) {
2250 
2251   } else {
2252 
2253   }
2254   default_value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), default_value,
2255       GetArenaNoVirtual());
2256   // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.default_value)
2257 }
unsafe_arena_set_allocated_default_value(::std::string * default_value)2258 void Field::unsafe_arena_set_allocated_default_value(
2259     ::std::string* default_value) {
2260   GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
2261   if (default_value != NULL) {
2262 
2263   } else {
2264 
2265   }
2266   default_value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2267       default_value, GetArenaNoVirtual());
2268   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Field.default_value)
2269 }
2270 
2271 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
2272 
2273 // ===================================================================
2274 
_slow_mutable_source_context()2275 void Enum::_slow_mutable_source_context() {
2276   source_context_ = ::google::protobuf::Arena::Create< ::google::protobuf::SourceContext >(
2277       GetArenaNoVirtual());
2278 }
_slow_release_source_context()2279 ::google::protobuf::SourceContext* Enum::_slow_release_source_context() {
2280   if (source_context_ == NULL) {
2281     return NULL;
2282   } else {
2283     ::google::protobuf::SourceContext* temp = new ::google::protobuf::SourceContext(*source_context_);
2284     source_context_ = NULL;
2285     return temp;
2286   }
2287 }
unsafe_arena_release_source_context()2288 ::google::protobuf::SourceContext* Enum::unsafe_arena_release_source_context() {
2289   // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Enum.source_context)
2290 
2291   ::google::protobuf::SourceContext* temp = source_context_;
2292   source_context_ = NULL;
2293   return temp;
2294 }
unsafe_arena_set_allocated_source_context(::google::protobuf::SourceContext * source_context)2295 void Enum::unsafe_arena_set_allocated_source_context(
2296     ::google::protobuf::SourceContext* source_context) {
2297   if (GetArenaNoVirtual() == NULL) {
2298     delete source_context_;
2299   }
2300   source_context_ = source_context;
2301   if (source_context) {
2302 
2303   } else {
2304 
2305   }
2306   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Enum.source_context)
2307 }
2308 #if !defined(_MSC_VER) || _MSC_VER >= 1900
2309 const int Enum::kNameFieldNumber;
2310 const int Enum::kEnumvalueFieldNumber;
2311 const int Enum::kOptionsFieldNumber;
2312 const int Enum::kSourceContextFieldNumber;
2313 const int Enum::kSyntaxFieldNumber;
2314 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2315 
Enum()2316 Enum::Enum()
2317   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2318   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2319     protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaults();
2320   }
2321   SharedCtor();
2322   // @@protoc_insertion_point(constructor:google.protobuf.Enum)
2323 }
Enum(::google::protobuf::Arena * arena)2324 Enum::Enum(::google::protobuf::Arena* arena)
2325   : ::google::protobuf::Message(),
2326   _internal_metadata_(arena),
2327   enumvalue_(arena),
2328   options_(arena) {
2329   protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaults();
2330   SharedCtor();
2331   RegisterArenaDtor(arena);
2332   // @@protoc_insertion_point(arena_constructor:google.protobuf.Enum)
2333 }
Enum(const Enum & from)2334 Enum::Enum(const Enum& from)
2335   : ::google::protobuf::Message(),
2336       _internal_metadata_(NULL),
2337       enumvalue_(from.enumvalue_),
2338       options_(from.options_),
2339       _cached_size_(0) {
2340   _internal_metadata_.MergeFrom(from._internal_metadata_);
2341   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2342   if (from.name().size() > 0) {
2343     name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(),
2344       GetArenaNoVirtual());
2345   }
2346   if (from.has_source_context()) {
2347     source_context_ = new ::google::protobuf::SourceContext(*from.source_context_);
2348   } else {
2349     source_context_ = NULL;
2350   }
2351   syntax_ = from.syntax_;
2352   // @@protoc_insertion_point(copy_constructor:google.protobuf.Enum)
2353 }
2354 
SharedCtor()2355 void Enum::SharedCtor() {
2356   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2357   ::memset(&source_context_, 0, static_cast<size_t>(
2358       reinterpret_cast<char*>(&syntax_) -
2359       reinterpret_cast<char*>(&source_context_)) + sizeof(syntax_));
2360   _cached_size_ = 0;
2361 }
2362 
~Enum()2363 Enum::~Enum() {
2364   // @@protoc_insertion_point(destructor:google.protobuf.Enum)
2365   SharedDtor();
2366 }
2367 
SharedDtor()2368 void Enum::SharedDtor() {
2369   ::google::protobuf::Arena* arena = GetArenaNoVirtual();
2370   GOOGLE_DCHECK(arena == NULL);
2371   if (arena != NULL) {
2372     return;
2373   }
2374 
2375   name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena);
2376   if (this != internal_default_instance()) delete source_context_;
2377 }
2378 
ArenaDtor(void * object)2379 void Enum::ArenaDtor(void* object) {
2380   Enum* _this = reinterpret_cast< Enum* >(object);
2381   (void)_this;
2382 }
RegisterArenaDtor(::google::protobuf::Arena * arena)2383 void Enum::RegisterArenaDtor(::google::protobuf::Arena* arena) {
2384 }
SetCachedSize(int size) const2385 void Enum::SetCachedSize(int size) const {
2386   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2387   _cached_size_ = size;
2388   GOOGLE_SAFE_CONCURRENT_WRITES_END();
2389 }
descriptor()2390 const ::google::protobuf::Descriptor* Enum::descriptor() {
2391   protobuf_google_2fprotobuf_2ftype_2eproto::protobuf_AssignDescriptorsOnce();
2392   return protobuf_google_2fprotobuf_2ftype_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2393 }
2394 
default_instance()2395 const Enum& Enum::default_instance() {
2396   protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaults();
2397   return *internal_default_instance();
2398 }
2399 
New(::google::protobuf::Arena * arena) const2400 Enum* Enum::New(::google::protobuf::Arena* arena) const {
2401   return ::google::protobuf::Arena::CreateMessage<Enum>(arena);
2402 }
2403 
Clear()2404 void Enum::Clear() {
2405 // @@protoc_insertion_point(message_clear_start:google.protobuf.Enum)
2406   ::google::protobuf::uint32 cached_has_bits = 0;
2407   // Prevent compiler warnings about cached_has_bits being unused
2408   (void) cached_has_bits;
2409 
2410   enumvalue_.Clear();
2411   options_.Clear();
2412   name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2413   if (GetArenaNoVirtual() == NULL && source_context_ != NULL) {
2414     delete source_context_;
2415   }
2416   source_context_ = NULL;
2417   syntax_ = 0;
2418   _internal_metadata_.Clear();
2419 }
2420 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)2421 bool Enum::MergePartialFromCodedStream(
2422     ::google::protobuf::io::CodedInputStream* input) {
2423 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2424   ::google::protobuf::uint32 tag;
2425   // @@protoc_insertion_point(parse_start:google.protobuf.Enum)
2426   for (;;) {
2427     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2428     tag = p.first;
2429     if (!p.second) goto handle_unusual;
2430     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2431       // string name = 1;
2432       case 1: {
2433         if (static_cast< ::google::protobuf::uint8>(tag) ==
2434             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
2435           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2436                 input, this->mutable_name()));
2437           DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2438             this->name().data(), static_cast<int>(this->name().length()),
2439             ::google::protobuf::internal::WireFormatLite::PARSE,
2440             "google.protobuf.Enum.name"));
2441         } else {
2442           goto handle_unusual;
2443         }
2444         break;
2445       }
2446 
2447       // repeated .google.protobuf.EnumValue enumvalue = 2;
2448       case 2: {
2449         if (static_cast< ::google::protobuf::uint8>(tag) ==
2450             static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
2451           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2452                 input, add_enumvalue()));
2453         } else {
2454           goto handle_unusual;
2455         }
2456         break;
2457       }
2458 
2459       // repeated .google.protobuf.Option options = 3;
2460       case 3: {
2461         if (static_cast< ::google::protobuf::uint8>(tag) ==
2462             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
2463           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2464                 input, add_options()));
2465         } else {
2466           goto handle_unusual;
2467         }
2468         break;
2469       }
2470 
2471       // .google.protobuf.SourceContext source_context = 4;
2472       case 4: {
2473         if (static_cast< ::google::protobuf::uint8>(tag) ==
2474             static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
2475           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2476                input, mutable_source_context()));
2477         } else {
2478           goto handle_unusual;
2479         }
2480         break;
2481       }
2482 
2483       // .google.protobuf.Syntax syntax = 5;
2484       case 5: {
2485         if (static_cast< ::google::protobuf::uint8>(tag) ==
2486             static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
2487           int value;
2488           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2489                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2490                  input, &value)));
2491           set_syntax(static_cast< ::google::protobuf::Syntax >(value));
2492         } else {
2493           goto handle_unusual;
2494         }
2495         break;
2496       }
2497 
2498       default: {
2499       handle_unusual:
2500         if (tag == 0) {
2501           goto success;
2502         }
2503         DO_(::google::protobuf::internal::WireFormat::SkipField(
2504               input, tag, _internal_metadata_.mutable_unknown_fields()));
2505         break;
2506       }
2507     }
2508   }
2509 success:
2510   // @@protoc_insertion_point(parse_success:google.protobuf.Enum)
2511   return true;
2512 failure:
2513   // @@protoc_insertion_point(parse_failure:google.protobuf.Enum)
2514   return false;
2515 #undef DO_
2516 }
2517 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const2518 void Enum::SerializeWithCachedSizes(
2519     ::google::protobuf::io::CodedOutputStream* output) const {
2520   // @@protoc_insertion_point(serialize_start:google.protobuf.Enum)
2521   ::google::protobuf::uint32 cached_has_bits = 0;
2522   (void) cached_has_bits;
2523 
2524   // string name = 1;
2525   if (this->name().size() > 0) {
2526     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2527       this->name().data(), static_cast<int>(this->name().length()),
2528       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2529       "google.protobuf.Enum.name");
2530     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2531       1, this->name(), output);
2532   }
2533 
2534   // repeated .google.protobuf.EnumValue enumvalue = 2;
2535   for (unsigned int i = 0,
2536       n = static_cast<unsigned int>(this->enumvalue_size()); i < n; i++) {
2537     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2538       2, this->enumvalue(static_cast<int>(i)), output);
2539   }
2540 
2541   // repeated .google.protobuf.Option options = 3;
2542   for (unsigned int i = 0,
2543       n = static_cast<unsigned int>(this->options_size()); i < n; i++) {
2544     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2545       3, this->options(static_cast<int>(i)), output);
2546   }
2547 
2548   // .google.protobuf.SourceContext source_context = 4;
2549   if (this->has_source_context()) {
2550     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2551       4, *this->source_context_, output);
2552   }
2553 
2554   // .google.protobuf.Syntax syntax = 5;
2555   if (this->syntax() != 0) {
2556     ::google::protobuf::internal::WireFormatLite::WriteEnum(
2557       5, this->syntax(), output);
2558   }
2559 
2560   if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
2561     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2562         (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), output);
2563   }
2564   // @@protoc_insertion_point(serialize_end:google.protobuf.Enum)
2565 }
2566 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const2567 ::google::protobuf::uint8* Enum::InternalSerializeWithCachedSizesToArray(
2568     bool deterministic, ::google::protobuf::uint8* target) const {
2569   (void)deterministic; // Unused
2570   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Enum)
2571   ::google::protobuf::uint32 cached_has_bits = 0;
2572   (void) cached_has_bits;
2573 
2574   // string name = 1;
2575   if (this->name().size() > 0) {
2576     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2577       this->name().data(), static_cast<int>(this->name().length()),
2578       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2579       "google.protobuf.Enum.name");
2580     target =
2581       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2582         1, this->name(), target);
2583   }
2584 
2585   // repeated .google.protobuf.EnumValue enumvalue = 2;
2586   for (unsigned int i = 0,
2587       n = static_cast<unsigned int>(this->enumvalue_size()); i < n; i++) {
2588     target = ::google::protobuf::internal::WireFormatLite::
2589       InternalWriteMessageNoVirtualToArray(
2590         2, this->enumvalue(static_cast<int>(i)), deterministic, target);
2591   }
2592 
2593   // repeated .google.protobuf.Option options = 3;
2594   for (unsigned int i = 0,
2595       n = static_cast<unsigned int>(this->options_size()); i < n; i++) {
2596     target = ::google::protobuf::internal::WireFormatLite::
2597       InternalWriteMessageNoVirtualToArray(
2598         3, this->options(static_cast<int>(i)), deterministic, target);
2599   }
2600 
2601   // .google.protobuf.SourceContext source_context = 4;
2602   if (this->has_source_context()) {
2603     target = ::google::protobuf::internal::WireFormatLite::
2604       InternalWriteMessageNoVirtualToArray(
2605         4, *this->source_context_, deterministic, target);
2606   }
2607 
2608   // .google.protobuf.Syntax syntax = 5;
2609   if (this->syntax() != 0) {
2610     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2611       5, this->syntax(), target);
2612   }
2613 
2614   if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
2615     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2616         (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), target);
2617   }
2618   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Enum)
2619   return target;
2620 }
2621 
ByteSizeLong() const2622 size_t Enum::ByteSizeLong() const {
2623 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Enum)
2624   size_t total_size = 0;
2625 
2626   if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
2627     total_size +=
2628       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2629         (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()));
2630   }
2631   // repeated .google.protobuf.EnumValue enumvalue = 2;
2632   {
2633     unsigned int count = static_cast<unsigned int>(this->enumvalue_size());
2634     total_size += 1UL * count;
2635     for (unsigned int i = 0; i < count; i++) {
2636       total_size +=
2637         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2638           this->enumvalue(static_cast<int>(i)));
2639     }
2640   }
2641 
2642   // repeated .google.protobuf.Option options = 3;
2643   {
2644     unsigned int count = static_cast<unsigned int>(this->options_size());
2645     total_size += 1UL * count;
2646     for (unsigned int i = 0; i < count; i++) {
2647       total_size +=
2648         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2649           this->options(static_cast<int>(i)));
2650     }
2651   }
2652 
2653   // string name = 1;
2654   if (this->name().size() > 0) {
2655     total_size += 1 +
2656       ::google::protobuf::internal::WireFormatLite::StringSize(
2657         this->name());
2658   }
2659 
2660   // .google.protobuf.SourceContext source_context = 4;
2661   if (this->has_source_context()) {
2662     total_size += 1 +
2663       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2664         *this->source_context_);
2665   }
2666 
2667   // .google.protobuf.Syntax syntax = 5;
2668   if (this->syntax() != 0) {
2669     total_size += 1 +
2670       ::google::protobuf::internal::WireFormatLite::EnumSize(this->syntax());
2671   }
2672 
2673   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2674   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2675   _cached_size_ = cached_size;
2676   GOOGLE_SAFE_CONCURRENT_WRITES_END();
2677   return total_size;
2678 }
2679 
MergeFrom(const::google::protobuf::Message & from)2680 void Enum::MergeFrom(const ::google::protobuf::Message& from) {
2681 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Enum)
2682   GOOGLE_DCHECK_NE(&from, this);
2683   const Enum* source =
2684       ::google::protobuf::internal::DynamicCastToGenerated<const Enum>(
2685           &from);
2686   if (source == NULL) {
2687   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Enum)
2688     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2689   } else {
2690   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Enum)
2691     MergeFrom(*source);
2692   }
2693 }
2694 
MergeFrom(const Enum & from)2695 void Enum::MergeFrom(const Enum& from) {
2696 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum)
2697   GOOGLE_DCHECK_NE(&from, this);
2698   _internal_metadata_.MergeFrom(from._internal_metadata_);
2699   ::google::protobuf::uint32 cached_has_bits = 0;
2700   (void) cached_has_bits;
2701 
2702   enumvalue_.MergeFrom(from.enumvalue_);
2703   options_.MergeFrom(from.options_);
2704   if (from.name().size() > 0) {
2705     set_name(from.name());
2706   }
2707   if (from.has_source_context()) {
2708     mutable_source_context()->::google::protobuf::SourceContext::MergeFrom(from.source_context());
2709   }
2710   if (from.syntax() != 0) {
2711     set_syntax(from.syntax());
2712   }
2713 }
2714 
CopyFrom(const::google::protobuf::Message & from)2715 void Enum::CopyFrom(const ::google::protobuf::Message& from) {
2716 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Enum)
2717   if (&from == this) return;
2718   Clear();
2719   MergeFrom(from);
2720 }
2721 
CopyFrom(const Enum & from)2722 void Enum::CopyFrom(const Enum& from) {
2723 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Enum)
2724   if (&from == this) return;
2725   Clear();
2726   MergeFrom(from);
2727 }
2728 
IsInitialized() const2729 bool Enum::IsInitialized() const {
2730   return true;
2731 }
2732 
Swap(Enum * other)2733 void Enum::Swap(Enum* other) {
2734   if (other == this) return;
2735   if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
2736     InternalSwap(other);
2737   } else {
2738     Enum* temp = New(GetArenaNoVirtual());
2739     temp->MergeFrom(*other);
2740     other->CopyFrom(*this);
2741     InternalSwap(temp);
2742     if (GetArenaNoVirtual() == NULL) {
2743       delete temp;
2744     }
2745   }
2746 }
UnsafeArenaSwap(Enum * other)2747 void Enum::UnsafeArenaSwap(Enum* other) {
2748   if (other == this) return;
2749   GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
2750   InternalSwap(other);
2751 }
InternalSwap(Enum * other)2752 void Enum::InternalSwap(Enum* other) {
2753   using std::swap;
2754   enumvalue_.InternalSwap(&other->enumvalue_);
2755   options_.InternalSwap(&other->options_);
2756   name_.Swap(&other->name_);
2757   swap(source_context_, other->source_context_);
2758   swap(syntax_, other->syntax_);
2759   _internal_metadata_.Swap(&other->_internal_metadata_);
2760   swap(_cached_size_, other->_cached_size_);
2761 }
2762 
GetMetadata() const2763 ::google::protobuf::Metadata Enum::GetMetadata() const {
2764   protobuf_google_2fprotobuf_2ftype_2eproto::protobuf_AssignDescriptorsOnce();
2765   return protobuf_google_2fprotobuf_2ftype_2eproto::file_level_metadata[kIndexInFileMessages];
2766 }
2767 
2768 #if PROTOBUF_INLINE_NOT_IN_HEADERS
2769 // Enum
2770 
2771 // string name = 1;
clear_name()2772 void Enum::clear_name() {
2773   name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2774 }
name() const2775 const ::std::string& Enum::name() const {
2776   // @@protoc_insertion_point(field_get:google.protobuf.Enum.name)
2777   return name_.Get();
2778 }
set_name(const::std::string & value)2779 void Enum::set_name(const ::std::string& value) {
2780 
2781   name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
2782   // @@protoc_insertion_point(field_set:google.protobuf.Enum.name)
2783 }
2784 #if LANG_CXX11
set_name(::std::string && value)2785 void Enum::set_name(::std::string&& value) {
2786 
2787   name_.Set(
2788     &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
2789   // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Enum.name)
2790 }
2791 #endif
set_name(const char * value)2792 void Enum::set_name(const char* value) {
2793   GOOGLE_DCHECK(value != NULL);
2794 
2795   name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
2796               GetArenaNoVirtual());
2797   // @@protoc_insertion_point(field_set_char:google.protobuf.Enum.name)
2798 }
set_name(const char * value,size_t size)2799 void Enum::set_name(const char* value,
2800     size_t size) {
2801 
2802   name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
2803       reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
2804   // @@protoc_insertion_point(field_set_pointer:google.protobuf.Enum.name)
2805 }
mutable_name()2806 ::std::string* Enum::mutable_name() {
2807 
2808   // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.name)
2809   return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2810 }
release_name()2811 ::std::string* Enum::release_name() {
2812   // @@protoc_insertion_point(field_release:google.protobuf.Enum.name)
2813 
2814   return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2815 }
unsafe_arena_release_name()2816 ::std::string* Enum::unsafe_arena_release_name() {
2817   // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Enum.name)
2818   GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
2819 
2820   return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2821       GetArenaNoVirtual());
2822 }
set_allocated_name(::std::string * name)2823 void Enum::set_allocated_name(::std::string* name) {
2824   if (name != NULL) {
2825 
2826   } else {
2827 
2828   }
2829   name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
2830       GetArenaNoVirtual());
2831   // @@protoc_insertion_point(field_set_allocated:google.protobuf.Enum.name)
2832 }
unsafe_arena_set_allocated_name(::std::string * name)2833 void Enum::unsafe_arena_set_allocated_name(
2834     ::std::string* name) {
2835   GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
2836   if (name != NULL) {
2837 
2838   } else {
2839 
2840   }
2841   name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2842       name, GetArenaNoVirtual());
2843   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Enum.name)
2844 }
2845 
2846 // repeated .google.protobuf.EnumValue enumvalue = 2;
enumvalue_size() const2847 int Enum::enumvalue_size() const {
2848   return enumvalue_.size();
2849 }
clear_enumvalue()2850 void Enum::clear_enumvalue() {
2851   enumvalue_.Clear();
2852 }
enumvalue(int index) const2853 const ::google::protobuf::EnumValue& Enum::enumvalue(int index) const {
2854   // @@protoc_insertion_point(field_get:google.protobuf.Enum.enumvalue)
2855   return enumvalue_.Get(index);
2856 }
mutable_enumvalue(int index)2857 ::google::protobuf::EnumValue* Enum::mutable_enumvalue(int index) {
2858   // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.enumvalue)
2859   return enumvalue_.Mutable(index);
2860 }
add_enumvalue()2861 ::google::protobuf::EnumValue* Enum::add_enumvalue() {
2862   // @@protoc_insertion_point(field_add:google.protobuf.Enum.enumvalue)
2863   return enumvalue_.Add();
2864 }
2865 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue >*
mutable_enumvalue()2866 Enum::mutable_enumvalue() {
2867   // @@protoc_insertion_point(field_mutable_list:google.protobuf.Enum.enumvalue)
2868   return &enumvalue_;
2869 }
2870 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue >&
enumvalue() const2871 Enum::enumvalue() const {
2872   // @@protoc_insertion_point(field_list:google.protobuf.Enum.enumvalue)
2873   return enumvalue_;
2874 }
2875 
2876 // repeated .google.protobuf.Option options = 3;
options_size() const2877 int Enum::options_size() const {
2878   return options_.size();
2879 }
clear_options()2880 void Enum::clear_options() {
2881   options_.Clear();
2882 }
options(int index) const2883 const ::google::protobuf::Option& Enum::options(int index) const {
2884   // @@protoc_insertion_point(field_get:google.protobuf.Enum.options)
2885   return options_.Get(index);
2886 }
mutable_options(int index)2887 ::google::protobuf::Option* Enum::mutable_options(int index) {
2888   // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.options)
2889   return options_.Mutable(index);
2890 }
add_options()2891 ::google::protobuf::Option* Enum::add_options() {
2892   // @@protoc_insertion_point(field_add:google.protobuf.Enum.options)
2893   return options_.Add();
2894 }
2895 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
mutable_options()2896 Enum::mutable_options() {
2897   // @@protoc_insertion_point(field_mutable_list:google.protobuf.Enum.options)
2898   return &options_;
2899 }
2900 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
options() const2901 Enum::options() const {
2902   // @@protoc_insertion_point(field_list:google.protobuf.Enum.options)
2903   return options_;
2904 }
2905 
2906 // .google.protobuf.SourceContext source_context = 4;
has_source_context() const2907 bool Enum::has_source_context() const {
2908   return this != internal_default_instance() && source_context_ != NULL;
2909 }
clear_source_context()2910 void Enum::clear_source_context() {
2911   if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_context_;
2912   source_context_ = NULL;
2913 }
source_context() const2914 const ::google::protobuf::SourceContext& Enum::source_context() const {
2915   const ::google::protobuf::SourceContext* p = source_context_;
2916   // @@protoc_insertion_point(field_get:google.protobuf.Enum.source_context)
2917   return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::SourceContext*>(
2918       &::google::protobuf::_SourceContext_default_instance_);
2919 }
mutable_source_context()2920 ::google::protobuf::SourceContext* Enum::mutable_source_context() {
2921 
2922   if (source_context_ == NULL) {
2923     _slow_mutable_source_context();
2924   }
2925   // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.source_context)
2926   return source_context_;
2927 }
release_source_context()2928 ::google::protobuf::SourceContext* Enum::release_source_context() {
2929   // @@protoc_insertion_point(field_release:google.protobuf.Enum.source_context)
2930 
2931   if (GetArenaNoVirtual() != NULL) {
2932     return _slow_release_source_context();
2933   } else {
2934     ::google::protobuf::SourceContext* temp = source_context_;
2935     source_context_ = NULL;
2936     return temp;
2937   }
2938 }
set_allocated_source_context(::google::protobuf::SourceContext * source_context)2939  void Enum::set_allocated_source_context(::google::protobuf::SourceContext* source_context) {
2940   ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
2941   if (message_arena == NULL) {
2942     delete source_context_;
2943   }
2944   if (source_context != NULL) {
2945     if (message_arena != NULL) {
2946       message_arena->Own(source_context);
2947     }
2948   }
2949   source_context_ = source_context;
2950   if (source_context) {
2951 
2952   } else {
2953 
2954   }
2955   // @@protoc_insertion_point(field_set_allocated:google.protobuf.Enum.source_context)
2956 }
2957 
2958 // .google.protobuf.Syntax syntax = 5;
clear_syntax()2959 void Enum::clear_syntax() {
2960   syntax_ = 0;
2961 }
syntax() const2962 ::google::protobuf::Syntax Enum::syntax() const {
2963   // @@protoc_insertion_point(field_get:google.protobuf.Enum.syntax)
2964   return static_cast< ::google::protobuf::Syntax >(syntax_);
2965 }
set_syntax(::google::protobuf::Syntax value)2966 void Enum::set_syntax(::google::protobuf::Syntax value) {
2967 
2968   syntax_ = value;
2969   // @@protoc_insertion_point(field_set:google.protobuf.Enum.syntax)
2970 }
2971 
2972 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
2973 
2974 // ===================================================================
2975 
2976 #if !defined(_MSC_VER) || _MSC_VER >= 1900
2977 const int EnumValue::kNameFieldNumber;
2978 const int EnumValue::kNumberFieldNumber;
2979 const int EnumValue::kOptionsFieldNumber;
2980 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2981 
EnumValue()2982 EnumValue::EnumValue()
2983   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2984   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2985     protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaults();
2986   }
2987   SharedCtor();
2988   // @@protoc_insertion_point(constructor:google.protobuf.EnumValue)
2989 }
EnumValue(::google::protobuf::Arena * arena)2990 EnumValue::EnumValue(::google::protobuf::Arena* arena)
2991   : ::google::protobuf::Message(),
2992   _internal_metadata_(arena),
2993   options_(arena) {
2994   protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaults();
2995   SharedCtor();
2996   RegisterArenaDtor(arena);
2997   // @@protoc_insertion_point(arena_constructor:google.protobuf.EnumValue)
2998 }
EnumValue(const EnumValue & from)2999 EnumValue::EnumValue(const EnumValue& from)
3000   : ::google::protobuf::Message(),
3001       _internal_metadata_(NULL),
3002       options_(from.options_),
3003       _cached_size_(0) {
3004   _internal_metadata_.MergeFrom(from._internal_metadata_);
3005   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3006   if (from.name().size() > 0) {
3007     name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(),
3008       GetArenaNoVirtual());
3009   }
3010   number_ = from.number_;
3011   // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValue)
3012 }
3013 
SharedCtor()3014 void EnumValue::SharedCtor() {
3015   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3016   number_ = 0;
3017   _cached_size_ = 0;
3018 }
3019 
~EnumValue()3020 EnumValue::~EnumValue() {
3021   // @@protoc_insertion_point(destructor:google.protobuf.EnumValue)
3022   SharedDtor();
3023 }
3024 
SharedDtor()3025 void EnumValue::SharedDtor() {
3026   ::google::protobuf::Arena* arena = GetArenaNoVirtual();
3027   GOOGLE_DCHECK(arena == NULL);
3028   if (arena != NULL) {
3029     return;
3030   }
3031 
3032   name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena);
3033 }
3034 
ArenaDtor(void * object)3035 void EnumValue::ArenaDtor(void* object) {
3036   EnumValue* _this = reinterpret_cast< EnumValue* >(object);
3037   (void)_this;
3038 }
RegisterArenaDtor(::google::protobuf::Arena * arena)3039 void EnumValue::RegisterArenaDtor(::google::protobuf::Arena* arena) {
3040 }
SetCachedSize(int size) const3041 void EnumValue::SetCachedSize(int size) const {
3042   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3043   _cached_size_ = size;
3044   GOOGLE_SAFE_CONCURRENT_WRITES_END();
3045 }
descriptor()3046 const ::google::protobuf::Descriptor* EnumValue::descriptor() {
3047   protobuf_google_2fprotobuf_2ftype_2eproto::protobuf_AssignDescriptorsOnce();
3048   return protobuf_google_2fprotobuf_2ftype_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3049 }
3050 
default_instance()3051 const EnumValue& EnumValue::default_instance() {
3052   protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaults();
3053   return *internal_default_instance();
3054 }
3055 
New(::google::protobuf::Arena * arena) const3056 EnumValue* EnumValue::New(::google::protobuf::Arena* arena) const {
3057   return ::google::protobuf::Arena::CreateMessage<EnumValue>(arena);
3058 }
3059 
Clear()3060 void EnumValue::Clear() {
3061 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValue)
3062   ::google::protobuf::uint32 cached_has_bits = 0;
3063   // Prevent compiler warnings about cached_has_bits being unused
3064   (void) cached_has_bits;
3065 
3066   options_.Clear();
3067   name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
3068   number_ = 0;
3069   _internal_metadata_.Clear();
3070 }
3071 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)3072 bool EnumValue::MergePartialFromCodedStream(
3073     ::google::protobuf::io::CodedInputStream* input) {
3074 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3075   ::google::protobuf::uint32 tag;
3076   // @@protoc_insertion_point(parse_start:google.protobuf.EnumValue)
3077   for (;;) {
3078     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3079     tag = p.first;
3080     if (!p.second) goto handle_unusual;
3081     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3082       // string name = 1;
3083       case 1: {
3084         if (static_cast< ::google::protobuf::uint8>(tag) ==
3085             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
3086           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3087                 input, this->mutable_name()));
3088           DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3089             this->name().data(), static_cast<int>(this->name().length()),
3090             ::google::protobuf::internal::WireFormatLite::PARSE,
3091             "google.protobuf.EnumValue.name"));
3092         } else {
3093           goto handle_unusual;
3094         }
3095         break;
3096       }
3097 
3098       // int32 number = 2;
3099       case 2: {
3100         if (static_cast< ::google::protobuf::uint8>(tag) ==
3101             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
3102 
3103           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3104                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3105                  input, &number_)));
3106         } else {
3107           goto handle_unusual;
3108         }
3109         break;
3110       }
3111 
3112       // repeated .google.protobuf.Option options = 3;
3113       case 3: {
3114         if (static_cast< ::google::protobuf::uint8>(tag) ==
3115             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
3116           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3117                 input, add_options()));
3118         } else {
3119           goto handle_unusual;
3120         }
3121         break;
3122       }
3123 
3124       default: {
3125       handle_unusual:
3126         if (tag == 0) {
3127           goto success;
3128         }
3129         DO_(::google::protobuf::internal::WireFormat::SkipField(
3130               input, tag, _internal_metadata_.mutable_unknown_fields()));
3131         break;
3132       }
3133     }
3134   }
3135 success:
3136   // @@protoc_insertion_point(parse_success:google.protobuf.EnumValue)
3137   return true;
3138 failure:
3139   // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValue)
3140   return false;
3141 #undef DO_
3142 }
3143 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const3144 void EnumValue::SerializeWithCachedSizes(
3145     ::google::protobuf::io::CodedOutputStream* output) const {
3146   // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValue)
3147   ::google::protobuf::uint32 cached_has_bits = 0;
3148   (void) cached_has_bits;
3149 
3150   // string name = 1;
3151   if (this->name().size() > 0) {
3152     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3153       this->name().data(), static_cast<int>(this->name().length()),
3154       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3155       "google.protobuf.EnumValue.name");
3156     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3157       1, this->name(), output);
3158   }
3159 
3160   // int32 number = 2;
3161   if (this->number() != 0) {
3162     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->number(), output);
3163   }
3164 
3165   // repeated .google.protobuf.Option options = 3;
3166   for (unsigned int i = 0,
3167       n = static_cast<unsigned int>(this->options_size()); i < n; i++) {
3168     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3169       3, this->options(static_cast<int>(i)), output);
3170   }
3171 
3172   if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
3173     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3174         (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), output);
3175   }
3176   // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValue)
3177 }
3178 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const3179 ::google::protobuf::uint8* EnumValue::InternalSerializeWithCachedSizesToArray(
3180     bool deterministic, ::google::protobuf::uint8* target) const {
3181   (void)deterministic; // Unused
3182   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue)
3183   ::google::protobuf::uint32 cached_has_bits = 0;
3184   (void) cached_has_bits;
3185 
3186   // string name = 1;
3187   if (this->name().size() > 0) {
3188     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3189       this->name().data(), static_cast<int>(this->name().length()),
3190       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3191       "google.protobuf.EnumValue.name");
3192     target =
3193       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3194         1, this->name(), target);
3195   }
3196 
3197   // int32 number = 2;
3198   if (this->number() != 0) {
3199     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->number(), target);
3200   }
3201 
3202   // repeated .google.protobuf.Option options = 3;
3203   for (unsigned int i = 0,
3204       n = static_cast<unsigned int>(this->options_size()); i < n; i++) {
3205     target = ::google::protobuf::internal::WireFormatLite::
3206       InternalWriteMessageNoVirtualToArray(
3207         3, this->options(static_cast<int>(i)), deterministic, target);
3208   }
3209 
3210   if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
3211     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3212         (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), target);
3213   }
3214   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValue)
3215   return target;
3216 }
3217 
ByteSizeLong() const3218 size_t EnumValue::ByteSizeLong() const {
3219 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValue)
3220   size_t total_size = 0;
3221 
3222   if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
3223     total_size +=
3224       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3225         (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()));
3226   }
3227   // repeated .google.protobuf.Option options = 3;
3228   {
3229     unsigned int count = static_cast<unsigned int>(this->options_size());
3230     total_size += 1UL * count;
3231     for (unsigned int i = 0; i < count; i++) {
3232       total_size +=
3233         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3234           this->options(static_cast<int>(i)));
3235     }
3236   }
3237 
3238   // string name = 1;
3239   if (this->name().size() > 0) {
3240     total_size += 1 +
3241       ::google::protobuf::internal::WireFormatLite::StringSize(
3242         this->name());
3243   }
3244 
3245   // int32 number = 2;
3246   if (this->number() != 0) {
3247     total_size += 1 +
3248       ::google::protobuf::internal::WireFormatLite::Int32Size(
3249         this->number());
3250   }
3251 
3252   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3253   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3254   _cached_size_ = cached_size;
3255   GOOGLE_SAFE_CONCURRENT_WRITES_END();
3256   return total_size;
3257 }
3258 
MergeFrom(const::google::protobuf::Message & from)3259 void EnumValue::MergeFrom(const ::google::protobuf::Message& from) {
3260 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumValue)
3261   GOOGLE_DCHECK_NE(&from, this);
3262   const EnumValue* source =
3263       ::google::protobuf::internal::DynamicCastToGenerated<const EnumValue>(
3264           &from);
3265   if (source == NULL) {
3266   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.EnumValue)
3267     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3268   } else {
3269   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumValue)
3270     MergeFrom(*source);
3271   }
3272 }
3273 
MergeFrom(const EnumValue & from)3274 void EnumValue::MergeFrom(const EnumValue& from) {
3275 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumValue)
3276   GOOGLE_DCHECK_NE(&from, this);
3277   _internal_metadata_.MergeFrom(from._internal_metadata_);
3278   ::google::protobuf::uint32 cached_has_bits = 0;
3279   (void) cached_has_bits;
3280 
3281   options_.MergeFrom(from.options_);
3282   if (from.name().size() > 0) {
3283     set_name(from.name());
3284   }
3285   if (from.number() != 0) {
3286     set_number(from.number());
3287   }
3288 }
3289 
CopyFrom(const::google::protobuf::Message & from)3290 void EnumValue::CopyFrom(const ::google::protobuf::Message& from) {
3291 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValue)
3292   if (&from == this) return;
3293   Clear();
3294   MergeFrom(from);
3295 }
3296 
CopyFrom(const EnumValue & from)3297 void EnumValue::CopyFrom(const EnumValue& from) {
3298 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumValue)
3299   if (&from == this) return;
3300   Clear();
3301   MergeFrom(from);
3302 }
3303 
IsInitialized() const3304 bool EnumValue::IsInitialized() const {
3305   return true;
3306 }
3307 
Swap(EnumValue * other)3308 void EnumValue::Swap(EnumValue* other) {
3309   if (other == this) return;
3310   if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
3311     InternalSwap(other);
3312   } else {
3313     EnumValue* temp = New(GetArenaNoVirtual());
3314     temp->MergeFrom(*other);
3315     other->CopyFrom(*this);
3316     InternalSwap(temp);
3317     if (GetArenaNoVirtual() == NULL) {
3318       delete temp;
3319     }
3320   }
3321 }
UnsafeArenaSwap(EnumValue * other)3322 void EnumValue::UnsafeArenaSwap(EnumValue* other) {
3323   if (other == this) return;
3324   GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
3325   InternalSwap(other);
3326 }
InternalSwap(EnumValue * other)3327 void EnumValue::InternalSwap(EnumValue* other) {
3328   using std::swap;
3329   options_.InternalSwap(&other->options_);
3330   name_.Swap(&other->name_);
3331   swap(number_, other->number_);
3332   _internal_metadata_.Swap(&other->_internal_metadata_);
3333   swap(_cached_size_, other->_cached_size_);
3334 }
3335 
GetMetadata() const3336 ::google::protobuf::Metadata EnumValue::GetMetadata() const {
3337   protobuf_google_2fprotobuf_2ftype_2eproto::protobuf_AssignDescriptorsOnce();
3338   return protobuf_google_2fprotobuf_2ftype_2eproto::file_level_metadata[kIndexInFileMessages];
3339 }
3340 
3341 #if PROTOBUF_INLINE_NOT_IN_HEADERS
3342 // EnumValue
3343 
3344 // string name = 1;
clear_name()3345 void EnumValue::clear_name() {
3346   name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
3347 }
name() const3348 const ::std::string& EnumValue::name() const {
3349   // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.name)
3350   return name_.Get();
3351 }
set_name(const::std::string & value)3352 void EnumValue::set_name(const ::std::string& value) {
3353 
3354   name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
3355   // @@protoc_insertion_point(field_set:google.protobuf.EnumValue.name)
3356 }
3357 #if LANG_CXX11
set_name(::std::string && value)3358 void EnumValue::set_name(::std::string&& value) {
3359 
3360   name_.Set(
3361     &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
3362   // @@protoc_insertion_point(field_set_rvalue:google.protobuf.EnumValue.name)
3363 }
3364 #endif
set_name(const char * value)3365 void EnumValue::set_name(const char* value) {
3366   GOOGLE_DCHECK(value != NULL);
3367 
3368   name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
3369               GetArenaNoVirtual());
3370   // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValue.name)
3371 }
set_name(const char * value,size_t size)3372 void EnumValue::set_name(const char* value,
3373     size_t size) {
3374 
3375   name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
3376       reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
3377   // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValue.name)
3378 }
mutable_name()3379 ::std::string* EnumValue::mutable_name() {
3380 
3381   // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValue.name)
3382   return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
3383 }
release_name()3384 ::std::string* EnumValue::release_name() {
3385   // @@protoc_insertion_point(field_release:google.protobuf.EnumValue.name)
3386 
3387   return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
3388 }
unsafe_arena_release_name()3389 ::std::string* EnumValue::unsafe_arena_release_name() {
3390   // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.EnumValue.name)
3391   GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
3392 
3393   return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3394       GetArenaNoVirtual());
3395 }
set_allocated_name(::std::string * name)3396 void EnumValue::set_allocated_name(::std::string* name) {
3397   if (name != NULL) {
3398 
3399   } else {
3400 
3401   }
3402   name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
3403       GetArenaNoVirtual());
3404   // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValue.name)
3405 }
unsafe_arena_set_allocated_name(::std::string * name)3406 void EnumValue::unsafe_arena_set_allocated_name(
3407     ::std::string* name) {
3408   GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
3409   if (name != NULL) {
3410 
3411   } else {
3412 
3413   }
3414   name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3415       name, GetArenaNoVirtual());
3416   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.EnumValue.name)
3417 }
3418 
3419 // int32 number = 2;
clear_number()3420 void EnumValue::clear_number() {
3421   number_ = 0;
3422 }
number() const3423 ::google::protobuf::int32 EnumValue::number() const {
3424   // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.number)
3425   return number_;
3426 }
set_number(::google::protobuf::int32 value)3427 void EnumValue::set_number(::google::protobuf::int32 value) {
3428 
3429   number_ = value;
3430   // @@protoc_insertion_point(field_set:google.protobuf.EnumValue.number)
3431 }
3432 
3433 // repeated .google.protobuf.Option options = 3;
options_size() const3434 int EnumValue::options_size() const {
3435   return options_.size();
3436 }
clear_options()3437 void EnumValue::clear_options() {
3438   options_.Clear();
3439 }
options(int index) const3440 const ::google::protobuf::Option& EnumValue::options(int index) const {
3441   // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.options)
3442   return options_.Get(index);
3443 }
mutable_options(int index)3444 ::google::protobuf::Option* EnumValue::mutable_options(int index) {
3445   // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValue.options)
3446   return options_.Mutable(index);
3447 }
add_options()3448 ::google::protobuf::Option* EnumValue::add_options() {
3449   // @@protoc_insertion_point(field_add:google.protobuf.EnumValue.options)
3450   return options_.Add();
3451 }
3452 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
mutable_options()3453 EnumValue::mutable_options() {
3454   // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValue.options)
3455   return &options_;
3456 }
3457 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
options() const3458 EnumValue::options() const {
3459   // @@protoc_insertion_point(field_list:google.protobuf.EnumValue.options)
3460   return options_;
3461 }
3462 
3463 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
3464 
3465 // ===================================================================
3466 
_slow_mutable_value()3467 void Option::_slow_mutable_value() {
3468   value_ = ::google::protobuf::Arena::Create< ::google::protobuf::Any >(
3469       GetArenaNoVirtual());
3470 }
_slow_release_value()3471 ::google::protobuf::Any* Option::_slow_release_value() {
3472   if (value_ == NULL) {
3473     return NULL;
3474   } else {
3475     ::google::protobuf::Any* temp = new ::google::protobuf::Any(*value_);
3476     value_ = NULL;
3477     return temp;
3478   }
3479 }
unsafe_arena_release_value()3480 ::google::protobuf::Any* Option::unsafe_arena_release_value() {
3481   // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Option.value)
3482 
3483   ::google::protobuf::Any* temp = value_;
3484   value_ = NULL;
3485   return temp;
3486 }
unsafe_arena_set_allocated_value(::google::protobuf::Any * value)3487 void Option::unsafe_arena_set_allocated_value(
3488     ::google::protobuf::Any* value) {
3489   if (GetArenaNoVirtual() == NULL) {
3490     delete value_;
3491   }
3492   value_ = value;
3493   if (value) {
3494 
3495   } else {
3496 
3497   }
3498   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Option.value)
3499 }
3500 #if !defined(_MSC_VER) || _MSC_VER >= 1900
3501 const int Option::kNameFieldNumber;
3502 const int Option::kValueFieldNumber;
3503 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3504 
Option()3505 Option::Option()
3506   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3507   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3508     protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaults();
3509   }
3510   SharedCtor();
3511   // @@protoc_insertion_point(constructor:google.protobuf.Option)
3512 }
Option(::google::protobuf::Arena * arena)3513 Option::Option(::google::protobuf::Arena* arena)
3514   : ::google::protobuf::Message(),
3515   _internal_metadata_(arena) {
3516   protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaults();
3517   SharedCtor();
3518   RegisterArenaDtor(arena);
3519   // @@protoc_insertion_point(arena_constructor:google.protobuf.Option)
3520 }
Option(const Option & from)3521 Option::Option(const Option& from)
3522   : ::google::protobuf::Message(),
3523       _internal_metadata_(NULL),
3524       _cached_size_(0) {
3525   _internal_metadata_.MergeFrom(from._internal_metadata_);
3526   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3527   if (from.name().size() > 0) {
3528     name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(),
3529       GetArenaNoVirtual());
3530   }
3531   if (from.has_value()) {
3532     value_ = new ::google::protobuf::Any(*from.value_);
3533   } else {
3534     value_ = NULL;
3535   }
3536   // @@protoc_insertion_point(copy_constructor:google.protobuf.Option)
3537 }
3538 
SharedCtor()3539 void Option::SharedCtor() {
3540   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3541   value_ = NULL;
3542   _cached_size_ = 0;
3543 }
3544 
~Option()3545 Option::~Option() {
3546   // @@protoc_insertion_point(destructor:google.protobuf.Option)
3547   SharedDtor();
3548 }
3549 
SharedDtor()3550 void Option::SharedDtor() {
3551   ::google::protobuf::Arena* arena = GetArenaNoVirtual();
3552   GOOGLE_DCHECK(arena == NULL);
3553   if (arena != NULL) {
3554     return;
3555   }
3556 
3557   name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena);
3558   if (this != internal_default_instance()) delete value_;
3559 }
3560 
ArenaDtor(void * object)3561 void Option::ArenaDtor(void* object) {
3562   Option* _this = reinterpret_cast< Option* >(object);
3563   (void)_this;
3564 }
RegisterArenaDtor(::google::protobuf::Arena * arena)3565 void Option::RegisterArenaDtor(::google::protobuf::Arena* arena) {
3566 }
SetCachedSize(int size) const3567 void Option::SetCachedSize(int size) const {
3568   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3569   _cached_size_ = size;
3570   GOOGLE_SAFE_CONCURRENT_WRITES_END();
3571 }
descriptor()3572 const ::google::protobuf::Descriptor* Option::descriptor() {
3573   protobuf_google_2fprotobuf_2ftype_2eproto::protobuf_AssignDescriptorsOnce();
3574   return protobuf_google_2fprotobuf_2ftype_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3575 }
3576 
default_instance()3577 const Option& Option::default_instance() {
3578   protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaults();
3579   return *internal_default_instance();
3580 }
3581 
New(::google::protobuf::Arena * arena) const3582 Option* Option::New(::google::protobuf::Arena* arena) const {
3583   return ::google::protobuf::Arena::CreateMessage<Option>(arena);
3584 }
3585 
Clear()3586 void Option::Clear() {
3587 // @@protoc_insertion_point(message_clear_start:google.protobuf.Option)
3588   ::google::protobuf::uint32 cached_has_bits = 0;
3589   // Prevent compiler warnings about cached_has_bits being unused
3590   (void) cached_has_bits;
3591 
3592   name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
3593   if (GetArenaNoVirtual() == NULL && value_ != NULL) {
3594     delete value_;
3595   }
3596   value_ = NULL;
3597   _internal_metadata_.Clear();
3598 }
3599 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)3600 bool Option::MergePartialFromCodedStream(
3601     ::google::protobuf::io::CodedInputStream* input) {
3602 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3603   ::google::protobuf::uint32 tag;
3604   // @@protoc_insertion_point(parse_start:google.protobuf.Option)
3605   for (;;) {
3606     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3607     tag = p.first;
3608     if (!p.second) goto handle_unusual;
3609     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3610       // string name = 1;
3611       case 1: {
3612         if (static_cast< ::google::protobuf::uint8>(tag) ==
3613             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
3614           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3615                 input, this->mutable_name()));
3616           DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3617             this->name().data(), static_cast<int>(this->name().length()),
3618             ::google::protobuf::internal::WireFormatLite::PARSE,
3619             "google.protobuf.Option.name"));
3620         } else {
3621           goto handle_unusual;
3622         }
3623         break;
3624       }
3625 
3626       // .google.protobuf.Any value = 2;
3627       case 2: {
3628         if (static_cast< ::google::protobuf::uint8>(tag) ==
3629             static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
3630           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3631                input, mutable_value()));
3632         } else {
3633           goto handle_unusual;
3634         }
3635         break;
3636       }
3637 
3638       default: {
3639       handle_unusual:
3640         if (tag == 0) {
3641           goto success;
3642         }
3643         DO_(::google::protobuf::internal::WireFormat::SkipField(
3644               input, tag, _internal_metadata_.mutable_unknown_fields()));
3645         break;
3646       }
3647     }
3648   }
3649 success:
3650   // @@protoc_insertion_point(parse_success:google.protobuf.Option)
3651   return true;
3652 failure:
3653   // @@protoc_insertion_point(parse_failure:google.protobuf.Option)
3654   return false;
3655 #undef DO_
3656 }
3657 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const3658 void Option::SerializeWithCachedSizes(
3659     ::google::protobuf::io::CodedOutputStream* output) const {
3660   // @@protoc_insertion_point(serialize_start:google.protobuf.Option)
3661   ::google::protobuf::uint32 cached_has_bits = 0;
3662   (void) cached_has_bits;
3663 
3664   // string name = 1;
3665   if (this->name().size() > 0) {
3666     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3667       this->name().data(), static_cast<int>(this->name().length()),
3668       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3669       "google.protobuf.Option.name");
3670     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3671       1, this->name(), output);
3672   }
3673 
3674   // .google.protobuf.Any value = 2;
3675   if (this->has_value()) {
3676     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3677       2, *this->value_, output);
3678   }
3679 
3680   if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
3681     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3682         (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), output);
3683   }
3684   // @@protoc_insertion_point(serialize_end:google.protobuf.Option)
3685 }
3686 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const3687 ::google::protobuf::uint8* Option::InternalSerializeWithCachedSizesToArray(
3688     bool deterministic, ::google::protobuf::uint8* target) const {
3689   (void)deterministic; // Unused
3690   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Option)
3691   ::google::protobuf::uint32 cached_has_bits = 0;
3692   (void) cached_has_bits;
3693 
3694   // string name = 1;
3695   if (this->name().size() > 0) {
3696     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3697       this->name().data(), static_cast<int>(this->name().length()),
3698       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3699       "google.protobuf.Option.name");
3700     target =
3701       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3702         1, this->name(), target);
3703   }
3704 
3705   // .google.protobuf.Any value = 2;
3706   if (this->has_value()) {
3707     target = ::google::protobuf::internal::WireFormatLite::
3708       InternalWriteMessageNoVirtualToArray(
3709         2, *this->value_, deterministic, target);
3710   }
3711 
3712   if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
3713     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3714         (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), target);
3715   }
3716   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Option)
3717   return target;
3718 }
3719 
ByteSizeLong() const3720 size_t Option::ByteSizeLong() const {
3721 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Option)
3722   size_t total_size = 0;
3723 
3724   if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
3725     total_size +=
3726       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3727         (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()));
3728   }
3729   // string name = 1;
3730   if (this->name().size() > 0) {
3731     total_size += 1 +
3732       ::google::protobuf::internal::WireFormatLite::StringSize(
3733         this->name());
3734   }
3735 
3736   // .google.protobuf.Any value = 2;
3737   if (this->has_value()) {
3738     total_size += 1 +
3739       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3740         *this->value_);
3741   }
3742 
3743   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3744   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3745   _cached_size_ = cached_size;
3746   GOOGLE_SAFE_CONCURRENT_WRITES_END();
3747   return total_size;
3748 }
3749 
MergeFrom(const::google::protobuf::Message & from)3750 void Option::MergeFrom(const ::google::protobuf::Message& from) {
3751 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Option)
3752   GOOGLE_DCHECK_NE(&from, this);
3753   const Option* source =
3754       ::google::protobuf::internal::DynamicCastToGenerated<const Option>(
3755           &from);
3756   if (source == NULL) {
3757   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Option)
3758     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3759   } else {
3760   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Option)
3761     MergeFrom(*source);
3762   }
3763 }
3764 
MergeFrom(const Option & from)3765 void Option::MergeFrom(const Option& from) {
3766 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Option)
3767   GOOGLE_DCHECK_NE(&from, this);
3768   _internal_metadata_.MergeFrom(from._internal_metadata_);
3769   ::google::protobuf::uint32 cached_has_bits = 0;
3770   (void) cached_has_bits;
3771 
3772   if (from.name().size() > 0) {
3773     set_name(from.name());
3774   }
3775   if (from.has_value()) {
3776     mutable_value()->::google::protobuf::Any::MergeFrom(from.value());
3777   }
3778 }
3779 
CopyFrom(const::google::protobuf::Message & from)3780 void Option::CopyFrom(const ::google::protobuf::Message& from) {
3781 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Option)
3782   if (&from == this) return;
3783   Clear();
3784   MergeFrom(from);
3785 }
3786 
CopyFrom(const Option & from)3787 void Option::CopyFrom(const Option& from) {
3788 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Option)
3789   if (&from == this) return;
3790   Clear();
3791   MergeFrom(from);
3792 }
3793 
IsInitialized() const3794 bool Option::IsInitialized() const {
3795   return true;
3796 }
3797 
Swap(Option * other)3798 void Option::Swap(Option* other) {
3799   if (other == this) return;
3800   if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
3801     InternalSwap(other);
3802   } else {
3803     Option* temp = New(GetArenaNoVirtual());
3804     temp->MergeFrom(*other);
3805     other->CopyFrom(*this);
3806     InternalSwap(temp);
3807     if (GetArenaNoVirtual() == NULL) {
3808       delete temp;
3809     }
3810   }
3811 }
UnsafeArenaSwap(Option * other)3812 void Option::UnsafeArenaSwap(Option* other) {
3813   if (other == this) return;
3814   GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
3815   InternalSwap(other);
3816 }
InternalSwap(Option * other)3817 void Option::InternalSwap(Option* other) {
3818   using std::swap;
3819   name_.Swap(&other->name_);
3820   swap(value_, other->value_);
3821   _internal_metadata_.Swap(&other->_internal_metadata_);
3822   swap(_cached_size_, other->_cached_size_);
3823 }
3824 
GetMetadata() const3825 ::google::protobuf::Metadata Option::GetMetadata() const {
3826   protobuf_google_2fprotobuf_2ftype_2eproto::protobuf_AssignDescriptorsOnce();
3827   return protobuf_google_2fprotobuf_2ftype_2eproto::file_level_metadata[kIndexInFileMessages];
3828 }
3829 
3830 #if PROTOBUF_INLINE_NOT_IN_HEADERS
3831 // Option
3832 
3833 // string name = 1;
clear_name()3834 void Option::clear_name() {
3835   name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
3836 }
name() const3837 const ::std::string& Option::name() const {
3838   // @@protoc_insertion_point(field_get:google.protobuf.Option.name)
3839   return name_.Get();
3840 }
set_name(const::std::string & value)3841 void Option::set_name(const ::std::string& value) {
3842 
3843   name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
3844   // @@protoc_insertion_point(field_set:google.protobuf.Option.name)
3845 }
3846 #if LANG_CXX11
set_name(::std::string && value)3847 void Option::set_name(::std::string&& value) {
3848 
3849   name_.Set(
3850     &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
3851   // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Option.name)
3852 }
3853 #endif
set_name(const char * value)3854 void Option::set_name(const char* value) {
3855   GOOGLE_DCHECK(value != NULL);
3856 
3857   name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
3858               GetArenaNoVirtual());
3859   // @@protoc_insertion_point(field_set_char:google.protobuf.Option.name)
3860 }
set_name(const char * value,size_t size)3861 void Option::set_name(const char* value,
3862     size_t size) {
3863 
3864   name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
3865       reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
3866   // @@protoc_insertion_point(field_set_pointer:google.protobuf.Option.name)
3867 }
mutable_name()3868 ::std::string* Option::mutable_name() {
3869 
3870   // @@protoc_insertion_point(field_mutable:google.protobuf.Option.name)
3871   return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
3872 }
release_name()3873 ::std::string* Option::release_name() {
3874   // @@protoc_insertion_point(field_release:google.protobuf.Option.name)
3875 
3876   return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
3877 }
unsafe_arena_release_name()3878 ::std::string* Option::unsafe_arena_release_name() {
3879   // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Option.name)
3880   GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
3881 
3882   return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3883       GetArenaNoVirtual());
3884 }
set_allocated_name(::std::string * name)3885 void Option::set_allocated_name(::std::string* name) {
3886   if (name != NULL) {
3887 
3888   } else {
3889 
3890   }
3891   name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
3892       GetArenaNoVirtual());
3893   // @@protoc_insertion_point(field_set_allocated:google.protobuf.Option.name)
3894 }
unsafe_arena_set_allocated_name(::std::string * name)3895 void Option::unsafe_arena_set_allocated_name(
3896     ::std::string* name) {
3897   GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
3898   if (name != NULL) {
3899 
3900   } else {
3901 
3902   }
3903   name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3904       name, GetArenaNoVirtual());
3905   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Option.name)
3906 }
3907 
3908 // .google.protobuf.Any value = 2;
has_value() const3909 bool Option::has_value() const {
3910   return this != internal_default_instance() && value_ != NULL;
3911 }
clear_value()3912 void Option::clear_value() {
3913   if (GetArenaNoVirtual() == NULL && value_ != NULL) delete value_;
3914   value_ = NULL;
3915 }
value() const3916 const ::google::protobuf::Any& Option::value() const {
3917   const ::google::protobuf::Any* p = value_;
3918   // @@protoc_insertion_point(field_get:google.protobuf.Option.value)
3919   return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Any*>(
3920       &::google::protobuf::_Any_default_instance_);
3921 }
mutable_value()3922 ::google::protobuf::Any* Option::mutable_value() {
3923 
3924   if (value_ == NULL) {
3925     _slow_mutable_value();
3926   }
3927   // @@protoc_insertion_point(field_mutable:google.protobuf.Option.value)
3928   return value_;
3929 }
release_value()3930 ::google::protobuf::Any* Option::release_value() {
3931   // @@protoc_insertion_point(field_release:google.protobuf.Option.value)
3932 
3933   if (GetArenaNoVirtual() != NULL) {
3934     return _slow_release_value();
3935   } else {
3936     ::google::protobuf::Any* temp = value_;
3937     value_ = NULL;
3938     return temp;
3939   }
3940 }
set_allocated_value(::google::protobuf::Any * value)3941  void Option::set_allocated_value(::google::protobuf::Any* value) {
3942   ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
3943   if (message_arena == NULL) {
3944     delete value_;
3945   }
3946   if (value != NULL) {
3947     if (message_arena != NULL) {
3948       message_arena->Own(value);
3949     }
3950   }
3951   value_ = value;
3952   if (value) {
3953 
3954   } else {
3955 
3956   }
3957   // @@protoc_insertion_point(field_set_allocated:google.protobuf.Option.value)
3958 }
3959 
3960 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
3961 
3962 // @@protoc_insertion_point(namespace_scope)
3963 
3964 }  // namespace protobuf
3965 }  // namespace google
3966 
3967 // @@protoc_insertion_point(global_scope)
3968