1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: google/protobuf/descriptor.proto
3 
4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 #include <google/protobuf/descriptor.pb.h>
6 
7 #include <algorithm>
8 
9 #include <google/protobuf/stubs/common.h>
10 #include <google/protobuf/stubs/port.h>
11 #include <google/protobuf/stubs/once.h>
12 #include <google/protobuf/io/coded_stream.h>
13 #include <google/protobuf/wire_format_lite_inl.h>
14 #include <google/protobuf/descriptor.h>
15 #include <google/protobuf/generated_message_reflection.h>
16 #include <google/protobuf/reflection_ops.h>
17 #include <google/protobuf/wire_format.h>
18 // @@protoc_insertion_point(includes)
19 
20 namespace google {
21 namespace protobuf {
22 
23 namespace {
24 
25 const ::google::protobuf::Descriptor* FileDescriptorSet_descriptor_ = NULL;
26 const ::google::protobuf::internal::GeneratedMessageReflection*
27   FileDescriptorSet_reflection_ = NULL;
28 const ::google::protobuf::Descriptor* FileDescriptorProto_descriptor_ = NULL;
29 const ::google::protobuf::internal::GeneratedMessageReflection*
30   FileDescriptorProto_reflection_ = NULL;
31 const ::google::protobuf::Descriptor* DescriptorProto_descriptor_ = NULL;
32 const ::google::protobuf::internal::GeneratedMessageReflection*
33   DescriptorProto_reflection_ = NULL;
34 const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange_descriptor_ = NULL;
35 const ::google::protobuf::internal::GeneratedMessageReflection*
36   DescriptorProto_ExtensionRange_reflection_ = NULL;
37 const ::google::protobuf::Descriptor* DescriptorProto_ReservedRange_descriptor_ = NULL;
38 const ::google::protobuf::internal::GeneratedMessageReflection*
39   DescriptorProto_ReservedRange_reflection_ = NULL;
40 const ::google::protobuf::Descriptor* FieldDescriptorProto_descriptor_ = NULL;
41 const ::google::protobuf::internal::GeneratedMessageReflection*
42   FieldDescriptorProto_reflection_ = NULL;
43 const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor_ = NULL;
44 const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor_ = NULL;
45 const ::google::protobuf::Descriptor* OneofDescriptorProto_descriptor_ = NULL;
46 const ::google::protobuf::internal::GeneratedMessageReflection*
47   OneofDescriptorProto_reflection_ = NULL;
48 const ::google::protobuf::Descriptor* EnumDescriptorProto_descriptor_ = NULL;
49 const ::google::protobuf::internal::GeneratedMessageReflection*
50   EnumDescriptorProto_reflection_ = NULL;
51 const ::google::protobuf::Descriptor* EnumValueDescriptorProto_descriptor_ = NULL;
52 const ::google::protobuf::internal::GeneratedMessageReflection*
53   EnumValueDescriptorProto_reflection_ = NULL;
54 const ::google::protobuf::Descriptor* ServiceDescriptorProto_descriptor_ = NULL;
55 const ::google::protobuf::internal::GeneratedMessageReflection*
56   ServiceDescriptorProto_reflection_ = NULL;
57 const ::google::protobuf::Descriptor* MethodDescriptorProto_descriptor_ = NULL;
58 const ::google::protobuf::internal::GeneratedMessageReflection*
59   MethodDescriptorProto_reflection_ = NULL;
60 const ::google::protobuf::Descriptor* FileOptions_descriptor_ = NULL;
61 const ::google::protobuf::internal::GeneratedMessageReflection*
62   FileOptions_reflection_ = NULL;
63 const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor_ = NULL;
64 const ::google::protobuf::Descriptor* MessageOptions_descriptor_ = NULL;
65 const ::google::protobuf::internal::GeneratedMessageReflection*
66   MessageOptions_reflection_ = NULL;
67 const ::google::protobuf::Descriptor* FieldOptions_descriptor_ = NULL;
68 const ::google::protobuf::internal::GeneratedMessageReflection*
69   FieldOptions_reflection_ = NULL;
70 const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor_ = NULL;
71 const ::google::protobuf::EnumDescriptor* FieldOptions_JSType_descriptor_ = NULL;
72 const ::google::protobuf::Descriptor* OneofOptions_descriptor_ = NULL;
73 const ::google::protobuf::internal::GeneratedMessageReflection*
74   OneofOptions_reflection_ = NULL;
75 const ::google::protobuf::Descriptor* EnumOptions_descriptor_ = NULL;
76 const ::google::protobuf::internal::GeneratedMessageReflection*
77   EnumOptions_reflection_ = NULL;
78 const ::google::protobuf::Descriptor* EnumValueOptions_descriptor_ = NULL;
79 const ::google::protobuf::internal::GeneratedMessageReflection*
80   EnumValueOptions_reflection_ = NULL;
81 const ::google::protobuf::Descriptor* ServiceOptions_descriptor_ = NULL;
82 const ::google::protobuf::internal::GeneratedMessageReflection*
83   ServiceOptions_reflection_ = NULL;
84 const ::google::protobuf::Descriptor* MethodOptions_descriptor_ = NULL;
85 const ::google::protobuf::internal::GeneratedMessageReflection*
86   MethodOptions_reflection_ = NULL;
87 const ::google::protobuf::Descriptor* UninterpretedOption_descriptor_ = NULL;
88 const ::google::protobuf::internal::GeneratedMessageReflection*
89   UninterpretedOption_reflection_ = NULL;
90 const ::google::protobuf::Descriptor* UninterpretedOption_NamePart_descriptor_ = NULL;
91 const ::google::protobuf::internal::GeneratedMessageReflection*
92   UninterpretedOption_NamePart_reflection_ = NULL;
93 const ::google::protobuf::Descriptor* SourceCodeInfo_descriptor_ = NULL;
94 const ::google::protobuf::internal::GeneratedMessageReflection*
95   SourceCodeInfo_reflection_ = NULL;
96 const ::google::protobuf::Descriptor* SourceCodeInfo_Location_descriptor_ = NULL;
97 const ::google::protobuf::internal::GeneratedMessageReflection*
98   SourceCodeInfo_Location_reflection_ = NULL;
99 const ::google::protobuf::Descriptor* GeneratedCodeInfo_descriptor_ = NULL;
100 const ::google::protobuf::internal::GeneratedMessageReflection*
101   GeneratedCodeInfo_reflection_ = NULL;
102 const ::google::protobuf::Descriptor* GeneratedCodeInfo_Annotation_descriptor_ = NULL;
103 const ::google::protobuf::internal::GeneratedMessageReflection*
104   GeneratedCodeInfo_Annotation_reflection_ = NULL;
105 
106 }  // namespace
107 
108 
109 void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() GOOGLE_ATTRIBUTE_COLD;
protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()110 void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() {
111   protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
112   const ::google::protobuf::FileDescriptor* file =
113     ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
114       "google/protobuf/descriptor.proto");
115   GOOGLE_CHECK(file != NULL);
116   FileDescriptorSet_descriptor_ = file->message_type(0);
117   static const int FileDescriptorSet_offsets_[1] = {
118     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, file_),
119   };
120   FileDescriptorSet_reflection_ =
121     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
122       FileDescriptorSet_descriptor_,
123       FileDescriptorSet::default_instance_,
124       FileDescriptorSet_offsets_,
125       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _has_bits_[0]),
126       -1,
127       -1,
128       sizeof(FileDescriptorSet),
129       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _internal_metadata_),
130       -1);
131   FileDescriptorProto_descriptor_ = file->message_type(1);
132   static const int FileDescriptorProto_offsets_[12] = {
133     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, name_),
134     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, package_),
135     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, dependency_),
136     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, public_dependency_),
137     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, weak_dependency_),
138     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, message_type_),
139     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, enum_type_),
140     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, service_),
141     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, extension_),
142     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, options_),
143     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, source_code_info_),
144     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, syntax_),
145   };
146   FileDescriptorProto_reflection_ =
147     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
148       FileDescriptorProto_descriptor_,
149       FileDescriptorProto::default_instance_,
150       FileDescriptorProto_offsets_,
151       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _has_bits_[0]),
152       -1,
153       -1,
154       sizeof(FileDescriptorProto),
155       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _internal_metadata_),
156       -1);
157   DescriptorProto_descriptor_ = file->message_type(2);
158   static const int DescriptorProto_offsets_[10] = {
159     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, name_),
160     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, field_),
161     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_),
162     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, nested_type_),
163     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, enum_type_),
164     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_range_),
165     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, oneof_decl_),
166     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, options_),
167     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_range_),
168     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_name_),
169   };
170   DescriptorProto_reflection_ =
171     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
172       DescriptorProto_descriptor_,
173       DescriptorProto::default_instance_,
174       DescriptorProto_offsets_,
175       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _has_bits_[0]),
176       -1,
177       -1,
178       sizeof(DescriptorProto),
179       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _internal_metadata_),
180       -1);
181   DescriptorProto_ExtensionRange_descriptor_ = DescriptorProto_descriptor_->nested_type(0);
182   static const int DescriptorProto_ExtensionRange_offsets_[2] = {
183     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, start_),
184     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, end_),
185   };
186   DescriptorProto_ExtensionRange_reflection_ =
187     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
188       DescriptorProto_ExtensionRange_descriptor_,
189       DescriptorProto_ExtensionRange::default_instance_,
190       DescriptorProto_ExtensionRange_offsets_,
191       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _has_bits_[0]),
192       -1,
193       -1,
194       sizeof(DescriptorProto_ExtensionRange),
195       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _internal_metadata_),
196       -1);
197   DescriptorProto_ReservedRange_descriptor_ = DescriptorProto_descriptor_->nested_type(1);
198   static const int DescriptorProto_ReservedRange_offsets_[2] = {
199     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, start_),
200     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, end_),
201   };
202   DescriptorProto_ReservedRange_reflection_ =
203     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
204       DescriptorProto_ReservedRange_descriptor_,
205       DescriptorProto_ReservedRange::default_instance_,
206       DescriptorProto_ReservedRange_offsets_,
207       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, _has_bits_[0]),
208       -1,
209       -1,
210       sizeof(DescriptorProto_ReservedRange),
211       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, _internal_metadata_),
212       -1);
213   FieldDescriptorProto_descriptor_ = file->message_type(3);
214   static const int FieldDescriptorProto_offsets_[10] = {
215     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, name_),
216     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, number_),
217     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, label_),
218     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_),
219     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_name_),
220     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, extendee_),
221     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, default_value_),
222     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, oneof_index_),
223     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, json_name_),
224     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, options_),
225   };
226   FieldDescriptorProto_reflection_ =
227     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
228       FieldDescriptorProto_descriptor_,
229       FieldDescriptorProto::default_instance_,
230       FieldDescriptorProto_offsets_,
231       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _has_bits_[0]),
232       -1,
233       -1,
234       sizeof(FieldDescriptorProto),
235       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _internal_metadata_),
236       -1);
237   FieldDescriptorProto_Type_descriptor_ = FieldDescriptorProto_descriptor_->enum_type(0);
238   FieldDescriptorProto_Label_descriptor_ = FieldDescriptorProto_descriptor_->enum_type(1);
239   OneofDescriptorProto_descriptor_ = file->message_type(4);
240   static const int OneofDescriptorProto_offsets_[2] = {
241     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, name_),
242     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, options_),
243   };
244   OneofDescriptorProto_reflection_ =
245     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
246       OneofDescriptorProto_descriptor_,
247       OneofDescriptorProto::default_instance_,
248       OneofDescriptorProto_offsets_,
249       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _has_bits_[0]),
250       -1,
251       -1,
252       sizeof(OneofDescriptorProto),
253       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _internal_metadata_),
254       -1);
255   EnumDescriptorProto_descriptor_ = file->message_type(5);
256   static const int EnumDescriptorProto_offsets_[3] = {
257     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, name_),
258     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, value_),
259     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, options_),
260   };
261   EnumDescriptorProto_reflection_ =
262     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
263       EnumDescriptorProto_descriptor_,
264       EnumDescriptorProto::default_instance_,
265       EnumDescriptorProto_offsets_,
266       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _has_bits_[0]),
267       -1,
268       -1,
269       sizeof(EnumDescriptorProto),
270       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _internal_metadata_),
271       -1);
272   EnumValueDescriptorProto_descriptor_ = file->message_type(6);
273   static const int EnumValueDescriptorProto_offsets_[3] = {
274     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, name_),
275     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, number_),
276     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, options_),
277   };
278   EnumValueDescriptorProto_reflection_ =
279     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
280       EnumValueDescriptorProto_descriptor_,
281       EnumValueDescriptorProto::default_instance_,
282       EnumValueDescriptorProto_offsets_,
283       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _has_bits_[0]),
284       -1,
285       -1,
286       sizeof(EnumValueDescriptorProto),
287       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _internal_metadata_),
288       -1);
289   ServiceDescriptorProto_descriptor_ = file->message_type(7);
290   static const int ServiceDescriptorProto_offsets_[3] = {
291     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, name_),
292     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, method_),
293     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, options_),
294   };
295   ServiceDescriptorProto_reflection_ =
296     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
297       ServiceDescriptorProto_descriptor_,
298       ServiceDescriptorProto::default_instance_,
299       ServiceDescriptorProto_offsets_,
300       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _has_bits_[0]),
301       -1,
302       -1,
303       sizeof(ServiceDescriptorProto),
304       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _internal_metadata_),
305       -1);
306   MethodDescriptorProto_descriptor_ = file->message_type(8);
307   static const int MethodDescriptorProto_offsets_[6] = {
308     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, name_),
309     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, input_type_),
310     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, output_type_),
311     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, options_),
312     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, client_streaming_),
313     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, server_streaming_),
314   };
315   MethodDescriptorProto_reflection_ =
316     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
317       MethodDescriptorProto_descriptor_,
318       MethodDescriptorProto::default_instance_,
319       MethodDescriptorProto_offsets_,
320       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _has_bits_[0]),
321       -1,
322       -1,
323       sizeof(MethodDescriptorProto),
324       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _internal_metadata_),
325       -1);
326   FileOptions_descriptor_ = file->message_type(9);
327   static const int FileOptions_offsets_[15] = {
328     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_package_),
329     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_outer_classname_),
330     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_multiple_files_),
331     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generate_equals_and_hash_),
332     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_string_check_utf8_),
333     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, optimize_for_),
334     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, go_package_),
335     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_generic_services_),
336     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generic_services_),
337     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, py_generic_services_),
338     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, deprecated_),
339     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_enable_arenas_),
340     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, objc_class_prefix_),
341     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, csharp_namespace_),
342     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, uninterpreted_option_),
343   };
344   FileOptions_reflection_ =
345     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
346       FileOptions_descriptor_,
347       FileOptions::default_instance_,
348       FileOptions_offsets_,
349       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _has_bits_[0]),
350       -1,
351       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _extensions_),
352       sizeof(FileOptions),
353       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _internal_metadata_),
354       -1);
355   FileOptions_OptimizeMode_descriptor_ = FileOptions_descriptor_->enum_type(0);
356   MessageOptions_descriptor_ = file->message_type(10);
357   static const int MessageOptions_offsets_[5] = {
358     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, message_set_wire_format_),
359     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, no_standard_descriptor_accessor_),
360     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, deprecated_),
361     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, map_entry_),
362     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, uninterpreted_option_),
363   };
364   MessageOptions_reflection_ =
365     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
366       MessageOptions_descriptor_,
367       MessageOptions::default_instance_,
368       MessageOptions_offsets_,
369       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _has_bits_[0]),
370       -1,
371       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _extensions_),
372       sizeof(MessageOptions),
373       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _internal_metadata_),
374       -1);
375   FieldOptions_descriptor_ = file->message_type(11);
376   static const int FieldOptions_offsets_[7] = {
377     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, ctype_),
378     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, packed_),
379     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, jstype_),
380     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, lazy_),
381     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, deprecated_),
382     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, weak_),
383     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, uninterpreted_option_),
384   };
385   FieldOptions_reflection_ =
386     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
387       FieldOptions_descriptor_,
388       FieldOptions::default_instance_,
389       FieldOptions_offsets_,
390       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _has_bits_[0]),
391       -1,
392       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _extensions_),
393       sizeof(FieldOptions),
394       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _internal_metadata_),
395       -1);
396   FieldOptions_CType_descriptor_ = FieldOptions_descriptor_->enum_type(0);
397   FieldOptions_JSType_descriptor_ = FieldOptions_descriptor_->enum_type(1);
398   OneofOptions_descriptor_ = file->message_type(12);
399   static const int OneofOptions_offsets_[1] = {
400     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofOptions, uninterpreted_option_),
401   };
402   OneofOptions_reflection_ =
403     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
404       OneofOptions_descriptor_,
405       OneofOptions::default_instance_,
406       OneofOptions_offsets_,
407       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofOptions, _has_bits_[0]),
408       -1,
409       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofOptions, _extensions_),
410       sizeof(OneofOptions),
411       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofOptions, _internal_metadata_),
412       -1);
413   EnumOptions_descriptor_ = file->message_type(13);
414   static const int EnumOptions_offsets_[3] = {
415     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, allow_alias_),
416     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, deprecated_),
417     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, uninterpreted_option_),
418   };
419   EnumOptions_reflection_ =
420     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
421       EnumOptions_descriptor_,
422       EnumOptions::default_instance_,
423       EnumOptions_offsets_,
424       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _has_bits_[0]),
425       -1,
426       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _extensions_),
427       sizeof(EnumOptions),
428       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _internal_metadata_),
429       -1);
430   EnumValueOptions_descriptor_ = file->message_type(14);
431   static const int EnumValueOptions_offsets_[2] = {
432     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, deprecated_),
433     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, uninterpreted_option_),
434   };
435   EnumValueOptions_reflection_ =
436     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
437       EnumValueOptions_descriptor_,
438       EnumValueOptions::default_instance_,
439       EnumValueOptions_offsets_,
440       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _has_bits_[0]),
441       -1,
442       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _extensions_),
443       sizeof(EnumValueOptions),
444       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _internal_metadata_),
445       -1);
446   ServiceOptions_descriptor_ = file->message_type(15);
447   static const int ServiceOptions_offsets_[2] = {
448     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, deprecated_),
449     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, uninterpreted_option_),
450   };
451   ServiceOptions_reflection_ =
452     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
453       ServiceOptions_descriptor_,
454       ServiceOptions::default_instance_,
455       ServiceOptions_offsets_,
456       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _has_bits_[0]),
457       -1,
458       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _extensions_),
459       sizeof(ServiceOptions),
460       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _internal_metadata_),
461       -1);
462   MethodOptions_descriptor_ = file->message_type(16);
463   static const int MethodOptions_offsets_[2] = {
464     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, deprecated_),
465     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, uninterpreted_option_),
466   };
467   MethodOptions_reflection_ =
468     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
469       MethodOptions_descriptor_,
470       MethodOptions::default_instance_,
471       MethodOptions_offsets_,
472       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _has_bits_[0]),
473       -1,
474       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _extensions_),
475       sizeof(MethodOptions),
476       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _internal_metadata_),
477       -1);
478   UninterpretedOption_descriptor_ = file->message_type(17);
479   static const int UninterpretedOption_offsets_[7] = {
480     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, name_),
481     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, identifier_value_),
482     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, positive_int_value_),
483     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, negative_int_value_),
484     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, double_value_),
485     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, string_value_),
486     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, aggregate_value_),
487   };
488   UninterpretedOption_reflection_ =
489     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
490       UninterpretedOption_descriptor_,
491       UninterpretedOption::default_instance_,
492       UninterpretedOption_offsets_,
493       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _has_bits_[0]),
494       -1,
495       -1,
496       sizeof(UninterpretedOption),
497       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _internal_metadata_),
498       -1);
499   UninterpretedOption_NamePart_descriptor_ = UninterpretedOption_descriptor_->nested_type(0);
500   static const int UninterpretedOption_NamePart_offsets_[2] = {
501     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, name_part_),
502     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, is_extension_),
503   };
504   UninterpretedOption_NamePart_reflection_ =
505     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
506       UninterpretedOption_NamePart_descriptor_,
507       UninterpretedOption_NamePart::default_instance_,
508       UninterpretedOption_NamePart_offsets_,
509       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _has_bits_[0]),
510       -1,
511       -1,
512       sizeof(UninterpretedOption_NamePart),
513       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _internal_metadata_),
514       -1);
515   SourceCodeInfo_descriptor_ = file->message_type(18);
516   static const int SourceCodeInfo_offsets_[1] = {
517     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, location_),
518   };
519   SourceCodeInfo_reflection_ =
520     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
521       SourceCodeInfo_descriptor_,
522       SourceCodeInfo::default_instance_,
523       SourceCodeInfo_offsets_,
524       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _has_bits_[0]),
525       -1,
526       -1,
527       sizeof(SourceCodeInfo),
528       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _internal_metadata_),
529       -1);
530   SourceCodeInfo_Location_descriptor_ = SourceCodeInfo_descriptor_->nested_type(0);
531   static const int SourceCodeInfo_Location_offsets_[5] = {
532     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, path_),
533     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, span_),
534     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, leading_comments_),
535     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, trailing_comments_),
536     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, leading_detached_comments_),
537   };
538   SourceCodeInfo_Location_reflection_ =
539     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
540       SourceCodeInfo_Location_descriptor_,
541       SourceCodeInfo_Location::default_instance_,
542       SourceCodeInfo_Location_offsets_,
543       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _has_bits_[0]),
544       -1,
545       -1,
546       sizeof(SourceCodeInfo_Location),
547       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _internal_metadata_),
548       -1);
549   GeneratedCodeInfo_descriptor_ = file->message_type(19);
550   static const int GeneratedCodeInfo_offsets_[1] = {
551     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, annotation_),
552   };
553   GeneratedCodeInfo_reflection_ =
554     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
555       GeneratedCodeInfo_descriptor_,
556       GeneratedCodeInfo::default_instance_,
557       GeneratedCodeInfo_offsets_,
558       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, _has_bits_[0]),
559       -1,
560       -1,
561       sizeof(GeneratedCodeInfo),
562       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, _internal_metadata_),
563       -1);
564   GeneratedCodeInfo_Annotation_descriptor_ = GeneratedCodeInfo_descriptor_->nested_type(0);
565   static const int GeneratedCodeInfo_Annotation_offsets_[4] = {
566     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, path_),
567     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, source_file_),
568     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, begin_),
569     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, end_),
570   };
571   GeneratedCodeInfo_Annotation_reflection_ =
572     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
573       GeneratedCodeInfo_Annotation_descriptor_,
574       GeneratedCodeInfo_Annotation::default_instance_,
575       GeneratedCodeInfo_Annotation_offsets_,
576       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _has_bits_[0]),
577       -1,
578       -1,
579       sizeof(GeneratedCodeInfo_Annotation),
580       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _internal_metadata_),
581       -1);
582 }
583 
584 namespace {
585 
586 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
protobuf_AssignDescriptorsOnce()587 inline void protobuf_AssignDescriptorsOnce() {
588   ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
589                  &protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto);
590 }
591 
592 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
protobuf_RegisterTypes(const::std::string &)593 void protobuf_RegisterTypes(const ::std::string&) {
594   protobuf_AssignDescriptorsOnce();
595   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
596       FileDescriptorSet_descriptor_, &FileDescriptorSet::default_instance());
597   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
598       FileDescriptorProto_descriptor_, &FileDescriptorProto::default_instance());
599   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
600       DescriptorProto_descriptor_, &DescriptorProto::default_instance());
601   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
602       DescriptorProto_ExtensionRange_descriptor_, &DescriptorProto_ExtensionRange::default_instance());
603   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
604       DescriptorProto_ReservedRange_descriptor_, &DescriptorProto_ReservedRange::default_instance());
605   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
606       FieldDescriptorProto_descriptor_, &FieldDescriptorProto::default_instance());
607   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
608       OneofDescriptorProto_descriptor_, &OneofDescriptorProto::default_instance());
609   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
610       EnumDescriptorProto_descriptor_, &EnumDescriptorProto::default_instance());
611   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
612       EnumValueDescriptorProto_descriptor_, &EnumValueDescriptorProto::default_instance());
613   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
614       ServiceDescriptorProto_descriptor_, &ServiceDescriptorProto::default_instance());
615   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
616       MethodDescriptorProto_descriptor_, &MethodDescriptorProto::default_instance());
617   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
618       FileOptions_descriptor_, &FileOptions::default_instance());
619   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
620       MessageOptions_descriptor_, &MessageOptions::default_instance());
621   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
622       FieldOptions_descriptor_, &FieldOptions::default_instance());
623   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
624       OneofOptions_descriptor_, &OneofOptions::default_instance());
625   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
626       EnumOptions_descriptor_, &EnumOptions::default_instance());
627   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
628       EnumValueOptions_descriptor_, &EnumValueOptions::default_instance());
629   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
630       ServiceOptions_descriptor_, &ServiceOptions::default_instance());
631   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
632       MethodOptions_descriptor_, &MethodOptions::default_instance());
633   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
634       UninterpretedOption_descriptor_, &UninterpretedOption::default_instance());
635   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
636       UninterpretedOption_NamePart_descriptor_, &UninterpretedOption_NamePart::default_instance());
637   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
638       SourceCodeInfo_descriptor_, &SourceCodeInfo::default_instance());
639   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
640       SourceCodeInfo_Location_descriptor_, &SourceCodeInfo_Location::default_instance());
641   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
642       GeneratedCodeInfo_descriptor_, &GeneratedCodeInfo::default_instance());
643   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
644       GeneratedCodeInfo_Annotation_descriptor_, &GeneratedCodeInfo_Annotation::default_instance());
645 }
646 
647 }  // namespace
648 
protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto()649 void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto() {
650   delete FileDescriptorSet::default_instance_;
651   delete FileDescriptorSet_reflection_;
652   delete FileDescriptorProto::default_instance_;
653   delete FileDescriptorProto_reflection_;
654   delete DescriptorProto::default_instance_;
655   delete DescriptorProto_reflection_;
656   delete DescriptorProto_ExtensionRange::default_instance_;
657   delete DescriptorProto_ExtensionRange_reflection_;
658   delete DescriptorProto_ReservedRange::default_instance_;
659   delete DescriptorProto_ReservedRange_reflection_;
660   delete FieldDescriptorProto::default_instance_;
661   delete FieldDescriptorProto_reflection_;
662   delete OneofDescriptorProto::default_instance_;
663   delete OneofDescriptorProto_reflection_;
664   delete EnumDescriptorProto::default_instance_;
665   delete EnumDescriptorProto_reflection_;
666   delete EnumValueDescriptorProto::default_instance_;
667   delete EnumValueDescriptorProto_reflection_;
668   delete ServiceDescriptorProto::default_instance_;
669   delete ServiceDescriptorProto_reflection_;
670   delete MethodDescriptorProto::default_instance_;
671   delete MethodDescriptorProto_reflection_;
672   delete FileOptions::default_instance_;
673   delete FileOptions_reflection_;
674   delete MessageOptions::default_instance_;
675   delete MessageOptions_reflection_;
676   delete FieldOptions::default_instance_;
677   delete FieldOptions_reflection_;
678   delete OneofOptions::default_instance_;
679   delete OneofOptions_reflection_;
680   delete EnumOptions::default_instance_;
681   delete EnumOptions_reflection_;
682   delete EnumValueOptions::default_instance_;
683   delete EnumValueOptions_reflection_;
684   delete ServiceOptions::default_instance_;
685   delete ServiceOptions_reflection_;
686   delete MethodOptions::default_instance_;
687   delete MethodOptions_reflection_;
688   delete UninterpretedOption::default_instance_;
689   delete UninterpretedOption_reflection_;
690   delete UninterpretedOption_NamePart::default_instance_;
691   delete UninterpretedOption_NamePart_reflection_;
692   delete SourceCodeInfo::default_instance_;
693   delete SourceCodeInfo_reflection_;
694   delete SourceCodeInfo_Location::default_instance_;
695   delete SourceCodeInfo_Location_reflection_;
696   delete GeneratedCodeInfo::default_instance_;
697   delete GeneratedCodeInfo_reflection_;
698   delete GeneratedCodeInfo_Annotation::default_instance_;
699   delete GeneratedCodeInfo_Annotation_reflection_;
700 }
701 
702 void protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto() GOOGLE_ATTRIBUTE_COLD;
protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto()703 void protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto() {
704   static bool already_here = false;
705   if (already_here) return;
706   already_here = true;
707   GOOGLE_PROTOBUF_VERIFY_VERSION;
708 
709   ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
710     "\n google/protobuf/descriptor.proto\022\017goog"
711     "le.protobuf\"G\n\021FileDescriptorSet\0222\n\004file"
712     "\030\001 \003(\0132$.google.protobuf.FileDescriptorP"
713     "roto\"\333\003\n\023FileDescriptorProto\022\014\n\004name\030\001 \001"
714     "(\t\022\017\n\007package\030\002 \001(\t\022\022\n\ndependency\030\003 \003(\t\022"
715     "\031\n\021public_dependency\030\n \003(\005\022\027\n\017weak_depen"
716     "dency\030\013 \003(\005\0226\n\014message_type\030\004 \003(\0132 .goog"
717     "le.protobuf.DescriptorProto\0227\n\tenum_type"
718     "\030\005 \003(\0132$.google.protobuf.EnumDescriptorP"
719     "roto\0228\n\007service\030\006 \003(\0132\'.google.protobuf."
720     "ServiceDescriptorProto\0228\n\textension\030\007 \003("
721     "\0132%.google.protobuf.FieldDescriptorProto"
722     "\022-\n\007options\030\010 \001(\0132\034.google.protobuf.File"
723     "Options\0229\n\020source_code_info\030\t \001(\0132\037.goog"
724     "le.protobuf.SourceCodeInfo\022\016\n\006syntax\030\014 \001"
725     "(\t\"\360\004\n\017DescriptorProto\022\014\n\004name\030\001 \001(\t\0224\n\005"
726     "field\030\002 \003(\0132%.google.protobuf.FieldDescr"
727     "iptorProto\0228\n\textension\030\006 \003(\0132%.google.p"
728     "rotobuf.FieldDescriptorProto\0225\n\013nested_t"
729     "ype\030\003 \003(\0132 .google.protobuf.DescriptorPr"
730     "oto\0227\n\tenum_type\030\004 \003(\0132$.google.protobuf"
731     ".EnumDescriptorProto\022H\n\017extension_range\030"
732     "\005 \003(\0132/.google.protobuf.DescriptorProto."
733     "ExtensionRange\0229\n\noneof_decl\030\010 \003(\0132%.goo"
734     "gle.protobuf.OneofDescriptorProto\0220\n\007opt"
735     "ions\030\007 \001(\0132\037.google.protobuf.MessageOpti"
736     "ons\022F\n\016reserved_range\030\t \003(\0132..google.pro"
737     "tobuf.DescriptorProto.ReservedRange\022\025\n\rr"
738     "eserved_name\030\n \003(\t\032,\n\016ExtensionRange\022\r\n\005"
739     "start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\032+\n\rReservedRang"
740     "e\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"\274\005\n\024FieldD"
741     "escriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n\006number\030\003"
742     " \001(\005\022:\n\005label\030\004 \001(\0162+.google.protobuf.Fi"
743     "eldDescriptorProto.Label\0228\n\004type\030\005 \001(\0162*"
744     ".google.protobuf.FieldDescriptorProto.Ty"
745     "pe\022\021\n\ttype_name\030\006 \001(\t\022\020\n\010extendee\030\002 \001(\t\022"
746     "\025\n\rdefault_value\030\007 \001(\t\022\023\n\013oneof_index\030\t "
747     "\001(\005\022\021\n\tjson_name\030\n \001(\t\022.\n\007options\030\010 \001(\0132"
748     "\035.google.protobuf.FieldOptions\"\266\002\n\004Type\022"
749     "\017\n\013TYPE_DOUBLE\020\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTYPE"
750     "_INT64\020\003\022\017\n\013TYPE_UINT64\020\004\022\016\n\nTYPE_INT32\020"
751     "\005\022\020\n\014TYPE_FIXED64\020\006\022\020\n\014TYPE_FIXED32\020\007\022\r\n"
752     "\tTYPE_BOOL\020\010\022\017\n\013TYPE_STRING\020\t\022\016\n\nTYPE_GR"
753     "OUP\020\n\022\020\n\014TYPE_MESSAGE\020\013\022\016\n\nTYPE_BYTES\020\014\022"
754     "\017\n\013TYPE_UINT32\020\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_"
755     "SFIXED32\020\017\022\021\n\rTYPE_SFIXED64\020\020\022\017\n\013TYPE_SI"
756     "NT32\020\021\022\017\n\013TYPE_SINT64\020\022\"C\n\005Label\022\022\n\016LABE"
757     "L_OPTIONAL\020\001\022\022\n\016LABEL_REQUIRED\020\002\022\022\n\016LABE"
758     "L_REPEATED\020\003\"T\n\024OneofDescriptorProto\022\014\n\004"
759     "name\030\001 \001(\t\022.\n\007options\030\002 \001(\0132\035.google.pro"
760     "tobuf.OneofOptions\"\214\001\n\023EnumDescriptorPro"
761     "to\022\014\n\004name\030\001 \001(\t\0228\n\005value\030\002 \003(\0132).google"
762     ".protobuf.EnumValueDescriptorProto\022-\n\007op"
763     "tions\030\003 \001(\0132\034.google.protobuf.EnumOption"
764     "s\"l\n\030EnumValueDescriptorProto\022\014\n\004name\030\001 "
765     "\001(\t\022\016\n\006number\030\002 \001(\005\0222\n\007options\030\003 \001(\0132!.g"
766     "oogle.protobuf.EnumValueOptions\"\220\001\n\026Serv"
767     "iceDescriptorProto\022\014\n\004name\030\001 \001(\t\0226\n\006meth"
768     "od\030\002 \003(\0132&.google.protobuf.MethodDescrip"
769     "torProto\0220\n\007options\030\003 \001(\0132\037.google.proto"
770     "buf.ServiceOptions\"\301\001\n\025MethodDescriptorP"
771     "roto\022\014\n\004name\030\001 \001(\t\022\022\n\ninput_type\030\002 \001(\t\022\023"
772     "\n\013output_type\030\003 \001(\t\022/\n\007options\030\004 \001(\0132\036.g"
773     "oogle.protobuf.MethodOptions\022\037\n\020client_s"
774     "treaming\030\005 \001(\010:\005false\022\037\n\020server_streamin"
775     "g\030\006 \001(\010:\005false\"\207\005\n\013FileOptions\022\024\n\014java_p"
776     "ackage\030\001 \001(\t\022\034\n\024java_outer_classname\030\010 \001"
777     "(\t\022\"\n\023java_multiple_files\030\n \001(\010:\005false\022,"
778     "\n\035java_generate_equals_and_hash\030\024 \001(\010:\005f"
779     "alse\022%\n\026java_string_check_utf8\030\033 \001(\010:\005fa"
780     "lse\022F\n\014optimize_for\030\t \001(\0162).google.proto"
781     "buf.FileOptions.OptimizeMode:\005SPEED\022\022\n\ng"
782     "o_package\030\013 \001(\t\022\"\n\023cc_generic_services\030\020"
783     " \001(\010:\005false\022$\n\025java_generic_services\030\021 \001"
784     "(\010:\005false\022\"\n\023py_generic_services\030\022 \001(\010:\005"
785     "false\022\031\n\ndeprecated\030\027 \001(\010:\005false\022\037\n\020cc_e"
786     "nable_arenas\030\037 \001(\010:\005false\022\031\n\021objc_class_"
787     "prefix\030$ \001(\t\022\030\n\020csharp_namespace\030% \001(\t\022C"
788     "\n\024uninterpreted_option\030\347\007 \003(\0132$.google.p"
789     "rotobuf.UninterpretedOption\":\n\014OptimizeM"
790     "ode\022\t\n\005SPEED\020\001\022\r\n\tCODE_SIZE\020\002\022\020\n\014LITE_RU"
791     "NTIME\020\003*\t\010\350\007\020\200\200\200\200\002J\004\010&\020\'\"\346\001\n\016MessageOpti"
792     "ons\022&\n\027message_set_wire_format\030\001 \001(\010:\005fa"
793     "lse\022.\n\037no_standard_descriptor_accessor\030\002"
794     " \001(\010:\005false\022\031\n\ndeprecated\030\003 \001(\010:\005false\022\021"
795     "\n\tmap_entry\030\007 \001(\010\022C\n\024uninterpreted_optio"
796     "n\030\347\007 \003(\0132$.google.protobuf.Uninterpreted"
797     "Option*\t\010\350\007\020\200\200\200\200\002\"\230\003\n\014FieldOptions\022:\n\005ct"
798     "ype\030\001 \001(\0162#.google.protobuf.FieldOptions"
799     ".CType:\006STRING\022\016\n\006packed\030\002 \001(\010\022\?\n\006jstype"
800     "\030\006 \001(\0162$.google.protobuf.FieldOptions.JS"
801     "Type:\tJS_NORMAL\022\023\n\004lazy\030\005 \001(\010:\005false\022\031\n\n"
802     "deprecated\030\003 \001(\010:\005false\022\023\n\004weak\030\n \001(\010:\005f"
803     "alse\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.go"
804     "ogle.protobuf.UninterpretedOption\"/\n\005CTy"
805     "pe\022\n\n\006STRING\020\000\022\010\n\004CORD\020\001\022\020\n\014STRING_PIECE"
806     "\020\002\"5\n\006JSType\022\r\n\tJS_NORMAL\020\000\022\r\n\tJS_STRING"
807     "\020\001\022\r\n\tJS_NUMBER\020\002*\t\010\350\007\020\200\200\200\200\002\"^\n\014OneofOpt"
808     "ions\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.go"
809     "ogle.protobuf.UninterpretedOption*\t\010\350\007\020\200"
810     "\200\200\200\002\"\215\001\n\013EnumOptions\022\023\n\013allow_alias\030\002 \001("
811     "\010\022\031\n\ndeprecated\030\003 \001(\010:\005false\022C\n\024uninterp"
812     "reted_option\030\347\007 \003(\0132$.google.protobuf.Un"
813     "interpretedOption*\t\010\350\007\020\200\200\200\200\002\"}\n\020EnumValu"
814     "eOptions\022\031\n\ndeprecated\030\001 \001(\010:\005false\022C\n\024u"
815     "ninterpreted_option\030\347\007 \003(\0132$.google.prot"
816     "obuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\"{\n\016S"
817     "erviceOptions\022\031\n\ndeprecated\030! \001(\010:\005false"
818     "\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.google"
819     ".protobuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002"
820     "\"z\n\rMethodOptions\022\031\n\ndeprecated\030! \001(\010:\005f"
821     "alse\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.go"
822     "ogle.protobuf.UninterpretedOption*\t\010\350\007\020\200"
823     "\200\200\200\002\"\236\002\n\023UninterpretedOption\022;\n\004name\030\002 \003"
824     "(\0132-.google.protobuf.UninterpretedOption"
825     ".NamePart\022\030\n\020identifier_value\030\003 \001(\t\022\032\n\022p"
826     "ositive_int_value\030\004 \001(\004\022\032\n\022negative_int_"
827     "value\030\005 \001(\003\022\024\n\014double_value\030\006 \001(\001\022\024\n\014str"
828     "ing_value\030\007 \001(\014\022\027\n\017aggregate_value\030\010 \001(\t"
829     "\0323\n\010NamePart\022\021\n\tname_part\030\001 \002(\t\022\024\n\014is_ex"
830     "tension\030\002 \002(\010\"\325\001\n\016SourceCodeInfo\022:\n\010loca"
831     "tion\030\001 \003(\0132(.google.protobuf.SourceCodeI"
832     "nfo.Location\032\206\001\n\010Location\022\020\n\004path\030\001 \003(\005B"
833     "\002\020\001\022\020\n\004span\030\002 \003(\005B\002\020\001\022\030\n\020leading_comment"
834     "s\030\003 \001(\t\022\031\n\021trailing_comments\030\004 \001(\t\022!\n\031le"
835     "ading_detached_comments\030\006 \003(\t\"\247\001\n\021Genera"
836     "tedCodeInfo\022A\n\nannotation\030\001 \003(\0132-.google"
837     ".protobuf.GeneratedCodeInfo.Annotation\032O"
838     "\n\nAnnotation\022\020\n\004path\030\001 \003(\005B\002\020\001\022\023\n\013source"
839     "_file\030\002 \001(\t\022\r\n\005begin\030\003 \001(\005\022\013\n\003end\030\004 \001(\005B"
840     "[\n\023com.google.protobufB\020DescriptorProtos"
841     "H\001Z\ndescriptor\240\001\001\242\002\003GPB\252\002\032Google.Protobu"
842     "f.Reflection", 5292);
843   ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
844     "google/protobuf/descriptor.proto", &protobuf_RegisterTypes);
845   FileDescriptorSet::default_instance_ = new FileDescriptorSet();
846   FileDescriptorProto::default_instance_ = new FileDescriptorProto();
847   DescriptorProto::default_instance_ = new DescriptorProto();
848   DescriptorProto_ExtensionRange::default_instance_ = new DescriptorProto_ExtensionRange();
849   DescriptorProto_ReservedRange::default_instance_ = new DescriptorProto_ReservedRange();
850   FieldDescriptorProto::default_instance_ = new FieldDescriptorProto();
851   OneofDescriptorProto::default_instance_ = new OneofDescriptorProto();
852   EnumDescriptorProto::default_instance_ = new EnumDescriptorProto();
853   EnumValueDescriptorProto::default_instance_ = new EnumValueDescriptorProto();
854   ServiceDescriptorProto::default_instance_ = new ServiceDescriptorProto();
855   MethodDescriptorProto::default_instance_ = new MethodDescriptorProto();
856   FileOptions::default_instance_ = new FileOptions();
857   MessageOptions::default_instance_ = new MessageOptions();
858   FieldOptions::default_instance_ = new FieldOptions();
859   OneofOptions::default_instance_ = new OneofOptions();
860   EnumOptions::default_instance_ = new EnumOptions();
861   EnumValueOptions::default_instance_ = new EnumValueOptions();
862   ServiceOptions::default_instance_ = new ServiceOptions();
863   MethodOptions::default_instance_ = new MethodOptions();
864   UninterpretedOption::default_instance_ = new UninterpretedOption();
865   UninterpretedOption_NamePart::default_instance_ = new UninterpretedOption_NamePart();
866   SourceCodeInfo::default_instance_ = new SourceCodeInfo();
867   SourceCodeInfo_Location::default_instance_ = new SourceCodeInfo_Location();
868   GeneratedCodeInfo::default_instance_ = new GeneratedCodeInfo();
869   GeneratedCodeInfo_Annotation::default_instance_ = new GeneratedCodeInfo_Annotation();
870   FileDescriptorSet::default_instance_->InitAsDefaultInstance();
871   FileDescriptorProto::default_instance_->InitAsDefaultInstance();
872   DescriptorProto::default_instance_->InitAsDefaultInstance();
873   DescriptorProto_ExtensionRange::default_instance_->InitAsDefaultInstance();
874   DescriptorProto_ReservedRange::default_instance_->InitAsDefaultInstance();
875   FieldDescriptorProto::default_instance_->InitAsDefaultInstance();
876   OneofDescriptorProto::default_instance_->InitAsDefaultInstance();
877   EnumDescriptorProto::default_instance_->InitAsDefaultInstance();
878   EnumValueDescriptorProto::default_instance_->InitAsDefaultInstance();
879   ServiceDescriptorProto::default_instance_->InitAsDefaultInstance();
880   MethodDescriptorProto::default_instance_->InitAsDefaultInstance();
881   FileOptions::default_instance_->InitAsDefaultInstance();
882   MessageOptions::default_instance_->InitAsDefaultInstance();
883   FieldOptions::default_instance_->InitAsDefaultInstance();
884   OneofOptions::default_instance_->InitAsDefaultInstance();
885   EnumOptions::default_instance_->InitAsDefaultInstance();
886   EnumValueOptions::default_instance_->InitAsDefaultInstance();
887   ServiceOptions::default_instance_->InitAsDefaultInstance();
888   MethodOptions::default_instance_->InitAsDefaultInstance();
889   UninterpretedOption::default_instance_->InitAsDefaultInstance();
890   UninterpretedOption_NamePart::default_instance_->InitAsDefaultInstance();
891   SourceCodeInfo::default_instance_->InitAsDefaultInstance();
892   SourceCodeInfo_Location::default_instance_->InitAsDefaultInstance();
893   GeneratedCodeInfo::default_instance_->InitAsDefaultInstance();
894   GeneratedCodeInfo_Annotation::default_instance_->InitAsDefaultInstance();
895   ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto);
896 }
897 
898 // Force AddDescriptors() to be called at static initialization time.
899 struct StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto {
StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eprotogoogle::protobuf::StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto900   StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto() {
901     protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
902   }
903 } static_descriptor_initializer_google_2fprotobuf_2fdescriptor_2eproto_;
904 
905 // ===================================================================
906 
907 #if !defined(_MSC_VER) || _MSC_VER >= 1900
908 const int FileDescriptorSet::kFileFieldNumber;
909 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
910 
FileDescriptorSet()911 FileDescriptorSet::FileDescriptorSet()
912   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
913   SharedCtor();
914   // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorSet)
915 }
916 
InitAsDefaultInstance()917 void FileDescriptorSet::InitAsDefaultInstance() {
918 }
919 
FileDescriptorSet(const FileDescriptorSet & from)920 FileDescriptorSet::FileDescriptorSet(const FileDescriptorSet& from)
921   : ::google::protobuf::Message(),
922     _internal_metadata_(NULL) {
923   SharedCtor();
924   MergeFrom(from);
925   // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorSet)
926 }
927 
SharedCtor()928 void FileDescriptorSet::SharedCtor() {
929   _cached_size_ = 0;
930   ::memset(_has_bits_, 0, sizeof(_has_bits_));
931 }
932 
~FileDescriptorSet()933 FileDescriptorSet::~FileDescriptorSet() {
934   // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorSet)
935   SharedDtor();
936 }
937 
SharedDtor()938 void FileDescriptorSet::SharedDtor() {
939   if (this != default_instance_) {
940   }
941 }
942 
SetCachedSize(int size) const943 void FileDescriptorSet::SetCachedSize(int size) const {
944   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
945   _cached_size_ = size;
946   GOOGLE_SAFE_CONCURRENT_WRITES_END();
947 }
descriptor()948 const ::google::protobuf::Descriptor* FileDescriptorSet::descriptor() {
949   protobuf_AssignDescriptorsOnce();
950   return FileDescriptorSet_descriptor_;
951 }
952 
default_instance()953 const FileDescriptorSet& FileDescriptorSet::default_instance() {
954   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
955   return *default_instance_;
956 }
957 
958 FileDescriptorSet* FileDescriptorSet::default_instance_ = NULL;
959 
New(::google::protobuf::Arena * arena) const960 FileDescriptorSet* FileDescriptorSet::New(::google::protobuf::Arena* arena) const {
961   FileDescriptorSet* n = new FileDescriptorSet;
962   if (arena != NULL) {
963     arena->Own(n);
964   }
965   return n;
966 }
967 
Clear()968 void FileDescriptorSet::Clear() {
969 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileDescriptorSet)
970   file_.Clear();
971   ::memset(_has_bits_, 0, sizeof(_has_bits_));
972   if (_internal_metadata_.have_unknown_fields()) {
973     mutable_unknown_fields()->Clear();
974   }
975 }
976 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)977 bool FileDescriptorSet::MergePartialFromCodedStream(
978     ::google::protobuf::io::CodedInputStream* input) {
979 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
980   ::google::protobuf::uint32 tag;
981   // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorSet)
982   for (;;) {
983     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
984     tag = p.first;
985     if (!p.second) goto handle_unusual;
986     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
987       // repeated .google.protobuf.FileDescriptorProto file = 1;
988       case 1: {
989         if (tag == 10) {
990           DO_(input->IncrementRecursionDepth());
991          parse_loop_file:
992           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
993                 input, add_file()));
994         } else {
995           goto handle_unusual;
996         }
997         if (input->ExpectTag(10)) goto parse_loop_file;
998         input->UnsafeDecrementRecursionDepth();
999         if (input->ExpectAtEnd()) goto success;
1000         break;
1001       }
1002 
1003       default: {
1004       handle_unusual:
1005         if (tag == 0 ||
1006             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1007             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1008           goto success;
1009         }
1010         DO_(::google::protobuf::internal::WireFormat::SkipField(
1011               input, tag, mutable_unknown_fields()));
1012         break;
1013       }
1014     }
1015   }
1016 success:
1017   // @@protoc_insertion_point(parse_success:google.protobuf.FileDescriptorSet)
1018   return true;
1019 failure:
1020   // @@protoc_insertion_point(parse_failure:google.protobuf.FileDescriptorSet)
1021   return false;
1022 #undef DO_
1023 }
1024 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const1025 void FileDescriptorSet::SerializeWithCachedSizes(
1026     ::google::protobuf::io::CodedOutputStream* output) const {
1027   // @@protoc_insertion_point(serialize_start:google.protobuf.FileDescriptorSet)
1028   // repeated .google.protobuf.FileDescriptorProto file = 1;
1029   for (unsigned int i = 0, n = this->file_size(); i < n; i++) {
1030     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1031       1, this->file(i), output);
1032   }
1033 
1034   if (_internal_metadata_.have_unknown_fields()) {
1035     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1036         unknown_fields(), output);
1037   }
1038   // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorSet)
1039 }
1040 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const1041 ::google::protobuf::uint8* FileDescriptorSet::InternalSerializeWithCachedSizesToArray(
1042     bool deterministic, ::google::protobuf::uint8* target) const {
1043   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorSet)
1044   // repeated .google.protobuf.FileDescriptorProto file = 1;
1045   for (unsigned int i = 0, n = this->file_size(); i < n; i++) {
1046     target = ::google::protobuf::internal::WireFormatLite::
1047       InternalWriteMessageNoVirtualToArray(
1048         1, this->file(i), false, target);
1049   }
1050 
1051   if (_internal_metadata_.have_unknown_fields()) {
1052     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1053         unknown_fields(), target);
1054   }
1055   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescriptorSet)
1056   return target;
1057 }
1058 
ByteSize() const1059 int FileDescriptorSet::ByteSize() const {
1060 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileDescriptorSet)
1061   int total_size = 0;
1062 
1063   // repeated .google.protobuf.FileDescriptorProto file = 1;
1064   total_size += 1 * this->file_size();
1065   for (int i = 0; i < this->file_size(); i++) {
1066     total_size +=
1067       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1068         this->file(i));
1069   }
1070 
1071   if (_internal_metadata_.have_unknown_fields()) {
1072     total_size +=
1073       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1074         unknown_fields());
1075   }
1076   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1077   _cached_size_ = total_size;
1078   GOOGLE_SAFE_CONCURRENT_WRITES_END();
1079   return total_size;
1080 }
1081 
MergeFrom(const::google::protobuf::Message & from)1082 void FileDescriptorSet::MergeFrom(const ::google::protobuf::Message& from) {
1083 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileDescriptorSet)
1084   if (GOOGLE_PREDICT_FALSE(&from == this)) {
1085     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
1086   }
1087   const FileDescriptorSet* source =
1088       ::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorSet>(
1089           &from);
1090   if (source == NULL) {
1091   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FileDescriptorSet)
1092     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1093   } else {
1094   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FileDescriptorSet)
1095     MergeFrom(*source);
1096   }
1097 }
1098 
MergeFrom(const FileDescriptorSet & from)1099 void FileDescriptorSet::MergeFrom(const FileDescriptorSet& from) {
1100 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FileDescriptorSet)
1101   if (GOOGLE_PREDICT_FALSE(&from == this)) {
1102     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
1103   }
1104   file_.MergeFrom(from.file_);
1105   if (from._internal_metadata_.have_unknown_fields()) {
1106     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1107   }
1108 }
1109 
CopyFrom(const::google::protobuf::Message & from)1110 void FileDescriptorSet::CopyFrom(const ::google::protobuf::Message& from) {
1111 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileDescriptorSet)
1112   if (&from == this) return;
1113   Clear();
1114   MergeFrom(from);
1115 }
1116 
CopyFrom(const FileDescriptorSet & from)1117 void FileDescriptorSet::CopyFrom(const FileDescriptorSet& from) {
1118 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileDescriptorSet)
1119   if (&from == this) return;
1120   Clear();
1121   MergeFrom(from);
1122 }
1123 
IsInitialized() const1124 bool FileDescriptorSet::IsInitialized() const {
1125 
1126   if (!::google::protobuf::internal::AllAreInitialized(this->file())) return false;
1127   return true;
1128 }
1129 
Swap(FileDescriptorSet * other)1130 void FileDescriptorSet::Swap(FileDescriptorSet* other) {
1131   if (other == this) return;
1132   InternalSwap(other);
1133 }
InternalSwap(FileDescriptorSet * other)1134 void FileDescriptorSet::InternalSwap(FileDescriptorSet* other) {
1135   file_.UnsafeArenaSwap(&other->file_);
1136   std::swap(_has_bits_[0], other->_has_bits_[0]);
1137   _internal_metadata_.Swap(&other->_internal_metadata_);
1138   std::swap(_cached_size_, other->_cached_size_);
1139 }
1140 
GetMetadata() const1141 ::google::protobuf::Metadata FileDescriptorSet::GetMetadata() const {
1142   protobuf_AssignDescriptorsOnce();
1143   ::google::protobuf::Metadata metadata;
1144   metadata.descriptor = FileDescriptorSet_descriptor_;
1145   metadata.reflection = FileDescriptorSet_reflection_;
1146   return metadata;
1147 }
1148 
1149 #if PROTOBUF_INLINE_NOT_IN_HEADERS
1150 // FileDescriptorSet
1151 
1152 // repeated .google.protobuf.FileDescriptorProto file = 1;
file_size() const1153 int FileDescriptorSet::file_size() const {
1154   return file_.size();
1155 }
clear_file()1156 void FileDescriptorSet::clear_file() {
1157   file_.Clear();
1158 }
file(int index) const1159 const ::google::protobuf::FileDescriptorProto& FileDescriptorSet::file(int index) const {
1160   // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorSet.file)
1161   return file_.Get(index);
1162 }
mutable_file(int index)1163 ::google::protobuf::FileDescriptorProto* FileDescriptorSet::mutable_file(int index) {
1164   // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorSet.file)
1165   return file_.Mutable(index);
1166 }
add_file()1167 ::google::protobuf::FileDescriptorProto* FileDescriptorSet::add_file() {
1168   // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorSet.file)
1169   return file_.Add();
1170 }
1171 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
mutable_file()1172 FileDescriptorSet::mutable_file() {
1173   // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorSet.file)
1174   return &file_;
1175 }
1176 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
file() const1177 FileDescriptorSet::file() const {
1178   // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorSet.file)
1179   return file_;
1180 }
1181 
1182 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
1183 
1184 // ===================================================================
1185 
1186 #if !defined(_MSC_VER) || _MSC_VER >= 1900
1187 const int FileDescriptorProto::kNameFieldNumber;
1188 const int FileDescriptorProto::kPackageFieldNumber;
1189 const int FileDescriptorProto::kDependencyFieldNumber;
1190 const int FileDescriptorProto::kPublicDependencyFieldNumber;
1191 const int FileDescriptorProto::kWeakDependencyFieldNumber;
1192 const int FileDescriptorProto::kMessageTypeFieldNumber;
1193 const int FileDescriptorProto::kEnumTypeFieldNumber;
1194 const int FileDescriptorProto::kServiceFieldNumber;
1195 const int FileDescriptorProto::kExtensionFieldNumber;
1196 const int FileDescriptorProto::kOptionsFieldNumber;
1197 const int FileDescriptorProto::kSourceCodeInfoFieldNumber;
1198 const int FileDescriptorProto::kSyntaxFieldNumber;
1199 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1200 
FileDescriptorProto()1201 FileDescriptorProto::FileDescriptorProto()
1202   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1203   SharedCtor();
1204   // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorProto)
1205 }
1206 
InitAsDefaultInstance()1207 void FileDescriptorProto::InitAsDefaultInstance() {
1208   options_ = const_cast< ::google::protobuf::FileOptions*>(&::google::protobuf::FileOptions::default_instance());
1209   source_code_info_ = const_cast< ::google::protobuf::SourceCodeInfo*>(&::google::protobuf::SourceCodeInfo::default_instance());
1210 }
1211 
FileDescriptorProto(const FileDescriptorProto & from)1212 FileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from)
1213   : ::google::protobuf::Message(),
1214     _internal_metadata_(NULL) {
1215   SharedCtor();
1216   MergeFrom(from);
1217   // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorProto)
1218 }
1219 
SharedCtor()1220 void FileDescriptorProto::SharedCtor() {
1221   ::google::protobuf::internal::GetEmptyString();
1222   _cached_size_ = 0;
1223   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1224   package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1225   options_ = NULL;
1226   source_code_info_ = NULL;
1227   syntax_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1228   ::memset(_has_bits_, 0, sizeof(_has_bits_));
1229 }
1230 
~FileDescriptorProto()1231 FileDescriptorProto::~FileDescriptorProto() {
1232   // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorProto)
1233   SharedDtor();
1234 }
1235 
SharedDtor()1236 void FileDescriptorProto::SharedDtor() {
1237   name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1238   package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1239   syntax_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1240   if (this != default_instance_) {
1241     delete options_;
1242     delete source_code_info_;
1243   }
1244 }
1245 
SetCachedSize(int size) const1246 void FileDescriptorProto::SetCachedSize(int size) const {
1247   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1248   _cached_size_ = size;
1249   GOOGLE_SAFE_CONCURRENT_WRITES_END();
1250 }
descriptor()1251 const ::google::protobuf::Descriptor* FileDescriptorProto::descriptor() {
1252   protobuf_AssignDescriptorsOnce();
1253   return FileDescriptorProto_descriptor_;
1254 }
1255 
default_instance()1256 const FileDescriptorProto& FileDescriptorProto::default_instance() {
1257   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
1258   return *default_instance_;
1259 }
1260 
1261 FileDescriptorProto* FileDescriptorProto::default_instance_ = NULL;
1262 
New(::google::protobuf::Arena * arena) const1263 FileDescriptorProto* FileDescriptorProto::New(::google::protobuf::Arena* arena) const {
1264   FileDescriptorProto* n = new FileDescriptorProto;
1265   if (arena != NULL) {
1266     arena->Own(n);
1267   }
1268   return n;
1269 }
1270 
Clear()1271 void FileDescriptorProto::Clear() {
1272 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileDescriptorProto)
1273   if (_has_bits_[0 / 32] & 3u) {
1274     if (has_name()) {
1275       name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1276     }
1277     if (has_package()) {
1278       package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1279     }
1280   }
1281   if (_has_bits_[8 / 32] & 3584u) {
1282     if (has_options()) {
1283       if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear();
1284     }
1285     if (has_source_code_info()) {
1286       if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCodeInfo::Clear();
1287     }
1288     if (has_syntax()) {
1289       syntax_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1290     }
1291   }
1292   dependency_.Clear();
1293   public_dependency_.Clear();
1294   weak_dependency_.Clear();
1295   message_type_.Clear();
1296   enum_type_.Clear();
1297   service_.Clear();
1298   extension_.Clear();
1299   ::memset(_has_bits_, 0, sizeof(_has_bits_));
1300   if (_internal_metadata_.have_unknown_fields()) {
1301     mutable_unknown_fields()->Clear();
1302   }
1303 }
1304 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)1305 bool FileDescriptorProto::MergePartialFromCodedStream(
1306     ::google::protobuf::io::CodedInputStream* input) {
1307 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1308   ::google::protobuf::uint32 tag;
1309   // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorProto)
1310   for (;;) {
1311     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1312     tag = p.first;
1313     if (!p.second) goto handle_unusual;
1314     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1315       // optional string name = 1;
1316       case 1: {
1317         if (tag == 10) {
1318           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1319                 input, this->mutable_name()));
1320           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1321             this->name().data(), this->name().length(),
1322             ::google::protobuf::internal::WireFormat::PARSE,
1323             "google.protobuf.FileDescriptorProto.name");
1324         } else {
1325           goto handle_unusual;
1326         }
1327         if (input->ExpectTag(18)) goto parse_package;
1328         break;
1329       }
1330 
1331       // optional string package = 2;
1332       case 2: {
1333         if (tag == 18) {
1334          parse_package:
1335           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1336                 input, this->mutable_package()));
1337           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1338             this->package().data(), this->package().length(),
1339             ::google::protobuf::internal::WireFormat::PARSE,
1340             "google.protobuf.FileDescriptorProto.package");
1341         } else {
1342           goto handle_unusual;
1343         }
1344         if (input->ExpectTag(26)) goto parse_dependency;
1345         break;
1346       }
1347 
1348       // repeated string dependency = 3;
1349       case 3: {
1350         if (tag == 26) {
1351          parse_dependency:
1352           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1353                 input, this->add_dependency()));
1354           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1355             this->dependency(this->dependency_size() - 1).data(),
1356             this->dependency(this->dependency_size() - 1).length(),
1357             ::google::protobuf::internal::WireFormat::PARSE,
1358             "google.protobuf.FileDescriptorProto.dependency");
1359         } else {
1360           goto handle_unusual;
1361         }
1362         if (input->ExpectTag(26)) goto parse_dependency;
1363         if (input->ExpectTag(34)) goto parse_message_type;
1364         break;
1365       }
1366 
1367       // repeated .google.protobuf.DescriptorProto message_type = 4;
1368       case 4: {
1369         if (tag == 34) {
1370          parse_message_type:
1371           DO_(input->IncrementRecursionDepth());
1372          parse_loop_message_type:
1373           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
1374                 input, add_message_type()));
1375         } else {
1376           goto handle_unusual;
1377         }
1378         if (input->ExpectTag(34)) goto parse_loop_message_type;
1379         if (input->ExpectTag(42)) goto parse_loop_enum_type;
1380         input->UnsafeDecrementRecursionDepth();
1381         break;
1382       }
1383 
1384       // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1385       case 5: {
1386         if (tag == 42) {
1387           DO_(input->IncrementRecursionDepth());
1388          parse_loop_enum_type:
1389           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
1390                 input, add_enum_type()));
1391         } else {
1392           goto handle_unusual;
1393         }
1394         if (input->ExpectTag(42)) goto parse_loop_enum_type;
1395         if (input->ExpectTag(50)) goto parse_loop_service;
1396         input->UnsafeDecrementRecursionDepth();
1397         break;
1398       }
1399 
1400       // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1401       case 6: {
1402         if (tag == 50) {
1403           DO_(input->IncrementRecursionDepth());
1404          parse_loop_service:
1405           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
1406                 input, add_service()));
1407         } else {
1408           goto handle_unusual;
1409         }
1410         if (input->ExpectTag(50)) goto parse_loop_service;
1411         if (input->ExpectTag(58)) goto parse_loop_extension;
1412         input->UnsafeDecrementRecursionDepth();
1413         break;
1414       }
1415 
1416       // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1417       case 7: {
1418         if (tag == 58) {
1419           DO_(input->IncrementRecursionDepth());
1420          parse_loop_extension:
1421           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
1422                 input, add_extension()));
1423         } else {
1424           goto handle_unusual;
1425         }
1426         if (input->ExpectTag(58)) goto parse_loop_extension;
1427         input->UnsafeDecrementRecursionDepth();
1428         if (input->ExpectTag(66)) goto parse_options;
1429         break;
1430       }
1431 
1432       // optional .google.protobuf.FileOptions options = 8;
1433       case 8: {
1434         if (tag == 66) {
1435          parse_options:
1436           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1437                input, mutable_options()));
1438         } else {
1439           goto handle_unusual;
1440         }
1441         if (input->ExpectTag(74)) goto parse_source_code_info;
1442         break;
1443       }
1444 
1445       // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1446       case 9: {
1447         if (tag == 74) {
1448          parse_source_code_info:
1449           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1450                input, mutable_source_code_info()));
1451         } else {
1452           goto handle_unusual;
1453         }
1454         if (input->ExpectTag(80)) goto parse_public_dependency;
1455         break;
1456       }
1457 
1458       // repeated int32 public_dependency = 10;
1459       case 10: {
1460         if (tag == 80) {
1461          parse_public_dependency:
1462           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
1463                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1464                  1, 80, input, this->mutable_public_dependency())));
1465         } else if (tag == 82) {
1466           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
1467                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1468                  input, this->mutable_public_dependency())));
1469         } else {
1470           goto handle_unusual;
1471         }
1472         if (input->ExpectTag(80)) goto parse_public_dependency;
1473         if (input->ExpectTag(88)) goto parse_weak_dependency;
1474         break;
1475       }
1476 
1477       // repeated int32 weak_dependency = 11;
1478       case 11: {
1479         if (tag == 88) {
1480          parse_weak_dependency:
1481           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
1482                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1483                  1, 88, input, this->mutable_weak_dependency())));
1484         } else if (tag == 90) {
1485           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
1486                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1487                  input, this->mutable_weak_dependency())));
1488         } else {
1489           goto handle_unusual;
1490         }
1491         if (input->ExpectTag(88)) goto parse_weak_dependency;
1492         if (input->ExpectTag(98)) goto parse_syntax;
1493         break;
1494       }
1495 
1496       // optional string syntax = 12;
1497       case 12: {
1498         if (tag == 98) {
1499          parse_syntax:
1500           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1501                 input, this->mutable_syntax()));
1502           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1503             this->syntax().data(), this->syntax().length(),
1504             ::google::protobuf::internal::WireFormat::PARSE,
1505             "google.protobuf.FileDescriptorProto.syntax");
1506         } else {
1507           goto handle_unusual;
1508         }
1509         if (input->ExpectAtEnd()) goto success;
1510         break;
1511       }
1512 
1513       default: {
1514       handle_unusual:
1515         if (tag == 0 ||
1516             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1517             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1518           goto success;
1519         }
1520         DO_(::google::protobuf::internal::WireFormat::SkipField(
1521               input, tag, mutable_unknown_fields()));
1522         break;
1523       }
1524     }
1525   }
1526 success:
1527   // @@protoc_insertion_point(parse_success:google.protobuf.FileDescriptorProto)
1528   return true;
1529 failure:
1530   // @@protoc_insertion_point(parse_failure:google.protobuf.FileDescriptorProto)
1531   return false;
1532 #undef DO_
1533 }
1534 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const1535 void FileDescriptorProto::SerializeWithCachedSizes(
1536     ::google::protobuf::io::CodedOutputStream* output) const {
1537   // @@protoc_insertion_point(serialize_start:google.protobuf.FileDescriptorProto)
1538   // optional string name = 1;
1539   if (has_name()) {
1540     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1541       this->name().data(), this->name().length(),
1542       ::google::protobuf::internal::WireFormat::SERIALIZE,
1543       "google.protobuf.FileDescriptorProto.name");
1544     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1545       1, this->name(), output);
1546   }
1547 
1548   // optional string package = 2;
1549   if (has_package()) {
1550     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1551       this->package().data(), this->package().length(),
1552       ::google::protobuf::internal::WireFormat::SERIALIZE,
1553       "google.protobuf.FileDescriptorProto.package");
1554     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1555       2, this->package(), output);
1556   }
1557 
1558   // repeated string dependency = 3;
1559   for (int i = 0; i < this->dependency_size(); i++) {
1560     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1561       this->dependency(i).data(), this->dependency(i).length(),
1562       ::google::protobuf::internal::WireFormat::SERIALIZE,
1563       "google.protobuf.FileDescriptorProto.dependency");
1564     ::google::protobuf::internal::WireFormatLite::WriteString(
1565       3, this->dependency(i), output);
1566   }
1567 
1568   // repeated .google.protobuf.DescriptorProto message_type = 4;
1569   for (unsigned int i = 0, n = this->message_type_size(); i < n; i++) {
1570     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1571       4, this->message_type(i), output);
1572   }
1573 
1574   // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1575   for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) {
1576     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1577       5, this->enum_type(i), output);
1578   }
1579 
1580   // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1581   for (unsigned int i = 0, n = this->service_size(); i < n; i++) {
1582     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1583       6, this->service(i), output);
1584   }
1585 
1586   // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1587   for (unsigned int i = 0, n = this->extension_size(); i < n; i++) {
1588     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1589       7, this->extension(i), output);
1590   }
1591 
1592   // optional .google.protobuf.FileOptions options = 8;
1593   if (has_options()) {
1594     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1595       8, *this->options_, output);
1596   }
1597 
1598   // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1599   if (has_source_code_info()) {
1600     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1601       9, *this->source_code_info_, output);
1602   }
1603 
1604   // repeated int32 public_dependency = 10;
1605   for (int i = 0; i < this->public_dependency_size(); i++) {
1606     ::google::protobuf::internal::WireFormatLite::WriteInt32(
1607       10, this->public_dependency(i), output);
1608   }
1609 
1610   // repeated int32 weak_dependency = 11;
1611   for (int i = 0; i < this->weak_dependency_size(); i++) {
1612     ::google::protobuf::internal::WireFormatLite::WriteInt32(
1613       11, this->weak_dependency(i), output);
1614   }
1615 
1616   // optional string syntax = 12;
1617   if (has_syntax()) {
1618     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1619       this->syntax().data(), this->syntax().length(),
1620       ::google::protobuf::internal::WireFormat::SERIALIZE,
1621       "google.protobuf.FileDescriptorProto.syntax");
1622     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1623       12, this->syntax(), output);
1624   }
1625 
1626   if (_internal_metadata_.have_unknown_fields()) {
1627     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1628         unknown_fields(), output);
1629   }
1630   // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorProto)
1631 }
1632 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const1633 ::google::protobuf::uint8* FileDescriptorProto::InternalSerializeWithCachedSizesToArray(
1634     bool deterministic, ::google::protobuf::uint8* target) const {
1635   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorProto)
1636   // optional string name = 1;
1637   if (has_name()) {
1638     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1639       this->name().data(), this->name().length(),
1640       ::google::protobuf::internal::WireFormat::SERIALIZE,
1641       "google.protobuf.FileDescriptorProto.name");
1642     target =
1643       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1644         1, this->name(), target);
1645   }
1646 
1647   // optional string package = 2;
1648   if (has_package()) {
1649     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1650       this->package().data(), this->package().length(),
1651       ::google::protobuf::internal::WireFormat::SERIALIZE,
1652       "google.protobuf.FileDescriptorProto.package");
1653     target =
1654       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1655         2, this->package(), target);
1656   }
1657 
1658   // repeated string dependency = 3;
1659   for (int i = 0; i < this->dependency_size(); i++) {
1660     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1661       this->dependency(i).data(), this->dependency(i).length(),
1662       ::google::protobuf::internal::WireFormat::SERIALIZE,
1663       "google.protobuf.FileDescriptorProto.dependency");
1664     target = ::google::protobuf::internal::WireFormatLite::
1665       WriteStringToArray(3, this->dependency(i), target);
1666   }
1667 
1668   // repeated .google.protobuf.DescriptorProto message_type = 4;
1669   for (unsigned int i = 0, n = this->message_type_size(); i < n; i++) {
1670     target = ::google::protobuf::internal::WireFormatLite::
1671       InternalWriteMessageNoVirtualToArray(
1672         4, this->message_type(i), false, target);
1673   }
1674 
1675   // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1676   for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) {
1677     target = ::google::protobuf::internal::WireFormatLite::
1678       InternalWriteMessageNoVirtualToArray(
1679         5, this->enum_type(i), false, target);
1680   }
1681 
1682   // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1683   for (unsigned int i = 0, n = this->service_size(); i < n; i++) {
1684     target = ::google::protobuf::internal::WireFormatLite::
1685       InternalWriteMessageNoVirtualToArray(
1686         6, this->service(i), false, target);
1687   }
1688 
1689   // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1690   for (unsigned int i = 0, n = this->extension_size(); i < n; i++) {
1691     target = ::google::protobuf::internal::WireFormatLite::
1692       InternalWriteMessageNoVirtualToArray(
1693         7, this->extension(i), false, target);
1694   }
1695 
1696   // optional .google.protobuf.FileOptions options = 8;
1697   if (has_options()) {
1698     target = ::google::protobuf::internal::WireFormatLite::
1699       InternalWriteMessageNoVirtualToArray(
1700         8, *this->options_, false, target);
1701   }
1702 
1703   // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1704   if (has_source_code_info()) {
1705     target = ::google::protobuf::internal::WireFormatLite::
1706       InternalWriteMessageNoVirtualToArray(
1707         9, *this->source_code_info_, false, target);
1708   }
1709 
1710   // repeated int32 public_dependency = 10;
1711   for (int i = 0; i < this->public_dependency_size(); i++) {
1712     target = ::google::protobuf::internal::WireFormatLite::
1713       WriteInt32ToArray(10, this->public_dependency(i), target);
1714   }
1715 
1716   // repeated int32 weak_dependency = 11;
1717   for (int i = 0; i < this->weak_dependency_size(); i++) {
1718     target = ::google::protobuf::internal::WireFormatLite::
1719       WriteInt32ToArray(11, this->weak_dependency(i), target);
1720   }
1721 
1722   // optional string syntax = 12;
1723   if (has_syntax()) {
1724     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1725       this->syntax().data(), this->syntax().length(),
1726       ::google::protobuf::internal::WireFormat::SERIALIZE,
1727       "google.protobuf.FileDescriptorProto.syntax");
1728     target =
1729       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1730         12, this->syntax(), target);
1731   }
1732 
1733   if (_internal_metadata_.have_unknown_fields()) {
1734     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1735         unknown_fields(), target);
1736   }
1737   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescriptorProto)
1738   return target;
1739 }
1740 
ByteSize() const1741 int FileDescriptorProto::ByteSize() const {
1742 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileDescriptorProto)
1743   int total_size = 0;
1744 
1745   if (_has_bits_[0 / 32] & 3u) {
1746     // optional string name = 1;
1747     if (has_name()) {
1748       total_size += 1 +
1749         ::google::protobuf::internal::WireFormatLite::StringSize(
1750           this->name());
1751     }
1752 
1753     // optional string package = 2;
1754     if (has_package()) {
1755       total_size += 1 +
1756         ::google::protobuf::internal::WireFormatLite::StringSize(
1757           this->package());
1758     }
1759 
1760   }
1761   if (_has_bits_[9 / 32] & 3584u) {
1762     // optional .google.protobuf.FileOptions options = 8;
1763     if (has_options()) {
1764       total_size += 1 +
1765         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1766           *this->options_);
1767     }
1768 
1769     // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1770     if (has_source_code_info()) {
1771       total_size += 1 +
1772         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1773           *this->source_code_info_);
1774     }
1775 
1776     // optional string syntax = 12;
1777     if (has_syntax()) {
1778       total_size += 1 +
1779         ::google::protobuf::internal::WireFormatLite::StringSize(
1780           this->syntax());
1781     }
1782 
1783   }
1784   // repeated string dependency = 3;
1785   total_size += 1 * this->dependency_size();
1786   for (int i = 0; i < this->dependency_size(); i++) {
1787     total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
1788       this->dependency(i));
1789   }
1790 
1791   // repeated int32 public_dependency = 10;
1792   {
1793     int data_size = 0;
1794     for (int i = 0; i < this->public_dependency_size(); i++) {
1795       data_size += ::google::protobuf::internal::WireFormatLite::
1796         Int32Size(this->public_dependency(i));
1797     }
1798     total_size += 1 * this->public_dependency_size() + data_size;
1799   }
1800 
1801   // repeated int32 weak_dependency = 11;
1802   {
1803     int data_size = 0;
1804     for (int i = 0; i < this->weak_dependency_size(); i++) {
1805       data_size += ::google::protobuf::internal::WireFormatLite::
1806         Int32Size(this->weak_dependency(i));
1807     }
1808     total_size += 1 * this->weak_dependency_size() + data_size;
1809   }
1810 
1811   // repeated .google.protobuf.DescriptorProto message_type = 4;
1812   total_size += 1 * this->message_type_size();
1813   for (int i = 0; i < this->message_type_size(); i++) {
1814     total_size +=
1815       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1816         this->message_type(i));
1817   }
1818 
1819   // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1820   total_size += 1 * this->enum_type_size();
1821   for (int i = 0; i < this->enum_type_size(); i++) {
1822     total_size +=
1823       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1824         this->enum_type(i));
1825   }
1826 
1827   // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1828   total_size += 1 * this->service_size();
1829   for (int i = 0; i < this->service_size(); i++) {
1830     total_size +=
1831       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1832         this->service(i));
1833   }
1834 
1835   // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1836   total_size += 1 * this->extension_size();
1837   for (int i = 0; i < this->extension_size(); i++) {
1838     total_size +=
1839       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1840         this->extension(i));
1841   }
1842 
1843   if (_internal_metadata_.have_unknown_fields()) {
1844     total_size +=
1845       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1846         unknown_fields());
1847   }
1848   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1849   _cached_size_ = total_size;
1850   GOOGLE_SAFE_CONCURRENT_WRITES_END();
1851   return total_size;
1852 }
1853 
MergeFrom(const::google::protobuf::Message & from)1854 void FileDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
1855 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileDescriptorProto)
1856   if (GOOGLE_PREDICT_FALSE(&from == this)) {
1857     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
1858   }
1859   const FileDescriptorProto* source =
1860       ::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorProto>(
1861           &from);
1862   if (source == NULL) {
1863   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FileDescriptorProto)
1864     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1865   } else {
1866   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FileDescriptorProto)
1867     MergeFrom(*source);
1868   }
1869 }
1870 
MergeFrom(const FileDescriptorProto & from)1871 void FileDescriptorProto::MergeFrom(const FileDescriptorProto& from) {
1872 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FileDescriptorProto)
1873   if (GOOGLE_PREDICT_FALSE(&from == this)) {
1874     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
1875   }
1876   dependency_.MergeFrom(from.dependency_);
1877   public_dependency_.MergeFrom(from.public_dependency_);
1878   weak_dependency_.MergeFrom(from.weak_dependency_);
1879   message_type_.MergeFrom(from.message_type_);
1880   enum_type_.MergeFrom(from.enum_type_);
1881   service_.MergeFrom(from.service_);
1882   extension_.MergeFrom(from.extension_);
1883   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1884     if (from.has_name()) {
1885       set_has_name();
1886       name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
1887     }
1888     if (from.has_package()) {
1889       set_has_package();
1890       package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.package_);
1891     }
1892   }
1893   if (from._has_bits_[9 / 32] & (0xffu << (9 % 32))) {
1894     if (from.has_options()) {
1895       mutable_options()->::google::protobuf::FileOptions::MergeFrom(from.options());
1896     }
1897     if (from.has_source_code_info()) {
1898       mutable_source_code_info()->::google::protobuf::SourceCodeInfo::MergeFrom(from.source_code_info());
1899     }
1900     if (from.has_syntax()) {
1901       set_has_syntax();
1902       syntax_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.syntax_);
1903     }
1904   }
1905   if (from._internal_metadata_.have_unknown_fields()) {
1906     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1907   }
1908 }
1909 
CopyFrom(const::google::protobuf::Message & from)1910 void FileDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
1911 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileDescriptorProto)
1912   if (&from == this) return;
1913   Clear();
1914   MergeFrom(from);
1915 }
1916 
CopyFrom(const FileDescriptorProto & from)1917 void FileDescriptorProto::CopyFrom(const FileDescriptorProto& from) {
1918 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileDescriptorProto)
1919   if (&from == this) return;
1920   Clear();
1921   MergeFrom(from);
1922 }
1923 
IsInitialized() const1924 bool FileDescriptorProto::IsInitialized() const {
1925 
1926   if (!::google::protobuf::internal::AllAreInitialized(this->message_type())) return false;
1927   if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) return false;
1928   if (!::google::protobuf::internal::AllAreInitialized(this->service())) return false;
1929   if (!::google::protobuf::internal::AllAreInitialized(this->extension())) return false;
1930   if (has_options()) {
1931     if (!this->options_->IsInitialized()) return false;
1932   }
1933   return true;
1934 }
1935 
Swap(FileDescriptorProto * other)1936 void FileDescriptorProto::Swap(FileDescriptorProto* other) {
1937   if (other == this) return;
1938   InternalSwap(other);
1939 }
InternalSwap(FileDescriptorProto * other)1940 void FileDescriptorProto::InternalSwap(FileDescriptorProto* other) {
1941   name_.Swap(&other->name_);
1942   package_.Swap(&other->package_);
1943   dependency_.UnsafeArenaSwap(&other->dependency_);
1944   public_dependency_.UnsafeArenaSwap(&other->public_dependency_);
1945   weak_dependency_.UnsafeArenaSwap(&other->weak_dependency_);
1946   message_type_.UnsafeArenaSwap(&other->message_type_);
1947   enum_type_.UnsafeArenaSwap(&other->enum_type_);
1948   service_.UnsafeArenaSwap(&other->service_);
1949   extension_.UnsafeArenaSwap(&other->extension_);
1950   std::swap(options_, other->options_);
1951   std::swap(source_code_info_, other->source_code_info_);
1952   syntax_.Swap(&other->syntax_);
1953   std::swap(_has_bits_[0], other->_has_bits_[0]);
1954   _internal_metadata_.Swap(&other->_internal_metadata_);
1955   std::swap(_cached_size_, other->_cached_size_);
1956 }
1957 
GetMetadata() const1958 ::google::protobuf::Metadata FileDescriptorProto::GetMetadata() const {
1959   protobuf_AssignDescriptorsOnce();
1960   ::google::protobuf::Metadata metadata;
1961   metadata.descriptor = FileDescriptorProto_descriptor_;
1962   metadata.reflection = FileDescriptorProto_reflection_;
1963   return metadata;
1964 }
1965 
1966 #if PROTOBUF_INLINE_NOT_IN_HEADERS
1967 // FileDescriptorProto
1968 
1969 // optional string name = 1;
has_name() const1970 bool FileDescriptorProto::has_name() const {
1971   return (_has_bits_[0] & 0x00000001u) != 0;
1972 }
set_has_name()1973 void FileDescriptorProto::set_has_name() {
1974   _has_bits_[0] |= 0x00000001u;
1975 }
clear_has_name()1976 void FileDescriptorProto::clear_has_name() {
1977   _has_bits_[0] &= ~0x00000001u;
1978 }
clear_name()1979 void FileDescriptorProto::clear_name() {
1980   name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1981   clear_has_name();
1982 }
name() const1983  const ::std::string& FileDescriptorProto::name() const {
1984   // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.name)
1985   return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1986 }
set_name(const::std::string & value)1987  void FileDescriptorProto::set_name(const ::std::string& value) {
1988   set_has_name();
1989   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1990   // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.name)
1991 }
set_name(const char * value)1992  void FileDescriptorProto::set_name(const char* value) {
1993   set_has_name();
1994   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1995   // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.name)
1996 }
set_name(const char * value,size_t size)1997  void FileDescriptorProto::set_name(const char* value, size_t size) {
1998   set_has_name();
1999   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2000       ::std::string(reinterpret_cast<const char*>(value), size));
2001   // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.name)
2002 }
mutable_name()2003  ::std::string* FileDescriptorProto::mutable_name() {
2004   set_has_name();
2005   // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.name)
2006   return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2007 }
release_name()2008  ::std::string* FileDescriptorProto::release_name() {
2009   // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.name)
2010   clear_has_name();
2011   return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2012 }
set_allocated_name(::std::string * name)2013  void FileDescriptorProto::set_allocated_name(::std::string* name) {
2014   if (name != NULL) {
2015     set_has_name();
2016   } else {
2017     clear_has_name();
2018   }
2019   name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
2020   // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.name)
2021 }
2022 
2023 // optional string package = 2;
has_package() const2024 bool FileDescriptorProto::has_package() const {
2025   return (_has_bits_[0] & 0x00000002u) != 0;
2026 }
set_has_package()2027 void FileDescriptorProto::set_has_package() {
2028   _has_bits_[0] |= 0x00000002u;
2029 }
clear_has_package()2030 void FileDescriptorProto::clear_has_package() {
2031   _has_bits_[0] &= ~0x00000002u;
2032 }
clear_package()2033 void FileDescriptorProto::clear_package() {
2034   package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2035   clear_has_package();
2036 }
package() const2037  const ::std::string& FileDescriptorProto::package() const {
2038   // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.package)
2039   return package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2040 }
set_package(const::std::string & value)2041  void FileDescriptorProto::set_package(const ::std::string& value) {
2042   set_has_package();
2043   package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2044   // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.package)
2045 }
set_package(const char * value)2046  void FileDescriptorProto::set_package(const char* value) {
2047   set_has_package();
2048   package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2049   // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.package)
2050 }
set_package(const char * value,size_t size)2051  void FileDescriptorProto::set_package(const char* value, size_t size) {
2052   set_has_package();
2053   package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2054       ::std::string(reinterpret_cast<const char*>(value), size));
2055   // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.package)
2056 }
mutable_package()2057  ::std::string* FileDescriptorProto::mutable_package() {
2058   set_has_package();
2059   // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.package)
2060   return package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2061 }
release_package()2062  ::std::string* FileDescriptorProto::release_package() {
2063   // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.package)
2064   clear_has_package();
2065   return package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2066 }
set_allocated_package(::std::string * package)2067  void FileDescriptorProto::set_allocated_package(::std::string* package) {
2068   if (package != NULL) {
2069     set_has_package();
2070   } else {
2071     clear_has_package();
2072   }
2073   package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), package);
2074   // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.package)
2075 }
2076 
2077 // repeated string dependency = 3;
dependency_size() const2078 int FileDescriptorProto::dependency_size() const {
2079   return dependency_.size();
2080 }
clear_dependency()2081 void FileDescriptorProto::clear_dependency() {
2082   dependency_.Clear();
2083 }
dependency(int index) const2084  const ::std::string& FileDescriptorProto::dependency(int index) const {
2085   // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.dependency)
2086   return dependency_.Get(index);
2087 }
mutable_dependency(int index)2088  ::std::string* FileDescriptorProto::mutable_dependency(int index) {
2089   // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.dependency)
2090   return dependency_.Mutable(index);
2091 }
set_dependency(int index,const::std::string & value)2092  void FileDescriptorProto::set_dependency(int index, const ::std::string& value) {
2093   // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency)
2094   dependency_.Mutable(index)->assign(value);
2095 }
set_dependency(int index,const char * value)2096  void FileDescriptorProto::set_dependency(int index, const char* value) {
2097   dependency_.Mutable(index)->assign(value);
2098   // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.dependency)
2099 }
set_dependency(int index,const char * value,size_t size)2100  void FileDescriptorProto::set_dependency(int index, const char* value, size_t size) {
2101   dependency_.Mutable(index)->assign(
2102     reinterpret_cast<const char*>(value), size);
2103   // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.dependency)
2104 }
add_dependency()2105  ::std::string* FileDescriptorProto::add_dependency() {
2106   // @@protoc_insertion_point(field_add_mutable:google.protobuf.FileDescriptorProto.dependency)
2107   return dependency_.Add();
2108 }
add_dependency(const::std::string & value)2109  void FileDescriptorProto::add_dependency(const ::std::string& value) {
2110   dependency_.Add()->assign(value);
2111   // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency)
2112 }
add_dependency(const char * value)2113  void FileDescriptorProto::add_dependency(const char* value) {
2114   dependency_.Add()->assign(value);
2115   // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto.dependency)
2116 }
add_dependency(const char * value,size_t size)2117  void FileDescriptorProto::add_dependency(const char* value, size_t size) {
2118   dependency_.Add()->assign(reinterpret_cast<const char*>(value), size);
2119   // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorProto.dependency)
2120 }
2121  const ::google::protobuf::RepeatedPtrField< ::std::string>&
dependency() const2122 FileDescriptorProto::dependency() const {
2123   // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dependency)
2124   return dependency_;
2125 }
2126  ::google::protobuf::RepeatedPtrField< ::std::string>*
mutable_dependency()2127 FileDescriptorProto::mutable_dependency() {
2128   // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.dependency)
2129   return &dependency_;
2130 }
2131 
2132 // repeated int32 public_dependency = 10;
public_dependency_size() const2133 int FileDescriptorProto::public_dependency_size() const {
2134   return public_dependency_.size();
2135 }
clear_public_dependency()2136 void FileDescriptorProto::clear_public_dependency() {
2137   public_dependency_.Clear();
2138 }
public_dependency(int index) const2139  ::google::protobuf::int32 FileDescriptorProto::public_dependency(int index) const {
2140   // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.public_dependency)
2141   return public_dependency_.Get(index);
2142 }
set_public_dependency(int index,::google::protobuf::int32 value)2143  void FileDescriptorProto::set_public_dependency(int index, ::google::protobuf::int32 value) {
2144   public_dependency_.Set(index, value);
2145   // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.public_dependency)
2146 }
add_public_dependency(::google::protobuf::int32 value)2147  void FileDescriptorProto::add_public_dependency(::google::protobuf::int32 value) {
2148   public_dependency_.Add(value);
2149   // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.public_dependency)
2150 }
2151  const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
public_dependency() const2152 FileDescriptorProto::public_dependency() const {
2153   // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.public_dependency)
2154   return public_dependency_;
2155 }
2156  ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
mutable_public_dependency()2157 FileDescriptorProto::mutable_public_dependency() {
2158   // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.public_dependency)
2159   return &public_dependency_;
2160 }
2161 
2162 // repeated int32 weak_dependency = 11;
weak_dependency_size() const2163 int FileDescriptorProto::weak_dependency_size() const {
2164   return weak_dependency_.size();
2165 }
clear_weak_dependency()2166 void FileDescriptorProto::clear_weak_dependency() {
2167   weak_dependency_.Clear();
2168 }
weak_dependency(int index) const2169  ::google::protobuf::int32 FileDescriptorProto::weak_dependency(int index) const {
2170   // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak_dependency)
2171   return weak_dependency_.Get(index);
2172 }
set_weak_dependency(int index,::google::protobuf::int32 value)2173  void FileDescriptorProto::set_weak_dependency(int index, ::google::protobuf::int32 value) {
2174   weak_dependency_.Set(index, value);
2175   // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak_dependency)
2176 }
add_weak_dependency(::google::protobuf::int32 value)2177  void FileDescriptorProto::add_weak_dependency(::google::protobuf::int32 value) {
2178   weak_dependency_.Add(value);
2179   // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak_dependency)
2180 }
2181  const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
weak_dependency() const2182 FileDescriptorProto::weak_dependency() const {
2183   // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.weak_dependency)
2184   return weak_dependency_;
2185 }
2186  ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
mutable_weak_dependency()2187 FileDescriptorProto::mutable_weak_dependency() {
2188   // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.weak_dependency)
2189   return &weak_dependency_;
2190 }
2191 
2192 // repeated .google.protobuf.DescriptorProto message_type = 4;
message_type_size() const2193 int FileDescriptorProto::message_type_size() const {
2194   return message_type_.size();
2195 }
clear_message_type()2196 void FileDescriptorProto::clear_message_type() {
2197   message_type_.Clear();
2198 }
message_type(int index) const2199 const ::google::protobuf::DescriptorProto& FileDescriptorProto::message_type(int index) const {
2200   // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.message_type)
2201   return message_type_.Get(index);
2202 }
mutable_message_type(int index)2203 ::google::protobuf::DescriptorProto* FileDescriptorProto::mutable_message_type(int index) {
2204   // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.message_type)
2205   return message_type_.Mutable(index);
2206 }
add_message_type()2207 ::google::protobuf::DescriptorProto* FileDescriptorProto::add_message_type() {
2208   // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.message_type)
2209   return message_type_.Add();
2210 }
2211 ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
mutable_message_type()2212 FileDescriptorProto::mutable_message_type() {
2213   // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.message_type)
2214   return &message_type_;
2215 }
2216 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
message_type() const2217 FileDescriptorProto::message_type() const {
2218   // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.message_type)
2219   return message_type_;
2220 }
2221 
2222 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
enum_type_size() const2223 int FileDescriptorProto::enum_type_size() const {
2224   return enum_type_.size();
2225 }
clear_enum_type()2226 void FileDescriptorProto::clear_enum_type() {
2227   enum_type_.Clear();
2228 }
enum_type(int index) const2229 const ::google::protobuf::EnumDescriptorProto& FileDescriptorProto::enum_type(int index) const {
2230   // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.enum_type)
2231   return enum_type_.Get(index);
2232 }
mutable_enum_type(int index)2233 ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::mutable_enum_type(int index) {
2234   // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.enum_type)
2235   return enum_type_.Mutable(index);
2236 }
add_enum_type()2237 ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::add_enum_type() {
2238   // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.enum_type)
2239   return enum_type_.Add();
2240 }
2241 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
mutable_enum_type()2242 FileDescriptorProto::mutable_enum_type() {
2243   // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.enum_type)
2244   return &enum_type_;
2245 }
2246 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
enum_type() const2247 FileDescriptorProto::enum_type() const {
2248   // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.enum_type)
2249   return enum_type_;
2250 }
2251 
2252 // repeated .google.protobuf.ServiceDescriptorProto service = 6;
service_size() const2253 int FileDescriptorProto::service_size() const {
2254   return service_.size();
2255 }
clear_service()2256 void FileDescriptorProto::clear_service() {
2257   service_.Clear();
2258 }
service(int index) const2259 const ::google::protobuf::ServiceDescriptorProto& FileDescriptorProto::service(int index) const {
2260   // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.service)
2261   return service_.Get(index);
2262 }
mutable_service(int index)2263 ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::mutable_service(int index) {
2264   // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.service)
2265   return service_.Mutable(index);
2266 }
add_service()2267 ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::add_service() {
2268   // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.service)
2269   return service_.Add();
2270 }
2271 ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >*
mutable_service()2272 FileDescriptorProto::mutable_service() {
2273   // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.service)
2274   return &service_;
2275 }
2276 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >&
service() const2277 FileDescriptorProto::service() const {
2278   // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.service)
2279   return service_;
2280 }
2281 
2282 // repeated .google.protobuf.FieldDescriptorProto extension = 7;
extension_size() const2283 int FileDescriptorProto::extension_size() const {
2284   return extension_.size();
2285 }
clear_extension()2286 void FileDescriptorProto::clear_extension() {
2287   extension_.Clear();
2288 }
extension(int index) const2289 const ::google::protobuf::FieldDescriptorProto& FileDescriptorProto::extension(int index) const {
2290   // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.extension)
2291   return extension_.Get(index);
2292 }
mutable_extension(int index)2293 ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::mutable_extension(int index) {
2294   // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.extension)
2295   return extension_.Mutable(index);
2296 }
add_extension()2297 ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::add_extension() {
2298   // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.extension)
2299   return extension_.Add();
2300 }
2301 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
mutable_extension()2302 FileDescriptorProto::mutable_extension() {
2303   // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.extension)
2304   return &extension_;
2305 }
2306 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
extension() const2307 FileDescriptorProto::extension() const {
2308   // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.extension)
2309   return extension_;
2310 }
2311 
2312 // optional .google.protobuf.FileOptions options = 8;
has_options() const2313 bool FileDescriptorProto::has_options() const {
2314   return (_has_bits_[0] & 0x00000200u) != 0;
2315 }
set_has_options()2316 void FileDescriptorProto::set_has_options() {
2317   _has_bits_[0] |= 0x00000200u;
2318 }
clear_has_options()2319 void FileDescriptorProto::clear_has_options() {
2320   _has_bits_[0] &= ~0x00000200u;
2321 }
clear_options()2322 void FileDescriptorProto::clear_options() {
2323   if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear();
2324   clear_has_options();
2325 }
options() const2326 const ::google::protobuf::FileOptions& FileDescriptorProto::options() const {
2327   // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.options)
2328   return options_ != NULL ? *options_ : *default_instance_->options_;
2329 }
mutable_options()2330 ::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() {
2331   set_has_options();
2332   if (options_ == NULL) {
2333     options_ = new ::google::protobuf::FileOptions;
2334   }
2335   // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.options)
2336   return options_;
2337 }
release_options()2338 ::google::protobuf::FileOptions* FileDescriptorProto::release_options() {
2339   // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.options)
2340   clear_has_options();
2341   ::google::protobuf::FileOptions* temp = options_;
2342   options_ = NULL;
2343   return temp;
2344 }
set_allocated_options(::google::protobuf::FileOptions * options)2345 void FileDescriptorProto::set_allocated_options(::google::protobuf::FileOptions* options) {
2346   delete options_;
2347   options_ = options;
2348   if (options) {
2349     set_has_options();
2350   } else {
2351     clear_has_options();
2352   }
2353   // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.options)
2354 }
2355 
2356 // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
has_source_code_info() const2357 bool FileDescriptorProto::has_source_code_info() const {
2358   return (_has_bits_[0] & 0x00000400u) != 0;
2359 }
set_has_source_code_info()2360 void FileDescriptorProto::set_has_source_code_info() {
2361   _has_bits_[0] |= 0x00000400u;
2362 }
clear_has_source_code_info()2363 void FileDescriptorProto::clear_has_source_code_info() {
2364   _has_bits_[0] &= ~0x00000400u;
2365 }
clear_source_code_info()2366 void FileDescriptorProto::clear_source_code_info() {
2367   if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCodeInfo::Clear();
2368   clear_has_source_code_info();
2369 }
source_code_info() const2370 const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::source_code_info() const {
2371   // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.source_code_info)
2372   return source_code_info_ != NULL ? *source_code_info_ : *default_instance_->source_code_info_;
2373 }
mutable_source_code_info()2374 ::google::protobuf::SourceCodeInfo* FileDescriptorProto::mutable_source_code_info() {
2375   set_has_source_code_info();
2376   if (source_code_info_ == NULL) {
2377     source_code_info_ = new ::google::protobuf::SourceCodeInfo;
2378   }
2379   // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.source_code_info)
2380   return source_code_info_;
2381 }
release_source_code_info()2382 ::google::protobuf::SourceCodeInfo* FileDescriptorProto::release_source_code_info() {
2383   // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.source_code_info)
2384   clear_has_source_code_info();
2385   ::google::protobuf::SourceCodeInfo* temp = source_code_info_;
2386   source_code_info_ = NULL;
2387   return temp;
2388 }
set_allocated_source_code_info(::google::protobuf::SourceCodeInfo * source_code_info)2389 void FileDescriptorProto::set_allocated_source_code_info(::google::protobuf::SourceCodeInfo* source_code_info) {
2390   delete source_code_info_;
2391   source_code_info_ = source_code_info;
2392   if (source_code_info) {
2393     set_has_source_code_info();
2394   } else {
2395     clear_has_source_code_info();
2396   }
2397   // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.source_code_info)
2398 }
2399 
2400 // optional string syntax = 12;
has_syntax() const2401 bool FileDescriptorProto::has_syntax() const {
2402   return (_has_bits_[0] & 0x00000800u) != 0;
2403 }
set_has_syntax()2404 void FileDescriptorProto::set_has_syntax() {
2405   _has_bits_[0] |= 0x00000800u;
2406 }
clear_has_syntax()2407 void FileDescriptorProto::clear_has_syntax() {
2408   _has_bits_[0] &= ~0x00000800u;
2409 }
clear_syntax()2410 void FileDescriptorProto::clear_syntax() {
2411   syntax_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2412   clear_has_syntax();
2413 }
syntax() const2414  const ::std::string& FileDescriptorProto::syntax() const {
2415   // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.syntax)
2416   return syntax_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2417 }
set_syntax(const::std::string & value)2418  void FileDescriptorProto::set_syntax(const ::std::string& value) {
2419   set_has_syntax();
2420   syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2421   // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.syntax)
2422 }
set_syntax(const char * value)2423  void FileDescriptorProto::set_syntax(const char* value) {
2424   set_has_syntax();
2425   syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2426   // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.syntax)
2427 }
set_syntax(const char * value,size_t size)2428  void FileDescriptorProto::set_syntax(const char* value, size_t size) {
2429   set_has_syntax();
2430   syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2431       ::std::string(reinterpret_cast<const char*>(value), size));
2432   // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.syntax)
2433 }
mutable_syntax()2434  ::std::string* FileDescriptorProto::mutable_syntax() {
2435   set_has_syntax();
2436   // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.syntax)
2437   return syntax_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2438 }
release_syntax()2439  ::std::string* FileDescriptorProto::release_syntax() {
2440   // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.syntax)
2441   clear_has_syntax();
2442   return syntax_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2443 }
set_allocated_syntax(::std::string * syntax)2444  void FileDescriptorProto::set_allocated_syntax(::std::string* syntax) {
2445   if (syntax != NULL) {
2446     set_has_syntax();
2447   } else {
2448     clear_has_syntax();
2449   }
2450   syntax_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), syntax);
2451   // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.syntax)
2452 }
2453 
2454 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
2455 
2456 // ===================================================================
2457 
2458 #if !defined(_MSC_VER) || _MSC_VER >= 1900
2459 const int DescriptorProto_ExtensionRange::kStartFieldNumber;
2460 const int DescriptorProto_ExtensionRange::kEndFieldNumber;
2461 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2462 
DescriptorProto_ExtensionRange()2463 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange()
2464   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2465   SharedCtor();
2466   // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.ExtensionRange)
2467 }
2468 
InitAsDefaultInstance()2469 void DescriptorProto_ExtensionRange::InitAsDefaultInstance() {
2470 }
2471 
DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange & from)2472 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from)
2473   : ::google::protobuf::Message(),
2474     _internal_metadata_(NULL) {
2475   SharedCtor();
2476   MergeFrom(from);
2477   // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ExtensionRange)
2478 }
2479 
SharedCtor()2480 void DescriptorProto_ExtensionRange::SharedCtor() {
2481   _cached_size_ = 0;
2482   start_ = 0;
2483   end_ = 0;
2484   ::memset(_has_bits_, 0, sizeof(_has_bits_));
2485 }
2486 
~DescriptorProto_ExtensionRange()2487 DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() {
2488   // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.ExtensionRange)
2489   SharedDtor();
2490 }
2491 
SharedDtor()2492 void DescriptorProto_ExtensionRange::SharedDtor() {
2493   if (this != default_instance_) {
2494   }
2495 }
2496 
SetCachedSize(int size) const2497 void DescriptorProto_ExtensionRange::SetCachedSize(int size) const {
2498   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2499   _cached_size_ = size;
2500   GOOGLE_SAFE_CONCURRENT_WRITES_END();
2501 }
descriptor()2502 const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange::descriptor() {
2503   protobuf_AssignDescriptorsOnce();
2504   return DescriptorProto_ExtensionRange_descriptor_;
2505 }
2506 
default_instance()2507 const DescriptorProto_ExtensionRange& DescriptorProto_ExtensionRange::default_instance() {
2508   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2509   return *default_instance_;
2510 }
2511 
2512 DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::default_instance_ = NULL;
2513 
New(::google::protobuf::Arena * arena) const2514 DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::New(::google::protobuf::Arena* arena) const {
2515   DescriptorProto_ExtensionRange* n = new DescriptorProto_ExtensionRange;
2516   if (arena != NULL) {
2517     arena->Own(n);
2518   }
2519   return n;
2520 }
2521 
Clear()2522 void DescriptorProto_ExtensionRange::Clear() {
2523 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto.ExtensionRange)
2524 #if defined(__clang__)
2525 #define ZR_HELPER_(f) \
2526   _Pragma("clang diagnostic push") \
2527   _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
2528   __builtin_offsetof(DescriptorProto_ExtensionRange, f) \
2529   _Pragma("clang diagnostic pop")
2530 #else
2531 #define ZR_HELPER_(f) reinterpret_cast<char*>(\
2532   &reinterpret_cast<DescriptorProto_ExtensionRange*>(16)->f)
2533 #endif
2534 
2535 #define ZR_(first, last) do {\
2536   ::memset(&first, 0,\
2537            ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
2538 } while (0)
2539 
2540   ZR_(start_, end_);
2541 
2542 #undef ZR_HELPER_
2543 #undef ZR_
2544 
2545   ::memset(_has_bits_, 0, sizeof(_has_bits_));
2546   if (_internal_metadata_.have_unknown_fields()) {
2547     mutable_unknown_fields()->Clear();
2548   }
2549 }
2550 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)2551 bool DescriptorProto_ExtensionRange::MergePartialFromCodedStream(
2552     ::google::protobuf::io::CodedInputStream* input) {
2553 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2554   ::google::protobuf::uint32 tag;
2555   // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.ExtensionRange)
2556   for (;;) {
2557     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2558     tag = p.first;
2559     if (!p.second) goto handle_unusual;
2560     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2561       // optional int32 start = 1;
2562       case 1: {
2563         if (tag == 8) {
2564           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2565                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2566                  input, &start_)));
2567           set_has_start();
2568         } else {
2569           goto handle_unusual;
2570         }
2571         if (input->ExpectTag(16)) goto parse_end;
2572         break;
2573       }
2574 
2575       // optional int32 end = 2;
2576       case 2: {
2577         if (tag == 16) {
2578          parse_end:
2579           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2580                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2581                  input, &end_)));
2582           set_has_end();
2583         } else {
2584           goto handle_unusual;
2585         }
2586         if (input->ExpectAtEnd()) goto success;
2587         break;
2588       }
2589 
2590       default: {
2591       handle_unusual:
2592         if (tag == 0 ||
2593             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2594             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2595           goto success;
2596         }
2597         DO_(::google::protobuf::internal::WireFormat::SkipField(
2598               input, tag, mutable_unknown_fields()));
2599         break;
2600       }
2601     }
2602   }
2603 success:
2604   // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto.ExtensionRange)
2605   return true;
2606 failure:
2607   // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto.ExtensionRange)
2608   return false;
2609 #undef DO_
2610 }
2611 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const2612 void DescriptorProto_ExtensionRange::SerializeWithCachedSizes(
2613     ::google::protobuf::io::CodedOutputStream* output) const {
2614   // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto.ExtensionRange)
2615   // optional int32 start = 1;
2616   if (has_start()) {
2617     ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->start(), output);
2618   }
2619 
2620   // optional int32 end = 2;
2621   if (has_end()) {
2622     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), output);
2623   }
2624 
2625   if (_internal_metadata_.have_unknown_fields()) {
2626     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2627         unknown_fields(), output);
2628   }
2629   // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.ExtensionRange)
2630 }
2631 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const2632 ::google::protobuf::uint8* DescriptorProto_ExtensionRange::InternalSerializeWithCachedSizesToArray(
2633     bool deterministic, ::google::protobuf::uint8* target) const {
2634   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ExtensionRange)
2635   // optional int32 start = 1;
2636   if (has_start()) {
2637     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target);
2638   }
2639 
2640   // optional int32 end = 2;
2641   if (has_end()) {
2642     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target);
2643   }
2644 
2645   if (_internal_metadata_.have_unknown_fields()) {
2646     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2647         unknown_fields(), target);
2648   }
2649   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto.ExtensionRange)
2650   return target;
2651 }
2652 
ByteSize() const2653 int DescriptorProto_ExtensionRange::ByteSize() const {
2654 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorProto.ExtensionRange)
2655   int total_size = 0;
2656 
2657   if (_has_bits_[0 / 32] & 3u) {
2658     // optional int32 start = 1;
2659     if (has_start()) {
2660       total_size += 1 +
2661         ::google::protobuf::internal::WireFormatLite::Int32Size(
2662           this->start());
2663     }
2664 
2665     // optional int32 end = 2;
2666     if (has_end()) {
2667       total_size += 1 +
2668         ::google::protobuf::internal::WireFormatLite::Int32Size(
2669           this->end());
2670     }
2671 
2672   }
2673   if (_internal_metadata_.have_unknown_fields()) {
2674     total_size +=
2675       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2676         unknown_fields());
2677   }
2678   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2679   _cached_size_ = total_size;
2680   GOOGLE_SAFE_CONCURRENT_WRITES_END();
2681   return total_size;
2682 }
2683 
MergeFrom(const::google::protobuf::Message & from)2684 void DescriptorProto_ExtensionRange::MergeFrom(const ::google::protobuf::Message& from) {
2685 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.DescriptorProto.ExtensionRange)
2686   if (GOOGLE_PREDICT_FALSE(&from == this)) {
2687     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
2688   }
2689   const DescriptorProto_ExtensionRange* source =
2690       ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto_ExtensionRange>(
2691           &from);
2692   if (source == NULL) {
2693   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.DescriptorProto.ExtensionRange)
2694     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2695   } else {
2696   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.DescriptorProto.ExtensionRange)
2697     MergeFrom(*source);
2698   }
2699 }
2700 
MergeFrom(const DescriptorProto_ExtensionRange & from)2701 void DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRange& from) {
2702 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DescriptorProto.ExtensionRange)
2703   if (GOOGLE_PREDICT_FALSE(&from == this)) {
2704     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
2705   }
2706   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2707     if (from.has_start()) {
2708       set_start(from.start());
2709     }
2710     if (from.has_end()) {
2711       set_end(from.end());
2712     }
2713   }
2714   if (from._internal_metadata_.have_unknown_fields()) {
2715     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2716   }
2717 }
2718 
CopyFrom(const::google::protobuf::Message & from)2719 void DescriptorProto_ExtensionRange::CopyFrom(const ::google::protobuf::Message& from) {
2720 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.DescriptorProto.ExtensionRange)
2721   if (&from == this) return;
2722   Clear();
2723   MergeFrom(from);
2724 }
2725 
CopyFrom(const DescriptorProto_ExtensionRange & from)2726 void DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRange& from) {
2727 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DescriptorProto.ExtensionRange)
2728   if (&from == this) return;
2729   Clear();
2730   MergeFrom(from);
2731 }
2732 
IsInitialized() const2733 bool DescriptorProto_ExtensionRange::IsInitialized() const {
2734 
2735   return true;
2736 }
2737 
Swap(DescriptorProto_ExtensionRange * other)2738 void DescriptorProto_ExtensionRange::Swap(DescriptorProto_ExtensionRange* other) {
2739   if (other == this) return;
2740   InternalSwap(other);
2741 }
InternalSwap(DescriptorProto_ExtensionRange * other)2742 void DescriptorProto_ExtensionRange::InternalSwap(DescriptorProto_ExtensionRange* other) {
2743   std::swap(start_, other->start_);
2744   std::swap(end_, other->end_);
2745   std::swap(_has_bits_[0], other->_has_bits_[0]);
2746   _internal_metadata_.Swap(&other->_internal_metadata_);
2747   std::swap(_cached_size_, other->_cached_size_);
2748 }
2749 
GetMetadata() const2750 ::google::protobuf::Metadata DescriptorProto_ExtensionRange::GetMetadata() const {
2751   protobuf_AssignDescriptorsOnce();
2752   ::google::protobuf::Metadata metadata;
2753   metadata.descriptor = DescriptorProto_ExtensionRange_descriptor_;
2754   metadata.reflection = DescriptorProto_ExtensionRange_reflection_;
2755   return metadata;
2756 }
2757 
2758 
2759 // -------------------------------------------------------------------
2760 
2761 #if !defined(_MSC_VER) || _MSC_VER >= 1900
2762 const int DescriptorProto_ReservedRange::kStartFieldNumber;
2763 const int DescriptorProto_ReservedRange::kEndFieldNumber;
2764 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2765 
DescriptorProto_ReservedRange()2766 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange()
2767   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2768   SharedCtor();
2769   // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.ReservedRange)
2770 }
2771 
InitAsDefaultInstance()2772 void DescriptorProto_ReservedRange::InitAsDefaultInstance() {
2773 }
2774 
DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange & from)2775 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange& from)
2776   : ::google::protobuf::Message(),
2777     _internal_metadata_(NULL) {
2778   SharedCtor();
2779   MergeFrom(from);
2780   // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ReservedRange)
2781 }
2782 
SharedCtor()2783 void DescriptorProto_ReservedRange::SharedCtor() {
2784   _cached_size_ = 0;
2785   start_ = 0;
2786   end_ = 0;
2787   ::memset(_has_bits_, 0, sizeof(_has_bits_));
2788 }
2789 
~DescriptorProto_ReservedRange()2790 DescriptorProto_ReservedRange::~DescriptorProto_ReservedRange() {
2791   // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.ReservedRange)
2792   SharedDtor();
2793 }
2794 
SharedDtor()2795 void DescriptorProto_ReservedRange::SharedDtor() {
2796   if (this != default_instance_) {
2797   }
2798 }
2799 
SetCachedSize(int size) const2800 void DescriptorProto_ReservedRange::SetCachedSize(int size) const {
2801   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2802   _cached_size_ = size;
2803   GOOGLE_SAFE_CONCURRENT_WRITES_END();
2804 }
descriptor()2805 const ::google::protobuf::Descriptor* DescriptorProto_ReservedRange::descriptor() {
2806   protobuf_AssignDescriptorsOnce();
2807   return DescriptorProto_ReservedRange_descriptor_;
2808 }
2809 
default_instance()2810 const DescriptorProto_ReservedRange& DescriptorProto_ReservedRange::default_instance() {
2811   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2812   return *default_instance_;
2813 }
2814 
2815 DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::default_instance_ = NULL;
2816 
New(::google::protobuf::Arena * arena) const2817 DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::New(::google::protobuf::Arena* arena) const {
2818   DescriptorProto_ReservedRange* n = new DescriptorProto_ReservedRange;
2819   if (arena != NULL) {
2820     arena->Own(n);
2821   }
2822   return n;
2823 }
2824 
Clear()2825 void DescriptorProto_ReservedRange::Clear() {
2826 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto.ReservedRange)
2827 #if defined(__clang__)
2828 #define ZR_HELPER_(f) \
2829   _Pragma("clang diagnostic push") \
2830   _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
2831   __builtin_offsetof(DescriptorProto_ReservedRange, f) \
2832   _Pragma("clang diagnostic pop")
2833 #else
2834 #define ZR_HELPER_(f) reinterpret_cast<char*>(\
2835   &reinterpret_cast<DescriptorProto_ReservedRange*>(16)->f)
2836 #endif
2837 
2838 #define ZR_(first, last) do {\
2839   ::memset(&first, 0,\
2840            ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
2841 } while (0)
2842 
2843   ZR_(start_, end_);
2844 
2845 #undef ZR_HELPER_
2846 #undef ZR_
2847 
2848   ::memset(_has_bits_, 0, sizeof(_has_bits_));
2849   if (_internal_metadata_.have_unknown_fields()) {
2850     mutable_unknown_fields()->Clear();
2851   }
2852 }
2853 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)2854 bool DescriptorProto_ReservedRange::MergePartialFromCodedStream(
2855     ::google::protobuf::io::CodedInputStream* input) {
2856 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2857   ::google::protobuf::uint32 tag;
2858   // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.ReservedRange)
2859   for (;;) {
2860     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2861     tag = p.first;
2862     if (!p.second) goto handle_unusual;
2863     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2864       // optional int32 start = 1;
2865       case 1: {
2866         if (tag == 8) {
2867           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2868                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2869                  input, &start_)));
2870           set_has_start();
2871         } else {
2872           goto handle_unusual;
2873         }
2874         if (input->ExpectTag(16)) goto parse_end;
2875         break;
2876       }
2877 
2878       // optional int32 end = 2;
2879       case 2: {
2880         if (tag == 16) {
2881          parse_end:
2882           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2883                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2884                  input, &end_)));
2885           set_has_end();
2886         } else {
2887           goto handle_unusual;
2888         }
2889         if (input->ExpectAtEnd()) goto success;
2890         break;
2891       }
2892 
2893       default: {
2894       handle_unusual:
2895         if (tag == 0 ||
2896             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2897             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2898           goto success;
2899         }
2900         DO_(::google::protobuf::internal::WireFormat::SkipField(
2901               input, tag, mutable_unknown_fields()));
2902         break;
2903       }
2904     }
2905   }
2906 success:
2907   // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto.ReservedRange)
2908   return true;
2909 failure:
2910   // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto.ReservedRange)
2911   return false;
2912 #undef DO_
2913 }
2914 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const2915 void DescriptorProto_ReservedRange::SerializeWithCachedSizes(
2916     ::google::protobuf::io::CodedOutputStream* output) const {
2917   // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto.ReservedRange)
2918   // optional int32 start = 1;
2919   if (has_start()) {
2920     ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->start(), output);
2921   }
2922 
2923   // optional int32 end = 2;
2924   if (has_end()) {
2925     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), output);
2926   }
2927 
2928   if (_internal_metadata_.have_unknown_fields()) {
2929     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2930         unknown_fields(), output);
2931   }
2932   // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.ReservedRange)
2933 }
2934 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const2935 ::google::protobuf::uint8* DescriptorProto_ReservedRange::InternalSerializeWithCachedSizesToArray(
2936     bool deterministic, ::google::protobuf::uint8* target) const {
2937   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ReservedRange)
2938   // optional int32 start = 1;
2939   if (has_start()) {
2940     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target);
2941   }
2942 
2943   // optional int32 end = 2;
2944   if (has_end()) {
2945     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target);
2946   }
2947 
2948   if (_internal_metadata_.have_unknown_fields()) {
2949     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2950         unknown_fields(), target);
2951   }
2952   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto.ReservedRange)
2953   return target;
2954 }
2955 
ByteSize() const2956 int DescriptorProto_ReservedRange::ByteSize() const {
2957 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorProto.ReservedRange)
2958   int total_size = 0;
2959 
2960   if (_has_bits_[0 / 32] & 3u) {
2961     // optional int32 start = 1;
2962     if (has_start()) {
2963       total_size += 1 +
2964         ::google::protobuf::internal::WireFormatLite::Int32Size(
2965           this->start());
2966     }
2967 
2968     // optional int32 end = 2;
2969     if (has_end()) {
2970       total_size += 1 +
2971         ::google::protobuf::internal::WireFormatLite::Int32Size(
2972           this->end());
2973     }
2974 
2975   }
2976   if (_internal_metadata_.have_unknown_fields()) {
2977     total_size +=
2978       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2979         unknown_fields());
2980   }
2981   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2982   _cached_size_ = total_size;
2983   GOOGLE_SAFE_CONCURRENT_WRITES_END();
2984   return total_size;
2985 }
2986 
MergeFrom(const::google::protobuf::Message & from)2987 void DescriptorProto_ReservedRange::MergeFrom(const ::google::protobuf::Message& from) {
2988 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.DescriptorProto.ReservedRange)
2989   if (GOOGLE_PREDICT_FALSE(&from == this)) {
2990     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
2991   }
2992   const DescriptorProto_ReservedRange* source =
2993       ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto_ReservedRange>(
2994           &from);
2995   if (source == NULL) {
2996   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.DescriptorProto.ReservedRange)
2997     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2998   } else {
2999   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.DescriptorProto.ReservedRange)
3000     MergeFrom(*source);
3001   }
3002 }
3003 
MergeFrom(const DescriptorProto_ReservedRange & from)3004 void DescriptorProto_ReservedRange::MergeFrom(const DescriptorProto_ReservedRange& from) {
3005 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DescriptorProto.ReservedRange)
3006   if (GOOGLE_PREDICT_FALSE(&from == this)) {
3007     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
3008   }
3009   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3010     if (from.has_start()) {
3011       set_start(from.start());
3012     }
3013     if (from.has_end()) {
3014       set_end(from.end());
3015     }
3016   }
3017   if (from._internal_metadata_.have_unknown_fields()) {
3018     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3019   }
3020 }
3021 
CopyFrom(const::google::protobuf::Message & from)3022 void DescriptorProto_ReservedRange::CopyFrom(const ::google::protobuf::Message& from) {
3023 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.DescriptorProto.ReservedRange)
3024   if (&from == this) return;
3025   Clear();
3026   MergeFrom(from);
3027 }
3028 
CopyFrom(const DescriptorProto_ReservedRange & from)3029 void DescriptorProto_ReservedRange::CopyFrom(const DescriptorProto_ReservedRange& from) {
3030 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DescriptorProto.ReservedRange)
3031   if (&from == this) return;
3032   Clear();
3033   MergeFrom(from);
3034 }
3035 
IsInitialized() const3036 bool DescriptorProto_ReservedRange::IsInitialized() const {
3037 
3038   return true;
3039 }
3040 
Swap(DescriptorProto_ReservedRange * other)3041 void DescriptorProto_ReservedRange::Swap(DescriptorProto_ReservedRange* other) {
3042   if (other == this) return;
3043   InternalSwap(other);
3044 }
InternalSwap(DescriptorProto_ReservedRange * other)3045 void DescriptorProto_ReservedRange::InternalSwap(DescriptorProto_ReservedRange* other) {
3046   std::swap(start_, other->start_);
3047   std::swap(end_, other->end_);
3048   std::swap(_has_bits_[0], other->_has_bits_[0]);
3049   _internal_metadata_.Swap(&other->_internal_metadata_);
3050   std::swap(_cached_size_, other->_cached_size_);
3051 }
3052 
GetMetadata() const3053 ::google::protobuf::Metadata DescriptorProto_ReservedRange::GetMetadata() const {
3054   protobuf_AssignDescriptorsOnce();
3055   ::google::protobuf::Metadata metadata;
3056   metadata.descriptor = DescriptorProto_ReservedRange_descriptor_;
3057   metadata.reflection = DescriptorProto_ReservedRange_reflection_;
3058   return metadata;
3059 }
3060 
3061 
3062 // -------------------------------------------------------------------
3063 
3064 #if !defined(_MSC_VER) || _MSC_VER >= 1900
3065 const int DescriptorProto::kNameFieldNumber;
3066 const int DescriptorProto::kFieldFieldNumber;
3067 const int DescriptorProto::kExtensionFieldNumber;
3068 const int DescriptorProto::kNestedTypeFieldNumber;
3069 const int DescriptorProto::kEnumTypeFieldNumber;
3070 const int DescriptorProto::kExtensionRangeFieldNumber;
3071 const int DescriptorProto::kOneofDeclFieldNumber;
3072 const int DescriptorProto::kOptionsFieldNumber;
3073 const int DescriptorProto::kReservedRangeFieldNumber;
3074 const int DescriptorProto::kReservedNameFieldNumber;
3075 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3076 
DescriptorProto()3077 DescriptorProto::DescriptorProto()
3078   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3079   SharedCtor();
3080   // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto)
3081 }
3082 
InitAsDefaultInstance()3083 void DescriptorProto::InitAsDefaultInstance() {
3084   options_ = const_cast< ::google::protobuf::MessageOptions*>(&::google::protobuf::MessageOptions::default_instance());
3085 }
3086 
DescriptorProto(const DescriptorProto & from)3087 DescriptorProto::DescriptorProto(const DescriptorProto& from)
3088   : ::google::protobuf::Message(),
3089     _internal_metadata_(NULL) {
3090   SharedCtor();
3091   MergeFrom(from);
3092   // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto)
3093 }
3094 
SharedCtor()3095 void DescriptorProto::SharedCtor() {
3096   ::google::protobuf::internal::GetEmptyString();
3097   _cached_size_ = 0;
3098   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3099   options_ = NULL;
3100   ::memset(_has_bits_, 0, sizeof(_has_bits_));
3101 }
3102 
~DescriptorProto()3103 DescriptorProto::~DescriptorProto() {
3104   // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto)
3105   SharedDtor();
3106 }
3107 
SharedDtor()3108 void DescriptorProto::SharedDtor() {
3109   name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3110   if (this != default_instance_) {
3111     delete options_;
3112   }
3113 }
3114 
SetCachedSize(int size) const3115 void DescriptorProto::SetCachedSize(int size) const {
3116   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3117   _cached_size_ = size;
3118   GOOGLE_SAFE_CONCURRENT_WRITES_END();
3119 }
descriptor()3120 const ::google::protobuf::Descriptor* DescriptorProto::descriptor() {
3121   protobuf_AssignDescriptorsOnce();
3122   return DescriptorProto_descriptor_;
3123 }
3124 
default_instance()3125 const DescriptorProto& DescriptorProto::default_instance() {
3126   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
3127   return *default_instance_;
3128 }
3129 
3130 DescriptorProto* DescriptorProto::default_instance_ = NULL;
3131 
New(::google::protobuf::Arena * arena) const3132 DescriptorProto* DescriptorProto::New(::google::protobuf::Arena* arena) const {
3133   DescriptorProto* n = new DescriptorProto;
3134   if (arena != NULL) {
3135     arena->Own(n);
3136   }
3137   return n;
3138 }
3139 
Clear()3140 void DescriptorProto::Clear() {
3141 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto)
3142   if (_has_bits_[0 / 32] & 129u) {
3143     if (has_name()) {
3144       name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3145     }
3146     if (has_options()) {
3147       if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear();
3148     }
3149   }
3150   field_.Clear();
3151   extension_.Clear();
3152   nested_type_.Clear();
3153   enum_type_.Clear();
3154   extension_range_.Clear();
3155   oneof_decl_.Clear();
3156   reserved_range_.Clear();
3157   reserved_name_.Clear();
3158   ::memset(_has_bits_, 0, sizeof(_has_bits_));
3159   if (_internal_metadata_.have_unknown_fields()) {
3160     mutable_unknown_fields()->Clear();
3161   }
3162 }
3163 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)3164 bool DescriptorProto::MergePartialFromCodedStream(
3165     ::google::protobuf::io::CodedInputStream* input) {
3166 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3167   ::google::protobuf::uint32 tag;
3168   // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto)
3169   for (;;) {
3170     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
3171     tag = p.first;
3172     if (!p.second) goto handle_unusual;
3173     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3174       // optional string name = 1;
3175       case 1: {
3176         if (tag == 10) {
3177           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3178                 input, this->mutable_name()));
3179           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3180             this->name().data(), this->name().length(),
3181             ::google::protobuf::internal::WireFormat::PARSE,
3182             "google.protobuf.DescriptorProto.name");
3183         } else {
3184           goto handle_unusual;
3185         }
3186         if (input->ExpectTag(18)) goto parse_field;
3187         break;
3188       }
3189 
3190       // repeated .google.protobuf.FieldDescriptorProto field = 2;
3191       case 2: {
3192         if (tag == 18) {
3193          parse_field:
3194           DO_(input->IncrementRecursionDepth());
3195          parse_loop_field:
3196           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
3197                 input, add_field()));
3198         } else {
3199           goto handle_unusual;
3200         }
3201         if (input->ExpectTag(18)) goto parse_loop_field;
3202         if (input->ExpectTag(26)) goto parse_loop_nested_type;
3203         input->UnsafeDecrementRecursionDepth();
3204         break;
3205       }
3206 
3207       // repeated .google.protobuf.DescriptorProto nested_type = 3;
3208       case 3: {
3209         if (tag == 26) {
3210           DO_(input->IncrementRecursionDepth());
3211          parse_loop_nested_type:
3212           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
3213                 input, add_nested_type()));
3214         } else {
3215           goto handle_unusual;
3216         }
3217         if (input->ExpectTag(26)) goto parse_loop_nested_type;
3218         if (input->ExpectTag(34)) goto parse_loop_enum_type;
3219         input->UnsafeDecrementRecursionDepth();
3220         break;
3221       }
3222 
3223       // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3224       case 4: {
3225         if (tag == 34) {
3226           DO_(input->IncrementRecursionDepth());
3227          parse_loop_enum_type:
3228           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
3229                 input, add_enum_type()));
3230         } else {
3231           goto handle_unusual;
3232         }
3233         if (input->ExpectTag(34)) goto parse_loop_enum_type;
3234         if (input->ExpectTag(42)) goto parse_loop_extension_range;
3235         input->UnsafeDecrementRecursionDepth();
3236         break;
3237       }
3238 
3239       // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
3240       case 5: {
3241         if (tag == 42) {
3242           DO_(input->IncrementRecursionDepth());
3243          parse_loop_extension_range:
3244           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
3245                 input, add_extension_range()));
3246         } else {
3247           goto handle_unusual;
3248         }
3249         if (input->ExpectTag(42)) goto parse_loop_extension_range;
3250         if (input->ExpectTag(50)) goto parse_loop_extension;
3251         input->UnsafeDecrementRecursionDepth();
3252         break;
3253       }
3254 
3255       // repeated .google.protobuf.FieldDescriptorProto extension = 6;
3256       case 6: {
3257         if (tag == 50) {
3258           DO_(input->IncrementRecursionDepth());
3259          parse_loop_extension:
3260           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
3261                 input, add_extension()));
3262         } else {
3263           goto handle_unusual;
3264         }
3265         if (input->ExpectTag(50)) goto parse_loop_extension;
3266         input->UnsafeDecrementRecursionDepth();
3267         if (input->ExpectTag(58)) goto parse_options;
3268         break;
3269       }
3270 
3271       // optional .google.protobuf.MessageOptions options = 7;
3272       case 7: {
3273         if (tag == 58) {
3274          parse_options:
3275           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3276                input, mutable_options()));
3277         } else {
3278           goto handle_unusual;
3279         }
3280         if (input->ExpectTag(66)) goto parse_oneof_decl;
3281         break;
3282       }
3283 
3284       // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
3285       case 8: {
3286         if (tag == 66) {
3287          parse_oneof_decl:
3288           DO_(input->IncrementRecursionDepth());
3289          parse_loop_oneof_decl:
3290           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
3291                 input, add_oneof_decl()));
3292         } else {
3293           goto handle_unusual;
3294         }
3295         if (input->ExpectTag(66)) goto parse_loop_oneof_decl;
3296         if (input->ExpectTag(74)) goto parse_loop_reserved_range;
3297         input->UnsafeDecrementRecursionDepth();
3298         break;
3299       }
3300 
3301       // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
3302       case 9: {
3303         if (tag == 74) {
3304           DO_(input->IncrementRecursionDepth());
3305          parse_loop_reserved_range:
3306           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
3307                 input, add_reserved_range()));
3308         } else {
3309           goto handle_unusual;
3310         }
3311         if (input->ExpectTag(74)) goto parse_loop_reserved_range;
3312         input->UnsafeDecrementRecursionDepth();
3313         if (input->ExpectTag(82)) goto parse_reserved_name;
3314         break;
3315       }
3316 
3317       // repeated string reserved_name = 10;
3318       case 10: {
3319         if (tag == 82) {
3320          parse_reserved_name:
3321           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3322                 input, this->add_reserved_name()));
3323           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3324             this->reserved_name(this->reserved_name_size() - 1).data(),
3325             this->reserved_name(this->reserved_name_size() - 1).length(),
3326             ::google::protobuf::internal::WireFormat::PARSE,
3327             "google.protobuf.DescriptorProto.reserved_name");
3328         } else {
3329           goto handle_unusual;
3330         }
3331         if (input->ExpectTag(82)) goto parse_reserved_name;
3332         if (input->ExpectAtEnd()) goto success;
3333         break;
3334       }
3335 
3336       default: {
3337       handle_unusual:
3338         if (tag == 0 ||
3339             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3340             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3341           goto success;
3342         }
3343         DO_(::google::protobuf::internal::WireFormat::SkipField(
3344               input, tag, mutable_unknown_fields()));
3345         break;
3346       }
3347     }
3348   }
3349 success:
3350   // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto)
3351   return true;
3352 failure:
3353   // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto)
3354   return false;
3355 #undef DO_
3356 }
3357 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const3358 void DescriptorProto::SerializeWithCachedSizes(
3359     ::google::protobuf::io::CodedOutputStream* output) const {
3360   // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto)
3361   // optional string name = 1;
3362   if (has_name()) {
3363     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3364       this->name().data(), this->name().length(),
3365       ::google::protobuf::internal::WireFormat::SERIALIZE,
3366       "google.protobuf.DescriptorProto.name");
3367     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3368       1, this->name(), output);
3369   }
3370 
3371   // repeated .google.protobuf.FieldDescriptorProto field = 2;
3372   for (unsigned int i = 0, n = this->field_size(); i < n; i++) {
3373     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3374       2, this->field(i), output);
3375   }
3376 
3377   // repeated .google.protobuf.DescriptorProto nested_type = 3;
3378   for (unsigned int i = 0, n = this->nested_type_size(); i < n; i++) {
3379     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3380       3, this->nested_type(i), output);
3381   }
3382 
3383   // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3384   for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) {
3385     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3386       4, this->enum_type(i), output);
3387   }
3388 
3389   // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
3390   for (unsigned int i = 0, n = this->extension_range_size(); i < n; i++) {
3391     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3392       5, this->extension_range(i), output);
3393   }
3394 
3395   // repeated .google.protobuf.FieldDescriptorProto extension = 6;
3396   for (unsigned int i = 0, n = this->extension_size(); i < n; i++) {
3397     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3398       6, this->extension(i), output);
3399   }
3400 
3401   // optional .google.protobuf.MessageOptions options = 7;
3402   if (has_options()) {
3403     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3404       7, *this->options_, output);
3405   }
3406 
3407   // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
3408   for (unsigned int i = 0, n = this->oneof_decl_size(); i < n; i++) {
3409     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3410       8, this->oneof_decl(i), output);
3411   }
3412 
3413   // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
3414   for (unsigned int i = 0, n = this->reserved_range_size(); i < n; i++) {
3415     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3416       9, this->reserved_range(i), output);
3417   }
3418 
3419   // repeated string reserved_name = 10;
3420   for (int i = 0; i < this->reserved_name_size(); i++) {
3421     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3422       this->reserved_name(i).data(), this->reserved_name(i).length(),
3423       ::google::protobuf::internal::WireFormat::SERIALIZE,
3424       "google.protobuf.DescriptorProto.reserved_name");
3425     ::google::protobuf::internal::WireFormatLite::WriteString(
3426       10, this->reserved_name(i), output);
3427   }
3428 
3429   if (_internal_metadata_.have_unknown_fields()) {
3430     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3431         unknown_fields(), output);
3432   }
3433   // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto)
3434 }
3435 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const3436 ::google::protobuf::uint8* DescriptorProto::InternalSerializeWithCachedSizesToArray(
3437     bool deterministic, ::google::protobuf::uint8* target) const {
3438   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto)
3439   // optional string name = 1;
3440   if (has_name()) {
3441     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3442       this->name().data(), this->name().length(),
3443       ::google::protobuf::internal::WireFormat::SERIALIZE,
3444       "google.protobuf.DescriptorProto.name");
3445     target =
3446       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3447         1, this->name(), target);
3448   }
3449 
3450   // repeated .google.protobuf.FieldDescriptorProto field = 2;
3451   for (unsigned int i = 0, n = this->field_size(); i < n; i++) {
3452     target = ::google::protobuf::internal::WireFormatLite::
3453       InternalWriteMessageNoVirtualToArray(
3454         2, this->field(i), false, target);
3455   }
3456 
3457   // repeated .google.protobuf.DescriptorProto nested_type = 3;
3458   for (unsigned int i = 0, n = this->nested_type_size(); i < n; i++) {
3459     target = ::google::protobuf::internal::WireFormatLite::
3460       InternalWriteMessageNoVirtualToArray(
3461         3, this->nested_type(i), false, target);
3462   }
3463 
3464   // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3465   for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) {
3466     target = ::google::protobuf::internal::WireFormatLite::
3467       InternalWriteMessageNoVirtualToArray(
3468         4, this->enum_type(i), false, target);
3469   }
3470 
3471   // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
3472   for (unsigned int i = 0, n = this->extension_range_size(); i < n; i++) {
3473     target = ::google::protobuf::internal::WireFormatLite::
3474       InternalWriteMessageNoVirtualToArray(
3475         5, this->extension_range(i), false, target);
3476   }
3477 
3478   // repeated .google.protobuf.FieldDescriptorProto extension = 6;
3479   for (unsigned int i = 0, n = this->extension_size(); i < n; i++) {
3480     target = ::google::protobuf::internal::WireFormatLite::
3481       InternalWriteMessageNoVirtualToArray(
3482         6, this->extension(i), false, target);
3483   }
3484 
3485   // optional .google.protobuf.MessageOptions options = 7;
3486   if (has_options()) {
3487     target = ::google::protobuf::internal::WireFormatLite::
3488       InternalWriteMessageNoVirtualToArray(
3489         7, *this->options_, false, target);
3490   }
3491 
3492   // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
3493   for (unsigned int i = 0, n = this->oneof_decl_size(); i < n; i++) {
3494     target = ::google::protobuf::internal::WireFormatLite::
3495       InternalWriteMessageNoVirtualToArray(
3496         8, this->oneof_decl(i), false, target);
3497   }
3498 
3499   // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
3500   for (unsigned int i = 0, n = this->reserved_range_size(); i < n; i++) {
3501     target = ::google::protobuf::internal::WireFormatLite::
3502       InternalWriteMessageNoVirtualToArray(
3503         9, this->reserved_range(i), false, target);
3504   }
3505 
3506   // repeated string reserved_name = 10;
3507   for (int i = 0; i < this->reserved_name_size(); i++) {
3508     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3509       this->reserved_name(i).data(), this->reserved_name(i).length(),
3510       ::google::protobuf::internal::WireFormat::SERIALIZE,
3511       "google.protobuf.DescriptorProto.reserved_name");
3512     target = ::google::protobuf::internal::WireFormatLite::
3513       WriteStringToArray(10, this->reserved_name(i), target);
3514   }
3515 
3516   if (_internal_metadata_.have_unknown_fields()) {
3517     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3518         unknown_fields(), target);
3519   }
3520   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto)
3521   return target;
3522 }
3523 
ByteSize() const3524 int DescriptorProto::ByteSize() const {
3525 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorProto)
3526   int total_size = 0;
3527 
3528   if (_has_bits_[0 / 32] & 129u) {
3529     // optional string name = 1;
3530     if (has_name()) {
3531       total_size += 1 +
3532         ::google::protobuf::internal::WireFormatLite::StringSize(
3533           this->name());
3534     }
3535 
3536     // optional .google.protobuf.MessageOptions options = 7;
3537     if (has_options()) {
3538       total_size += 1 +
3539         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3540           *this->options_);
3541     }
3542 
3543   }
3544   // repeated .google.protobuf.FieldDescriptorProto field = 2;
3545   total_size += 1 * this->field_size();
3546   for (int i = 0; i < this->field_size(); i++) {
3547     total_size +=
3548       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3549         this->field(i));
3550   }
3551 
3552   // repeated .google.protobuf.FieldDescriptorProto extension = 6;
3553   total_size += 1 * this->extension_size();
3554   for (int i = 0; i < this->extension_size(); i++) {
3555     total_size +=
3556       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3557         this->extension(i));
3558   }
3559 
3560   // repeated .google.protobuf.DescriptorProto nested_type = 3;
3561   total_size += 1 * this->nested_type_size();
3562   for (int i = 0; i < this->nested_type_size(); i++) {
3563     total_size +=
3564       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3565         this->nested_type(i));
3566   }
3567 
3568   // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3569   total_size += 1 * this->enum_type_size();
3570   for (int i = 0; i < this->enum_type_size(); i++) {
3571     total_size +=
3572       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3573         this->enum_type(i));
3574   }
3575 
3576   // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
3577   total_size += 1 * this->extension_range_size();
3578   for (int i = 0; i < this->extension_range_size(); i++) {
3579     total_size +=
3580       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3581         this->extension_range(i));
3582   }
3583 
3584   // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
3585   total_size += 1 * this->oneof_decl_size();
3586   for (int i = 0; i < this->oneof_decl_size(); i++) {
3587     total_size +=
3588       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3589         this->oneof_decl(i));
3590   }
3591 
3592   // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
3593   total_size += 1 * this->reserved_range_size();
3594   for (int i = 0; i < this->reserved_range_size(); i++) {
3595     total_size +=
3596       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3597         this->reserved_range(i));
3598   }
3599 
3600   // repeated string reserved_name = 10;
3601   total_size += 1 * this->reserved_name_size();
3602   for (int i = 0; i < this->reserved_name_size(); i++) {
3603     total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
3604       this->reserved_name(i));
3605   }
3606 
3607   if (_internal_metadata_.have_unknown_fields()) {
3608     total_size +=
3609       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3610         unknown_fields());
3611   }
3612   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3613   _cached_size_ = total_size;
3614   GOOGLE_SAFE_CONCURRENT_WRITES_END();
3615   return total_size;
3616 }
3617 
MergeFrom(const::google::protobuf::Message & from)3618 void DescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
3619 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.DescriptorProto)
3620   if (GOOGLE_PREDICT_FALSE(&from == this)) {
3621     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
3622   }
3623   const DescriptorProto* source =
3624       ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto>(
3625           &from);
3626   if (source == NULL) {
3627   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.DescriptorProto)
3628     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3629   } else {
3630   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.DescriptorProto)
3631     MergeFrom(*source);
3632   }
3633 }
3634 
MergeFrom(const DescriptorProto & from)3635 void DescriptorProto::MergeFrom(const DescriptorProto& from) {
3636 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DescriptorProto)
3637   if (GOOGLE_PREDICT_FALSE(&from == this)) {
3638     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
3639   }
3640   field_.MergeFrom(from.field_);
3641   extension_.MergeFrom(from.extension_);
3642   nested_type_.MergeFrom(from.nested_type_);
3643   enum_type_.MergeFrom(from.enum_type_);
3644   extension_range_.MergeFrom(from.extension_range_);
3645   oneof_decl_.MergeFrom(from.oneof_decl_);
3646   reserved_range_.MergeFrom(from.reserved_range_);
3647   reserved_name_.MergeFrom(from.reserved_name_);
3648   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3649     if (from.has_name()) {
3650       set_has_name();
3651       name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
3652     }
3653     if (from.has_options()) {
3654       mutable_options()->::google::protobuf::MessageOptions::MergeFrom(from.options());
3655     }
3656   }
3657   if (from._internal_metadata_.have_unknown_fields()) {
3658     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3659   }
3660 }
3661 
CopyFrom(const::google::protobuf::Message & from)3662 void DescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
3663 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.DescriptorProto)
3664   if (&from == this) return;
3665   Clear();
3666   MergeFrom(from);
3667 }
3668 
CopyFrom(const DescriptorProto & from)3669 void DescriptorProto::CopyFrom(const DescriptorProto& from) {
3670 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DescriptorProto)
3671   if (&from == this) return;
3672   Clear();
3673   MergeFrom(from);
3674 }
3675 
IsInitialized() const3676 bool DescriptorProto::IsInitialized() const {
3677 
3678   if (!::google::protobuf::internal::AllAreInitialized(this->field())) return false;
3679   if (!::google::protobuf::internal::AllAreInitialized(this->extension())) return false;
3680   if (!::google::protobuf::internal::AllAreInitialized(this->nested_type())) return false;
3681   if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) return false;
3682   if (!::google::protobuf::internal::AllAreInitialized(this->oneof_decl())) return false;
3683   if (has_options()) {
3684     if (!this->options_->IsInitialized()) return false;
3685   }
3686   return true;
3687 }
3688 
Swap(DescriptorProto * other)3689 void DescriptorProto::Swap(DescriptorProto* other) {
3690   if (other == this) return;
3691   InternalSwap(other);
3692 }
InternalSwap(DescriptorProto * other)3693 void DescriptorProto::InternalSwap(DescriptorProto* other) {
3694   name_.Swap(&other->name_);
3695   field_.UnsafeArenaSwap(&other->field_);
3696   extension_.UnsafeArenaSwap(&other->extension_);
3697   nested_type_.UnsafeArenaSwap(&other->nested_type_);
3698   enum_type_.UnsafeArenaSwap(&other->enum_type_);
3699   extension_range_.UnsafeArenaSwap(&other->extension_range_);
3700   oneof_decl_.UnsafeArenaSwap(&other->oneof_decl_);
3701   std::swap(options_, other->options_);
3702   reserved_range_.UnsafeArenaSwap(&other->reserved_range_);
3703   reserved_name_.UnsafeArenaSwap(&other->reserved_name_);
3704   std::swap(_has_bits_[0], other->_has_bits_[0]);
3705   _internal_metadata_.Swap(&other->_internal_metadata_);
3706   std::swap(_cached_size_, other->_cached_size_);
3707 }
3708 
GetMetadata() const3709 ::google::protobuf::Metadata DescriptorProto::GetMetadata() const {
3710   protobuf_AssignDescriptorsOnce();
3711   ::google::protobuf::Metadata metadata;
3712   metadata.descriptor = DescriptorProto_descriptor_;
3713   metadata.reflection = DescriptorProto_reflection_;
3714   return metadata;
3715 }
3716 
3717 #if PROTOBUF_INLINE_NOT_IN_HEADERS
3718 // DescriptorProto_ExtensionRange
3719 
3720 // optional int32 start = 1;
has_start() const3721 bool DescriptorProto_ExtensionRange::has_start() const {
3722   return (_has_bits_[0] & 0x00000001u) != 0;
3723 }
set_has_start()3724 void DescriptorProto_ExtensionRange::set_has_start() {
3725   _has_bits_[0] |= 0x00000001u;
3726 }
clear_has_start()3727 void DescriptorProto_ExtensionRange::clear_has_start() {
3728   _has_bits_[0] &= ~0x00000001u;
3729 }
clear_start()3730 void DescriptorProto_ExtensionRange::clear_start() {
3731   start_ = 0;
3732   clear_has_start();
3733 }
start() const3734  ::google::protobuf::int32 DescriptorProto_ExtensionRange::start() const {
3735   // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.start)
3736   return start_;
3737 }
set_start(::google::protobuf::int32 value)3738  void DescriptorProto_ExtensionRange::set_start(::google::protobuf::int32 value) {
3739   set_has_start();
3740   start_ = value;
3741   // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.start)
3742 }
3743 
3744 // optional int32 end = 2;
has_end() const3745 bool DescriptorProto_ExtensionRange::has_end() const {
3746   return (_has_bits_[0] & 0x00000002u) != 0;
3747 }
set_has_end()3748 void DescriptorProto_ExtensionRange::set_has_end() {
3749   _has_bits_[0] |= 0x00000002u;
3750 }
clear_has_end()3751 void DescriptorProto_ExtensionRange::clear_has_end() {
3752   _has_bits_[0] &= ~0x00000002u;
3753 }
clear_end()3754 void DescriptorProto_ExtensionRange::clear_end() {
3755   end_ = 0;
3756   clear_has_end();
3757 }
end() const3758  ::google::protobuf::int32 DescriptorProto_ExtensionRange::end() const {
3759   // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.end)
3760   return end_;
3761 }
set_end(::google::protobuf::int32 value)3762  void DescriptorProto_ExtensionRange::set_end(::google::protobuf::int32 value) {
3763   set_has_end();
3764   end_ = value;
3765   // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.end)
3766 }
3767 
3768 // -------------------------------------------------------------------
3769 
3770 // DescriptorProto_ReservedRange
3771 
3772 // optional int32 start = 1;
has_start() const3773 bool DescriptorProto_ReservedRange::has_start() const {
3774   return (_has_bits_[0] & 0x00000001u) != 0;
3775 }
set_has_start()3776 void DescriptorProto_ReservedRange::set_has_start() {
3777   _has_bits_[0] |= 0x00000001u;
3778 }
clear_has_start()3779 void DescriptorProto_ReservedRange::clear_has_start() {
3780   _has_bits_[0] &= ~0x00000001u;
3781 }
clear_start()3782 void DescriptorProto_ReservedRange::clear_start() {
3783   start_ = 0;
3784   clear_has_start();
3785 }
start() const3786  ::google::protobuf::int32 DescriptorProto_ReservedRange::start() const {
3787   // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.start)
3788   return start_;
3789 }
set_start(::google::protobuf::int32 value)3790  void DescriptorProto_ReservedRange::set_start(::google::protobuf::int32 value) {
3791   set_has_start();
3792   start_ = value;
3793   // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.start)
3794 }
3795 
3796 // optional int32 end = 2;
has_end() const3797 bool DescriptorProto_ReservedRange::has_end() const {
3798   return (_has_bits_[0] & 0x00000002u) != 0;
3799 }
set_has_end()3800 void DescriptorProto_ReservedRange::set_has_end() {
3801   _has_bits_[0] |= 0x00000002u;
3802 }
clear_has_end()3803 void DescriptorProto_ReservedRange::clear_has_end() {
3804   _has_bits_[0] &= ~0x00000002u;
3805 }
clear_end()3806 void DescriptorProto_ReservedRange::clear_end() {
3807   end_ = 0;
3808   clear_has_end();
3809 }
end() const3810  ::google::protobuf::int32 DescriptorProto_ReservedRange::end() const {
3811   // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.end)
3812   return end_;
3813 }
set_end(::google::protobuf::int32 value)3814  void DescriptorProto_ReservedRange::set_end(::google::protobuf::int32 value) {
3815   set_has_end();
3816   end_ = value;
3817   // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.end)
3818 }
3819 
3820 // -------------------------------------------------------------------
3821 
3822 // DescriptorProto
3823 
3824 // optional string name = 1;
has_name() const3825 bool DescriptorProto::has_name() const {
3826   return (_has_bits_[0] & 0x00000001u) != 0;
3827 }
set_has_name()3828 void DescriptorProto::set_has_name() {
3829   _has_bits_[0] |= 0x00000001u;
3830 }
clear_has_name()3831 void DescriptorProto::clear_has_name() {
3832   _has_bits_[0] &= ~0x00000001u;
3833 }
clear_name()3834 void DescriptorProto::clear_name() {
3835   name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3836   clear_has_name();
3837 }
name() const3838  const ::std::string& DescriptorProto::name() const {
3839   // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name)
3840   return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3841 }
set_name(const::std::string & value)3842  void DescriptorProto::set_name(const ::std::string& value) {
3843   set_has_name();
3844   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3845   // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name)
3846 }
set_name(const char * value)3847  void DescriptorProto::set_name(const char* value) {
3848   set_has_name();
3849   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3850   // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.name)
3851 }
set_name(const char * value,size_t size)3852  void DescriptorProto::set_name(const char* value, size_t size) {
3853   set_has_name();
3854   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3855       ::std::string(reinterpret_cast<const char*>(value), size));
3856   // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.name)
3857 }
mutable_name()3858  ::std::string* DescriptorProto::mutable_name() {
3859   set_has_name();
3860   // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name)
3861   return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3862 }
release_name()3863  ::std::string* DescriptorProto::release_name() {
3864   // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.name)
3865   clear_has_name();
3866   return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3867 }
set_allocated_name(::std::string * name)3868  void DescriptorProto::set_allocated_name(::std::string* name) {
3869   if (name != NULL) {
3870     set_has_name();
3871   } else {
3872     clear_has_name();
3873   }
3874   name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
3875   // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.name)
3876 }
3877 
3878 // repeated .google.protobuf.FieldDescriptorProto field = 2;
field_size() const3879 int DescriptorProto::field_size() const {
3880   return field_.size();
3881 }
clear_field()3882 void DescriptorProto::clear_field() {
3883   field_.Clear();
3884 }
field(int index) const3885 const ::google::protobuf::FieldDescriptorProto& DescriptorProto::field(int index) const {
3886   // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.field)
3887   return field_.Get(index);
3888 }
mutable_field(int index)3889 ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_field(int index) {
3890   // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.field)
3891   return field_.Mutable(index);
3892 }
add_field()3893 ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_field() {
3894   // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.field)
3895   return field_.Add();
3896 }
3897 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
mutable_field()3898 DescriptorProto::mutable_field() {
3899   // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.field)
3900   return &field_;
3901 }
3902 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
field() const3903 DescriptorProto::field() const {
3904   // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.field)
3905   return field_;
3906 }
3907 
3908 // repeated .google.protobuf.FieldDescriptorProto extension = 6;
extension_size() const3909 int DescriptorProto::extension_size() const {
3910   return extension_.size();
3911 }
clear_extension()3912 void DescriptorProto::clear_extension() {
3913   extension_.Clear();
3914 }
extension(int index) const3915 const ::google::protobuf::FieldDescriptorProto& DescriptorProto::extension(int index) const {
3916   // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension)
3917   return extension_.Get(index);
3918 }
mutable_extension(int index)3919 ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_extension(int index) {
3920   // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension)
3921   return extension_.Mutable(index);
3922 }
add_extension()3923 ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_extension() {
3924   // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension)
3925   return extension_.Add();
3926 }
3927 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
mutable_extension()3928 DescriptorProto::mutable_extension() {
3929   // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension)
3930   return &extension_;
3931 }
3932 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
extension() const3933 DescriptorProto::extension() const {
3934   // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension)
3935   return extension_;
3936 }
3937 
3938 // repeated .google.protobuf.DescriptorProto nested_type = 3;
nested_type_size() const3939 int DescriptorProto::nested_type_size() const {
3940   return nested_type_.size();
3941 }
clear_nested_type()3942 void DescriptorProto::clear_nested_type() {
3943   nested_type_.Clear();
3944 }
nested_type(int index) const3945 const ::google::protobuf::DescriptorProto& DescriptorProto::nested_type(int index) const {
3946   // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.nested_type)
3947   return nested_type_.Get(index);
3948 }
mutable_nested_type(int index)3949 ::google::protobuf::DescriptorProto* DescriptorProto::mutable_nested_type(int index) {
3950   // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.nested_type)
3951   return nested_type_.Mutable(index);
3952 }
add_nested_type()3953 ::google::protobuf::DescriptorProto* DescriptorProto::add_nested_type() {
3954   // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.nested_type)
3955   return nested_type_.Add();
3956 }
3957 ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
mutable_nested_type()3958 DescriptorProto::mutable_nested_type() {
3959   // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.nested_type)
3960   return &nested_type_;
3961 }
3962 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
nested_type() const3963 DescriptorProto::nested_type() const {
3964   // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.nested_type)
3965   return nested_type_;
3966 }
3967 
3968 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
enum_type_size() const3969 int DescriptorProto::enum_type_size() const {
3970   return enum_type_.size();
3971 }
clear_enum_type()3972 void DescriptorProto::clear_enum_type() {
3973   enum_type_.Clear();
3974 }
enum_type(int index) const3975 const ::google::protobuf::EnumDescriptorProto& DescriptorProto::enum_type(int index) const {
3976   // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.enum_type)
3977   return enum_type_.Get(index);
3978 }
mutable_enum_type(int index)3979 ::google::protobuf::EnumDescriptorProto* DescriptorProto::mutable_enum_type(int index) {
3980   // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.enum_type)
3981   return enum_type_.Mutable(index);
3982 }
add_enum_type()3983 ::google::protobuf::EnumDescriptorProto* DescriptorProto::add_enum_type() {
3984   // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.enum_type)
3985   return enum_type_.Add();
3986 }
3987 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
mutable_enum_type()3988 DescriptorProto::mutable_enum_type() {
3989   // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.enum_type)
3990   return &enum_type_;
3991 }
3992 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
enum_type() const3993 DescriptorProto::enum_type() const {
3994   // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.enum_type)
3995   return enum_type_;
3996 }
3997 
3998 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
extension_range_size() const3999 int DescriptorProto::extension_range_size() const {
4000   return extension_range_.size();
4001 }
clear_extension_range()4002 void DescriptorProto::clear_extension_range() {
4003   extension_range_.Clear();
4004 }
extension_range(int index) const4005 const ::google::protobuf::DescriptorProto_ExtensionRange& DescriptorProto::extension_range(int index) const {
4006   // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension_range)
4007   return extension_range_.Get(index);
4008 }
mutable_extension_range(int index)4009 ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::mutable_extension_range(int index) {
4010   // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension_range)
4011   return extension_range_.Mutable(index);
4012 }
add_extension_range()4013 ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::add_extension_range() {
4014   // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension_range)
4015   return extension_range_.Add();
4016 }
4017 ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >*
mutable_extension_range()4018 DescriptorProto::mutable_extension_range() {
4019   // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension_range)
4020   return &extension_range_;
4021 }
4022 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >&
extension_range() const4023 DescriptorProto::extension_range() const {
4024   // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension_range)
4025   return extension_range_;
4026 }
4027 
4028 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
oneof_decl_size() const4029 int DescriptorProto::oneof_decl_size() const {
4030   return oneof_decl_.size();
4031 }
clear_oneof_decl()4032 void DescriptorProto::clear_oneof_decl() {
4033   oneof_decl_.Clear();
4034 }
oneof_decl(int index) const4035 const ::google::protobuf::OneofDescriptorProto& DescriptorProto::oneof_decl(int index) const {
4036   // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.oneof_decl)
4037   return oneof_decl_.Get(index);
4038 }
mutable_oneof_decl(int index)4039 ::google::protobuf::OneofDescriptorProto* DescriptorProto::mutable_oneof_decl(int index) {
4040   // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.oneof_decl)
4041   return oneof_decl_.Mutable(index);
4042 }
add_oneof_decl()4043 ::google::protobuf::OneofDescriptorProto* DescriptorProto::add_oneof_decl() {
4044   // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.oneof_decl)
4045   return oneof_decl_.Add();
4046 }
4047 ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >*
mutable_oneof_decl()4048 DescriptorProto::mutable_oneof_decl() {
4049   // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.oneof_decl)
4050   return &oneof_decl_;
4051 }
4052 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >&
oneof_decl() const4053 DescriptorProto::oneof_decl() const {
4054   // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_decl)
4055   return oneof_decl_;
4056 }
4057 
4058 // optional .google.protobuf.MessageOptions options = 7;
has_options() const4059 bool DescriptorProto::has_options() const {
4060   return (_has_bits_[0] & 0x00000080u) != 0;
4061 }
set_has_options()4062 void DescriptorProto::set_has_options() {
4063   _has_bits_[0] |= 0x00000080u;
4064 }
clear_has_options()4065 void DescriptorProto::clear_has_options() {
4066   _has_bits_[0] &= ~0x00000080u;
4067 }
clear_options()4068 void DescriptorProto::clear_options() {
4069   if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear();
4070   clear_has_options();
4071 }
options() const4072 const ::google::protobuf::MessageOptions& DescriptorProto::options() const {
4073   // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options)
4074   return options_ != NULL ? *options_ : *default_instance_->options_;
4075 }
mutable_options()4076 ::google::protobuf::MessageOptions* DescriptorProto::mutable_options() {
4077   set_has_options();
4078   if (options_ == NULL) {
4079     options_ = new ::google::protobuf::MessageOptions;
4080   }
4081   // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.options)
4082   return options_;
4083 }
release_options()4084 ::google::protobuf::MessageOptions* DescriptorProto::release_options() {
4085   // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.options)
4086   clear_has_options();
4087   ::google::protobuf::MessageOptions* temp = options_;
4088   options_ = NULL;
4089   return temp;
4090 }
set_allocated_options(::google::protobuf::MessageOptions * options)4091 void DescriptorProto::set_allocated_options(::google::protobuf::MessageOptions* options) {
4092   delete options_;
4093   options_ = options;
4094   if (options) {
4095     set_has_options();
4096   } else {
4097     clear_has_options();
4098   }
4099   // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.options)
4100 }
4101 
4102 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
reserved_range_size() const4103 int DescriptorProto::reserved_range_size() const {
4104   return reserved_range_.size();
4105 }
clear_reserved_range()4106 void DescriptorProto::clear_reserved_range() {
4107   reserved_range_.Clear();
4108 }
reserved_range(int index) const4109 const ::google::protobuf::DescriptorProto_ReservedRange& DescriptorProto::reserved_range(int index) const {
4110   // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_range)
4111   return reserved_range_.Get(index);
4112 }
mutable_reserved_range(int index)4113 ::google::protobuf::DescriptorProto_ReservedRange* DescriptorProto::mutable_reserved_range(int index) {
4114   // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_range)
4115   return reserved_range_.Mutable(index);
4116 }
add_reserved_range()4117 ::google::protobuf::DescriptorProto_ReservedRange* DescriptorProto::add_reserved_range() {
4118   // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_range)
4119   return reserved_range_.Add();
4120 }
4121 ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >*
mutable_reserved_range()4122 DescriptorProto::mutable_reserved_range() {
4123   // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_range)
4124   return &reserved_range_;
4125 }
4126 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >&
reserved_range() const4127 DescriptorProto::reserved_range() const {
4128   // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_range)
4129   return reserved_range_;
4130 }
4131 
4132 // repeated string reserved_name = 10;
reserved_name_size() const4133 int DescriptorProto::reserved_name_size() const {
4134   return reserved_name_.size();
4135 }
clear_reserved_name()4136 void DescriptorProto::clear_reserved_name() {
4137   reserved_name_.Clear();
4138 }
reserved_name(int index) const4139  const ::std::string& DescriptorProto::reserved_name(int index) const {
4140   // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_name)
4141   return reserved_name_.Get(index);
4142 }
mutable_reserved_name(int index)4143  ::std::string* DescriptorProto::mutable_reserved_name(int index) {
4144   // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_name)
4145   return reserved_name_.Mutable(index);
4146 }
set_reserved_name(int index,const::std::string & value)4147  void DescriptorProto::set_reserved_name(int index, const ::std::string& value) {
4148   // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved_name)
4149   reserved_name_.Mutable(index)->assign(value);
4150 }
set_reserved_name(int index,const char * value)4151  void DescriptorProto::set_reserved_name(int index, const char* value) {
4152   reserved_name_.Mutable(index)->assign(value);
4153   // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.reserved_name)
4154 }
set_reserved_name(int index,const char * value,size_t size)4155  void DescriptorProto::set_reserved_name(int index, const char* value, size_t size) {
4156   reserved_name_.Mutable(index)->assign(
4157     reinterpret_cast<const char*>(value), size);
4158   // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.reserved_name)
4159 }
add_reserved_name()4160  ::std::string* DescriptorProto::add_reserved_name() {
4161   // @@protoc_insertion_point(field_add_mutable:google.protobuf.DescriptorProto.reserved_name)
4162   return reserved_name_.Add();
4163 }
add_reserved_name(const::std::string & value)4164  void DescriptorProto::add_reserved_name(const ::std::string& value) {
4165   reserved_name_.Add()->assign(value);
4166   // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_name)
4167 }
add_reserved_name(const char * value)4168  void DescriptorProto::add_reserved_name(const char* value) {
4169   reserved_name_.Add()->assign(value);
4170   // @@protoc_insertion_point(field_add_char:google.protobuf.DescriptorProto.reserved_name)
4171 }
add_reserved_name(const char * value,size_t size)4172  void DescriptorProto::add_reserved_name(const char* value, size_t size) {
4173   reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
4174   // @@protoc_insertion_point(field_add_pointer:google.protobuf.DescriptorProto.reserved_name)
4175 }
4176  const ::google::protobuf::RepeatedPtrField< ::std::string>&
reserved_name() const4177 DescriptorProto::reserved_name() const {
4178   // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_name)
4179   return reserved_name_;
4180 }
4181  ::google::protobuf::RepeatedPtrField< ::std::string>*
mutable_reserved_name()4182 DescriptorProto::mutable_reserved_name() {
4183   // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_name)
4184   return &reserved_name_;
4185 }
4186 
4187 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
4188 
4189 // ===================================================================
4190 
FieldDescriptorProto_Type_descriptor()4191 const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor() {
4192   protobuf_AssignDescriptorsOnce();
4193   return FieldDescriptorProto_Type_descriptor_;
4194 }
FieldDescriptorProto_Type_IsValid(int value)4195 bool FieldDescriptorProto_Type_IsValid(int value) {
4196   switch(value) {
4197     case 1:
4198     case 2:
4199     case 3:
4200     case 4:
4201     case 5:
4202     case 6:
4203     case 7:
4204     case 8:
4205     case 9:
4206     case 10:
4207     case 11:
4208     case 12:
4209     case 13:
4210     case 14:
4211     case 15:
4212     case 16:
4213     case 17:
4214     case 18:
4215       return true;
4216     default:
4217       return false;
4218   }
4219 }
4220 
4221 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4222 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_DOUBLE;
4223 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FLOAT;
4224 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT64;
4225 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT64;
4226 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT32;
4227 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED64;
4228 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED32;
4229 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BOOL;
4230 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_STRING;
4231 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_GROUP;
4232 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_MESSAGE;
4233 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BYTES;
4234 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT32;
4235 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_ENUM;
4236 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED32;
4237 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED64;
4238 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT32;
4239 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT64;
4240 const FieldDescriptorProto_Type FieldDescriptorProto::Type_MIN;
4241 const FieldDescriptorProto_Type FieldDescriptorProto::Type_MAX;
4242 const int FieldDescriptorProto::Type_ARRAYSIZE;
4243 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
FieldDescriptorProto_Label_descriptor()4244 const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor() {
4245   protobuf_AssignDescriptorsOnce();
4246   return FieldDescriptorProto_Label_descriptor_;
4247 }
FieldDescriptorProto_Label_IsValid(int value)4248 bool FieldDescriptorProto_Label_IsValid(int value) {
4249   switch(value) {
4250     case 1:
4251     case 2:
4252     case 3:
4253       return true;
4254     default:
4255       return false;
4256   }
4257 }
4258 
4259 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4260 const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_OPTIONAL;
4261 const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REQUIRED;
4262 const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REPEATED;
4263 const FieldDescriptorProto_Label FieldDescriptorProto::Label_MIN;
4264 const FieldDescriptorProto_Label FieldDescriptorProto::Label_MAX;
4265 const int FieldDescriptorProto::Label_ARRAYSIZE;
4266 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4267 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4268 const int FieldDescriptorProto::kNameFieldNumber;
4269 const int FieldDescriptorProto::kNumberFieldNumber;
4270 const int FieldDescriptorProto::kLabelFieldNumber;
4271 const int FieldDescriptorProto::kTypeFieldNumber;
4272 const int FieldDescriptorProto::kTypeNameFieldNumber;
4273 const int FieldDescriptorProto::kExtendeeFieldNumber;
4274 const int FieldDescriptorProto::kDefaultValueFieldNumber;
4275 const int FieldDescriptorProto::kOneofIndexFieldNumber;
4276 const int FieldDescriptorProto::kJsonNameFieldNumber;
4277 const int FieldDescriptorProto::kOptionsFieldNumber;
4278 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4279 
FieldDescriptorProto()4280 FieldDescriptorProto::FieldDescriptorProto()
4281   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4282   SharedCtor();
4283   // @@protoc_insertion_point(constructor:google.protobuf.FieldDescriptorProto)
4284 }
4285 
InitAsDefaultInstance()4286 void FieldDescriptorProto::InitAsDefaultInstance() {
4287   options_ = const_cast< ::google::protobuf::FieldOptions*>(&::google::protobuf::FieldOptions::default_instance());
4288 }
4289 
FieldDescriptorProto(const FieldDescriptorProto & from)4290 FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from)
4291   : ::google::protobuf::Message(),
4292     _internal_metadata_(NULL) {
4293   SharedCtor();
4294   MergeFrom(from);
4295   // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldDescriptorProto)
4296 }
4297 
SharedCtor()4298 void FieldDescriptorProto::SharedCtor() {
4299   ::google::protobuf::internal::GetEmptyString();
4300   _cached_size_ = 0;
4301   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4302   number_ = 0;
4303   label_ = 1;
4304   type_ = 1;
4305   type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4306   extendee_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4307   default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4308   oneof_index_ = 0;
4309   json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4310   options_ = NULL;
4311   ::memset(_has_bits_, 0, sizeof(_has_bits_));
4312 }
4313 
~FieldDescriptorProto()4314 FieldDescriptorProto::~FieldDescriptorProto() {
4315   // @@protoc_insertion_point(destructor:google.protobuf.FieldDescriptorProto)
4316   SharedDtor();
4317 }
4318 
SharedDtor()4319 void FieldDescriptorProto::SharedDtor() {
4320   name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4321   type_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4322   extendee_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4323   default_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4324   json_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4325   if (this != default_instance_) {
4326     delete options_;
4327   }
4328 }
4329 
SetCachedSize(int size) const4330 void FieldDescriptorProto::SetCachedSize(int size) const {
4331   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4332   _cached_size_ = size;
4333   GOOGLE_SAFE_CONCURRENT_WRITES_END();
4334 }
descriptor()4335 const ::google::protobuf::Descriptor* FieldDescriptorProto::descriptor() {
4336   protobuf_AssignDescriptorsOnce();
4337   return FieldDescriptorProto_descriptor_;
4338 }
4339 
default_instance()4340 const FieldDescriptorProto& FieldDescriptorProto::default_instance() {
4341   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
4342   return *default_instance_;
4343 }
4344 
4345 FieldDescriptorProto* FieldDescriptorProto::default_instance_ = NULL;
4346 
New(::google::protobuf::Arena * arena) const4347 FieldDescriptorProto* FieldDescriptorProto::New(::google::protobuf::Arena* arena) const {
4348   FieldDescriptorProto* n = new FieldDescriptorProto;
4349   if (arena != NULL) {
4350     arena->Own(n);
4351   }
4352   return n;
4353 }
4354 
Clear()4355 void FieldDescriptorProto::Clear() {
4356 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldDescriptorProto)
4357   if (_has_bits_[0 / 32] & 255u) {
4358     if (has_name()) {
4359       name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4360     }
4361     number_ = 0;
4362     label_ = 1;
4363     type_ = 1;
4364     if (has_type_name()) {
4365       type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4366     }
4367     if (has_extendee()) {
4368       extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4369     }
4370     if (has_default_value()) {
4371       default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4372     }
4373     oneof_index_ = 0;
4374   }
4375   if (_has_bits_[8 / 32] & 768u) {
4376     if (has_json_name()) {
4377       json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4378     }
4379     if (has_options()) {
4380       if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear();
4381     }
4382   }
4383   ::memset(_has_bits_, 0, sizeof(_has_bits_));
4384   if (_internal_metadata_.have_unknown_fields()) {
4385     mutable_unknown_fields()->Clear();
4386   }
4387 }
4388 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)4389 bool FieldDescriptorProto::MergePartialFromCodedStream(
4390     ::google::protobuf::io::CodedInputStream* input) {
4391 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4392   ::google::protobuf::uint32 tag;
4393   // @@protoc_insertion_point(parse_start:google.protobuf.FieldDescriptorProto)
4394   for (;;) {
4395     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
4396     tag = p.first;
4397     if (!p.second) goto handle_unusual;
4398     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4399       // optional string name = 1;
4400       case 1: {
4401         if (tag == 10) {
4402           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4403                 input, this->mutable_name()));
4404           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4405             this->name().data(), this->name().length(),
4406             ::google::protobuf::internal::WireFormat::PARSE,
4407             "google.protobuf.FieldDescriptorProto.name");
4408         } else {
4409           goto handle_unusual;
4410         }
4411         if (input->ExpectTag(18)) goto parse_extendee;
4412         break;
4413       }
4414 
4415       // optional string extendee = 2;
4416       case 2: {
4417         if (tag == 18) {
4418          parse_extendee:
4419           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4420                 input, this->mutable_extendee()));
4421           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4422             this->extendee().data(), this->extendee().length(),
4423             ::google::protobuf::internal::WireFormat::PARSE,
4424             "google.protobuf.FieldDescriptorProto.extendee");
4425         } else {
4426           goto handle_unusual;
4427         }
4428         if (input->ExpectTag(24)) goto parse_number;
4429         break;
4430       }
4431 
4432       // optional int32 number = 3;
4433       case 3: {
4434         if (tag == 24) {
4435          parse_number:
4436           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4437                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
4438                  input, &number_)));
4439           set_has_number();
4440         } else {
4441           goto handle_unusual;
4442         }
4443         if (input->ExpectTag(32)) goto parse_label;
4444         break;
4445       }
4446 
4447       // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
4448       case 4: {
4449         if (tag == 32) {
4450          parse_label:
4451           int value;
4452           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4453                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4454                  input, &value)));
4455           if (::google::protobuf::FieldDescriptorProto_Label_IsValid(value)) {
4456             set_label(static_cast< ::google::protobuf::FieldDescriptorProto_Label >(value));
4457           } else {
4458             mutable_unknown_fields()->AddVarint(4, value);
4459           }
4460         } else {
4461           goto handle_unusual;
4462         }
4463         if (input->ExpectTag(40)) goto parse_type;
4464         break;
4465       }
4466 
4467       // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
4468       case 5: {
4469         if (tag == 40) {
4470          parse_type:
4471           int value;
4472           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4473                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4474                  input, &value)));
4475           if (::google::protobuf::FieldDescriptorProto_Type_IsValid(value)) {
4476             set_type(static_cast< ::google::protobuf::FieldDescriptorProto_Type >(value));
4477           } else {
4478             mutable_unknown_fields()->AddVarint(5, value);
4479           }
4480         } else {
4481           goto handle_unusual;
4482         }
4483         if (input->ExpectTag(50)) goto parse_type_name;
4484         break;
4485       }
4486 
4487       // optional string type_name = 6;
4488       case 6: {
4489         if (tag == 50) {
4490          parse_type_name:
4491           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4492                 input, this->mutable_type_name()));
4493           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4494             this->type_name().data(), this->type_name().length(),
4495             ::google::protobuf::internal::WireFormat::PARSE,
4496             "google.protobuf.FieldDescriptorProto.type_name");
4497         } else {
4498           goto handle_unusual;
4499         }
4500         if (input->ExpectTag(58)) goto parse_default_value;
4501         break;
4502       }
4503 
4504       // optional string default_value = 7;
4505       case 7: {
4506         if (tag == 58) {
4507          parse_default_value:
4508           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4509                 input, this->mutable_default_value()));
4510           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4511             this->default_value().data(), this->default_value().length(),
4512             ::google::protobuf::internal::WireFormat::PARSE,
4513             "google.protobuf.FieldDescriptorProto.default_value");
4514         } else {
4515           goto handle_unusual;
4516         }
4517         if (input->ExpectTag(66)) goto parse_options;
4518         break;
4519       }
4520 
4521       // optional .google.protobuf.FieldOptions options = 8;
4522       case 8: {
4523         if (tag == 66) {
4524          parse_options:
4525           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4526                input, mutable_options()));
4527         } else {
4528           goto handle_unusual;
4529         }
4530         if (input->ExpectTag(72)) goto parse_oneof_index;
4531         break;
4532       }
4533 
4534       // optional int32 oneof_index = 9;
4535       case 9: {
4536         if (tag == 72) {
4537          parse_oneof_index:
4538           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4539                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
4540                  input, &oneof_index_)));
4541           set_has_oneof_index();
4542         } else {
4543           goto handle_unusual;
4544         }
4545         if (input->ExpectTag(82)) goto parse_json_name;
4546         break;
4547       }
4548 
4549       // optional string json_name = 10;
4550       case 10: {
4551         if (tag == 82) {
4552          parse_json_name:
4553           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4554                 input, this->mutable_json_name()));
4555           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4556             this->json_name().data(), this->json_name().length(),
4557             ::google::protobuf::internal::WireFormat::PARSE,
4558             "google.protobuf.FieldDescriptorProto.json_name");
4559         } else {
4560           goto handle_unusual;
4561         }
4562         if (input->ExpectAtEnd()) goto success;
4563         break;
4564       }
4565 
4566       default: {
4567       handle_unusual:
4568         if (tag == 0 ||
4569             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4570             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4571           goto success;
4572         }
4573         DO_(::google::protobuf::internal::WireFormat::SkipField(
4574               input, tag, mutable_unknown_fields()));
4575         break;
4576       }
4577     }
4578   }
4579 success:
4580   // @@protoc_insertion_point(parse_success:google.protobuf.FieldDescriptorProto)
4581   return true;
4582 failure:
4583   // @@protoc_insertion_point(parse_failure:google.protobuf.FieldDescriptorProto)
4584   return false;
4585 #undef DO_
4586 }
4587 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const4588 void FieldDescriptorProto::SerializeWithCachedSizes(
4589     ::google::protobuf::io::CodedOutputStream* output) const {
4590   // @@protoc_insertion_point(serialize_start:google.protobuf.FieldDescriptorProto)
4591   // optional string name = 1;
4592   if (has_name()) {
4593     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4594       this->name().data(), this->name().length(),
4595       ::google::protobuf::internal::WireFormat::SERIALIZE,
4596       "google.protobuf.FieldDescriptorProto.name");
4597     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4598       1, this->name(), output);
4599   }
4600 
4601   // optional string extendee = 2;
4602   if (has_extendee()) {
4603     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4604       this->extendee().data(), this->extendee().length(),
4605       ::google::protobuf::internal::WireFormat::SERIALIZE,
4606       "google.protobuf.FieldDescriptorProto.extendee");
4607     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4608       2, this->extendee(), output);
4609   }
4610 
4611   // optional int32 number = 3;
4612   if (has_number()) {
4613     ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->number(), output);
4614   }
4615 
4616   // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
4617   if (has_label()) {
4618     ::google::protobuf::internal::WireFormatLite::WriteEnum(
4619       4, this->label(), output);
4620   }
4621 
4622   // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
4623   if (has_type()) {
4624     ::google::protobuf::internal::WireFormatLite::WriteEnum(
4625       5, this->type(), output);
4626   }
4627 
4628   // optional string type_name = 6;
4629   if (has_type_name()) {
4630     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4631       this->type_name().data(), this->type_name().length(),
4632       ::google::protobuf::internal::WireFormat::SERIALIZE,
4633       "google.protobuf.FieldDescriptorProto.type_name");
4634     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4635       6, this->type_name(), output);
4636   }
4637 
4638   // optional string default_value = 7;
4639   if (has_default_value()) {
4640     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4641       this->default_value().data(), this->default_value().length(),
4642       ::google::protobuf::internal::WireFormat::SERIALIZE,
4643       "google.protobuf.FieldDescriptorProto.default_value");
4644     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4645       7, this->default_value(), output);
4646   }
4647 
4648   // optional .google.protobuf.FieldOptions options = 8;
4649   if (has_options()) {
4650     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4651       8, *this->options_, output);
4652   }
4653 
4654   // optional int32 oneof_index = 9;
4655   if (has_oneof_index()) {
4656     ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->oneof_index(), output);
4657   }
4658 
4659   // optional string json_name = 10;
4660   if (has_json_name()) {
4661     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4662       this->json_name().data(), this->json_name().length(),
4663       ::google::protobuf::internal::WireFormat::SERIALIZE,
4664       "google.protobuf.FieldDescriptorProto.json_name");
4665     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4666       10, this->json_name(), output);
4667   }
4668 
4669   if (_internal_metadata_.have_unknown_fields()) {
4670     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4671         unknown_fields(), output);
4672   }
4673   // @@protoc_insertion_point(serialize_end:google.protobuf.FieldDescriptorProto)
4674 }
4675 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const4676 ::google::protobuf::uint8* FieldDescriptorProto::InternalSerializeWithCachedSizesToArray(
4677     bool deterministic, ::google::protobuf::uint8* target) const {
4678   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldDescriptorProto)
4679   // optional string name = 1;
4680   if (has_name()) {
4681     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4682       this->name().data(), this->name().length(),
4683       ::google::protobuf::internal::WireFormat::SERIALIZE,
4684       "google.protobuf.FieldDescriptorProto.name");
4685     target =
4686       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4687         1, this->name(), target);
4688   }
4689 
4690   // optional string extendee = 2;
4691   if (has_extendee()) {
4692     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4693       this->extendee().data(), this->extendee().length(),
4694       ::google::protobuf::internal::WireFormat::SERIALIZE,
4695       "google.protobuf.FieldDescriptorProto.extendee");
4696     target =
4697       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4698         2, this->extendee(), target);
4699   }
4700 
4701   // optional int32 number = 3;
4702   if (has_number()) {
4703     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->number(), target);
4704   }
4705 
4706   // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
4707   if (has_label()) {
4708     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4709       4, this->label(), target);
4710   }
4711 
4712   // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
4713   if (has_type()) {
4714     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4715       5, this->type(), target);
4716   }
4717 
4718   // optional string type_name = 6;
4719   if (has_type_name()) {
4720     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4721       this->type_name().data(), this->type_name().length(),
4722       ::google::protobuf::internal::WireFormat::SERIALIZE,
4723       "google.protobuf.FieldDescriptorProto.type_name");
4724     target =
4725       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4726         6, this->type_name(), target);
4727   }
4728 
4729   // optional string default_value = 7;
4730   if (has_default_value()) {
4731     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4732       this->default_value().data(), this->default_value().length(),
4733       ::google::protobuf::internal::WireFormat::SERIALIZE,
4734       "google.protobuf.FieldDescriptorProto.default_value");
4735     target =
4736       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4737         7, this->default_value(), target);
4738   }
4739 
4740   // optional .google.protobuf.FieldOptions options = 8;
4741   if (has_options()) {
4742     target = ::google::protobuf::internal::WireFormatLite::
4743       InternalWriteMessageNoVirtualToArray(
4744         8, *this->options_, false, target);
4745   }
4746 
4747   // optional int32 oneof_index = 9;
4748   if (has_oneof_index()) {
4749     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->oneof_index(), target);
4750   }
4751 
4752   // optional string json_name = 10;
4753   if (has_json_name()) {
4754     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4755       this->json_name().data(), this->json_name().length(),
4756       ::google::protobuf::internal::WireFormat::SERIALIZE,
4757       "google.protobuf.FieldDescriptorProto.json_name");
4758     target =
4759       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4760         10, this->json_name(), target);
4761   }
4762 
4763   if (_internal_metadata_.have_unknown_fields()) {
4764     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4765         unknown_fields(), target);
4766   }
4767   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldDescriptorProto)
4768   return target;
4769 }
4770 
ByteSize() const4771 int FieldDescriptorProto::ByteSize() const {
4772 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldDescriptorProto)
4773   int total_size = 0;
4774 
4775   if (_has_bits_[0 / 32] & 255u) {
4776     // optional string name = 1;
4777     if (has_name()) {
4778       total_size += 1 +
4779         ::google::protobuf::internal::WireFormatLite::StringSize(
4780           this->name());
4781     }
4782 
4783     // optional int32 number = 3;
4784     if (has_number()) {
4785       total_size += 1 +
4786         ::google::protobuf::internal::WireFormatLite::Int32Size(
4787           this->number());
4788     }
4789 
4790     // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
4791     if (has_label()) {
4792       total_size += 1 +
4793         ::google::protobuf::internal::WireFormatLite::EnumSize(this->label());
4794     }
4795 
4796     // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
4797     if (has_type()) {
4798       total_size += 1 +
4799         ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
4800     }
4801 
4802     // optional string type_name = 6;
4803     if (has_type_name()) {
4804       total_size += 1 +
4805         ::google::protobuf::internal::WireFormatLite::StringSize(
4806           this->type_name());
4807     }
4808 
4809     // optional string extendee = 2;
4810     if (has_extendee()) {
4811       total_size += 1 +
4812         ::google::protobuf::internal::WireFormatLite::StringSize(
4813           this->extendee());
4814     }
4815 
4816     // optional string default_value = 7;
4817     if (has_default_value()) {
4818       total_size += 1 +
4819         ::google::protobuf::internal::WireFormatLite::StringSize(
4820           this->default_value());
4821     }
4822 
4823     // optional int32 oneof_index = 9;
4824     if (has_oneof_index()) {
4825       total_size += 1 +
4826         ::google::protobuf::internal::WireFormatLite::Int32Size(
4827           this->oneof_index());
4828     }
4829 
4830   }
4831   if (_has_bits_[8 / 32] & 768u) {
4832     // optional string json_name = 10;
4833     if (has_json_name()) {
4834       total_size += 1 +
4835         ::google::protobuf::internal::WireFormatLite::StringSize(
4836           this->json_name());
4837     }
4838 
4839     // optional .google.protobuf.FieldOptions options = 8;
4840     if (has_options()) {
4841       total_size += 1 +
4842         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4843           *this->options_);
4844     }
4845 
4846   }
4847   if (_internal_metadata_.have_unknown_fields()) {
4848     total_size +=
4849       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4850         unknown_fields());
4851   }
4852   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4853   _cached_size_ = total_size;
4854   GOOGLE_SAFE_CONCURRENT_WRITES_END();
4855   return total_size;
4856 }
4857 
MergeFrom(const::google::protobuf::Message & from)4858 void FieldDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
4859 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldDescriptorProto)
4860   if (GOOGLE_PREDICT_FALSE(&from == this)) {
4861     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
4862   }
4863   const FieldDescriptorProto* source =
4864       ::google::protobuf::internal::DynamicCastToGenerated<const FieldDescriptorProto>(
4865           &from);
4866   if (source == NULL) {
4867   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FieldDescriptorProto)
4868     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4869   } else {
4870   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FieldDescriptorProto)
4871     MergeFrom(*source);
4872   }
4873 }
4874 
MergeFrom(const FieldDescriptorProto & from)4875 void FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) {
4876 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FieldDescriptorProto)
4877   if (GOOGLE_PREDICT_FALSE(&from == this)) {
4878     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
4879   }
4880   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4881     if (from.has_name()) {
4882       set_has_name();
4883       name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
4884     }
4885     if (from.has_number()) {
4886       set_number(from.number());
4887     }
4888     if (from.has_label()) {
4889       set_label(from.label());
4890     }
4891     if (from.has_type()) {
4892       set_type(from.type());
4893     }
4894     if (from.has_type_name()) {
4895       set_has_type_name();
4896       type_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_name_);
4897     }
4898     if (from.has_extendee()) {
4899       set_has_extendee();
4900       extendee_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.extendee_);
4901     }
4902     if (from.has_default_value()) {
4903       set_has_default_value();
4904       default_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.default_value_);
4905     }
4906     if (from.has_oneof_index()) {
4907       set_oneof_index(from.oneof_index());
4908     }
4909   }
4910   if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
4911     if (from.has_json_name()) {
4912       set_has_json_name();
4913       json_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.json_name_);
4914     }
4915     if (from.has_options()) {
4916       mutable_options()->::google::protobuf::FieldOptions::MergeFrom(from.options());
4917     }
4918   }
4919   if (from._internal_metadata_.have_unknown_fields()) {
4920     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4921   }
4922 }
4923 
CopyFrom(const::google::protobuf::Message & from)4924 void FieldDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
4925 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldDescriptorProto)
4926   if (&from == this) return;
4927   Clear();
4928   MergeFrom(from);
4929 }
4930 
CopyFrom(const FieldDescriptorProto & from)4931 void FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) {
4932 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FieldDescriptorProto)
4933   if (&from == this) return;
4934   Clear();
4935   MergeFrom(from);
4936 }
4937 
IsInitialized() const4938 bool FieldDescriptorProto::IsInitialized() const {
4939 
4940   if (has_options()) {
4941     if (!this->options_->IsInitialized()) return false;
4942   }
4943   return true;
4944 }
4945 
Swap(FieldDescriptorProto * other)4946 void FieldDescriptorProto::Swap(FieldDescriptorProto* other) {
4947   if (other == this) return;
4948   InternalSwap(other);
4949 }
InternalSwap(FieldDescriptorProto * other)4950 void FieldDescriptorProto::InternalSwap(FieldDescriptorProto* other) {
4951   name_.Swap(&other->name_);
4952   std::swap(number_, other->number_);
4953   std::swap(label_, other->label_);
4954   std::swap(type_, other->type_);
4955   type_name_.Swap(&other->type_name_);
4956   extendee_.Swap(&other->extendee_);
4957   default_value_.Swap(&other->default_value_);
4958   std::swap(oneof_index_, other->oneof_index_);
4959   json_name_.Swap(&other->json_name_);
4960   std::swap(options_, other->options_);
4961   std::swap(_has_bits_[0], other->_has_bits_[0]);
4962   _internal_metadata_.Swap(&other->_internal_metadata_);
4963   std::swap(_cached_size_, other->_cached_size_);
4964 }
4965 
GetMetadata() const4966 ::google::protobuf::Metadata FieldDescriptorProto::GetMetadata() const {
4967   protobuf_AssignDescriptorsOnce();
4968   ::google::protobuf::Metadata metadata;
4969   metadata.descriptor = FieldDescriptorProto_descriptor_;
4970   metadata.reflection = FieldDescriptorProto_reflection_;
4971   return metadata;
4972 }
4973 
4974 #if PROTOBUF_INLINE_NOT_IN_HEADERS
4975 // FieldDescriptorProto
4976 
4977 // optional string name = 1;
has_name() const4978 bool FieldDescriptorProto::has_name() const {
4979   return (_has_bits_[0] & 0x00000001u) != 0;
4980 }
set_has_name()4981 void FieldDescriptorProto::set_has_name() {
4982   _has_bits_[0] |= 0x00000001u;
4983 }
clear_has_name()4984 void FieldDescriptorProto::clear_has_name() {
4985   _has_bits_[0] &= ~0x00000001u;
4986 }
clear_name()4987 void FieldDescriptorProto::clear_name() {
4988   name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4989   clear_has_name();
4990 }
name() const4991  const ::std::string& FieldDescriptorProto::name() const {
4992   // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.name)
4993   return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4994 }
set_name(const::std::string & value)4995  void FieldDescriptorProto::set_name(const ::std::string& value) {
4996   set_has_name();
4997   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4998   // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.name)
4999 }
set_name(const char * value)5000  void FieldDescriptorProto::set_name(const char* value) {
5001   set_has_name();
5002   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5003   // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.name)
5004 }
set_name(const char * value,size_t size)5005  void FieldDescriptorProto::set_name(const char* value, size_t size) {
5006   set_has_name();
5007   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5008       ::std::string(reinterpret_cast<const char*>(value), size));
5009   // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.name)
5010 }
mutable_name()5011  ::std::string* FieldDescriptorProto::mutable_name() {
5012   set_has_name();
5013   // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.name)
5014   return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5015 }
release_name()5016  ::std::string* FieldDescriptorProto::release_name() {
5017   // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.name)
5018   clear_has_name();
5019   return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5020 }
set_allocated_name(::std::string * name)5021  void FieldDescriptorProto::set_allocated_name(::std::string* name) {
5022   if (name != NULL) {
5023     set_has_name();
5024   } else {
5025     clear_has_name();
5026   }
5027   name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
5028   // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.name)
5029 }
5030 
5031 // optional int32 number = 3;
has_number() const5032 bool FieldDescriptorProto::has_number() const {
5033   return (_has_bits_[0] & 0x00000002u) != 0;
5034 }
set_has_number()5035 void FieldDescriptorProto::set_has_number() {
5036   _has_bits_[0] |= 0x00000002u;
5037 }
clear_has_number()5038 void FieldDescriptorProto::clear_has_number() {
5039   _has_bits_[0] &= ~0x00000002u;
5040 }
clear_number()5041 void FieldDescriptorProto::clear_number() {
5042   number_ = 0;
5043   clear_has_number();
5044 }
number() const5045  ::google::protobuf::int32 FieldDescriptorProto::number() const {
5046   // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.number)
5047   return number_;
5048 }
set_number(::google::protobuf::int32 value)5049  void FieldDescriptorProto::set_number(::google::protobuf::int32 value) {
5050   set_has_number();
5051   number_ = value;
5052   // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.number)
5053 }
5054 
5055 // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
has_label() const5056 bool FieldDescriptorProto::has_label() const {
5057   return (_has_bits_[0] & 0x00000004u) != 0;
5058 }
set_has_label()5059 void FieldDescriptorProto::set_has_label() {
5060   _has_bits_[0] |= 0x00000004u;
5061 }
clear_has_label()5062 void FieldDescriptorProto::clear_has_label() {
5063   _has_bits_[0] &= ~0x00000004u;
5064 }
clear_label()5065 void FieldDescriptorProto::clear_label() {
5066   label_ = 1;
5067   clear_has_label();
5068 }
label() const5069  ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() const {
5070   // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.label)
5071   return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_);
5072 }
set_label(::google::protobuf::FieldDescriptorProto_Label value)5073  void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_Label value) {
5074   assert(::google::protobuf::FieldDescriptorProto_Label_IsValid(value));
5075   set_has_label();
5076   label_ = value;
5077   // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.label)
5078 }
5079 
5080 // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
has_type() const5081 bool FieldDescriptorProto::has_type() const {
5082   return (_has_bits_[0] & 0x00000008u) != 0;
5083 }
set_has_type()5084 void FieldDescriptorProto::set_has_type() {
5085   _has_bits_[0] |= 0x00000008u;
5086 }
clear_has_type()5087 void FieldDescriptorProto::clear_has_type() {
5088   _has_bits_[0] &= ~0x00000008u;
5089 }
clear_type()5090 void FieldDescriptorProto::clear_type() {
5091   type_ = 1;
5092   clear_has_type();
5093 }
type() const5094  ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() const {
5095   // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type)
5096   return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_);
5097 }
set_type(::google::protobuf::FieldDescriptorProto_Type value)5098  void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Type value) {
5099   assert(::google::protobuf::FieldDescriptorProto_Type_IsValid(value));
5100   set_has_type();
5101   type_ = value;
5102   // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type)
5103 }
5104 
5105 // optional string type_name = 6;
has_type_name() const5106 bool FieldDescriptorProto::has_type_name() const {
5107   return (_has_bits_[0] & 0x00000010u) != 0;
5108 }
set_has_type_name()5109 void FieldDescriptorProto::set_has_type_name() {
5110   _has_bits_[0] |= 0x00000010u;
5111 }
clear_has_type_name()5112 void FieldDescriptorProto::clear_has_type_name() {
5113   _has_bits_[0] &= ~0x00000010u;
5114 }
clear_type_name()5115 void FieldDescriptorProto::clear_type_name() {
5116   type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5117   clear_has_type_name();
5118 }
type_name() const5119  const ::std::string& FieldDescriptorProto::type_name() const {
5120   // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type_name)
5121   return type_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5122 }
set_type_name(const::std::string & value)5123  void FieldDescriptorProto::set_type_name(const ::std::string& value) {
5124   set_has_type_name();
5125   type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5126   // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type_name)
5127 }
set_type_name(const char * value)5128  void FieldDescriptorProto::set_type_name(const char* value) {
5129   set_has_type_name();
5130   type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5131   // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.type_name)
5132 }
set_type_name(const char * value,size_t size)5133  void FieldDescriptorProto::set_type_name(const char* value, size_t size) {
5134   set_has_type_name();
5135   type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5136       ::std::string(reinterpret_cast<const char*>(value), size));
5137   // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.type_name)
5138 }
mutable_type_name()5139  ::std::string* FieldDescriptorProto::mutable_type_name() {
5140   set_has_type_name();
5141   // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.type_name)
5142   return type_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5143 }
release_type_name()5144  ::std::string* FieldDescriptorProto::release_type_name() {
5145   // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.type_name)
5146   clear_has_type_name();
5147   return type_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5148 }
set_allocated_type_name(::std::string * type_name)5149  void FieldDescriptorProto::set_allocated_type_name(::std::string* type_name) {
5150   if (type_name != NULL) {
5151     set_has_type_name();
5152   } else {
5153     clear_has_type_name();
5154   }
5155   type_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_name);
5156   // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.type_name)
5157 }
5158 
5159 // optional string extendee = 2;
has_extendee() const5160 bool FieldDescriptorProto::has_extendee() const {
5161   return (_has_bits_[0] & 0x00000020u) != 0;
5162 }
set_has_extendee()5163 void FieldDescriptorProto::set_has_extendee() {
5164   _has_bits_[0] |= 0x00000020u;
5165 }
clear_has_extendee()5166 void FieldDescriptorProto::clear_has_extendee() {
5167   _has_bits_[0] &= ~0x00000020u;
5168 }
clear_extendee()5169 void FieldDescriptorProto::clear_extendee() {
5170   extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5171   clear_has_extendee();
5172 }
extendee() const5173  const ::std::string& FieldDescriptorProto::extendee() const {
5174   // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.extendee)
5175   return extendee_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5176 }
set_extendee(const::std::string & value)5177  void FieldDescriptorProto::set_extendee(const ::std::string& value) {
5178   set_has_extendee();
5179   extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5180   // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.extendee)
5181 }
set_extendee(const char * value)5182  void FieldDescriptorProto::set_extendee(const char* value) {
5183   set_has_extendee();
5184   extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5185   // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.extendee)
5186 }
set_extendee(const char * value,size_t size)5187  void FieldDescriptorProto::set_extendee(const char* value, size_t size) {
5188   set_has_extendee();
5189   extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5190       ::std::string(reinterpret_cast<const char*>(value), size));
5191   // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.extendee)
5192 }
mutable_extendee()5193  ::std::string* FieldDescriptorProto::mutable_extendee() {
5194   set_has_extendee();
5195   // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.extendee)
5196   return extendee_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5197 }
release_extendee()5198  ::std::string* FieldDescriptorProto::release_extendee() {
5199   // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.extendee)
5200   clear_has_extendee();
5201   return extendee_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5202 }
set_allocated_extendee(::std::string * extendee)5203  void FieldDescriptorProto::set_allocated_extendee(::std::string* extendee) {
5204   if (extendee != NULL) {
5205     set_has_extendee();
5206   } else {
5207     clear_has_extendee();
5208   }
5209   extendee_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), extendee);
5210   // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.extendee)
5211 }
5212 
5213 // optional string default_value = 7;
has_default_value() const5214 bool FieldDescriptorProto::has_default_value() const {
5215   return (_has_bits_[0] & 0x00000040u) != 0;
5216 }
set_has_default_value()5217 void FieldDescriptorProto::set_has_default_value() {
5218   _has_bits_[0] |= 0x00000040u;
5219 }
clear_has_default_value()5220 void FieldDescriptorProto::clear_has_default_value() {
5221   _has_bits_[0] &= ~0x00000040u;
5222 }
clear_default_value()5223 void FieldDescriptorProto::clear_default_value() {
5224   default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5225   clear_has_default_value();
5226 }
default_value() const5227  const ::std::string& FieldDescriptorProto::default_value() const {
5228   // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.default_value)
5229   return default_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5230 }
set_default_value(const::std::string & value)5231  void FieldDescriptorProto::set_default_value(const ::std::string& value) {
5232   set_has_default_value();
5233   default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5234   // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.default_value)
5235 }
set_default_value(const char * value)5236  void FieldDescriptorProto::set_default_value(const char* value) {
5237   set_has_default_value();
5238   default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5239   // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.default_value)
5240 }
set_default_value(const char * value,size_t size)5241  void FieldDescriptorProto::set_default_value(const char* value, size_t size) {
5242   set_has_default_value();
5243   default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5244       ::std::string(reinterpret_cast<const char*>(value), size));
5245   // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.default_value)
5246 }
mutable_default_value()5247  ::std::string* FieldDescriptorProto::mutable_default_value() {
5248   set_has_default_value();
5249   // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.default_value)
5250   return default_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5251 }
release_default_value()5252  ::std::string* FieldDescriptorProto::release_default_value() {
5253   // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.default_value)
5254   clear_has_default_value();
5255   return default_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5256 }
set_allocated_default_value(::std::string * default_value)5257  void FieldDescriptorProto::set_allocated_default_value(::std::string* default_value) {
5258   if (default_value != NULL) {
5259     set_has_default_value();
5260   } else {
5261     clear_has_default_value();
5262   }
5263   default_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), default_value);
5264   // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.default_value)
5265 }
5266 
5267 // optional int32 oneof_index = 9;
has_oneof_index() const5268 bool FieldDescriptorProto::has_oneof_index() const {
5269   return (_has_bits_[0] & 0x00000080u) != 0;
5270 }
set_has_oneof_index()5271 void FieldDescriptorProto::set_has_oneof_index() {
5272   _has_bits_[0] |= 0x00000080u;
5273 }
clear_has_oneof_index()5274 void FieldDescriptorProto::clear_has_oneof_index() {
5275   _has_bits_[0] &= ~0x00000080u;
5276 }
clear_oneof_index()5277 void FieldDescriptorProto::clear_oneof_index() {
5278   oneof_index_ = 0;
5279   clear_has_oneof_index();
5280 }
oneof_index() const5281  ::google::protobuf::int32 FieldDescriptorProto::oneof_index() const {
5282   // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.oneof_index)
5283   return oneof_index_;
5284 }
set_oneof_index(::google::protobuf::int32 value)5285  void FieldDescriptorProto::set_oneof_index(::google::protobuf::int32 value) {
5286   set_has_oneof_index();
5287   oneof_index_ = value;
5288   // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.oneof_index)
5289 }
5290 
5291 // optional string json_name = 10;
has_json_name() const5292 bool FieldDescriptorProto::has_json_name() const {
5293   return (_has_bits_[0] & 0x00000100u) != 0;
5294 }
set_has_json_name()5295 void FieldDescriptorProto::set_has_json_name() {
5296   _has_bits_[0] |= 0x00000100u;
5297 }
clear_has_json_name()5298 void FieldDescriptorProto::clear_has_json_name() {
5299   _has_bits_[0] &= ~0x00000100u;
5300 }
clear_json_name()5301 void FieldDescriptorProto::clear_json_name() {
5302   json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5303   clear_has_json_name();
5304 }
json_name() const5305  const ::std::string& FieldDescriptorProto::json_name() const {
5306   // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.json_name)
5307   return json_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5308 }
set_json_name(const::std::string & value)5309  void FieldDescriptorProto::set_json_name(const ::std::string& value) {
5310   set_has_json_name();
5311   json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5312   // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.json_name)
5313 }
set_json_name(const char * value)5314  void FieldDescriptorProto::set_json_name(const char* value) {
5315   set_has_json_name();
5316   json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5317   // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.json_name)
5318 }
set_json_name(const char * value,size_t size)5319  void FieldDescriptorProto::set_json_name(const char* value, size_t size) {
5320   set_has_json_name();
5321   json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5322       ::std::string(reinterpret_cast<const char*>(value), size));
5323   // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.json_name)
5324 }
mutable_json_name()5325  ::std::string* FieldDescriptorProto::mutable_json_name() {
5326   set_has_json_name();
5327   // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.json_name)
5328   return json_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5329 }
release_json_name()5330  ::std::string* FieldDescriptorProto::release_json_name() {
5331   // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.json_name)
5332   clear_has_json_name();
5333   return json_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5334 }
set_allocated_json_name(::std::string * json_name)5335  void FieldDescriptorProto::set_allocated_json_name(::std::string* json_name) {
5336   if (json_name != NULL) {
5337     set_has_json_name();
5338   } else {
5339     clear_has_json_name();
5340   }
5341   json_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json_name);
5342   // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.json_name)
5343 }
5344 
5345 // optional .google.protobuf.FieldOptions options = 8;
has_options() const5346 bool FieldDescriptorProto::has_options() const {
5347   return (_has_bits_[0] & 0x00000200u) != 0;
5348 }
set_has_options()5349 void FieldDescriptorProto::set_has_options() {
5350   _has_bits_[0] |= 0x00000200u;
5351 }
clear_has_options()5352 void FieldDescriptorProto::clear_has_options() {
5353   _has_bits_[0] &= ~0x00000200u;
5354 }
clear_options()5355 void FieldDescriptorProto::clear_options() {
5356   if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear();
5357   clear_has_options();
5358 }
options() const5359 const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const {
5360   // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.options)
5361   return options_ != NULL ? *options_ : *default_instance_->options_;
5362 }
mutable_options()5363 ::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() {
5364   set_has_options();
5365   if (options_ == NULL) {
5366     options_ = new ::google::protobuf::FieldOptions;
5367   }
5368   // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.options)
5369   return options_;
5370 }
release_options()5371 ::google::protobuf::FieldOptions* FieldDescriptorProto::release_options() {
5372   // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.options)
5373   clear_has_options();
5374   ::google::protobuf::FieldOptions* temp = options_;
5375   options_ = NULL;
5376   return temp;
5377 }
set_allocated_options(::google::protobuf::FieldOptions * options)5378 void FieldDescriptorProto::set_allocated_options(::google::protobuf::FieldOptions* options) {
5379   delete options_;
5380   options_ = options;
5381   if (options) {
5382     set_has_options();
5383   } else {
5384     clear_has_options();
5385   }
5386   // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.options)
5387 }
5388 
5389 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
5390 
5391 // ===================================================================
5392 
5393 #if !defined(_MSC_VER) || _MSC_VER >= 1900
5394 const int OneofDescriptorProto::kNameFieldNumber;
5395 const int OneofDescriptorProto::kOptionsFieldNumber;
5396 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
5397 
OneofDescriptorProto()5398 OneofDescriptorProto::OneofDescriptorProto()
5399   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5400   SharedCtor();
5401   // @@protoc_insertion_point(constructor:google.protobuf.OneofDescriptorProto)
5402 }
5403 
InitAsDefaultInstance()5404 void OneofDescriptorProto::InitAsDefaultInstance() {
5405   options_ = const_cast< ::google::protobuf::OneofOptions*>(&::google::protobuf::OneofOptions::default_instance());
5406 }
5407 
OneofDescriptorProto(const OneofDescriptorProto & from)5408 OneofDescriptorProto::OneofDescriptorProto(const OneofDescriptorProto& from)
5409   : ::google::protobuf::Message(),
5410     _internal_metadata_(NULL) {
5411   SharedCtor();
5412   MergeFrom(from);
5413   // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofDescriptorProto)
5414 }
5415 
SharedCtor()5416 void OneofDescriptorProto::SharedCtor() {
5417   ::google::protobuf::internal::GetEmptyString();
5418   _cached_size_ = 0;
5419   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5420   options_ = NULL;
5421   ::memset(_has_bits_, 0, sizeof(_has_bits_));
5422 }
5423 
~OneofDescriptorProto()5424 OneofDescriptorProto::~OneofDescriptorProto() {
5425   // @@protoc_insertion_point(destructor:google.protobuf.OneofDescriptorProto)
5426   SharedDtor();
5427 }
5428 
SharedDtor()5429 void OneofDescriptorProto::SharedDtor() {
5430   name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5431   if (this != default_instance_) {
5432     delete options_;
5433   }
5434 }
5435 
SetCachedSize(int size) const5436 void OneofDescriptorProto::SetCachedSize(int size) const {
5437   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5438   _cached_size_ = size;
5439   GOOGLE_SAFE_CONCURRENT_WRITES_END();
5440 }
descriptor()5441 const ::google::protobuf::Descriptor* OneofDescriptorProto::descriptor() {
5442   protobuf_AssignDescriptorsOnce();
5443   return OneofDescriptorProto_descriptor_;
5444 }
5445 
default_instance()5446 const OneofDescriptorProto& OneofDescriptorProto::default_instance() {
5447   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
5448   return *default_instance_;
5449 }
5450 
5451 OneofDescriptorProto* OneofDescriptorProto::default_instance_ = NULL;
5452 
New(::google::protobuf::Arena * arena) const5453 OneofDescriptorProto* OneofDescriptorProto::New(::google::protobuf::Arena* arena) const {
5454   OneofDescriptorProto* n = new OneofDescriptorProto;
5455   if (arena != NULL) {
5456     arena->Own(n);
5457   }
5458   return n;
5459 }
5460 
Clear()5461 void OneofDescriptorProto::Clear() {
5462 // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofDescriptorProto)
5463   if (_has_bits_[0 / 32] & 3u) {
5464     if (has_name()) {
5465       name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5466     }
5467     if (has_options()) {
5468       if (options_ != NULL) options_->::google::protobuf::OneofOptions::Clear();
5469     }
5470   }
5471   ::memset(_has_bits_, 0, sizeof(_has_bits_));
5472   if (_internal_metadata_.have_unknown_fields()) {
5473     mutable_unknown_fields()->Clear();
5474   }
5475 }
5476 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)5477 bool OneofDescriptorProto::MergePartialFromCodedStream(
5478     ::google::protobuf::io::CodedInputStream* input) {
5479 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5480   ::google::protobuf::uint32 tag;
5481   // @@protoc_insertion_point(parse_start:google.protobuf.OneofDescriptorProto)
5482   for (;;) {
5483     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
5484     tag = p.first;
5485     if (!p.second) goto handle_unusual;
5486     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5487       // optional string name = 1;
5488       case 1: {
5489         if (tag == 10) {
5490           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5491                 input, this->mutable_name()));
5492           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5493             this->name().data(), this->name().length(),
5494             ::google::protobuf::internal::WireFormat::PARSE,
5495             "google.protobuf.OneofDescriptorProto.name");
5496         } else {
5497           goto handle_unusual;
5498         }
5499         if (input->ExpectTag(18)) goto parse_options;
5500         break;
5501       }
5502 
5503       // optional .google.protobuf.OneofOptions options = 2;
5504       case 2: {
5505         if (tag == 18) {
5506          parse_options:
5507           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5508                input, mutable_options()));
5509         } else {
5510           goto handle_unusual;
5511         }
5512         if (input->ExpectAtEnd()) goto success;
5513         break;
5514       }
5515 
5516       default: {
5517       handle_unusual:
5518         if (tag == 0 ||
5519             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5520             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5521           goto success;
5522         }
5523         DO_(::google::protobuf::internal::WireFormat::SkipField(
5524               input, tag, mutable_unknown_fields()));
5525         break;
5526       }
5527     }
5528   }
5529 success:
5530   // @@protoc_insertion_point(parse_success:google.protobuf.OneofDescriptorProto)
5531   return true;
5532 failure:
5533   // @@protoc_insertion_point(parse_failure:google.protobuf.OneofDescriptorProto)
5534   return false;
5535 #undef DO_
5536 }
5537 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const5538 void OneofDescriptorProto::SerializeWithCachedSizes(
5539     ::google::protobuf::io::CodedOutputStream* output) const {
5540   // @@protoc_insertion_point(serialize_start:google.protobuf.OneofDescriptorProto)
5541   // optional string name = 1;
5542   if (has_name()) {
5543     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5544       this->name().data(), this->name().length(),
5545       ::google::protobuf::internal::WireFormat::SERIALIZE,
5546       "google.protobuf.OneofDescriptorProto.name");
5547     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5548       1, this->name(), output);
5549   }
5550 
5551   // optional .google.protobuf.OneofOptions options = 2;
5552   if (has_options()) {
5553     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5554       2, *this->options_, output);
5555   }
5556 
5557   if (_internal_metadata_.have_unknown_fields()) {
5558     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5559         unknown_fields(), output);
5560   }
5561   // @@protoc_insertion_point(serialize_end:google.protobuf.OneofDescriptorProto)
5562 }
5563 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const5564 ::google::protobuf::uint8* OneofDescriptorProto::InternalSerializeWithCachedSizesToArray(
5565     bool deterministic, ::google::protobuf::uint8* target) const {
5566   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofDescriptorProto)
5567   // optional string name = 1;
5568   if (has_name()) {
5569     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5570       this->name().data(), this->name().length(),
5571       ::google::protobuf::internal::WireFormat::SERIALIZE,
5572       "google.protobuf.OneofDescriptorProto.name");
5573     target =
5574       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5575         1, this->name(), target);
5576   }
5577 
5578   // optional .google.protobuf.OneofOptions options = 2;
5579   if (has_options()) {
5580     target = ::google::protobuf::internal::WireFormatLite::
5581       InternalWriteMessageNoVirtualToArray(
5582         2, *this->options_, false, target);
5583   }
5584 
5585   if (_internal_metadata_.have_unknown_fields()) {
5586     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5587         unknown_fields(), target);
5588   }
5589   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofDescriptorProto)
5590   return target;
5591 }
5592 
ByteSize() const5593 int OneofDescriptorProto::ByteSize() const {
5594 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofDescriptorProto)
5595   int total_size = 0;
5596 
5597   if (_has_bits_[0 / 32] & 3u) {
5598     // optional string name = 1;
5599     if (has_name()) {
5600       total_size += 1 +
5601         ::google::protobuf::internal::WireFormatLite::StringSize(
5602           this->name());
5603     }
5604 
5605     // optional .google.protobuf.OneofOptions options = 2;
5606     if (has_options()) {
5607       total_size += 1 +
5608         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5609           *this->options_);
5610     }
5611 
5612   }
5613   if (_internal_metadata_.have_unknown_fields()) {
5614     total_size +=
5615       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5616         unknown_fields());
5617   }
5618   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5619   _cached_size_ = total_size;
5620   GOOGLE_SAFE_CONCURRENT_WRITES_END();
5621   return total_size;
5622 }
5623 
MergeFrom(const::google::protobuf::Message & from)5624 void OneofDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
5625 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.OneofDescriptorProto)
5626   if (GOOGLE_PREDICT_FALSE(&from == this)) {
5627     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
5628   }
5629   const OneofDescriptorProto* source =
5630       ::google::protobuf::internal::DynamicCastToGenerated<const OneofDescriptorProto>(
5631           &from);
5632   if (source == NULL) {
5633   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.OneofDescriptorProto)
5634     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5635   } else {
5636   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.OneofDescriptorProto)
5637     MergeFrom(*source);
5638   }
5639 }
5640 
MergeFrom(const OneofDescriptorProto & from)5641 void OneofDescriptorProto::MergeFrom(const OneofDescriptorProto& from) {
5642 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.OneofDescriptorProto)
5643   if (GOOGLE_PREDICT_FALSE(&from == this)) {
5644     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
5645   }
5646   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5647     if (from.has_name()) {
5648       set_has_name();
5649       name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
5650     }
5651     if (from.has_options()) {
5652       mutable_options()->::google::protobuf::OneofOptions::MergeFrom(from.options());
5653     }
5654   }
5655   if (from._internal_metadata_.have_unknown_fields()) {
5656     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5657   }
5658 }
5659 
CopyFrom(const::google::protobuf::Message & from)5660 void OneofDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
5661 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.OneofDescriptorProto)
5662   if (&from == this) return;
5663   Clear();
5664   MergeFrom(from);
5665 }
5666 
CopyFrom(const OneofDescriptorProto & from)5667 void OneofDescriptorProto::CopyFrom(const OneofDescriptorProto& from) {
5668 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.OneofDescriptorProto)
5669   if (&from == this) return;
5670   Clear();
5671   MergeFrom(from);
5672 }
5673 
IsInitialized() const5674 bool OneofDescriptorProto::IsInitialized() const {
5675 
5676   if (has_options()) {
5677     if (!this->options_->IsInitialized()) return false;
5678   }
5679   return true;
5680 }
5681 
Swap(OneofDescriptorProto * other)5682 void OneofDescriptorProto::Swap(OneofDescriptorProto* other) {
5683   if (other == this) return;
5684   InternalSwap(other);
5685 }
InternalSwap(OneofDescriptorProto * other)5686 void OneofDescriptorProto::InternalSwap(OneofDescriptorProto* other) {
5687   name_.Swap(&other->name_);
5688   std::swap(options_, other->options_);
5689   std::swap(_has_bits_[0], other->_has_bits_[0]);
5690   _internal_metadata_.Swap(&other->_internal_metadata_);
5691   std::swap(_cached_size_, other->_cached_size_);
5692 }
5693 
GetMetadata() const5694 ::google::protobuf::Metadata OneofDescriptorProto::GetMetadata() const {
5695   protobuf_AssignDescriptorsOnce();
5696   ::google::protobuf::Metadata metadata;
5697   metadata.descriptor = OneofDescriptorProto_descriptor_;
5698   metadata.reflection = OneofDescriptorProto_reflection_;
5699   return metadata;
5700 }
5701 
5702 #if PROTOBUF_INLINE_NOT_IN_HEADERS
5703 // OneofDescriptorProto
5704 
5705 // optional string name = 1;
has_name() const5706 bool OneofDescriptorProto::has_name() const {
5707   return (_has_bits_[0] & 0x00000001u) != 0;
5708 }
set_has_name()5709 void OneofDescriptorProto::set_has_name() {
5710   _has_bits_[0] |= 0x00000001u;
5711 }
clear_has_name()5712 void OneofDescriptorProto::clear_has_name() {
5713   _has_bits_[0] &= ~0x00000001u;
5714 }
clear_name()5715 void OneofDescriptorProto::clear_name() {
5716   name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5717   clear_has_name();
5718 }
name() const5719  const ::std::string& OneofDescriptorProto::name() const {
5720   // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.name)
5721   return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5722 }
set_name(const::std::string & value)5723  void OneofDescriptorProto::set_name(const ::std::string& value) {
5724   set_has_name();
5725   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5726   // @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.name)
5727 }
set_name(const char * value)5728  void OneofDescriptorProto::set_name(const char* value) {
5729   set_has_name();
5730   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5731   // @@protoc_insertion_point(field_set_char:google.protobuf.OneofDescriptorProto.name)
5732 }
set_name(const char * value,size_t size)5733  void OneofDescriptorProto::set_name(const char* value, size_t size) {
5734   set_has_name();
5735   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5736       ::std::string(reinterpret_cast<const char*>(value), size));
5737   // @@protoc_insertion_point(field_set_pointer:google.protobuf.OneofDescriptorProto.name)
5738 }
mutable_name()5739  ::std::string* OneofDescriptorProto::mutable_name() {
5740   set_has_name();
5741   // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.name)
5742   return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5743 }
release_name()5744  ::std::string* OneofDescriptorProto::release_name() {
5745   // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto.name)
5746   clear_has_name();
5747   return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5748 }
set_allocated_name(::std::string * name)5749  void OneofDescriptorProto::set_allocated_name(::std::string* name) {
5750   if (name != NULL) {
5751     set_has_name();
5752   } else {
5753     clear_has_name();
5754   }
5755   name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
5756   // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.name)
5757 }
5758 
5759 // optional .google.protobuf.OneofOptions options = 2;
has_options() const5760 bool OneofDescriptorProto::has_options() const {
5761   return (_has_bits_[0] & 0x00000002u) != 0;
5762 }
set_has_options()5763 void OneofDescriptorProto::set_has_options() {
5764   _has_bits_[0] |= 0x00000002u;
5765 }
clear_has_options()5766 void OneofDescriptorProto::clear_has_options() {
5767   _has_bits_[0] &= ~0x00000002u;
5768 }
clear_options()5769 void OneofDescriptorProto::clear_options() {
5770   if (options_ != NULL) options_->::google::protobuf::OneofOptions::Clear();
5771   clear_has_options();
5772 }
options() const5773 const ::google::protobuf::OneofOptions& OneofDescriptorProto::options() const {
5774   // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.options)
5775   return options_ != NULL ? *options_ : *default_instance_->options_;
5776 }
mutable_options()5777 ::google::protobuf::OneofOptions* OneofDescriptorProto::mutable_options() {
5778   set_has_options();
5779   if (options_ == NULL) {
5780     options_ = new ::google::protobuf::OneofOptions;
5781   }
5782   // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.options)
5783   return options_;
5784 }
release_options()5785 ::google::protobuf::OneofOptions* OneofDescriptorProto::release_options() {
5786   // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto.options)
5787   clear_has_options();
5788   ::google::protobuf::OneofOptions* temp = options_;
5789   options_ = NULL;
5790   return temp;
5791 }
set_allocated_options(::google::protobuf::OneofOptions * options)5792 void OneofDescriptorProto::set_allocated_options(::google::protobuf::OneofOptions* options) {
5793   delete options_;
5794   options_ = options;
5795   if (options) {
5796     set_has_options();
5797   } else {
5798     clear_has_options();
5799   }
5800   // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.options)
5801 }
5802 
5803 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
5804 
5805 // ===================================================================
5806 
5807 #if !defined(_MSC_VER) || _MSC_VER >= 1900
5808 const int EnumDescriptorProto::kNameFieldNumber;
5809 const int EnumDescriptorProto::kValueFieldNumber;
5810 const int EnumDescriptorProto::kOptionsFieldNumber;
5811 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
5812 
EnumDescriptorProto()5813 EnumDescriptorProto::EnumDescriptorProto()
5814   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5815   SharedCtor();
5816   // @@protoc_insertion_point(constructor:google.protobuf.EnumDescriptorProto)
5817 }
5818 
InitAsDefaultInstance()5819 void EnumDescriptorProto::InitAsDefaultInstance() {
5820   options_ = const_cast< ::google::protobuf::EnumOptions*>(&::google::protobuf::EnumOptions::default_instance());
5821 }
5822 
EnumDescriptorProto(const EnumDescriptorProto & from)5823 EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from)
5824   : ::google::protobuf::Message(),
5825     _internal_metadata_(NULL) {
5826   SharedCtor();
5827   MergeFrom(from);
5828   // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumDescriptorProto)
5829 }
5830 
SharedCtor()5831 void EnumDescriptorProto::SharedCtor() {
5832   ::google::protobuf::internal::GetEmptyString();
5833   _cached_size_ = 0;
5834   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5835   options_ = NULL;
5836   ::memset(_has_bits_, 0, sizeof(_has_bits_));
5837 }
5838 
~EnumDescriptorProto()5839 EnumDescriptorProto::~EnumDescriptorProto() {
5840   // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto)
5841   SharedDtor();
5842 }
5843 
SharedDtor()5844 void EnumDescriptorProto::SharedDtor() {
5845   name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5846   if (this != default_instance_) {
5847     delete options_;
5848   }
5849 }
5850 
SetCachedSize(int size) const5851 void EnumDescriptorProto::SetCachedSize(int size) const {
5852   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5853   _cached_size_ = size;
5854   GOOGLE_SAFE_CONCURRENT_WRITES_END();
5855 }
descriptor()5856 const ::google::protobuf::Descriptor* EnumDescriptorProto::descriptor() {
5857   protobuf_AssignDescriptorsOnce();
5858   return EnumDescriptorProto_descriptor_;
5859 }
5860 
default_instance()5861 const EnumDescriptorProto& EnumDescriptorProto::default_instance() {
5862   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
5863   return *default_instance_;
5864 }
5865 
5866 EnumDescriptorProto* EnumDescriptorProto::default_instance_ = NULL;
5867 
New(::google::protobuf::Arena * arena) const5868 EnumDescriptorProto* EnumDescriptorProto::New(::google::protobuf::Arena* arena) const {
5869   EnumDescriptorProto* n = new EnumDescriptorProto;
5870   if (arena != NULL) {
5871     arena->Own(n);
5872   }
5873   return n;
5874 }
5875 
Clear()5876 void EnumDescriptorProto::Clear() {
5877 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumDescriptorProto)
5878   if (_has_bits_[0 / 32] & 5u) {
5879     if (has_name()) {
5880       name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5881     }
5882     if (has_options()) {
5883       if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear();
5884     }
5885   }
5886   value_.Clear();
5887   ::memset(_has_bits_, 0, sizeof(_has_bits_));
5888   if (_internal_metadata_.have_unknown_fields()) {
5889     mutable_unknown_fields()->Clear();
5890   }
5891 }
5892 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)5893 bool EnumDescriptorProto::MergePartialFromCodedStream(
5894     ::google::protobuf::io::CodedInputStream* input) {
5895 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5896   ::google::protobuf::uint32 tag;
5897   // @@protoc_insertion_point(parse_start:google.protobuf.EnumDescriptorProto)
5898   for (;;) {
5899     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
5900     tag = p.first;
5901     if (!p.second) goto handle_unusual;
5902     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5903       // optional string name = 1;
5904       case 1: {
5905         if (tag == 10) {
5906           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5907                 input, this->mutable_name()));
5908           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5909             this->name().data(), this->name().length(),
5910             ::google::protobuf::internal::WireFormat::PARSE,
5911             "google.protobuf.EnumDescriptorProto.name");
5912         } else {
5913           goto handle_unusual;
5914         }
5915         if (input->ExpectTag(18)) goto parse_value;
5916         break;
5917       }
5918 
5919       // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
5920       case 2: {
5921         if (tag == 18) {
5922          parse_value:
5923           DO_(input->IncrementRecursionDepth());
5924          parse_loop_value:
5925           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
5926                 input, add_value()));
5927         } else {
5928           goto handle_unusual;
5929         }
5930         if (input->ExpectTag(18)) goto parse_loop_value;
5931         input->UnsafeDecrementRecursionDepth();
5932         if (input->ExpectTag(26)) goto parse_options;
5933         break;
5934       }
5935 
5936       // optional .google.protobuf.EnumOptions options = 3;
5937       case 3: {
5938         if (tag == 26) {
5939          parse_options:
5940           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5941                input, mutable_options()));
5942         } else {
5943           goto handle_unusual;
5944         }
5945         if (input->ExpectAtEnd()) goto success;
5946         break;
5947       }
5948 
5949       default: {
5950       handle_unusual:
5951         if (tag == 0 ||
5952             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5953             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5954           goto success;
5955         }
5956         DO_(::google::protobuf::internal::WireFormat::SkipField(
5957               input, tag, mutable_unknown_fields()));
5958         break;
5959       }
5960     }
5961   }
5962 success:
5963   // @@protoc_insertion_point(parse_success:google.protobuf.EnumDescriptorProto)
5964   return true;
5965 failure:
5966   // @@protoc_insertion_point(parse_failure:google.protobuf.EnumDescriptorProto)
5967   return false;
5968 #undef DO_
5969 }
5970 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const5971 void EnumDescriptorProto::SerializeWithCachedSizes(
5972     ::google::protobuf::io::CodedOutputStream* output) const {
5973   // @@protoc_insertion_point(serialize_start:google.protobuf.EnumDescriptorProto)
5974   // optional string name = 1;
5975   if (has_name()) {
5976     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5977       this->name().data(), this->name().length(),
5978       ::google::protobuf::internal::WireFormat::SERIALIZE,
5979       "google.protobuf.EnumDescriptorProto.name");
5980     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5981       1, this->name(), output);
5982   }
5983 
5984   // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
5985   for (unsigned int i = 0, n = this->value_size(); i < n; i++) {
5986     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5987       2, this->value(i), output);
5988   }
5989 
5990   // optional .google.protobuf.EnumOptions options = 3;
5991   if (has_options()) {
5992     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5993       3, *this->options_, output);
5994   }
5995 
5996   if (_internal_metadata_.have_unknown_fields()) {
5997     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5998         unknown_fields(), output);
5999   }
6000   // @@protoc_insertion_point(serialize_end:google.protobuf.EnumDescriptorProto)
6001 }
6002 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const6003 ::google::protobuf::uint8* EnumDescriptorProto::InternalSerializeWithCachedSizesToArray(
6004     bool deterministic, ::google::protobuf::uint8* target) const {
6005   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescriptorProto)
6006   // optional string name = 1;
6007   if (has_name()) {
6008     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6009       this->name().data(), this->name().length(),
6010       ::google::protobuf::internal::WireFormat::SERIALIZE,
6011       "google.protobuf.EnumDescriptorProto.name");
6012     target =
6013       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6014         1, this->name(), target);
6015   }
6016 
6017   // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
6018   for (unsigned int i = 0, n = this->value_size(); i < n; i++) {
6019     target = ::google::protobuf::internal::WireFormatLite::
6020       InternalWriteMessageNoVirtualToArray(
6021         2, this->value(i), false, target);
6022   }
6023 
6024   // optional .google.protobuf.EnumOptions options = 3;
6025   if (has_options()) {
6026     target = ::google::protobuf::internal::WireFormatLite::
6027       InternalWriteMessageNoVirtualToArray(
6028         3, *this->options_, false, target);
6029   }
6030 
6031   if (_internal_metadata_.have_unknown_fields()) {
6032     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6033         unknown_fields(), target);
6034   }
6035   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumDescriptorProto)
6036   return target;
6037 }
6038 
ByteSize() const6039 int EnumDescriptorProto::ByteSize() const {
6040 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumDescriptorProto)
6041   int total_size = 0;
6042 
6043   if (_has_bits_[0 / 32] & 5u) {
6044     // optional string name = 1;
6045     if (has_name()) {
6046       total_size += 1 +
6047         ::google::protobuf::internal::WireFormatLite::StringSize(
6048           this->name());
6049     }
6050 
6051     // optional .google.protobuf.EnumOptions options = 3;
6052     if (has_options()) {
6053       total_size += 1 +
6054         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6055           *this->options_);
6056     }
6057 
6058   }
6059   // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
6060   total_size += 1 * this->value_size();
6061   for (int i = 0; i < this->value_size(); i++) {
6062     total_size +=
6063       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6064         this->value(i));
6065   }
6066 
6067   if (_internal_metadata_.have_unknown_fields()) {
6068     total_size +=
6069       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6070         unknown_fields());
6071   }
6072   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6073   _cached_size_ = total_size;
6074   GOOGLE_SAFE_CONCURRENT_WRITES_END();
6075   return total_size;
6076 }
6077 
MergeFrom(const::google::protobuf::Message & from)6078 void EnumDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
6079 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumDescriptorProto)
6080   if (GOOGLE_PREDICT_FALSE(&from == this)) {
6081     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
6082   }
6083   const EnumDescriptorProto* source =
6084       ::google::protobuf::internal::DynamicCastToGenerated<const EnumDescriptorProto>(
6085           &from);
6086   if (source == NULL) {
6087   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.EnumDescriptorProto)
6088     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6089   } else {
6090   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumDescriptorProto)
6091     MergeFrom(*source);
6092   }
6093 }
6094 
MergeFrom(const EnumDescriptorProto & from)6095 void EnumDescriptorProto::MergeFrom(const EnumDescriptorProto& from) {
6096 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumDescriptorProto)
6097   if (GOOGLE_PREDICT_FALSE(&from == this)) {
6098     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
6099   }
6100   value_.MergeFrom(from.value_);
6101   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6102     if (from.has_name()) {
6103       set_has_name();
6104       name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
6105     }
6106     if (from.has_options()) {
6107       mutable_options()->::google::protobuf::EnumOptions::MergeFrom(from.options());
6108     }
6109   }
6110   if (from._internal_metadata_.have_unknown_fields()) {
6111     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6112   }
6113 }
6114 
CopyFrom(const::google::protobuf::Message & from)6115 void EnumDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
6116 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumDescriptorProto)
6117   if (&from == this) return;
6118   Clear();
6119   MergeFrom(from);
6120 }
6121 
CopyFrom(const EnumDescriptorProto & from)6122 void EnumDescriptorProto::CopyFrom(const EnumDescriptorProto& from) {
6123 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumDescriptorProto)
6124   if (&from == this) return;
6125   Clear();
6126   MergeFrom(from);
6127 }
6128 
IsInitialized() const6129 bool EnumDescriptorProto::IsInitialized() const {
6130 
6131   if (!::google::protobuf::internal::AllAreInitialized(this->value())) return false;
6132   if (has_options()) {
6133     if (!this->options_->IsInitialized()) return false;
6134   }
6135   return true;
6136 }
6137 
Swap(EnumDescriptorProto * other)6138 void EnumDescriptorProto::Swap(EnumDescriptorProto* other) {
6139   if (other == this) return;
6140   InternalSwap(other);
6141 }
InternalSwap(EnumDescriptorProto * other)6142 void EnumDescriptorProto::InternalSwap(EnumDescriptorProto* other) {
6143   name_.Swap(&other->name_);
6144   value_.UnsafeArenaSwap(&other->value_);
6145   std::swap(options_, other->options_);
6146   std::swap(_has_bits_[0], other->_has_bits_[0]);
6147   _internal_metadata_.Swap(&other->_internal_metadata_);
6148   std::swap(_cached_size_, other->_cached_size_);
6149 }
6150 
GetMetadata() const6151 ::google::protobuf::Metadata EnumDescriptorProto::GetMetadata() const {
6152   protobuf_AssignDescriptorsOnce();
6153   ::google::protobuf::Metadata metadata;
6154   metadata.descriptor = EnumDescriptorProto_descriptor_;
6155   metadata.reflection = EnumDescriptorProto_reflection_;
6156   return metadata;
6157 }
6158 
6159 #if PROTOBUF_INLINE_NOT_IN_HEADERS
6160 // EnumDescriptorProto
6161 
6162 // optional string name = 1;
has_name() const6163 bool EnumDescriptorProto::has_name() const {
6164   return (_has_bits_[0] & 0x00000001u) != 0;
6165 }
set_has_name()6166 void EnumDescriptorProto::set_has_name() {
6167   _has_bits_[0] |= 0x00000001u;
6168 }
clear_has_name()6169 void EnumDescriptorProto::clear_has_name() {
6170   _has_bits_[0] &= ~0x00000001u;
6171 }
clear_name()6172 void EnumDescriptorProto::clear_name() {
6173   name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6174   clear_has_name();
6175 }
name() const6176  const ::std::string& EnumDescriptorProto::name() const {
6177   // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name)
6178   return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6179 }
set_name(const::std::string & value)6180  void EnumDescriptorProto::set_name(const ::std::string& value) {
6181   set_has_name();
6182   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6183   // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name)
6184 }
set_name(const char * value)6185  void EnumDescriptorProto::set_name(const char* value) {
6186   set_has_name();
6187   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6188   // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto.name)
6189 }
set_name(const char * value,size_t size)6190  void EnumDescriptorProto::set_name(const char* value, size_t size) {
6191   set_has_name();
6192   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6193       ::std::string(reinterpret_cast<const char*>(value), size));
6194   // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorProto.name)
6195 }
mutable_name()6196  ::std::string* EnumDescriptorProto::mutable_name() {
6197   set_has_name();
6198   // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.name)
6199   return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6200 }
release_name()6201  ::std::string* EnumDescriptorProto::release_name() {
6202   // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.name)
6203   clear_has_name();
6204   return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6205 }
set_allocated_name(::std::string * name)6206  void EnumDescriptorProto::set_allocated_name(::std::string* name) {
6207   if (name != NULL) {
6208     set_has_name();
6209   } else {
6210     clear_has_name();
6211   }
6212   name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
6213   // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.name)
6214 }
6215 
6216 // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
value_size() const6217 int EnumDescriptorProto::value_size() const {
6218   return value_.size();
6219 }
clear_value()6220 void EnumDescriptorProto::clear_value() {
6221   value_.Clear();
6222 }
value(int index) const6223 const ::google::protobuf::EnumValueDescriptorProto& EnumDescriptorProto::value(int index) const {
6224   // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.value)
6225   return value_.Get(index);
6226 }
mutable_value(int index)6227 ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::mutable_value(int index) {
6228   // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.value)
6229   return value_.Mutable(index);
6230 }
add_value()6231 ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::add_value() {
6232   // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.value)
6233   return value_.Add();
6234 }
6235 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >*
mutable_value()6236 EnumDescriptorProto::mutable_value() {
6237   // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.value)
6238   return &value_;
6239 }
6240 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >&
value() const6241 EnumDescriptorProto::value() const {
6242   // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.value)
6243   return value_;
6244 }
6245 
6246 // optional .google.protobuf.EnumOptions options = 3;
has_options() const6247 bool EnumDescriptorProto::has_options() const {
6248   return (_has_bits_[0] & 0x00000004u) != 0;
6249 }
set_has_options()6250 void EnumDescriptorProto::set_has_options() {
6251   _has_bits_[0] |= 0x00000004u;
6252 }
clear_has_options()6253 void EnumDescriptorProto::clear_has_options() {
6254   _has_bits_[0] &= ~0x00000004u;
6255 }
clear_options()6256 void EnumDescriptorProto::clear_options() {
6257   if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear();
6258   clear_has_options();
6259 }
options() const6260 const ::google::protobuf::EnumOptions& EnumDescriptorProto::options() const {
6261   // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.options)
6262   return options_ != NULL ? *options_ : *default_instance_->options_;
6263 }
mutable_options()6264 ::google::protobuf::EnumOptions* EnumDescriptorProto::mutable_options() {
6265   set_has_options();
6266   if (options_ == NULL) {
6267     options_ = new ::google::protobuf::EnumOptions;
6268   }
6269   // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.options)
6270   return options_;
6271 }
release_options()6272 ::google::protobuf::EnumOptions* EnumDescriptorProto::release_options() {
6273   // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.options)
6274   clear_has_options();
6275   ::google::protobuf::EnumOptions* temp = options_;
6276   options_ = NULL;
6277   return temp;
6278 }
set_allocated_options(::google::protobuf::EnumOptions * options)6279 void EnumDescriptorProto::set_allocated_options(::google::protobuf::EnumOptions* options) {
6280   delete options_;
6281   options_ = options;
6282   if (options) {
6283     set_has_options();
6284   } else {
6285     clear_has_options();
6286   }
6287   // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.options)
6288 }
6289 
6290 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
6291 
6292 // ===================================================================
6293 
6294 #if !defined(_MSC_VER) || _MSC_VER >= 1900
6295 const int EnumValueDescriptorProto::kNameFieldNumber;
6296 const int EnumValueDescriptorProto::kNumberFieldNumber;
6297 const int EnumValueDescriptorProto::kOptionsFieldNumber;
6298 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6299 
EnumValueDescriptorProto()6300 EnumValueDescriptorProto::EnumValueDescriptorProto()
6301   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6302   SharedCtor();
6303   // @@protoc_insertion_point(constructor:google.protobuf.EnumValueDescriptorProto)
6304 }
6305 
InitAsDefaultInstance()6306 void EnumValueDescriptorProto::InitAsDefaultInstance() {
6307   options_ = const_cast< ::google::protobuf::EnumValueOptions*>(&::google::protobuf::EnumValueOptions::default_instance());
6308 }
6309 
EnumValueDescriptorProto(const EnumValueDescriptorProto & from)6310 EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProto& from)
6311   : ::google::protobuf::Message(),
6312     _internal_metadata_(NULL) {
6313   SharedCtor();
6314   MergeFrom(from);
6315   // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueDescriptorProto)
6316 }
6317 
SharedCtor()6318 void EnumValueDescriptorProto::SharedCtor() {
6319   ::google::protobuf::internal::GetEmptyString();
6320   _cached_size_ = 0;
6321   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6322   number_ = 0;
6323   options_ = NULL;
6324   ::memset(_has_bits_, 0, sizeof(_has_bits_));
6325 }
6326 
~EnumValueDescriptorProto()6327 EnumValueDescriptorProto::~EnumValueDescriptorProto() {
6328   // @@protoc_insertion_point(destructor:google.protobuf.EnumValueDescriptorProto)
6329   SharedDtor();
6330 }
6331 
SharedDtor()6332 void EnumValueDescriptorProto::SharedDtor() {
6333   name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6334   if (this != default_instance_) {
6335     delete options_;
6336   }
6337 }
6338 
SetCachedSize(int size) const6339 void EnumValueDescriptorProto::SetCachedSize(int size) const {
6340   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6341   _cached_size_ = size;
6342   GOOGLE_SAFE_CONCURRENT_WRITES_END();
6343 }
descriptor()6344 const ::google::protobuf::Descriptor* EnumValueDescriptorProto::descriptor() {
6345   protobuf_AssignDescriptorsOnce();
6346   return EnumValueDescriptorProto_descriptor_;
6347 }
6348 
default_instance()6349 const EnumValueDescriptorProto& EnumValueDescriptorProto::default_instance() {
6350   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
6351   return *default_instance_;
6352 }
6353 
6354 EnumValueDescriptorProto* EnumValueDescriptorProto::default_instance_ = NULL;
6355 
New(::google::protobuf::Arena * arena) const6356 EnumValueDescriptorProto* EnumValueDescriptorProto::New(::google::protobuf::Arena* arena) const {
6357   EnumValueDescriptorProto* n = new EnumValueDescriptorProto;
6358   if (arena != NULL) {
6359     arena->Own(n);
6360   }
6361   return n;
6362 }
6363 
Clear()6364 void EnumValueDescriptorProto::Clear() {
6365 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueDescriptorProto)
6366   if (_has_bits_[0 / 32] & 7u) {
6367     if (has_name()) {
6368       name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6369     }
6370     number_ = 0;
6371     if (has_options()) {
6372       if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear();
6373     }
6374   }
6375   ::memset(_has_bits_, 0, sizeof(_has_bits_));
6376   if (_internal_metadata_.have_unknown_fields()) {
6377     mutable_unknown_fields()->Clear();
6378   }
6379 }
6380 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)6381 bool EnumValueDescriptorProto::MergePartialFromCodedStream(
6382     ::google::protobuf::io::CodedInputStream* input) {
6383 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6384   ::google::protobuf::uint32 tag;
6385   // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueDescriptorProto)
6386   for (;;) {
6387     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
6388     tag = p.first;
6389     if (!p.second) goto handle_unusual;
6390     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6391       // optional string name = 1;
6392       case 1: {
6393         if (tag == 10) {
6394           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6395                 input, this->mutable_name()));
6396           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6397             this->name().data(), this->name().length(),
6398             ::google::protobuf::internal::WireFormat::PARSE,
6399             "google.protobuf.EnumValueDescriptorProto.name");
6400         } else {
6401           goto handle_unusual;
6402         }
6403         if (input->ExpectTag(16)) goto parse_number;
6404         break;
6405       }
6406 
6407       // optional int32 number = 2;
6408       case 2: {
6409         if (tag == 16) {
6410          parse_number:
6411           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6412                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
6413                  input, &number_)));
6414           set_has_number();
6415         } else {
6416           goto handle_unusual;
6417         }
6418         if (input->ExpectTag(26)) goto parse_options;
6419         break;
6420       }
6421 
6422       // optional .google.protobuf.EnumValueOptions options = 3;
6423       case 3: {
6424         if (tag == 26) {
6425          parse_options:
6426           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6427                input, mutable_options()));
6428         } else {
6429           goto handle_unusual;
6430         }
6431         if (input->ExpectAtEnd()) goto success;
6432         break;
6433       }
6434 
6435       default: {
6436       handle_unusual:
6437         if (tag == 0 ||
6438             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6439             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6440           goto success;
6441         }
6442         DO_(::google::protobuf::internal::WireFormat::SkipField(
6443               input, tag, mutable_unknown_fields()));
6444         break;
6445       }
6446     }
6447   }
6448 success:
6449   // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueDescriptorProto)
6450   return true;
6451 failure:
6452   // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueDescriptorProto)
6453   return false;
6454 #undef DO_
6455 }
6456 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const6457 void EnumValueDescriptorProto::SerializeWithCachedSizes(
6458     ::google::protobuf::io::CodedOutputStream* output) const {
6459   // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueDescriptorProto)
6460   // optional string name = 1;
6461   if (has_name()) {
6462     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6463       this->name().data(), this->name().length(),
6464       ::google::protobuf::internal::WireFormat::SERIALIZE,
6465       "google.protobuf.EnumValueDescriptorProto.name");
6466     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6467       1, this->name(), output);
6468   }
6469 
6470   // optional int32 number = 2;
6471   if (has_number()) {
6472     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->number(), output);
6473   }
6474 
6475   // optional .google.protobuf.EnumValueOptions options = 3;
6476   if (has_options()) {
6477     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6478       3, *this->options_, output);
6479   }
6480 
6481   if (_internal_metadata_.have_unknown_fields()) {
6482     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6483         unknown_fields(), output);
6484   }
6485   // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueDescriptorProto)
6486 }
6487 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const6488 ::google::protobuf::uint8* EnumValueDescriptorProto::InternalSerializeWithCachedSizesToArray(
6489     bool deterministic, ::google::protobuf::uint8* target) const {
6490   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueDescriptorProto)
6491   // optional string name = 1;
6492   if (has_name()) {
6493     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6494       this->name().data(), this->name().length(),
6495       ::google::protobuf::internal::WireFormat::SERIALIZE,
6496       "google.protobuf.EnumValueDescriptorProto.name");
6497     target =
6498       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6499         1, this->name(), target);
6500   }
6501 
6502   // optional int32 number = 2;
6503   if (has_number()) {
6504     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->number(), target);
6505   }
6506 
6507   // optional .google.protobuf.EnumValueOptions options = 3;
6508   if (has_options()) {
6509     target = ::google::protobuf::internal::WireFormatLite::
6510       InternalWriteMessageNoVirtualToArray(
6511         3, *this->options_, false, target);
6512   }
6513 
6514   if (_internal_metadata_.have_unknown_fields()) {
6515     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6516         unknown_fields(), target);
6517   }
6518   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueDescriptorProto)
6519   return target;
6520 }
6521 
ByteSize() const6522 int EnumValueDescriptorProto::ByteSize() const {
6523 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueDescriptorProto)
6524   int total_size = 0;
6525 
6526   if (_has_bits_[0 / 32] & 7u) {
6527     // optional string name = 1;
6528     if (has_name()) {
6529       total_size += 1 +
6530         ::google::protobuf::internal::WireFormatLite::StringSize(
6531           this->name());
6532     }
6533 
6534     // optional int32 number = 2;
6535     if (has_number()) {
6536       total_size += 1 +
6537         ::google::protobuf::internal::WireFormatLite::Int32Size(
6538           this->number());
6539     }
6540 
6541     // optional .google.protobuf.EnumValueOptions options = 3;
6542     if (has_options()) {
6543       total_size += 1 +
6544         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6545           *this->options_);
6546     }
6547 
6548   }
6549   if (_internal_metadata_.have_unknown_fields()) {
6550     total_size +=
6551       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6552         unknown_fields());
6553   }
6554   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6555   _cached_size_ = total_size;
6556   GOOGLE_SAFE_CONCURRENT_WRITES_END();
6557   return total_size;
6558 }
6559 
MergeFrom(const::google::protobuf::Message & from)6560 void EnumValueDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
6561 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumValueDescriptorProto)
6562   if (GOOGLE_PREDICT_FALSE(&from == this)) {
6563     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
6564   }
6565   const EnumValueDescriptorProto* source =
6566       ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueDescriptorProto>(
6567           &from);
6568   if (source == NULL) {
6569   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.EnumValueDescriptorProto)
6570     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6571   } else {
6572   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumValueDescriptorProto)
6573     MergeFrom(*source);
6574   }
6575 }
6576 
MergeFrom(const EnumValueDescriptorProto & from)6577 void EnumValueDescriptorProto::MergeFrom(const EnumValueDescriptorProto& from) {
6578 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumValueDescriptorProto)
6579   if (GOOGLE_PREDICT_FALSE(&from == this)) {
6580     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
6581   }
6582   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6583     if (from.has_name()) {
6584       set_has_name();
6585       name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
6586     }
6587     if (from.has_number()) {
6588       set_number(from.number());
6589     }
6590     if (from.has_options()) {
6591       mutable_options()->::google::protobuf::EnumValueOptions::MergeFrom(from.options());
6592     }
6593   }
6594   if (from._internal_metadata_.have_unknown_fields()) {
6595     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6596   }
6597 }
6598 
CopyFrom(const::google::protobuf::Message & from)6599 void EnumValueDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
6600 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValueDescriptorProto)
6601   if (&from == this) return;
6602   Clear();
6603   MergeFrom(from);
6604 }
6605 
CopyFrom(const EnumValueDescriptorProto & from)6606 void EnumValueDescriptorProto::CopyFrom(const EnumValueDescriptorProto& from) {
6607 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumValueDescriptorProto)
6608   if (&from == this) return;
6609   Clear();
6610   MergeFrom(from);
6611 }
6612 
IsInitialized() const6613 bool EnumValueDescriptorProto::IsInitialized() const {
6614 
6615   if (has_options()) {
6616     if (!this->options_->IsInitialized()) return false;
6617   }
6618   return true;
6619 }
6620 
Swap(EnumValueDescriptorProto * other)6621 void EnumValueDescriptorProto::Swap(EnumValueDescriptorProto* other) {
6622   if (other == this) return;
6623   InternalSwap(other);
6624 }
InternalSwap(EnumValueDescriptorProto * other)6625 void EnumValueDescriptorProto::InternalSwap(EnumValueDescriptorProto* other) {
6626   name_.Swap(&other->name_);
6627   std::swap(number_, other->number_);
6628   std::swap(options_, other->options_);
6629   std::swap(_has_bits_[0], other->_has_bits_[0]);
6630   _internal_metadata_.Swap(&other->_internal_metadata_);
6631   std::swap(_cached_size_, other->_cached_size_);
6632 }
6633 
GetMetadata() const6634 ::google::protobuf::Metadata EnumValueDescriptorProto::GetMetadata() const {
6635   protobuf_AssignDescriptorsOnce();
6636   ::google::protobuf::Metadata metadata;
6637   metadata.descriptor = EnumValueDescriptorProto_descriptor_;
6638   metadata.reflection = EnumValueDescriptorProto_reflection_;
6639   return metadata;
6640 }
6641 
6642 #if PROTOBUF_INLINE_NOT_IN_HEADERS
6643 // EnumValueDescriptorProto
6644 
6645 // optional string name = 1;
has_name() const6646 bool EnumValueDescriptorProto::has_name() const {
6647   return (_has_bits_[0] & 0x00000001u) != 0;
6648 }
set_has_name()6649 void EnumValueDescriptorProto::set_has_name() {
6650   _has_bits_[0] |= 0x00000001u;
6651 }
clear_has_name()6652 void EnumValueDescriptorProto::clear_has_name() {
6653   _has_bits_[0] &= ~0x00000001u;
6654 }
clear_name()6655 void EnumValueDescriptorProto::clear_name() {
6656   name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6657   clear_has_name();
6658 }
name() const6659  const ::std::string& EnumValueDescriptorProto::name() const {
6660   // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.name)
6661   return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6662 }
set_name(const::std::string & value)6663  void EnumValueDescriptorProto::set_name(const ::std::string& value) {
6664   set_has_name();
6665   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6666   // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.name)
6667 }
set_name(const char * value)6668  void EnumValueDescriptorProto::set_name(const char* value) {
6669   set_has_name();
6670   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6671   // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValueDescriptorProto.name)
6672 }
set_name(const char * value,size_t size)6673  void EnumValueDescriptorProto::set_name(const char* value, size_t size) {
6674   set_has_name();
6675   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6676       ::std::string(reinterpret_cast<const char*>(value), size));
6677   // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValueDescriptorProto.name)
6678 }
mutable_name()6679  ::std::string* EnumValueDescriptorProto::mutable_name() {
6680   set_has_name();
6681   // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.name)
6682   return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6683 }
release_name()6684  ::std::string* EnumValueDescriptorProto::release_name() {
6685   // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorProto.name)
6686   clear_has_name();
6687   return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6688 }
set_allocated_name(::std::string * name)6689  void EnumValueDescriptorProto::set_allocated_name(::std::string* name) {
6690   if (name != NULL) {
6691     set_has_name();
6692   } else {
6693     clear_has_name();
6694   }
6695   name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
6696   // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.name)
6697 }
6698 
6699 // optional int32 number = 2;
has_number() const6700 bool EnumValueDescriptorProto::has_number() const {
6701   return (_has_bits_[0] & 0x00000002u) != 0;
6702 }
set_has_number()6703 void EnumValueDescriptorProto::set_has_number() {
6704   _has_bits_[0] |= 0x00000002u;
6705 }
clear_has_number()6706 void EnumValueDescriptorProto::clear_has_number() {
6707   _has_bits_[0] &= ~0x00000002u;
6708 }
clear_number()6709 void EnumValueDescriptorProto::clear_number() {
6710   number_ = 0;
6711   clear_has_number();
6712 }
number() const6713  ::google::protobuf::int32 EnumValueDescriptorProto::number() const {
6714   // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.number)
6715   return number_;
6716 }
set_number(::google::protobuf::int32 value)6717  void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) {
6718   set_has_number();
6719   number_ = value;
6720   // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.number)
6721 }
6722 
6723 // optional .google.protobuf.EnumValueOptions options = 3;
has_options() const6724 bool EnumValueDescriptorProto::has_options() const {
6725   return (_has_bits_[0] & 0x00000004u) != 0;
6726 }
set_has_options()6727 void EnumValueDescriptorProto::set_has_options() {
6728   _has_bits_[0] |= 0x00000004u;
6729 }
clear_has_options()6730 void EnumValueDescriptorProto::clear_has_options() {
6731   _has_bits_[0] &= ~0x00000004u;
6732 }
clear_options()6733 void EnumValueDescriptorProto::clear_options() {
6734   if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear();
6735   clear_has_options();
6736 }
options() const6737 const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::options() const {
6738   // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.options)
6739   return options_ != NULL ? *options_ : *default_instance_->options_;
6740 }
mutable_options()6741 ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::mutable_options() {
6742   set_has_options();
6743   if (options_ == NULL) {
6744     options_ = new ::google::protobuf::EnumValueOptions;
6745   }
6746   // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.options)
6747   return options_;
6748 }
release_options()6749 ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::release_options() {
6750   // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorProto.options)
6751   clear_has_options();
6752   ::google::protobuf::EnumValueOptions* temp = options_;
6753   options_ = NULL;
6754   return temp;
6755 }
set_allocated_options(::google::protobuf::EnumValueOptions * options)6756 void EnumValueDescriptorProto::set_allocated_options(::google::protobuf::EnumValueOptions* options) {
6757   delete options_;
6758   options_ = options;
6759   if (options) {
6760     set_has_options();
6761   } else {
6762     clear_has_options();
6763   }
6764   // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.options)
6765 }
6766 
6767 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
6768 
6769 // ===================================================================
6770 
6771 #if !defined(_MSC_VER) || _MSC_VER >= 1900
6772 const int ServiceDescriptorProto::kNameFieldNumber;
6773 const int ServiceDescriptorProto::kMethodFieldNumber;
6774 const int ServiceDescriptorProto::kOptionsFieldNumber;
6775 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6776 
ServiceDescriptorProto()6777 ServiceDescriptorProto::ServiceDescriptorProto()
6778   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6779   SharedCtor();
6780   // @@protoc_insertion_point(constructor:google.protobuf.ServiceDescriptorProto)
6781 }
6782 
InitAsDefaultInstance()6783 void ServiceDescriptorProto::InitAsDefaultInstance() {
6784   options_ = const_cast< ::google::protobuf::ServiceOptions*>(&::google::protobuf::ServiceOptions::default_instance());
6785 }
6786 
ServiceDescriptorProto(const ServiceDescriptorProto & from)6787 ServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& from)
6788   : ::google::protobuf::Message(),
6789     _internal_metadata_(NULL) {
6790   SharedCtor();
6791   MergeFrom(from);
6792   // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceDescriptorProto)
6793 }
6794 
SharedCtor()6795 void ServiceDescriptorProto::SharedCtor() {
6796   ::google::protobuf::internal::GetEmptyString();
6797   _cached_size_ = 0;
6798   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6799   options_ = NULL;
6800   ::memset(_has_bits_, 0, sizeof(_has_bits_));
6801 }
6802 
~ServiceDescriptorProto()6803 ServiceDescriptorProto::~ServiceDescriptorProto() {
6804   // @@protoc_insertion_point(destructor:google.protobuf.ServiceDescriptorProto)
6805   SharedDtor();
6806 }
6807 
SharedDtor()6808 void ServiceDescriptorProto::SharedDtor() {
6809   name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6810   if (this != default_instance_) {
6811     delete options_;
6812   }
6813 }
6814 
SetCachedSize(int size) const6815 void ServiceDescriptorProto::SetCachedSize(int size) const {
6816   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6817   _cached_size_ = size;
6818   GOOGLE_SAFE_CONCURRENT_WRITES_END();
6819 }
descriptor()6820 const ::google::protobuf::Descriptor* ServiceDescriptorProto::descriptor() {
6821   protobuf_AssignDescriptorsOnce();
6822   return ServiceDescriptorProto_descriptor_;
6823 }
6824 
default_instance()6825 const ServiceDescriptorProto& ServiceDescriptorProto::default_instance() {
6826   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
6827   return *default_instance_;
6828 }
6829 
6830 ServiceDescriptorProto* ServiceDescriptorProto::default_instance_ = NULL;
6831 
New(::google::protobuf::Arena * arena) const6832 ServiceDescriptorProto* ServiceDescriptorProto::New(::google::protobuf::Arena* arena) const {
6833   ServiceDescriptorProto* n = new ServiceDescriptorProto;
6834   if (arena != NULL) {
6835     arena->Own(n);
6836   }
6837   return n;
6838 }
6839 
Clear()6840 void ServiceDescriptorProto::Clear() {
6841 // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceDescriptorProto)
6842   if (_has_bits_[0 / 32] & 5u) {
6843     if (has_name()) {
6844       name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6845     }
6846     if (has_options()) {
6847       if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear();
6848     }
6849   }
6850   method_.Clear();
6851   ::memset(_has_bits_, 0, sizeof(_has_bits_));
6852   if (_internal_metadata_.have_unknown_fields()) {
6853     mutable_unknown_fields()->Clear();
6854   }
6855 }
6856 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)6857 bool ServiceDescriptorProto::MergePartialFromCodedStream(
6858     ::google::protobuf::io::CodedInputStream* input) {
6859 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6860   ::google::protobuf::uint32 tag;
6861   // @@protoc_insertion_point(parse_start:google.protobuf.ServiceDescriptorProto)
6862   for (;;) {
6863     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
6864     tag = p.first;
6865     if (!p.second) goto handle_unusual;
6866     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6867       // optional string name = 1;
6868       case 1: {
6869         if (tag == 10) {
6870           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6871                 input, this->mutable_name()));
6872           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6873             this->name().data(), this->name().length(),
6874             ::google::protobuf::internal::WireFormat::PARSE,
6875             "google.protobuf.ServiceDescriptorProto.name");
6876         } else {
6877           goto handle_unusual;
6878         }
6879         if (input->ExpectTag(18)) goto parse_method;
6880         break;
6881       }
6882 
6883       // repeated .google.protobuf.MethodDescriptorProto method = 2;
6884       case 2: {
6885         if (tag == 18) {
6886          parse_method:
6887           DO_(input->IncrementRecursionDepth());
6888          parse_loop_method:
6889           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
6890                 input, add_method()));
6891         } else {
6892           goto handle_unusual;
6893         }
6894         if (input->ExpectTag(18)) goto parse_loop_method;
6895         input->UnsafeDecrementRecursionDepth();
6896         if (input->ExpectTag(26)) goto parse_options;
6897         break;
6898       }
6899 
6900       // optional .google.protobuf.ServiceOptions options = 3;
6901       case 3: {
6902         if (tag == 26) {
6903          parse_options:
6904           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6905                input, mutable_options()));
6906         } else {
6907           goto handle_unusual;
6908         }
6909         if (input->ExpectAtEnd()) goto success;
6910         break;
6911       }
6912 
6913       default: {
6914       handle_unusual:
6915         if (tag == 0 ||
6916             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6917             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6918           goto success;
6919         }
6920         DO_(::google::protobuf::internal::WireFormat::SkipField(
6921               input, tag, mutable_unknown_fields()));
6922         break;
6923       }
6924     }
6925   }
6926 success:
6927   // @@protoc_insertion_point(parse_success:google.protobuf.ServiceDescriptorProto)
6928   return true;
6929 failure:
6930   // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceDescriptorProto)
6931   return false;
6932 #undef DO_
6933 }
6934 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const6935 void ServiceDescriptorProto::SerializeWithCachedSizes(
6936     ::google::protobuf::io::CodedOutputStream* output) const {
6937   // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceDescriptorProto)
6938   // optional string name = 1;
6939   if (has_name()) {
6940     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6941       this->name().data(), this->name().length(),
6942       ::google::protobuf::internal::WireFormat::SERIALIZE,
6943       "google.protobuf.ServiceDescriptorProto.name");
6944     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6945       1, this->name(), output);
6946   }
6947 
6948   // repeated .google.protobuf.MethodDescriptorProto method = 2;
6949   for (unsigned int i = 0, n = this->method_size(); i < n; i++) {
6950     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6951       2, this->method(i), output);
6952   }
6953 
6954   // optional .google.protobuf.ServiceOptions options = 3;
6955   if (has_options()) {
6956     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6957       3, *this->options_, output);
6958   }
6959 
6960   if (_internal_metadata_.have_unknown_fields()) {
6961     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6962         unknown_fields(), output);
6963   }
6964   // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceDescriptorProto)
6965 }
6966 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const6967 ::google::protobuf::uint8* ServiceDescriptorProto::InternalSerializeWithCachedSizesToArray(
6968     bool deterministic, ::google::protobuf::uint8* target) const {
6969   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceDescriptorProto)
6970   // optional string name = 1;
6971   if (has_name()) {
6972     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6973       this->name().data(), this->name().length(),
6974       ::google::protobuf::internal::WireFormat::SERIALIZE,
6975       "google.protobuf.ServiceDescriptorProto.name");
6976     target =
6977       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6978         1, this->name(), target);
6979   }
6980 
6981   // repeated .google.protobuf.MethodDescriptorProto method = 2;
6982   for (unsigned int i = 0, n = this->method_size(); i < n; i++) {
6983     target = ::google::protobuf::internal::WireFormatLite::
6984       InternalWriteMessageNoVirtualToArray(
6985         2, this->method(i), false, target);
6986   }
6987 
6988   // optional .google.protobuf.ServiceOptions options = 3;
6989   if (has_options()) {
6990     target = ::google::protobuf::internal::WireFormatLite::
6991       InternalWriteMessageNoVirtualToArray(
6992         3, *this->options_, false, target);
6993   }
6994 
6995   if (_internal_metadata_.have_unknown_fields()) {
6996     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6997         unknown_fields(), target);
6998   }
6999   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceDescriptorProto)
7000   return target;
7001 }
7002 
ByteSize() const7003 int ServiceDescriptorProto::ByteSize() const {
7004 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceDescriptorProto)
7005   int total_size = 0;
7006 
7007   if (_has_bits_[0 / 32] & 5u) {
7008     // optional string name = 1;
7009     if (has_name()) {
7010       total_size += 1 +
7011         ::google::protobuf::internal::WireFormatLite::StringSize(
7012           this->name());
7013     }
7014 
7015     // optional .google.protobuf.ServiceOptions options = 3;
7016     if (has_options()) {
7017       total_size += 1 +
7018         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7019           *this->options_);
7020     }
7021 
7022   }
7023   // repeated .google.protobuf.MethodDescriptorProto method = 2;
7024   total_size += 1 * this->method_size();
7025   for (int i = 0; i < this->method_size(); i++) {
7026     total_size +=
7027       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7028         this->method(i));
7029   }
7030 
7031   if (_internal_metadata_.have_unknown_fields()) {
7032     total_size +=
7033       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7034         unknown_fields());
7035   }
7036   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7037   _cached_size_ = total_size;
7038   GOOGLE_SAFE_CONCURRENT_WRITES_END();
7039   return total_size;
7040 }
7041 
MergeFrom(const::google::protobuf::Message & from)7042 void ServiceDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
7043 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.ServiceDescriptorProto)
7044   if (GOOGLE_PREDICT_FALSE(&from == this)) {
7045     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
7046   }
7047   const ServiceDescriptorProto* source =
7048       ::google::protobuf::internal::DynamicCastToGenerated<const ServiceDescriptorProto>(
7049           &from);
7050   if (source == NULL) {
7051   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.ServiceDescriptorProto)
7052     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7053   } else {
7054   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.ServiceDescriptorProto)
7055     MergeFrom(*source);
7056   }
7057 }
7058 
MergeFrom(const ServiceDescriptorProto & from)7059 void ServiceDescriptorProto::MergeFrom(const ServiceDescriptorProto& from) {
7060 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.ServiceDescriptorProto)
7061   if (GOOGLE_PREDICT_FALSE(&from == this)) {
7062     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
7063   }
7064   method_.MergeFrom(from.method_);
7065   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
7066     if (from.has_name()) {
7067       set_has_name();
7068       name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
7069     }
7070     if (from.has_options()) {
7071       mutable_options()->::google::protobuf::ServiceOptions::MergeFrom(from.options());
7072     }
7073   }
7074   if (from._internal_metadata_.have_unknown_fields()) {
7075     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
7076   }
7077 }
7078 
CopyFrom(const::google::protobuf::Message & from)7079 void ServiceDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
7080 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceDescriptorProto)
7081   if (&from == this) return;
7082   Clear();
7083   MergeFrom(from);
7084 }
7085 
CopyFrom(const ServiceDescriptorProto & from)7086 void ServiceDescriptorProto::CopyFrom(const ServiceDescriptorProto& from) {
7087 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.ServiceDescriptorProto)
7088   if (&from == this) return;
7089   Clear();
7090   MergeFrom(from);
7091 }
7092 
IsInitialized() const7093 bool ServiceDescriptorProto::IsInitialized() const {
7094 
7095   if (!::google::protobuf::internal::AllAreInitialized(this->method())) return false;
7096   if (has_options()) {
7097     if (!this->options_->IsInitialized()) return false;
7098   }
7099   return true;
7100 }
7101 
Swap(ServiceDescriptorProto * other)7102 void ServiceDescriptorProto::Swap(ServiceDescriptorProto* other) {
7103   if (other == this) return;
7104   InternalSwap(other);
7105 }
InternalSwap(ServiceDescriptorProto * other)7106 void ServiceDescriptorProto::InternalSwap(ServiceDescriptorProto* other) {
7107   name_.Swap(&other->name_);
7108   method_.UnsafeArenaSwap(&other->method_);
7109   std::swap(options_, other->options_);
7110   std::swap(_has_bits_[0], other->_has_bits_[0]);
7111   _internal_metadata_.Swap(&other->_internal_metadata_);
7112   std::swap(_cached_size_, other->_cached_size_);
7113 }
7114 
GetMetadata() const7115 ::google::protobuf::Metadata ServiceDescriptorProto::GetMetadata() const {
7116   protobuf_AssignDescriptorsOnce();
7117   ::google::protobuf::Metadata metadata;
7118   metadata.descriptor = ServiceDescriptorProto_descriptor_;
7119   metadata.reflection = ServiceDescriptorProto_reflection_;
7120   return metadata;
7121 }
7122 
7123 #if PROTOBUF_INLINE_NOT_IN_HEADERS
7124 // ServiceDescriptorProto
7125 
7126 // optional string name = 1;
has_name() const7127 bool ServiceDescriptorProto::has_name() const {
7128   return (_has_bits_[0] & 0x00000001u) != 0;
7129 }
set_has_name()7130 void ServiceDescriptorProto::set_has_name() {
7131   _has_bits_[0] |= 0x00000001u;
7132 }
clear_has_name()7133 void ServiceDescriptorProto::clear_has_name() {
7134   _has_bits_[0] &= ~0x00000001u;
7135 }
clear_name()7136 void ServiceDescriptorProto::clear_name() {
7137   name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7138   clear_has_name();
7139 }
name() const7140  const ::std::string& ServiceDescriptorProto::name() const {
7141   // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.name)
7142   return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7143 }
set_name(const::std::string & value)7144  void ServiceDescriptorProto::set_name(const ::std::string& value) {
7145   set_has_name();
7146   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
7147   // @@protoc_insertion_point(field_set:google.protobuf.ServiceDescriptorProto.name)
7148 }
set_name(const char * value)7149  void ServiceDescriptorProto::set_name(const char* value) {
7150   set_has_name();
7151   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
7152   // @@protoc_insertion_point(field_set_char:google.protobuf.ServiceDescriptorProto.name)
7153 }
set_name(const char * value,size_t size)7154  void ServiceDescriptorProto::set_name(const char* value, size_t size) {
7155   set_has_name();
7156   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7157       ::std::string(reinterpret_cast<const char*>(value), size));
7158   // @@protoc_insertion_point(field_set_pointer:google.protobuf.ServiceDescriptorProto.name)
7159 }
mutable_name()7160  ::std::string* ServiceDescriptorProto::mutable_name() {
7161   set_has_name();
7162   // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.name)
7163   return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7164 }
release_name()7165  ::std::string* ServiceDescriptorProto::release_name() {
7166   // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorProto.name)
7167   clear_has_name();
7168   return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7169 }
set_allocated_name(::std::string * name)7170  void ServiceDescriptorProto::set_allocated_name(::std::string* name) {
7171   if (name != NULL) {
7172     set_has_name();
7173   } else {
7174     clear_has_name();
7175   }
7176   name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
7177   // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.name)
7178 }
7179 
7180 // repeated .google.protobuf.MethodDescriptorProto method = 2;
method_size() const7181 int ServiceDescriptorProto::method_size() const {
7182   return method_.size();
7183 }
clear_method()7184 void ServiceDescriptorProto::clear_method() {
7185   method_.Clear();
7186 }
method(int index) const7187 const ::google::protobuf::MethodDescriptorProto& ServiceDescriptorProto::method(int index) const {
7188   // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.method)
7189   return method_.Get(index);
7190 }
mutable_method(int index)7191 ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::mutable_method(int index) {
7192   // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.method)
7193   return method_.Mutable(index);
7194 }
add_method()7195 ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::add_method() {
7196   // @@protoc_insertion_point(field_add:google.protobuf.ServiceDescriptorProto.method)
7197   return method_.Add();
7198 }
7199 ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >*
mutable_method()7200 ServiceDescriptorProto::mutable_method() {
7201   // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceDescriptorProto.method)
7202   return &method_;
7203 }
7204 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >&
method() const7205 ServiceDescriptorProto::method() const {
7206   // @@protoc_insertion_point(field_list:google.protobuf.ServiceDescriptorProto.method)
7207   return method_;
7208 }
7209 
7210 // optional .google.protobuf.ServiceOptions options = 3;
has_options() const7211 bool ServiceDescriptorProto::has_options() const {
7212   return (_has_bits_[0] & 0x00000004u) != 0;
7213 }
set_has_options()7214 void ServiceDescriptorProto::set_has_options() {
7215   _has_bits_[0] |= 0x00000004u;
7216 }
clear_has_options()7217 void ServiceDescriptorProto::clear_has_options() {
7218   _has_bits_[0] &= ~0x00000004u;
7219 }
clear_options()7220 void ServiceDescriptorProto::clear_options() {
7221   if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear();
7222   clear_has_options();
7223 }
options() const7224 const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::options() const {
7225   // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.options)
7226   return options_ != NULL ? *options_ : *default_instance_->options_;
7227 }
mutable_options()7228 ::google::protobuf::ServiceOptions* ServiceDescriptorProto::mutable_options() {
7229   set_has_options();
7230   if (options_ == NULL) {
7231     options_ = new ::google::protobuf::ServiceOptions;
7232   }
7233   // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.options)
7234   return options_;
7235 }
release_options()7236 ::google::protobuf::ServiceOptions* ServiceDescriptorProto::release_options() {
7237   // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorProto.options)
7238   clear_has_options();
7239   ::google::protobuf::ServiceOptions* temp = options_;
7240   options_ = NULL;
7241   return temp;
7242 }
set_allocated_options(::google::protobuf::ServiceOptions * options)7243 void ServiceDescriptorProto::set_allocated_options(::google::protobuf::ServiceOptions* options) {
7244   delete options_;
7245   options_ = options;
7246   if (options) {
7247     set_has_options();
7248   } else {
7249     clear_has_options();
7250   }
7251   // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.options)
7252 }
7253 
7254 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
7255 
7256 // ===================================================================
7257 
7258 #if !defined(_MSC_VER) || _MSC_VER >= 1900
7259 const int MethodDescriptorProto::kNameFieldNumber;
7260 const int MethodDescriptorProto::kInputTypeFieldNumber;
7261 const int MethodDescriptorProto::kOutputTypeFieldNumber;
7262 const int MethodDescriptorProto::kOptionsFieldNumber;
7263 const int MethodDescriptorProto::kClientStreamingFieldNumber;
7264 const int MethodDescriptorProto::kServerStreamingFieldNumber;
7265 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7266 
MethodDescriptorProto()7267 MethodDescriptorProto::MethodDescriptorProto()
7268   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7269   SharedCtor();
7270   // @@protoc_insertion_point(constructor:google.protobuf.MethodDescriptorProto)
7271 }
7272 
InitAsDefaultInstance()7273 void MethodDescriptorProto::InitAsDefaultInstance() {
7274   options_ = const_cast< ::google::protobuf::MethodOptions*>(&::google::protobuf::MethodOptions::default_instance());
7275 }
7276 
MethodDescriptorProto(const MethodDescriptorProto & from)7277 MethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from)
7278   : ::google::protobuf::Message(),
7279     _internal_metadata_(NULL) {
7280   SharedCtor();
7281   MergeFrom(from);
7282   // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodDescriptorProto)
7283 }
7284 
SharedCtor()7285 void MethodDescriptorProto::SharedCtor() {
7286   ::google::protobuf::internal::GetEmptyString();
7287   _cached_size_ = 0;
7288   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7289   input_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7290   output_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7291   options_ = NULL;
7292   client_streaming_ = false;
7293   server_streaming_ = false;
7294   ::memset(_has_bits_, 0, sizeof(_has_bits_));
7295 }
7296 
~MethodDescriptorProto()7297 MethodDescriptorProto::~MethodDescriptorProto() {
7298   // @@protoc_insertion_point(destructor:google.protobuf.MethodDescriptorProto)
7299   SharedDtor();
7300 }
7301 
SharedDtor()7302 void MethodDescriptorProto::SharedDtor() {
7303   name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7304   input_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7305   output_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7306   if (this != default_instance_) {
7307     delete options_;
7308   }
7309 }
7310 
SetCachedSize(int size) const7311 void MethodDescriptorProto::SetCachedSize(int size) const {
7312   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7313   _cached_size_ = size;
7314   GOOGLE_SAFE_CONCURRENT_WRITES_END();
7315 }
descriptor()7316 const ::google::protobuf::Descriptor* MethodDescriptorProto::descriptor() {
7317   protobuf_AssignDescriptorsOnce();
7318   return MethodDescriptorProto_descriptor_;
7319 }
7320 
default_instance()7321 const MethodDescriptorProto& MethodDescriptorProto::default_instance() {
7322   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
7323   return *default_instance_;
7324 }
7325 
7326 MethodDescriptorProto* MethodDescriptorProto::default_instance_ = NULL;
7327 
New(::google::protobuf::Arena * arena) const7328 MethodDescriptorProto* MethodDescriptorProto::New(::google::protobuf::Arena* arena) const {
7329   MethodDescriptorProto* n = new MethodDescriptorProto;
7330   if (arena != NULL) {
7331     arena->Own(n);
7332   }
7333   return n;
7334 }
7335 
Clear()7336 void MethodDescriptorProto::Clear() {
7337 // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodDescriptorProto)
7338 #if defined(__clang__)
7339 #define ZR_HELPER_(f) \
7340   _Pragma("clang diagnostic push") \
7341   _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
7342   __builtin_offsetof(MethodDescriptorProto, f) \
7343   _Pragma("clang diagnostic pop")
7344 #else
7345 #define ZR_HELPER_(f) reinterpret_cast<char*>(\
7346   &reinterpret_cast<MethodDescriptorProto*>(16)->f)
7347 #endif
7348 
7349 #define ZR_(first, last) do {\
7350   ::memset(&first, 0,\
7351            ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
7352 } while (0)
7353 
7354   if (_has_bits_[0 / 32] & 63u) {
7355     ZR_(client_streaming_, server_streaming_);
7356     if (has_name()) {
7357       name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7358     }
7359     if (has_input_type()) {
7360       input_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7361     }
7362     if (has_output_type()) {
7363       output_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7364     }
7365     if (has_options()) {
7366       if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear();
7367     }
7368   }
7369 
7370 #undef ZR_HELPER_
7371 #undef ZR_
7372 
7373   ::memset(_has_bits_, 0, sizeof(_has_bits_));
7374   if (_internal_metadata_.have_unknown_fields()) {
7375     mutable_unknown_fields()->Clear();
7376   }
7377 }
7378 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)7379 bool MethodDescriptorProto::MergePartialFromCodedStream(
7380     ::google::protobuf::io::CodedInputStream* input) {
7381 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7382   ::google::protobuf::uint32 tag;
7383   // @@protoc_insertion_point(parse_start:google.protobuf.MethodDescriptorProto)
7384   for (;;) {
7385     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
7386     tag = p.first;
7387     if (!p.second) goto handle_unusual;
7388     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7389       // optional string name = 1;
7390       case 1: {
7391         if (tag == 10) {
7392           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7393                 input, this->mutable_name()));
7394           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7395             this->name().data(), this->name().length(),
7396             ::google::protobuf::internal::WireFormat::PARSE,
7397             "google.protobuf.MethodDescriptorProto.name");
7398         } else {
7399           goto handle_unusual;
7400         }
7401         if (input->ExpectTag(18)) goto parse_input_type;
7402         break;
7403       }
7404 
7405       // optional string input_type = 2;
7406       case 2: {
7407         if (tag == 18) {
7408          parse_input_type:
7409           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7410                 input, this->mutable_input_type()));
7411           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7412             this->input_type().data(), this->input_type().length(),
7413             ::google::protobuf::internal::WireFormat::PARSE,
7414             "google.protobuf.MethodDescriptorProto.input_type");
7415         } else {
7416           goto handle_unusual;
7417         }
7418         if (input->ExpectTag(26)) goto parse_output_type;
7419         break;
7420       }
7421 
7422       // optional string output_type = 3;
7423       case 3: {
7424         if (tag == 26) {
7425          parse_output_type:
7426           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7427                 input, this->mutable_output_type()));
7428           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7429             this->output_type().data(), this->output_type().length(),
7430             ::google::protobuf::internal::WireFormat::PARSE,
7431             "google.protobuf.MethodDescriptorProto.output_type");
7432         } else {
7433           goto handle_unusual;
7434         }
7435         if (input->ExpectTag(34)) goto parse_options;
7436         break;
7437       }
7438 
7439       // optional .google.protobuf.MethodOptions options = 4;
7440       case 4: {
7441         if (tag == 34) {
7442          parse_options:
7443           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7444                input, mutable_options()));
7445         } else {
7446           goto handle_unusual;
7447         }
7448         if (input->ExpectTag(40)) goto parse_client_streaming;
7449         break;
7450       }
7451 
7452       // optional bool client_streaming = 5 [default = false];
7453       case 5: {
7454         if (tag == 40) {
7455          parse_client_streaming:
7456           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7457                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7458                  input, &client_streaming_)));
7459           set_has_client_streaming();
7460         } else {
7461           goto handle_unusual;
7462         }
7463         if (input->ExpectTag(48)) goto parse_server_streaming;
7464         break;
7465       }
7466 
7467       // optional bool server_streaming = 6 [default = false];
7468       case 6: {
7469         if (tag == 48) {
7470          parse_server_streaming:
7471           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7472                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7473                  input, &server_streaming_)));
7474           set_has_server_streaming();
7475         } else {
7476           goto handle_unusual;
7477         }
7478         if (input->ExpectAtEnd()) goto success;
7479         break;
7480       }
7481 
7482       default: {
7483       handle_unusual:
7484         if (tag == 0 ||
7485             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7486             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
7487           goto success;
7488         }
7489         DO_(::google::protobuf::internal::WireFormat::SkipField(
7490               input, tag, mutable_unknown_fields()));
7491         break;
7492       }
7493     }
7494   }
7495 success:
7496   // @@protoc_insertion_point(parse_success:google.protobuf.MethodDescriptorProto)
7497   return true;
7498 failure:
7499   // @@protoc_insertion_point(parse_failure:google.protobuf.MethodDescriptorProto)
7500   return false;
7501 #undef DO_
7502 }
7503 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const7504 void MethodDescriptorProto::SerializeWithCachedSizes(
7505     ::google::protobuf::io::CodedOutputStream* output) const {
7506   // @@protoc_insertion_point(serialize_start:google.protobuf.MethodDescriptorProto)
7507   // optional string name = 1;
7508   if (has_name()) {
7509     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7510       this->name().data(), this->name().length(),
7511       ::google::protobuf::internal::WireFormat::SERIALIZE,
7512       "google.protobuf.MethodDescriptorProto.name");
7513     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7514       1, this->name(), output);
7515   }
7516 
7517   // optional string input_type = 2;
7518   if (has_input_type()) {
7519     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7520       this->input_type().data(), this->input_type().length(),
7521       ::google::protobuf::internal::WireFormat::SERIALIZE,
7522       "google.protobuf.MethodDescriptorProto.input_type");
7523     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7524       2, this->input_type(), output);
7525   }
7526 
7527   // optional string output_type = 3;
7528   if (has_output_type()) {
7529     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7530       this->output_type().data(), this->output_type().length(),
7531       ::google::protobuf::internal::WireFormat::SERIALIZE,
7532       "google.protobuf.MethodDescriptorProto.output_type");
7533     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7534       3, this->output_type(), output);
7535   }
7536 
7537   // optional .google.protobuf.MethodOptions options = 4;
7538   if (has_options()) {
7539     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7540       4, *this->options_, output);
7541   }
7542 
7543   // optional bool client_streaming = 5 [default = false];
7544   if (has_client_streaming()) {
7545     ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->client_streaming(), output);
7546   }
7547 
7548   // optional bool server_streaming = 6 [default = false];
7549   if (has_server_streaming()) {
7550     ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->server_streaming(), output);
7551   }
7552 
7553   if (_internal_metadata_.have_unknown_fields()) {
7554     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7555         unknown_fields(), output);
7556   }
7557   // @@protoc_insertion_point(serialize_end:google.protobuf.MethodDescriptorProto)
7558 }
7559 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const7560 ::google::protobuf::uint8* MethodDescriptorProto::InternalSerializeWithCachedSizesToArray(
7561     bool deterministic, ::google::protobuf::uint8* target) const {
7562   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodDescriptorProto)
7563   // optional string name = 1;
7564   if (has_name()) {
7565     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7566       this->name().data(), this->name().length(),
7567       ::google::protobuf::internal::WireFormat::SERIALIZE,
7568       "google.protobuf.MethodDescriptorProto.name");
7569     target =
7570       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7571         1, this->name(), target);
7572   }
7573 
7574   // optional string input_type = 2;
7575   if (has_input_type()) {
7576     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7577       this->input_type().data(), this->input_type().length(),
7578       ::google::protobuf::internal::WireFormat::SERIALIZE,
7579       "google.protobuf.MethodDescriptorProto.input_type");
7580     target =
7581       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7582         2, this->input_type(), target);
7583   }
7584 
7585   // optional string output_type = 3;
7586   if (has_output_type()) {
7587     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7588       this->output_type().data(), this->output_type().length(),
7589       ::google::protobuf::internal::WireFormat::SERIALIZE,
7590       "google.protobuf.MethodDescriptorProto.output_type");
7591     target =
7592       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7593         3, this->output_type(), target);
7594   }
7595 
7596   // optional .google.protobuf.MethodOptions options = 4;
7597   if (has_options()) {
7598     target = ::google::protobuf::internal::WireFormatLite::
7599       InternalWriteMessageNoVirtualToArray(
7600         4, *this->options_, false, target);
7601   }
7602 
7603   // optional bool client_streaming = 5 [default = false];
7604   if (has_client_streaming()) {
7605     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->client_streaming(), target);
7606   }
7607 
7608   // optional bool server_streaming = 6 [default = false];
7609   if (has_server_streaming()) {
7610     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->server_streaming(), target);
7611   }
7612 
7613   if (_internal_metadata_.have_unknown_fields()) {
7614     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7615         unknown_fields(), target);
7616   }
7617   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodDescriptorProto)
7618   return target;
7619 }
7620 
ByteSize() const7621 int MethodDescriptorProto::ByteSize() const {
7622 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodDescriptorProto)
7623   int total_size = 0;
7624 
7625   if (_has_bits_[0 / 32] & 63u) {
7626     // optional string name = 1;
7627     if (has_name()) {
7628       total_size += 1 +
7629         ::google::protobuf::internal::WireFormatLite::StringSize(
7630           this->name());
7631     }
7632 
7633     // optional string input_type = 2;
7634     if (has_input_type()) {
7635       total_size += 1 +
7636         ::google::protobuf::internal::WireFormatLite::StringSize(
7637           this->input_type());
7638     }
7639 
7640     // optional string output_type = 3;
7641     if (has_output_type()) {
7642       total_size += 1 +
7643         ::google::protobuf::internal::WireFormatLite::StringSize(
7644           this->output_type());
7645     }
7646 
7647     // optional .google.protobuf.MethodOptions options = 4;
7648     if (has_options()) {
7649       total_size += 1 +
7650         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7651           *this->options_);
7652     }
7653 
7654     // optional bool client_streaming = 5 [default = false];
7655     if (has_client_streaming()) {
7656       total_size += 1 + 1;
7657     }
7658 
7659     // optional bool server_streaming = 6 [default = false];
7660     if (has_server_streaming()) {
7661       total_size += 1 + 1;
7662     }
7663 
7664   }
7665   if (_internal_metadata_.have_unknown_fields()) {
7666     total_size +=
7667       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7668         unknown_fields());
7669   }
7670   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7671   _cached_size_ = total_size;
7672   GOOGLE_SAFE_CONCURRENT_WRITES_END();
7673   return total_size;
7674 }
7675 
MergeFrom(const::google::protobuf::Message & from)7676 void MethodDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
7677 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodDescriptorProto)
7678   if (GOOGLE_PREDICT_FALSE(&from == this)) {
7679     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
7680   }
7681   const MethodDescriptorProto* source =
7682       ::google::protobuf::internal::DynamicCastToGenerated<const MethodDescriptorProto>(
7683           &from);
7684   if (source == NULL) {
7685   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.MethodDescriptorProto)
7686     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7687   } else {
7688   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.MethodDescriptorProto)
7689     MergeFrom(*source);
7690   }
7691 }
7692 
MergeFrom(const MethodDescriptorProto & from)7693 void MethodDescriptorProto::MergeFrom(const MethodDescriptorProto& from) {
7694 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.MethodDescriptorProto)
7695   if (GOOGLE_PREDICT_FALSE(&from == this)) {
7696     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
7697   }
7698   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
7699     if (from.has_name()) {
7700       set_has_name();
7701       name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
7702     }
7703     if (from.has_input_type()) {
7704       set_has_input_type();
7705       input_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_type_);
7706     }
7707     if (from.has_output_type()) {
7708       set_has_output_type();
7709       output_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_type_);
7710     }
7711     if (from.has_options()) {
7712       mutable_options()->::google::protobuf::MethodOptions::MergeFrom(from.options());
7713     }
7714     if (from.has_client_streaming()) {
7715       set_client_streaming(from.client_streaming());
7716     }
7717     if (from.has_server_streaming()) {
7718       set_server_streaming(from.server_streaming());
7719     }
7720   }
7721   if (from._internal_metadata_.have_unknown_fields()) {
7722     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
7723   }
7724 }
7725 
CopyFrom(const::google::protobuf::Message & from)7726 void MethodDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
7727 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodDescriptorProto)
7728   if (&from == this) return;
7729   Clear();
7730   MergeFrom(from);
7731 }
7732 
CopyFrom(const MethodDescriptorProto & from)7733 void MethodDescriptorProto::CopyFrom(const MethodDescriptorProto& from) {
7734 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.MethodDescriptorProto)
7735   if (&from == this) return;
7736   Clear();
7737   MergeFrom(from);
7738 }
7739 
IsInitialized() const7740 bool MethodDescriptorProto::IsInitialized() const {
7741 
7742   if (has_options()) {
7743     if (!this->options_->IsInitialized()) return false;
7744   }
7745   return true;
7746 }
7747 
Swap(MethodDescriptorProto * other)7748 void MethodDescriptorProto::Swap(MethodDescriptorProto* other) {
7749   if (other == this) return;
7750   InternalSwap(other);
7751 }
InternalSwap(MethodDescriptorProto * other)7752 void MethodDescriptorProto::InternalSwap(MethodDescriptorProto* other) {
7753   name_.Swap(&other->name_);
7754   input_type_.Swap(&other->input_type_);
7755   output_type_.Swap(&other->output_type_);
7756   std::swap(options_, other->options_);
7757   std::swap(client_streaming_, other->client_streaming_);
7758   std::swap(server_streaming_, other->server_streaming_);
7759   std::swap(_has_bits_[0], other->_has_bits_[0]);
7760   _internal_metadata_.Swap(&other->_internal_metadata_);
7761   std::swap(_cached_size_, other->_cached_size_);
7762 }
7763 
GetMetadata() const7764 ::google::protobuf::Metadata MethodDescriptorProto::GetMetadata() const {
7765   protobuf_AssignDescriptorsOnce();
7766   ::google::protobuf::Metadata metadata;
7767   metadata.descriptor = MethodDescriptorProto_descriptor_;
7768   metadata.reflection = MethodDescriptorProto_reflection_;
7769   return metadata;
7770 }
7771 
7772 #if PROTOBUF_INLINE_NOT_IN_HEADERS
7773 // MethodDescriptorProto
7774 
7775 // optional string name = 1;
has_name() const7776 bool MethodDescriptorProto::has_name() const {
7777   return (_has_bits_[0] & 0x00000001u) != 0;
7778 }
set_has_name()7779 void MethodDescriptorProto::set_has_name() {
7780   _has_bits_[0] |= 0x00000001u;
7781 }
clear_has_name()7782 void MethodDescriptorProto::clear_has_name() {
7783   _has_bits_[0] &= ~0x00000001u;
7784 }
clear_name()7785 void MethodDescriptorProto::clear_name() {
7786   name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7787   clear_has_name();
7788 }
name() const7789  const ::std::string& MethodDescriptorProto::name() const {
7790   // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.name)
7791   return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7792 }
set_name(const::std::string & value)7793  void MethodDescriptorProto::set_name(const ::std::string& value) {
7794   set_has_name();
7795   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
7796   // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.name)
7797 }
set_name(const char * value)7798  void MethodDescriptorProto::set_name(const char* value) {
7799   set_has_name();
7800   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
7801   // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.name)
7802 }
set_name(const char * value,size_t size)7803  void MethodDescriptorProto::set_name(const char* value, size_t size) {
7804   set_has_name();
7805   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7806       ::std::string(reinterpret_cast<const char*>(value), size));
7807   // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.name)
7808 }
mutable_name()7809  ::std::string* MethodDescriptorProto::mutable_name() {
7810   set_has_name();
7811   // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.name)
7812   return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7813 }
release_name()7814  ::std::string* MethodDescriptorProto::release_name() {
7815   // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.name)
7816   clear_has_name();
7817   return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7818 }
set_allocated_name(::std::string * name)7819  void MethodDescriptorProto::set_allocated_name(::std::string* name) {
7820   if (name != NULL) {
7821     set_has_name();
7822   } else {
7823     clear_has_name();
7824   }
7825   name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
7826   // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.name)
7827 }
7828 
7829 // optional string input_type = 2;
has_input_type() const7830 bool MethodDescriptorProto::has_input_type() const {
7831   return (_has_bits_[0] & 0x00000002u) != 0;
7832 }
set_has_input_type()7833 void MethodDescriptorProto::set_has_input_type() {
7834   _has_bits_[0] |= 0x00000002u;
7835 }
clear_has_input_type()7836 void MethodDescriptorProto::clear_has_input_type() {
7837   _has_bits_[0] &= ~0x00000002u;
7838 }
clear_input_type()7839 void MethodDescriptorProto::clear_input_type() {
7840   input_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7841   clear_has_input_type();
7842 }
input_type() const7843  const ::std::string& MethodDescriptorProto::input_type() const {
7844   // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.input_type)
7845   return input_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7846 }
set_input_type(const::std::string & value)7847  void MethodDescriptorProto::set_input_type(const ::std::string& value) {
7848   set_has_input_type();
7849   input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
7850   // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.input_type)
7851 }
set_input_type(const char * value)7852  void MethodDescriptorProto::set_input_type(const char* value) {
7853   set_has_input_type();
7854   input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
7855   // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.input_type)
7856 }
set_input_type(const char * value,size_t size)7857  void MethodDescriptorProto::set_input_type(const char* value, size_t size) {
7858   set_has_input_type();
7859   input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7860       ::std::string(reinterpret_cast<const char*>(value), size));
7861   // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.input_type)
7862 }
mutable_input_type()7863  ::std::string* MethodDescriptorProto::mutable_input_type() {
7864   set_has_input_type();
7865   // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.input_type)
7866   return input_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7867 }
release_input_type()7868  ::std::string* MethodDescriptorProto::release_input_type() {
7869   // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.input_type)
7870   clear_has_input_type();
7871   return input_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7872 }
set_allocated_input_type(::std::string * input_type)7873  void MethodDescriptorProto::set_allocated_input_type(::std::string* input_type) {
7874   if (input_type != NULL) {
7875     set_has_input_type();
7876   } else {
7877     clear_has_input_type();
7878   }
7879   input_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), input_type);
7880   // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.input_type)
7881 }
7882 
7883 // optional string output_type = 3;
has_output_type() const7884 bool MethodDescriptorProto::has_output_type() const {
7885   return (_has_bits_[0] & 0x00000004u) != 0;
7886 }
set_has_output_type()7887 void MethodDescriptorProto::set_has_output_type() {
7888   _has_bits_[0] |= 0x00000004u;
7889 }
clear_has_output_type()7890 void MethodDescriptorProto::clear_has_output_type() {
7891   _has_bits_[0] &= ~0x00000004u;
7892 }
clear_output_type()7893 void MethodDescriptorProto::clear_output_type() {
7894   output_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7895   clear_has_output_type();
7896 }
output_type() const7897  const ::std::string& MethodDescriptorProto::output_type() const {
7898   // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.output_type)
7899   return output_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7900 }
set_output_type(const::std::string & value)7901  void MethodDescriptorProto::set_output_type(const ::std::string& value) {
7902   set_has_output_type();
7903   output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
7904   // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.output_type)
7905 }
set_output_type(const char * value)7906  void MethodDescriptorProto::set_output_type(const char* value) {
7907   set_has_output_type();
7908   output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
7909   // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.output_type)
7910 }
set_output_type(const char * value,size_t size)7911  void MethodDescriptorProto::set_output_type(const char* value, size_t size) {
7912   set_has_output_type();
7913   output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7914       ::std::string(reinterpret_cast<const char*>(value), size));
7915   // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.output_type)
7916 }
mutable_output_type()7917  ::std::string* MethodDescriptorProto::mutable_output_type() {
7918   set_has_output_type();
7919   // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.output_type)
7920   return output_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7921 }
release_output_type()7922  ::std::string* MethodDescriptorProto::release_output_type() {
7923   // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.output_type)
7924   clear_has_output_type();
7925   return output_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7926 }
set_allocated_output_type(::std::string * output_type)7927  void MethodDescriptorProto::set_allocated_output_type(::std::string* output_type) {
7928   if (output_type != NULL) {
7929     set_has_output_type();
7930   } else {
7931     clear_has_output_type();
7932   }
7933   output_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_type);
7934   // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.output_type)
7935 }
7936 
7937 // optional .google.protobuf.MethodOptions options = 4;
has_options() const7938 bool MethodDescriptorProto::has_options() const {
7939   return (_has_bits_[0] & 0x00000008u) != 0;
7940 }
set_has_options()7941 void MethodDescriptorProto::set_has_options() {
7942   _has_bits_[0] |= 0x00000008u;
7943 }
clear_has_options()7944 void MethodDescriptorProto::clear_has_options() {
7945   _has_bits_[0] &= ~0x00000008u;
7946 }
clear_options()7947 void MethodDescriptorProto::clear_options() {
7948   if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear();
7949   clear_has_options();
7950 }
options() const7951 const ::google::protobuf::MethodOptions& MethodDescriptorProto::options() const {
7952   // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.options)
7953   return options_ != NULL ? *options_ : *default_instance_->options_;
7954 }
mutable_options()7955 ::google::protobuf::MethodOptions* MethodDescriptorProto::mutable_options() {
7956   set_has_options();
7957   if (options_ == NULL) {
7958     options_ = new ::google::protobuf::MethodOptions;
7959   }
7960   // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.options)
7961   return options_;
7962 }
release_options()7963 ::google::protobuf::MethodOptions* MethodDescriptorProto::release_options() {
7964   // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.options)
7965   clear_has_options();
7966   ::google::protobuf::MethodOptions* temp = options_;
7967   options_ = NULL;
7968   return temp;
7969 }
set_allocated_options(::google::protobuf::MethodOptions * options)7970 void MethodDescriptorProto::set_allocated_options(::google::protobuf::MethodOptions* options) {
7971   delete options_;
7972   options_ = options;
7973   if (options) {
7974     set_has_options();
7975   } else {
7976     clear_has_options();
7977   }
7978   // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.options)
7979 }
7980 
7981 // optional bool client_streaming = 5 [default = false];
has_client_streaming() const7982 bool MethodDescriptorProto::has_client_streaming() const {
7983   return (_has_bits_[0] & 0x00000010u) != 0;
7984 }
set_has_client_streaming()7985 void MethodDescriptorProto::set_has_client_streaming() {
7986   _has_bits_[0] |= 0x00000010u;
7987 }
clear_has_client_streaming()7988 void MethodDescriptorProto::clear_has_client_streaming() {
7989   _has_bits_[0] &= ~0x00000010u;
7990 }
clear_client_streaming()7991 void MethodDescriptorProto::clear_client_streaming() {
7992   client_streaming_ = false;
7993   clear_has_client_streaming();
7994 }
client_streaming() const7995  bool MethodDescriptorProto::client_streaming() const {
7996   // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.client_streaming)
7997   return client_streaming_;
7998 }
set_client_streaming(bool value)7999  void MethodDescriptorProto::set_client_streaming(bool value) {
8000   set_has_client_streaming();
8001   client_streaming_ = value;
8002   // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.client_streaming)
8003 }
8004 
8005 // optional bool server_streaming = 6 [default = false];
has_server_streaming() const8006 bool MethodDescriptorProto::has_server_streaming() const {
8007   return (_has_bits_[0] & 0x00000020u) != 0;
8008 }
set_has_server_streaming()8009 void MethodDescriptorProto::set_has_server_streaming() {
8010   _has_bits_[0] |= 0x00000020u;
8011 }
clear_has_server_streaming()8012 void MethodDescriptorProto::clear_has_server_streaming() {
8013   _has_bits_[0] &= ~0x00000020u;
8014 }
clear_server_streaming()8015 void MethodDescriptorProto::clear_server_streaming() {
8016   server_streaming_ = false;
8017   clear_has_server_streaming();
8018 }
server_streaming() const8019  bool MethodDescriptorProto::server_streaming() const {
8020   // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.server_streaming)
8021   return server_streaming_;
8022 }
set_server_streaming(bool value)8023  void MethodDescriptorProto::set_server_streaming(bool value) {
8024   set_has_server_streaming();
8025   server_streaming_ = value;
8026   // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.server_streaming)
8027 }
8028 
8029 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
8030 
8031 // ===================================================================
8032 
FileOptions_OptimizeMode_descriptor()8033 const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor() {
8034   protobuf_AssignDescriptorsOnce();
8035   return FileOptions_OptimizeMode_descriptor_;
8036 }
FileOptions_OptimizeMode_IsValid(int value)8037 bool FileOptions_OptimizeMode_IsValid(int value) {
8038   switch(value) {
8039     case 1:
8040     case 2:
8041     case 3:
8042       return true;
8043     default:
8044       return false;
8045   }
8046 }
8047 
8048 #if !defined(_MSC_VER) || _MSC_VER >= 1900
8049 const FileOptions_OptimizeMode FileOptions::SPEED;
8050 const FileOptions_OptimizeMode FileOptions::CODE_SIZE;
8051 const FileOptions_OptimizeMode FileOptions::LITE_RUNTIME;
8052 const FileOptions_OptimizeMode FileOptions::OptimizeMode_MIN;
8053 const FileOptions_OptimizeMode FileOptions::OptimizeMode_MAX;
8054 const int FileOptions::OptimizeMode_ARRAYSIZE;
8055 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8056 #if !defined(_MSC_VER) || _MSC_VER >= 1900
8057 const int FileOptions::kJavaPackageFieldNumber;
8058 const int FileOptions::kJavaOuterClassnameFieldNumber;
8059 const int FileOptions::kJavaMultipleFilesFieldNumber;
8060 const int FileOptions::kJavaGenerateEqualsAndHashFieldNumber;
8061 const int FileOptions::kJavaStringCheckUtf8FieldNumber;
8062 const int FileOptions::kOptimizeForFieldNumber;
8063 const int FileOptions::kGoPackageFieldNumber;
8064 const int FileOptions::kCcGenericServicesFieldNumber;
8065 const int FileOptions::kJavaGenericServicesFieldNumber;
8066 const int FileOptions::kPyGenericServicesFieldNumber;
8067 const int FileOptions::kDeprecatedFieldNumber;
8068 const int FileOptions::kCcEnableArenasFieldNumber;
8069 const int FileOptions::kObjcClassPrefixFieldNumber;
8070 const int FileOptions::kCsharpNamespaceFieldNumber;
8071 const int FileOptions::kUninterpretedOptionFieldNumber;
8072 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8073 
FileOptions()8074 FileOptions::FileOptions()
8075   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8076   SharedCtor();
8077   // @@protoc_insertion_point(constructor:google.protobuf.FileOptions)
8078 }
8079 
InitAsDefaultInstance()8080 void FileOptions::InitAsDefaultInstance() {
8081 }
8082 
FileOptions(const FileOptions & from)8083 FileOptions::FileOptions(const FileOptions& from)
8084   : ::google::protobuf::Message(),
8085     _internal_metadata_(NULL) {
8086   SharedCtor();
8087   MergeFrom(from);
8088   // @@protoc_insertion_point(copy_constructor:google.protobuf.FileOptions)
8089 }
8090 
SharedCtor()8091 void FileOptions::SharedCtor() {
8092   ::google::protobuf::internal::GetEmptyString();
8093   _cached_size_ = 0;
8094   java_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8095   java_outer_classname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8096   java_multiple_files_ = false;
8097   java_generate_equals_and_hash_ = false;
8098   java_string_check_utf8_ = false;
8099   optimize_for_ = 1;
8100   go_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8101   cc_generic_services_ = false;
8102   java_generic_services_ = false;
8103   py_generic_services_ = false;
8104   deprecated_ = false;
8105   cc_enable_arenas_ = false;
8106   objc_class_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8107   csharp_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8108   ::memset(_has_bits_, 0, sizeof(_has_bits_));
8109 }
8110 
~FileOptions()8111 FileOptions::~FileOptions() {
8112   // @@protoc_insertion_point(destructor:google.protobuf.FileOptions)
8113   SharedDtor();
8114 }
8115 
SharedDtor()8116 void FileOptions::SharedDtor() {
8117   java_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8118   java_outer_classname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8119   go_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8120   objc_class_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8121   csharp_namespace_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8122   if (this != default_instance_) {
8123   }
8124 }
8125 
SetCachedSize(int size) const8126 void FileOptions::SetCachedSize(int size) const {
8127   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8128   _cached_size_ = size;
8129   GOOGLE_SAFE_CONCURRENT_WRITES_END();
8130 }
descriptor()8131 const ::google::protobuf::Descriptor* FileOptions::descriptor() {
8132   protobuf_AssignDescriptorsOnce();
8133   return FileOptions_descriptor_;
8134 }
8135 
default_instance()8136 const FileOptions& FileOptions::default_instance() {
8137   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
8138   return *default_instance_;
8139 }
8140 
8141 FileOptions* FileOptions::default_instance_ = NULL;
8142 
New(::google::protobuf::Arena * arena) const8143 FileOptions* FileOptions::New(::google::protobuf::Arena* arena) const {
8144   FileOptions* n = new FileOptions;
8145   if (arena != NULL) {
8146     arena->Own(n);
8147   }
8148   return n;
8149 }
8150 
Clear()8151 void FileOptions::Clear() {
8152 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileOptions)
8153   _extensions_.Clear();
8154 #if defined(__clang__)
8155 #define ZR_HELPER_(f) \
8156   _Pragma("clang diagnostic push") \
8157   _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
8158   __builtin_offsetof(FileOptions, f) \
8159   _Pragma("clang diagnostic pop")
8160 #else
8161 #define ZR_HELPER_(f) reinterpret_cast<char*>(\
8162   &reinterpret_cast<FileOptions*>(16)->f)
8163 #endif
8164 
8165 #define ZR_(first, last) do {\
8166   ::memset(&first, 0,\
8167            ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
8168 } while (0)
8169 
8170   if (_has_bits_[0 / 32] & 255u) {
8171     ZR_(java_multiple_files_, cc_generic_services_);
8172     if (has_java_package()) {
8173       java_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8174     }
8175     if (has_java_outer_classname()) {
8176       java_outer_classname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8177     }
8178     optimize_for_ = 1;
8179     if (has_go_package()) {
8180       go_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8181     }
8182   }
8183   if (_has_bits_[8 / 32] & 16128u) {
8184     ZR_(java_generic_services_, cc_enable_arenas_);
8185     if (has_objc_class_prefix()) {
8186       objc_class_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8187     }
8188     if (has_csharp_namespace()) {
8189       csharp_namespace_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8190     }
8191   }
8192 
8193 #undef ZR_HELPER_
8194 #undef ZR_
8195 
8196   uninterpreted_option_.Clear();
8197   ::memset(_has_bits_, 0, sizeof(_has_bits_));
8198   if (_internal_metadata_.have_unknown_fields()) {
8199     mutable_unknown_fields()->Clear();
8200   }
8201 }
8202 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)8203 bool FileOptions::MergePartialFromCodedStream(
8204     ::google::protobuf::io::CodedInputStream* input) {
8205 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8206   ::google::protobuf::uint32 tag;
8207   // @@protoc_insertion_point(parse_start:google.protobuf.FileOptions)
8208   for (;;) {
8209     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
8210     tag = p.first;
8211     if (!p.second) goto handle_unusual;
8212     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8213       // optional string java_package = 1;
8214       case 1: {
8215         if (tag == 10) {
8216           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8217                 input, this->mutable_java_package()));
8218           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8219             this->java_package().data(), this->java_package().length(),
8220             ::google::protobuf::internal::WireFormat::PARSE,
8221             "google.protobuf.FileOptions.java_package");
8222         } else {
8223           goto handle_unusual;
8224         }
8225         if (input->ExpectTag(66)) goto parse_java_outer_classname;
8226         break;
8227       }
8228 
8229       // optional string java_outer_classname = 8;
8230       case 8: {
8231         if (tag == 66) {
8232          parse_java_outer_classname:
8233           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8234                 input, this->mutable_java_outer_classname()));
8235           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8236             this->java_outer_classname().data(), this->java_outer_classname().length(),
8237             ::google::protobuf::internal::WireFormat::PARSE,
8238             "google.protobuf.FileOptions.java_outer_classname");
8239         } else {
8240           goto handle_unusual;
8241         }
8242         if (input->ExpectTag(72)) goto parse_optimize_for;
8243         break;
8244       }
8245 
8246       // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
8247       case 9: {
8248         if (tag == 72) {
8249          parse_optimize_for:
8250           int value;
8251           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8252                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8253                  input, &value)));
8254           if (::google::protobuf::FileOptions_OptimizeMode_IsValid(value)) {
8255             set_optimize_for(static_cast< ::google::protobuf::FileOptions_OptimizeMode >(value));
8256           } else {
8257             mutable_unknown_fields()->AddVarint(9, value);
8258           }
8259         } else {
8260           goto handle_unusual;
8261         }
8262         if (input->ExpectTag(80)) goto parse_java_multiple_files;
8263         break;
8264       }
8265 
8266       // optional bool java_multiple_files = 10 [default = false];
8267       case 10: {
8268         if (tag == 80) {
8269          parse_java_multiple_files:
8270           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8271                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
8272                  input, &java_multiple_files_)));
8273           set_has_java_multiple_files();
8274         } else {
8275           goto handle_unusual;
8276         }
8277         if (input->ExpectTag(90)) goto parse_go_package;
8278         break;
8279       }
8280 
8281       // optional string go_package = 11;
8282       case 11: {
8283         if (tag == 90) {
8284          parse_go_package:
8285           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8286                 input, this->mutable_go_package()));
8287           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8288             this->go_package().data(), this->go_package().length(),
8289             ::google::protobuf::internal::WireFormat::PARSE,
8290             "google.protobuf.FileOptions.go_package");
8291         } else {
8292           goto handle_unusual;
8293         }
8294         if (input->ExpectTag(128)) goto parse_cc_generic_services;
8295         break;
8296       }
8297 
8298       // optional bool cc_generic_services = 16 [default = false];
8299       case 16: {
8300         if (tag == 128) {
8301          parse_cc_generic_services:
8302           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8303                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
8304                  input, &cc_generic_services_)));
8305           set_has_cc_generic_services();
8306         } else {
8307           goto handle_unusual;
8308         }
8309         if (input->ExpectTag(136)) goto parse_java_generic_services;
8310         break;
8311       }
8312 
8313       // optional bool java_generic_services = 17 [default = false];
8314       case 17: {
8315         if (tag == 136) {
8316          parse_java_generic_services:
8317           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8318                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
8319                  input, &java_generic_services_)));
8320           set_has_java_generic_services();
8321         } else {
8322           goto handle_unusual;
8323         }
8324         if (input->ExpectTag(144)) goto parse_py_generic_services;
8325         break;
8326       }
8327 
8328       // optional bool py_generic_services = 18 [default = false];
8329       case 18: {
8330         if (tag == 144) {
8331          parse_py_generic_services:
8332           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8333                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
8334                  input, &py_generic_services_)));
8335           set_has_py_generic_services();
8336         } else {
8337           goto handle_unusual;
8338         }
8339         if (input->ExpectTag(160)) goto parse_java_generate_equals_and_hash;
8340         break;
8341       }
8342 
8343       // optional bool java_generate_equals_and_hash = 20 [default = false];
8344       case 20: {
8345         if (tag == 160) {
8346          parse_java_generate_equals_and_hash:
8347           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8348                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
8349                  input, &java_generate_equals_and_hash_)));
8350           set_has_java_generate_equals_and_hash();
8351         } else {
8352           goto handle_unusual;
8353         }
8354         if (input->ExpectTag(184)) goto parse_deprecated;
8355         break;
8356       }
8357 
8358       // optional bool deprecated = 23 [default = false];
8359       case 23: {
8360         if (tag == 184) {
8361          parse_deprecated:
8362           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8363                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
8364                  input, &deprecated_)));
8365           set_has_deprecated();
8366         } else {
8367           goto handle_unusual;
8368         }
8369         if (input->ExpectTag(216)) goto parse_java_string_check_utf8;
8370         break;
8371       }
8372 
8373       // optional bool java_string_check_utf8 = 27 [default = false];
8374       case 27: {
8375         if (tag == 216) {
8376          parse_java_string_check_utf8:
8377           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8378                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
8379                  input, &java_string_check_utf8_)));
8380           set_has_java_string_check_utf8();
8381         } else {
8382           goto handle_unusual;
8383         }
8384         if (input->ExpectTag(248)) goto parse_cc_enable_arenas;
8385         break;
8386       }
8387 
8388       // optional bool cc_enable_arenas = 31 [default = false];
8389       case 31: {
8390         if (tag == 248) {
8391          parse_cc_enable_arenas:
8392           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8393                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
8394                  input, &cc_enable_arenas_)));
8395           set_has_cc_enable_arenas();
8396         } else {
8397           goto handle_unusual;
8398         }
8399         if (input->ExpectTag(290)) goto parse_objc_class_prefix;
8400         break;
8401       }
8402 
8403       // optional string objc_class_prefix = 36;
8404       case 36: {
8405         if (tag == 290) {
8406          parse_objc_class_prefix:
8407           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8408                 input, this->mutable_objc_class_prefix()));
8409           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8410             this->objc_class_prefix().data(), this->objc_class_prefix().length(),
8411             ::google::protobuf::internal::WireFormat::PARSE,
8412             "google.protobuf.FileOptions.objc_class_prefix");
8413         } else {
8414           goto handle_unusual;
8415         }
8416         if (input->ExpectTag(298)) goto parse_csharp_namespace;
8417         break;
8418       }
8419 
8420       // optional string csharp_namespace = 37;
8421       case 37: {
8422         if (tag == 298) {
8423          parse_csharp_namespace:
8424           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8425                 input, this->mutable_csharp_namespace()));
8426           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8427             this->csharp_namespace().data(), this->csharp_namespace().length(),
8428             ::google::protobuf::internal::WireFormat::PARSE,
8429             "google.protobuf.FileOptions.csharp_namespace");
8430         } else {
8431           goto handle_unusual;
8432         }
8433         if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
8434         break;
8435       }
8436 
8437       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8438       case 999: {
8439         if (tag == 7994) {
8440          parse_uninterpreted_option:
8441           DO_(input->IncrementRecursionDepth());
8442          parse_loop_uninterpreted_option:
8443           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
8444                 input, add_uninterpreted_option()));
8445         } else {
8446           goto handle_unusual;
8447         }
8448         if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
8449         input->UnsafeDecrementRecursionDepth();
8450         if (input->ExpectAtEnd()) goto success;
8451         break;
8452       }
8453 
8454       default: {
8455       handle_unusual:
8456         if (tag == 0 ||
8457             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
8458             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
8459           goto success;
8460         }
8461         if ((8000u <= tag)) {
8462           DO_(_extensions_.ParseField(tag, input, default_instance_,
8463                                       mutable_unknown_fields()));
8464           continue;
8465         }
8466         DO_(::google::protobuf::internal::WireFormat::SkipField(
8467               input, tag, mutable_unknown_fields()));
8468         break;
8469       }
8470     }
8471   }
8472 success:
8473   // @@protoc_insertion_point(parse_success:google.protobuf.FileOptions)
8474   return true;
8475 failure:
8476   // @@protoc_insertion_point(parse_failure:google.protobuf.FileOptions)
8477   return false;
8478 #undef DO_
8479 }
8480 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const8481 void FileOptions::SerializeWithCachedSizes(
8482     ::google::protobuf::io::CodedOutputStream* output) const {
8483   // @@protoc_insertion_point(serialize_start:google.protobuf.FileOptions)
8484   // optional string java_package = 1;
8485   if (has_java_package()) {
8486     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8487       this->java_package().data(), this->java_package().length(),
8488       ::google::protobuf::internal::WireFormat::SERIALIZE,
8489       "google.protobuf.FileOptions.java_package");
8490     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8491       1, this->java_package(), output);
8492   }
8493 
8494   // optional string java_outer_classname = 8;
8495   if (has_java_outer_classname()) {
8496     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8497       this->java_outer_classname().data(), this->java_outer_classname().length(),
8498       ::google::protobuf::internal::WireFormat::SERIALIZE,
8499       "google.protobuf.FileOptions.java_outer_classname");
8500     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8501       8, this->java_outer_classname(), output);
8502   }
8503 
8504   // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
8505   if (has_optimize_for()) {
8506     ::google::protobuf::internal::WireFormatLite::WriteEnum(
8507       9, this->optimize_for(), output);
8508   }
8509 
8510   // optional bool java_multiple_files = 10 [default = false];
8511   if (has_java_multiple_files()) {
8512     ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->java_multiple_files(), output);
8513   }
8514 
8515   // optional string go_package = 11;
8516   if (has_go_package()) {
8517     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8518       this->go_package().data(), this->go_package().length(),
8519       ::google::protobuf::internal::WireFormat::SERIALIZE,
8520       "google.protobuf.FileOptions.go_package");
8521     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8522       11, this->go_package(), output);
8523   }
8524 
8525   // optional bool cc_generic_services = 16 [default = false];
8526   if (has_cc_generic_services()) {
8527     ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->cc_generic_services(), output);
8528   }
8529 
8530   // optional bool java_generic_services = 17 [default = false];
8531   if (has_java_generic_services()) {
8532     ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->java_generic_services(), output);
8533   }
8534 
8535   // optional bool py_generic_services = 18 [default = false];
8536   if (has_py_generic_services()) {
8537     ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic_services(), output);
8538   }
8539 
8540   // optional bool java_generate_equals_and_hash = 20 [default = false];
8541   if (has_java_generate_equals_and_hash()) {
8542     ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->java_generate_equals_and_hash(), output);
8543   }
8544 
8545   // optional bool deprecated = 23 [default = false];
8546   if (has_deprecated()) {
8547     ::google::protobuf::internal::WireFormatLite::WriteBool(23, this->deprecated(), output);
8548   }
8549 
8550   // optional bool java_string_check_utf8 = 27 [default = false];
8551   if (has_java_string_check_utf8()) {
8552     ::google::protobuf::internal::WireFormatLite::WriteBool(27, this->java_string_check_utf8(), output);
8553   }
8554 
8555   // optional bool cc_enable_arenas = 31 [default = false];
8556   if (has_cc_enable_arenas()) {
8557     ::google::protobuf::internal::WireFormatLite::WriteBool(31, this->cc_enable_arenas(), output);
8558   }
8559 
8560   // optional string objc_class_prefix = 36;
8561   if (has_objc_class_prefix()) {
8562     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8563       this->objc_class_prefix().data(), this->objc_class_prefix().length(),
8564       ::google::protobuf::internal::WireFormat::SERIALIZE,
8565       "google.protobuf.FileOptions.objc_class_prefix");
8566     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8567       36, this->objc_class_prefix(), output);
8568   }
8569 
8570   // optional string csharp_namespace = 37;
8571   if (has_csharp_namespace()) {
8572     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8573       this->csharp_namespace().data(), this->csharp_namespace().length(),
8574       ::google::protobuf::internal::WireFormat::SERIALIZE,
8575       "google.protobuf.FileOptions.csharp_namespace");
8576     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8577       37, this->csharp_namespace(), output);
8578   }
8579 
8580   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8581   for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
8582     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8583       999, this->uninterpreted_option(i), output);
8584   }
8585 
8586   // Extension range [1000, 536870912)
8587   _extensions_.SerializeWithCachedSizes(
8588       1000, 536870912, output);
8589 
8590   if (_internal_metadata_.have_unknown_fields()) {
8591     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8592         unknown_fields(), output);
8593   }
8594   // @@protoc_insertion_point(serialize_end:google.protobuf.FileOptions)
8595 }
8596 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const8597 ::google::protobuf::uint8* FileOptions::InternalSerializeWithCachedSizesToArray(
8598     bool deterministic, ::google::protobuf::uint8* target) const {
8599   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileOptions)
8600   // optional string java_package = 1;
8601   if (has_java_package()) {
8602     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8603       this->java_package().data(), this->java_package().length(),
8604       ::google::protobuf::internal::WireFormat::SERIALIZE,
8605       "google.protobuf.FileOptions.java_package");
8606     target =
8607       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8608         1, this->java_package(), target);
8609   }
8610 
8611   // optional string java_outer_classname = 8;
8612   if (has_java_outer_classname()) {
8613     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8614       this->java_outer_classname().data(), this->java_outer_classname().length(),
8615       ::google::protobuf::internal::WireFormat::SERIALIZE,
8616       "google.protobuf.FileOptions.java_outer_classname");
8617     target =
8618       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8619         8, this->java_outer_classname(), target);
8620   }
8621 
8622   // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
8623   if (has_optimize_for()) {
8624     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8625       9, this->optimize_for(), target);
8626   }
8627 
8628   // optional bool java_multiple_files = 10 [default = false];
8629   if (has_java_multiple_files()) {
8630     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->java_multiple_files(), target);
8631   }
8632 
8633   // optional string go_package = 11;
8634   if (has_go_package()) {
8635     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8636       this->go_package().data(), this->go_package().length(),
8637       ::google::protobuf::internal::WireFormat::SERIALIZE,
8638       "google.protobuf.FileOptions.go_package");
8639     target =
8640       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8641         11, this->go_package(), target);
8642   }
8643 
8644   // optional bool cc_generic_services = 16 [default = false];
8645   if (has_cc_generic_services()) {
8646     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->cc_generic_services(), target);
8647   }
8648 
8649   // optional bool java_generic_services = 17 [default = false];
8650   if (has_java_generic_services()) {
8651     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->java_generic_services(), target);
8652   }
8653 
8654   // optional bool py_generic_services = 18 [default = false];
8655   if (has_py_generic_services()) {
8656     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->py_generic_services(), target);
8657   }
8658 
8659   // optional bool java_generate_equals_and_hash = 20 [default = false];
8660   if (has_java_generate_equals_and_hash()) {
8661     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->java_generate_equals_and_hash(), target);
8662   }
8663 
8664   // optional bool deprecated = 23 [default = false];
8665   if (has_deprecated()) {
8666     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(23, this->deprecated(), target);
8667   }
8668 
8669   // optional bool java_string_check_utf8 = 27 [default = false];
8670   if (has_java_string_check_utf8()) {
8671     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(27, this->java_string_check_utf8(), target);
8672   }
8673 
8674   // optional bool cc_enable_arenas = 31 [default = false];
8675   if (has_cc_enable_arenas()) {
8676     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(31, this->cc_enable_arenas(), target);
8677   }
8678 
8679   // optional string objc_class_prefix = 36;
8680   if (has_objc_class_prefix()) {
8681     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8682       this->objc_class_prefix().data(), this->objc_class_prefix().length(),
8683       ::google::protobuf::internal::WireFormat::SERIALIZE,
8684       "google.protobuf.FileOptions.objc_class_prefix");
8685     target =
8686       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8687         36, this->objc_class_prefix(), target);
8688   }
8689 
8690   // optional string csharp_namespace = 37;
8691   if (has_csharp_namespace()) {
8692     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8693       this->csharp_namespace().data(), this->csharp_namespace().length(),
8694       ::google::protobuf::internal::WireFormat::SERIALIZE,
8695       "google.protobuf.FileOptions.csharp_namespace");
8696     target =
8697       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8698         37, this->csharp_namespace(), target);
8699   }
8700 
8701   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8702   for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
8703     target = ::google::protobuf::internal::WireFormatLite::
8704       InternalWriteMessageNoVirtualToArray(
8705         999, this->uninterpreted_option(i), false, target);
8706   }
8707 
8708   // Extension range [1000, 536870912)
8709   target = _extensions_.InternalSerializeWithCachedSizesToArray(
8710       1000, 536870912, false, target);
8711 
8712   if (_internal_metadata_.have_unknown_fields()) {
8713     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8714         unknown_fields(), target);
8715   }
8716   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileOptions)
8717   return target;
8718 }
8719 
ByteSize() const8720 int FileOptions::ByteSize() const {
8721 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileOptions)
8722   int total_size = 0;
8723 
8724   if (_has_bits_[0 / 32] & 255u) {
8725     // optional string java_package = 1;
8726     if (has_java_package()) {
8727       total_size += 1 +
8728         ::google::protobuf::internal::WireFormatLite::StringSize(
8729           this->java_package());
8730     }
8731 
8732     // optional string java_outer_classname = 8;
8733     if (has_java_outer_classname()) {
8734       total_size += 1 +
8735         ::google::protobuf::internal::WireFormatLite::StringSize(
8736           this->java_outer_classname());
8737     }
8738 
8739     // optional bool java_multiple_files = 10 [default = false];
8740     if (has_java_multiple_files()) {
8741       total_size += 1 + 1;
8742     }
8743 
8744     // optional bool java_generate_equals_and_hash = 20 [default = false];
8745     if (has_java_generate_equals_and_hash()) {
8746       total_size += 2 + 1;
8747     }
8748 
8749     // optional bool java_string_check_utf8 = 27 [default = false];
8750     if (has_java_string_check_utf8()) {
8751       total_size += 2 + 1;
8752     }
8753 
8754     // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
8755     if (has_optimize_for()) {
8756       total_size += 1 +
8757         ::google::protobuf::internal::WireFormatLite::EnumSize(this->optimize_for());
8758     }
8759 
8760     // optional string go_package = 11;
8761     if (has_go_package()) {
8762       total_size += 1 +
8763         ::google::protobuf::internal::WireFormatLite::StringSize(
8764           this->go_package());
8765     }
8766 
8767     // optional bool cc_generic_services = 16 [default = false];
8768     if (has_cc_generic_services()) {
8769       total_size += 2 + 1;
8770     }
8771 
8772   }
8773   if (_has_bits_[8 / 32] & 16128u) {
8774     // optional bool java_generic_services = 17 [default = false];
8775     if (has_java_generic_services()) {
8776       total_size += 2 + 1;
8777     }
8778 
8779     // optional bool py_generic_services = 18 [default = false];
8780     if (has_py_generic_services()) {
8781       total_size += 2 + 1;
8782     }
8783 
8784     // optional bool deprecated = 23 [default = false];
8785     if (has_deprecated()) {
8786       total_size += 2 + 1;
8787     }
8788 
8789     // optional bool cc_enable_arenas = 31 [default = false];
8790     if (has_cc_enable_arenas()) {
8791       total_size += 2 + 1;
8792     }
8793 
8794     // optional string objc_class_prefix = 36;
8795     if (has_objc_class_prefix()) {
8796       total_size += 2 +
8797         ::google::protobuf::internal::WireFormatLite::StringSize(
8798           this->objc_class_prefix());
8799     }
8800 
8801     // optional string csharp_namespace = 37;
8802     if (has_csharp_namespace()) {
8803       total_size += 2 +
8804         ::google::protobuf::internal::WireFormatLite::StringSize(
8805           this->csharp_namespace());
8806     }
8807 
8808   }
8809   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8810   total_size += 2 * this->uninterpreted_option_size();
8811   for (int i = 0; i < this->uninterpreted_option_size(); i++) {
8812     total_size +=
8813       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
8814         this->uninterpreted_option(i));
8815   }
8816 
8817   total_size += _extensions_.ByteSize();
8818 
8819   if (_internal_metadata_.have_unknown_fields()) {
8820     total_size +=
8821       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8822         unknown_fields());
8823   }
8824   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8825   _cached_size_ = total_size;
8826   GOOGLE_SAFE_CONCURRENT_WRITES_END();
8827   return total_size;
8828 }
8829 
MergeFrom(const::google::protobuf::Message & from)8830 void FileOptions::MergeFrom(const ::google::protobuf::Message& from) {
8831 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileOptions)
8832   if (GOOGLE_PREDICT_FALSE(&from == this)) {
8833     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
8834   }
8835   const FileOptions* source =
8836       ::google::protobuf::internal::DynamicCastToGenerated<const FileOptions>(
8837           &from);
8838   if (source == NULL) {
8839   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FileOptions)
8840     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8841   } else {
8842   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FileOptions)
8843     MergeFrom(*source);
8844   }
8845 }
8846 
MergeFrom(const FileOptions & from)8847 void FileOptions::MergeFrom(const FileOptions& from) {
8848 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FileOptions)
8849   if (GOOGLE_PREDICT_FALSE(&from == this)) {
8850     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
8851   }
8852   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
8853   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
8854     if (from.has_java_package()) {
8855       set_has_java_package();
8856       java_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.java_package_);
8857     }
8858     if (from.has_java_outer_classname()) {
8859       set_has_java_outer_classname();
8860       java_outer_classname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.java_outer_classname_);
8861     }
8862     if (from.has_java_multiple_files()) {
8863       set_java_multiple_files(from.java_multiple_files());
8864     }
8865     if (from.has_java_generate_equals_and_hash()) {
8866       set_java_generate_equals_and_hash(from.java_generate_equals_and_hash());
8867     }
8868     if (from.has_java_string_check_utf8()) {
8869       set_java_string_check_utf8(from.java_string_check_utf8());
8870     }
8871     if (from.has_optimize_for()) {
8872       set_optimize_for(from.optimize_for());
8873     }
8874     if (from.has_go_package()) {
8875       set_has_go_package();
8876       go_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.go_package_);
8877     }
8878     if (from.has_cc_generic_services()) {
8879       set_cc_generic_services(from.cc_generic_services());
8880     }
8881   }
8882   if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
8883     if (from.has_java_generic_services()) {
8884       set_java_generic_services(from.java_generic_services());
8885     }
8886     if (from.has_py_generic_services()) {
8887       set_py_generic_services(from.py_generic_services());
8888     }
8889     if (from.has_deprecated()) {
8890       set_deprecated(from.deprecated());
8891     }
8892     if (from.has_cc_enable_arenas()) {
8893       set_cc_enable_arenas(from.cc_enable_arenas());
8894     }
8895     if (from.has_objc_class_prefix()) {
8896       set_has_objc_class_prefix();
8897       objc_class_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.objc_class_prefix_);
8898     }
8899     if (from.has_csharp_namespace()) {
8900       set_has_csharp_namespace();
8901       csharp_namespace_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.csharp_namespace_);
8902     }
8903   }
8904   _extensions_.MergeFrom(from._extensions_);
8905   if (from._internal_metadata_.have_unknown_fields()) {
8906     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
8907   }
8908 }
8909 
CopyFrom(const::google::protobuf::Message & from)8910 void FileOptions::CopyFrom(const ::google::protobuf::Message& from) {
8911 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileOptions)
8912   if (&from == this) return;
8913   Clear();
8914   MergeFrom(from);
8915 }
8916 
CopyFrom(const FileOptions & from)8917 void FileOptions::CopyFrom(const FileOptions& from) {
8918 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileOptions)
8919   if (&from == this) return;
8920   Clear();
8921   MergeFrom(from);
8922 }
8923 
IsInitialized() const8924 bool FileOptions::IsInitialized() const {
8925 
8926   if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
8927 
8928   if (!_extensions_.IsInitialized()) return false;  return true;
8929 }
8930 
Swap(FileOptions * other)8931 void FileOptions::Swap(FileOptions* other) {
8932   if (other == this) return;
8933   InternalSwap(other);
8934 }
InternalSwap(FileOptions * other)8935 void FileOptions::InternalSwap(FileOptions* other) {
8936   java_package_.Swap(&other->java_package_);
8937   java_outer_classname_.Swap(&other->java_outer_classname_);
8938   std::swap(java_multiple_files_, other->java_multiple_files_);
8939   std::swap(java_generate_equals_and_hash_, other->java_generate_equals_and_hash_);
8940   std::swap(java_string_check_utf8_, other->java_string_check_utf8_);
8941   std::swap(optimize_for_, other->optimize_for_);
8942   go_package_.Swap(&other->go_package_);
8943   std::swap(cc_generic_services_, other->cc_generic_services_);
8944   std::swap(java_generic_services_, other->java_generic_services_);
8945   std::swap(py_generic_services_, other->py_generic_services_);
8946   std::swap(deprecated_, other->deprecated_);
8947   std::swap(cc_enable_arenas_, other->cc_enable_arenas_);
8948   objc_class_prefix_.Swap(&other->objc_class_prefix_);
8949   csharp_namespace_.Swap(&other->csharp_namespace_);
8950   uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
8951   std::swap(_has_bits_[0], other->_has_bits_[0]);
8952   _internal_metadata_.Swap(&other->_internal_metadata_);
8953   std::swap(_cached_size_, other->_cached_size_);
8954   _extensions_.Swap(&other->_extensions_);
8955 }
8956 
GetMetadata() const8957 ::google::protobuf::Metadata FileOptions::GetMetadata() const {
8958   protobuf_AssignDescriptorsOnce();
8959   ::google::protobuf::Metadata metadata;
8960   metadata.descriptor = FileOptions_descriptor_;
8961   metadata.reflection = FileOptions_reflection_;
8962   return metadata;
8963 }
8964 
8965 #if PROTOBUF_INLINE_NOT_IN_HEADERS
8966 // FileOptions
8967 
8968 // optional string java_package = 1;
has_java_package() const8969 bool FileOptions::has_java_package() const {
8970   return (_has_bits_[0] & 0x00000001u) != 0;
8971 }
set_has_java_package()8972 void FileOptions::set_has_java_package() {
8973   _has_bits_[0] |= 0x00000001u;
8974 }
clear_has_java_package()8975 void FileOptions::clear_has_java_package() {
8976   _has_bits_[0] &= ~0x00000001u;
8977 }
clear_java_package()8978 void FileOptions::clear_java_package() {
8979   java_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8980   clear_has_java_package();
8981 }
java_package() const8982  const ::std::string& FileOptions::java_package() const {
8983   // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_package)
8984   return java_package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8985 }
set_java_package(const::std::string & value)8986  void FileOptions::set_java_package(const ::std::string& value) {
8987   set_has_java_package();
8988   java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
8989   // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_package)
8990 }
set_java_package(const char * value)8991  void FileOptions::set_java_package(const char* value) {
8992   set_has_java_package();
8993   java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
8994   // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_package)
8995 }
set_java_package(const char * value,size_t size)8996  void FileOptions::set_java_package(const char* value, size_t size) {
8997   set_has_java_package();
8998   java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
8999       ::std::string(reinterpret_cast<const char*>(value), size));
9000   // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java_package)
9001 }
mutable_java_package()9002  ::std::string* FileOptions::mutable_java_package() {
9003   set_has_java_package();
9004   // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_package)
9005   return java_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9006 }
release_java_package()9007  ::std::string* FileOptions::release_java_package() {
9008   // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_package)
9009   clear_has_java_package();
9010   return java_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9011 }
set_allocated_java_package(::std::string * java_package)9012  void FileOptions::set_allocated_java_package(::std::string* java_package) {
9013   if (java_package != NULL) {
9014     set_has_java_package();
9015   } else {
9016     clear_has_java_package();
9017   }
9018   java_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), java_package);
9019   // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_package)
9020 }
9021 
9022 // optional string java_outer_classname = 8;
has_java_outer_classname() const9023 bool FileOptions::has_java_outer_classname() const {
9024   return (_has_bits_[0] & 0x00000002u) != 0;
9025 }
set_has_java_outer_classname()9026 void FileOptions::set_has_java_outer_classname() {
9027   _has_bits_[0] |= 0x00000002u;
9028 }
clear_has_java_outer_classname()9029 void FileOptions::clear_has_java_outer_classname() {
9030   _has_bits_[0] &= ~0x00000002u;
9031 }
clear_java_outer_classname()9032 void FileOptions::clear_java_outer_classname() {
9033   java_outer_classname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9034   clear_has_java_outer_classname();
9035 }
java_outer_classname() const9036  const ::std::string& FileOptions::java_outer_classname() const {
9037   // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_outer_classname)
9038   return java_outer_classname_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9039 }
set_java_outer_classname(const::std::string & value)9040  void FileOptions::set_java_outer_classname(const ::std::string& value) {
9041   set_has_java_outer_classname();
9042   java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
9043   // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_outer_classname)
9044 }
set_java_outer_classname(const char * value)9045  void FileOptions::set_java_outer_classname(const char* value) {
9046   set_has_java_outer_classname();
9047   java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
9048   // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_outer_classname)
9049 }
set_java_outer_classname(const char * value,size_t size)9050  void FileOptions::set_java_outer_classname(const char* value, size_t size) {
9051   set_has_java_outer_classname();
9052   java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
9053       ::std::string(reinterpret_cast<const char*>(value), size));
9054   // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java_outer_classname)
9055 }
mutable_java_outer_classname()9056  ::std::string* FileOptions::mutable_java_outer_classname() {
9057   set_has_java_outer_classname();
9058   // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_outer_classname)
9059   return java_outer_classname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9060 }
release_java_outer_classname()9061  ::std::string* FileOptions::release_java_outer_classname() {
9062   // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_outer_classname)
9063   clear_has_java_outer_classname();
9064   return java_outer_classname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9065 }
set_allocated_java_outer_classname(::std::string * java_outer_classname)9066  void FileOptions::set_allocated_java_outer_classname(::std::string* java_outer_classname) {
9067   if (java_outer_classname != NULL) {
9068     set_has_java_outer_classname();
9069   } else {
9070     clear_has_java_outer_classname();
9071   }
9072   java_outer_classname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), java_outer_classname);
9073   // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_outer_classname)
9074 }
9075 
9076 // optional bool java_multiple_files = 10 [default = false];
has_java_multiple_files() const9077 bool FileOptions::has_java_multiple_files() const {
9078   return (_has_bits_[0] & 0x00000004u) != 0;
9079 }
set_has_java_multiple_files()9080 void FileOptions::set_has_java_multiple_files() {
9081   _has_bits_[0] |= 0x00000004u;
9082 }
clear_has_java_multiple_files()9083 void FileOptions::clear_has_java_multiple_files() {
9084   _has_bits_[0] &= ~0x00000004u;
9085 }
clear_java_multiple_files()9086 void FileOptions::clear_java_multiple_files() {
9087   java_multiple_files_ = false;
9088   clear_has_java_multiple_files();
9089 }
java_multiple_files() const9090  bool FileOptions::java_multiple_files() const {
9091   // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_multiple_files)
9092   return java_multiple_files_;
9093 }
set_java_multiple_files(bool value)9094  void FileOptions::set_java_multiple_files(bool value) {
9095   set_has_java_multiple_files();
9096   java_multiple_files_ = value;
9097   // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_multiple_files)
9098 }
9099 
9100 // optional bool java_generate_equals_and_hash = 20 [default = false];
has_java_generate_equals_and_hash() const9101 bool FileOptions::has_java_generate_equals_and_hash() const {
9102   return (_has_bits_[0] & 0x00000008u) != 0;
9103 }
set_has_java_generate_equals_and_hash()9104 void FileOptions::set_has_java_generate_equals_and_hash() {
9105   _has_bits_[0] |= 0x00000008u;
9106 }
clear_has_java_generate_equals_and_hash()9107 void FileOptions::clear_has_java_generate_equals_and_hash() {
9108   _has_bits_[0] &= ~0x00000008u;
9109 }
clear_java_generate_equals_and_hash()9110 void FileOptions::clear_java_generate_equals_and_hash() {
9111   java_generate_equals_and_hash_ = false;
9112   clear_has_java_generate_equals_and_hash();
9113 }
java_generate_equals_and_hash() const9114  bool FileOptions::java_generate_equals_and_hash() const {
9115   // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generate_equals_and_hash)
9116   return java_generate_equals_and_hash_;
9117 }
set_java_generate_equals_and_hash(bool value)9118  void FileOptions::set_java_generate_equals_and_hash(bool value) {
9119   set_has_java_generate_equals_and_hash();
9120   java_generate_equals_and_hash_ = value;
9121   // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generate_equals_and_hash)
9122 }
9123 
9124 // optional bool java_string_check_utf8 = 27 [default = false];
has_java_string_check_utf8() const9125 bool FileOptions::has_java_string_check_utf8() const {
9126   return (_has_bits_[0] & 0x00000010u) != 0;
9127 }
set_has_java_string_check_utf8()9128 void FileOptions::set_has_java_string_check_utf8() {
9129   _has_bits_[0] |= 0x00000010u;
9130 }
clear_has_java_string_check_utf8()9131 void FileOptions::clear_has_java_string_check_utf8() {
9132   _has_bits_[0] &= ~0x00000010u;
9133 }
clear_java_string_check_utf8()9134 void FileOptions::clear_java_string_check_utf8() {
9135   java_string_check_utf8_ = false;
9136   clear_has_java_string_check_utf8();
9137 }
java_string_check_utf8() const9138  bool FileOptions::java_string_check_utf8() const {
9139   // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_string_check_utf8)
9140   return java_string_check_utf8_;
9141 }
set_java_string_check_utf8(bool value)9142  void FileOptions::set_java_string_check_utf8(bool value) {
9143   set_has_java_string_check_utf8();
9144   java_string_check_utf8_ = value;
9145   // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_string_check_utf8)
9146 }
9147 
9148 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
has_optimize_for() const9149 bool FileOptions::has_optimize_for() const {
9150   return (_has_bits_[0] & 0x00000020u) != 0;
9151 }
set_has_optimize_for()9152 void FileOptions::set_has_optimize_for() {
9153   _has_bits_[0] |= 0x00000020u;
9154 }
clear_has_optimize_for()9155 void FileOptions::clear_has_optimize_for() {
9156   _has_bits_[0] &= ~0x00000020u;
9157 }
clear_optimize_for()9158 void FileOptions::clear_optimize_for() {
9159   optimize_for_ = 1;
9160   clear_has_optimize_for();
9161 }
optimize_for() const9162  ::google::protobuf::FileOptions_OptimizeMode FileOptions::optimize_for() const {
9163   // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.optimize_for)
9164   return static_cast< ::google::protobuf::FileOptions_OptimizeMode >(optimize_for_);
9165 }
set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value)9166  void FileOptions::set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value) {
9167   assert(::google::protobuf::FileOptions_OptimizeMode_IsValid(value));
9168   set_has_optimize_for();
9169   optimize_for_ = value;
9170   // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.optimize_for)
9171 }
9172 
9173 // optional string go_package = 11;
has_go_package() const9174 bool FileOptions::has_go_package() const {
9175   return (_has_bits_[0] & 0x00000040u) != 0;
9176 }
set_has_go_package()9177 void FileOptions::set_has_go_package() {
9178   _has_bits_[0] |= 0x00000040u;
9179 }
clear_has_go_package()9180 void FileOptions::clear_has_go_package() {
9181   _has_bits_[0] &= ~0x00000040u;
9182 }
clear_go_package()9183 void FileOptions::clear_go_package() {
9184   go_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9185   clear_has_go_package();
9186 }
go_package() const9187  const ::std::string& FileOptions::go_package() const {
9188   // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.go_package)
9189   return go_package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9190 }
set_go_package(const::std::string & value)9191  void FileOptions::set_go_package(const ::std::string& value) {
9192   set_has_go_package();
9193   go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
9194   // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.go_package)
9195 }
set_go_package(const char * value)9196  void FileOptions::set_go_package(const char* value) {
9197   set_has_go_package();
9198   go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
9199   // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.go_package)
9200 }
set_go_package(const char * value,size_t size)9201  void FileOptions::set_go_package(const char* value, size_t size) {
9202   set_has_go_package();
9203   go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
9204       ::std::string(reinterpret_cast<const char*>(value), size));
9205   // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.go_package)
9206 }
mutable_go_package()9207  ::std::string* FileOptions::mutable_go_package() {
9208   set_has_go_package();
9209   // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.go_package)
9210   return go_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9211 }
release_go_package()9212  ::std::string* FileOptions::release_go_package() {
9213   // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.go_package)
9214   clear_has_go_package();
9215   return go_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9216 }
set_allocated_go_package(::std::string * go_package)9217  void FileOptions::set_allocated_go_package(::std::string* go_package) {
9218   if (go_package != NULL) {
9219     set_has_go_package();
9220   } else {
9221     clear_has_go_package();
9222   }
9223   go_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), go_package);
9224   // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.go_package)
9225 }
9226 
9227 // optional bool cc_generic_services = 16 [default = false];
has_cc_generic_services() const9228 bool FileOptions::has_cc_generic_services() const {
9229   return (_has_bits_[0] & 0x00000080u) != 0;
9230 }
set_has_cc_generic_services()9231 void FileOptions::set_has_cc_generic_services() {
9232   _has_bits_[0] |= 0x00000080u;
9233 }
clear_has_cc_generic_services()9234 void FileOptions::clear_has_cc_generic_services() {
9235   _has_bits_[0] &= ~0x00000080u;
9236 }
clear_cc_generic_services()9237 void FileOptions::clear_cc_generic_services() {
9238   cc_generic_services_ = false;
9239   clear_has_cc_generic_services();
9240 }
cc_generic_services() const9241  bool FileOptions::cc_generic_services() const {
9242   // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_generic_services)
9243   return cc_generic_services_;
9244 }
set_cc_generic_services(bool value)9245  void FileOptions::set_cc_generic_services(bool value) {
9246   set_has_cc_generic_services();
9247   cc_generic_services_ = value;
9248   // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_generic_services)
9249 }
9250 
9251 // optional bool java_generic_services = 17 [default = false];
has_java_generic_services() const9252 bool FileOptions::has_java_generic_services() const {
9253   return (_has_bits_[0] & 0x00000100u) != 0;
9254 }
set_has_java_generic_services()9255 void FileOptions::set_has_java_generic_services() {
9256   _has_bits_[0] |= 0x00000100u;
9257 }
clear_has_java_generic_services()9258 void FileOptions::clear_has_java_generic_services() {
9259   _has_bits_[0] &= ~0x00000100u;
9260 }
clear_java_generic_services()9261 void FileOptions::clear_java_generic_services() {
9262   java_generic_services_ = false;
9263   clear_has_java_generic_services();
9264 }
java_generic_services() const9265  bool FileOptions::java_generic_services() const {
9266   // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generic_services)
9267   return java_generic_services_;
9268 }
set_java_generic_services(bool value)9269  void FileOptions::set_java_generic_services(bool value) {
9270   set_has_java_generic_services();
9271   java_generic_services_ = value;
9272   // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generic_services)
9273 }
9274 
9275 // optional bool py_generic_services = 18 [default = false];
has_py_generic_services() const9276 bool FileOptions::has_py_generic_services() const {
9277   return (_has_bits_[0] & 0x00000200u) != 0;
9278 }
set_has_py_generic_services()9279 void FileOptions::set_has_py_generic_services() {
9280   _has_bits_[0] |= 0x00000200u;
9281 }
clear_has_py_generic_services()9282 void FileOptions::clear_has_py_generic_services() {
9283   _has_bits_[0] &= ~0x00000200u;
9284 }
clear_py_generic_services()9285 void FileOptions::clear_py_generic_services() {
9286   py_generic_services_ = false;
9287   clear_has_py_generic_services();
9288 }
py_generic_services() const9289  bool FileOptions::py_generic_services() const {
9290   // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.py_generic_services)
9291   return py_generic_services_;
9292 }
set_py_generic_services(bool value)9293  void FileOptions::set_py_generic_services(bool value) {
9294   set_has_py_generic_services();
9295   py_generic_services_ = value;
9296   // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.py_generic_services)
9297 }
9298 
9299 // optional bool deprecated = 23 [default = false];
has_deprecated() const9300 bool FileOptions::has_deprecated() const {
9301   return (_has_bits_[0] & 0x00000400u) != 0;
9302 }
set_has_deprecated()9303 void FileOptions::set_has_deprecated() {
9304   _has_bits_[0] |= 0x00000400u;
9305 }
clear_has_deprecated()9306 void FileOptions::clear_has_deprecated() {
9307   _has_bits_[0] &= ~0x00000400u;
9308 }
clear_deprecated()9309 void FileOptions::clear_deprecated() {
9310   deprecated_ = false;
9311   clear_has_deprecated();
9312 }
deprecated() const9313  bool FileOptions::deprecated() const {
9314   // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.deprecated)
9315   return deprecated_;
9316 }
set_deprecated(bool value)9317  void FileOptions::set_deprecated(bool value) {
9318   set_has_deprecated();
9319   deprecated_ = value;
9320   // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.deprecated)
9321 }
9322 
9323 // optional bool cc_enable_arenas = 31 [default = false];
has_cc_enable_arenas() const9324 bool FileOptions::has_cc_enable_arenas() const {
9325   return (_has_bits_[0] & 0x00000800u) != 0;
9326 }
set_has_cc_enable_arenas()9327 void FileOptions::set_has_cc_enable_arenas() {
9328   _has_bits_[0] |= 0x00000800u;
9329 }
clear_has_cc_enable_arenas()9330 void FileOptions::clear_has_cc_enable_arenas() {
9331   _has_bits_[0] &= ~0x00000800u;
9332 }
clear_cc_enable_arenas()9333 void FileOptions::clear_cc_enable_arenas() {
9334   cc_enable_arenas_ = false;
9335   clear_has_cc_enable_arenas();
9336 }
cc_enable_arenas() const9337  bool FileOptions::cc_enable_arenas() const {
9338   // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_enable_arenas)
9339   return cc_enable_arenas_;
9340 }
set_cc_enable_arenas(bool value)9341  void FileOptions::set_cc_enable_arenas(bool value) {
9342   set_has_cc_enable_arenas();
9343   cc_enable_arenas_ = value;
9344   // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_enable_arenas)
9345 }
9346 
9347 // optional string objc_class_prefix = 36;
has_objc_class_prefix() const9348 bool FileOptions::has_objc_class_prefix() const {
9349   return (_has_bits_[0] & 0x00001000u) != 0;
9350 }
set_has_objc_class_prefix()9351 void FileOptions::set_has_objc_class_prefix() {
9352   _has_bits_[0] |= 0x00001000u;
9353 }
clear_has_objc_class_prefix()9354 void FileOptions::clear_has_objc_class_prefix() {
9355   _has_bits_[0] &= ~0x00001000u;
9356 }
clear_objc_class_prefix()9357 void FileOptions::clear_objc_class_prefix() {
9358   objc_class_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9359   clear_has_objc_class_prefix();
9360 }
objc_class_prefix() const9361  const ::std::string& FileOptions::objc_class_prefix() const {
9362   // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.objc_class_prefix)
9363   return objc_class_prefix_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9364 }
set_objc_class_prefix(const::std::string & value)9365  void FileOptions::set_objc_class_prefix(const ::std::string& value) {
9366   set_has_objc_class_prefix();
9367   objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
9368   // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.objc_class_prefix)
9369 }
set_objc_class_prefix(const char * value)9370  void FileOptions::set_objc_class_prefix(const char* value) {
9371   set_has_objc_class_prefix();
9372   objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
9373   // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.objc_class_prefix)
9374 }
set_objc_class_prefix(const char * value,size_t size)9375  void FileOptions::set_objc_class_prefix(const char* value, size_t size) {
9376   set_has_objc_class_prefix();
9377   objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
9378       ::std::string(reinterpret_cast<const char*>(value), size));
9379   // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.objc_class_prefix)
9380 }
mutable_objc_class_prefix()9381  ::std::string* FileOptions::mutable_objc_class_prefix() {
9382   set_has_objc_class_prefix();
9383   // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.objc_class_prefix)
9384   return objc_class_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9385 }
release_objc_class_prefix()9386  ::std::string* FileOptions::release_objc_class_prefix() {
9387   // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.objc_class_prefix)
9388   clear_has_objc_class_prefix();
9389   return objc_class_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9390 }
set_allocated_objc_class_prefix(::std::string * objc_class_prefix)9391  void FileOptions::set_allocated_objc_class_prefix(::std::string* objc_class_prefix) {
9392   if (objc_class_prefix != NULL) {
9393     set_has_objc_class_prefix();
9394   } else {
9395     clear_has_objc_class_prefix();
9396   }
9397   objc_class_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), objc_class_prefix);
9398   // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.objc_class_prefix)
9399 }
9400 
9401 // optional string csharp_namespace = 37;
has_csharp_namespace() const9402 bool FileOptions::has_csharp_namespace() const {
9403   return (_has_bits_[0] & 0x00002000u) != 0;
9404 }
set_has_csharp_namespace()9405 void FileOptions::set_has_csharp_namespace() {
9406   _has_bits_[0] |= 0x00002000u;
9407 }
clear_has_csharp_namespace()9408 void FileOptions::clear_has_csharp_namespace() {
9409   _has_bits_[0] &= ~0x00002000u;
9410 }
clear_csharp_namespace()9411 void FileOptions::clear_csharp_namespace() {
9412   csharp_namespace_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9413   clear_has_csharp_namespace();
9414 }
csharp_namespace() const9415  const ::std::string& FileOptions::csharp_namespace() const {
9416   // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.csharp_namespace)
9417   return csharp_namespace_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9418 }
set_csharp_namespace(const::std::string & value)9419  void FileOptions::set_csharp_namespace(const ::std::string& value) {
9420   set_has_csharp_namespace();
9421   csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
9422   // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.csharp_namespace)
9423 }
set_csharp_namespace(const char * value)9424  void FileOptions::set_csharp_namespace(const char* value) {
9425   set_has_csharp_namespace();
9426   csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
9427   // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.csharp_namespace)
9428 }
set_csharp_namespace(const char * value,size_t size)9429  void FileOptions::set_csharp_namespace(const char* value, size_t size) {
9430   set_has_csharp_namespace();
9431   csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
9432       ::std::string(reinterpret_cast<const char*>(value), size));
9433   // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.csharp_namespace)
9434 }
mutable_csharp_namespace()9435  ::std::string* FileOptions::mutable_csharp_namespace() {
9436   set_has_csharp_namespace();
9437   // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.csharp_namespace)
9438   return csharp_namespace_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9439 }
release_csharp_namespace()9440  ::std::string* FileOptions::release_csharp_namespace() {
9441   // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.csharp_namespace)
9442   clear_has_csharp_namespace();
9443   return csharp_namespace_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9444 }
set_allocated_csharp_namespace(::std::string * csharp_namespace)9445  void FileOptions::set_allocated_csharp_namespace(::std::string* csharp_namespace) {
9446   if (csharp_namespace != NULL) {
9447     set_has_csharp_namespace();
9448   } else {
9449     clear_has_csharp_namespace();
9450   }
9451   csharp_namespace_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), csharp_namespace);
9452   // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.csharp_namespace)
9453 }
9454 
9455 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
uninterpreted_option_size() const9456 int FileOptions::uninterpreted_option_size() const {
9457   return uninterpreted_option_.size();
9458 }
clear_uninterpreted_option()9459 void FileOptions::clear_uninterpreted_option() {
9460   uninterpreted_option_.Clear();
9461 }
uninterpreted_option(int index) const9462 const ::google::protobuf::UninterpretedOption& FileOptions::uninterpreted_option(int index) const {
9463   // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.uninterpreted_option)
9464   return uninterpreted_option_.Get(index);
9465 }
mutable_uninterpreted_option(int index)9466 ::google::protobuf::UninterpretedOption* FileOptions::mutable_uninterpreted_option(int index) {
9467   // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.uninterpreted_option)
9468   return uninterpreted_option_.Mutable(index);
9469 }
add_uninterpreted_option()9470 ::google::protobuf::UninterpretedOption* FileOptions::add_uninterpreted_option() {
9471   // @@protoc_insertion_point(field_add:google.protobuf.FileOptions.uninterpreted_option)
9472   return uninterpreted_option_.Add();
9473 }
9474 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
mutable_uninterpreted_option()9475 FileOptions::mutable_uninterpreted_option() {
9476   // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileOptions.uninterpreted_option)
9477   return &uninterpreted_option_;
9478 }
9479 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
uninterpreted_option() const9480 FileOptions::uninterpreted_option() const {
9481   // @@protoc_insertion_point(field_list:google.protobuf.FileOptions.uninterpreted_option)
9482   return uninterpreted_option_;
9483 }
9484 
9485 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
9486 
9487 // ===================================================================
9488 
9489 #if !defined(_MSC_VER) || _MSC_VER >= 1900
9490 const int MessageOptions::kMessageSetWireFormatFieldNumber;
9491 const int MessageOptions::kNoStandardDescriptorAccessorFieldNumber;
9492 const int MessageOptions::kDeprecatedFieldNumber;
9493 const int MessageOptions::kMapEntryFieldNumber;
9494 const int MessageOptions::kUninterpretedOptionFieldNumber;
9495 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
9496 
MessageOptions()9497 MessageOptions::MessageOptions()
9498   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9499   SharedCtor();
9500   // @@protoc_insertion_point(constructor:google.protobuf.MessageOptions)
9501 }
9502 
InitAsDefaultInstance()9503 void MessageOptions::InitAsDefaultInstance() {
9504 }
9505 
MessageOptions(const MessageOptions & from)9506 MessageOptions::MessageOptions(const MessageOptions& from)
9507   : ::google::protobuf::Message(),
9508     _internal_metadata_(NULL) {
9509   SharedCtor();
9510   MergeFrom(from);
9511   // @@protoc_insertion_point(copy_constructor:google.protobuf.MessageOptions)
9512 }
9513 
SharedCtor()9514 void MessageOptions::SharedCtor() {
9515   _cached_size_ = 0;
9516   message_set_wire_format_ = false;
9517   no_standard_descriptor_accessor_ = false;
9518   deprecated_ = false;
9519   map_entry_ = false;
9520   ::memset(_has_bits_, 0, sizeof(_has_bits_));
9521 }
9522 
~MessageOptions()9523 MessageOptions::~MessageOptions() {
9524   // @@protoc_insertion_point(destructor:google.protobuf.MessageOptions)
9525   SharedDtor();
9526 }
9527 
SharedDtor()9528 void MessageOptions::SharedDtor() {
9529   if (this != default_instance_) {
9530   }
9531 }
9532 
SetCachedSize(int size) const9533 void MessageOptions::SetCachedSize(int size) const {
9534   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9535   _cached_size_ = size;
9536   GOOGLE_SAFE_CONCURRENT_WRITES_END();
9537 }
descriptor()9538 const ::google::protobuf::Descriptor* MessageOptions::descriptor() {
9539   protobuf_AssignDescriptorsOnce();
9540   return MessageOptions_descriptor_;
9541 }
9542 
default_instance()9543 const MessageOptions& MessageOptions::default_instance() {
9544   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
9545   return *default_instance_;
9546 }
9547 
9548 MessageOptions* MessageOptions::default_instance_ = NULL;
9549 
New(::google::protobuf::Arena * arena) const9550 MessageOptions* MessageOptions::New(::google::protobuf::Arena* arena) const {
9551   MessageOptions* n = new MessageOptions;
9552   if (arena != NULL) {
9553     arena->Own(n);
9554   }
9555   return n;
9556 }
9557 
Clear()9558 void MessageOptions::Clear() {
9559 // @@protoc_insertion_point(message_clear_start:google.protobuf.MessageOptions)
9560   _extensions_.Clear();
9561 #if defined(__clang__)
9562 #define ZR_HELPER_(f) \
9563   _Pragma("clang diagnostic push") \
9564   _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
9565   __builtin_offsetof(MessageOptions, f) \
9566   _Pragma("clang diagnostic pop")
9567 #else
9568 #define ZR_HELPER_(f) reinterpret_cast<char*>(\
9569   &reinterpret_cast<MessageOptions*>(16)->f)
9570 #endif
9571 
9572 #define ZR_(first, last) do {\
9573   ::memset(&first, 0,\
9574            ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
9575 } while (0)
9576 
9577   ZR_(message_set_wire_format_, map_entry_);
9578 
9579 #undef ZR_HELPER_
9580 #undef ZR_
9581 
9582   uninterpreted_option_.Clear();
9583   ::memset(_has_bits_, 0, sizeof(_has_bits_));
9584   if (_internal_metadata_.have_unknown_fields()) {
9585     mutable_unknown_fields()->Clear();
9586   }
9587 }
9588 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)9589 bool MessageOptions::MergePartialFromCodedStream(
9590     ::google::protobuf::io::CodedInputStream* input) {
9591 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
9592   ::google::protobuf::uint32 tag;
9593   // @@protoc_insertion_point(parse_start:google.protobuf.MessageOptions)
9594   for (;;) {
9595     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
9596     tag = p.first;
9597     if (!p.second) goto handle_unusual;
9598     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9599       // optional bool message_set_wire_format = 1 [default = false];
9600       case 1: {
9601         if (tag == 8) {
9602           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9603                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
9604                  input, &message_set_wire_format_)));
9605           set_has_message_set_wire_format();
9606         } else {
9607           goto handle_unusual;
9608         }
9609         if (input->ExpectTag(16)) goto parse_no_standard_descriptor_accessor;
9610         break;
9611       }
9612 
9613       // optional bool no_standard_descriptor_accessor = 2 [default = false];
9614       case 2: {
9615         if (tag == 16) {
9616          parse_no_standard_descriptor_accessor:
9617           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9618                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
9619                  input, &no_standard_descriptor_accessor_)));
9620           set_has_no_standard_descriptor_accessor();
9621         } else {
9622           goto handle_unusual;
9623         }
9624         if (input->ExpectTag(24)) goto parse_deprecated;
9625         break;
9626       }
9627 
9628       // optional bool deprecated = 3 [default = false];
9629       case 3: {
9630         if (tag == 24) {
9631          parse_deprecated:
9632           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9633                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
9634                  input, &deprecated_)));
9635           set_has_deprecated();
9636         } else {
9637           goto handle_unusual;
9638         }
9639         if (input->ExpectTag(56)) goto parse_map_entry;
9640         break;
9641       }
9642 
9643       // optional bool map_entry = 7;
9644       case 7: {
9645         if (tag == 56) {
9646          parse_map_entry:
9647           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9648                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
9649                  input, &map_entry_)));
9650           set_has_map_entry();
9651         } else {
9652           goto handle_unusual;
9653         }
9654         if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
9655         break;
9656       }
9657 
9658       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9659       case 999: {
9660         if (tag == 7994) {
9661          parse_uninterpreted_option:
9662           DO_(input->IncrementRecursionDepth());
9663          parse_loop_uninterpreted_option:
9664           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
9665                 input, add_uninterpreted_option()));
9666         } else {
9667           goto handle_unusual;
9668         }
9669         if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
9670         input->UnsafeDecrementRecursionDepth();
9671         if (input->ExpectAtEnd()) goto success;
9672         break;
9673       }
9674 
9675       default: {
9676       handle_unusual:
9677         if (tag == 0 ||
9678             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
9679             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
9680           goto success;
9681         }
9682         if ((8000u <= tag)) {
9683           DO_(_extensions_.ParseField(tag, input, default_instance_,
9684                                       mutable_unknown_fields()));
9685           continue;
9686         }
9687         DO_(::google::protobuf::internal::WireFormat::SkipField(
9688               input, tag, mutable_unknown_fields()));
9689         break;
9690       }
9691     }
9692   }
9693 success:
9694   // @@protoc_insertion_point(parse_success:google.protobuf.MessageOptions)
9695   return true;
9696 failure:
9697   // @@protoc_insertion_point(parse_failure:google.protobuf.MessageOptions)
9698   return false;
9699 #undef DO_
9700 }
9701 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const9702 void MessageOptions::SerializeWithCachedSizes(
9703     ::google::protobuf::io::CodedOutputStream* output) const {
9704   // @@protoc_insertion_point(serialize_start:google.protobuf.MessageOptions)
9705   // optional bool message_set_wire_format = 1 [default = false];
9706   if (has_message_set_wire_format()) {
9707     ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->message_set_wire_format(), output);
9708   }
9709 
9710   // optional bool no_standard_descriptor_accessor = 2 [default = false];
9711   if (has_no_standard_descriptor_accessor()) {
9712     ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->no_standard_descriptor_accessor(), output);
9713   }
9714 
9715   // optional bool deprecated = 3 [default = false];
9716   if (has_deprecated()) {
9717     ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output);
9718   }
9719 
9720   // optional bool map_entry = 7;
9721   if (has_map_entry()) {
9722     ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->map_entry(), output);
9723   }
9724 
9725   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9726   for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
9727     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9728       999, this->uninterpreted_option(i), output);
9729   }
9730 
9731   // Extension range [1000, 536870912)
9732   _extensions_.SerializeWithCachedSizes(
9733       1000, 536870912, output);
9734 
9735   if (_internal_metadata_.have_unknown_fields()) {
9736     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9737         unknown_fields(), output);
9738   }
9739   // @@protoc_insertion_point(serialize_end:google.protobuf.MessageOptions)
9740 }
9741 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const9742 ::google::protobuf::uint8* MessageOptions::InternalSerializeWithCachedSizesToArray(
9743     bool deterministic, ::google::protobuf::uint8* target) const {
9744   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MessageOptions)
9745   // optional bool message_set_wire_format = 1 [default = false];
9746   if (has_message_set_wire_format()) {
9747     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->message_set_wire_format(), target);
9748   }
9749 
9750   // optional bool no_standard_descriptor_accessor = 2 [default = false];
9751   if (has_no_standard_descriptor_accessor()) {
9752     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->no_standard_descriptor_accessor(), target);
9753   }
9754 
9755   // optional bool deprecated = 3 [default = false];
9756   if (has_deprecated()) {
9757     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target);
9758   }
9759 
9760   // optional bool map_entry = 7;
9761   if (has_map_entry()) {
9762     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->map_entry(), target);
9763   }
9764 
9765   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9766   for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
9767     target = ::google::protobuf::internal::WireFormatLite::
9768       InternalWriteMessageNoVirtualToArray(
9769         999, this->uninterpreted_option(i), false, target);
9770   }
9771 
9772   // Extension range [1000, 536870912)
9773   target = _extensions_.InternalSerializeWithCachedSizesToArray(
9774       1000, 536870912, false, target);
9775 
9776   if (_internal_metadata_.have_unknown_fields()) {
9777     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9778         unknown_fields(), target);
9779   }
9780   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MessageOptions)
9781   return target;
9782 }
9783 
ByteSize() const9784 int MessageOptions::ByteSize() const {
9785 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MessageOptions)
9786   int total_size = 0;
9787 
9788   if (_has_bits_[0 / 32] & 15u) {
9789     // optional bool message_set_wire_format = 1 [default = false];
9790     if (has_message_set_wire_format()) {
9791       total_size += 1 + 1;
9792     }
9793 
9794     // optional bool no_standard_descriptor_accessor = 2 [default = false];
9795     if (has_no_standard_descriptor_accessor()) {
9796       total_size += 1 + 1;
9797     }
9798 
9799     // optional bool deprecated = 3 [default = false];
9800     if (has_deprecated()) {
9801       total_size += 1 + 1;
9802     }
9803 
9804     // optional bool map_entry = 7;
9805     if (has_map_entry()) {
9806       total_size += 1 + 1;
9807     }
9808 
9809   }
9810   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9811   total_size += 2 * this->uninterpreted_option_size();
9812   for (int i = 0; i < this->uninterpreted_option_size(); i++) {
9813     total_size +=
9814       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
9815         this->uninterpreted_option(i));
9816   }
9817 
9818   total_size += _extensions_.ByteSize();
9819 
9820   if (_internal_metadata_.have_unknown_fields()) {
9821     total_size +=
9822       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9823         unknown_fields());
9824   }
9825   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9826   _cached_size_ = total_size;
9827   GOOGLE_SAFE_CONCURRENT_WRITES_END();
9828   return total_size;
9829 }
9830 
MergeFrom(const::google::protobuf::Message & from)9831 void MessageOptions::MergeFrom(const ::google::protobuf::Message& from) {
9832 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MessageOptions)
9833   if (GOOGLE_PREDICT_FALSE(&from == this)) {
9834     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
9835   }
9836   const MessageOptions* source =
9837       ::google::protobuf::internal::DynamicCastToGenerated<const MessageOptions>(
9838           &from);
9839   if (source == NULL) {
9840   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.MessageOptions)
9841     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9842   } else {
9843   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.MessageOptions)
9844     MergeFrom(*source);
9845   }
9846 }
9847 
MergeFrom(const MessageOptions & from)9848 void MessageOptions::MergeFrom(const MessageOptions& from) {
9849 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.MessageOptions)
9850   if (GOOGLE_PREDICT_FALSE(&from == this)) {
9851     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
9852   }
9853   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
9854   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
9855     if (from.has_message_set_wire_format()) {
9856       set_message_set_wire_format(from.message_set_wire_format());
9857     }
9858     if (from.has_no_standard_descriptor_accessor()) {
9859       set_no_standard_descriptor_accessor(from.no_standard_descriptor_accessor());
9860     }
9861     if (from.has_deprecated()) {
9862       set_deprecated(from.deprecated());
9863     }
9864     if (from.has_map_entry()) {
9865       set_map_entry(from.map_entry());
9866     }
9867   }
9868   _extensions_.MergeFrom(from._extensions_);
9869   if (from._internal_metadata_.have_unknown_fields()) {
9870     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
9871   }
9872 }
9873 
CopyFrom(const::google::protobuf::Message & from)9874 void MessageOptions::CopyFrom(const ::google::protobuf::Message& from) {
9875 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MessageOptions)
9876   if (&from == this) return;
9877   Clear();
9878   MergeFrom(from);
9879 }
9880 
CopyFrom(const MessageOptions & from)9881 void MessageOptions::CopyFrom(const MessageOptions& from) {
9882 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.MessageOptions)
9883   if (&from == this) return;
9884   Clear();
9885   MergeFrom(from);
9886 }
9887 
IsInitialized() const9888 bool MessageOptions::IsInitialized() const {
9889 
9890   if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
9891 
9892   if (!_extensions_.IsInitialized()) return false;  return true;
9893 }
9894 
Swap(MessageOptions * other)9895 void MessageOptions::Swap(MessageOptions* other) {
9896   if (other == this) return;
9897   InternalSwap(other);
9898 }
InternalSwap(MessageOptions * other)9899 void MessageOptions::InternalSwap(MessageOptions* other) {
9900   std::swap(message_set_wire_format_, other->message_set_wire_format_);
9901   std::swap(no_standard_descriptor_accessor_, other->no_standard_descriptor_accessor_);
9902   std::swap(deprecated_, other->deprecated_);
9903   std::swap(map_entry_, other->map_entry_);
9904   uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
9905   std::swap(_has_bits_[0], other->_has_bits_[0]);
9906   _internal_metadata_.Swap(&other->_internal_metadata_);
9907   std::swap(_cached_size_, other->_cached_size_);
9908   _extensions_.Swap(&other->_extensions_);
9909 }
9910 
GetMetadata() const9911 ::google::protobuf::Metadata MessageOptions::GetMetadata() const {
9912   protobuf_AssignDescriptorsOnce();
9913   ::google::protobuf::Metadata metadata;
9914   metadata.descriptor = MessageOptions_descriptor_;
9915   metadata.reflection = MessageOptions_reflection_;
9916   return metadata;
9917 }
9918 
9919 #if PROTOBUF_INLINE_NOT_IN_HEADERS
9920 // MessageOptions
9921 
9922 // optional bool message_set_wire_format = 1 [default = false];
has_message_set_wire_format() const9923 bool MessageOptions::has_message_set_wire_format() const {
9924   return (_has_bits_[0] & 0x00000001u) != 0;
9925 }
set_has_message_set_wire_format()9926 void MessageOptions::set_has_message_set_wire_format() {
9927   _has_bits_[0] |= 0x00000001u;
9928 }
clear_has_message_set_wire_format()9929 void MessageOptions::clear_has_message_set_wire_format() {
9930   _has_bits_[0] &= ~0x00000001u;
9931 }
clear_message_set_wire_format()9932 void MessageOptions::clear_message_set_wire_format() {
9933   message_set_wire_format_ = false;
9934   clear_has_message_set_wire_format();
9935 }
message_set_wire_format() const9936  bool MessageOptions::message_set_wire_format() const {
9937   // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.message_set_wire_format)
9938   return message_set_wire_format_;
9939 }
set_message_set_wire_format(bool value)9940  void MessageOptions::set_message_set_wire_format(bool value) {
9941   set_has_message_set_wire_format();
9942   message_set_wire_format_ = value;
9943   // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.message_set_wire_format)
9944 }
9945 
9946 // optional bool no_standard_descriptor_accessor = 2 [default = false];
has_no_standard_descriptor_accessor() const9947 bool MessageOptions::has_no_standard_descriptor_accessor() const {
9948   return (_has_bits_[0] & 0x00000002u) != 0;
9949 }
set_has_no_standard_descriptor_accessor()9950 void MessageOptions::set_has_no_standard_descriptor_accessor() {
9951   _has_bits_[0] |= 0x00000002u;
9952 }
clear_has_no_standard_descriptor_accessor()9953 void MessageOptions::clear_has_no_standard_descriptor_accessor() {
9954   _has_bits_[0] &= ~0x00000002u;
9955 }
clear_no_standard_descriptor_accessor()9956 void MessageOptions::clear_no_standard_descriptor_accessor() {
9957   no_standard_descriptor_accessor_ = false;
9958   clear_has_no_standard_descriptor_accessor();
9959 }
no_standard_descriptor_accessor() const9960  bool MessageOptions::no_standard_descriptor_accessor() const {
9961   // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
9962   return no_standard_descriptor_accessor_;
9963 }
set_no_standard_descriptor_accessor(bool value)9964  void MessageOptions::set_no_standard_descriptor_accessor(bool value) {
9965   set_has_no_standard_descriptor_accessor();
9966   no_standard_descriptor_accessor_ = value;
9967   // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
9968 }
9969 
9970 // optional bool deprecated = 3 [default = false];
has_deprecated() const9971 bool MessageOptions::has_deprecated() const {
9972   return (_has_bits_[0] & 0x00000004u) != 0;
9973 }
set_has_deprecated()9974 void MessageOptions::set_has_deprecated() {
9975   _has_bits_[0] |= 0x00000004u;
9976 }
clear_has_deprecated()9977 void MessageOptions::clear_has_deprecated() {
9978   _has_bits_[0] &= ~0x00000004u;
9979 }
clear_deprecated()9980 void MessageOptions::clear_deprecated() {
9981   deprecated_ = false;
9982   clear_has_deprecated();
9983 }
deprecated() const9984  bool MessageOptions::deprecated() const {
9985   // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.deprecated)
9986   return deprecated_;
9987 }
set_deprecated(bool value)9988  void MessageOptions::set_deprecated(bool value) {
9989   set_has_deprecated();
9990   deprecated_ = value;
9991   // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.deprecated)
9992 }
9993 
9994 // optional bool map_entry = 7;
has_map_entry() const9995 bool MessageOptions::has_map_entry() const {
9996   return (_has_bits_[0] & 0x00000008u) != 0;
9997 }
set_has_map_entry()9998 void MessageOptions::set_has_map_entry() {
9999   _has_bits_[0] |= 0x00000008u;
10000 }
clear_has_map_entry()10001 void MessageOptions::clear_has_map_entry() {
10002   _has_bits_[0] &= ~0x00000008u;
10003 }
clear_map_entry()10004 void MessageOptions::clear_map_entry() {
10005   map_entry_ = false;
10006   clear_has_map_entry();
10007 }
map_entry() const10008  bool MessageOptions::map_entry() const {
10009   // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.map_entry)
10010   return map_entry_;
10011 }
set_map_entry(bool value)10012  void MessageOptions::set_map_entry(bool value) {
10013   set_has_map_entry();
10014   map_entry_ = value;
10015   // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.map_entry)
10016 }
10017 
10018 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
uninterpreted_option_size() const10019 int MessageOptions::uninterpreted_option_size() const {
10020   return uninterpreted_option_.size();
10021 }
clear_uninterpreted_option()10022 void MessageOptions::clear_uninterpreted_option() {
10023   uninterpreted_option_.Clear();
10024 }
uninterpreted_option(int index) const10025 const ::google::protobuf::UninterpretedOption& MessageOptions::uninterpreted_option(int index) const {
10026   // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.uninterpreted_option)
10027   return uninterpreted_option_.Get(index);
10028 }
mutable_uninterpreted_option(int index)10029 ::google::protobuf::UninterpretedOption* MessageOptions::mutable_uninterpreted_option(int index) {
10030   // @@protoc_insertion_point(field_mutable:google.protobuf.MessageOptions.uninterpreted_option)
10031   return uninterpreted_option_.Mutable(index);
10032 }
add_uninterpreted_option()10033 ::google::protobuf::UninterpretedOption* MessageOptions::add_uninterpreted_option() {
10034   // @@protoc_insertion_point(field_add:google.protobuf.MessageOptions.uninterpreted_option)
10035   return uninterpreted_option_.Add();
10036 }
10037 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
mutable_uninterpreted_option()10038 MessageOptions::mutable_uninterpreted_option() {
10039   // @@protoc_insertion_point(field_mutable_list:google.protobuf.MessageOptions.uninterpreted_option)
10040   return &uninterpreted_option_;
10041 }
10042 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
uninterpreted_option() const10043 MessageOptions::uninterpreted_option() const {
10044   // @@protoc_insertion_point(field_list:google.protobuf.MessageOptions.uninterpreted_option)
10045   return uninterpreted_option_;
10046 }
10047 
10048 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
10049 
10050 // ===================================================================
10051 
FieldOptions_CType_descriptor()10052 const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor() {
10053   protobuf_AssignDescriptorsOnce();
10054   return FieldOptions_CType_descriptor_;
10055 }
FieldOptions_CType_IsValid(int value)10056 bool FieldOptions_CType_IsValid(int value) {
10057   switch(value) {
10058     case 0:
10059     case 1:
10060     case 2:
10061       return true;
10062     default:
10063       return false;
10064   }
10065 }
10066 
10067 #if !defined(_MSC_VER) || _MSC_VER >= 1900
10068 const FieldOptions_CType FieldOptions::STRING;
10069 const FieldOptions_CType FieldOptions::CORD;
10070 const FieldOptions_CType FieldOptions::STRING_PIECE;
10071 const FieldOptions_CType FieldOptions::CType_MIN;
10072 const FieldOptions_CType FieldOptions::CType_MAX;
10073 const int FieldOptions::CType_ARRAYSIZE;
10074 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
FieldOptions_JSType_descriptor()10075 const ::google::protobuf::EnumDescriptor* FieldOptions_JSType_descriptor() {
10076   protobuf_AssignDescriptorsOnce();
10077   return FieldOptions_JSType_descriptor_;
10078 }
FieldOptions_JSType_IsValid(int value)10079 bool FieldOptions_JSType_IsValid(int value) {
10080   switch(value) {
10081     case 0:
10082     case 1:
10083     case 2:
10084       return true;
10085     default:
10086       return false;
10087   }
10088 }
10089 
10090 #if !defined(_MSC_VER) || _MSC_VER >= 1900
10091 const FieldOptions_JSType FieldOptions::JS_NORMAL;
10092 const FieldOptions_JSType FieldOptions::JS_STRING;
10093 const FieldOptions_JSType FieldOptions::JS_NUMBER;
10094 const FieldOptions_JSType FieldOptions::JSType_MIN;
10095 const FieldOptions_JSType FieldOptions::JSType_MAX;
10096 const int FieldOptions::JSType_ARRAYSIZE;
10097 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
10098 #if !defined(_MSC_VER) || _MSC_VER >= 1900
10099 const int FieldOptions::kCtypeFieldNumber;
10100 const int FieldOptions::kPackedFieldNumber;
10101 const int FieldOptions::kJstypeFieldNumber;
10102 const int FieldOptions::kLazyFieldNumber;
10103 const int FieldOptions::kDeprecatedFieldNumber;
10104 const int FieldOptions::kWeakFieldNumber;
10105 const int FieldOptions::kUninterpretedOptionFieldNumber;
10106 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
10107 
FieldOptions()10108 FieldOptions::FieldOptions()
10109   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
10110   SharedCtor();
10111   // @@protoc_insertion_point(constructor:google.protobuf.FieldOptions)
10112 }
10113 
InitAsDefaultInstance()10114 void FieldOptions::InitAsDefaultInstance() {
10115 }
10116 
FieldOptions(const FieldOptions & from)10117 FieldOptions::FieldOptions(const FieldOptions& from)
10118   : ::google::protobuf::Message(),
10119     _internal_metadata_(NULL) {
10120   SharedCtor();
10121   MergeFrom(from);
10122   // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldOptions)
10123 }
10124 
SharedCtor()10125 void FieldOptions::SharedCtor() {
10126   _cached_size_ = 0;
10127   ctype_ = 0;
10128   packed_ = false;
10129   jstype_ = 0;
10130   lazy_ = false;
10131   deprecated_ = false;
10132   weak_ = false;
10133   ::memset(_has_bits_, 0, sizeof(_has_bits_));
10134 }
10135 
~FieldOptions()10136 FieldOptions::~FieldOptions() {
10137   // @@protoc_insertion_point(destructor:google.protobuf.FieldOptions)
10138   SharedDtor();
10139 }
10140 
SharedDtor()10141 void FieldOptions::SharedDtor() {
10142   if (this != default_instance_) {
10143   }
10144 }
10145 
SetCachedSize(int size) const10146 void FieldOptions::SetCachedSize(int size) const {
10147   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10148   _cached_size_ = size;
10149   GOOGLE_SAFE_CONCURRENT_WRITES_END();
10150 }
descriptor()10151 const ::google::protobuf::Descriptor* FieldOptions::descriptor() {
10152   protobuf_AssignDescriptorsOnce();
10153   return FieldOptions_descriptor_;
10154 }
10155 
default_instance()10156 const FieldOptions& FieldOptions::default_instance() {
10157   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
10158   return *default_instance_;
10159 }
10160 
10161 FieldOptions* FieldOptions::default_instance_ = NULL;
10162 
New(::google::protobuf::Arena * arena) const10163 FieldOptions* FieldOptions::New(::google::protobuf::Arena* arena) const {
10164   FieldOptions* n = new FieldOptions;
10165   if (arena != NULL) {
10166     arena->Own(n);
10167   }
10168   return n;
10169 }
10170 
Clear()10171 void FieldOptions::Clear() {
10172 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldOptions)
10173   _extensions_.Clear();
10174 #if defined(__clang__)
10175 #define ZR_HELPER_(f) \
10176   _Pragma("clang diagnostic push") \
10177   _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
10178   __builtin_offsetof(FieldOptions, f) \
10179   _Pragma("clang diagnostic pop")
10180 #else
10181 #define ZR_HELPER_(f) reinterpret_cast<char*>(\
10182   &reinterpret_cast<FieldOptions*>(16)->f)
10183 #endif
10184 
10185 #define ZR_(first, last) do {\
10186   ::memset(&first, 0,\
10187            ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
10188 } while (0)
10189 
10190   if (_has_bits_[0 / 32] & 63u) {
10191     ZR_(ctype_, jstype_);
10192     ZR_(packed_, weak_);
10193   }
10194 
10195 #undef ZR_HELPER_
10196 #undef ZR_
10197 
10198   uninterpreted_option_.Clear();
10199   ::memset(_has_bits_, 0, sizeof(_has_bits_));
10200   if (_internal_metadata_.have_unknown_fields()) {
10201     mutable_unknown_fields()->Clear();
10202   }
10203 }
10204 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)10205 bool FieldOptions::MergePartialFromCodedStream(
10206     ::google::protobuf::io::CodedInputStream* input) {
10207 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
10208   ::google::protobuf::uint32 tag;
10209   // @@protoc_insertion_point(parse_start:google.protobuf.FieldOptions)
10210   for (;;) {
10211     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
10212     tag = p.first;
10213     if (!p.second) goto handle_unusual;
10214     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10215       // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
10216       case 1: {
10217         if (tag == 8) {
10218           int value;
10219           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10220                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
10221                  input, &value)));
10222           if (::google::protobuf::FieldOptions_CType_IsValid(value)) {
10223             set_ctype(static_cast< ::google::protobuf::FieldOptions_CType >(value));
10224           } else {
10225             mutable_unknown_fields()->AddVarint(1, value);
10226           }
10227         } else {
10228           goto handle_unusual;
10229         }
10230         if (input->ExpectTag(16)) goto parse_packed;
10231         break;
10232       }
10233 
10234       // optional bool packed = 2;
10235       case 2: {
10236         if (tag == 16) {
10237          parse_packed:
10238           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10239                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
10240                  input, &packed_)));
10241           set_has_packed();
10242         } else {
10243           goto handle_unusual;
10244         }
10245         if (input->ExpectTag(24)) goto parse_deprecated;
10246         break;
10247       }
10248 
10249       // optional bool deprecated = 3 [default = false];
10250       case 3: {
10251         if (tag == 24) {
10252          parse_deprecated:
10253           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10254                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
10255                  input, &deprecated_)));
10256           set_has_deprecated();
10257         } else {
10258           goto handle_unusual;
10259         }
10260         if (input->ExpectTag(40)) goto parse_lazy;
10261         break;
10262       }
10263 
10264       // optional bool lazy = 5 [default = false];
10265       case 5: {
10266         if (tag == 40) {
10267          parse_lazy:
10268           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10269                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
10270                  input, &lazy_)));
10271           set_has_lazy();
10272         } else {
10273           goto handle_unusual;
10274         }
10275         if (input->ExpectTag(48)) goto parse_jstype;
10276         break;
10277       }
10278 
10279       // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
10280       case 6: {
10281         if (tag == 48) {
10282          parse_jstype:
10283           int value;
10284           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10285                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
10286                  input, &value)));
10287           if (::google::protobuf::FieldOptions_JSType_IsValid(value)) {
10288             set_jstype(static_cast< ::google::protobuf::FieldOptions_JSType >(value));
10289           } else {
10290             mutable_unknown_fields()->AddVarint(6, value);
10291           }
10292         } else {
10293           goto handle_unusual;
10294         }
10295         if (input->ExpectTag(80)) goto parse_weak;
10296         break;
10297       }
10298 
10299       // optional bool weak = 10 [default = false];
10300       case 10: {
10301         if (tag == 80) {
10302          parse_weak:
10303           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10304                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
10305                  input, &weak_)));
10306           set_has_weak();
10307         } else {
10308           goto handle_unusual;
10309         }
10310         if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
10311         break;
10312       }
10313 
10314       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10315       case 999: {
10316         if (tag == 7994) {
10317          parse_uninterpreted_option:
10318           DO_(input->IncrementRecursionDepth());
10319          parse_loop_uninterpreted_option:
10320           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
10321                 input, add_uninterpreted_option()));
10322         } else {
10323           goto handle_unusual;
10324         }
10325         if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
10326         input->UnsafeDecrementRecursionDepth();
10327         if (input->ExpectAtEnd()) goto success;
10328         break;
10329       }
10330 
10331       default: {
10332       handle_unusual:
10333         if (tag == 0 ||
10334             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
10335             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
10336           goto success;
10337         }
10338         if ((8000u <= tag)) {
10339           DO_(_extensions_.ParseField(tag, input, default_instance_,
10340                                       mutable_unknown_fields()));
10341           continue;
10342         }
10343         DO_(::google::protobuf::internal::WireFormat::SkipField(
10344               input, tag, mutable_unknown_fields()));
10345         break;
10346       }
10347     }
10348   }
10349 success:
10350   // @@protoc_insertion_point(parse_success:google.protobuf.FieldOptions)
10351   return true;
10352 failure:
10353   // @@protoc_insertion_point(parse_failure:google.protobuf.FieldOptions)
10354   return false;
10355 #undef DO_
10356 }
10357 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const10358 void FieldOptions::SerializeWithCachedSizes(
10359     ::google::protobuf::io::CodedOutputStream* output) const {
10360   // @@protoc_insertion_point(serialize_start:google.protobuf.FieldOptions)
10361   // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
10362   if (has_ctype()) {
10363     ::google::protobuf::internal::WireFormatLite::WriteEnum(
10364       1, this->ctype(), output);
10365   }
10366 
10367   // optional bool packed = 2;
10368   if (has_packed()) {
10369     ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->packed(), output);
10370   }
10371 
10372   // optional bool deprecated = 3 [default = false];
10373   if (has_deprecated()) {
10374     ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output);
10375   }
10376 
10377   // optional bool lazy = 5 [default = false];
10378   if (has_lazy()) {
10379     ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->lazy(), output);
10380   }
10381 
10382   // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
10383   if (has_jstype()) {
10384     ::google::protobuf::internal::WireFormatLite::WriteEnum(
10385       6, this->jstype(), output);
10386   }
10387 
10388   // optional bool weak = 10 [default = false];
10389   if (has_weak()) {
10390     ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->weak(), output);
10391   }
10392 
10393   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10394   for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
10395     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10396       999, this->uninterpreted_option(i), output);
10397   }
10398 
10399   // Extension range [1000, 536870912)
10400   _extensions_.SerializeWithCachedSizes(
10401       1000, 536870912, output);
10402 
10403   if (_internal_metadata_.have_unknown_fields()) {
10404     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10405         unknown_fields(), output);
10406   }
10407   // @@protoc_insertion_point(serialize_end:google.protobuf.FieldOptions)
10408 }
10409 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const10410 ::google::protobuf::uint8* FieldOptions::InternalSerializeWithCachedSizesToArray(
10411     bool deterministic, ::google::protobuf::uint8* target) const {
10412   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldOptions)
10413   // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
10414   if (has_ctype()) {
10415     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
10416       1, this->ctype(), target);
10417   }
10418 
10419   // optional bool packed = 2;
10420   if (has_packed()) {
10421     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->packed(), target);
10422   }
10423 
10424   // optional bool deprecated = 3 [default = false];
10425   if (has_deprecated()) {
10426     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target);
10427   }
10428 
10429   // optional bool lazy = 5 [default = false];
10430   if (has_lazy()) {
10431     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->lazy(), target);
10432   }
10433 
10434   // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
10435   if (has_jstype()) {
10436     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
10437       6, this->jstype(), target);
10438   }
10439 
10440   // optional bool weak = 10 [default = false];
10441   if (has_weak()) {
10442     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->weak(), target);
10443   }
10444 
10445   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10446   for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
10447     target = ::google::protobuf::internal::WireFormatLite::
10448       InternalWriteMessageNoVirtualToArray(
10449         999, this->uninterpreted_option(i), false, target);
10450   }
10451 
10452   // Extension range [1000, 536870912)
10453   target = _extensions_.InternalSerializeWithCachedSizesToArray(
10454       1000, 536870912, false, target);
10455 
10456   if (_internal_metadata_.have_unknown_fields()) {
10457     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10458         unknown_fields(), target);
10459   }
10460   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldOptions)
10461   return target;
10462 }
10463 
ByteSize() const10464 int FieldOptions::ByteSize() const {
10465 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldOptions)
10466   int total_size = 0;
10467 
10468   if (_has_bits_[0 / 32] & 63u) {
10469     // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
10470     if (has_ctype()) {
10471       total_size += 1 +
10472         ::google::protobuf::internal::WireFormatLite::EnumSize(this->ctype());
10473     }
10474 
10475     // optional bool packed = 2;
10476     if (has_packed()) {
10477       total_size += 1 + 1;
10478     }
10479 
10480     // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
10481     if (has_jstype()) {
10482       total_size += 1 +
10483         ::google::protobuf::internal::WireFormatLite::EnumSize(this->jstype());
10484     }
10485 
10486     // optional bool lazy = 5 [default = false];
10487     if (has_lazy()) {
10488       total_size += 1 + 1;
10489     }
10490 
10491     // optional bool deprecated = 3 [default = false];
10492     if (has_deprecated()) {
10493       total_size += 1 + 1;
10494     }
10495 
10496     // optional bool weak = 10 [default = false];
10497     if (has_weak()) {
10498       total_size += 1 + 1;
10499     }
10500 
10501   }
10502   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10503   total_size += 2 * this->uninterpreted_option_size();
10504   for (int i = 0; i < this->uninterpreted_option_size(); i++) {
10505     total_size +=
10506       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
10507         this->uninterpreted_option(i));
10508   }
10509 
10510   total_size += _extensions_.ByteSize();
10511 
10512   if (_internal_metadata_.have_unknown_fields()) {
10513     total_size +=
10514       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10515         unknown_fields());
10516   }
10517   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10518   _cached_size_ = total_size;
10519   GOOGLE_SAFE_CONCURRENT_WRITES_END();
10520   return total_size;
10521 }
10522 
MergeFrom(const::google::protobuf::Message & from)10523 void FieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
10524 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldOptions)
10525   if (GOOGLE_PREDICT_FALSE(&from == this)) {
10526     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
10527   }
10528   const FieldOptions* source =
10529       ::google::protobuf::internal::DynamicCastToGenerated<const FieldOptions>(
10530           &from);
10531   if (source == NULL) {
10532   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FieldOptions)
10533     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10534   } else {
10535   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FieldOptions)
10536     MergeFrom(*source);
10537   }
10538 }
10539 
MergeFrom(const FieldOptions & from)10540 void FieldOptions::MergeFrom(const FieldOptions& from) {
10541 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FieldOptions)
10542   if (GOOGLE_PREDICT_FALSE(&from == this)) {
10543     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
10544   }
10545   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
10546   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
10547     if (from.has_ctype()) {
10548       set_ctype(from.ctype());
10549     }
10550     if (from.has_packed()) {
10551       set_packed(from.packed());
10552     }
10553     if (from.has_jstype()) {
10554       set_jstype(from.jstype());
10555     }
10556     if (from.has_lazy()) {
10557       set_lazy(from.lazy());
10558     }
10559     if (from.has_deprecated()) {
10560       set_deprecated(from.deprecated());
10561     }
10562     if (from.has_weak()) {
10563       set_weak(from.weak());
10564     }
10565   }
10566   _extensions_.MergeFrom(from._extensions_);
10567   if (from._internal_metadata_.have_unknown_fields()) {
10568     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
10569   }
10570 }
10571 
CopyFrom(const::google::protobuf::Message & from)10572 void FieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
10573 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldOptions)
10574   if (&from == this) return;
10575   Clear();
10576   MergeFrom(from);
10577 }
10578 
CopyFrom(const FieldOptions & from)10579 void FieldOptions::CopyFrom(const FieldOptions& from) {
10580 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FieldOptions)
10581   if (&from == this) return;
10582   Clear();
10583   MergeFrom(from);
10584 }
10585 
IsInitialized() const10586 bool FieldOptions::IsInitialized() const {
10587 
10588   if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
10589 
10590   if (!_extensions_.IsInitialized()) return false;  return true;
10591 }
10592 
Swap(FieldOptions * other)10593 void FieldOptions::Swap(FieldOptions* other) {
10594   if (other == this) return;
10595   InternalSwap(other);
10596 }
InternalSwap(FieldOptions * other)10597 void FieldOptions::InternalSwap(FieldOptions* other) {
10598   std::swap(ctype_, other->ctype_);
10599   std::swap(packed_, other->packed_);
10600   std::swap(jstype_, other->jstype_);
10601   std::swap(lazy_, other->lazy_);
10602   std::swap(deprecated_, other->deprecated_);
10603   std::swap(weak_, other->weak_);
10604   uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
10605   std::swap(_has_bits_[0], other->_has_bits_[0]);
10606   _internal_metadata_.Swap(&other->_internal_metadata_);
10607   std::swap(_cached_size_, other->_cached_size_);
10608   _extensions_.Swap(&other->_extensions_);
10609 }
10610 
GetMetadata() const10611 ::google::protobuf::Metadata FieldOptions::GetMetadata() const {
10612   protobuf_AssignDescriptorsOnce();
10613   ::google::protobuf::Metadata metadata;
10614   metadata.descriptor = FieldOptions_descriptor_;
10615   metadata.reflection = FieldOptions_reflection_;
10616   return metadata;
10617 }
10618 
10619 #if PROTOBUF_INLINE_NOT_IN_HEADERS
10620 // FieldOptions
10621 
10622 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
has_ctype() const10623 bool FieldOptions::has_ctype() const {
10624   return (_has_bits_[0] & 0x00000001u) != 0;
10625 }
set_has_ctype()10626 void FieldOptions::set_has_ctype() {
10627   _has_bits_[0] |= 0x00000001u;
10628 }
clear_has_ctype()10629 void FieldOptions::clear_has_ctype() {
10630   _has_bits_[0] &= ~0x00000001u;
10631 }
clear_ctype()10632 void FieldOptions::clear_ctype() {
10633   ctype_ = 0;
10634   clear_has_ctype();
10635 }
ctype() const10636  ::google::protobuf::FieldOptions_CType FieldOptions::ctype() const {
10637   // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype)
10638   return static_cast< ::google::protobuf::FieldOptions_CType >(ctype_);
10639 }
set_ctype(::google::protobuf::FieldOptions_CType value)10640  void FieldOptions::set_ctype(::google::protobuf::FieldOptions_CType value) {
10641   assert(::google::protobuf::FieldOptions_CType_IsValid(value));
10642   set_has_ctype();
10643   ctype_ = value;
10644   // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.ctype)
10645 }
10646 
10647 // optional bool packed = 2;
has_packed() const10648 bool FieldOptions::has_packed() const {
10649   return (_has_bits_[0] & 0x00000002u) != 0;
10650 }
set_has_packed()10651 void FieldOptions::set_has_packed() {
10652   _has_bits_[0] |= 0x00000002u;
10653 }
clear_has_packed()10654 void FieldOptions::clear_has_packed() {
10655   _has_bits_[0] &= ~0x00000002u;
10656 }
clear_packed()10657 void FieldOptions::clear_packed() {
10658   packed_ = false;
10659   clear_has_packed();
10660 }
packed() const10661  bool FieldOptions::packed() const {
10662   // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed)
10663   return packed_;
10664 }
set_packed(bool value)10665  void FieldOptions::set_packed(bool value) {
10666   set_has_packed();
10667   packed_ = value;
10668   // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.packed)
10669 }
10670 
10671 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
has_jstype() const10672 bool FieldOptions::has_jstype() const {
10673   return (_has_bits_[0] & 0x00000004u) != 0;
10674 }
set_has_jstype()10675 void FieldOptions::set_has_jstype() {
10676   _has_bits_[0] |= 0x00000004u;
10677 }
clear_has_jstype()10678 void FieldOptions::clear_has_jstype() {
10679   _has_bits_[0] &= ~0x00000004u;
10680 }
clear_jstype()10681 void FieldOptions::clear_jstype() {
10682   jstype_ = 0;
10683   clear_has_jstype();
10684 }
jstype() const10685  ::google::protobuf::FieldOptions_JSType FieldOptions::jstype() const {
10686   // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.jstype)
10687   return static_cast< ::google::protobuf::FieldOptions_JSType >(jstype_);
10688 }
set_jstype(::google::protobuf::FieldOptions_JSType value)10689  void FieldOptions::set_jstype(::google::protobuf::FieldOptions_JSType value) {
10690   assert(::google::protobuf::FieldOptions_JSType_IsValid(value));
10691   set_has_jstype();
10692   jstype_ = value;
10693   // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.jstype)
10694 }
10695 
10696 // optional bool lazy = 5 [default = false];
has_lazy() const10697 bool FieldOptions::has_lazy() const {
10698   return (_has_bits_[0] & 0x00000008u) != 0;
10699 }
set_has_lazy()10700 void FieldOptions::set_has_lazy() {
10701   _has_bits_[0] |= 0x00000008u;
10702 }
clear_has_lazy()10703 void FieldOptions::clear_has_lazy() {
10704   _has_bits_[0] &= ~0x00000008u;
10705 }
clear_lazy()10706 void FieldOptions::clear_lazy() {
10707   lazy_ = false;
10708   clear_has_lazy();
10709 }
lazy() const10710  bool FieldOptions::lazy() const {
10711   // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.lazy)
10712   return lazy_;
10713 }
set_lazy(bool value)10714  void FieldOptions::set_lazy(bool value) {
10715   set_has_lazy();
10716   lazy_ = value;
10717   // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.lazy)
10718 }
10719 
10720 // optional bool deprecated = 3 [default = false];
has_deprecated() const10721 bool FieldOptions::has_deprecated() const {
10722   return (_has_bits_[0] & 0x00000010u) != 0;
10723 }
set_has_deprecated()10724 void FieldOptions::set_has_deprecated() {
10725   _has_bits_[0] |= 0x00000010u;
10726 }
clear_has_deprecated()10727 void FieldOptions::clear_has_deprecated() {
10728   _has_bits_[0] &= ~0x00000010u;
10729 }
clear_deprecated()10730 void FieldOptions::clear_deprecated() {
10731   deprecated_ = false;
10732   clear_has_deprecated();
10733 }
deprecated() const10734  bool FieldOptions::deprecated() const {
10735   // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.deprecated)
10736   return deprecated_;
10737 }
set_deprecated(bool value)10738  void FieldOptions::set_deprecated(bool value) {
10739   set_has_deprecated();
10740   deprecated_ = value;
10741   // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.deprecated)
10742 }
10743 
10744 // optional bool weak = 10 [default = false];
has_weak() const10745 bool FieldOptions::has_weak() const {
10746   return (_has_bits_[0] & 0x00000020u) != 0;
10747 }
set_has_weak()10748 void FieldOptions::set_has_weak() {
10749   _has_bits_[0] |= 0x00000020u;
10750 }
clear_has_weak()10751 void FieldOptions::clear_has_weak() {
10752   _has_bits_[0] &= ~0x00000020u;
10753 }
clear_weak()10754 void FieldOptions::clear_weak() {
10755   weak_ = false;
10756   clear_has_weak();
10757 }
weak() const10758  bool FieldOptions::weak() const {
10759   // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak)
10760   return weak_;
10761 }
set_weak(bool value)10762  void FieldOptions::set_weak(bool value) {
10763   set_has_weak();
10764   weak_ = value;
10765   // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.weak)
10766 }
10767 
10768 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
uninterpreted_option_size() const10769 int FieldOptions::uninterpreted_option_size() const {
10770   return uninterpreted_option_.size();
10771 }
clear_uninterpreted_option()10772 void FieldOptions::clear_uninterpreted_option() {
10773   uninterpreted_option_.Clear();
10774 }
uninterpreted_option(int index) const10775 const ::google::protobuf::UninterpretedOption& FieldOptions::uninterpreted_option(int index) const {
10776   // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.uninterpreted_option)
10777   return uninterpreted_option_.Get(index);
10778 }
mutable_uninterpreted_option(int index)10779 ::google::protobuf::UninterpretedOption* FieldOptions::mutable_uninterpreted_option(int index) {
10780   // @@protoc_insertion_point(field_mutable:google.protobuf.FieldOptions.uninterpreted_option)
10781   return uninterpreted_option_.Mutable(index);
10782 }
add_uninterpreted_option()10783 ::google::protobuf::UninterpretedOption* FieldOptions::add_uninterpreted_option() {
10784   // @@protoc_insertion_point(field_add:google.protobuf.FieldOptions.uninterpreted_option)
10785   return uninterpreted_option_.Add();
10786 }
10787 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
mutable_uninterpreted_option()10788 FieldOptions::mutable_uninterpreted_option() {
10789   // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldOptions.uninterpreted_option)
10790   return &uninterpreted_option_;
10791 }
10792 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
uninterpreted_option() const10793 FieldOptions::uninterpreted_option() const {
10794   // @@protoc_insertion_point(field_list:google.protobuf.FieldOptions.uninterpreted_option)
10795   return uninterpreted_option_;
10796 }
10797 
10798 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
10799 
10800 // ===================================================================
10801 
10802 #if !defined(_MSC_VER) || _MSC_VER >= 1900
10803 const int OneofOptions::kUninterpretedOptionFieldNumber;
10804 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
10805 
OneofOptions()10806 OneofOptions::OneofOptions()
10807   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
10808   SharedCtor();
10809   // @@protoc_insertion_point(constructor:google.protobuf.OneofOptions)
10810 }
10811 
InitAsDefaultInstance()10812 void OneofOptions::InitAsDefaultInstance() {
10813 }
10814 
OneofOptions(const OneofOptions & from)10815 OneofOptions::OneofOptions(const OneofOptions& from)
10816   : ::google::protobuf::Message(),
10817     _internal_metadata_(NULL) {
10818   SharedCtor();
10819   MergeFrom(from);
10820   // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofOptions)
10821 }
10822 
SharedCtor()10823 void OneofOptions::SharedCtor() {
10824   _cached_size_ = 0;
10825   ::memset(_has_bits_, 0, sizeof(_has_bits_));
10826 }
10827 
~OneofOptions()10828 OneofOptions::~OneofOptions() {
10829   // @@protoc_insertion_point(destructor:google.protobuf.OneofOptions)
10830   SharedDtor();
10831 }
10832 
SharedDtor()10833 void OneofOptions::SharedDtor() {
10834   if (this != default_instance_) {
10835   }
10836 }
10837 
SetCachedSize(int size) const10838 void OneofOptions::SetCachedSize(int size) const {
10839   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10840   _cached_size_ = size;
10841   GOOGLE_SAFE_CONCURRENT_WRITES_END();
10842 }
descriptor()10843 const ::google::protobuf::Descriptor* OneofOptions::descriptor() {
10844   protobuf_AssignDescriptorsOnce();
10845   return OneofOptions_descriptor_;
10846 }
10847 
default_instance()10848 const OneofOptions& OneofOptions::default_instance() {
10849   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
10850   return *default_instance_;
10851 }
10852 
10853 OneofOptions* OneofOptions::default_instance_ = NULL;
10854 
New(::google::protobuf::Arena * arena) const10855 OneofOptions* OneofOptions::New(::google::protobuf::Arena* arena) const {
10856   OneofOptions* n = new OneofOptions;
10857   if (arena != NULL) {
10858     arena->Own(n);
10859   }
10860   return n;
10861 }
10862 
Clear()10863 void OneofOptions::Clear() {
10864 // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofOptions)
10865   _extensions_.Clear();
10866   uninterpreted_option_.Clear();
10867   ::memset(_has_bits_, 0, sizeof(_has_bits_));
10868   if (_internal_metadata_.have_unknown_fields()) {
10869     mutable_unknown_fields()->Clear();
10870   }
10871 }
10872 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)10873 bool OneofOptions::MergePartialFromCodedStream(
10874     ::google::protobuf::io::CodedInputStream* input) {
10875 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
10876   ::google::protobuf::uint32 tag;
10877   // @@protoc_insertion_point(parse_start:google.protobuf.OneofOptions)
10878   for (;;) {
10879     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
10880     tag = p.first;
10881     if (!p.second) goto handle_unusual;
10882     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10883       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10884       case 999: {
10885         if (tag == 7994) {
10886           DO_(input->IncrementRecursionDepth());
10887          parse_loop_uninterpreted_option:
10888           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
10889                 input, add_uninterpreted_option()));
10890         } else {
10891           goto handle_unusual;
10892         }
10893         if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
10894         input->UnsafeDecrementRecursionDepth();
10895         if (input->ExpectAtEnd()) goto success;
10896         break;
10897       }
10898 
10899       default: {
10900       handle_unusual:
10901         if (tag == 0 ||
10902             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
10903             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
10904           goto success;
10905         }
10906         if ((8000u <= tag)) {
10907           DO_(_extensions_.ParseField(tag, input, default_instance_,
10908                                       mutable_unknown_fields()));
10909           continue;
10910         }
10911         DO_(::google::protobuf::internal::WireFormat::SkipField(
10912               input, tag, mutable_unknown_fields()));
10913         break;
10914       }
10915     }
10916   }
10917 success:
10918   // @@protoc_insertion_point(parse_success:google.protobuf.OneofOptions)
10919   return true;
10920 failure:
10921   // @@protoc_insertion_point(parse_failure:google.protobuf.OneofOptions)
10922   return false;
10923 #undef DO_
10924 }
10925 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const10926 void OneofOptions::SerializeWithCachedSizes(
10927     ::google::protobuf::io::CodedOutputStream* output) const {
10928   // @@protoc_insertion_point(serialize_start:google.protobuf.OneofOptions)
10929   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10930   for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
10931     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10932       999, this->uninterpreted_option(i), output);
10933   }
10934 
10935   // Extension range [1000, 536870912)
10936   _extensions_.SerializeWithCachedSizes(
10937       1000, 536870912, output);
10938 
10939   if (_internal_metadata_.have_unknown_fields()) {
10940     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10941         unknown_fields(), output);
10942   }
10943   // @@protoc_insertion_point(serialize_end:google.protobuf.OneofOptions)
10944 }
10945 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const10946 ::google::protobuf::uint8* OneofOptions::InternalSerializeWithCachedSizesToArray(
10947     bool deterministic, ::google::protobuf::uint8* target) const {
10948   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofOptions)
10949   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10950   for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
10951     target = ::google::protobuf::internal::WireFormatLite::
10952       InternalWriteMessageNoVirtualToArray(
10953         999, this->uninterpreted_option(i), false, target);
10954   }
10955 
10956   // Extension range [1000, 536870912)
10957   target = _extensions_.InternalSerializeWithCachedSizesToArray(
10958       1000, 536870912, false, target);
10959 
10960   if (_internal_metadata_.have_unknown_fields()) {
10961     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10962         unknown_fields(), target);
10963   }
10964   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofOptions)
10965   return target;
10966 }
10967 
ByteSize() const10968 int OneofOptions::ByteSize() const {
10969 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofOptions)
10970   int total_size = 0;
10971 
10972   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10973   total_size += 2 * this->uninterpreted_option_size();
10974   for (int i = 0; i < this->uninterpreted_option_size(); i++) {
10975     total_size +=
10976       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
10977         this->uninterpreted_option(i));
10978   }
10979 
10980   total_size += _extensions_.ByteSize();
10981 
10982   if (_internal_metadata_.have_unknown_fields()) {
10983     total_size +=
10984       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10985         unknown_fields());
10986   }
10987   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10988   _cached_size_ = total_size;
10989   GOOGLE_SAFE_CONCURRENT_WRITES_END();
10990   return total_size;
10991 }
10992 
MergeFrom(const::google::protobuf::Message & from)10993 void OneofOptions::MergeFrom(const ::google::protobuf::Message& from) {
10994 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.OneofOptions)
10995   if (GOOGLE_PREDICT_FALSE(&from == this)) {
10996     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
10997   }
10998   const OneofOptions* source =
10999       ::google::protobuf::internal::DynamicCastToGenerated<const OneofOptions>(
11000           &from);
11001   if (source == NULL) {
11002   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.OneofOptions)
11003     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11004   } else {
11005   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.OneofOptions)
11006     MergeFrom(*source);
11007   }
11008 }
11009 
MergeFrom(const OneofOptions & from)11010 void OneofOptions::MergeFrom(const OneofOptions& from) {
11011 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.OneofOptions)
11012   if (GOOGLE_PREDICT_FALSE(&from == this)) {
11013     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
11014   }
11015   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
11016   _extensions_.MergeFrom(from._extensions_);
11017   if (from._internal_metadata_.have_unknown_fields()) {
11018     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
11019   }
11020 }
11021 
CopyFrom(const::google::protobuf::Message & from)11022 void OneofOptions::CopyFrom(const ::google::protobuf::Message& from) {
11023 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.OneofOptions)
11024   if (&from == this) return;
11025   Clear();
11026   MergeFrom(from);
11027 }
11028 
CopyFrom(const OneofOptions & from)11029 void OneofOptions::CopyFrom(const OneofOptions& from) {
11030 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.OneofOptions)
11031   if (&from == this) return;
11032   Clear();
11033   MergeFrom(from);
11034 }
11035 
IsInitialized() const11036 bool OneofOptions::IsInitialized() const {
11037 
11038   if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
11039 
11040   if (!_extensions_.IsInitialized()) return false;  return true;
11041 }
11042 
Swap(OneofOptions * other)11043 void OneofOptions::Swap(OneofOptions* other) {
11044   if (other == this) return;
11045   InternalSwap(other);
11046 }
InternalSwap(OneofOptions * other)11047 void OneofOptions::InternalSwap(OneofOptions* other) {
11048   uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
11049   std::swap(_has_bits_[0], other->_has_bits_[0]);
11050   _internal_metadata_.Swap(&other->_internal_metadata_);
11051   std::swap(_cached_size_, other->_cached_size_);
11052   _extensions_.Swap(&other->_extensions_);
11053 }
11054 
GetMetadata() const11055 ::google::protobuf::Metadata OneofOptions::GetMetadata() const {
11056   protobuf_AssignDescriptorsOnce();
11057   ::google::protobuf::Metadata metadata;
11058   metadata.descriptor = OneofOptions_descriptor_;
11059   metadata.reflection = OneofOptions_reflection_;
11060   return metadata;
11061 }
11062 
11063 #if PROTOBUF_INLINE_NOT_IN_HEADERS
11064 // OneofOptions
11065 
11066 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
uninterpreted_option_size() const11067 int OneofOptions::uninterpreted_option_size() const {
11068   return uninterpreted_option_.size();
11069 }
clear_uninterpreted_option()11070 void OneofOptions::clear_uninterpreted_option() {
11071   uninterpreted_option_.Clear();
11072 }
uninterpreted_option(int index) const11073 const ::google::protobuf::UninterpretedOption& OneofOptions::uninterpreted_option(int index) const {
11074   // @@protoc_insertion_point(field_get:google.protobuf.OneofOptions.uninterpreted_option)
11075   return uninterpreted_option_.Get(index);
11076 }
mutable_uninterpreted_option(int index)11077 ::google::protobuf::UninterpretedOption* OneofOptions::mutable_uninterpreted_option(int index) {
11078   // @@protoc_insertion_point(field_mutable:google.protobuf.OneofOptions.uninterpreted_option)
11079   return uninterpreted_option_.Mutable(index);
11080 }
add_uninterpreted_option()11081 ::google::protobuf::UninterpretedOption* OneofOptions::add_uninterpreted_option() {
11082   // @@protoc_insertion_point(field_add:google.protobuf.OneofOptions.uninterpreted_option)
11083   return uninterpreted_option_.Add();
11084 }
11085 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
mutable_uninterpreted_option()11086 OneofOptions::mutable_uninterpreted_option() {
11087   // @@protoc_insertion_point(field_mutable_list:google.protobuf.OneofOptions.uninterpreted_option)
11088   return &uninterpreted_option_;
11089 }
11090 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
uninterpreted_option() const11091 OneofOptions::uninterpreted_option() const {
11092   // @@protoc_insertion_point(field_list:google.protobuf.OneofOptions.uninterpreted_option)
11093   return uninterpreted_option_;
11094 }
11095 
11096 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
11097 
11098 // ===================================================================
11099 
11100 #if !defined(_MSC_VER) || _MSC_VER >= 1900
11101 const int EnumOptions::kAllowAliasFieldNumber;
11102 const int EnumOptions::kDeprecatedFieldNumber;
11103 const int EnumOptions::kUninterpretedOptionFieldNumber;
11104 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
11105 
EnumOptions()11106 EnumOptions::EnumOptions()
11107   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11108   SharedCtor();
11109   // @@protoc_insertion_point(constructor:google.protobuf.EnumOptions)
11110 }
11111 
InitAsDefaultInstance()11112 void EnumOptions::InitAsDefaultInstance() {
11113 }
11114 
EnumOptions(const EnumOptions & from)11115 EnumOptions::EnumOptions(const EnumOptions& from)
11116   : ::google::protobuf::Message(),
11117     _internal_metadata_(NULL) {
11118   SharedCtor();
11119   MergeFrom(from);
11120   // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumOptions)
11121 }
11122 
SharedCtor()11123 void EnumOptions::SharedCtor() {
11124   _cached_size_ = 0;
11125   allow_alias_ = false;
11126   deprecated_ = false;
11127   ::memset(_has_bits_, 0, sizeof(_has_bits_));
11128 }
11129 
~EnumOptions()11130 EnumOptions::~EnumOptions() {
11131   // @@protoc_insertion_point(destructor:google.protobuf.EnumOptions)
11132   SharedDtor();
11133 }
11134 
SharedDtor()11135 void EnumOptions::SharedDtor() {
11136   if (this != default_instance_) {
11137   }
11138 }
11139 
SetCachedSize(int size) const11140 void EnumOptions::SetCachedSize(int size) const {
11141   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11142   _cached_size_ = size;
11143   GOOGLE_SAFE_CONCURRENT_WRITES_END();
11144 }
descriptor()11145 const ::google::protobuf::Descriptor* EnumOptions::descriptor() {
11146   protobuf_AssignDescriptorsOnce();
11147   return EnumOptions_descriptor_;
11148 }
11149 
default_instance()11150 const EnumOptions& EnumOptions::default_instance() {
11151   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
11152   return *default_instance_;
11153 }
11154 
11155 EnumOptions* EnumOptions::default_instance_ = NULL;
11156 
New(::google::protobuf::Arena * arena) const11157 EnumOptions* EnumOptions::New(::google::protobuf::Arena* arena) const {
11158   EnumOptions* n = new EnumOptions;
11159   if (arena != NULL) {
11160     arena->Own(n);
11161   }
11162   return n;
11163 }
11164 
Clear()11165 void EnumOptions::Clear() {
11166 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumOptions)
11167   _extensions_.Clear();
11168 #if defined(__clang__)
11169 #define ZR_HELPER_(f) \
11170   _Pragma("clang diagnostic push") \
11171   _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
11172   __builtin_offsetof(EnumOptions, f) \
11173   _Pragma("clang diagnostic pop")
11174 #else
11175 #define ZR_HELPER_(f) reinterpret_cast<char*>(\
11176   &reinterpret_cast<EnumOptions*>(16)->f)
11177 #endif
11178 
11179 #define ZR_(first, last) do {\
11180   ::memset(&first, 0,\
11181            ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
11182 } while (0)
11183 
11184   ZR_(allow_alias_, deprecated_);
11185 
11186 #undef ZR_HELPER_
11187 #undef ZR_
11188 
11189   uninterpreted_option_.Clear();
11190   ::memset(_has_bits_, 0, sizeof(_has_bits_));
11191   if (_internal_metadata_.have_unknown_fields()) {
11192     mutable_unknown_fields()->Clear();
11193   }
11194 }
11195 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)11196 bool EnumOptions::MergePartialFromCodedStream(
11197     ::google::protobuf::io::CodedInputStream* input) {
11198 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
11199   ::google::protobuf::uint32 tag;
11200   // @@protoc_insertion_point(parse_start:google.protobuf.EnumOptions)
11201   for (;;) {
11202     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
11203     tag = p.first;
11204     if (!p.second) goto handle_unusual;
11205     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11206       // optional bool allow_alias = 2;
11207       case 2: {
11208         if (tag == 16) {
11209           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11210                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
11211                  input, &allow_alias_)));
11212           set_has_allow_alias();
11213         } else {
11214           goto handle_unusual;
11215         }
11216         if (input->ExpectTag(24)) goto parse_deprecated;
11217         break;
11218       }
11219 
11220       // optional bool deprecated = 3 [default = false];
11221       case 3: {
11222         if (tag == 24) {
11223          parse_deprecated:
11224           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11225                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
11226                  input, &deprecated_)));
11227           set_has_deprecated();
11228         } else {
11229           goto handle_unusual;
11230         }
11231         if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
11232         break;
11233       }
11234 
11235       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11236       case 999: {
11237         if (tag == 7994) {
11238          parse_uninterpreted_option:
11239           DO_(input->IncrementRecursionDepth());
11240          parse_loop_uninterpreted_option:
11241           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
11242                 input, add_uninterpreted_option()));
11243         } else {
11244           goto handle_unusual;
11245         }
11246         if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
11247         input->UnsafeDecrementRecursionDepth();
11248         if (input->ExpectAtEnd()) goto success;
11249         break;
11250       }
11251 
11252       default: {
11253       handle_unusual:
11254         if (tag == 0 ||
11255             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
11256             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
11257           goto success;
11258         }
11259         if ((8000u <= tag)) {
11260           DO_(_extensions_.ParseField(tag, input, default_instance_,
11261                                       mutable_unknown_fields()));
11262           continue;
11263         }
11264         DO_(::google::protobuf::internal::WireFormat::SkipField(
11265               input, tag, mutable_unknown_fields()));
11266         break;
11267       }
11268     }
11269   }
11270 success:
11271   // @@protoc_insertion_point(parse_success:google.protobuf.EnumOptions)
11272   return true;
11273 failure:
11274   // @@protoc_insertion_point(parse_failure:google.protobuf.EnumOptions)
11275   return false;
11276 #undef DO_
11277 }
11278 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const11279 void EnumOptions::SerializeWithCachedSizes(
11280     ::google::protobuf::io::CodedOutputStream* output) const {
11281   // @@protoc_insertion_point(serialize_start:google.protobuf.EnumOptions)
11282   // optional bool allow_alias = 2;
11283   if (has_allow_alias()) {
11284     ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->allow_alias(), output);
11285   }
11286 
11287   // optional bool deprecated = 3 [default = false];
11288   if (has_deprecated()) {
11289     ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output);
11290   }
11291 
11292   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11293   for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
11294     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11295       999, this->uninterpreted_option(i), output);
11296   }
11297 
11298   // Extension range [1000, 536870912)
11299   _extensions_.SerializeWithCachedSizes(
11300       1000, 536870912, output);
11301 
11302   if (_internal_metadata_.have_unknown_fields()) {
11303     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11304         unknown_fields(), output);
11305   }
11306   // @@protoc_insertion_point(serialize_end:google.protobuf.EnumOptions)
11307 }
11308 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const11309 ::google::protobuf::uint8* EnumOptions::InternalSerializeWithCachedSizesToArray(
11310     bool deterministic, ::google::protobuf::uint8* target) const {
11311   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumOptions)
11312   // optional bool allow_alias = 2;
11313   if (has_allow_alias()) {
11314     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->allow_alias(), target);
11315   }
11316 
11317   // optional bool deprecated = 3 [default = false];
11318   if (has_deprecated()) {
11319     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target);
11320   }
11321 
11322   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11323   for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
11324     target = ::google::protobuf::internal::WireFormatLite::
11325       InternalWriteMessageNoVirtualToArray(
11326         999, this->uninterpreted_option(i), false, target);
11327   }
11328 
11329   // Extension range [1000, 536870912)
11330   target = _extensions_.InternalSerializeWithCachedSizesToArray(
11331       1000, 536870912, false, target);
11332 
11333   if (_internal_metadata_.have_unknown_fields()) {
11334     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11335         unknown_fields(), target);
11336   }
11337   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumOptions)
11338   return target;
11339 }
11340 
ByteSize() const11341 int EnumOptions::ByteSize() const {
11342 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumOptions)
11343   int total_size = 0;
11344 
11345   if (_has_bits_[0 / 32] & 3u) {
11346     // optional bool allow_alias = 2;
11347     if (has_allow_alias()) {
11348       total_size += 1 + 1;
11349     }
11350 
11351     // optional bool deprecated = 3 [default = false];
11352     if (has_deprecated()) {
11353       total_size += 1 + 1;
11354     }
11355 
11356   }
11357   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11358   total_size += 2 * this->uninterpreted_option_size();
11359   for (int i = 0; i < this->uninterpreted_option_size(); i++) {
11360     total_size +=
11361       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
11362         this->uninterpreted_option(i));
11363   }
11364 
11365   total_size += _extensions_.ByteSize();
11366 
11367   if (_internal_metadata_.have_unknown_fields()) {
11368     total_size +=
11369       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11370         unknown_fields());
11371   }
11372   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11373   _cached_size_ = total_size;
11374   GOOGLE_SAFE_CONCURRENT_WRITES_END();
11375   return total_size;
11376 }
11377 
MergeFrom(const::google::protobuf::Message & from)11378 void EnumOptions::MergeFrom(const ::google::protobuf::Message& from) {
11379 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumOptions)
11380   if (GOOGLE_PREDICT_FALSE(&from == this)) {
11381     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
11382   }
11383   const EnumOptions* source =
11384       ::google::protobuf::internal::DynamicCastToGenerated<const EnumOptions>(
11385           &from);
11386   if (source == NULL) {
11387   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.EnumOptions)
11388     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11389   } else {
11390   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumOptions)
11391     MergeFrom(*source);
11392   }
11393 }
11394 
MergeFrom(const EnumOptions & from)11395 void EnumOptions::MergeFrom(const EnumOptions& from) {
11396 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumOptions)
11397   if (GOOGLE_PREDICT_FALSE(&from == this)) {
11398     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
11399   }
11400   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
11401   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
11402     if (from.has_allow_alias()) {
11403       set_allow_alias(from.allow_alias());
11404     }
11405     if (from.has_deprecated()) {
11406       set_deprecated(from.deprecated());
11407     }
11408   }
11409   _extensions_.MergeFrom(from._extensions_);
11410   if (from._internal_metadata_.have_unknown_fields()) {
11411     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
11412   }
11413 }
11414 
CopyFrom(const::google::protobuf::Message & from)11415 void EnumOptions::CopyFrom(const ::google::protobuf::Message& from) {
11416 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumOptions)
11417   if (&from == this) return;
11418   Clear();
11419   MergeFrom(from);
11420 }
11421 
CopyFrom(const EnumOptions & from)11422 void EnumOptions::CopyFrom(const EnumOptions& from) {
11423 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumOptions)
11424   if (&from == this) return;
11425   Clear();
11426   MergeFrom(from);
11427 }
11428 
IsInitialized() const11429 bool EnumOptions::IsInitialized() const {
11430 
11431   if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
11432 
11433   if (!_extensions_.IsInitialized()) return false;  return true;
11434 }
11435 
Swap(EnumOptions * other)11436 void EnumOptions::Swap(EnumOptions* other) {
11437   if (other == this) return;
11438   InternalSwap(other);
11439 }
InternalSwap(EnumOptions * other)11440 void EnumOptions::InternalSwap(EnumOptions* other) {
11441   std::swap(allow_alias_, other->allow_alias_);
11442   std::swap(deprecated_, other->deprecated_);
11443   uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
11444   std::swap(_has_bits_[0], other->_has_bits_[0]);
11445   _internal_metadata_.Swap(&other->_internal_metadata_);
11446   std::swap(_cached_size_, other->_cached_size_);
11447   _extensions_.Swap(&other->_extensions_);
11448 }
11449 
GetMetadata() const11450 ::google::protobuf::Metadata EnumOptions::GetMetadata() const {
11451   protobuf_AssignDescriptorsOnce();
11452   ::google::protobuf::Metadata metadata;
11453   metadata.descriptor = EnumOptions_descriptor_;
11454   metadata.reflection = EnumOptions_reflection_;
11455   return metadata;
11456 }
11457 
11458 #if PROTOBUF_INLINE_NOT_IN_HEADERS
11459 // EnumOptions
11460 
11461 // optional bool allow_alias = 2;
has_allow_alias() const11462 bool EnumOptions::has_allow_alias() const {
11463   return (_has_bits_[0] & 0x00000001u) != 0;
11464 }
set_has_allow_alias()11465 void EnumOptions::set_has_allow_alias() {
11466   _has_bits_[0] |= 0x00000001u;
11467 }
clear_has_allow_alias()11468 void EnumOptions::clear_has_allow_alias() {
11469   _has_bits_[0] &= ~0x00000001u;
11470 }
clear_allow_alias()11471 void EnumOptions::clear_allow_alias() {
11472   allow_alias_ = false;
11473   clear_has_allow_alias();
11474 }
allow_alias() const11475  bool EnumOptions::allow_alias() const {
11476   // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.allow_alias)
11477   return allow_alias_;
11478 }
set_allow_alias(bool value)11479  void EnumOptions::set_allow_alias(bool value) {
11480   set_has_allow_alias();
11481   allow_alias_ = value;
11482   // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.allow_alias)
11483 }
11484 
11485 // optional bool deprecated = 3 [default = false];
has_deprecated() const11486 bool EnumOptions::has_deprecated() const {
11487   return (_has_bits_[0] & 0x00000002u) != 0;
11488 }
set_has_deprecated()11489 void EnumOptions::set_has_deprecated() {
11490   _has_bits_[0] |= 0x00000002u;
11491 }
clear_has_deprecated()11492 void EnumOptions::clear_has_deprecated() {
11493   _has_bits_[0] &= ~0x00000002u;
11494 }
clear_deprecated()11495 void EnumOptions::clear_deprecated() {
11496   deprecated_ = false;
11497   clear_has_deprecated();
11498 }
deprecated() const11499  bool EnumOptions::deprecated() const {
11500   // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.deprecated)
11501   return deprecated_;
11502 }
set_deprecated(bool value)11503  void EnumOptions::set_deprecated(bool value) {
11504   set_has_deprecated();
11505   deprecated_ = value;
11506   // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.deprecated)
11507 }
11508 
11509 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
uninterpreted_option_size() const11510 int EnumOptions::uninterpreted_option_size() const {
11511   return uninterpreted_option_.size();
11512 }
clear_uninterpreted_option()11513 void EnumOptions::clear_uninterpreted_option() {
11514   uninterpreted_option_.Clear();
11515 }
uninterpreted_option(int index) const11516 const ::google::protobuf::UninterpretedOption& EnumOptions::uninterpreted_option(int index) const {
11517   // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.uninterpreted_option)
11518   return uninterpreted_option_.Get(index);
11519 }
mutable_uninterpreted_option(int index)11520 ::google::protobuf::UninterpretedOption* EnumOptions::mutable_uninterpreted_option(int index) {
11521   // @@protoc_insertion_point(field_mutable:google.protobuf.EnumOptions.uninterpreted_option)
11522   return uninterpreted_option_.Mutable(index);
11523 }
add_uninterpreted_option()11524 ::google::protobuf::UninterpretedOption* EnumOptions::add_uninterpreted_option() {
11525   // @@protoc_insertion_point(field_add:google.protobuf.EnumOptions.uninterpreted_option)
11526   return uninterpreted_option_.Add();
11527 }
11528 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
mutable_uninterpreted_option()11529 EnumOptions::mutable_uninterpreted_option() {
11530   // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumOptions.uninterpreted_option)
11531   return &uninterpreted_option_;
11532 }
11533 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
uninterpreted_option() const11534 EnumOptions::uninterpreted_option() const {
11535   // @@protoc_insertion_point(field_list:google.protobuf.EnumOptions.uninterpreted_option)
11536   return uninterpreted_option_;
11537 }
11538 
11539 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
11540 
11541 // ===================================================================
11542 
11543 #if !defined(_MSC_VER) || _MSC_VER >= 1900
11544 const int EnumValueOptions::kDeprecatedFieldNumber;
11545 const int EnumValueOptions::kUninterpretedOptionFieldNumber;
11546 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
11547 
EnumValueOptions()11548 EnumValueOptions::EnumValueOptions()
11549   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11550   SharedCtor();
11551   // @@protoc_insertion_point(constructor:google.protobuf.EnumValueOptions)
11552 }
11553 
InitAsDefaultInstance()11554 void EnumValueOptions::InitAsDefaultInstance() {
11555 }
11556 
EnumValueOptions(const EnumValueOptions & from)11557 EnumValueOptions::EnumValueOptions(const EnumValueOptions& from)
11558   : ::google::protobuf::Message(),
11559     _internal_metadata_(NULL) {
11560   SharedCtor();
11561   MergeFrom(from);
11562   // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueOptions)
11563 }
11564 
SharedCtor()11565 void EnumValueOptions::SharedCtor() {
11566   _cached_size_ = 0;
11567   deprecated_ = false;
11568   ::memset(_has_bits_, 0, sizeof(_has_bits_));
11569 }
11570 
~EnumValueOptions()11571 EnumValueOptions::~EnumValueOptions() {
11572   // @@protoc_insertion_point(destructor:google.protobuf.EnumValueOptions)
11573   SharedDtor();
11574 }
11575 
SharedDtor()11576 void EnumValueOptions::SharedDtor() {
11577   if (this != default_instance_) {
11578   }
11579 }
11580 
SetCachedSize(int size) const11581 void EnumValueOptions::SetCachedSize(int size) const {
11582   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11583   _cached_size_ = size;
11584   GOOGLE_SAFE_CONCURRENT_WRITES_END();
11585 }
descriptor()11586 const ::google::protobuf::Descriptor* EnumValueOptions::descriptor() {
11587   protobuf_AssignDescriptorsOnce();
11588   return EnumValueOptions_descriptor_;
11589 }
11590 
default_instance()11591 const EnumValueOptions& EnumValueOptions::default_instance() {
11592   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
11593   return *default_instance_;
11594 }
11595 
11596 EnumValueOptions* EnumValueOptions::default_instance_ = NULL;
11597 
New(::google::protobuf::Arena * arena) const11598 EnumValueOptions* EnumValueOptions::New(::google::protobuf::Arena* arena) const {
11599   EnumValueOptions* n = new EnumValueOptions;
11600   if (arena != NULL) {
11601     arena->Own(n);
11602   }
11603   return n;
11604 }
11605 
Clear()11606 void EnumValueOptions::Clear() {
11607 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueOptions)
11608   _extensions_.Clear();
11609   deprecated_ = false;
11610   uninterpreted_option_.Clear();
11611   ::memset(_has_bits_, 0, sizeof(_has_bits_));
11612   if (_internal_metadata_.have_unknown_fields()) {
11613     mutable_unknown_fields()->Clear();
11614   }
11615 }
11616 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)11617 bool EnumValueOptions::MergePartialFromCodedStream(
11618     ::google::protobuf::io::CodedInputStream* input) {
11619 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
11620   ::google::protobuf::uint32 tag;
11621   // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueOptions)
11622   for (;;) {
11623     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
11624     tag = p.first;
11625     if (!p.second) goto handle_unusual;
11626     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11627       // optional bool deprecated = 1 [default = false];
11628       case 1: {
11629         if (tag == 8) {
11630           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11631                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
11632                  input, &deprecated_)));
11633           set_has_deprecated();
11634         } else {
11635           goto handle_unusual;
11636         }
11637         if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
11638         break;
11639       }
11640 
11641       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11642       case 999: {
11643         if (tag == 7994) {
11644          parse_uninterpreted_option:
11645           DO_(input->IncrementRecursionDepth());
11646          parse_loop_uninterpreted_option:
11647           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
11648                 input, add_uninterpreted_option()));
11649         } else {
11650           goto handle_unusual;
11651         }
11652         if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
11653         input->UnsafeDecrementRecursionDepth();
11654         if (input->ExpectAtEnd()) goto success;
11655         break;
11656       }
11657 
11658       default: {
11659       handle_unusual:
11660         if (tag == 0 ||
11661             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
11662             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
11663           goto success;
11664         }
11665         if ((8000u <= tag)) {
11666           DO_(_extensions_.ParseField(tag, input, default_instance_,
11667                                       mutable_unknown_fields()));
11668           continue;
11669         }
11670         DO_(::google::protobuf::internal::WireFormat::SkipField(
11671               input, tag, mutable_unknown_fields()));
11672         break;
11673       }
11674     }
11675   }
11676 success:
11677   // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueOptions)
11678   return true;
11679 failure:
11680   // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueOptions)
11681   return false;
11682 #undef DO_
11683 }
11684 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const11685 void EnumValueOptions::SerializeWithCachedSizes(
11686     ::google::protobuf::io::CodedOutputStream* output) const {
11687   // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueOptions)
11688   // optional bool deprecated = 1 [default = false];
11689   if (has_deprecated()) {
11690     ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->deprecated(), output);
11691   }
11692 
11693   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11694   for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
11695     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11696       999, this->uninterpreted_option(i), output);
11697   }
11698 
11699   // Extension range [1000, 536870912)
11700   _extensions_.SerializeWithCachedSizes(
11701       1000, 536870912, output);
11702 
11703   if (_internal_metadata_.have_unknown_fields()) {
11704     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11705         unknown_fields(), output);
11706   }
11707   // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueOptions)
11708 }
11709 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const11710 ::google::protobuf::uint8* EnumValueOptions::InternalSerializeWithCachedSizesToArray(
11711     bool deterministic, ::google::protobuf::uint8* target) const {
11712   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueOptions)
11713   // optional bool deprecated = 1 [default = false];
11714   if (has_deprecated()) {
11715     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->deprecated(), target);
11716   }
11717 
11718   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11719   for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
11720     target = ::google::protobuf::internal::WireFormatLite::
11721       InternalWriteMessageNoVirtualToArray(
11722         999, this->uninterpreted_option(i), false, target);
11723   }
11724 
11725   // Extension range [1000, 536870912)
11726   target = _extensions_.InternalSerializeWithCachedSizesToArray(
11727       1000, 536870912, false, target);
11728 
11729   if (_internal_metadata_.have_unknown_fields()) {
11730     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11731         unknown_fields(), target);
11732   }
11733   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueOptions)
11734   return target;
11735 }
11736 
ByteSize() const11737 int EnumValueOptions::ByteSize() const {
11738 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueOptions)
11739   int total_size = 0;
11740 
11741   // optional bool deprecated = 1 [default = false];
11742   if (has_deprecated()) {
11743     total_size += 1 + 1;
11744   }
11745 
11746   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11747   total_size += 2 * this->uninterpreted_option_size();
11748   for (int i = 0; i < this->uninterpreted_option_size(); i++) {
11749     total_size +=
11750       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
11751         this->uninterpreted_option(i));
11752   }
11753 
11754   total_size += _extensions_.ByteSize();
11755 
11756   if (_internal_metadata_.have_unknown_fields()) {
11757     total_size +=
11758       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11759         unknown_fields());
11760   }
11761   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11762   _cached_size_ = total_size;
11763   GOOGLE_SAFE_CONCURRENT_WRITES_END();
11764   return total_size;
11765 }
11766 
MergeFrom(const::google::protobuf::Message & from)11767 void EnumValueOptions::MergeFrom(const ::google::protobuf::Message& from) {
11768 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumValueOptions)
11769   if (GOOGLE_PREDICT_FALSE(&from == this)) {
11770     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
11771   }
11772   const EnumValueOptions* source =
11773       ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueOptions>(
11774           &from);
11775   if (source == NULL) {
11776   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.EnumValueOptions)
11777     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11778   } else {
11779   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumValueOptions)
11780     MergeFrom(*source);
11781   }
11782 }
11783 
MergeFrom(const EnumValueOptions & from)11784 void EnumValueOptions::MergeFrom(const EnumValueOptions& from) {
11785 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumValueOptions)
11786   if (GOOGLE_PREDICT_FALSE(&from == this)) {
11787     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
11788   }
11789   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
11790   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
11791     if (from.has_deprecated()) {
11792       set_deprecated(from.deprecated());
11793     }
11794   }
11795   _extensions_.MergeFrom(from._extensions_);
11796   if (from._internal_metadata_.have_unknown_fields()) {
11797     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
11798   }
11799 }
11800 
CopyFrom(const::google::protobuf::Message & from)11801 void EnumValueOptions::CopyFrom(const ::google::protobuf::Message& from) {
11802 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValueOptions)
11803   if (&from == this) return;
11804   Clear();
11805   MergeFrom(from);
11806 }
11807 
CopyFrom(const EnumValueOptions & from)11808 void EnumValueOptions::CopyFrom(const EnumValueOptions& from) {
11809 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumValueOptions)
11810   if (&from == this) return;
11811   Clear();
11812   MergeFrom(from);
11813 }
11814 
IsInitialized() const11815 bool EnumValueOptions::IsInitialized() const {
11816 
11817   if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
11818 
11819   if (!_extensions_.IsInitialized()) return false;  return true;
11820 }
11821 
Swap(EnumValueOptions * other)11822 void EnumValueOptions::Swap(EnumValueOptions* other) {
11823   if (other == this) return;
11824   InternalSwap(other);
11825 }
InternalSwap(EnumValueOptions * other)11826 void EnumValueOptions::InternalSwap(EnumValueOptions* other) {
11827   std::swap(deprecated_, other->deprecated_);
11828   uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
11829   std::swap(_has_bits_[0], other->_has_bits_[0]);
11830   _internal_metadata_.Swap(&other->_internal_metadata_);
11831   std::swap(_cached_size_, other->_cached_size_);
11832   _extensions_.Swap(&other->_extensions_);
11833 }
11834 
GetMetadata() const11835 ::google::protobuf::Metadata EnumValueOptions::GetMetadata() const {
11836   protobuf_AssignDescriptorsOnce();
11837   ::google::protobuf::Metadata metadata;
11838   metadata.descriptor = EnumValueOptions_descriptor_;
11839   metadata.reflection = EnumValueOptions_reflection_;
11840   return metadata;
11841 }
11842 
11843 #if PROTOBUF_INLINE_NOT_IN_HEADERS
11844 // EnumValueOptions
11845 
11846 // optional bool deprecated = 1 [default = false];
has_deprecated() const11847 bool EnumValueOptions::has_deprecated() const {
11848   return (_has_bits_[0] & 0x00000001u) != 0;
11849 }
set_has_deprecated()11850 void EnumValueOptions::set_has_deprecated() {
11851   _has_bits_[0] |= 0x00000001u;
11852 }
clear_has_deprecated()11853 void EnumValueOptions::clear_has_deprecated() {
11854   _has_bits_[0] &= ~0x00000001u;
11855 }
clear_deprecated()11856 void EnumValueOptions::clear_deprecated() {
11857   deprecated_ = false;
11858   clear_has_deprecated();
11859 }
deprecated() const11860  bool EnumValueOptions::deprecated() const {
11861   // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.deprecated)
11862   return deprecated_;
11863 }
set_deprecated(bool value)11864  void EnumValueOptions::set_deprecated(bool value) {
11865   set_has_deprecated();
11866   deprecated_ = value;
11867   // @@protoc_insertion_point(field_set:google.protobuf.EnumValueOptions.deprecated)
11868 }
11869 
11870 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
uninterpreted_option_size() const11871 int EnumValueOptions::uninterpreted_option_size() const {
11872   return uninterpreted_option_.size();
11873 }
clear_uninterpreted_option()11874 void EnumValueOptions::clear_uninterpreted_option() {
11875   uninterpreted_option_.Clear();
11876 }
uninterpreted_option(int index) const11877 const ::google::protobuf::UninterpretedOption& EnumValueOptions::uninterpreted_option(int index) const {
11878   // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.uninterpreted_option)
11879   return uninterpreted_option_.Get(index);
11880 }
mutable_uninterpreted_option(int index)11881 ::google::protobuf::UninterpretedOption* EnumValueOptions::mutable_uninterpreted_option(int index) {
11882   // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueOptions.uninterpreted_option)
11883   return uninterpreted_option_.Mutable(index);
11884 }
add_uninterpreted_option()11885 ::google::protobuf::UninterpretedOption* EnumValueOptions::add_uninterpreted_option() {
11886   // @@protoc_insertion_point(field_add:google.protobuf.EnumValueOptions.uninterpreted_option)
11887   return uninterpreted_option_.Add();
11888 }
11889 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
mutable_uninterpreted_option()11890 EnumValueOptions::mutable_uninterpreted_option() {
11891   // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValueOptions.uninterpreted_option)
11892   return &uninterpreted_option_;
11893 }
11894 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
uninterpreted_option() const11895 EnumValueOptions::uninterpreted_option() const {
11896   // @@protoc_insertion_point(field_list:google.protobuf.EnumValueOptions.uninterpreted_option)
11897   return uninterpreted_option_;
11898 }
11899 
11900 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
11901 
11902 // ===================================================================
11903 
11904 #if !defined(_MSC_VER) || _MSC_VER >= 1900
11905 const int ServiceOptions::kDeprecatedFieldNumber;
11906 const int ServiceOptions::kUninterpretedOptionFieldNumber;
11907 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
11908 
ServiceOptions()11909 ServiceOptions::ServiceOptions()
11910   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11911   SharedCtor();
11912   // @@protoc_insertion_point(constructor:google.protobuf.ServiceOptions)
11913 }
11914 
InitAsDefaultInstance()11915 void ServiceOptions::InitAsDefaultInstance() {
11916 }
11917 
ServiceOptions(const ServiceOptions & from)11918 ServiceOptions::ServiceOptions(const ServiceOptions& from)
11919   : ::google::protobuf::Message(),
11920     _internal_metadata_(NULL) {
11921   SharedCtor();
11922   MergeFrom(from);
11923   // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceOptions)
11924 }
11925 
SharedCtor()11926 void ServiceOptions::SharedCtor() {
11927   _cached_size_ = 0;
11928   deprecated_ = false;
11929   ::memset(_has_bits_, 0, sizeof(_has_bits_));
11930 }
11931 
~ServiceOptions()11932 ServiceOptions::~ServiceOptions() {
11933   // @@protoc_insertion_point(destructor:google.protobuf.ServiceOptions)
11934   SharedDtor();
11935 }
11936 
SharedDtor()11937 void ServiceOptions::SharedDtor() {
11938   if (this != default_instance_) {
11939   }
11940 }
11941 
SetCachedSize(int size) const11942 void ServiceOptions::SetCachedSize(int size) const {
11943   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11944   _cached_size_ = size;
11945   GOOGLE_SAFE_CONCURRENT_WRITES_END();
11946 }
descriptor()11947 const ::google::protobuf::Descriptor* ServiceOptions::descriptor() {
11948   protobuf_AssignDescriptorsOnce();
11949   return ServiceOptions_descriptor_;
11950 }
11951 
default_instance()11952 const ServiceOptions& ServiceOptions::default_instance() {
11953   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
11954   return *default_instance_;
11955 }
11956 
11957 ServiceOptions* ServiceOptions::default_instance_ = NULL;
11958 
New(::google::protobuf::Arena * arena) const11959 ServiceOptions* ServiceOptions::New(::google::protobuf::Arena* arena) const {
11960   ServiceOptions* n = new ServiceOptions;
11961   if (arena != NULL) {
11962     arena->Own(n);
11963   }
11964   return n;
11965 }
11966 
Clear()11967 void ServiceOptions::Clear() {
11968 // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceOptions)
11969   _extensions_.Clear();
11970   deprecated_ = false;
11971   uninterpreted_option_.Clear();
11972   ::memset(_has_bits_, 0, sizeof(_has_bits_));
11973   if (_internal_metadata_.have_unknown_fields()) {
11974     mutable_unknown_fields()->Clear();
11975   }
11976 }
11977 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)11978 bool ServiceOptions::MergePartialFromCodedStream(
11979     ::google::protobuf::io::CodedInputStream* input) {
11980 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
11981   ::google::protobuf::uint32 tag;
11982   // @@protoc_insertion_point(parse_start:google.protobuf.ServiceOptions)
11983   for (;;) {
11984     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
11985     tag = p.first;
11986     if (!p.second) goto handle_unusual;
11987     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11988       // optional bool deprecated = 33 [default = false];
11989       case 33: {
11990         if (tag == 264) {
11991           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11992                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
11993                  input, &deprecated_)));
11994           set_has_deprecated();
11995         } else {
11996           goto handle_unusual;
11997         }
11998         if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
11999         break;
12000       }
12001 
12002       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12003       case 999: {
12004         if (tag == 7994) {
12005          parse_uninterpreted_option:
12006           DO_(input->IncrementRecursionDepth());
12007          parse_loop_uninterpreted_option:
12008           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
12009                 input, add_uninterpreted_option()));
12010         } else {
12011           goto handle_unusual;
12012         }
12013         if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
12014         input->UnsafeDecrementRecursionDepth();
12015         if (input->ExpectAtEnd()) goto success;
12016         break;
12017       }
12018 
12019       default: {
12020       handle_unusual:
12021         if (tag == 0 ||
12022             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
12023             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
12024           goto success;
12025         }
12026         if ((8000u <= tag)) {
12027           DO_(_extensions_.ParseField(tag, input, default_instance_,
12028                                       mutable_unknown_fields()));
12029           continue;
12030         }
12031         DO_(::google::protobuf::internal::WireFormat::SkipField(
12032               input, tag, mutable_unknown_fields()));
12033         break;
12034       }
12035     }
12036   }
12037 success:
12038   // @@protoc_insertion_point(parse_success:google.protobuf.ServiceOptions)
12039   return true;
12040 failure:
12041   // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceOptions)
12042   return false;
12043 #undef DO_
12044 }
12045 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const12046 void ServiceOptions::SerializeWithCachedSizes(
12047     ::google::protobuf::io::CodedOutputStream* output) const {
12048   // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceOptions)
12049   // optional bool deprecated = 33 [default = false];
12050   if (has_deprecated()) {
12051     ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated(), output);
12052   }
12053 
12054   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12055   for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
12056     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12057       999, this->uninterpreted_option(i), output);
12058   }
12059 
12060   // Extension range [1000, 536870912)
12061   _extensions_.SerializeWithCachedSizes(
12062       1000, 536870912, output);
12063 
12064   if (_internal_metadata_.have_unknown_fields()) {
12065     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12066         unknown_fields(), output);
12067   }
12068   // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceOptions)
12069 }
12070 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const12071 ::google::protobuf::uint8* ServiceOptions::InternalSerializeWithCachedSizesToArray(
12072     bool deterministic, ::google::protobuf::uint8* target) const {
12073   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceOptions)
12074   // optional bool deprecated = 33 [default = false];
12075   if (has_deprecated()) {
12076     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target);
12077   }
12078 
12079   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12080   for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
12081     target = ::google::protobuf::internal::WireFormatLite::
12082       InternalWriteMessageNoVirtualToArray(
12083         999, this->uninterpreted_option(i), false, target);
12084   }
12085 
12086   // Extension range [1000, 536870912)
12087   target = _extensions_.InternalSerializeWithCachedSizesToArray(
12088       1000, 536870912, false, target);
12089 
12090   if (_internal_metadata_.have_unknown_fields()) {
12091     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
12092         unknown_fields(), target);
12093   }
12094   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceOptions)
12095   return target;
12096 }
12097 
ByteSize() const12098 int ServiceOptions::ByteSize() const {
12099 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceOptions)
12100   int total_size = 0;
12101 
12102   // optional bool deprecated = 33 [default = false];
12103   if (has_deprecated()) {
12104     total_size += 2 + 1;
12105   }
12106 
12107   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12108   total_size += 2 * this->uninterpreted_option_size();
12109   for (int i = 0; i < this->uninterpreted_option_size(); i++) {
12110     total_size +=
12111       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
12112         this->uninterpreted_option(i));
12113   }
12114 
12115   total_size += _extensions_.ByteSize();
12116 
12117   if (_internal_metadata_.have_unknown_fields()) {
12118     total_size +=
12119       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12120         unknown_fields());
12121   }
12122   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12123   _cached_size_ = total_size;
12124   GOOGLE_SAFE_CONCURRENT_WRITES_END();
12125   return total_size;
12126 }
12127 
MergeFrom(const::google::protobuf::Message & from)12128 void ServiceOptions::MergeFrom(const ::google::protobuf::Message& from) {
12129 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.ServiceOptions)
12130   if (GOOGLE_PREDICT_FALSE(&from == this)) {
12131     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
12132   }
12133   const ServiceOptions* source =
12134       ::google::protobuf::internal::DynamicCastToGenerated<const ServiceOptions>(
12135           &from);
12136   if (source == NULL) {
12137   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.ServiceOptions)
12138     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12139   } else {
12140   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.ServiceOptions)
12141     MergeFrom(*source);
12142   }
12143 }
12144 
MergeFrom(const ServiceOptions & from)12145 void ServiceOptions::MergeFrom(const ServiceOptions& from) {
12146 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.ServiceOptions)
12147   if (GOOGLE_PREDICT_FALSE(&from == this)) {
12148     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
12149   }
12150   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
12151   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
12152     if (from.has_deprecated()) {
12153       set_deprecated(from.deprecated());
12154     }
12155   }
12156   _extensions_.MergeFrom(from._extensions_);
12157   if (from._internal_metadata_.have_unknown_fields()) {
12158     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
12159   }
12160 }
12161 
CopyFrom(const::google::protobuf::Message & from)12162 void ServiceOptions::CopyFrom(const ::google::protobuf::Message& from) {
12163 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceOptions)
12164   if (&from == this) return;
12165   Clear();
12166   MergeFrom(from);
12167 }
12168 
CopyFrom(const ServiceOptions & from)12169 void ServiceOptions::CopyFrom(const ServiceOptions& from) {
12170 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.ServiceOptions)
12171   if (&from == this) return;
12172   Clear();
12173   MergeFrom(from);
12174 }
12175 
IsInitialized() const12176 bool ServiceOptions::IsInitialized() const {
12177 
12178   if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
12179 
12180   if (!_extensions_.IsInitialized()) return false;  return true;
12181 }
12182 
Swap(ServiceOptions * other)12183 void ServiceOptions::Swap(ServiceOptions* other) {
12184   if (other == this) return;
12185   InternalSwap(other);
12186 }
InternalSwap(ServiceOptions * other)12187 void ServiceOptions::InternalSwap(ServiceOptions* other) {
12188   std::swap(deprecated_, other->deprecated_);
12189   uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
12190   std::swap(_has_bits_[0], other->_has_bits_[0]);
12191   _internal_metadata_.Swap(&other->_internal_metadata_);
12192   std::swap(_cached_size_, other->_cached_size_);
12193   _extensions_.Swap(&other->_extensions_);
12194 }
12195 
GetMetadata() const12196 ::google::protobuf::Metadata ServiceOptions::GetMetadata() const {
12197   protobuf_AssignDescriptorsOnce();
12198   ::google::protobuf::Metadata metadata;
12199   metadata.descriptor = ServiceOptions_descriptor_;
12200   metadata.reflection = ServiceOptions_reflection_;
12201   return metadata;
12202 }
12203 
12204 #if PROTOBUF_INLINE_NOT_IN_HEADERS
12205 // ServiceOptions
12206 
12207 // optional bool deprecated = 33 [default = false];
has_deprecated() const12208 bool ServiceOptions::has_deprecated() const {
12209   return (_has_bits_[0] & 0x00000001u) != 0;
12210 }
set_has_deprecated()12211 void ServiceOptions::set_has_deprecated() {
12212   _has_bits_[0] |= 0x00000001u;
12213 }
clear_has_deprecated()12214 void ServiceOptions::clear_has_deprecated() {
12215   _has_bits_[0] &= ~0x00000001u;
12216 }
clear_deprecated()12217 void ServiceOptions::clear_deprecated() {
12218   deprecated_ = false;
12219   clear_has_deprecated();
12220 }
deprecated() const12221  bool ServiceOptions::deprecated() const {
12222   // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.deprecated)
12223   return deprecated_;
12224 }
set_deprecated(bool value)12225  void ServiceOptions::set_deprecated(bool value) {
12226   set_has_deprecated();
12227   deprecated_ = value;
12228   // @@protoc_insertion_point(field_set:google.protobuf.ServiceOptions.deprecated)
12229 }
12230 
12231 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
uninterpreted_option_size() const12232 int ServiceOptions::uninterpreted_option_size() const {
12233   return uninterpreted_option_.size();
12234 }
clear_uninterpreted_option()12235 void ServiceOptions::clear_uninterpreted_option() {
12236   uninterpreted_option_.Clear();
12237 }
uninterpreted_option(int index) const12238 const ::google::protobuf::UninterpretedOption& ServiceOptions::uninterpreted_option(int index) const {
12239   // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.uninterpreted_option)
12240   return uninterpreted_option_.Get(index);
12241 }
mutable_uninterpreted_option(int index)12242 ::google::protobuf::UninterpretedOption* ServiceOptions::mutable_uninterpreted_option(int index) {
12243   // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceOptions.uninterpreted_option)
12244   return uninterpreted_option_.Mutable(index);
12245 }
add_uninterpreted_option()12246 ::google::protobuf::UninterpretedOption* ServiceOptions::add_uninterpreted_option() {
12247   // @@protoc_insertion_point(field_add:google.protobuf.ServiceOptions.uninterpreted_option)
12248   return uninterpreted_option_.Add();
12249 }
12250 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
mutable_uninterpreted_option()12251 ServiceOptions::mutable_uninterpreted_option() {
12252   // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceOptions.uninterpreted_option)
12253   return &uninterpreted_option_;
12254 }
12255 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
uninterpreted_option() const12256 ServiceOptions::uninterpreted_option() const {
12257   // @@protoc_insertion_point(field_list:google.protobuf.ServiceOptions.uninterpreted_option)
12258   return uninterpreted_option_;
12259 }
12260 
12261 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
12262 
12263 // ===================================================================
12264 
12265 #if !defined(_MSC_VER) || _MSC_VER >= 1900
12266 const int MethodOptions::kDeprecatedFieldNumber;
12267 const int MethodOptions::kUninterpretedOptionFieldNumber;
12268 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
12269 
MethodOptions()12270 MethodOptions::MethodOptions()
12271   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12272   SharedCtor();
12273   // @@protoc_insertion_point(constructor:google.protobuf.MethodOptions)
12274 }
12275 
InitAsDefaultInstance()12276 void MethodOptions::InitAsDefaultInstance() {
12277 }
12278 
MethodOptions(const MethodOptions & from)12279 MethodOptions::MethodOptions(const MethodOptions& from)
12280   : ::google::protobuf::Message(),
12281     _internal_metadata_(NULL) {
12282   SharedCtor();
12283   MergeFrom(from);
12284   // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodOptions)
12285 }
12286 
SharedCtor()12287 void MethodOptions::SharedCtor() {
12288   _cached_size_ = 0;
12289   deprecated_ = false;
12290   ::memset(_has_bits_, 0, sizeof(_has_bits_));
12291 }
12292 
~MethodOptions()12293 MethodOptions::~MethodOptions() {
12294   // @@protoc_insertion_point(destructor:google.protobuf.MethodOptions)
12295   SharedDtor();
12296 }
12297 
SharedDtor()12298 void MethodOptions::SharedDtor() {
12299   if (this != default_instance_) {
12300   }
12301 }
12302 
SetCachedSize(int size) const12303 void MethodOptions::SetCachedSize(int size) const {
12304   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12305   _cached_size_ = size;
12306   GOOGLE_SAFE_CONCURRENT_WRITES_END();
12307 }
descriptor()12308 const ::google::protobuf::Descriptor* MethodOptions::descriptor() {
12309   protobuf_AssignDescriptorsOnce();
12310   return MethodOptions_descriptor_;
12311 }
12312 
default_instance()12313 const MethodOptions& MethodOptions::default_instance() {
12314   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
12315   return *default_instance_;
12316 }
12317 
12318 MethodOptions* MethodOptions::default_instance_ = NULL;
12319 
New(::google::protobuf::Arena * arena) const12320 MethodOptions* MethodOptions::New(::google::protobuf::Arena* arena) const {
12321   MethodOptions* n = new MethodOptions;
12322   if (arena != NULL) {
12323     arena->Own(n);
12324   }
12325   return n;
12326 }
12327 
Clear()12328 void MethodOptions::Clear() {
12329 // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodOptions)
12330   _extensions_.Clear();
12331   deprecated_ = false;
12332   uninterpreted_option_.Clear();
12333   ::memset(_has_bits_, 0, sizeof(_has_bits_));
12334   if (_internal_metadata_.have_unknown_fields()) {
12335     mutable_unknown_fields()->Clear();
12336   }
12337 }
12338 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)12339 bool MethodOptions::MergePartialFromCodedStream(
12340     ::google::protobuf::io::CodedInputStream* input) {
12341 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
12342   ::google::protobuf::uint32 tag;
12343   // @@protoc_insertion_point(parse_start:google.protobuf.MethodOptions)
12344   for (;;) {
12345     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
12346     tag = p.first;
12347     if (!p.second) goto handle_unusual;
12348     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12349       // optional bool deprecated = 33 [default = false];
12350       case 33: {
12351         if (tag == 264) {
12352           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12353                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
12354                  input, &deprecated_)));
12355           set_has_deprecated();
12356         } else {
12357           goto handle_unusual;
12358         }
12359         if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
12360         break;
12361       }
12362 
12363       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12364       case 999: {
12365         if (tag == 7994) {
12366          parse_uninterpreted_option:
12367           DO_(input->IncrementRecursionDepth());
12368          parse_loop_uninterpreted_option:
12369           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
12370                 input, add_uninterpreted_option()));
12371         } else {
12372           goto handle_unusual;
12373         }
12374         if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
12375         input->UnsafeDecrementRecursionDepth();
12376         if (input->ExpectAtEnd()) goto success;
12377         break;
12378       }
12379 
12380       default: {
12381       handle_unusual:
12382         if (tag == 0 ||
12383             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
12384             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
12385           goto success;
12386         }
12387         if ((8000u <= tag)) {
12388           DO_(_extensions_.ParseField(tag, input, default_instance_,
12389                                       mutable_unknown_fields()));
12390           continue;
12391         }
12392         DO_(::google::protobuf::internal::WireFormat::SkipField(
12393               input, tag, mutable_unknown_fields()));
12394         break;
12395       }
12396     }
12397   }
12398 success:
12399   // @@protoc_insertion_point(parse_success:google.protobuf.MethodOptions)
12400   return true;
12401 failure:
12402   // @@protoc_insertion_point(parse_failure:google.protobuf.MethodOptions)
12403   return false;
12404 #undef DO_
12405 }
12406 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const12407 void MethodOptions::SerializeWithCachedSizes(
12408     ::google::protobuf::io::CodedOutputStream* output) const {
12409   // @@protoc_insertion_point(serialize_start:google.protobuf.MethodOptions)
12410   // optional bool deprecated = 33 [default = false];
12411   if (has_deprecated()) {
12412     ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated(), output);
12413   }
12414 
12415   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12416   for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
12417     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12418       999, this->uninterpreted_option(i), output);
12419   }
12420 
12421   // Extension range [1000, 536870912)
12422   _extensions_.SerializeWithCachedSizes(
12423       1000, 536870912, output);
12424 
12425   if (_internal_metadata_.have_unknown_fields()) {
12426     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12427         unknown_fields(), output);
12428   }
12429   // @@protoc_insertion_point(serialize_end:google.protobuf.MethodOptions)
12430 }
12431 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const12432 ::google::protobuf::uint8* MethodOptions::InternalSerializeWithCachedSizesToArray(
12433     bool deterministic, ::google::protobuf::uint8* target) const {
12434   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodOptions)
12435   // optional bool deprecated = 33 [default = false];
12436   if (has_deprecated()) {
12437     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target);
12438   }
12439 
12440   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12441   for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
12442     target = ::google::protobuf::internal::WireFormatLite::
12443       InternalWriteMessageNoVirtualToArray(
12444         999, this->uninterpreted_option(i), false, target);
12445   }
12446 
12447   // Extension range [1000, 536870912)
12448   target = _extensions_.InternalSerializeWithCachedSizesToArray(
12449       1000, 536870912, false, target);
12450 
12451   if (_internal_metadata_.have_unknown_fields()) {
12452     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
12453         unknown_fields(), target);
12454   }
12455   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodOptions)
12456   return target;
12457 }
12458 
ByteSize() const12459 int MethodOptions::ByteSize() const {
12460 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodOptions)
12461   int total_size = 0;
12462 
12463   // optional bool deprecated = 33 [default = false];
12464   if (has_deprecated()) {
12465     total_size += 2 + 1;
12466   }
12467 
12468   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12469   total_size += 2 * this->uninterpreted_option_size();
12470   for (int i = 0; i < this->uninterpreted_option_size(); i++) {
12471     total_size +=
12472       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
12473         this->uninterpreted_option(i));
12474   }
12475 
12476   total_size += _extensions_.ByteSize();
12477 
12478   if (_internal_metadata_.have_unknown_fields()) {
12479     total_size +=
12480       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12481         unknown_fields());
12482   }
12483   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12484   _cached_size_ = total_size;
12485   GOOGLE_SAFE_CONCURRENT_WRITES_END();
12486   return total_size;
12487 }
12488 
MergeFrom(const::google::protobuf::Message & from)12489 void MethodOptions::MergeFrom(const ::google::protobuf::Message& from) {
12490 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodOptions)
12491   if (GOOGLE_PREDICT_FALSE(&from == this)) {
12492     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
12493   }
12494   const MethodOptions* source =
12495       ::google::protobuf::internal::DynamicCastToGenerated<const MethodOptions>(
12496           &from);
12497   if (source == NULL) {
12498   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.MethodOptions)
12499     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12500   } else {
12501   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.MethodOptions)
12502     MergeFrom(*source);
12503   }
12504 }
12505 
MergeFrom(const MethodOptions & from)12506 void MethodOptions::MergeFrom(const MethodOptions& from) {
12507 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.MethodOptions)
12508   if (GOOGLE_PREDICT_FALSE(&from == this)) {
12509     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
12510   }
12511   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
12512   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
12513     if (from.has_deprecated()) {
12514       set_deprecated(from.deprecated());
12515     }
12516   }
12517   _extensions_.MergeFrom(from._extensions_);
12518   if (from._internal_metadata_.have_unknown_fields()) {
12519     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
12520   }
12521 }
12522 
CopyFrom(const::google::protobuf::Message & from)12523 void MethodOptions::CopyFrom(const ::google::protobuf::Message& from) {
12524 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodOptions)
12525   if (&from == this) return;
12526   Clear();
12527   MergeFrom(from);
12528 }
12529 
CopyFrom(const MethodOptions & from)12530 void MethodOptions::CopyFrom(const MethodOptions& from) {
12531 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.MethodOptions)
12532   if (&from == this) return;
12533   Clear();
12534   MergeFrom(from);
12535 }
12536 
IsInitialized() const12537 bool MethodOptions::IsInitialized() const {
12538 
12539   if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
12540 
12541   if (!_extensions_.IsInitialized()) return false;  return true;
12542 }
12543 
Swap(MethodOptions * other)12544 void MethodOptions::Swap(MethodOptions* other) {
12545   if (other == this) return;
12546   InternalSwap(other);
12547 }
InternalSwap(MethodOptions * other)12548 void MethodOptions::InternalSwap(MethodOptions* other) {
12549   std::swap(deprecated_, other->deprecated_);
12550   uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
12551   std::swap(_has_bits_[0], other->_has_bits_[0]);
12552   _internal_metadata_.Swap(&other->_internal_metadata_);
12553   std::swap(_cached_size_, other->_cached_size_);
12554   _extensions_.Swap(&other->_extensions_);
12555 }
12556 
GetMetadata() const12557 ::google::protobuf::Metadata MethodOptions::GetMetadata() const {
12558   protobuf_AssignDescriptorsOnce();
12559   ::google::protobuf::Metadata metadata;
12560   metadata.descriptor = MethodOptions_descriptor_;
12561   metadata.reflection = MethodOptions_reflection_;
12562   return metadata;
12563 }
12564 
12565 #if PROTOBUF_INLINE_NOT_IN_HEADERS
12566 // MethodOptions
12567 
12568 // optional bool deprecated = 33 [default = false];
has_deprecated() const12569 bool MethodOptions::has_deprecated() const {
12570   return (_has_bits_[0] & 0x00000001u) != 0;
12571 }
set_has_deprecated()12572 void MethodOptions::set_has_deprecated() {
12573   _has_bits_[0] |= 0x00000001u;
12574 }
clear_has_deprecated()12575 void MethodOptions::clear_has_deprecated() {
12576   _has_bits_[0] &= ~0x00000001u;
12577 }
clear_deprecated()12578 void MethodOptions::clear_deprecated() {
12579   deprecated_ = false;
12580   clear_has_deprecated();
12581 }
deprecated() const12582  bool MethodOptions::deprecated() const {
12583   // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.deprecated)
12584   return deprecated_;
12585 }
set_deprecated(bool value)12586  void MethodOptions::set_deprecated(bool value) {
12587   set_has_deprecated();
12588   deprecated_ = value;
12589   // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.deprecated)
12590 }
12591 
12592 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
uninterpreted_option_size() const12593 int MethodOptions::uninterpreted_option_size() const {
12594   return uninterpreted_option_.size();
12595 }
clear_uninterpreted_option()12596 void MethodOptions::clear_uninterpreted_option() {
12597   uninterpreted_option_.Clear();
12598 }
uninterpreted_option(int index) const12599 const ::google::protobuf::UninterpretedOption& MethodOptions::uninterpreted_option(int index) const {
12600   // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.uninterpreted_option)
12601   return uninterpreted_option_.Get(index);
12602 }
mutable_uninterpreted_option(int index)12603 ::google::protobuf::UninterpretedOption* MethodOptions::mutable_uninterpreted_option(int index) {
12604   // @@protoc_insertion_point(field_mutable:google.protobuf.MethodOptions.uninterpreted_option)
12605   return uninterpreted_option_.Mutable(index);
12606 }
add_uninterpreted_option()12607 ::google::protobuf::UninterpretedOption* MethodOptions::add_uninterpreted_option() {
12608   // @@protoc_insertion_point(field_add:google.protobuf.MethodOptions.uninterpreted_option)
12609   return uninterpreted_option_.Add();
12610 }
12611 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
mutable_uninterpreted_option()12612 MethodOptions::mutable_uninterpreted_option() {
12613   // @@protoc_insertion_point(field_mutable_list:google.protobuf.MethodOptions.uninterpreted_option)
12614   return &uninterpreted_option_;
12615 }
12616 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
uninterpreted_option() const12617 MethodOptions::uninterpreted_option() const {
12618   // @@protoc_insertion_point(field_list:google.protobuf.MethodOptions.uninterpreted_option)
12619   return uninterpreted_option_;
12620 }
12621 
12622 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
12623 
12624 // ===================================================================
12625 
12626 #if !defined(_MSC_VER) || _MSC_VER >= 1900
12627 const int UninterpretedOption_NamePart::kNamePartFieldNumber;
12628 const int UninterpretedOption_NamePart::kIsExtensionFieldNumber;
12629 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
12630 
UninterpretedOption_NamePart()12631 UninterpretedOption_NamePart::UninterpretedOption_NamePart()
12632   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12633   SharedCtor();
12634   // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption.NamePart)
12635 }
12636 
InitAsDefaultInstance()12637 void UninterpretedOption_NamePart::InitAsDefaultInstance() {
12638 }
12639 
UninterpretedOption_NamePart(const UninterpretedOption_NamePart & from)12640 UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from)
12641   : ::google::protobuf::Message(),
12642     _internal_metadata_(NULL) {
12643   SharedCtor();
12644   MergeFrom(from);
12645   // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOption.NamePart)
12646 }
12647 
SharedCtor()12648 void UninterpretedOption_NamePart::SharedCtor() {
12649   ::google::protobuf::internal::GetEmptyString();
12650   _cached_size_ = 0;
12651   name_part_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12652   is_extension_ = false;
12653   ::memset(_has_bits_, 0, sizeof(_has_bits_));
12654 }
12655 
~UninterpretedOption_NamePart()12656 UninterpretedOption_NamePart::~UninterpretedOption_NamePart() {
12657   // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption.NamePart)
12658   SharedDtor();
12659 }
12660 
SharedDtor()12661 void UninterpretedOption_NamePart::SharedDtor() {
12662   name_part_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12663   if (this != default_instance_) {
12664   }
12665 }
12666 
SetCachedSize(int size) const12667 void UninterpretedOption_NamePart::SetCachedSize(int size) const {
12668   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12669   _cached_size_ = size;
12670   GOOGLE_SAFE_CONCURRENT_WRITES_END();
12671 }
descriptor()12672 const ::google::protobuf::Descriptor* UninterpretedOption_NamePart::descriptor() {
12673   protobuf_AssignDescriptorsOnce();
12674   return UninterpretedOption_NamePart_descriptor_;
12675 }
12676 
default_instance()12677 const UninterpretedOption_NamePart& UninterpretedOption_NamePart::default_instance() {
12678   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
12679   return *default_instance_;
12680 }
12681 
12682 UninterpretedOption_NamePart* UninterpretedOption_NamePart::default_instance_ = NULL;
12683 
New(::google::protobuf::Arena * arena) const12684 UninterpretedOption_NamePart* UninterpretedOption_NamePart::New(::google::protobuf::Arena* arena) const {
12685   UninterpretedOption_NamePart* n = new UninterpretedOption_NamePart;
12686   if (arena != NULL) {
12687     arena->Own(n);
12688   }
12689   return n;
12690 }
12691 
Clear()12692 void UninterpretedOption_NamePart::Clear() {
12693 // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOption.NamePart)
12694   if (_has_bits_[0 / 32] & 3u) {
12695     if (has_name_part()) {
12696       name_part_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12697     }
12698     is_extension_ = false;
12699   }
12700   ::memset(_has_bits_, 0, sizeof(_has_bits_));
12701   if (_internal_metadata_.have_unknown_fields()) {
12702     mutable_unknown_fields()->Clear();
12703   }
12704 }
12705 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)12706 bool UninterpretedOption_NamePart::MergePartialFromCodedStream(
12707     ::google::protobuf::io::CodedInputStream* input) {
12708 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
12709   ::google::protobuf::uint32 tag;
12710   // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption.NamePart)
12711   for (;;) {
12712     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
12713     tag = p.first;
12714     if (!p.second) goto handle_unusual;
12715     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12716       // required string name_part = 1;
12717       case 1: {
12718         if (tag == 10) {
12719           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
12720                 input, this->mutable_name_part()));
12721           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12722             this->name_part().data(), this->name_part().length(),
12723             ::google::protobuf::internal::WireFormat::PARSE,
12724             "google.protobuf.UninterpretedOption.NamePart.name_part");
12725         } else {
12726           goto handle_unusual;
12727         }
12728         if (input->ExpectTag(16)) goto parse_is_extension;
12729         break;
12730       }
12731 
12732       // required bool is_extension = 2;
12733       case 2: {
12734         if (tag == 16) {
12735          parse_is_extension:
12736           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12737                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
12738                  input, &is_extension_)));
12739           set_has_is_extension();
12740         } else {
12741           goto handle_unusual;
12742         }
12743         if (input->ExpectAtEnd()) goto success;
12744         break;
12745       }
12746 
12747       default: {
12748       handle_unusual:
12749         if (tag == 0 ||
12750             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
12751             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
12752           goto success;
12753         }
12754         DO_(::google::protobuf::internal::WireFormat::SkipField(
12755               input, tag, mutable_unknown_fields()));
12756         break;
12757       }
12758     }
12759   }
12760 success:
12761   // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption.NamePart)
12762   return true;
12763 failure:
12764   // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption.NamePart)
12765   return false;
12766 #undef DO_
12767 }
12768 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const12769 void UninterpretedOption_NamePart::SerializeWithCachedSizes(
12770     ::google::protobuf::io::CodedOutputStream* output) const {
12771   // @@protoc_insertion_point(serialize_start:google.protobuf.UninterpretedOption.NamePart)
12772   // required string name_part = 1;
12773   if (has_name_part()) {
12774     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12775       this->name_part().data(), this->name_part().length(),
12776       ::google::protobuf::internal::WireFormat::SERIALIZE,
12777       "google.protobuf.UninterpretedOption.NamePart.name_part");
12778     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
12779       1, this->name_part(), output);
12780   }
12781 
12782   // required bool is_extension = 2;
12783   if (has_is_extension()) {
12784     ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_extension(), output);
12785   }
12786 
12787   if (_internal_metadata_.have_unknown_fields()) {
12788     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12789         unknown_fields(), output);
12790   }
12791   // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption.NamePart)
12792 }
12793 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const12794 ::google::protobuf::uint8* UninterpretedOption_NamePart::InternalSerializeWithCachedSizesToArray(
12795     bool deterministic, ::google::protobuf::uint8* target) const {
12796   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption.NamePart)
12797   // required string name_part = 1;
12798   if (has_name_part()) {
12799     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12800       this->name_part().data(), this->name_part().length(),
12801       ::google::protobuf::internal::WireFormat::SERIALIZE,
12802       "google.protobuf.UninterpretedOption.NamePart.name_part");
12803     target =
12804       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
12805         1, this->name_part(), target);
12806   }
12807 
12808   // required bool is_extension = 2;
12809   if (has_is_extension()) {
12810     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_extension(), target);
12811   }
12812 
12813   if (_internal_metadata_.have_unknown_fields()) {
12814     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
12815         unknown_fields(), target);
12816   }
12817   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UninterpretedOption.NamePart)
12818   return target;
12819 }
12820 
RequiredFieldsByteSizeFallback() const12821 int UninterpretedOption_NamePart::RequiredFieldsByteSizeFallback() const {
12822 // @@protoc_insertion_point(required_fields_byte_size_fallback_start:google.protobuf.UninterpretedOption.NamePart)
12823   int total_size = 0;
12824 
12825   if (has_name_part()) {
12826     // required string name_part = 1;
12827     total_size += 1 +
12828       ::google::protobuf::internal::WireFormatLite::StringSize(
12829         this->name_part());
12830   }
12831 
12832   if (has_is_extension()) {
12833     // required bool is_extension = 2;
12834     total_size += 1 + 1;
12835   }
12836 
12837   return total_size;
12838 }
ByteSize() const12839 int UninterpretedOption_NamePart::ByteSize() const {
12840 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.UninterpretedOption.NamePart)
12841   int total_size = 0;
12842 
12843   if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) {  // All required fields are present.
12844     // required string name_part = 1;
12845     total_size += 1 +
12846       ::google::protobuf::internal::WireFormatLite::StringSize(
12847         this->name_part());
12848 
12849     // required bool is_extension = 2;
12850     total_size += 1 + 1;
12851 
12852   } else {
12853     total_size += RequiredFieldsByteSizeFallback();
12854   }
12855   if (_internal_metadata_.have_unknown_fields()) {
12856     total_size +=
12857       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12858         unknown_fields());
12859   }
12860   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12861   _cached_size_ = total_size;
12862   GOOGLE_SAFE_CONCURRENT_WRITES_END();
12863   return total_size;
12864 }
12865 
MergeFrom(const::google::protobuf::Message & from)12866 void UninterpretedOption_NamePart::MergeFrom(const ::google::protobuf::Message& from) {
12867 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.UninterpretedOption.NamePart)
12868   if (GOOGLE_PREDICT_FALSE(&from == this)) {
12869     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
12870   }
12871   const UninterpretedOption_NamePart* source =
12872       ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOption_NamePart>(
12873           &from);
12874   if (source == NULL) {
12875   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.UninterpretedOption.NamePart)
12876     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12877   } else {
12878   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.UninterpretedOption.NamePart)
12879     MergeFrom(*source);
12880   }
12881 }
12882 
MergeFrom(const UninterpretedOption_NamePart & from)12883 void UninterpretedOption_NamePart::MergeFrom(const UninterpretedOption_NamePart& from) {
12884 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UninterpretedOption.NamePart)
12885   if (GOOGLE_PREDICT_FALSE(&from == this)) {
12886     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
12887   }
12888   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
12889     if (from.has_name_part()) {
12890       set_has_name_part();
12891       name_part_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_part_);
12892     }
12893     if (from.has_is_extension()) {
12894       set_is_extension(from.is_extension());
12895     }
12896   }
12897   if (from._internal_metadata_.have_unknown_fields()) {
12898     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
12899   }
12900 }
12901 
CopyFrom(const::google::protobuf::Message & from)12902 void UninterpretedOption_NamePart::CopyFrom(const ::google::protobuf::Message& from) {
12903 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.UninterpretedOption.NamePart)
12904   if (&from == this) return;
12905   Clear();
12906   MergeFrom(from);
12907 }
12908 
CopyFrom(const UninterpretedOption_NamePart & from)12909 void UninterpretedOption_NamePart::CopyFrom(const UninterpretedOption_NamePart& from) {
12910 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.UninterpretedOption.NamePart)
12911   if (&from == this) return;
12912   Clear();
12913   MergeFrom(from);
12914 }
12915 
IsInitialized() const12916 bool UninterpretedOption_NamePart::IsInitialized() const {
12917   if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
12918 
12919   return true;
12920 }
12921 
Swap(UninterpretedOption_NamePart * other)12922 void UninterpretedOption_NamePart::Swap(UninterpretedOption_NamePart* other) {
12923   if (other == this) return;
12924   InternalSwap(other);
12925 }
InternalSwap(UninterpretedOption_NamePart * other)12926 void UninterpretedOption_NamePart::InternalSwap(UninterpretedOption_NamePart* other) {
12927   name_part_.Swap(&other->name_part_);
12928   std::swap(is_extension_, other->is_extension_);
12929   std::swap(_has_bits_[0], other->_has_bits_[0]);
12930   _internal_metadata_.Swap(&other->_internal_metadata_);
12931   std::swap(_cached_size_, other->_cached_size_);
12932 }
12933 
GetMetadata() const12934 ::google::protobuf::Metadata UninterpretedOption_NamePart::GetMetadata() const {
12935   protobuf_AssignDescriptorsOnce();
12936   ::google::protobuf::Metadata metadata;
12937   metadata.descriptor = UninterpretedOption_NamePart_descriptor_;
12938   metadata.reflection = UninterpretedOption_NamePart_reflection_;
12939   return metadata;
12940 }
12941 
12942 
12943 // -------------------------------------------------------------------
12944 
12945 #if !defined(_MSC_VER) || _MSC_VER >= 1900
12946 const int UninterpretedOption::kNameFieldNumber;
12947 const int UninterpretedOption::kIdentifierValueFieldNumber;
12948 const int UninterpretedOption::kPositiveIntValueFieldNumber;
12949 const int UninterpretedOption::kNegativeIntValueFieldNumber;
12950 const int UninterpretedOption::kDoubleValueFieldNumber;
12951 const int UninterpretedOption::kStringValueFieldNumber;
12952 const int UninterpretedOption::kAggregateValueFieldNumber;
12953 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
12954 
UninterpretedOption()12955 UninterpretedOption::UninterpretedOption()
12956   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12957   SharedCtor();
12958   // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption)
12959 }
12960 
InitAsDefaultInstance()12961 void UninterpretedOption::InitAsDefaultInstance() {
12962 }
12963 
UninterpretedOption(const UninterpretedOption & from)12964 UninterpretedOption::UninterpretedOption(const UninterpretedOption& from)
12965   : ::google::protobuf::Message(),
12966     _internal_metadata_(NULL) {
12967   SharedCtor();
12968   MergeFrom(from);
12969   // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOption)
12970 }
12971 
SharedCtor()12972 void UninterpretedOption::SharedCtor() {
12973   ::google::protobuf::internal::GetEmptyString();
12974   _cached_size_ = 0;
12975   identifier_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12976   positive_int_value_ = GOOGLE_ULONGLONG(0);
12977   negative_int_value_ = GOOGLE_LONGLONG(0);
12978   double_value_ = 0;
12979   string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12980   aggregate_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12981   ::memset(_has_bits_, 0, sizeof(_has_bits_));
12982 }
12983 
~UninterpretedOption()12984 UninterpretedOption::~UninterpretedOption() {
12985   // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption)
12986   SharedDtor();
12987 }
12988 
SharedDtor()12989 void UninterpretedOption::SharedDtor() {
12990   identifier_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12991   string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12992   aggregate_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12993   if (this != default_instance_) {
12994   }
12995 }
12996 
SetCachedSize(int size) const12997 void UninterpretedOption::SetCachedSize(int size) const {
12998   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12999   _cached_size_ = size;
13000   GOOGLE_SAFE_CONCURRENT_WRITES_END();
13001 }
descriptor()13002 const ::google::protobuf::Descriptor* UninterpretedOption::descriptor() {
13003   protobuf_AssignDescriptorsOnce();
13004   return UninterpretedOption_descriptor_;
13005 }
13006 
default_instance()13007 const UninterpretedOption& UninterpretedOption::default_instance() {
13008   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
13009   return *default_instance_;
13010 }
13011 
13012 UninterpretedOption* UninterpretedOption::default_instance_ = NULL;
13013 
New(::google::protobuf::Arena * arena) const13014 UninterpretedOption* UninterpretedOption::New(::google::protobuf::Arena* arena) const {
13015   UninterpretedOption* n = new UninterpretedOption;
13016   if (arena != NULL) {
13017     arena->Own(n);
13018   }
13019   return n;
13020 }
13021 
Clear()13022 void UninterpretedOption::Clear() {
13023 // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOption)
13024 #if defined(__clang__)
13025 #define ZR_HELPER_(f) \
13026   _Pragma("clang diagnostic push") \
13027   _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
13028   __builtin_offsetof(UninterpretedOption, f) \
13029   _Pragma("clang diagnostic pop")
13030 #else
13031 #define ZR_HELPER_(f) reinterpret_cast<char*>(\
13032   &reinterpret_cast<UninterpretedOption*>(16)->f)
13033 #endif
13034 
13035 #define ZR_(first, last) do {\
13036   ::memset(&first, 0,\
13037            ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
13038 } while (0)
13039 
13040   if (_has_bits_[0 / 32] & 126u) {
13041     ZR_(positive_int_value_, double_value_);
13042     if (has_identifier_value()) {
13043       identifier_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13044     }
13045     if (has_string_value()) {
13046       string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13047     }
13048     if (has_aggregate_value()) {
13049       aggregate_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13050     }
13051   }
13052 
13053 #undef ZR_HELPER_
13054 #undef ZR_
13055 
13056   name_.Clear();
13057   ::memset(_has_bits_, 0, sizeof(_has_bits_));
13058   if (_internal_metadata_.have_unknown_fields()) {
13059     mutable_unknown_fields()->Clear();
13060   }
13061 }
13062 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)13063 bool UninterpretedOption::MergePartialFromCodedStream(
13064     ::google::protobuf::io::CodedInputStream* input) {
13065 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
13066   ::google::protobuf::uint32 tag;
13067   // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption)
13068   for (;;) {
13069     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
13070     tag = p.first;
13071     if (!p.second) goto handle_unusual;
13072     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
13073       // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
13074       case 2: {
13075         if (tag == 18) {
13076           DO_(input->IncrementRecursionDepth());
13077          parse_loop_name:
13078           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
13079                 input, add_name()));
13080         } else {
13081           goto handle_unusual;
13082         }
13083         if (input->ExpectTag(18)) goto parse_loop_name;
13084         input->UnsafeDecrementRecursionDepth();
13085         if (input->ExpectTag(26)) goto parse_identifier_value;
13086         break;
13087       }
13088 
13089       // optional string identifier_value = 3;
13090       case 3: {
13091         if (tag == 26) {
13092          parse_identifier_value:
13093           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13094                 input, this->mutable_identifier_value()));
13095           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13096             this->identifier_value().data(), this->identifier_value().length(),
13097             ::google::protobuf::internal::WireFormat::PARSE,
13098             "google.protobuf.UninterpretedOption.identifier_value");
13099         } else {
13100           goto handle_unusual;
13101         }
13102         if (input->ExpectTag(32)) goto parse_positive_int_value;
13103         break;
13104       }
13105 
13106       // optional uint64 positive_int_value = 4;
13107       case 4: {
13108         if (tag == 32) {
13109          parse_positive_int_value:
13110           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
13111                    ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
13112                  input, &positive_int_value_)));
13113           set_has_positive_int_value();
13114         } else {
13115           goto handle_unusual;
13116         }
13117         if (input->ExpectTag(40)) goto parse_negative_int_value;
13118         break;
13119       }
13120 
13121       // optional int64 negative_int_value = 5;
13122       case 5: {
13123         if (tag == 40) {
13124          parse_negative_int_value:
13125           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
13126                    ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
13127                  input, &negative_int_value_)));
13128           set_has_negative_int_value();
13129         } else {
13130           goto handle_unusual;
13131         }
13132         if (input->ExpectTag(49)) goto parse_double_value;
13133         break;
13134       }
13135 
13136       // optional double double_value = 6;
13137       case 6: {
13138         if (tag == 49) {
13139          parse_double_value:
13140           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
13141                    double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
13142                  input, &double_value_)));
13143           set_has_double_value();
13144         } else {
13145           goto handle_unusual;
13146         }
13147         if (input->ExpectTag(58)) goto parse_string_value;
13148         break;
13149       }
13150 
13151       // optional bytes string_value = 7;
13152       case 7: {
13153         if (tag == 58) {
13154          parse_string_value:
13155           DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
13156                 input, this->mutable_string_value()));
13157         } else {
13158           goto handle_unusual;
13159         }
13160         if (input->ExpectTag(66)) goto parse_aggregate_value;
13161         break;
13162       }
13163 
13164       // optional string aggregate_value = 8;
13165       case 8: {
13166         if (tag == 66) {
13167          parse_aggregate_value:
13168           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13169                 input, this->mutable_aggregate_value()));
13170           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13171             this->aggregate_value().data(), this->aggregate_value().length(),
13172             ::google::protobuf::internal::WireFormat::PARSE,
13173             "google.protobuf.UninterpretedOption.aggregate_value");
13174         } else {
13175           goto handle_unusual;
13176         }
13177         if (input->ExpectAtEnd()) goto success;
13178         break;
13179       }
13180 
13181       default: {
13182       handle_unusual:
13183         if (tag == 0 ||
13184             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
13185             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
13186           goto success;
13187         }
13188         DO_(::google::protobuf::internal::WireFormat::SkipField(
13189               input, tag, mutable_unknown_fields()));
13190         break;
13191       }
13192     }
13193   }
13194 success:
13195   // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption)
13196   return true;
13197 failure:
13198   // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption)
13199   return false;
13200 #undef DO_
13201 }
13202 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const13203 void UninterpretedOption::SerializeWithCachedSizes(
13204     ::google::protobuf::io::CodedOutputStream* output) const {
13205   // @@protoc_insertion_point(serialize_start:google.protobuf.UninterpretedOption)
13206   // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
13207   for (unsigned int i = 0, n = this->name_size(); i < n; i++) {
13208     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13209       2, this->name(i), output);
13210   }
13211 
13212   // optional string identifier_value = 3;
13213   if (has_identifier_value()) {
13214     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13215       this->identifier_value().data(), this->identifier_value().length(),
13216       ::google::protobuf::internal::WireFormat::SERIALIZE,
13217       "google.protobuf.UninterpretedOption.identifier_value");
13218     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
13219       3, this->identifier_value(), output);
13220   }
13221 
13222   // optional uint64 positive_int_value = 4;
13223   if (has_positive_int_value()) {
13224     ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->positive_int_value(), output);
13225   }
13226 
13227   // optional int64 negative_int_value = 5;
13228   if (has_negative_int_value()) {
13229     ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->negative_int_value(), output);
13230   }
13231 
13232   // optional double double_value = 6;
13233   if (has_double_value()) {
13234     ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->double_value(), output);
13235   }
13236 
13237   // optional bytes string_value = 7;
13238   if (has_string_value()) {
13239     ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
13240       7, this->string_value(), output);
13241   }
13242 
13243   // optional string aggregate_value = 8;
13244   if (has_aggregate_value()) {
13245     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13246       this->aggregate_value().data(), this->aggregate_value().length(),
13247       ::google::protobuf::internal::WireFormat::SERIALIZE,
13248       "google.protobuf.UninterpretedOption.aggregate_value");
13249     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
13250       8, this->aggregate_value(), output);
13251   }
13252 
13253   if (_internal_metadata_.have_unknown_fields()) {
13254     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
13255         unknown_fields(), output);
13256   }
13257   // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption)
13258 }
13259 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const13260 ::google::protobuf::uint8* UninterpretedOption::InternalSerializeWithCachedSizesToArray(
13261     bool deterministic, ::google::protobuf::uint8* target) const {
13262   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption)
13263   // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
13264   for (unsigned int i = 0, n = this->name_size(); i < n; i++) {
13265     target = ::google::protobuf::internal::WireFormatLite::
13266       InternalWriteMessageNoVirtualToArray(
13267         2, this->name(i), false, target);
13268   }
13269 
13270   // optional string identifier_value = 3;
13271   if (has_identifier_value()) {
13272     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13273       this->identifier_value().data(), this->identifier_value().length(),
13274       ::google::protobuf::internal::WireFormat::SERIALIZE,
13275       "google.protobuf.UninterpretedOption.identifier_value");
13276     target =
13277       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
13278         3, this->identifier_value(), target);
13279   }
13280 
13281   // optional uint64 positive_int_value = 4;
13282   if (has_positive_int_value()) {
13283     target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->positive_int_value(), target);
13284   }
13285 
13286   // optional int64 negative_int_value = 5;
13287   if (has_negative_int_value()) {
13288     target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->negative_int_value(), target);
13289   }
13290 
13291   // optional double double_value = 6;
13292   if (has_double_value()) {
13293     target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->double_value(), target);
13294   }
13295 
13296   // optional bytes string_value = 7;
13297   if (has_string_value()) {
13298     target =
13299       ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
13300         7, this->string_value(), target);
13301   }
13302 
13303   // optional string aggregate_value = 8;
13304   if (has_aggregate_value()) {
13305     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13306       this->aggregate_value().data(), this->aggregate_value().length(),
13307       ::google::protobuf::internal::WireFormat::SERIALIZE,
13308       "google.protobuf.UninterpretedOption.aggregate_value");
13309     target =
13310       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
13311         8, this->aggregate_value(), target);
13312   }
13313 
13314   if (_internal_metadata_.have_unknown_fields()) {
13315     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
13316         unknown_fields(), target);
13317   }
13318   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UninterpretedOption)
13319   return target;
13320 }
13321 
ByteSize() const13322 int UninterpretedOption::ByteSize() const {
13323 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.UninterpretedOption)
13324   int total_size = 0;
13325 
13326   if (_has_bits_[1 / 32] & 126u) {
13327     // optional string identifier_value = 3;
13328     if (has_identifier_value()) {
13329       total_size += 1 +
13330         ::google::protobuf::internal::WireFormatLite::StringSize(
13331           this->identifier_value());
13332     }
13333 
13334     // optional uint64 positive_int_value = 4;
13335     if (has_positive_int_value()) {
13336       total_size += 1 +
13337         ::google::protobuf::internal::WireFormatLite::UInt64Size(
13338           this->positive_int_value());
13339     }
13340 
13341     // optional int64 negative_int_value = 5;
13342     if (has_negative_int_value()) {
13343       total_size += 1 +
13344         ::google::protobuf::internal::WireFormatLite::Int64Size(
13345           this->negative_int_value());
13346     }
13347 
13348     // optional double double_value = 6;
13349     if (has_double_value()) {
13350       total_size += 1 + 8;
13351     }
13352 
13353     // optional bytes string_value = 7;
13354     if (has_string_value()) {
13355       total_size += 1 +
13356         ::google::protobuf::internal::WireFormatLite::BytesSize(
13357           this->string_value());
13358     }
13359 
13360     // optional string aggregate_value = 8;
13361     if (has_aggregate_value()) {
13362       total_size += 1 +
13363         ::google::protobuf::internal::WireFormatLite::StringSize(
13364           this->aggregate_value());
13365     }
13366 
13367   }
13368   // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
13369   total_size += 1 * this->name_size();
13370   for (int i = 0; i < this->name_size(); i++) {
13371     total_size +=
13372       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
13373         this->name(i));
13374   }
13375 
13376   if (_internal_metadata_.have_unknown_fields()) {
13377     total_size +=
13378       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
13379         unknown_fields());
13380   }
13381   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13382   _cached_size_ = total_size;
13383   GOOGLE_SAFE_CONCURRENT_WRITES_END();
13384   return total_size;
13385 }
13386 
MergeFrom(const::google::protobuf::Message & from)13387 void UninterpretedOption::MergeFrom(const ::google::protobuf::Message& from) {
13388 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.UninterpretedOption)
13389   if (GOOGLE_PREDICT_FALSE(&from == this)) {
13390     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
13391   }
13392   const UninterpretedOption* source =
13393       ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOption>(
13394           &from);
13395   if (source == NULL) {
13396   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.UninterpretedOption)
13397     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
13398   } else {
13399   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.UninterpretedOption)
13400     MergeFrom(*source);
13401   }
13402 }
13403 
MergeFrom(const UninterpretedOption & from)13404 void UninterpretedOption::MergeFrom(const UninterpretedOption& from) {
13405 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UninterpretedOption)
13406   if (GOOGLE_PREDICT_FALSE(&from == this)) {
13407     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
13408   }
13409   name_.MergeFrom(from.name_);
13410   if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
13411     if (from.has_identifier_value()) {
13412       set_has_identifier_value();
13413       identifier_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.identifier_value_);
13414     }
13415     if (from.has_positive_int_value()) {
13416       set_positive_int_value(from.positive_int_value());
13417     }
13418     if (from.has_negative_int_value()) {
13419       set_negative_int_value(from.negative_int_value());
13420     }
13421     if (from.has_double_value()) {
13422       set_double_value(from.double_value());
13423     }
13424     if (from.has_string_value()) {
13425       set_has_string_value();
13426       string_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.string_value_);
13427     }
13428     if (from.has_aggregate_value()) {
13429       set_has_aggregate_value();
13430       aggregate_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.aggregate_value_);
13431     }
13432   }
13433   if (from._internal_metadata_.have_unknown_fields()) {
13434     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
13435   }
13436 }
13437 
CopyFrom(const::google::protobuf::Message & from)13438 void UninterpretedOption::CopyFrom(const ::google::protobuf::Message& from) {
13439 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.UninterpretedOption)
13440   if (&from == this) return;
13441   Clear();
13442   MergeFrom(from);
13443 }
13444 
CopyFrom(const UninterpretedOption & from)13445 void UninterpretedOption::CopyFrom(const UninterpretedOption& from) {
13446 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.UninterpretedOption)
13447   if (&from == this) return;
13448   Clear();
13449   MergeFrom(from);
13450 }
13451 
IsInitialized() const13452 bool UninterpretedOption::IsInitialized() const {
13453 
13454   if (!::google::protobuf::internal::AllAreInitialized(this->name())) return false;
13455   return true;
13456 }
13457 
Swap(UninterpretedOption * other)13458 void UninterpretedOption::Swap(UninterpretedOption* other) {
13459   if (other == this) return;
13460   InternalSwap(other);
13461 }
InternalSwap(UninterpretedOption * other)13462 void UninterpretedOption::InternalSwap(UninterpretedOption* other) {
13463   name_.UnsafeArenaSwap(&other->name_);
13464   identifier_value_.Swap(&other->identifier_value_);
13465   std::swap(positive_int_value_, other->positive_int_value_);
13466   std::swap(negative_int_value_, other->negative_int_value_);
13467   std::swap(double_value_, other->double_value_);
13468   string_value_.Swap(&other->string_value_);
13469   aggregate_value_.Swap(&other->aggregate_value_);
13470   std::swap(_has_bits_[0], other->_has_bits_[0]);
13471   _internal_metadata_.Swap(&other->_internal_metadata_);
13472   std::swap(_cached_size_, other->_cached_size_);
13473 }
13474 
GetMetadata() const13475 ::google::protobuf::Metadata UninterpretedOption::GetMetadata() const {
13476   protobuf_AssignDescriptorsOnce();
13477   ::google::protobuf::Metadata metadata;
13478   metadata.descriptor = UninterpretedOption_descriptor_;
13479   metadata.reflection = UninterpretedOption_reflection_;
13480   return metadata;
13481 }
13482 
13483 #if PROTOBUF_INLINE_NOT_IN_HEADERS
13484 // UninterpretedOption_NamePart
13485 
13486 // required string name_part = 1;
has_name_part() const13487 bool UninterpretedOption_NamePart::has_name_part() const {
13488   return (_has_bits_[0] & 0x00000001u) != 0;
13489 }
set_has_name_part()13490 void UninterpretedOption_NamePart::set_has_name_part() {
13491   _has_bits_[0] |= 0x00000001u;
13492 }
clear_has_name_part()13493 void UninterpretedOption_NamePart::clear_has_name_part() {
13494   _has_bits_[0] &= ~0x00000001u;
13495 }
clear_name_part()13496 void UninterpretedOption_NamePart::clear_name_part() {
13497   name_part_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13498   clear_has_name_part();
13499 }
name_part() const13500  const ::std::string& UninterpretedOption_NamePart::name_part() const {
13501   // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.name_part)
13502   return name_part_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13503 }
set_name_part(const::std::string & value)13504  void UninterpretedOption_NamePart::set_name_part(const ::std::string& value) {
13505   set_has_name_part();
13506   name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
13507   // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.name_part)
13508 }
set_name_part(const char * value)13509  void UninterpretedOption_NamePart::set_name_part(const char* value) {
13510   set_has_name_part();
13511   name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
13512   // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.NamePart.name_part)
13513 }
set_name_part(const char * value,size_t size)13514  void UninterpretedOption_NamePart::set_name_part(const char* value, size_t size) {
13515   set_has_name_part();
13516   name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
13517       ::std::string(reinterpret_cast<const char*>(value), size));
13518   // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.NamePart.name_part)
13519 }
mutable_name_part()13520  ::std::string* UninterpretedOption_NamePart::mutable_name_part() {
13521   set_has_name_part();
13522   // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.NamePart.name_part)
13523   return name_part_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13524 }
release_name_part()13525  ::std::string* UninterpretedOption_NamePart::release_name_part() {
13526   // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.NamePart.name_part)
13527   clear_has_name_part();
13528   return name_part_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13529 }
set_allocated_name_part(::std::string * name_part)13530  void UninterpretedOption_NamePart::set_allocated_name_part(::std::string* name_part) {
13531   if (name_part != NULL) {
13532     set_has_name_part();
13533   } else {
13534     clear_has_name_part();
13535   }
13536   name_part_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name_part);
13537   // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.NamePart.name_part)
13538 }
13539 
13540 // required bool is_extension = 2;
has_is_extension() const13541 bool UninterpretedOption_NamePart::has_is_extension() const {
13542   return (_has_bits_[0] & 0x00000002u) != 0;
13543 }
set_has_is_extension()13544 void UninterpretedOption_NamePart::set_has_is_extension() {
13545   _has_bits_[0] |= 0x00000002u;
13546 }
clear_has_is_extension()13547 void UninterpretedOption_NamePart::clear_has_is_extension() {
13548   _has_bits_[0] &= ~0x00000002u;
13549 }
clear_is_extension()13550 void UninterpretedOption_NamePart::clear_is_extension() {
13551   is_extension_ = false;
13552   clear_has_is_extension();
13553 }
is_extension() const13554  bool UninterpretedOption_NamePart::is_extension() const {
13555   // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.is_extension)
13556   return is_extension_;
13557 }
set_is_extension(bool value)13558  void UninterpretedOption_NamePart::set_is_extension(bool value) {
13559   set_has_is_extension();
13560   is_extension_ = value;
13561   // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.is_extension)
13562 }
13563 
13564 // -------------------------------------------------------------------
13565 
13566 // UninterpretedOption
13567 
13568 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
name_size() const13569 int UninterpretedOption::name_size() const {
13570   return name_.size();
13571 }
clear_name()13572 void UninterpretedOption::clear_name() {
13573   name_.Clear();
13574 }
name(int index) const13575 const ::google::protobuf::UninterpretedOption_NamePart& UninterpretedOption::name(int index) const {
13576   // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.name)
13577   return name_.Get(index);
13578 }
mutable_name(int index)13579 ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::mutable_name(int index) {
13580   // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.name)
13581   return name_.Mutable(index);
13582 }
add_name()13583 ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::add_name() {
13584   // @@protoc_insertion_point(field_add:google.protobuf.UninterpretedOption.name)
13585   return name_.Add();
13586 }
13587 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >*
mutable_name()13588 UninterpretedOption::mutable_name() {
13589   // @@protoc_insertion_point(field_mutable_list:google.protobuf.UninterpretedOption.name)
13590   return &name_;
13591 }
13592 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >&
name() const13593 UninterpretedOption::name() const {
13594   // @@protoc_insertion_point(field_list:google.protobuf.UninterpretedOption.name)
13595   return name_;
13596 }
13597 
13598 // optional string identifier_value = 3;
has_identifier_value() const13599 bool UninterpretedOption::has_identifier_value() const {
13600   return (_has_bits_[0] & 0x00000002u) != 0;
13601 }
set_has_identifier_value()13602 void UninterpretedOption::set_has_identifier_value() {
13603   _has_bits_[0] |= 0x00000002u;
13604 }
clear_has_identifier_value()13605 void UninterpretedOption::clear_has_identifier_value() {
13606   _has_bits_[0] &= ~0x00000002u;
13607 }
clear_identifier_value()13608 void UninterpretedOption::clear_identifier_value() {
13609   identifier_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13610   clear_has_identifier_value();
13611 }
identifier_value() const13612  const ::std::string& UninterpretedOption::identifier_value() const {
13613   // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.identifier_value)
13614   return identifier_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13615 }
set_identifier_value(const::std::string & value)13616  void UninterpretedOption::set_identifier_value(const ::std::string& value) {
13617   set_has_identifier_value();
13618   identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
13619   // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.identifier_value)
13620 }
set_identifier_value(const char * value)13621  void UninterpretedOption::set_identifier_value(const char* value) {
13622   set_has_identifier_value();
13623   identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
13624   // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.identifier_value)
13625 }
set_identifier_value(const char * value,size_t size)13626  void UninterpretedOption::set_identifier_value(const char* value, size_t size) {
13627   set_has_identifier_value();
13628   identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
13629       ::std::string(reinterpret_cast<const char*>(value), size));
13630   // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.identifier_value)
13631 }
mutable_identifier_value()13632  ::std::string* UninterpretedOption::mutable_identifier_value() {
13633   set_has_identifier_value();
13634   // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.identifier_value)
13635   return identifier_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13636 }
release_identifier_value()13637  ::std::string* UninterpretedOption::release_identifier_value() {
13638   // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.identifier_value)
13639   clear_has_identifier_value();
13640   return identifier_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13641 }
set_allocated_identifier_value(::std::string * identifier_value)13642  void UninterpretedOption::set_allocated_identifier_value(::std::string* identifier_value) {
13643   if (identifier_value != NULL) {
13644     set_has_identifier_value();
13645   } else {
13646     clear_has_identifier_value();
13647   }
13648   identifier_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), identifier_value);
13649   // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.identifier_value)
13650 }
13651 
13652 // optional uint64 positive_int_value = 4;
has_positive_int_value() const13653 bool UninterpretedOption::has_positive_int_value() const {
13654   return (_has_bits_[0] & 0x00000004u) != 0;
13655 }
set_has_positive_int_value()13656 void UninterpretedOption::set_has_positive_int_value() {
13657   _has_bits_[0] |= 0x00000004u;
13658 }
clear_has_positive_int_value()13659 void UninterpretedOption::clear_has_positive_int_value() {
13660   _has_bits_[0] &= ~0x00000004u;
13661 }
clear_positive_int_value()13662 void UninterpretedOption::clear_positive_int_value() {
13663   positive_int_value_ = GOOGLE_ULONGLONG(0);
13664   clear_has_positive_int_value();
13665 }
positive_int_value() const13666  ::google::protobuf::uint64 UninterpretedOption::positive_int_value() const {
13667   // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.positive_int_value)
13668   return positive_int_value_;
13669 }
set_positive_int_value(::google::protobuf::uint64 value)13670  void UninterpretedOption::set_positive_int_value(::google::protobuf::uint64 value) {
13671   set_has_positive_int_value();
13672   positive_int_value_ = value;
13673   // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.positive_int_value)
13674 }
13675 
13676 // optional int64 negative_int_value = 5;
has_negative_int_value() const13677 bool UninterpretedOption::has_negative_int_value() const {
13678   return (_has_bits_[0] & 0x00000008u) != 0;
13679 }
set_has_negative_int_value()13680 void UninterpretedOption::set_has_negative_int_value() {
13681   _has_bits_[0] |= 0x00000008u;
13682 }
clear_has_negative_int_value()13683 void UninterpretedOption::clear_has_negative_int_value() {
13684   _has_bits_[0] &= ~0x00000008u;
13685 }
clear_negative_int_value()13686 void UninterpretedOption::clear_negative_int_value() {
13687   negative_int_value_ = GOOGLE_LONGLONG(0);
13688   clear_has_negative_int_value();
13689 }
negative_int_value() const13690  ::google::protobuf::int64 UninterpretedOption::negative_int_value() const {
13691   // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.negative_int_value)
13692   return negative_int_value_;
13693 }
set_negative_int_value(::google::protobuf::int64 value)13694  void UninterpretedOption::set_negative_int_value(::google::protobuf::int64 value) {
13695   set_has_negative_int_value();
13696   negative_int_value_ = value;
13697   // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.negative_int_value)
13698 }
13699 
13700 // optional double double_value = 6;
has_double_value() const13701 bool UninterpretedOption::has_double_value() const {
13702   return (_has_bits_[0] & 0x00000010u) != 0;
13703 }
set_has_double_value()13704 void UninterpretedOption::set_has_double_value() {
13705   _has_bits_[0] |= 0x00000010u;
13706 }
clear_has_double_value()13707 void UninterpretedOption::clear_has_double_value() {
13708   _has_bits_[0] &= ~0x00000010u;
13709 }
clear_double_value()13710 void UninterpretedOption::clear_double_value() {
13711   double_value_ = 0;
13712   clear_has_double_value();
13713 }
double_value() const13714  double UninterpretedOption::double_value() const {
13715   // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.double_value)
13716   return double_value_;
13717 }
set_double_value(double value)13718  void UninterpretedOption::set_double_value(double value) {
13719   set_has_double_value();
13720   double_value_ = value;
13721   // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.double_value)
13722 }
13723 
13724 // optional bytes string_value = 7;
has_string_value() const13725 bool UninterpretedOption::has_string_value() const {
13726   return (_has_bits_[0] & 0x00000020u) != 0;
13727 }
set_has_string_value()13728 void UninterpretedOption::set_has_string_value() {
13729   _has_bits_[0] |= 0x00000020u;
13730 }
clear_has_string_value()13731 void UninterpretedOption::clear_has_string_value() {
13732   _has_bits_[0] &= ~0x00000020u;
13733 }
clear_string_value()13734 void UninterpretedOption::clear_string_value() {
13735   string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13736   clear_has_string_value();
13737 }
string_value() const13738  const ::std::string& UninterpretedOption::string_value() const {
13739   // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.string_value)
13740   return string_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13741 }
set_string_value(const::std::string & value)13742  void UninterpretedOption::set_string_value(const ::std::string& value) {
13743   set_has_string_value();
13744   string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
13745   // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.string_value)
13746 }
set_string_value(const char * value)13747  void UninterpretedOption::set_string_value(const char* value) {
13748   set_has_string_value();
13749   string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
13750   // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.string_value)
13751 }
set_string_value(const void * value,size_t size)13752  void UninterpretedOption::set_string_value(const void* value, size_t size) {
13753   set_has_string_value();
13754   string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
13755       ::std::string(reinterpret_cast<const char*>(value), size));
13756   // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.string_value)
13757 }
mutable_string_value()13758  ::std::string* UninterpretedOption::mutable_string_value() {
13759   set_has_string_value();
13760   // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.string_value)
13761   return string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13762 }
release_string_value()13763  ::std::string* UninterpretedOption::release_string_value() {
13764   // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.string_value)
13765   clear_has_string_value();
13766   return string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13767 }
set_allocated_string_value(::std::string * string_value)13768  void UninterpretedOption::set_allocated_string_value(::std::string* string_value) {
13769   if (string_value != NULL) {
13770     set_has_string_value();
13771   } else {
13772     clear_has_string_value();
13773   }
13774   string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string_value);
13775   // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.string_value)
13776 }
13777 
13778 // optional string aggregate_value = 8;
has_aggregate_value() const13779 bool UninterpretedOption::has_aggregate_value() const {
13780   return (_has_bits_[0] & 0x00000040u) != 0;
13781 }
set_has_aggregate_value()13782 void UninterpretedOption::set_has_aggregate_value() {
13783   _has_bits_[0] |= 0x00000040u;
13784 }
clear_has_aggregate_value()13785 void UninterpretedOption::clear_has_aggregate_value() {
13786   _has_bits_[0] &= ~0x00000040u;
13787 }
clear_aggregate_value()13788 void UninterpretedOption::clear_aggregate_value() {
13789   aggregate_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13790   clear_has_aggregate_value();
13791 }
aggregate_value() const13792  const ::std::string& UninterpretedOption::aggregate_value() const {
13793   // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.aggregate_value)
13794   return aggregate_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13795 }
set_aggregate_value(const::std::string & value)13796  void UninterpretedOption::set_aggregate_value(const ::std::string& value) {
13797   set_has_aggregate_value();
13798   aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
13799   // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.aggregate_value)
13800 }
set_aggregate_value(const char * value)13801  void UninterpretedOption::set_aggregate_value(const char* value) {
13802   set_has_aggregate_value();
13803   aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
13804   // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.aggregate_value)
13805 }
set_aggregate_value(const char * value,size_t size)13806  void UninterpretedOption::set_aggregate_value(const char* value, size_t size) {
13807   set_has_aggregate_value();
13808   aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
13809       ::std::string(reinterpret_cast<const char*>(value), size));
13810   // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.aggregate_value)
13811 }
mutable_aggregate_value()13812  ::std::string* UninterpretedOption::mutable_aggregate_value() {
13813   set_has_aggregate_value();
13814   // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.aggregate_value)
13815   return aggregate_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13816 }
release_aggregate_value()13817  ::std::string* UninterpretedOption::release_aggregate_value() {
13818   // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.aggregate_value)
13819   clear_has_aggregate_value();
13820   return aggregate_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13821 }
set_allocated_aggregate_value(::std::string * aggregate_value)13822  void UninterpretedOption::set_allocated_aggregate_value(::std::string* aggregate_value) {
13823   if (aggregate_value != NULL) {
13824     set_has_aggregate_value();
13825   } else {
13826     clear_has_aggregate_value();
13827   }
13828   aggregate_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), aggregate_value);
13829   // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.aggregate_value)
13830 }
13831 
13832 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
13833 
13834 // ===================================================================
13835 
13836 #if !defined(_MSC_VER) || _MSC_VER >= 1900
13837 const int SourceCodeInfo_Location::kPathFieldNumber;
13838 const int SourceCodeInfo_Location::kSpanFieldNumber;
13839 const int SourceCodeInfo_Location::kLeadingCommentsFieldNumber;
13840 const int SourceCodeInfo_Location::kTrailingCommentsFieldNumber;
13841 const int SourceCodeInfo_Location::kLeadingDetachedCommentsFieldNumber;
13842 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
13843 
SourceCodeInfo_Location()13844 SourceCodeInfo_Location::SourceCodeInfo_Location()
13845   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
13846   SharedCtor();
13847   // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo.Location)
13848 }
13849 
InitAsDefaultInstance()13850 void SourceCodeInfo_Location::InitAsDefaultInstance() {
13851 }
13852 
SourceCodeInfo_Location(const SourceCodeInfo_Location & from)13853 SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location& from)
13854   : ::google::protobuf::Message(),
13855     _internal_metadata_(NULL) {
13856   SharedCtor();
13857   MergeFrom(from);
13858   // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo.Location)
13859 }
13860 
SharedCtor()13861 void SourceCodeInfo_Location::SharedCtor() {
13862   ::google::protobuf::internal::GetEmptyString();
13863   _cached_size_ = 0;
13864   leading_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13865   trailing_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13866   ::memset(_has_bits_, 0, sizeof(_has_bits_));
13867 }
13868 
~SourceCodeInfo_Location()13869 SourceCodeInfo_Location::~SourceCodeInfo_Location() {
13870   // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo.Location)
13871   SharedDtor();
13872 }
13873 
SharedDtor()13874 void SourceCodeInfo_Location::SharedDtor() {
13875   leading_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13876   trailing_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13877   if (this != default_instance_) {
13878   }
13879 }
13880 
SetCachedSize(int size) const13881 void SourceCodeInfo_Location::SetCachedSize(int size) const {
13882   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13883   _cached_size_ = size;
13884   GOOGLE_SAFE_CONCURRENT_WRITES_END();
13885 }
descriptor()13886 const ::google::protobuf::Descriptor* SourceCodeInfo_Location::descriptor() {
13887   protobuf_AssignDescriptorsOnce();
13888   return SourceCodeInfo_Location_descriptor_;
13889 }
13890 
default_instance()13891 const SourceCodeInfo_Location& SourceCodeInfo_Location::default_instance() {
13892   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
13893   return *default_instance_;
13894 }
13895 
13896 SourceCodeInfo_Location* SourceCodeInfo_Location::default_instance_ = NULL;
13897 
New(::google::protobuf::Arena * arena) const13898 SourceCodeInfo_Location* SourceCodeInfo_Location::New(::google::protobuf::Arena* arena) const {
13899   SourceCodeInfo_Location* n = new SourceCodeInfo_Location;
13900   if (arena != NULL) {
13901     arena->Own(n);
13902   }
13903   return n;
13904 }
13905 
Clear()13906 void SourceCodeInfo_Location::Clear() {
13907 // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceCodeInfo.Location)
13908   if (_has_bits_[0 / 32] & 12u) {
13909     if (has_leading_comments()) {
13910       leading_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13911     }
13912     if (has_trailing_comments()) {
13913       trailing_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13914     }
13915   }
13916   path_.Clear();
13917   span_.Clear();
13918   leading_detached_comments_.Clear();
13919   ::memset(_has_bits_, 0, sizeof(_has_bits_));
13920   if (_internal_metadata_.have_unknown_fields()) {
13921     mutable_unknown_fields()->Clear();
13922   }
13923 }
13924 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)13925 bool SourceCodeInfo_Location::MergePartialFromCodedStream(
13926     ::google::protobuf::io::CodedInputStream* input) {
13927 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
13928   ::google::protobuf::uint32 tag;
13929   // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo.Location)
13930   for (;;) {
13931     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
13932     tag = p.first;
13933     if (!p.second) goto handle_unusual;
13934     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
13935       // repeated int32 path = 1 [packed = true];
13936       case 1: {
13937         if (tag == 10) {
13938           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
13939                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
13940                  input, this->mutable_path())));
13941         } else if (tag == 8) {
13942           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
13943                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
13944                  1, 10, input, this->mutable_path())));
13945         } else {
13946           goto handle_unusual;
13947         }
13948         if (input->ExpectTag(18)) goto parse_span;
13949         break;
13950       }
13951 
13952       // repeated int32 span = 2 [packed = true];
13953       case 2: {
13954         if (tag == 18) {
13955          parse_span:
13956           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
13957                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
13958                  input, this->mutable_span())));
13959         } else if (tag == 16) {
13960           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
13961                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
13962                  1, 18, input, this->mutable_span())));
13963         } else {
13964           goto handle_unusual;
13965         }
13966         if (input->ExpectTag(26)) goto parse_leading_comments;
13967         break;
13968       }
13969 
13970       // optional string leading_comments = 3;
13971       case 3: {
13972         if (tag == 26) {
13973          parse_leading_comments:
13974           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13975                 input, this->mutable_leading_comments()));
13976           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13977             this->leading_comments().data(), this->leading_comments().length(),
13978             ::google::protobuf::internal::WireFormat::PARSE,
13979             "google.protobuf.SourceCodeInfo.Location.leading_comments");
13980         } else {
13981           goto handle_unusual;
13982         }
13983         if (input->ExpectTag(34)) goto parse_trailing_comments;
13984         break;
13985       }
13986 
13987       // optional string trailing_comments = 4;
13988       case 4: {
13989         if (tag == 34) {
13990          parse_trailing_comments:
13991           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13992                 input, this->mutable_trailing_comments()));
13993           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13994             this->trailing_comments().data(), this->trailing_comments().length(),
13995             ::google::protobuf::internal::WireFormat::PARSE,
13996             "google.protobuf.SourceCodeInfo.Location.trailing_comments");
13997         } else {
13998           goto handle_unusual;
13999         }
14000         if (input->ExpectTag(50)) goto parse_leading_detached_comments;
14001         break;
14002       }
14003 
14004       // repeated string leading_detached_comments = 6;
14005       case 6: {
14006         if (tag == 50) {
14007          parse_leading_detached_comments:
14008           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
14009                 input, this->add_leading_detached_comments()));
14010           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14011             this->leading_detached_comments(this->leading_detached_comments_size() - 1).data(),
14012             this->leading_detached_comments(this->leading_detached_comments_size() - 1).length(),
14013             ::google::protobuf::internal::WireFormat::PARSE,
14014             "google.protobuf.SourceCodeInfo.Location.leading_detached_comments");
14015         } else {
14016           goto handle_unusual;
14017         }
14018         if (input->ExpectTag(50)) goto parse_leading_detached_comments;
14019         if (input->ExpectAtEnd()) goto success;
14020         break;
14021       }
14022 
14023       default: {
14024       handle_unusual:
14025         if (tag == 0 ||
14026             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
14027             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
14028           goto success;
14029         }
14030         DO_(::google::protobuf::internal::WireFormat::SkipField(
14031               input, tag, mutable_unknown_fields()));
14032         break;
14033       }
14034     }
14035   }
14036 success:
14037   // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo.Location)
14038   return true;
14039 failure:
14040   // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo.Location)
14041   return false;
14042 #undef DO_
14043 }
14044 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const14045 void SourceCodeInfo_Location::SerializeWithCachedSizes(
14046     ::google::protobuf::io::CodedOutputStream* output) const {
14047   // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo.Location)
14048   // repeated int32 path = 1 [packed = true];
14049   if (this->path_size() > 0) {
14050     ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
14051     output->WriteVarint32(_path_cached_byte_size_);
14052   }
14053   for (int i = 0; i < this->path_size(); i++) {
14054     ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
14055       this->path(i), output);
14056   }
14057 
14058   // repeated int32 span = 2 [packed = true];
14059   if (this->span_size() > 0) {
14060     ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
14061     output->WriteVarint32(_span_cached_byte_size_);
14062   }
14063   for (int i = 0; i < this->span_size(); i++) {
14064     ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
14065       this->span(i), output);
14066   }
14067 
14068   // optional string leading_comments = 3;
14069   if (has_leading_comments()) {
14070     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14071       this->leading_comments().data(), this->leading_comments().length(),
14072       ::google::protobuf::internal::WireFormat::SERIALIZE,
14073       "google.protobuf.SourceCodeInfo.Location.leading_comments");
14074     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
14075       3, this->leading_comments(), output);
14076   }
14077 
14078   // optional string trailing_comments = 4;
14079   if (has_trailing_comments()) {
14080     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14081       this->trailing_comments().data(), this->trailing_comments().length(),
14082       ::google::protobuf::internal::WireFormat::SERIALIZE,
14083       "google.protobuf.SourceCodeInfo.Location.trailing_comments");
14084     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
14085       4, this->trailing_comments(), output);
14086   }
14087 
14088   // repeated string leading_detached_comments = 6;
14089   for (int i = 0; i < this->leading_detached_comments_size(); i++) {
14090     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14091       this->leading_detached_comments(i).data(), this->leading_detached_comments(i).length(),
14092       ::google::protobuf::internal::WireFormat::SERIALIZE,
14093       "google.protobuf.SourceCodeInfo.Location.leading_detached_comments");
14094     ::google::protobuf::internal::WireFormatLite::WriteString(
14095       6, this->leading_detached_comments(i), output);
14096   }
14097 
14098   if (_internal_metadata_.have_unknown_fields()) {
14099     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
14100         unknown_fields(), output);
14101   }
14102   // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo.Location)
14103 }
14104 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const14105 ::google::protobuf::uint8* SourceCodeInfo_Location::InternalSerializeWithCachedSizesToArray(
14106     bool deterministic, ::google::protobuf::uint8* target) const {
14107   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo.Location)
14108   // repeated int32 path = 1 [packed = true];
14109   if (this->path_size() > 0) {
14110     target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
14111       1,
14112       ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
14113       target);
14114     target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
14115       _path_cached_byte_size_, target);
14116   }
14117   for (int i = 0; i < this->path_size(); i++) {
14118     target = ::google::protobuf::internal::WireFormatLite::
14119       WriteInt32NoTagToArray(this->path(i), target);
14120   }
14121 
14122   // repeated int32 span = 2 [packed = true];
14123   if (this->span_size() > 0) {
14124     target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
14125       2,
14126       ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
14127       target);
14128     target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
14129       _span_cached_byte_size_, target);
14130   }
14131   for (int i = 0; i < this->span_size(); i++) {
14132     target = ::google::protobuf::internal::WireFormatLite::
14133       WriteInt32NoTagToArray(this->span(i), target);
14134   }
14135 
14136   // optional string leading_comments = 3;
14137   if (has_leading_comments()) {
14138     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14139       this->leading_comments().data(), this->leading_comments().length(),
14140       ::google::protobuf::internal::WireFormat::SERIALIZE,
14141       "google.protobuf.SourceCodeInfo.Location.leading_comments");
14142     target =
14143       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
14144         3, this->leading_comments(), target);
14145   }
14146 
14147   // optional string trailing_comments = 4;
14148   if (has_trailing_comments()) {
14149     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14150       this->trailing_comments().data(), this->trailing_comments().length(),
14151       ::google::protobuf::internal::WireFormat::SERIALIZE,
14152       "google.protobuf.SourceCodeInfo.Location.trailing_comments");
14153     target =
14154       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
14155         4, this->trailing_comments(), target);
14156   }
14157 
14158   // repeated string leading_detached_comments = 6;
14159   for (int i = 0; i < this->leading_detached_comments_size(); i++) {
14160     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14161       this->leading_detached_comments(i).data(), this->leading_detached_comments(i).length(),
14162       ::google::protobuf::internal::WireFormat::SERIALIZE,
14163       "google.protobuf.SourceCodeInfo.Location.leading_detached_comments");
14164     target = ::google::protobuf::internal::WireFormatLite::
14165       WriteStringToArray(6, this->leading_detached_comments(i), target);
14166   }
14167 
14168   if (_internal_metadata_.have_unknown_fields()) {
14169     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
14170         unknown_fields(), target);
14171   }
14172   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeInfo.Location)
14173   return target;
14174 }
14175 
ByteSize() const14176 int SourceCodeInfo_Location::ByteSize() const {
14177 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeInfo.Location)
14178   int total_size = 0;
14179 
14180   if (_has_bits_[2 / 32] & 12u) {
14181     // optional string leading_comments = 3;
14182     if (has_leading_comments()) {
14183       total_size += 1 +
14184         ::google::protobuf::internal::WireFormatLite::StringSize(
14185           this->leading_comments());
14186     }
14187 
14188     // optional string trailing_comments = 4;
14189     if (has_trailing_comments()) {
14190       total_size += 1 +
14191         ::google::protobuf::internal::WireFormatLite::StringSize(
14192           this->trailing_comments());
14193     }
14194 
14195   }
14196   // repeated int32 path = 1 [packed = true];
14197   {
14198     int data_size = 0;
14199     for (int i = 0; i < this->path_size(); i++) {
14200       data_size += ::google::protobuf::internal::WireFormatLite::
14201         Int32Size(this->path(i));
14202     }
14203     if (data_size > 0) {
14204       total_size += 1 +
14205         ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
14206     }
14207     GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14208     _path_cached_byte_size_ = data_size;
14209     GOOGLE_SAFE_CONCURRENT_WRITES_END();
14210     total_size += data_size;
14211   }
14212 
14213   // repeated int32 span = 2 [packed = true];
14214   {
14215     int data_size = 0;
14216     for (int i = 0; i < this->span_size(); i++) {
14217       data_size += ::google::protobuf::internal::WireFormatLite::
14218         Int32Size(this->span(i));
14219     }
14220     if (data_size > 0) {
14221       total_size += 1 +
14222         ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
14223     }
14224     GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14225     _span_cached_byte_size_ = data_size;
14226     GOOGLE_SAFE_CONCURRENT_WRITES_END();
14227     total_size += data_size;
14228   }
14229 
14230   // repeated string leading_detached_comments = 6;
14231   total_size += 1 * this->leading_detached_comments_size();
14232   for (int i = 0; i < this->leading_detached_comments_size(); i++) {
14233     total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
14234       this->leading_detached_comments(i));
14235   }
14236 
14237   if (_internal_metadata_.have_unknown_fields()) {
14238     total_size +=
14239       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
14240         unknown_fields());
14241   }
14242   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14243   _cached_size_ = total_size;
14244   GOOGLE_SAFE_CONCURRENT_WRITES_END();
14245   return total_size;
14246 }
14247 
MergeFrom(const::google::protobuf::Message & from)14248 void SourceCodeInfo_Location::MergeFrom(const ::google::protobuf::Message& from) {
14249 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceCodeInfo.Location)
14250   if (GOOGLE_PREDICT_FALSE(&from == this)) {
14251     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
14252   }
14253   const SourceCodeInfo_Location* source =
14254       ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo_Location>(
14255           &from);
14256   if (source == NULL) {
14257   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.SourceCodeInfo.Location)
14258     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
14259   } else {
14260   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.SourceCodeInfo.Location)
14261     MergeFrom(*source);
14262   }
14263 }
14264 
MergeFrom(const SourceCodeInfo_Location & from)14265 void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) {
14266 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.SourceCodeInfo.Location)
14267   if (GOOGLE_PREDICT_FALSE(&from == this)) {
14268     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
14269   }
14270   path_.MergeFrom(from.path_);
14271   span_.MergeFrom(from.span_);
14272   leading_detached_comments_.MergeFrom(from.leading_detached_comments_);
14273   if (from._has_bits_[2 / 32] & (0xffu << (2 % 32))) {
14274     if (from.has_leading_comments()) {
14275       set_has_leading_comments();
14276       leading_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.leading_comments_);
14277     }
14278     if (from.has_trailing_comments()) {
14279       set_has_trailing_comments();
14280       trailing_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trailing_comments_);
14281     }
14282   }
14283   if (from._internal_metadata_.have_unknown_fields()) {
14284     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
14285   }
14286 }
14287 
CopyFrom(const::google::protobuf::Message & from)14288 void SourceCodeInfo_Location::CopyFrom(const ::google::protobuf::Message& from) {
14289 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.SourceCodeInfo.Location)
14290   if (&from == this) return;
14291   Clear();
14292   MergeFrom(from);
14293 }
14294 
CopyFrom(const SourceCodeInfo_Location & from)14295 void SourceCodeInfo_Location::CopyFrom(const SourceCodeInfo_Location& from) {
14296 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.SourceCodeInfo.Location)
14297   if (&from == this) return;
14298   Clear();
14299   MergeFrom(from);
14300 }
14301 
IsInitialized() const14302 bool SourceCodeInfo_Location::IsInitialized() const {
14303 
14304   return true;
14305 }
14306 
Swap(SourceCodeInfo_Location * other)14307 void SourceCodeInfo_Location::Swap(SourceCodeInfo_Location* other) {
14308   if (other == this) return;
14309   InternalSwap(other);
14310 }
InternalSwap(SourceCodeInfo_Location * other)14311 void SourceCodeInfo_Location::InternalSwap(SourceCodeInfo_Location* other) {
14312   path_.UnsafeArenaSwap(&other->path_);
14313   span_.UnsafeArenaSwap(&other->span_);
14314   leading_comments_.Swap(&other->leading_comments_);
14315   trailing_comments_.Swap(&other->trailing_comments_);
14316   leading_detached_comments_.UnsafeArenaSwap(&other->leading_detached_comments_);
14317   std::swap(_has_bits_[0], other->_has_bits_[0]);
14318   _internal_metadata_.Swap(&other->_internal_metadata_);
14319   std::swap(_cached_size_, other->_cached_size_);
14320 }
14321 
GetMetadata() const14322 ::google::protobuf::Metadata SourceCodeInfo_Location::GetMetadata() const {
14323   protobuf_AssignDescriptorsOnce();
14324   ::google::protobuf::Metadata metadata;
14325   metadata.descriptor = SourceCodeInfo_Location_descriptor_;
14326   metadata.reflection = SourceCodeInfo_Location_reflection_;
14327   return metadata;
14328 }
14329 
14330 
14331 // -------------------------------------------------------------------
14332 
14333 #if !defined(_MSC_VER) || _MSC_VER >= 1900
14334 const int SourceCodeInfo::kLocationFieldNumber;
14335 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
14336 
SourceCodeInfo()14337 SourceCodeInfo::SourceCodeInfo()
14338   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
14339   SharedCtor();
14340   // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo)
14341 }
14342 
InitAsDefaultInstance()14343 void SourceCodeInfo::InitAsDefaultInstance() {
14344 }
14345 
SourceCodeInfo(const SourceCodeInfo & from)14346 SourceCodeInfo::SourceCodeInfo(const SourceCodeInfo& from)
14347   : ::google::protobuf::Message(),
14348     _internal_metadata_(NULL) {
14349   SharedCtor();
14350   MergeFrom(from);
14351   // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo)
14352 }
14353 
SharedCtor()14354 void SourceCodeInfo::SharedCtor() {
14355   _cached_size_ = 0;
14356   ::memset(_has_bits_, 0, sizeof(_has_bits_));
14357 }
14358 
~SourceCodeInfo()14359 SourceCodeInfo::~SourceCodeInfo() {
14360   // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo)
14361   SharedDtor();
14362 }
14363 
SharedDtor()14364 void SourceCodeInfo::SharedDtor() {
14365   if (this != default_instance_) {
14366   }
14367 }
14368 
SetCachedSize(int size) const14369 void SourceCodeInfo::SetCachedSize(int size) const {
14370   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14371   _cached_size_ = size;
14372   GOOGLE_SAFE_CONCURRENT_WRITES_END();
14373 }
descriptor()14374 const ::google::protobuf::Descriptor* SourceCodeInfo::descriptor() {
14375   protobuf_AssignDescriptorsOnce();
14376   return SourceCodeInfo_descriptor_;
14377 }
14378 
default_instance()14379 const SourceCodeInfo& SourceCodeInfo::default_instance() {
14380   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
14381   return *default_instance_;
14382 }
14383 
14384 SourceCodeInfo* SourceCodeInfo::default_instance_ = NULL;
14385 
New(::google::protobuf::Arena * arena) const14386 SourceCodeInfo* SourceCodeInfo::New(::google::protobuf::Arena* arena) const {
14387   SourceCodeInfo* n = new SourceCodeInfo;
14388   if (arena != NULL) {
14389     arena->Own(n);
14390   }
14391   return n;
14392 }
14393 
Clear()14394 void SourceCodeInfo::Clear() {
14395 // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceCodeInfo)
14396   location_.Clear();
14397   ::memset(_has_bits_, 0, sizeof(_has_bits_));
14398   if (_internal_metadata_.have_unknown_fields()) {
14399     mutable_unknown_fields()->Clear();
14400   }
14401 }
14402 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)14403 bool SourceCodeInfo::MergePartialFromCodedStream(
14404     ::google::protobuf::io::CodedInputStream* input) {
14405 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
14406   ::google::protobuf::uint32 tag;
14407   // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo)
14408   for (;;) {
14409     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
14410     tag = p.first;
14411     if (!p.second) goto handle_unusual;
14412     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
14413       // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
14414       case 1: {
14415         if (tag == 10) {
14416           DO_(input->IncrementRecursionDepth());
14417          parse_loop_location:
14418           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
14419                 input, add_location()));
14420         } else {
14421           goto handle_unusual;
14422         }
14423         if (input->ExpectTag(10)) goto parse_loop_location;
14424         input->UnsafeDecrementRecursionDepth();
14425         if (input->ExpectAtEnd()) goto success;
14426         break;
14427       }
14428 
14429       default: {
14430       handle_unusual:
14431         if (tag == 0 ||
14432             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
14433             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
14434           goto success;
14435         }
14436         DO_(::google::protobuf::internal::WireFormat::SkipField(
14437               input, tag, mutable_unknown_fields()));
14438         break;
14439       }
14440     }
14441   }
14442 success:
14443   // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo)
14444   return true;
14445 failure:
14446   // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo)
14447   return false;
14448 #undef DO_
14449 }
14450 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const14451 void SourceCodeInfo::SerializeWithCachedSizes(
14452     ::google::protobuf::io::CodedOutputStream* output) const {
14453   // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo)
14454   // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
14455   for (unsigned int i = 0, n = this->location_size(); i < n; i++) {
14456     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
14457       1, this->location(i), output);
14458   }
14459 
14460   if (_internal_metadata_.have_unknown_fields()) {
14461     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
14462         unknown_fields(), output);
14463   }
14464   // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo)
14465 }
14466 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const14467 ::google::protobuf::uint8* SourceCodeInfo::InternalSerializeWithCachedSizesToArray(
14468     bool deterministic, ::google::protobuf::uint8* target) const {
14469   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo)
14470   // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
14471   for (unsigned int i = 0, n = this->location_size(); i < n; i++) {
14472     target = ::google::protobuf::internal::WireFormatLite::
14473       InternalWriteMessageNoVirtualToArray(
14474         1, this->location(i), false, target);
14475   }
14476 
14477   if (_internal_metadata_.have_unknown_fields()) {
14478     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
14479         unknown_fields(), target);
14480   }
14481   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeInfo)
14482   return target;
14483 }
14484 
ByteSize() const14485 int SourceCodeInfo::ByteSize() const {
14486 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeInfo)
14487   int total_size = 0;
14488 
14489   // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
14490   total_size += 1 * this->location_size();
14491   for (int i = 0; i < this->location_size(); i++) {
14492     total_size +=
14493       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
14494         this->location(i));
14495   }
14496 
14497   if (_internal_metadata_.have_unknown_fields()) {
14498     total_size +=
14499       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
14500         unknown_fields());
14501   }
14502   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14503   _cached_size_ = total_size;
14504   GOOGLE_SAFE_CONCURRENT_WRITES_END();
14505   return total_size;
14506 }
14507 
MergeFrom(const::google::protobuf::Message & from)14508 void SourceCodeInfo::MergeFrom(const ::google::protobuf::Message& from) {
14509 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceCodeInfo)
14510   if (GOOGLE_PREDICT_FALSE(&from == this)) {
14511     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
14512   }
14513   const SourceCodeInfo* source =
14514       ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo>(
14515           &from);
14516   if (source == NULL) {
14517   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.SourceCodeInfo)
14518     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
14519   } else {
14520   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.SourceCodeInfo)
14521     MergeFrom(*source);
14522   }
14523 }
14524 
MergeFrom(const SourceCodeInfo & from)14525 void SourceCodeInfo::MergeFrom(const SourceCodeInfo& from) {
14526 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.SourceCodeInfo)
14527   if (GOOGLE_PREDICT_FALSE(&from == this)) {
14528     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
14529   }
14530   location_.MergeFrom(from.location_);
14531   if (from._internal_metadata_.have_unknown_fields()) {
14532     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
14533   }
14534 }
14535 
CopyFrom(const::google::protobuf::Message & from)14536 void SourceCodeInfo::CopyFrom(const ::google::protobuf::Message& from) {
14537 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.SourceCodeInfo)
14538   if (&from == this) return;
14539   Clear();
14540   MergeFrom(from);
14541 }
14542 
CopyFrom(const SourceCodeInfo & from)14543 void SourceCodeInfo::CopyFrom(const SourceCodeInfo& from) {
14544 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.SourceCodeInfo)
14545   if (&from == this) return;
14546   Clear();
14547   MergeFrom(from);
14548 }
14549 
IsInitialized() const14550 bool SourceCodeInfo::IsInitialized() const {
14551 
14552   return true;
14553 }
14554 
Swap(SourceCodeInfo * other)14555 void SourceCodeInfo::Swap(SourceCodeInfo* other) {
14556   if (other == this) return;
14557   InternalSwap(other);
14558 }
InternalSwap(SourceCodeInfo * other)14559 void SourceCodeInfo::InternalSwap(SourceCodeInfo* other) {
14560   location_.UnsafeArenaSwap(&other->location_);
14561   std::swap(_has_bits_[0], other->_has_bits_[0]);
14562   _internal_metadata_.Swap(&other->_internal_metadata_);
14563   std::swap(_cached_size_, other->_cached_size_);
14564 }
14565 
GetMetadata() const14566 ::google::protobuf::Metadata SourceCodeInfo::GetMetadata() const {
14567   protobuf_AssignDescriptorsOnce();
14568   ::google::protobuf::Metadata metadata;
14569   metadata.descriptor = SourceCodeInfo_descriptor_;
14570   metadata.reflection = SourceCodeInfo_reflection_;
14571   return metadata;
14572 }
14573 
14574 #if PROTOBUF_INLINE_NOT_IN_HEADERS
14575 // SourceCodeInfo_Location
14576 
14577 // repeated int32 path = 1 [packed = true];
path_size() const14578 int SourceCodeInfo_Location::path_size() const {
14579   return path_.size();
14580 }
clear_path()14581 void SourceCodeInfo_Location::clear_path() {
14582   path_.Clear();
14583 }
path(int index) const14584  ::google::protobuf::int32 SourceCodeInfo_Location::path(int index) const {
14585   // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.path)
14586   return path_.Get(index);
14587 }
set_path(int index,::google::protobuf::int32 value)14588  void SourceCodeInfo_Location::set_path(int index, ::google::protobuf::int32 value) {
14589   path_.Set(index, value);
14590   // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.path)
14591 }
add_path(::google::protobuf::int32 value)14592  void SourceCodeInfo_Location::add_path(::google::protobuf::int32 value) {
14593   path_.Add(value);
14594   // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.path)
14595 }
14596  const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
path() const14597 SourceCodeInfo_Location::path() const {
14598   // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.path)
14599   return path_;
14600 }
14601  ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
mutable_path()14602 SourceCodeInfo_Location::mutable_path() {
14603   // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.path)
14604   return &path_;
14605 }
14606 
14607 // repeated int32 span = 2 [packed = true];
span_size() const14608 int SourceCodeInfo_Location::span_size() const {
14609   return span_.size();
14610 }
clear_span()14611 void SourceCodeInfo_Location::clear_span() {
14612   span_.Clear();
14613 }
span(int index) const14614  ::google::protobuf::int32 SourceCodeInfo_Location::span(int index) const {
14615   // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.span)
14616   return span_.Get(index);
14617 }
set_span(int index,::google::protobuf::int32 value)14618  void SourceCodeInfo_Location::set_span(int index, ::google::protobuf::int32 value) {
14619   span_.Set(index, value);
14620   // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.span)
14621 }
add_span(::google::protobuf::int32 value)14622  void SourceCodeInfo_Location::add_span(::google::protobuf::int32 value) {
14623   span_.Add(value);
14624   // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.span)
14625 }
14626  const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
span() const14627 SourceCodeInfo_Location::span() const {
14628   // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.span)
14629   return span_;
14630 }
14631  ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
mutable_span()14632 SourceCodeInfo_Location::mutable_span() {
14633   // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.span)
14634   return &span_;
14635 }
14636 
14637 // optional string leading_comments = 3;
has_leading_comments() const14638 bool SourceCodeInfo_Location::has_leading_comments() const {
14639   return (_has_bits_[0] & 0x00000004u) != 0;
14640 }
set_has_leading_comments()14641 void SourceCodeInfo_Location::set_has_leading_comments() {
14642   _has_bits_[0] |= 0x00000004u;
14643 }
clear_has_leading_comments()14644 void SourceCodeInfo_Location::clear_has_leading_comments() {
14645   _has_bits_[0] &= ~0x00000004u;
14646 }
clear_leading_comments()14647 void SourceCodeInfo_Location::clear_leading_comments() {
14648   leading_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14649   clear_has_leading_comments();
14650 }
leading_comments() const14651  const ::std::string& SourceCodeInfo_Location::leading_comments() const {
14652   // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_comments)
14653   return leading_comments_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14654 }
set_leading_comments(const::std::string & value)14655  void SourceCodeInfo_Location::set_leading_comments(const ::std::string& value) {
14656   set_has_leading_comments();
14657   leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
14658   // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_comments)
14659 }
set_leading_comments(const char * value)14660  void SourceCodeInfo_Location::set_leading_comments(const char* value) {
14661   set_has_leading_comments();
14662   leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
14663   // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_comments)
14664 }
set_leading_comments(const char * value,size_t size)14665  void SourceCodeInfo_Location::set_leading_comments(const char* value, size_t size) {
14666   set_has_leading_comments();
14667   leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
14668       ::std::string(reinterpret_cast<const char*>(value), size));
14669   // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_comments)
14670 }
mutable_leading_comments()14671  ::std::string* SourceCodeInfo_Location::mutable_leading_comments() {
14672   set_has_leading_comments();
14673   // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_comments)
14674   return leading_comments_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14675 }
release_leading_comments()14676  ::std::string* SourceCodeInfo_Location::release_leading_comments() {
14677   // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Location.leading_comments)
14678   clear_has_leading_comments();
14679   return leading_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14680 }
set_allocated_leading_comments(::std::string * leading_comments)14681  void SourceCodeInfo_Location::set_allocated_leading_comments(::std::string* leading_comments) {
14682   if (leading_comments != NULL) {
14683     set_has_leading_comments();
14684   } else {
14685     clear_has_leading_comments();
14686   }
14687   leading_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), leading_comments);
14688   // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.leading_comments)
14689 }
14690 
14691 // optional string trailing_comments = 4;
has_trailing_comments() const14692 bool SourceCodeInfo_Location::has_trailing_comments() const {
14693   return (_has_bits_[0] & 0x00000008u) != 0;
14694 }
set_has_trailing_comments()14695 void SourceCodeInfo_Location::set_has_trailing_comments() {
14696   _has_bits_[0] |= 0x00000008u;
14697 }
clear_has_trailing_comments()14698 void SourceCodeInfo_Location::clear_has_trailing_comments() {
14699   _has_bits_[0] &= ~0x00000008u;
14700 }
clear_trailing_comments()14701 void SourceCodeInfo_Location::clear_trailing_comments() {
14702   trailing_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14703   clear_has_trailing_comments();
14704 }
trailing_comments() const14705  const ::std::string& SourceCodeInfo_Location::trailing_comments() const {
14706   // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.trailing_comments)
14707   return trailing_comments_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14708 }
set_trailing_comments(const::std::string & value)14709  void SourceCodeInfo_Location::set_trailing_comments(const ::std::string& value) {
14710   set_has_trailing_comments();
14711   trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
14712   // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.trailing_comments)
14713 }
set_trailing_comments(const char * value)14714  void SourceCodeInfo_Location::set_trailing_comments(const char* value) {
14715   set_has_trailing_comments();
14716   trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
14717   // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.trailing_comments)
14718 }
set_trailing_comments(const char * value,size_t size)14719  void SourceCodeInfo_Location::set_trailing_comments(const char* value, size_t size) {
14720   set_has_trailing_comments();
14721   trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
14722       ::std::string(reinterpret_cast<const char*>(value), size));
14723   // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.trailing_comments)
14724 }
mutable_trailing_comments()14725  ::std::string* SourceCodeInfo_Location::mutable_trailing_comments() {
14726   set_has_trailing_comments();
14727   // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.trailing_comments)
14728   return trailing_comments_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14729 }
release_trailing_comments()14730  ::std::string* SourceCodeInfo_Location::release_trailing_comments() {
14731   // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Location.trailing_comments)
14732   clear_has_trailing_comments();
14733   return trailing_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14734 }
set_allocated_trailing_comments(::std::string * trailing_comments)14735  void SourceCodeInfo_Location::set_allocated_trailing_comments(::std::string* trailing_comments) {
14736   if (trailing_comments != NULL) {
14737     set_has_trailing_comments();
14738   } else {
14739     clear_has_trailing_comments();
14740   }
14741   trailing_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), trailing_comments);
14742   // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.trailing_comments)
14743 }
14744 
14745 // repeated string leading_detached_comments = 6;
leading_detached_comments_size() const14746 int SourceCodeInfo_Location::leading_detached_comments_size() const {
14747   return leading_detached_comments_.size();
14748 }
clear_leading_detached_comments()14749 void SourceCodeInfo_Location::clear_leading_detached_comments() {
14750   leading_detached_comments_.Clear();
14751 }
leading_detached_comments(int index) const14752  const ::std::string& SourceCodeInfo_Location::leading_detached_comments(int index) const {
14753   // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
14754   return leading_detached_comments_.Get(index);
14755 }
mutable_leading_detached_comments(int index)14756  ::std::string* SourceCodeInfo_Location::mutable_leading_detached_comments(int index) {
14757   // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
14758   return leading_detached_comments_.Mutable(index);
14759 }
set_leading_detached_comments(int index,const::std::string & value)14760  void SourceCodeInfo_Location::set_leading_detached_comments(int index, const ::std::string& value) {
14761   // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
14762   leading_detached_comments_.Mutable(index)->assign(value);
14763 }
set_leading_detached_comments(int index,const char * value)14764  void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value) {
14765   leading_detached_comments_.Mutable(index)->assign(value);
14766   // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
14767 }
set_leading_detached_comments(int index,const char * value,size_t size)14768  void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value, size_t size) {
14769   leading_detached_comments_.Mutable(index)->assign(
14770     reinterpret_cast<const char*>(value), size);
14771   // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
14772 }
add_leading_detached_comments()14773  ::std::string* SourceCodeInfo_Location::add_leading_detached_comments() {
14774   // @@protoc_insertion_point(field_add_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
14775   return leading_detached_comments_.Add();
14776 }
add_leading_detached_comments(const::std::string & value)14777  void SourceCodeInfo_Location::add_leading_detached_comments(const ::std::string& value) {
14778   leading_detached_comments_.Add()->assign(value);
14779   // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
14780 }
add_leading_detached_comments(const char * value)14781  void SourceCodeInfo_Location::add_leading_detached_comments(const char* value) {
14782   leading_detached_comments_.Add()->assign(value);
14783   // @@protoc_insertion_point(field_add_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
14784 }
add_leading_detached_comments(const char * value,size_t size)14785  void SourceCodeInfo_Location::add_leading_detached_comments(const char* value, size_t size) {
14786   leading_detached_comments_.Add()->assign(reinterpret_cast<const char*>(value), size);
14787   // @@protoc_insertion_point(field_add_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
14788 }
14789  const ::google::protobuf::RepeatedPtrField< ::std::string>&
leading_detached_comments() const14790 SourceCodeInfo_Location::leading_detached_comments() const {
14791   // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
14792   return leading_detached_comments_;
14793 }
14794  ::google::protobuf::RepeatedPtrField< ::std::string>*
mutable_leading_detached_comments()14795 SourceCodeInfo_Location::mutable_leading_detached_comments() {
14796   // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
14797   return &leading_detached_comments_;
14798 }
14799 
14800 // -------------------------------------------------------------------
14801 
14802 // SourceCodeInfo
14803 
14804 // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
location_size() const14805 int SourceCodeInfo::location_size() const {
14806   return location_.size();
14807 }
clear_location()14808 void SourceCodeInfo::clear_location() {
14809   location_.Clear();
14810 }
location(int index) const14811 const ::google::protobuf::SourceCodeInfo_Location& SourceCodeInfo::location(int index) const {
14812   // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.location)
14813   return location_.Get(index);
14814 }
mutable_location(int index)14815 ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::mutable_location(int index) {
14816   // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.location)
14817   return location_.Mutable(index);
14818 }
add_location()14819 ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::add_location() {
14820   // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.location)
14821   return location_.Add();
14822 }
14823 ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >*
mutable_location()14824 SourceCodeInfo::mutable_location() {
14825   // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.location)
14826   return &location_;
14827 }
14828 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >&
location() const14829 SourceCodeInfo::location() const {
14830   // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.location)
14831   return location_;
14832 }
14833 
14834 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
14835 
14836 // ===================================================================
14837 
14838 #if !defined(_MSC_VER) || _MSC_VER >= 1900
14839 const int GeneratedCodeInfo_Annotation::kPathFieldNumber;
14840 const int GeneratedCodeInfo_Annotation::kSourceFileFieldNumber;
14841 const int GeneratedCodeInfo_Annotation::kBeginFieldNumber;
14842 const int GeneratedCodeInfo_Annotation::kEndFieldNumber;
14843 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
14844 
GeneratedCodeInfo_Annotation()14845 GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation()
14846   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
14847   SharedCtor();
14848   // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo.Annotation)
14849 }
14850 
InitAsDefaultInstance()14851 void GeneratedCodeInfo_Annotation::InitAsDefaultInstance() {
14852 }
14853 
GeneratedCodeInfo_Annotation(const GeneratedCodeInfo_Annotation & from)14854 GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(const GeneratedCodeInfo_Annotation& from)
14855   : ::google::protobuf::Message(),
14856     _internal_metadata_(NULL) {
14857   SharedCtor();
14858   MergeFrom(from);
14859   // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo.Annotation)
14860 }
14861 
SharedCtor()14862 void GeneratedCodeInfo_Annotation::SharedCtor() {
14863   ::google::protobuf::internal::GetEmptyString();
14864   _cached_size_ = 0;
14865   source_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14866   begin_ = 0;
14867   end_ = 0;
14868   ::memset(_has_bits_, 0, sizeof(_has_bits_));
14869 }
14870 
~GeneratedCodeInfo_Annotation()14871 GeneratedCodeInfo_Annotation::~GeneratedCodeInfo_Annotation() {
14872   // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo.Annotation)
14873   SharedDtor();
14874 }
14875 
SharedDtor()14876 void GeneratedCodeInfo_Annotation::SharedDtor() {
14877   source_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14878   if (this != default_instance_) {
14879   }
14880 }
14881 
SetCachedSize(int size) const14882 void GeneratedCodeInfo_Annotation::SetCachedSize(int size) const {
14883   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14884   _cached_size_ = size;
14885   GOOGLE_SAFE_CONCURRENT_WRITES_END();
14886 }
descriptor()14887 const ::google::protobuf::Descriptor* GeneratedCodeInfo_Annotation::descriptor() {
14888   protobuf_AssignDescriptorsOnce();
14889   return GeneratedCodeInfo_Annotation_descriptor_;
14890 }
14891 
default_instance()14892 const GeneratedCodeInfo_Annotation& GeneratedCodeInfo_Annotation::default_instance() {
14893   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
14894   return *default_instance_;
14895 }
14896 
14897 GeneratedCodeInfo_Annotation* GeneratedCodeInfo_Annotation::default_instance_ = NULL;
14898 
New(::google::protobuf::Arena * arena) const14899 GeneratedCodeInfo_Annotation* GeneratedCodeInfo_Annotation::New(::google::protobuf::Arena* arena) const {
14900   GeneratedCodeInfo_Annotation* n = new GeneratedCodeInfo_Annotation;
14901   if (arena != NULL) {
14902     arena->Own(n);
14903   }
14904   return n;
14905 }
14906 
Clear()14907 void GeneratedCodeInfo_Annotation::Clear() {
14908 // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInfo.Annotation)
14909 #if defined(__clang__)
14910 #define ZR_HELPER_(f) \
14911   _Pragma("clang diagnostic push") \
14912   _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
14913   __builtin_offsetof(GeneratedCodeInfo_Annotation, f) \
14914   _Pragma("clang diagnostic pop")
14915 #else
14916 #define ZR_HELPER_(f) reinterpret_cast<char*>(\
14917   &reinterpret_cast<GeneratedCodeInfo_Annotation*>(16)->f)
14918 #endif
14919 
14920 #define ZR_(first, last) do {\
14921   ::memset(&first, 0,\
14922            ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
14923 } while (0)
14924 
14925   if (_has_bits_[0 / 32] & 14u) {
14926     ZR_(begin_, end_);
14927     if (has_source_file()) {
14928       source_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14929     }
14930   }
14931 
14932 #undef ZR_HELPER_
14933 #undef ZR_
14934 
14935   path_.Clear();
14936   ::memset(_has_bits_, 0, sizeof(_has_bits_));
14937   if (_internal_metadata_.have_unknown_fields()) {
14938     mutable_unknown_fields()->Clear();
14939   }
14940 }
14941 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)14942 bool GeneratedCodeInfo_Annotation::MergePartialFromCodedStream(
14943     ::google::protobuf::io::CodedInputStream* input) {
14944 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
14945   ::google::protobuf::uint32 tag;
14946   // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo.Annotation)
14947   for (;;) {
14948     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
14949     tag = p.first;
14950     if (!p.second) goto handle_unusual;
14951     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
14952       // repeated int32 path = 1 [packed = true];
14953       case 1: {
14954         if (tag == 10) {
14955           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
14956                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
14957                  input, this->mutable_path())));
14958         } else if (tag == 8) {
14959           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
14960                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
14961                  1, 10, input, this->mutable_path())));
14962         } else {
14963           goto handle_unusual;
14964         }
14965         if (input->ExpectTag(18)) goto parse_source_file;
14966         break;
14967       }
14968 
14969       // optional string source_file = 2;
14970       case 2: {
14971         if (tag == 18) {
14972          parse_source_file:
14973           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
14974                 input, this->mutable_source_file()));
14975           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14976             this->source_file().data(), this->source_file().length(),
14977             ::google::protobuf::internal::WireFormat::PARSE,
14978             "google.protobuf.GeneratedCodeInfo.Annotation.source_file");
14979         } else {
14980           goto handle_unusual;
14981         }
14982         if (input->ExpectTag(24)) goto parse_begin;
14983         break;
14984       }
14985 
14986       // optional int32 begin = 3;
14987       case 3: {
14988         if (tag == 24) {
14989          parse_begin:
14990           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
14991                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
14992                  input, &begin_)));
14993           set_has_begin();
14994         } else {
14995           goto handle_unusual;
14996         }
14997         if (input->ExpectTag(32)) goto parse_end;
14998         break;
14999       }
15000 
15001       // optional int32 end = 4;
15002       case 4: {
15003         if (tag == 32) {
15004          parse_end:
15005           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
15006                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
15007                  input, &end_)));
15008           set_has_end();
15009         } else {
15010           goto handle_unusual;
15011         }
15012         if (input->ExpectAtEnd()) goto success;
15013         break;
15014       }
15015 
15016       default: {
15017       handle_unusual:
15018         if (tag == 0 ||
15019             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
15020             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
15021           goto success;
15022         }
15023         DO_(::google::protobuf::internal::WireFormat::SkipField(
15024               input, tag, mutable_unknown_fields()));
15025         break;
15026       }
15027     }
15028   }
15029 success:
15030   // @@protoc_insertion_point(parse_success:google.protobuf.GeneratedCodeInfo.Annotation)
15031   return true;
15032 failure:
15033   // @@protoc_insertion_point(parse_failure:google.protobuf.GeneratedCodeInfo.Annotation)
15034   return false;
15035 #undef DO_
15036 }
15037 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const15038 void GeneratedCodeInfo_Annotation::SerializeWithCachedSizes(
15039     ::google::protobuf::io::CodedOutputStream* output) const {
15040   // @@protoc_insertion_point(serialize_start:google.protobuf.GeneratedCodeInfo.Annotation)
15041   // repeated int32 path = 1 [packed = true];
15042   if (this->path_size() > 0) {
15043     ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
15044     output->WriteVarint32(_path_cached_byte_size_);
15045   }
15046   for (int i = 0; i < this->path_size(); i++) {
15047     ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
15048       this->path(i), output);
15049   }
15050 
15051   // optional string source_file = 2;
15052   if (has_source_file()) {
15053     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
15054       this->source_file().data(), this->source_file().length(),
15055       ::google::protobuf::internal::WireFormat::SERIALIZE,
15056       "google.protobuf.GeneratedCodeInfo.Annotation.source_file");
15057     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
15058       2, this->source_file(), output);
15059   }
15060 
15061   // optional int32 begin = 3;
15062   if (has_begin()) {
15063     ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->begin(), output);
15064   }
15065 
15066   // optional int32 end = 4;
15067   if (has_end()) {
15068     ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->end(), output);
15069   }
15070 
15071   if (_internal_metadata_.have_unknown_fields()) {
15072     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
15073         unknown_fields(), output);
15074   }
15075   // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo.Annotation)
15076 }
15077 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const15078 ::google::protobuf::uint8* GeneratedCodeInfo_Annotation::InternalSerializeWithCachedSizesToArray(
15079     bool deterministic, ::google::protobuf::uint8* target) const {
15080   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.GeneratedCodeInfo.Annotation)
15081   // repeated int32 path = 1 [packed = true];
15082   if (this->path_size() > 0) {
15083     target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
15084       1,
15085       ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
15086       target);
15087     target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
15088       _path_cached_byte_size_, target);
15089   }
15090   for (int i = 0; i < this->path_size(); i++) {
15091     target = ::google::protobuf::internal::WireFormatLite::
15092       WriteInt32NoTagToArray(this->path(i), target);
15093   }
15094 
15095   // optional string source_file = 2;
15096   if (has_source_file()) {
15097     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
15098       this->source_file().data(), this->source_file().length(),
15099       ::google::protobuf::internal::WireFormat::SERIALIZE,
15100       "google.protobuf.GeneratedCodeInfo.Annotation.source_file");
15101     target =
15102       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
15103         2, this->source_file(), target);
15104   }
15105 
15106   // optional int32 begin = 3;
15107   if (has_begin()) {
15108     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->begin(), target);
15109   }
15110 
15111   // optional int32 end = 4;
15112   if (has_end()) {
15113     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->end(), target);
15114   }
15115 
15116   if (_internal_metadata_.have_unknown_fields()) {
15117     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
15118         unknown_fields(), target);
15119   }
15120   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCodeInfo.Annotation)
15121   return target;
15122 }
15123 
ByteSize() const15124 int GeneratedCodeInfo_Annotation::ByteSize() const {
15125 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCodeInfo.Annotation)
15126   int total_size = 0;
15127 
15128   if (_has_bits_[1 / 32] & 14u) {
15129     // optional string source_file = 2;
15130     if (has_source_file()) {
15131       total_size += 1 +
15132         ::google::protobuf::internal::WireFormatLite::StringSize(
15133           this->source_file());
15134     }
15135 
15136     // optional int32 begin = 3;
15137     if (has_begin()) {
15138       total_size += 1 +
15139         ::google::protobuf::internal::WireFormatLite::Int32Size(
15140           this->begin());
15141     }
15142 
15143     // optional int32 end = 4;
15144     if (has_end()) {
15145       total_size += 1 +
15146         ::google::protobuf::internal::WireFormatLite::Int32Size(
15147           this->end());
15148     }
15149 
15150   }
15151   // repeated int32 path = 1 [packed = true];
15152   {
15153     int data_size = 0;
15154     for (int i = 0; i < this->path_size(); i++) {
15155       data_size += ::google::protobuf::internal::WireFormatLite::
15156         Int32Size(this->path(i));
15157     }
15158     if (data_size > 0) {
15159       total_size += 1 +
15160         ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
15161     }
15162     GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
15163     _path_cached_byte_size_ = data_size;
15164     GOOGLE_SAFE_CONCURRENT_WRITES_END();
15165     total_size += data_size;
15166   }
15167 
15168   if (_internal_metadata_.have_unknown_fields()) {
15169     total_size +=
15170       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
15171         unknown_fields());
15172   }
15173   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
15174   _cached_size_ = total_size;
15175   GOOGLE_SAFE_CONCURRENT_WRITES_END();
15176   return total_size;
15177 }
15178 
MergeFrom(const::google::protobuf::Message & from)15179 void GeneratedCodeInfo_Annotation::MergeFrom(const ::google::protobuf::Message& from) {
15180 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.GeneratedCodeInfo.Annotation)
15181   if (GOOGLE_PREDICT_FALSE(&from == this)) {
15182     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
15183   }
15184   const GeneratedCodeInfo_Annotation* source =
15185       ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeInfo_Annotation>(
15186           &from);
15187   if (source == NULL) {
15188   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.GeneratedCodeInfo.Annotation)
15189     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
15190   } else {
15191   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.GeneratedCodeInfo.Annotation)
15192     MergeFrom(*source);
15193   }
15194 }
15195 
MergeFrom(const GeneratedCodeInfo_Annotation & from)15196 void GeneratedCodeInfo_Annotation::MergeFrom(const GeneratedCodeInfo_Annotation& from) {
15197 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.GeneratedCodeInfo.Annotation)
15198   if (GOOGLE_PREDICT_FALSE(&from == this)) {
15199     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
15200   }
15201   path_.MergeFrom(from.path_);
15202   if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
15203     if (from.has_source_file()) {
15204       set_has_source_file();
15205       source_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_file_);
15206     }
15207     if (from.has_begin()) {
15208       set_begin(from.begin());
15209     }
15210     if (from.has_end()) {
15211       set_end(from.end());
15212     }
15213   }
15214   if (from._internal_metadata_.have_unknown_fields()) {
15215     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
15216   }
15217 }
15218 
CopyFrom(const::google::protobuf::Message & from)15219 void GeneratedCodeInfo_Annotation::CopyFrom(const ::google::protobuf::Message& from) {
15220 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.GeneratedCodeInfo.Annotation)
15221   if (&from == this) return;
15222   Clear();
15223   MergeFrom(from);
15224 }
15225 
CopyFrom(const GeneratedCodeInfo_Annotation & from)15226 void GeneratedCodeInfo_Annotation::CopyFrom(const GeneratedCodeInfo_Annotation& from) {
15227 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.GeneratedCodeInfo.Annotation)
15228   if (&from == this) return;
15229   Clear();
15230   MergeFrom(from);
15231 }
15232 
IsInitialized() const15233 bool GeneratedCodeInfo_Annotation::IsInitialized() const {
15234 
15235   return true;
15236 }
15237 
Swap(GeneratedCodeInfo_Annotation * other)15238 void GeneratedCodeInfo_Annotation::Swap(GeneratedCodeInfo_Annotation* other) {
15239   if (other == this) return;
15240   InternalSwap(other);
15241 }
InternalSwap(GeneratedCodeInfo_Annotation * other)15242 void GeneratedCodeInfo_Annotation::InternalSwap(GeneratedCodeInfo_Annotation* other) {
15243   path_.UnsafeArenaSwap(&other->path_);
15244   source_file_.Swap(&other->source_file_);
15245   std::swap(begin_, other->begin_);
15246   std::swap(end_, other->end_);
15247   std::swap(_has_bits_[0], other->_has_bits_[0]);
15248   _internal_metadata_.Swap(&other->_internal_metadata_);
15249   std::swap(_cached_size_, other->_cached_size_);
15250 }
15251 
GetMetadata() const15252 ::google::protobuf::Metadata GeneratedCodeInfo_Annotation::GetMetadata() const {
15253   protobuf_AssignDescriptorsOnce();
15254   ::google::protobuf::Metadata metadata;
15255   metadata.descriptor = GeneratedCodeInfo_Annotation_descriptor_;
15256   metadata.reflection = GeneratedCodeInfo_Annotation_reflection_;
15257   return metadata;
15258 }
15259 
15260 
15261 // -------------------------------------------------------------------
15262 
15263 #if !defined(_MSC_VER) || _MSC_VER >= 1900
15264 const int GeneratedCodeInfo::kAnnotationFieldNumber;
15265 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
15266 
GeneratedCodeInfo()15267 GeneratedCodeInfo::GeneratedCodeInfo()
15268   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
15269   SharedCtor();
15270   // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo)
15271 }
15272 
InitAsDefaultInstance()15273 void GeneratedCodeInfo::InitAsDefaultInstance() {
15274 }
15275 
GeneratedCodeInfo(const GeneratedCodeInfo & from)15276 GeneratedCodeInfo::GeneratedCodeInfo(const GeneratedCodeInfo& from)
15277   : ::google::protobuf::Message(),
15278     _internal_metadata_(NULL) {
15279   SharedCtor();
15280   MergeFrom(from);
15281   // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo)
15282 }
15283 
SharedCtor()15284 void GeneratedCodeInfo::SharedCtor() {
15285   _cached_size_ = 0;
15286   ::memset(_has_bits_, 0, sizeof(_has_bits_));
15287 }
15288 
~GeneratedCodeInfo()15289 GeneratedCodeInfo::~GeneratedCodeInfo() {
15290   // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo)
15291   SharedDtor();
15292 }
15293 
SharedDtor()15294 void GeneratedCodeInfo::SharedDtor() {
15295   if (this != default_instance_) {
15296   }
15297 }
15298 
SetCachedSize(int size) const15299 void GeneratedCodeInfo::SetCachedSize(int size) const {
15300   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
15301   _cached_size_ = size;
15302   GOOGLE_SAFE_CONCURRENT_WRITES_END();
15303 }
descriptor()15304 const ::google::protobuf::Descriptor* GeneratedCodeInfo::descriptor() {
15305   protobuf_AssignDescriptorsOnce();
15306   return GeneratedCodeInfo_descriptor_;
15307 }
15308 
default_instance()15309 const GeneratedCodeInfo& GeneratedCodeInfo::default_instance() {
15310   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
15311   return *default_instance_;
15312 }
15313 
15314 GeneratedCodeInfo* GeneratedCodeInfo::default_instance_ = NULL;
15315 
New(::google::protobuf::Arena * arena) const15316 GeneratedCodeInfo* GeneratedCodeInfo::New(::google::protobuf::Arena* arena) const {
15317   GeneratedCodeInfo* n = new GeneratedCodeInfo;
15318   if (arena != NULL) {
15319     arena->Own(n);
15320   }
15321   return n;
15322 }
15323 
Clear()15324 void GeneratedCodeInfo::Clear() {
15325 // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInfo)
15326   annotation_.Clear();
15327   ::memset(_has_bits_, 0, sizeof(_has_bits_));
15328   if (_internal_metadata_.have_unknown_fields()) {
15329     mutable_unknown_fields()->Clear();
15330   }
15331 }
15332 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)15333 bool GeneratedCodeInfo::MergePartialFromCodedStream(
15334     ::google::protobuf::io::CodedInputStream* input) {
15335 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
15336   ::google::protobuf::uint32 tag;
15337   // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo)
15338   for (;;) {
15339     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
15340     tag = p.first;
15341     if (!p.second) goto handle_unusual;
15342     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
15343       // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
15344       case 1: {
15345         if (tag == 10) {
15346           DO_(input->IncrementRecursionDepth());
15347          parse_loop_annotation:
15348           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
15349                 input, add_annotation()));
15350         } else {
15351           goto handle_unusual;
15352         }
15353         if (input->ExpectTag(10)) goto parse_loop_annotation;
15354         input->UnsafeDecrementRecursionDepth();
15355         if (input->ExpectAtEnd()) goto success;
15356         break;
15357       }
15358 
15359       default: {
15360       handle_unusual:
15361         if (tag == 0 ||
15362             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
15363             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
15364           goto success;
15365         }
15366         DO_(::google::protobuf::internal::WireFormat::SkipField(
15367               input, tag, mutable_unknown_fields()));
15368         break;
15369       }
15370     }
15371   }
15372 success:
15373   // @@protoc_insertion_point(parse_success:google.protobuf.GeneratedCodeInfo)
15374   return true;
15375 failure:
15376   // @@protoc_insertion_point(parse_failure:google.protobuf.GeneratedCodeInfo)
15377   return false;
15378 #undef DO_
15379 }
15380 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const15381 void GeneratedCodeInfo::SerializeWithCachedSizes(
15382     ::google::protobuf::io::CodedOutputStream* output) const {
15383   // @@protoc_insertion_point(serialize_start:google.protobuf.GeneratedCodeInfo)
15384   // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
15385   for (unsigned int i = 0, n = this->annotation_size(); i < n; i++) {
15386     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15387       1, this->annotation(i), output);
15388   }
15389 
15390   if (_internal_metadata_.have_unknown_fields()) {
15391     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
15392         unknown_fields(), output);
15393   }
15394   // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo)
15395 }
15396 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const15397 ::google::protobuf::uint8* GeneratedCodeInfo::InternalSerializeWithCachedSizesToArray(
15398     bool deterministic, ::google::protobuf::uint8* target) const {
15399   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.GeneratedCodeInfo)
15400   // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
15401   for (unsigned int i = 0, n = this->annotation_size(); i < n; i++) {
15402     target = ::google::protobuf::internal::WireFormatLite::
15403       InternalWriteMessageNoVirtualToArray(
15404         1, this->annotation(i), false, target);
15405   }
15406 
15407   if (_internal_metadata_.have_unknown_fields()) {
15408     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
15409         unknown_fields(), target);
15410   }
15411   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCodeInfo)
15412   return target;
15413 }
15414 
ByteSize() const15415 int GeneratedCodeInfo::ByteSize() const {
15416 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCodeInfo)
15417   int total_size = 0;
15418 
15419   // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
15420   total_size += 1 * this->annotation_size();
15421   for (int i = 0; i < this->annotation_size(); i++) {
15422     total_size +=
15423       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
15424         this->annotation(i));
15425   }
15426 
15427   if (_internal_metadata_.have_unknown_fields()) {
15428     total_size +=
15429       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
15430         unknown_fields());
15431   }
15432   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
15433   _cached_size_ = total_size;
15434   GOOGLE_SAFE_CONCURRENT_WRITES_END();
15435   return total_size;
15436 }
15437 
MergeFrom(const::google::protobuf::Message & from)15438 void GeneratedCodeInfo::MergeFrom(const ::google::protobuf::Message& from) {
15439 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.GeneratedCodeInfo)
15440   if (GOOGLE_PREDICT_FALSE(&from == this)) {
15441     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
15442   }
15443   const GeneratedCodeInfo* source =
15444       ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeInfo>(
15445           &from);
15446   if (source == NULL) {
15447   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.GeneratedCodeInfo)
15448     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
15449   } else {
15450   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.GeneratedCodeInfo)
15451     MergeFrom(*source);
15452   }
15453 }
15454 
MergeFrom(const GeneratedCodeInfo & from)15455 void GeneratedCodeInfo::MergeFrom(const GeneratedCodeInfo& from) {
15456 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.GeneratedCodeInfo)
15457   if (GOOGLE_PREDICT_FALSE(&from == this)) {
15458     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
15459   }
15460   annotation_.MergeFrom(from.annotation_);
15461   if (from._internal_metadata_.have_unknown_fields()) {
15462     mutable_unknown_fields()->MergeFrom(from.unknown_fields());
15463   }
15464 }
15465 
CopyFrom(const::google::protobuf::Message & from)15466 void GeneratedCodeInfo::CopyFrom(const ::google::protobuf::Message& from) {
15467 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.GeneratedCodeInfo)
15468   if (&from == this) return;
15469   Clear();
15470   MergeFrom(from);
15471 }
15472 
CopyFrom(const GeneratedCodeInfo & from)15473 void GeneratedCodeInfo::CopyFrom(const GeneratedCodeInfo& from) {
15474 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.GeneratedCodeInfo)
15475   if (&from == this) return;
15476   Clear();
15477   MergeFrom(from);
15478 }
15479 
IsInitialized() const15480 bool GeneratedCodeInfo::IsInitialized() const {
15481 
15482   return true;
15483 }
15484 
Swap(GeneratedCodeInfo * other)15485 void GeneratedCodeInfo::Swap(GeneratedCodeInfo* other) {
15486   if (other == this) return;
15487   InternalSwap(other);
15488 }
InternalSwap(GeneratedCodeInfo * other)15489 void GeneratedCodeInfo::InternalSwap(GeneratedCodeInfo* other) {
15490   annotation_.UnsafeArenaSwap(&other->annotation_);
15491   std::swap(_has_bits_[0], other->_has_bits_[0]);
15492   _internal_metadata_.Swap(&other->_internal_metadata_);
15493   std::swap(_cached_size_, other->_cached_size_);
15494 }
15495 
GetMetadata() const15496 ::google::protobuf::Metadata GeneratedCodeInfo::GetMetadata() const {
15497   protobuf_AssignDescriptorsOnce();
15498   ::google::protobuf::Metadata metadata;
15499   metadata.descriptor = GeneratedCodeInfo_descriptor_;
15500   metadata.reflection = GeneratedCodeInfo_reflection_;
15501   return metadata;
15502 }
15503 
15504 #if PROTOBUF_INLINE_NOT_IN_HEADERS
15505 // GeneratedCodeInfo_Annotation
15506 
15507 // repeated int32 path = 1 [packed = true];
path_size() const15508 int GeneratedCodeInfo_Annotation::path_size() const {
15509   return path_.size();
15510 }
clear_path()15511 void GeneratedCodeInfo_Annotation::clear_path() {
15512   path_.Clear();
15513 }
path(int index) const15514  ::google::protobuf::int32 GeneratedCodeInfo_Annotation::path(int index) const {
15515   // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.path)
15516   return path_.Get(index);
15517 }
set_path(int index,::google::protobuf::int32 value)15518  void GeneratedCodeInfo_Annotation::set_path(int index, ::google::protobuf::int32 value) {
15519   path_.Set(index, value);
15520   // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.path)
15521 }
add_path(::google::protobuf::int32 value)15522  void GeneratedCodeInfo_Annotation::add_path(::google::protobuf::int32 value) {
15523   path_.Add(value);
15524   // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.Annotation.path)
15525 }
15526  const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
path() const15527 GeneratedCodeInfo_Annotation::path() const {
15528   // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.Annotation.path)
15529   return path_;
15530 }
15531  ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
mutable_path()15532 GeneratedCodeInfo_Annotation::mutable_path() {
15533   // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeInfo.Annotation.path)
15534   return &path_;
15535 }
15536 
15537 // optional string source_file = 2;
has_source_file() const15538 bool GeneratedCodeInfo_Annotation::has_source_file() const {
15539   return (_has_bits_[0] & 0x00000002u) != 0;
15540 }
set_has_source_file()15541 void GeneratedCodeInfo_Annotation::set_has_source_file() {
15542   _has_bits_[0] |= 0x00000002u;
15543 }
clear_has_source_file()15544 void GeneratedCodeInfo_Annotation::clear_has_source_file() {
15545   _has_bits_[0] &= ~0x00000002u;
15546 }
clear_source_file()15547 void GeneratedCodeInfo_Annotation::clear_source_file() {
15548   source_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
15549   clear_has_source_file();
15550 }
source_file() const15551  const ::std::string& GeneratedCodeInfo_Annotation::source_file() const {
15552   // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
15553   return source_file_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
15554 }
set_source_file(const::std::string & value)15555  void GeneratedCodeInfo_Annotation::set_source_file(const ::std::string& value) {
15556   set_has_source_file();
15557   source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
15558   // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
15559 }
set_source_file(const char * value)15560  void GeneratedCodeInfo_Annotation::set_source_file(const char* value) {
15561   set_has_source_file();
15562   source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
15563   // @@protoc_insertion_point(field_set_char:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
15564 }
set_source_file(const char * value,size_t size)15565  void GeneratedCodeInfo_Annotation::set_source_file(const char* value, size_t size) {
15566   set_has_source_file();
15567   source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
15568       ::std::string(reinterpret_cast<const char*>(value), size));
15569   // @@protoc_insertion_point(field_set_pointer:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
15570 }
mutable_source_file()15571  ::std::string* GeneratedCodeInfo_Annotation::mutable_source_file() {
15572   set_has_source_file();
15573   // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
15574   return source_file_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
15575 }
release_source_file()15576  ::std::string* GeneratedCodeInfo_Annotation::release_source_file() {
15577   // @@protoc_insertion_point(field_release:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
15578   clear_has_source_file();
15579   return source_file_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
15580 }
set_allocated_source_file(::std::string * source_file)15581  void GeneratedCodeInfo_Annotation::set_allocated_source_file(::std::string* source_file) {
15582   if (source_file != NULL) {
15583     set_has_source_file();
15584   } else {
15585     clear_has_source_file();
15586   }
15587   source_file_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_file);
15588   // @@protoc_insertion_point(field_set_allocated:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
15589 }
15590 
15591 // optional int32 begin = 3;
has_begin() const15592 bool GeneratedCodeInfo_Annotation::has_begin() const {
15593   return (_has_bits_[0] & 0x00000004u) != 0;
15594 }
set_has_begin()15595 void GeneratedCodeInfo_Annotation::set_has_begin() {
15596   _has_bits_[0] |= 0x00000004u;
15597 }
clear_has_begin()15598 void GeneratedCodeInfo_Annotation::clear_has_begin() {
15599   _has_bits_[0] &= ~0x00000004u;
15600 }
clear_begin()15601 void GeneratedCodeInfo_Annotation::clear_begin() {
15602   begin_ = 0;
15603   clear_has_begin();
15604 }
begin() const15605  ::google::protobuf::int32 GeneratedCodeInfo_Annotation::begin() const {
15606   // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.begin)
15607   return begin_;
15608 }
set_begin(::google::protobuf::int32 value)15609  void GeneratedCodeInfo_Annotation::set_begin(::google::protobuf::int32 value) {
15610   set_has_begin();
15611   begin_ = value;
15612   // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.begin)
15613 }
15614 
15615 // optional int32 end = 4;
has_end() const15616 bool GeneratedCodeInfo_Annotation::has_end() const {
15617   return (_has_bits_[0] & 0x00000008u) != 0;
15618 }
set_has_end()15619 void GeneratedCodeInfo_Annotation::set_has_end() {
15620   _has_bits_[0] |= 0x00000008u;
15621 }
clear_has_end()15622 void GeneratedCodeInfo_Annotation::clear_has_end() {
15623   _has_bits_[0] &= ~0x00000008u;
15624 }
clear_end()15625 void GeneratedCodeInfo_Annotation::clear_end() {
15626   end_ = 0;
15627   clear_has_end();
15628 }
end() const15629  ::google::protobuf::int32 GeneratedCodeInfo_Annotation::end() const {
15630   // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.end)
15631   return end_;
15632 }
set_end(::google::protobuf::int32 value)15633  void GeneratedCodeInfo_Annotation::set_end(::google::protobuf::int32 value) {
15634   set_has_end();
15635   end_ = value;
15636   // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.end)
15637 }
15638 
15639 // -------------------------------------------------------------------
15640 
15641 // GeneratedCodeInfo
15642 
15643 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
annotation_size() const15644 int GeneratedCodeInfo::annotation_size() const {
15645   return annotation_.size();
15646 }
clear_annotation()15647 void GeneratedCodeInfo::clear_annotation() {
15648   annotation_.Clear();
15649 }
annotation(int index) const15650 const ::google::protobuf::GeneratedCodeInfo_Annotation& GeneratedCodeInfo::annotation(int index) const {
15651   // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.annotation)
15652   return annotation_.Get(index);
15653 }
mutable_annotation(int index)15654 ::google::protobuf::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::mutable_annotation(int index) {
15655   // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.annotation)
15656   return annotation_.Mutable(index);
15657 }
add_annotation()15658 ::google::protobuf::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::add_annotation() {
15659   // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.annotation)
15660   return annotation_.Add();
15661 }
15662 ::google::protobuf::RepeatedPtrField< ::google::protobuf::GeneratedCodeInfo_Annotation >*
mutable_annotation()15663 GeneratedCodeInfo::mutable_annotation() {
15664   // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeInfo.annotation)
15665   return &annotation_;
15666 }
15667 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::GeneratedCodeInfo_Annotation >&
annotation() const15668 GeneratedCodeInfo::annotation() const {
15669   // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.annotation)
15670   return annotation_;
15671 }
15672 
15673 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
15674 
15675 // @@protoc_insertion_point(namespace_scope)
15676 
15677 }  // namespace protobuf
15678 }  // namespace google
15679 
15680 // @@protoc_insertion_point(global_scope)
15681