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