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* EnumOptions_descriptor_ = NULL;
73 const ::google::protobuf::internal::GeneratedMessageReflection*
74 EnumOptions_reflection_ = NULL;
75 const ::google::protobuf::Descriptor* EnumValueOptions_descriptor_ = NULL;
76 const ::google::protobuf::internal::GeneratedMessageReflection*
77 EnumValueOptions_reflection_ = NULL;
78 const ::google::protobuf::Descriptor* ServiceOptions_descriptor_ = NULL;
79 const ::google::protobuf::internal::GeneratedMessageReflection*
80 ServiceOptions_reflection_ = NULL;
81 const ::google::protobuf::Descriptor* MethodOptions_descriptor_ = NULL;
82 const ::google::protobuf::internal::GeneratedMessageReflection*
83 MethodOptions_reflection_ = NULL;
84 const ::google::protobuf::Descriptor* UninterpretedOption_descriptor_ = NULL;
85 const ::google::protobuf::internal::GeneratedMessageReflection*
86 UninterpretedOption_reflection_ = NULL;
87 const ::google::protobuf::Descriptor* UninterpretedOption_NamePart_descriptor_ = NULL;
88 const ::google::protobuf::internal::GeneratedMessageReflection*
89 UninterpretedOption_NamePart_reflection_ = NULL;
90 const ::google::protobuf::Descriptor* SourceCodeInfo_descriptor_ = NULL;
91 const ::google::protobuf::internal::GeneratedMessageReflection*
92 SourceCodeInfo_reflection_ = NULL;
93 const ::google::protobuf::Descriptor* SourceCodeInfo_Location_descriptor_ = NULL;
94 const ::google::protobuf::internal::GeneratedMessageReflection*
95 SourceCodeInfo_Location_reflection_ = NULL;
96 const ::google::protobuf::Descriptor* GeneratedCodeInfo_descriptor_ = NULL;
97 const ::google::protobuf::internal::GeneratedMessageReflection*
98 GeneratedCodeInfo_reflection_ = NULL;
99 const ::google::protobuf::Descriptor* GeneratedCodeInfo_Annotation_descriptor_ = NULL;
100 const ::google::protobuf::internal::GeneratedMessageReflection*
101 GeneratedCodeInfo_Annotation_reflection_ = NULL;
102
103 } // namespace
104
105
protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()106 void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() {
107 protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
108 const ::google::protobuf::FileDescriptor* file =
109 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
110 "google/protobuf/descriptor.proto");
111 GOOGLE_CHECK(file != NULL);
112 FileDescriptorSet_descriptor_ = file->message_type(0);
113 static const int FileDescriptorSet_offsets_[1] = {
114 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, file_),
115 };
116 FileDescriptorSet_reflection_ =
117 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
118 FileDescriptorSet_descriptor_,
119 FileDescriptorSet::default_instance_,
120 FileDescriptorSet_offsets_,
121 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _has_bits_[0]),
122 -1,
123 -1,
124 sizeof(FileDescriptorSet),
125 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _internal_metadata_),
126 -1);
127 FileDescriptorProto_descriptor_ = file->message_type(1);
128 static const int FileDescriptorProto_offsets_[12] = {
129 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, name_),
130 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, package_),
131 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, dependency_),
132 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, public_dependency_),
133 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, weak_dependency_),
134 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, message_type_),
135 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, enum_type_),
136 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, service_),
137 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, extension_),
138 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, options_),
139 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, source_code_info_),
140 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, syntax_),
141 };
142 FileDescriptorProto_reflection_ =
143 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
144 FileDescriptorProto_descriptor_,
145 FileDescriptorProto::default_instance_,
146 FileDescriptorProto_offsets_,
147 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _has_bits_[0]),
148 -1,
149 -1,
150 sizeof(FileDescriptorProto),
151 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _internal_metadata_),
152 -1);
153 DescriptorProto_descriptor_ = file->message_type(2);
154 static const int DescriptorProto_offsets_[10] = {
155 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, name_),
156 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, field_),
157 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_),
158 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, nested_type_),
159 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, enum_type_),
160 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_range_),
161 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, oneof_decl_),
162 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, options_),
163 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_range_),
164 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_name_),
165 };
166 DescriptorProto_reflection_ =
167 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
168 DescriptorProto_descriptor_,
169 DescriptorProto::default_instance_,
170 DescriptorProto_offsets_,
171 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _has_bits_[0]),
172 -1,
173 -1,
174 sizeof(DescriptorProto),
175 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _internal_metadata_),
176 -1);
177 DescriptorProto_ExtensionRange_descriptor_ = DescriptorProto_descriptor_->nested_type(0);
178 static const int DescriptorProto_ExtensionRange_offsets_[2] = {
179 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, start_),
180 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, end_),
181 };
182 DescriptorProto_ExtensionRange_reflection_ =
183 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
184 DescriptorProto_ExtensionRange_descriptor_,
185 DescriptorProto_ExtensionRange::default_instance_,
186 DescriptorProto_ExtensionRange_offsets_,
187 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _has_bits_[0]),
188 -1,
189 -1,
190 sizeof(DescriptorProto_ExtensionRange),
191 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _internal_metadata_),
192 -1);
193 DescriptorProto_ReservedRange_descriptor_ = DescriptorProto_descriptor_->nested_type(1);
194 static const int DescriptorProto_ReservedRange_offsets_[2] = {
195 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, start_),
196 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, end_),
197 };
198 DescriptorProto_ReservedRange_reflection_ =
199 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
200 DescriptorProto_ReservedRange_descriptor_,
201 DescriptorProto_ReservedRange::default_instance_,
202 DescriptorProto_ReservedRange_offsets_,
203 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, _has_bits_[0]),
204 -1,
205 -1,
206 sizeof(DescriptorProto_ReservedRange),
207 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, _internal_metadata_),
208 -1);
209 FieldDescriptorProto_descriptor_ = file->message_type(3);
210 static const int FieldDescriptorProto_offsets_[10] = {
211 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, name_),
212 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, number_),
213 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, label_),
214 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_),
215 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_name_),
216 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, extendee_),
217 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, default_value_),
218 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, oneof_index_),
219 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, json_name_),
220 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, options_),
221 };
222 FieldDescriptorProto_reflection_ =
223 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
224 FieldDescriptorProto_descriptor_,
225 FieldDescriptorProto::default_instance_,
226 FieldDescriptorProto_offsets_,
227 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _has_bits_[0]),
228 -1,
229 -1,
230 sizeof(FieldDescriptorProto),
231 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _internal_metadata_),
232 -1);
233 FieldDescriptorProto_Type_descriptor_ = FieldDescriptorProto_descriptor_->enum_type(0);
234 FieldDescriptorProto_Label_descriptor_ = FieldDescriptorProto_descriptor_->enum_type(1);
235 OneofDescriptorProto_descriptor_ = file->message_type(4);
236 static const int OneofDescriptorProto_offsets_[1] = {
237 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, name_),
238 };
239 OneofDescriptorProto_reflection_ =
240 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
241 OneofDescriptorProto_descriptor_,
242 OneofDescriptorProto::default_instance_,
243 OneofDescriptorProto_offsets_,
244 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _has_bits_[0]),
245 -1,
246 -1,
247 sizeof(OneofDescriptorProto),
248 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _internal_metadata_),
249 -1);
250 EnumDescriptorProto_descriptor_ = file->message_type(5);
251 static const int EnumDescriptorProto_offsets_[3] = {
252 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, name_),
253 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, value_),
254 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, options_),
255 };
256 EnumDescriptorProto_reflection_ =
257 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
258 EnumDescriptorProto_descriptor_,
259 EnumDescriptorProto::default_instance_,
260 EnumDescriptorProto_offsets_,
261 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _has_bits_[0]),
262 -1,
263 -1,
264 sizeof(EnumDescriptorProto),
265 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _internal_metadata_),
266 -1);
267 EnumValueDescriptorProto_descriptor_ = file->message_type(6);
268 static const int EnumValueDescriptorProto_offsets_[3] = {
269 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, name_),
270 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, number_),
271 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, options_),
272 };
273 EnumValueDescriptorProto_reflection_ =
274 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
275 EnumValueDescriptorProto_descriptor_,
276 EnumValueDescriptorProto::default_instance_,
277 EnumValueDescriptorProto_offsets_,
278 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _has_bits_[0]),
279 -1,
280 -1,
281 sizeof(EnumValueDescriptorProto),
282 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _internal_metadata_),
283 -1);
284 ServiceDescriptorProto_descriptor_ = file->message_type(7);
285 static const int ServiceDescriptorProto_offsets_[3] = {
286 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, name_),
287 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, method_),
288 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, options_),
289 };
290 ServiceDescriptorProto_reflection_ =
291 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
292 ServiceDescriptorProto_descriptor_,
293 ServiceDescriptorProto::default_instance_,
294 ServiceDescriptorProto_offsets_,
295 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _has_bits_[0]),
296 -1,
297 -1,
298 sizeof(ServiceDescriptorProto),
299 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _internal_metadata_),
300 -1);
301 MethodDescriptorProto_descriptor_ = file->message_type(8);
302 static const int MethodDescriptorProto_offsets_[6] = {
303 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, name_),
304 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, input_type_),
305 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, output_type_),
306 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, options_),
307 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, client_streaming_),
308 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, server_streaming_),
309 };
310 MethodDescriptorProto_reflection_ =
311 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
312 MethodDescriptorProto_descriptor_,
313 MethodDescriptorProto::default_instance_,
314 MethodDescriptorProto_offsets_,
315 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _has_bits_[0]),
316 -1,
317 -1,
318 sizeof(MethodDescriptorProto),
319 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _internal_metadata_),
320 -1);
321 FileOptions_descriptor_ = file->message_type(9);
322 static const int FileOptions_offsets_[15] = {
323 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_package_),
324 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_outer_classname_),
325 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_multiple_files_),
326 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generate_equals_and_hash_),
327 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_string_check_utf8_),
328 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, optimize_for_),
329 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, go_package_),
330 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_generic_services_),
331 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generic_services_),
332 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, py_generic_services_),
333 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, deprecated_),
334 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_enable_arenas_),
335 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, objc_class_prefix_),
336 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, csharp_namespace_),
337 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, uninterpreted_option_),
338 };
339 FileOptions_reflection_ =
340 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
341 FileOptions_descriptor_,
342 FileOptions::default_instance_,
343 FileOptions_offsets_,
344 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _has_bits_[0]),
345 -1,
346 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _extensions_),
347 sizeof(FileOptions),
348 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _internal_metadata_),
349 -1);
350 FileOptions_OptimizeMode_descriptor_ = FileOptions_descriptor_->enum_type(0);
351 MessageOptions_descriptor_ = file->message_type(10);
352 static const int MessageOptions_offsets_[5] = {
353 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, message_set_wire_format_),
354 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, no_standard_descriptor_accessor_),
355 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, deprecated_),
356 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, map_entry_),
357 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, uninterpreted_option_),
358 };
359 MessageOptions_reflection_ =
360 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
361 MessageOptions_descriptor_,
362 MessageOptions::default_instance_,
363 MessageOptions_offsets_,
364 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _has_bits_[0]),
365 -1,
366 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _extensions_),
367 sizeof(MessageOptions),
368 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _internal_metadata_),
369 -1);
370 FieldOptions_descriptor_ = file->message_type(11);
371 static const int FieldOptions_offsets_[7] = {
372 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, ctype_),
373 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, packed_),
374 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, jstype_),
375 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, lazy_),
376 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, deprecated_),
377 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, weak_),
378 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, uninterpreted_option_),
379 };
380 FieldOptions_reflection_ =
381 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
382 FieldOptions_descriptor_,
383 FieldOptions::default_instance_,
384 FieldOptions_offsets_,
385 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _has_bits_[0]),
386 -1,
387 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _extensions_),
388 sizeof(FieldOptions),
389 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _internal_metadata_),
390 -1);
391 FieldOptions_CType_descriptor_ = FieldOptions_descriptor_->enum_type(0);
392 FieldOptions_JSType_descriptor_ = FieldOptions_descriptor_->enum_type(1);
393 EnumOptions_descriptor_ = file->message_type(12);
394 static const int EnumOptions_offsets_[3] = {
395 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, allow_alias_),
396 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, deprecated_),
397 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, uninterpreted_option_),
398 };
399 EnumOptions_reflection_ =
400 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
401 EnumOptions_descriptor_,
402 EnumOptions::default_instance_,
403 EnumOptions_offsets_,
404 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _has_bits_[0]),
405 -1,
406 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _extensions_),
407 sizeof(EnumOptions),
408 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _internal_metadata_),
409 -1);
410 EnumValueOptions_descriptor_ = file->message_type(13);
411 static const int EnumValueOptions_offsets_[2] = {
412 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, deprecated_),
413 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, uninterpreted_option_),
414 };
415 EnumValueOptions_reflection_ =
416 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
417 EnumValueOptions_descriptor_,
418 EnumValueOptions::default_instance_,
419 EnumValueOptions_offsets_,
420 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _has_bits_[0]),
421 -1,
422 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _extensions_),
423 sizeof(EnumValueOptions),
424 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _internal_metadata_),
425 -1);
426 ServiceOptions_descriptor_ = file->message_type(14);
427 static const int ServiceOptions_offsets_[2] = {
428 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, deprecated_),
429 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, uninterpreted_option_),
430 };
431 ServiceOptions_reflection_ =
432 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
433 ServiceOptions_descriptor_,
434 ServiceOptions::default_instance_,
435 ServiceOptions_offsets_,
436 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _has_bits_[0]),
437 -1,
438 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _extensions_),
439 sizeof(ServiceOptions),
440 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _internal_metadata_),
441 -1);
442 MethodOptions_descriptor_ = file->message_type(15);
443 static const int MethodOptions_offsets_[2] = {
444 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, deprecated_),
445 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, uninterpreted_option_),
446 };
447 MethodOptions_reflection_ =
448 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
449 MethodOptions_descriptor_,
450 MethodOptions::default_instance_,
451 MethodOptions_offsets_,
452 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _has_bits_[0]),
453 -1,
454 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _extensions_),
455 sizeof(MethodOptions),
456 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _internal_metadata_),
457 -1);
458 UninterpretedOption_descriptor_ = file->message_type(16);
459 static const int UninterpretedOption_offsets_[7] = {
460 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, name_),
461 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, identifier_value_),
462 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, positive_int_value_),
463 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, negative_int_value_),
464 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, double_value_),
465 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, string_value_),
466 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, aggregate_value_),
467 };
468 UninterpretedOption_reflection_ =
469 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
470 UninterpretedOption_descriptor_,
471 UninterpretedOption::default_instance_,
472 UninterpretedOption_offsets_,
473 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _has_bits_[0]),
474 -1,
475 -1,
476 sizeof(UninterpretedOption),
477 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _internal_metadata_),
478 -1);
479 UninterpretedOption_NamePart_descriptor_ = UninterpretedOption_descriptor_->nested_type(0);
480 static const int UninterpretedOption_NamePart_offsets_[2] = {
481 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, name_part_),
482 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, is_extension_),
483 };
484 UninterpretedOption_NamePart_reflection_ =
485 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
486 UninterpretedOption_NamePart_descriptor_,
487 UninterpretedOption_NamePart::default_instance_,
488 UninterpretedOption_NamePart_offsets_,
489 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _has_bits_[0]),
490 -1,
491 -1,
492 sizeof(UninterpretedOption_NamePart),
493 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _internal_metadata_),
494 -1);
495 SourceCodeInfo_descriptor_ = file->message_type(17);
496 static const int SourceCodeInfo_offsets_[1] = {
497 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, location_),
498 };
499 SourceCodeInfo_reflection_ =
500 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
501 SourceCodeInfo_descriptor_,
502 SourceCodeInfo::default_instance_,
503 SourceCodeInfo_offsets_,
504 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _has_bits_[0]),
505 -1,
506 -1,
507 sizeof(SourceCodeInfo),
508 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _internal_metadata_),
509 -1);
510 SourceCodeInfo_Location_descriptor_ = SourceCodeInfo_descriptor_->nested_type(0);
511 static const int SourceCodeInfo_Location_offsets_[5] = {
512 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, path_),
513 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, span_),
514 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, leading_comments_),
515 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, trailing_comments_),
516 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, leading_detached_comments_),
517 };
518 SourceCodeInfo_Location_reflection_ =
519 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
520 SourceCodeInfo_Location_descriptor_,
521 SourceCodeInfo_Location::default_instance_,
522 SourceCodeInfo_Location_offsets_,
523 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _has_bits_[0]),
524 -1,
525 -1,
526 sizeof(SourceCodeInfo_Location),
527 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _internal_metadata_),
528 -1);
529 GeneratedCodeInfo_descriptor_ = file->message_type(18);
530 static const int GeneratedCodeInfo_offsets_[1] = {
531 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, annotation_),
532 };
533 GeneratedCodeInfo_reflection_ =
534 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
535 GeneratedCodeInfo_descriptor_,
536 GeneratedCodeInfo::default_instance_,
537 GeneratedCodeInfo_offsets_,
538 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, _has_bits_[0]),
539 -1,
540 -1,
541 sizeof(GeneratedCodeInfo),
542 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, _internal_metadata_),
543 -1);
544 GeneratedCodeInfo_Annotation_descriptor_ = GeneratedCodeInfo_descriptor_->nested_type(0);
545 static const int GeneratedCodeInfo_Annotation_offsets_[4] = {
546 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, path_),
547 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, source_file_),
548 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, begin_),
549 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, end_),
550 };
551 GeneratedCodeInfo_Annotation_reflection_ =
552 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
553 GeneratedCodeInfo_Annotation_descriptor_,
554 GeneratedCodeInfo_Annotation::default_instance_,
555 GeneratedCodeInfo_Annotation_offsets_,
556 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _has_bits_[0]),
557 -1,
558 -1,
559 sizeof(GeneratedCodeInfo_Annotation),
560 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _internal_metadata_),
561 -1);
562 }
563
564 namespace {
565
566 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
protobuf_AssignDescriptorsOnce()567 inline void protobuf_AssignDescriptorsOnce() {
568 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
569 &protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto);
570 }
571
protobuf_RegisterTypes(const::std::string &)572 void protobuf_RegisterTypes(const ::std::string&) {
573 protobuf_AssignDescriptorsOnce();
574 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
575 FileDescriptorSet_descriptor_, &FileDescriptorSet::default_instance());
576 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
577 FileDescriptorProto_descriptor_, &FileDescriptorProto::default_instance());
578 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
579 DescriptorProto_descriptor_, &DescriptorProto::default_instance());
580 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
581 DescriptorProto_ExtensionRange_descriptor_, &DescriptorProto_ExtensionRange::default_instance());
582 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
583 DescriptorProto_ReservedRange_descriptor_, &DescriptorProto_ReservedRange::default_instance());
584 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
585 FieldDescriptorProto_descriptor_, &FieldDescriptorProto::default_instance());
586 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
587 OneofDescriptorProto_descriptor_, &OneofDescriptorProto::default_instance());
588 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
589 EnumDescriptorProto_descriptor_, &EnumDescriptorProto::default_instance());
590 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
591 EnumValueDescriptorProto_descriptor_, &EnumValueDescriptorProto::default_instance());
592 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
593 ServiceDescriptorProto_descriptor_, &ServiceDescriptorProto::default_instance());
594 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
595 MethodDescriptorProto_descriptor_, &MethodDescriptorProto::default_instance());
596 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
597 FileOptions_descriptor_, &FileOptions::default_instance());
598 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
599 MessageOptions_descriptor_, &MessageOptions::default_instance());
600 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
601 FieldOptions_descriptor_, &FieldOptions::default_instance());
602 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
603 EnumOptions_descriptor_, &EnumOptions::default_instance());
604 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
605 EnumValueOptions_descriptor_, &EnumValueOptions::default_instance());
606 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
607 ServiceOptions_descriptor_, &ServiceOptions::default_instance());
608 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
609 MethodOptions_descriptor_, &MethodOptions::default_instance());
610 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
611 UninterpretedOption_descriptor_, &UninterpretedOption::default_instance());
612 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
613 UninterpretedOption_NamePart_descriptor_, &UninterpretedOption_NamePart::default_instance());
614 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
615 SourceCodeInfo_descriptor_, &SourceCodeInfo::default_instance());
616 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
617 SourceCodeInfo_Location_descriptor_, &SourceCodeInfo_Location::default_instance());
618 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
619 GeneratedCodeInfo_descriptor_, &GeneratedCodeInfo::default_instance());
620 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
621 GeneratedCodeInfo_Annotation_descriptor_, &GeneratedCodeInfo_Annotation::default_instance());
622 }
623
624 } // namespace
625
protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto()626 void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto() {
627 delete FileDescriptorSet::default_instance_;
628 delete FileDescriptorSet_reflection_;
629 delete FileDescriptorProto::default_instance_;
630 delete FileDescriptorProto_reflection_;
631 delete DescriptorProto::default_instance_;
632 delete DescriptorProto_reflection_;
633 delete DescriptorProto_ExtensionRange::default_instance_;
634 delete DescriptorProto_ExtensionRange_reflection_;
635 delete DescriptorProto_ReservedRange::default_instance_;
636 delete DescriptorProto_ReservedRange_reflection_;
637 delete FieldDescriptorProto::default_instance_;
638 delete FieldDescriptorProto_reflection_;
639 delete OneofDescriptorProto::default_instance_;
640 delete OneofDescriptorProto_reflection_;
641 delete EnumDescriptorProto::default_instance_;
642 delete EnumDescriptorProto_reflection_;
643 delete EnumValueDescriptorProto::default_instance_;
644 delete EnumValueDescriptorProto_reflection_;
645 delete ServiceDescriptorProto::default_instance_;
646 delete ServiceDescriptorProto_reflection_;
647 delete MethodDescriptorProto::default_instance_;
648 delete MethodDescriptorProto_reflection_;
649 delete FileOptions::default_instance_;
650 delete FileOptions_reflection_;
651 delete MessageOptions::default_instance_;
652 delete MessageOptions_reflection_;
653 delete FieldOptions::default_instance_;
654 delete FieldOptions_reflection_;
655 delete EnumOptions::default_instance_;
656 delete EnumOptions_reflection_;
657 delete EnumValueOptions::default_instance_;
658 delete EnumValueOptions_reflection_;
659 delete ServiceOptions::default_instance_;
660 delete ServiceOptions_reflection_;
661 delete MethodOptions::default_instance_;
662 delete MethodOptions_reflection_;
663 delete UninterpretedOption::default_instance_;
664 delete UninterpretedOption_reflection_;
665 delete UninterpretedOption_NamePart::default_instance_;
666 delete UninterpretedOption_NamePart_reflection_;
667 delete SourceCodeInfo::default_instance_;
668 delete SourceCodeInfo_reflection_;
669 delete SourceCodeInfo_Location::default_instance_;
670 delete SourceCodeInfo_Location_reflection_;
671 delete GeneratedCodeInfo::default_instance_;
672 delete GeneratedCodeInfo_reflection_;
673 delete GeneratedCodeInfo_Annotation::default_instance_;
674 delete GeneratedCodeInfo_Annotation_reflection_;
675 }
676
protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto()677 void protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto() {
678 static bool already_here = false;
679 if (already_here) return;
680 already_here = true;
681 GOOGLE_PROTOBUF_VERIFY_VERSION;
682
683 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
684 "\n google/protobuf/descriptor.proto\022\017goog"
685 "le.protobuf\"G\n\021FileDescriptorSet\0222\n\004file"
686 "\030\001 \003(\0132$.google.protobuf.FileDescriptorP"
687 "roto\"\333\003\n\023FileDescriptorProto\022\014\n\004name\030\001 \001"
688 "(\t\022\017\n\007package\030\002 \001(\t\022\022\n\ndependency\030\003 \003(\t\022"
689 "\031\n\021public_dependency\030\n \003(\005\022\027\n\017weak_depen"
690 "dency\030\013 \003(\005\0226\n\014message_type\030\004 \003(\0132 .goog"
691 "le.protobuf.DescriptorProto\0227\n\tenum_type"
692 "\030\005 \003(\0132$.google.protobuf.EnumDescriptorP"
693 "roto\0228\n\007service\030\006 \003(\0132\'.google.protobuf."
694 "ServiceDescriptorProto\0228\n\textension\030\007 \003("
695 "\0132%.google.protobuf.FieldDescriptorProto"
696 "\022-\n\007options\030\010 \001(\0132\034.google.protobuf.File"
697 "Options\0229\n\020source_code_info\030\t \001(\0132\037.goog"
698 "le.protobuf.SourceCodeInfo\022\016\n\006syntax\030\014 \001"
699 "(\t\"\360\004\n\017DescriptorProto\022\014\n\004name\030\001 \001(\t\0224\n\005"
700 "field\030\002 \003(\0132%.google.protobuf.FieldDescr"
701 "iptorProto\0228\n\textension\030\006 \003(\0132%.google.p"
702 "rotobuf.FieldDescriptorProto\0225\n\013nested_t"
703 "ype\030\003 \003(\0132 .google.protobuf.DescriptorPr"
704 "oto\0227\n\tenum_type\030\004 \003(\0132$.google.protobuf"
705 ".EnumDescriptorProto\022H\n\017extension_range\030"
706 "\005 \003(\0132/.google.protobuf.DescriptorProto."
707 "ExtensionRange\0229\n\noneof_decl\030\010 \003(\0132%.goo"
708 "gle.protobuf.OneofDescriptorProto\0220\n\007opt"
709 "ions\030\007 \001(\0132\037.google.protobuf.MessageOpti"
710 "ons\022F\n\016reserved_range\030\t \003(\0132..google.pro"
711 "tobuf.DescriptorProto.ReservedRange\022\025\n\rr"
712 "eserved_name\030\n \003(\t\032,\n\016ExtensionRange\022\r\n\005"
713 "start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\032+\n\rReservedRang"
714 "e\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"\274\005\n\024FieldD"
715 "escriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n\006number\030\003"
716 " \001(\005\022:\n\005label\030\004 \001(\0162+.google.protobuf.Fi"
717 "eldDescriptorProto.Label\0228\n\004type\030\005 \001(\0162*"
718 ".google.protobuf.FieldDescriptorProto.Ty"
719 "pe\022\021\n\ttype_name\030\006 \001(\t\022\020\n\010extendee\030\002 \001(\t\022"
720 "\025\n\rdefault_value\030\007 \001(\t\022\023\n\013oneof_index\030\t "
721 "\001(\005\022\021\n\tjson_name\030\n \001(\t\022.\n\007options\030\010 \001(\0132"
722 "\035.google.protobuf.FieldOptions\"\266\002\n\004Type\022"
723 "\017\n\013TYPE_DOUBLE\020\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTYPE"
724 "_INT64\020\003\022\017\n\013TYPE_UINT64\020\004\022\016\n\nTYPE_INT32\020"
725 "\005\022\020\n\014TYPE_FIXED64\020\006\022\020\n\014TYPE_FIXED32\020\007\022\r\n"
726 "\tTYPE_BOOL\020\010\022\017\n\013TYPE_STRING\020\t\022\016\n\nTYPE_GR"
727 "OUP\020\n\022\020\n\014TYPE_MESSAGE\020\013\022\016\n\nTYPE_BYTES\020\014\022"
728 "\017\n\013TYPE_UINT32\020\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_"
729 "SFIXED32\020\017\022\021\n\rTYPE_SFIXED64\020\020\022\017\n\013TYPE_SI"
730 "NT32\020\021\022\017\n\013TYPE_SINT64\020\022\"C\n\005Label\022\022\n\016LABE"
731 "L_OPTIONAL\020\001\022\022\n\016LABEL_REQUIRED\020\002\022\022\n\016LABE"
732 "L_REPEATED\020\003\"$\n\024OneofDescriptorProto\022\014\n\004"
733 "name\030\001 \001(\t\"\214\001\n\023EnumDescriptorProto\022\014\n\004na"
734 "me\030\001 \001(\t\0228\n\005value\030\002 \003(\0132).google.protobu"
735 "f.EnumValueDescriptorProto\022-\n\007options\030\003 "
736 "\001(\0132\034.google.protobuf.EnumOptions\"l\n\030Enu"
737 "mValueDescriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n\006n"
738 "umber\030\002 \001(\005\0222\n\007options\030\003 \001(\0132!.google.pr"
739 "otobuf.EnumValueOptions\"\220\001\n\026ServiceDescr"
740 "iptorProto\022\014\n\004name\030\001 \001(\t\0226\n\006method\030\002 \003(\013"
741 "2&.google.protobuf.MethodDescriptorProto"
742 "\0220\n\007options\030\003 \001(\0132\037.google.protobuf.Serv"
743 "iceOptions\"\301\001\n\025MethodDescriptorProto\022\014\n\004"
744 "name\030\001 \001(\t\022\022\n\ninput_type\030\002 \001(\t\022\023\n\013output"
745 "_type\030\003 \001(\t\022/\n\007options\030\004 \001(\0132\036.google.pr"
746 "otobuf.MethodOptions\022\037\n\020client_streaming"
747 "\030\005 \001(\010:\005false\022\037\n\020server_streaming\030\006 \001(\010:"
748 "\005false\"\207\005\n\013FileOptions\022\024\n\014java_package\030\001"
749 " \001(\t\022\034\n\024java_outer_classname\030\010 \001(\t\022\"\n\023ja"
750 "va_multiple_files\030\n \001(\010:\005false\022,\n\035java_g"
751 "enerate_equals_and_hash\030\024 \001(\010:\005false\022%\n\026"
752 "java_string_check_utf8\030\033 \001(\010:\005false\022F\n\014o"
753 "ptimize_for\030\t \001(\0162).google.protobuf.File"
754 "Options.OptimizeMode:\005SPEED\022\022\n\ngo_packag"
755 "e\030\013 \001(\t\022\"\n\023cc_generic_services\030\020 \001(\010:\005fa"
756 "lse\022$\n\025java_generic_services\030\021 \001(\010:\005fals"
757 "e\022\"\n\023py_generic_services\030\022 \001(\010:\005false\022\031\n"
758 "\ndeprecated\030\027 \001(\010:\005false\022\037\n\020cc_enable_ar"
759 "enas\030\037 \001(\010:\005false\022\031\n\021objc_class_prefix\030$"
760 " \001(\t\022\030\n\020csharp_namespace\030% \001(\t\022C\n\024uninte"
761 "rpreted_option\030\347\007 \003(\0132$.google.protobuf."
762 "UninterpretedOption\":\n\014OptimizeMode\022\t\n\005S"
763 "PEED\020\001\022\r\n\tCODE_SIZE\020\002\022\020\n\014LITE_RUNTIME\020\003*"
764 "\t\010\350\007\020\200\200\200\200\002J\004\010&\020\'\"\346\001\n\016MessageOptions\022&\n\027m"
765 "essage_set_wire_format\030\001 \001(\010:\005false\022.\n\037n"
766 "o_standard_descriptor_accessor\030\002 \001(\010:\005fa"
767 "lse\022\031\n\ndeprecated\030\003 \001(\010:\005false\022\021\n\tmap_en"
768 "try\030\007 \001(\010\022C\n\024uninterpreted_option\030\347\007 \003(\013"
769 "2$.google.protobuf.UninterpretedOption*\t"
770 "\010\350\007\020\200\200\200\200\002\"\230\003\n\014FieldOptions\022:\n\005ctype\030\001 \001("
771 "\0162#.google.protobuf.FieldOptions.CType:\006"
772 "STRING\022\016\n\006packed\030\002 \001(\010\022\?\n\006jstype\030\006 \001(\0162$"
773 ".google.protobuf.FieldOptions.JSType:\tJS"
774 "_NORMAL\022\023\n\004lazy\030\005 \001(\010:\005false\022\031\n\ndeprecat"
775 "ed\030\003 \001(\010:\005false\022\023\n\004weak\030\n \001(\010:\005false\022C\n\024"
776 "uninterpreted_option\030\347\007 \003(\0132$.google.pro"
777 "tobuf.UninterpretedOption\"/\n\005CType\022\n\n\006ST"
778 "RING\020\000\022\010\n\004CORD\020\001\022\020\n\014STRING_PIECE\020\002\"5\n\006JS"
779 "Type\022\r\n\tJS_NORMAL\020\000\022\r\n\tJS_STRING\020\001\022\r\n\tJS"
780 "_NUMBER\020\002*\t\010\350\007\020\200\200\200\200\002\"\215\001\n\013EnumOptions\022\023\n\013"
781 "allow_alias\030\002 \001(\010\022\031\n\ndeprecated\030\003 \001(\010:\005f"
782 "alse\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.go"
783 "ogle.protobuf.UninterpretedOption*\t\010\350\007\020\200"
784 "\200\200\200\002\"}\n\020EnumValueOptions\022\031\n\ndeprecated\030\001"
785 " \001(\010:\005false\022C\n\024uninterpreted_option\030\347\007 \003"
786 "(\0132$.google.protobuf.UninterpretedOption"
787 "*\t\010\350\007\020\200\200\200\200\002\"{\n\016ServiceOptions\022\031\n\ndepreca"
788 "ted\030! \001(\010:\005false\022C\n\024uninterpreted_option"
789 "\030\347\007 \003(\0132$.google.protobuf.UninterpretedO"
790 "ption*\t\010\350\007\020\200\200\200\200\002\"z\n\rMethodOptions\022\031\n\ndep"
791 "recated\030! \001(\010:\005false\022C\n\024uninterpreted_op"
792 "tion\030\347\007 \003(\0132$.google.protobuf.Uninterpre"
793 "tedOption*\t\010\350\007\020\200\200\200\200\002\"\236\002\n\023UninterpretedOp"
794 "tion\022;\n\004name\030\002 \003(\0132-.google.protobuf.Uni"
795 "nterpretedOption.NamePart\022\030\n\020identifier_"
796 "value\030\003 \001(\t\022\032\n\022positive_int_value\030\004 \001(\004\022"
797 "\032\n\022negative_int_value\030\005 \001(\003\022\024\n\014double_va"
798 "lue\030\006 \001(\001\022\024\n\014string_value\030\007 \001(\014\022\027\n\017aggre"
799 "gate_value\030\010 \001(\t\0323\n\010NamePart\022\021\n\tname_par"
800 "t\030\001 \002(\t\022\024\n\014is_extension\030\002 \002(\010\"\325\001\n\016Source"
801 "CodeInfo\022:\n\010location\030\001 \003(\0132(.google.prot"
802 "obuf.SourceCodeInfo.Location\032\206\001\n\010Locatio"
803 "n\022\020\n\004path\030\001 \003(\005B\002\020\001\022\020\n\004span\030\002 \003(\005B\002\020\001\022\030\n"
804 "\020leading_comments\030\003 \001(\t\022\031\n\021trailing_comm"
805 "ents\030\004 \001(\t\022!\n\031leading_detached_comments\030"
806 "\006 \003(\t\"\247\001\n\021GeneratedCodeInfo\022A\n\nannotatio"
807 "n\030\001 \003(\0132-.google.protobuf.GeneratedCodeI"
808 "nfo.Annotation\032O\n\nAnnotation\022\020\n\004path\030\001 \003"
809 "(\005B\002\020\001\022\023\n\013source_file\030\002 \001(\t\022\r\n\005begin\030\003 \001"
810 "(\005\022\013\n\003end\030\004 \001(\005BX\n\023com.google.protobufB\020"
811 "DescriptorProtosH\001Z\ndescriptor\242\002\003GPB\252\002\032G"
812 "oogle.Protobuf.Reflection", 5145);
813 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
814 "google/protobuf/descriptor.proto", &protobuf_RegisterTypes);
815 FileDescriptorSet::default_instance_ = new FileDescriptorSet();
816 FileDescriptorProto::default_instance_ = new FileDescriptorProto();
817 DescriptorProto::default_instance_ = new DescriptorProto();
818 DescriptorProto_ExtensionRange::default_instance_ = new DescriptorProto_ExtensionRange();
819 DescriptorProto_ReservedRange::default_instance_ = new DescriptorProto_ReservedRange();
820 FieldDescriptorProto::default_instance_ = new FieldDescriptorProto();
821 OneofDescriptorProto::default_instance_ = new OneofDescriptorProto();
822 EnumDescriptorProto::default_instance_ = new EnumDescriptorProto();
823 EnumValueDescriptorProto::default_instance_ = new EnumValueDescriptorProto();
824 ServiceDescriptorProto::default_instance_ = new ServiceDescriptorProto();
825 MethodDescriptorProto::default_instance_ = new MethodDescriptorProto();
826 FileOptions::default_instance_ = new FileOptions();
827 MessageOptions::default_instance_ = new MessageOptions();
828 FieldOptions::default_instance_ = new FieldOptions();
829 EnumOptions::default_instance_ = new EnumOptions();
830 EnumValueOptions::default_instance_ = new EnumValueOptions();
831 ServiceOptions::default_instance_ = new ServiceOptions();
832 MethodOptions::default_instance_ = new MethodOptions();
833 UninterpretedOption::default_instance_ = new UninterpretedOption();
834 UninterpretedOption_NamePart::default_instance_ = new UninterpretedOption_NamePart();
835 SourceCodeInfo::default_instance_ = new SourceCodeInfo();
836 SourceCodeInfo_Location::default_instance_ = new SourceCodeInfo_Location();
837 GeneratedCodeInfo::default_instance_ = new GeneratedCodeInfo();
838 GeneratedCodeInfo_Annotation::default_instance_ = new GeneratedCodeInfo_Annotation();
839 FileDescriptorSet::default_instance_->InitAsDefaultInstance();
840 FileDescriptorProto::default_instance_->InitAsDefaultInstance();
841 DescriptorProto::default_instance_->InitAsDefaultInstance();
842 DescriptorProto_ExtensionRange::default_instance_->InitAsDefaultInstance();
843 DescriptorProto_ReservedRange::default_instance_->InitAsDefaultInstance();
844 FieldDescriptorProto::default_instance_->InitAsDefaultInstance();
845 OneofDescriptorProto::default_instance_->InitAsDefaultInstance();
846 EnumDescriptorProto::default_instance_->InitAsDefaultInstance();
847 EnumValueDescriptorProto::default_instance_->InitAsDefaultInstance();
848 ServiceDescriptorProto::default_instance_->InitAsDefaultInstance();
849 MethodDescriptorProto::default_instance_->InitAsDefaultInstance();
850 FileOptions::default_instance_->InitAsDefaultInstance();
851 MessageOptions::default_instance_->InitAsDefaultInstance();
852 FieldOptions::default_instance_->InitAsDefaultInstance();
853 EnumOptions::default_instance_->InitAsDefaultInstance();
854 EnumValueOptions::default_instance_->InitAsDefaultInstance();
855 ServiceOptions::default_instance_->InitAsDefaultInstance();
856 MethodOptions::default_instance_->InitAsDefaultInstance();
857 UninterpretedOption::default_instance_->InitAsDefaultInstance();
858 UninterpretedOption_NamePart::default_instance_->InitAsDefaultInstance();
859 SourceCodeInfo::default_instance_->InitAsDefaultInstance();
860 SourceCodeInfo_Location::default_instance_->InitAsDefaultInstance();
861 GeneratedCodeInfo::default_instance_->InitAsDefaultInstance();
862 GeneratedCodeInfo_Annotation::default_instance_->InitAsDefaultInstance();
863 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto);
864 }
865
866 // Force AddDescriptors() to be called at static initialization time.
867 struct StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto {
StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eprotogoogle::protobuf::StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto868 StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto() {
869 protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
870 }
871 } static_descriptor_initializer_google_2fprotobuf_2fdescriptor_2eproto_;
872
873 namespace {
874
875 static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD;
MergeFromFail(int line)876 static void MergeFromFail(int line) {
877 GOOGLE_CHECK(false) << __FILE__ << ":" << line;
878 }
879
880 } // namespace
881
882
883 // ===================================================================
884
885 #if !defined(_MSC_VER) || _MSC_VER >= 1900
886 const int FileDescriptorSet::kFileFieldNumber;
887 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
888
FileDescriptorSet()889 FileDescriptorSet::FileDescriptorSet()
890 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
891 SharedCtor();
892 // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorSet)
893 }
894
InitAsDefaultInstance()895 void FileDescriptorSet::InitAsDefaultInstance() {
896 }
897
FileDescriptorSet(const FileDescriptorSet & from)898 FileDescriptorSet::FileDescriptorSet(const FileDescriptorSet& from)
899 : ::google::protobuf::Message(),
900 _internal_metadata_(NULL) {
901 SharedCtor();
902 MergeFrom(from);
903 // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorSet)
904 }
905
SharedCtor()906 void FileDescriptorSet::SharedCtor() {
907 _cached_size_ = 0;
908 ::memset(_has_bits_, 0, sizeof(_has_bits_));
909 }
910
~FileDescriptorSet()911 FileDescriptorSet::~FileDescriptorSet() {
912 // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorSet)
913 SharedDtor();
914 }
915
SharedDtor()916 void FileDescriptorSet::SharedDtor() {
917 if (this != default_instance_) {
918 }
919 }
920
SetCachedSize(int size) const921 void FileDescriptorSet::SetCachedSize(int size) const {
922 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
923 _cached_size_ = size;
924 GOOGLE_SAFE_CONCURRENT_WRITES_END();
925 }
descriptor()926 const ::google::protobuf::Descriptor* FileDescriptorSet::descriptor() {
927 protobuf_AssignDescriptorsOnce();
928 return FileDescriptorSet_descriptor_;
929 }
930
default_instance()931 const FileDescriptorSet& FileDescriptorSet::default_instance() {
932 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
933 return *default_instance_;
934 }
935
936 FileDescriptorSet* FileDescriptorSet::default_instance_ = NULL;
937
New(::google::protobuf::Arena * arena) const938 FileDescriptorSet* FileDescriptorSet::New(::google::protobuf::Arena* arena) const {
939 FileDescriptorSet* n = new FileDescriptorSet;
940 if (arena != NULL) {
941 arena->Own(n);
942 }
943 return n;
944 }
945
Clear()946 void FileDescriptorSet::Clear() {
947 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileDescriptorSet)
948 file_.Clear();
949 ::memset(_has_bits_, 0, sizeof(_has_bits_));
950 if (_internal_metadata_.have_unknown_fields()) {
951 mutable_unknown_fields()->Clear();
952 }
953 }
954
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)955 bool FileDescriptorSet::MergePartialFromCodedStream(
956 ::google::protobuf::io::CodedInputStream* input) {
957 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
958 ::google::protobuf::uint32 tag;
959 // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorSet)
960 for (;;) {
961 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
962 tag = p.first;
963 if (!p.second) goto handle_unusual;
964 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
965 // repeated .google.protobuf.FileDescriptorProto file = 1;
966 case 1: {
967 if (tag == 10) {
968 DO_(input->IncrementRecursionDepth());
969 parse_loop_file:
970 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
971 input, add_file()));
972 } else {
973 goto handle_unusual;
974 }
975 if (input->ExpectTag(10)) goto parse_loop_file;
976 input->UnsafeDecrementRecursionDepth();
977 if (input->ExpectAtEnd()) goto success;
978 break;
979 }
980
981 default: {
982 handle_unusual:
983 if (tag == 0 ||
984 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
985 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
986 goto success;
987 }
988 DO_(::google::protobuf::internal::WireFormat::SkipField(
989 input, tag, mutable_unknown_fields()));
990 break;
991 }
992 }
993 }
994 success:
995 // @@protoc_insertion_point(parse_success:google.protobuf.FileDescriptorSet)
996 return true;
997 failure:
998 // @@protoc_insertion_point(parse_failure:google.protobuf.FileDescriptorSet)
999 return false;
1000 #undef DO_
1001 }
1002
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const1003 void FileDescriptorSet::SerializeWithCachedSizes(
1004 ::google::protobuf::io::CodedOutputStream* output) const {
1005 // @@protoc_insertion_point(serialize_start:google.protobuf.FileDescriptorSet)
1006 // repeated .google.protobuf.FileDescriptorProto file = 1;
1007 for (unsigned int i = 0, n = this->file_size(); i < n; i++) {
1008 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1009 1, this->file(i), output);
1010 }
1011
1012 if (_internal_metadata_.have_unknown_fields()) {
1013 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1014 unknown_fields(), output);
1015 }
1016 // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorSet)
1017 }
1018
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const1019 ::google::protobuf::uint8* FileDescriptorSet::SerializeWithCachedSizesToArray(
1020 ::google::protobuf::uint8* target) const {
1021 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorSet)
1022 // repeated .google.protobuf.FileDescriptorProto file = 1;
1023 for (unsigned int i = 0, n = this->file_size(); i < n; i++) {
1024 target = ::google::protobuf::internal::WireFormatLite::
1025 WriteMessageNoVirtualToArray(
1026 1, this->file(i), target);
1027 }
1028
1029 if (_internal_metadata_.have_unknown_fields()) {
1030 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1031 unknown_fields(), target);
1032 }
1033 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescriptorSet)
1034 return target;
1035 }
1036
ByteSize() const1037 int FileDescriptorSet::ByteSize() const {
1038 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileDescriptorSet)
1039 int total_size = 0;
1040
1041 // repeated .google.protobuf.FileDescriptorProto file = 1;
1042 total_size += 1 * this->file_size();
1043 for (int i = 0; i < this->file_size(); i++) {
1044 total_size +=
1045 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1046 this->file(i));
1047 }
1048
1049 if (_internal_metadata_.have_unknown_fields()) {
1050 total_size +=
1051 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1052 unknown_fields());
1053 }
1054 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1055 _cached_size_ = total_size;
1056 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1057 return total_size;
1058 }
1059
MergeFrom(const::google::protobuf::Message & from)1060 void FileDescriptorSet::MergeFrom(const ::google::protobuf::Message& from) {
1061 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileDescriptorSet)
1062 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1063 const FileDescriptorSet* source =
1064 ::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorSet>(
1065 &from);
1066 if (source == NULL) {
1067 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FileDescriptorSet)
1068 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1069 } else {
1070 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FileDescriptorSet)
1071 MergeFrom(*source);
1072 }
1073 }
1074
MergeFrom(const FileDescriptorSet & from)1075 void FileDescriptorSet::MergeFrom(const FileDescriptorSet& from) {
1076 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FileDescriptorSet)
1077 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1078 file_.MergeFrom(from.file_);
1079 if (from._internal_metadata_.have_unknown_fields()) {
1080 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1081 }
1082 }
1083
CopyFrom(const::google::protobuf::Message & from)1084 void FileDescriptorSet::CopyFrom(const ::google::protobuf::Message& from) {
1085 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileDescriptorSet)
1086 if (&from == this) return;
1087 Clear();
1088 MergeFrom(from);
1089 }
1090
CopyFrom(const FileDescriptorSet & from)1091 void FileDescriptorSet::CopyFrom(const FileDescriptorSet& from) {
1092 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileDescriptorSet)
1093 if (&from == this) return;
1094 Clear();
1095 MergeFrom(from);
1096 }
1097
IsInitialized() const1098 bool FileDescriptorSet::IsInitialized() const {
1099
1100 if (!::google::protobuf::internal::AllAreInitialized(this->file())) return false;
1101 return true;
1102 }
1103
Swap(FileDescriptorSet * other)1104 void FileDescriptorSet::Swap(FileDescriptorSet* other) {
1105 if (other == this) return;
1106 InternalSwap(other);
1107 }
InternalSwap(FileDescriptorSet * other)1108 void FileDescriptorSet::InternalSwap(FileDescriptorSet* other) {
1109 file_.UnsafeArenaSwap(&other->file_);
1110 std::swap(_has_bits_[0], other->_has_bits_[0]);
1111 _internal_metadata_.Swap(&other->_internal_metadata_);
1112 std::swap(_cached_size_, other->_cached_size_);
1113 }
1114
GetMetadata() const1115 ::google::protobuf::Metadata FileDescriptorSet::GetMetadata() const {
1116 protobuf_AssignDescriptorsOnce();
1117 ::google::protobuf::Metadata metadata;
1118 metadata.descriptor = FileDescriptorSet_descriptor_;
1119 metadata.reflection = FileDescriptorSet_reflection_;
1120 return metadata;
1121 }
1122
1123 #if PROTOBUF_INLINE_NOT_IN_HEADERS
1124 // FileDescriptorSet
1125
1126 // repeated .google.protobuf.FileDescriptorProto file = 1;
file_size() const1127 int FileDescriptorSet::file_size() const {
1128 return file_.size();
1129 }
clear_file()1130 void FileDescriptorSet::clear_file() {
1131 file_.Clear();
1132 }
file(int index) const1133 const ::google::protobuf::FileDescriptorProto& FileDescriptorSet::file(int index) const {
1134 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorSet.file)
1135 return file_.Get(index);
1136 }
mutable_file(int index)1137 ::google::protobuf::FileDescriptorProto* FileDescriptorSet::mutable_file(int index) {
1138 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorSet.file)
1139 return file_.Mutable(index);
1140 }
add_file()1141 ::google::protobuf::FileDescriptorProto* FileDescriptorSet::add_file() {
1142 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorSet.file)
1143 return file_.Add();
1144 }
1145 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
mutable_file()1146 FileDescriptorSet::mutable_file() {
1147 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorSet.file)
1148 return &file_;
1149 }
1150 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
file() const1151 FileDescriptorSet::file() const {
1152 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorSet.file)
1153 return file_;
1154 }
1155
1156 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
1157
1158 // ===================================================================
1159
1160 #if !defined(_MSC_VER) || _MSC_VER >= 1900
1161 const int FileDescriptorProto::kNameFieldNumber;
1162 const int FileDescriptorProto::kPackageFieldNumber;
1163 const int FileDescriptorProto::kDependencyFieldNumber;
1164 const int FileDescriptorProto::kPublicDependencyFieldNumber;
1165 const int FileDescriptorProto::kWeakDependencyFieldNumber;
1166 const int FileDescriptorProto::kMessageTypeFieldNumber;
1167 const int FileDescriptorProto::kEnumTypeFieldNumber;
1168 const int FileDescriptorProto::kServiceFieldNumber;
1169 const int FileDescriptorProto::kExtensionFieldNumber;
1170 const int FileDescriptorProto::kOptionsFieldNumber;
1171 const int FileDescriptorProto::kSourceCodeInfoFieldNumber;
1172 const int FileDescriptorProto::kSyntaxFieldNumber;
1173 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1174
FileDescriptorProto()1175 FileDescriptorProto::FileDescriptorProto()
1176 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1177 SharedCtor();
1178 // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorProto)
1179 }
1180
InitAsDefaultInstance()1181 void FileDescriptorProto::InitAsDefaultInstance() {
1182 options_ = const_cast< ::google::protobuf::FileOptions*>(&::google::protobuf::FileOptions::default_instance());
1183 source_code_info_ = const_cast< ::google::protobuf::SourceCodeInfo*>(&::google::protobuf::SourceCodeInfo::default_instance());
1184 }
1185
FileDescriptorProto(const FileDescriptorProto & from)1186 FileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from)
1187 : ::google::protobuf::Message(),
1188 _internal_metadata_(NULL) {
1189 SharedCtor();
1190 MergeFrom(from);
1191 // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorProto)
1192 }
1193
SharedCtor()1194 void FileDescriptorProto::SharedCtor() {
1195 ::google::protobuf::internal::GetEmptyString();
1196 _cached_size_ = 0;
1197 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1198 package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1199 options_ = NULL;
1200 source_code_info_ = NULL;
1201 syntax_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1202 ::memset(_has_bits_, 0, sizeof(_has_bits_));
1203 }
1204
~FileDescriptorProto()1205 FileDescriptorProto::~FileDescriptorProto() {
1206 // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorProto)
1207 SharedDtor();
1208 }
1209
SharedDtor()1210 void FileDescriptorProto::SharedDtor() {
1211 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1212 package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1213 syntax_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1214 if (this != default_instance_) {
1215 delete options_;
1216 delete source_code_info_;
1217 }
1218 }
1219
SetCachedSize(int size) const1220 void FileDescriptorProto::SetCachedSize(int size) const {
1221 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1222 _cached_size_ = size;
1223 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1224 }
descriptor()1225 const ::google::protobuf::Descriptor* FileDescriptorProto::descriptor() {
1226 protobuf_AssignDescriptorsOnce();
1227 return FileDescriptorProto_descriptor_;
1228 }
1229
default_instance()1230 const FileDescriptorProto& FileDescriptorProto::default_instance() {
1231 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
1232 return *default_instance_;
1233 }
1234
1235 FileDescriptorProto* FileDescriptorProto::default_instance_ = NULL;
1236
New(::google::protobuf::Arena * arena) const1237 FileDescriptorProto* FileDescriptorProto::New(::google::protobuf::Arena* arena) const {
1238 FileDescriptorProto* n = new FileDescriptorProto;
1239 if (arena != NULL) {
1240 arena->Own(n);
1241 }
1242 return n;
1243 }
1244
Clear()1245 void FileDescriptorProto::Clear() {
1246 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileDescriptorProto)
1247 if (_has_bits_[0 / 32] & 3u) {
1248 if (has_name()) {
1249 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1250 }
1251 if (has_package()) {
1252 package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1253 }
1254 }
1255 if (_has_bits_[8 / 32] & 3584u) {
1256 if (has_options()) {
1257 if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear();
1258 }
1259 if (has_source_code_info()) {
1260 if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCodeInfo::Clear();
1261 }
1262 if (has_syntax()) {
1263 syntax_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1264 }
1265 }
1266 dependency_.Clear();
1267 public_dependency_.Clear();
1268 weak_dependency_.Clear();
1269 message_type_.Clear();
1270 enum_type_.Clear();
1271 service_.Clear();
1272 extension_.Clear();
1273 ::memset(_has_bits_, 0, sizeof(_has_bits_));
1274 if (_internal_metadata_.have_unknown_fields()) {
1275 mutable_unknown_fields()->Clear();
1276 }
1277 }
1278
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)1279 bool FileDescriptorProto::MergePartialFromCodedStream(
1280 ::google::protobuf::io::CodedInputStream* input) {
1281 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1282 ::google::protobuf::uint32 tag;
1283 // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorProto)
1284 for (;;) {
1285 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1286 tag = p.first;
1287 if (!p.second) goto handle_unusual;
1288 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1289 // optional string name = 1;
1290 case 1: {
1291 if (tag == 10) {
1292 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1293 input, this->mutable_name()));
1294 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1295 this->name().data(), this->name().length(),
1296 ::google::protobuf::internal::WireFormat::PARSE,
1297 "google.protobuf.FileDescriptorProto.name");
1298 } else {
1299 goto handle_unusual;
1300 }
1301 if (input->ExpectTag(18)) goto parse_package;
1302 break;
1303 }
1304
1305 // optional string package = 2;
1306 case 2: {
1307 if (tag == 18) {
1308 parse_package:
1309 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1310 input, this->mutable_package()));
1311 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1312 this->package().data(), this->package().length(),
1313 ::google::protobuf::internal::WireFormat::PARSE,
1314 "google.protobuf.FileDescriptorProto.package");
1315 } else {
1316 goto handle_unusual;
1317 }
1318 if (input->ExpectTag(26)) goto parse_dependency;
1319 break;
1320 }
1321
1322 // repeated string dependency = 3;
1323 case 3: {
1324 if (tag == 26) {
1325 parse_dependency:
1326 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1327 input, this->add_dependency()));
1328 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1329 this->dependency(this->dependency_size() - 1).data(),
1330 this->dependency(this->dependency_size() - 1).length(),
1331 ::google::protobuf::internal::WireFormat::PARSE,
1332 "google.protobuf.FileDescriptorProto.dependency");
1333 } else {
1334 goto handle_unusual;
1335 }
1336 if (input->ExpectTag(26)) goto parse_dependency;
1337 if (input->ExpectTag(34)) goto parse_message_type;
1338 break;
1339 }
1340
1341 // repeated .google.protobuf.DescriptorProto message_type = 4;
1342 case 4: {
1343 if (tag == 34) {
1344 parse_message_type:
1345 DO_(input->IncrementRecursionDepth());
1346 parse_loop_message_type:
1347 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
1348 input, add_message_type()));
1349 } else {
1350 goto handle_unusual;
1351 }
1352 if (input->ExpectTag(34)) goto parse_loop_message_type;
1353 if (input->ExpectTag(42)) goto parse_loop_enum_type;
1354 input->UnsafeDecrementRecursionDepth();
1355 break;
1356 }
1357
1358 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1359 case 5: {
1360 if (tag == 42) {
1361 DO_(input->IncrementRecursionDepth());
1362 parse_loop_enum_type:
1363 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
1364 input, add_enum_type()));
1365 } else {
1366 goto handle_unusual;
1367 }
1368 if (input->ExpectTag(42)) goto parse_loop_enum_type;
1369 if (input->ExpectTag(50)) goto parse_loop_service;
1370 input->UnsafeDecrementRecursionDepth();
1371 break;
1372 }
1373
1374 // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1375 case 6: {
1376 if (tag == 50) {
1377 DO_(input->IncrementRecursionDepth());
1378 parse_loop_service:
1379 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
1380 input, add_service()));
1381 } else {
1382 goto handle_unusual;
1383 }
1384 if (input->ExpectTag(50)) goto parse_loop_service;
1385 if (input->ExpectTag(58)) goto parse_loop_extension;
1386 input->UnsafeDecrementRecursionDepth();
1387 break;
1388 }
1389
1390 // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1391 case 7: {
1392 if (tag == 58) {
1393 DO_(input->IncrementRecursionDepth());
1394 parse_loop_extension:
1395 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
1396 input, add_extension()));
1397 } else {
1398 goto handle_unusual;
1399 }
1400 if (input->ExpectTag(58)) goto parse_loop_extension;
1401 input->UnsafeDecrementRecursionDepth();
1402 if (input->ExpectTag(66)) goto parse_options;
1403 break;
1404 }
1405
1406 // optional .google.protobuf.FileOptions options = 8;
1407 case 8: {
1408 if (tag == 66) {
1409 parse_options:
1410 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1411 input, mutable_options()));
1412 } else {
1413 goto handle_unusual;
1414 }
1415 if (input->ExpectTag(74)) goto parse_source_code_info;
1416 break;
1417 }
1418
1419 // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1420 case 9: {
1421 if (tag == 74) {
1422 parse_source_code_info:
1423 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1424 input, mutable_source_code_info()));
1425 } else {
1426 goto handle_unusual;
1427 }
1428 if (input->ExpectTag(80)) goto parse_public_dependency;
1429 break;
1430 }
1431
1432 // repeated int32 public_dependency = 10;
1433 case 10: {
1434 if (tag == 80) {
1435 parse_public_dependency:
1436 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
1437 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1438 1, 80, input, this->mutable_public_dependency())));
1439 } else if (tag == 82) {
1440 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
1441 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1442 input, this->mutable_public_dependency())));
1443 } else {
1444 goto handle_unusual;
1445 }
1446 if (input->ExpectTag(80)) goto parse_public_dependency;
1447 if (input->ExpectTag(88)) goto parse_weak_dependency;
1448 break;
1449 }
1450
1451 // repeated int32 weak_dependency = 11;
1452 case 11: {
1453 if (tag == 88) {
1454 parse_weak_dependency:
1455 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
1456 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1457 1, 88, input, this->mutable_weak_dependency())));
1458 } else if (tag == 90) {
1459 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
1460 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1461 input, this->mutable_weak_dependency())));
1462 } else {
1463 goto handle_unusual;
1464 }
1465 if (input->ExpectTag(88)) goto parse_weak_dependency;
1466 if (input->ExpectTag(98)) goto parse_syntax;
1467 break;
1468 }
1469
1470 // optional string syntax = 12;
1471 case 12: {
1472 if (tag == 98) {
1473 parse_syntax:
1474 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1475 input, this->mutable_syntax()));
1476 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1477 this->syntax().data(), this->syntax().length(),
1478 ::google::protobuf::internal::WireFormat::PARSE,
1479 "google.protobuf.FileDescriptorProto.syntax");
1480 } else {
1481 goto handle_unusual;
1482 }
1483 if (input->ExpectAtEnd()) goto success;
1484 break;
1485 }
1486
1487 default: {
1488 handle_unusual:
1489 if (tag == 0 ||
1490 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1491 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1492 goto success;
1493 }
1494 DO_(::google::protobuf::internal::WireFormat::SkipField(
1495 input, tag, mutable_unknown_fields()));
1496 break;
1497 }
1498 }
1499 }
1500 success:
1501 // @@protoc_insertion_point(parse_success:google.protobuf.FileDescriptorProto)
1502 return true;
1503 failure:
1504 // @@protoc_insertion_point(parse_failure:google.protobuf.FileDescriptorProto)
1505 return false;
1506 #undef DO_
1507 }
1508
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const1509 void FileDescriptorProto::SerializeWithCachedSizes(
1510 ::google::protobuf::io::CodedOutputStream* output) const {
1511 // @@protoc_insertion_point(serialize_start:google.protobuf.FileDescriptorProto)
1512 // optional string name = 1;
1513 if (has_name()) {
1514 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1515 this->name().data(), this->name().length(),
1516 ::google::protobuf::internal::WireFormat::SERIALIZE,
1517 "google.protobuf.FileDescriptorProto.name");
1518 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1519 1, this->name(), output);
1520 }
1521
1522 // optional string package = 2;
1523 if (has_package()) {
1524 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1525 this->package().data(), this->package().length(),
1526 ::google::protobuf::internal::WireFormat::SERIALIZE,
1527 "google.protobuf.FileDescriptorProto.package");
1528 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1529 2, this->package(), output);
1530 }
1531
1532 // repeated string dependency = 3;
1533 for (int i = 0; i < this->dependency_size(); i++) {
1534 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1535 this->dependency(i).data(), this->dependency(i).length(),
1536 ::google::protobuf::internal::WireFormat::SERIALIZE,
1537 "google.protobuf.FileDescriptorProto.dependency");
1538 ::google::protobuf::internal::WireFormatLite::WriteString(
1539 3, this->dependency(i), output);
1540 }
1541
1542 // repeated .google.protobuf.DescriptorProto message_type = 4;
1543 for (unsigned int i = 0, n = this->message_type_size(); i < n; i++) {
1544 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1545 4, this->message_type(i), output);
1546 }
1547
1548 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1549 for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) {
1550 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1551 5, this->enum_type(i), output);
1552 }
1553
1554 // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1555 for (unsigned int i = 0, n = this->service_size(); i < n; i++) {
1556 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1557 6, this->service(i), output);
1558 }
1559
1560 // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1561 for (unsigned int i = 0, n = this->extension_size(); i < n; i++) {
1562 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1563 7, this->extension(i), output);
1564 }
1565
1566 // optional .google.protobuf.FileOptions options = 8;
1567 if (has_options()) {
1568 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1569 8, *this->options_, output);
1570 }
1571
1572 // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1573 if (has_source_code_info()) {
1574 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1575 9, *this->source_code_info_, output);
1576 }
1577
1578 // repeated int32 public_dependency = 10;
1579 for (int i = 0; i < this->public_dependency_size(); i++) {
1580 ::google::protobuf::internal::WireFormatLite::WriteInt32(
1581 10, this->public_dependency(i), output);
1582 }
1583
1584 // repeated int32 weak_dependency = 11;
1585 for (int i = 0; i < this->weak_dependency_size(); i++) {
1586 ::google::protobuf::internal::WireFormatLite::WriteInt32(
1587 11, this->weak_dependency(i), output);
1588 }
1589
1590 // optional string syntax = 12;
1591 if (has_syntax()) {
1592 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1593 this->syntax().data(), this->syntax().length(),
1594 ::google::protobuf::internal::WireFormat::SERIALIZE,
1595 "google.protobuf.FileDescriptorProto.syntax");
1596 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1597 12, this->syntax(), output);
1598 }
1599
1600 if (_internal_metadata_.have_unknown_fields()) {
1601 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1602 unknown_fields(), output);
1603 }
1604 // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorProto)
1605 }
1606
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const1607 ::google::protobuf::uint8* FileDescriptorProto::SerializeWithCachedSizesToArray(
1608 ::google::protobuf::uint8* target) const {
1609 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorProto)
1610 // optional string name = 1;
1611 if (has_name()) {
1612 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1613 this->name().data(), this->name().length(),
1614 ::google::protobuf::internal::WireFormat::SERIALIZE,
1615 "google.protobuf.FileDescriptorProto.name");
1616 target =
1617 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1618 1, this->name(), target);
1619 }
1620
1621 // optional string package = 2;
1622 if (has_package()) {
1623 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1624 this->package().data(), this->package().length(),
1625 ::google::protobuf::internal::WireFormat::SERIALIZE,
1626 "google.protobuf.FileDescriptorProto.package");
1627 target =
1628 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1629 2, this->package(), target);
1630 }
1631
1632 // repeated string dependency = 3;
1633 for (int i = 0; i < this->dependency_size(); i++) {
1634 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1635 this->dependency(i).data(), this->dependency(i).length(),
1636 ::google::protobuf::internal::WireFormat::SERIALIZE,
1637 "google.protobuf.FileDescriptorProto.dependency");
1638 target = ::google::protobuf::internal::WireFormatLite::
1639 WriteStringToArray(3, this->dependency(i), target);
1640 }
1641
1642 // repeated .google.protobuf.DescriptorProto message_type = 4;
1643 for (unsigned int i = 0, n = this->message_type_size(); i < n; i++) {
1644 target = ::google::protobuf::internal::WireFormatLite::
1645 WriteMessageNoVirtualToArray(
1646 4, this->message_type(i), target);
1647 }
1648
1649 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1650 for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) {
1651 target = ::google::protobuf::internal::WireFormatLite::
1652 WriteMessageNoVirtualToArray(
1653 5, this->enum_type(i), target);
1654 }
1655
1656 // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1657 for (unsigned int i = 0, n = this->service_size(); i < n; i++) {
1658 target = ::google::protobuf::internal::WireFormatLite::
1659 WriteMessageNoVirtualToArray(
1660 6, this->service(i), target);
1661 }
1662
1663 // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1664 for (unsigned int i = 0, n = this->extension_size(); i < n; i++) {
1665 target = ::google::protobuf::internal::WireFormatLite::
1666 WriteMessageNoVirtualToArray(
1667 7, this->extension(i), target);
1668 }
1669
1670 // optional .google.protobuf.FileOptions options = 8;
1671 if (has_options()) {
1672 target = ::google::protobuf::internal::WireFormatLite::
1673 WriteMessageNoVirtualToArray(
1674 8, *this->options_, target);
1675 }
1676
1677 // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1678 if (has_source_code_info()) {
1679 target = ::google::protobuf::internal::WireFormatLite::
1680 WriteMessageNoVirtualToArray(
1681 9, *this->source_code_info_, target);
1682 }
1683
1684 // repeated int32 public_dependency = 10;
1685 for (int i = 0; i < this->public_dependency_size(); i++) {
1686 target = ::google::protobuf::internal::WireFormatLite::
1687 WriteInt32ToArray(10, this->public_dependency(i), target);
1688 }
1689
1690 // repeated int32 weak_dependency = 11;
1691 for (int i = 0; i < this->weak_dependency_size(); i++) {
1692 target = ::google::protobuf::internal::WireFormatLite::
1693 WriteInt32ToArray(11, this->weak_dependency(i), target);
1694 }
1695
1696 // optional string syntax = 12;
1697 if (has_syntax()) {
1698 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1699 this->syntax().data(), this->syntax().length(),
1700 ::google::protobuf::internal::WireFormat::SERIALIZE,
1701 "google.protobuf.FileDescriptorProto.syntax");
1702 target =
1703 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1704 12, this->syntax(), target);
1705 }
1706
1707 if (_internal_metadata_.have_unknown_fields()) {
1708 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1709 unknown_fields(), target);
1710 }
1711 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescriptorProto)
1712 return target;
1713 }
1714
ByteSize() const1715 int FileDescriptorProto::ByteSize() const {
1716 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileDescriptorProto)
1717 int total_size = 0;
1718
1719 if (_has_bits_[0 / 32] & 3u) {
1720 // optional string name = 1;
1721 if (has_name()) {
1722 total_size += 1 +
1723 ::google::protobuf::internal::WireFormatLite::StringSize(
1724 this->name());
1725 }
1726
1727 // optional string package = 2;
1728 if (has_package()) {
1729 total_size += 1 +
1730 ::google::protobuf::internal::WireFormatLite::StringSize(
1731 this->package());
1732 }
1733
1734 }
1735 if (_has_bits_[9 / 32] & 3584u) {
1736 // optional .google.protobuf.FileOptions options = 8;
1737 if (has_options()) {
1738 total_size += 1 +
1739 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1740 *this->options_);
1741 }
1742
1743 // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1744 if (has_source_code_info()) {
1745 total_size += 1 +
1746 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1747 *this->source_code_info_);
1748 }
1749
1750 // optional string syntax = 12;
1751 if (has_syntax()) {
1752 total_size += 1 +
1753 ::google::protobuf::internal::WireFormatLite::StringSize(
1754 this->syntax());
1755 }
1756
1757 }
1758 // repeated string dependency = 3;
1759 total_size += 1 * this->dependency_size();
1760 for (int i = 0; i < this->dependency_size(); i++) {
1761 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
1762 this->dependency(i));
1763 }
1764
1765 // repeated int32 public_dependency = 10;
1766 {
1767 int data_size = 0;
1768 for (int i = 0; i < this->public_dependency_size(); i++) {
1769 data_size += ::google::protobuf::internal::WireFormatLite::
1770 Int32Size(this->public_dependency(i));
1771 }
1772 total_size += 1 * this->public_dependency_size() + data_size;
1773 }
1774
1775 // repeated int32 weak_dependency = 11;
1776 {
1777 int data_size = 0;
1778 for (int i = 0; i < this->weak_dependency_size(); i++) {
1779 data_size += ::google::protobuf::internal::WireFormatLite::
1780 Int32Size(this->weak_dependency(i));
1781 }
1782 total_size += 1 * this->weak_dependency_size() + data_size;
1783 }
1784
1785 // repeated .google.protobuf.DescriptorProto message_type = 4;
1786 total_size += 1 * this->message_type_size();
1787 for (int i = 0; i < this->message_type_size(); i++) {
1788 total_size +=
1789 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1790 this->message_type(i));
1791 }
1792
1793 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1794 total_size += 1 * this->enum_type_size();
1795 for (int i = 0; i < this->enum_type_size(); i++) {
1796 total_size +=
1797 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1798 this->enum_type(i));
1799 }
1800
1801 // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1802 total_size += 1 * this->service_size();
1803 for (int i = 0; i < this->service_size(); i++) {
1804 total_size +=
1805 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1806 this->service(i));
1807 }
1808
1809 // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1810 total_size += 1 * this->extension_size();
1811 for (int i = 0; i < this->extension_size(); i++) {
1812 total_size +=
1813 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1814 this->extension(i));
1815 }
1816
1817 if (_internal_metadata_.have_unknown_fields()) {
1818 total_size +=
1819 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1820 unknown_fields());
1821 }
1822 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1823 _cached_size_ = total_size;
1824 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1825 return total_size;
1826 }
1827
MergeFrom(const::google::protobuf::Message & from)1828 void FileDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
1829 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileDescriptorProto)
1830 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1831 const FileDescriptorProto* source =
1832 ::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorProto>(
1833 &from);
1834 if (source == NULL) {
1835 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FileDescriptorProto)
1836 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1837 } else {
1838 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FileDescriptorProto)
1839 MergeFrom(*source);
1840 }
1841 }
1842
MergeFrom(const FileDescriptorProto & from)1843 void FileDescriptorProto::MergeFrom(const FileDescriptorProto& from) {
1844 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FileDescriptorProto)
1845 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1846 dependency_.MergeFrom(from.dependency_);
1847 public_dependency_.MergeFrom(from.public_dependency_);
1848 weak_dependency_.MergeFrom(from.weak_dependency_);
1849 message_type_.MergeFrom(from.message_type_);
1850 enum_type_.MergeFrom(from.enum_type_);
1851 service_.MergeFrom(from.service_);
1852 extension_.MergeFrom(from.extension_);
1853 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1854 if (from.has_name()) {
1855 set_has_name();
1856 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
1857 }
1858 if (from.has_package()) {
1859 set_has_package();
1860 package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.package_);
1861 }
1862 }
1863 if (from._has_bits_[9 / 32] & (0xffu << (9 % 32))) {
1864 if (from.has_options()) {
1865 mutable_options()->::google::protobuf::FileOptions::MergeFrom(from.options());
1866 }
1867 if (from.has_source_code_info()) {
1868 mutable_source_code_info()->::google::protobuf::SourceCodeInfo::MergeFrom(from.source_code_info());
1869 }
1870 if (from.has_syntax()) {
1871 set_has_syntax();
1872 syntax_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.syntax_);
1873 }
1874 }
1875 if (from._internal_metadata_.have_unknown_fields()) {
1876 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1877 }
1878 }
1879
CopyFrom(const::google::protobuf::Message & from)1880 void FileDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
1881 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileDescriptorProto)
1882 if (&from == this) return;
1883 Clear();
1884 MergeFrom(from);
1885 }
1886
CopyFrom(const FileDescriptorProto & from)1887 void FileDescriptorProto::CopyFrom(const FileDescriptorProto& from) {
1888 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileDescriptorProto)
1889 if (&from == this) return;
1890 Clear();
1891 MergeFrom(from);
1892 }
1893
IsInitialized() const1894 bool FileDescriptorProto::IsInitialized() const {
1895
1896 if (!::google::protobuf::internal::AllAreInitialized(this->message_type())) return false;
1897 if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) return false;
1898 if (!::google::protobuf::internal::AllAreInitialized(this->service())) return false;
1899 if (!::google::protobuf::internal::AllAreInitialized(this->extension())) return false;
1900 if (has_options()) {
1901 if (!this->options_->IsInitialized()) return false;
1902 }
1903 return true;
1904 }
1905
Swap(FileDescriptorProto * other)1906 void FileDescriptorProto::Swap(FileDescriptorProto* other) {
1907 if (other == this) return;
1908 InternalSwap(other);
1909 }
InternalSwap(FileDescriptorProto * other)1910 void FileDescriptorProto::InternalSwap(FileDescriptorProto* other) {
1911 name_.Swap(&other->name_);
1912 package_.Swap(&other->package_);
1913 dependency_.UnsafeArenaSwap(&other->dependency_);
1914 public_dependency_.UnsafeArenaSwap(&other->public_dependency_);
1915 weak_dependency_.UnsafeArenaSwap(&other->weak_dependency_);
1916 message_type_.UnsafeArenaSwap(&other->message_type_);
1917 enum_type_.UnsafeArenaSwap(&other->enum_type_);
1918 service_.UnsafeArenaSwap(&other->service_);
1919 extension_.UnsafeArenaSwap(&other->extension_);
1920 std::swap(options_, other->options_);
1921 std::swap(source_code_info_, other->source_code_info_);
1922 syntax_.Swap(&other->syntax_);
1923 std::swap(_has_bits_[0], other->_has_bits_[0]);
1924 _internal_metadata_.Swap(&other->_internal_metadata_);
1925 std::swap(_cached_size_, other->_cached_size_);
1926 }
1927
GetMetadata() const1928 ::google::protobuf::Metadata FileDescriptorProto::GetMetadata() const {
1929 protobuf_AssignDescriptorsOnce();
1930 ::google::protobuf::Metadata metadata;
1931 metadata.descriptor = FileDescriptorProto_descriptor_;
1932 metadata.reflection = FileDescriptorProto_reflection_;
1933 return metadata;
1934 }
1935
1936 #if PROTOBUF_INLINE_NOT_IN_HEADERS
1937 // FileDescriptorProto
1938
1939 // optional string name = 1;
has_name() const1940 bool FileDescriptorProto::has_name() const {
1941 return (_has_bits_[0] & 0x00000001u) != 0;
1942 }
set_has_name()1943 void FileDescriptorProto::set_has_name() {
1944 _has_bits_[0] |= 0x00000001u;
1945 }
clear_has_name()1946 void FileDescriptorProto::clear_has_name() {
1947 _has_bits_[0] &= ~0x00000001u;
1948 }
clear_name()1949 void FileDescriptorProto::clear_name() {
1950 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1951 clear_has_name();
1952 }
name() const1953 const ::std::string& FileDescriptorProto::name() const {
1954 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.name)
1955 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1956 }
set_name(const::std::string & value)1957 void FileDescriptorProto::set_name(const ::std::string& value) {
1958 set_has_name();
1959 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1960 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.name)
1961 }
set_name(const char * value)1962 void FileDescriptorProto::set_name(const char* value) {
1963 set_has_name();
1964 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1965 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.name)
1966 }
set_name(const char * value,size_t size)1967 void FileDescriptorProto::set_name(const char* value, size_t size) {
1968 set_has_name();
1969 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1970 ::std::string(reinterpret_cast<const char*>(value), size));
1971 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.name)
1972 }
mutable_name()1973 ::std::string* FileDescriptorProto::mutable_name() {
1974 set_has_name();
1975 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.name)
1976 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1977 }
release_name()1978 ::std::string* FileDescriptorProto::release_name() {
1979 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.name)
1980 clear_has_name();
1981 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1982 }
set_allocated_name(::std::string * name)1983 void FileDescriptorProto::set_allocated_name(::std::string* name) {
1984 if (name != NULL) {
1985 set_has_name();
1986 } else {
1987 clear_has_name();
1988 }
1989 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
1990 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.name)
1991 }
1992
1993 // optional string package = 2;
has_package() const1994 bool FileDescriptorProto::has_package() const {
1995 return (_has_bits_[0] & 0x00000002u) != 0;
1996 }
set_has_package()1997 void FileDescriptorProto::set_has_package() {
1998 _has_bits_[0] |= 0x00000002u;
1999 }
clear_has_package()2000 void FileDescriptorProto::clear_has_package() {
2001 _has_bits_[0] &= ~0x00000002u;
2002 }
clear_package()2003 void FileDescriptorProto::clear_package() {
2004 package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2005 clear_has_package();
2006 }
package() const2007 const ::std::string& FileDescriptorProto::package() const {
2008 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.package)
2009 return package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2010 }
set_package(const::std::string & value)2011 void FileDescriptorProto::set_package(const ::std::string& value) {
2012 set_has_package();
2013 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2014 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.package)
2015 }
set_package(const char * value)2016 void FileDescriptorProto::set_package(const char* value) {
2017 set_has_package();
2018 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2019 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.package)
2020 }
set_package(const char * value,size_t size)2021 void FileDescriptorProto::set_package(const char* value, size_t size) {
2022 set_has_package();
2023 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2024 ::std::string(reinterpret_cast<const char*>(value), size));
2025 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.package)
2026 }
mutable_package()2027 ::std::string* FileDescriptorProto::mutable_package() {
2028 set_has_package();
2029 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.package)
2030 return package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2031 }
release_package()2032 ::std::string* FileDescriptorProto::release_package() {
2033 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.package)
2034 clear_has_package();
2035 return package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2036 }
set_allocated_package(::std::string * package)2037 void FileDescriptorProto::set_allocated_package(::std::string* package) {
2038 if (package != NULL) {
2039 set_has_package();
2040 } else {
2041 clear_has_package();
2042 }
2043 package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), package);
2044 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.package)
2045 }
2046
2047 // repeated string dependency = 3;
dependency_size() const2048 int FileDescriptorProto::dependency_size() const {
2049 return dependency_.size();
2050 }
clear_dependency()2051 void FileDescriptorProto::clear_dependency() {
2052 dependency_.Clear();
2053 }
dependency(int index) const2054 const ::std::string& FileDescriptorProto::dependency(int index) const {
2055 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.dependency)
2056 return dependency_.Get(index);
2057 }
mutable_dependency(int index)2058 ::std::string* FileDescriptorProto::mutable_dependency(int index) {
2059 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.dependency)
2060 return dependency_.Mutable(index);
2061 }
set_dependency(int index,const::std::string & value)2062 void FileDescriptorProto::set_dependency(int index, const ::std::string& value) {
2063 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency)
2064 dependency_.Mutable(index)->assign(value);
2065 }
set_dependency(int index,const char * value)2066 void FileDescriptorProto::set_dependency(int index, const char* value) {
2067 dependency_.Mutable(index)->assign(value);
2068 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.dependency)
2069 }
set_dependency(int index,const char * value,size_t size)2070 void FileDescriptorProto::set_dependency(int index, const char* value, size_t size) {
2071 dependency_.Mutable(index)->assign(
2072 reinterpret_cast<const char*>(value), size);
2073 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.dependency)
2074 }
add_dependency()2075 ::std::string* FileDescriptorProto::add_dependency() {
2076 // @@protoc_insertion_point(field_add_mutable:google.protobuf.FileDescriptorProto.dependency)
2077 return dependency_.Add();
2078 }
add_dependency(const::std::string & value)2079 void FileDescriptorProto::add_dependency(const ::std::string& value) {
2080 dependency_.Add()->assign(value);
2081 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency)
2082 }
add_dependency(const char * value)2083 void FileDescriptorProto::add_dependency(const char* value) {
2084 dependency_.Add()->assign(value);
2085 // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto.dependency)
2086 }
add_dependency(const char * value,size_t size)2087 void FileDescriptorProto::add_dependency(const char* value, size_t size) {
2088 dependency_.Add()->assign(reinterpret_cast<const char*>(value), size);
2089 // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorProto.dependency)
2090 }
2091 const ::google::protobuf::RepeatedPtrField< ::std::string>&
dependency() const2092 FileDescriptorProto::dependency() const {
2093 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dependency)
2094 return dependency_;
2095 }
2096 ::google::protobuf::RepeatedPtrField< ::std::string>*
mutable_dependency()2097 FileDescriptorProto::mutable_dependency() {
2098 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.dependency)
2099 return &dependency_;
2100 }
2101
2102 // repeated int32 public_dependency = 10;
public_dependency_size() const2103 int FileDescriptorProto::public_dependency_size() const {
2104 return public_dependency_.size();
2105 }
clear_public_dependency()2106 void FileDescriptorProto::clear_public_dependency() {
2107 public_dependency_.Clear();
2108 }
public_dependency(int index) const2109 ::google::protobuf::int32 FileDescriptorProto::public_dependency(int index) const {
2110 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.public_dependency)
2111 return public_dependency_.Get(index);
2112 }
set_public_dependency(int index,::google::protobuf::int32 value)2113 void FileDescriptorProto::set_public_dependency(int index, ::google::protobuf::int32 value) {
2114 public_dependency_.Set(index, value);
2115 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.public_dependency)
2116 }
add_public_dependency(::google::protobuf::int32 value)2117 void FileDescriptorProto::add_public_dependency(::google::protobuf::int32 value) {
2118 public_dependency_.Add(value);
2119 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.public_dependency)
2120 }
2121 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
public_dependency() const2122 FileDescriptorProto::public_dependency() const {
2123 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.public_dependency)
2124 return public_dependency_;
2125 }
2126 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
mutable_public_dependency()2127 FileDescriptorProto::mutable_public_dependency() {
2128 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.public_dependency)
2129 return &public_dependency_;
2130 }
2131
2132 // repeated int32 weak_dependency = 11;
weak_dependency_size() const2133 int FileDescriptorProto::weak_dependency_size() const {
2134 return weak_dependency_.size();
2135 }
clear_weak_dependency()2136 void FileDescriptorProto::clear_weak_dependency() {
2137 weak_dependency_.Clear();
2138 }
weak_dependency(int index) const2139 ::google::protobuf::int32 FileDescriptorProto::weak_dependency(int index) const {
2140 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak_dependency)
2141 return weak_dependency_.Get(index);
2142 }
set_weak_dependency(int index,::google::protobuf::int32 value)2143 void FileDescriptorProto::set_weak_dependency(int index, ::google::protobuf::int32 value) {
2144 weak_dependency_.Set(index, value);
2145 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak_dependency)
2146 }
add_weak_dependency(::google::protobuf::int32 value)2147 void FileDescriptorProto::add_weak_dependency(::google::protobuf::int32 value) {
2148 weak_dependency_.Add(value);
2149 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak_dependency)
2150 }
2151 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
weak_dependency() const2152 FileDescriptorProto::weak_dependency() const {
2153 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.weak_dependency)
2154 return weak_dependency_;
2155 }
2156 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
mutable_weak_dependency()2157 FileDescriptorProto::mutable_weak_dependency() {
2158 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.weak_dependency)
2159 return &weak_dependency_;
2160 }
2161
2162 // repeated .google.protobuf.DescriptorProto message_type = 4;
message_type_size() const2163 int FileDescriptorProto::message_type_size() const {
2164 return message_type_.size();
2165 }
clear_message_type()2166 void FileDescriptorProto::clear_message_type() {
2167 message_type_.Clear();
2168 }
message_type(int index) const2169 const ::google::protobuf::DescriptorProto& FileDescriptorProto::message_type(int index) const {
2170 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.message_type)
2171 return message_type_.Get(index);
2172 }
mutable_message_type(int index)2173 ::google::protobuf::DescriptorProto* FileDescriptorProto::mutable_message_type(int index) {
2174 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.message_type)
2175 return message_type_.Mutable(index);
2176 }
add_message_type()2177 ::google::protobuf::DescriptorProto* FileDescriptorProto::add_message_type() {
2178 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.message_type)
2179 return message_type_.Add();
2180 }
2181 ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
mutable_message_type()2182 FileDescriptorProto::mutable_message_type() {
2183 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.message_type)
2184 return &message_type_;
2185 }
2186 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
message_type() const2187 FileDescriptorProto::message_type() const {
2188 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.message_type)
2189 return message_type_;
2190 }
2191
2192 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
enum_type_size() const2193 int FileDescriptorProto::enum_type_size() const {
2194 return enum_type_.size();
2195 }
clear_enum_type()2196 void FileDescriptorProto::clear_enum_type() {
2197 enum_type_.Clear();
2198 }
enum_type(int index) const2199 const ::google::protobuf::EnumDescriptorProto& FileDescriptorProto::enum_type(int index) const {
2200 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.enum_type)
2201 return enum_type_.Get(index);
2202 }
mutable_enum_type(int index)2203 ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::mutable_enum_type(int index) {
2204 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.enum_type)
2205 return enum_type_.Mutable(index);
2206 }
add_enum_type()2207 ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::add_enum_type() {
2208 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.enum_type)
2209 return enum_type_.Add();
2210 }
2211 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
mutable_enum_type()2212 FileDescriptorProto::mutable_enum_type() {
2213 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.enum_type)
2214 return &enum_type_;
2215 }
2216 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
enum_type() const2217 FileDescriptorProto::enum_type() const {
2218 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.enum_type)
2219 return enum_type_;
2220 }
2221
2222 // repeated .google.protobuf.ServiceDescriptorProto service = 6;
service_size() const2223 int FileDescriptorProto::service_size() const {
2224 return service_.size();
2225 }
clear_service()2226 void FileDescriptorProto::clear_service() {
2227 service_.Clear();
2228 }
service(int index) const2229 const ::google::protobuf::ServiceDescriptorProto& FileDescriptorProto::service(int index) const {
2230 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.service)
2231 return service_.Get(index);
2232 }
mutable_service(int index)2233 ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::mutable_service(int index) {
2234 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.service)
2235 return service_.Mutable(index);
2236 }
add_service()2237 ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::add_service() {
2238 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.service)
2239 return service_.Add();
2240 }
2241 ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >*
mutable_service()2242 FileDescriptorProto::mutable_service() {
2243 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.service)
2244 return &service_;
2245 }
2246 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >&
service() const2247 FileDescriptorProto::service() const {
2248 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.service)
2249 return service_;
2250 }
2251
2252 // repeated .google.protobuf.FieldDescriptorProto extension = 7;
extension_size() const2253 int FileDescriptorProto::extension_size() const {
2254 return extension_.size();
2255 }
clear_extension()2256 void FileDescriptorProto::clear_extension() {
2257 extension_.Clear();
2258 }
extension(int index) const2259 const ::google::protobuf::FieldDescriptorProto& FileDescriptorProto::extension(int index) const {
2260 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.extension)
2261 return extension_.Get(index);
2262 }
mutable_extension(int index)2263 ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::mutable_extension(int index) {
2264 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.extension)
2265 return extension_.Mutable(index);
2266 }
add_extension()2267 ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::add_extension() {
2268 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.extension)
2269 return extension_.Add();
2270 }
2271 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
mutable_extension()2272 FileDescriptorProto::mutable_extension() {
2273 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.extension)
2274 return &extension_;
2275 }
2276 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
extension() const2277 FileDescriptorProto::extension() const {
2278 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.extension)
2279 return extension_;
2280 }
2281
2282 // optional .google.protobuf.FileOptions options = 8;
has_options() const2283 bool FileDescriptorProto::has_options() const {
2284 return (_has_bits_[0] & 0x00000200u) != 0;
2285 }
set_has_options()2286 void FileDescriptorProto::set_has_options() {
2287 _has_bits_[0] |= 0x00000200u;
2288 }
clear_has_options()2289 void FileDescriptorProto::clear_has_options() {
2290 _has_bits_[0] &= ~0x00000200u;
2291 }
clear_options()2292 void FileDescriptorProto::clear_options() {
2293 if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear();
2294 clear_has_options();
2295 }
options() const2296 const ::google::protobuf::FileOptions& FileDescriptorProto::options() const {
2297 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.options)
2298 return options_ != NULL ? *options_ : *default_instance_->options_;
2299 }
mutable_options()2300 ::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() {
2301 set_has_options();
2302 if (options_ == NULL) {
2303 options_ = new ::google::protobuf::FileOptions;
2304 }
2305 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.options)
2306 return options_;
2307 }
release_options()2308 ::google::protobuf::FileOptions* FileDescriptorProto::release_options() {
2309 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.options)
2310 clear_has_options();
2311 ::google::protobuf::FileOptions* temp = options_;
2312 options_ = NULL;
2313 return temp;
2314 }
set_allocated_options(::google::protobuf::FileOptions * options)2315 void FileDescriptorProto::set_allocated_options(::google::protobuf::FileOptions* options) {
2316 delete options_;
2317 options_ = options;
2318 if (options) {
2319 set_has_options();
2320 } else {
2321 clear_has_options();
2322 }
2323 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.options)
2324 }
2325
2326 // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
has_source_code_info() const2327 bool FileDescriptorProto::has_source_code_info() const {
2328 return (_has_bits_[0] & 0x00000400u) != 0;
2329 }
set_has_source_code_info()2330 void FileDescriptorProto::set_has_source_code_info() {
2331 _has_bits_[0] |= 0x00000400u;
2332 }
clear_has_source_code_info()2333 void FileDescriptorProto::clear_has_source_code_info() {
2334 _has_bits_[0] &= ~0x00000400u;
2335 }
clear_source_code_info()2336 void FileDescriptorProto::clear_source_code_info() {
2337 if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCodeInfo::Clear();
2338 clear_has_source_code_info();
2339 }
source_code_info() const2340 const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::source_code_info() const {
2341 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.source_code_info)
2342 return source_code_info_ != NULL ? *source_code_info_ : *default_instance_->source_code_info_;
2343 }
mutable_source_code_info()2344 ::google::protobuf::SourceCodeInfo* FileDescriptorProto::mutable_source_code_info() {
2345 set_has_source_code_info();
2346 if (source_code_info_ == NULL) {
2347 source_code_info_ = new ::google::protobuf::SourceCodeInfo;
2348 }
2349 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.source_code_info)
2350 return source_code_info_;
2351 }
release_source_code_info()2352 ::google::protobuf::SourceCodeInfo* FileDescriptorProto::release_source_code_info() {
2353 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.source_code_info)
2354 clear_has_source_code_info();
2355 ::google::protobuf::SourceCodeInfo* temp = source_code_info_;
2356 source_code_info_ = NULL;
2357 return temp;
2358 }
set_allocated_source_code_info(::google::protobuf::SourceCodeInfo * source_code_info)2359 void FileDescriptorProto::set_allocated_source_code_info(::google::protobuf::SourceCodeInfo* source_code_info) {
2360 delete source_code_info_;
2361 source_code_info_ = source_code_info;
2362 if (source_code_info) {
2363 set_has_source_code_info();
2364 } else {
2365 clear_has_source_code_info();
2366 }
2367 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.source_code_info)
2368 }
2369
2370 // optional string syntax = 12;
has_syntax() const2371 bool FileDescriptorProto::has_syntax() const {
2372 return (_has_bits_[0] & 0x00000800u) != 0;
2373 }
set_has_syntax()2374 void FileDescriptorProto::set_has_syntax() {
2375 _has_bits_[0] |= 0x00000800u;
2376 }
clear_has_syntax()2377 void FileDescriptorProto::clear_has_syntax() {
2378 _has_bits_[0] &= ~0x00000800u;
2379 }
clear_syntax()2380 void FileDescriptorProto::clear_syntax() {
2381 syntax_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2382 clear_has_syntax();
2383 }
syntax() const2384 const ::std::string& FileDescriptorProto::syntax() const {
2385 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.syntax)
2386 return syntax_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2387 }
set_syntax(const::std::string & value)2388 void FileDescriptorProto::set_syntax(const ::std::string& value) {
2389 set_has_syntax();
2390 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2391 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.syntax)
2392 }
set_syntax(const char * value)2393 void FileDescriptorProto::set_syntax(const char* value) {
2394 set_has_syntax();
2395 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2396 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.syntax)
2397 }
set_syntax(const char * value,size_t size)2398 void FileDescriptorProto::set_syntax(const char* value, size_t size) {
2399 set_has_syntax();
2400 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2401 ::std::string(reinterpret_cast<const char*>(value), size));
2402 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.syntax)
2403 }
mutable_syntax()2404 ::std::string* FileDescriptorProto::mutable_syntax() {
2405 set_has_syntax();
2406 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.syntax)
2407 return syntax_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2408 }
release_syntax()2409 ::std::string* FileDescriptorProto::release_syntax() {
2410 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.syntax)
2411 clear_has_syntax();
2412 return syntax_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2413 }
set_allocated_syntax(::std::string * syntax)2414 void FileDescriptorProto::set_allocated_syntax(::std::string* syntax) {
2415 if (syntax != NULL) {
2416 set_has_syntax();
2417 } else {
2418 clear_has_syntax();
2419 }
2420 syntax_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), syntax);
2421 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.syntax)
2422 }
2423
2424 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
2425
2426 // ===================================================================
2427
2428 #if !defined(_MSC_VER) || _MSC_VER >= 1900
2429 const int DescriptorProto_ExtensionRange::kStartFieldNumber;
2430 const int DescriptorProto_ExtensionRange::kEndFieldNumber;
2431 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2432
DescriptorProto_ExtensionRange()2433 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange()
2434 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2435 SharedCtor();
2436 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.ExtensionRange)
2437 }
2438
InitAsDefaultInstance()2439 void DescriptorProto_ExtensionRange::InitAsDefaultInstance() {
2440 }
2441
DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange & from)2442 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from)
2443 : ::google::protobuf::Message(),
2444 _internal_metadata_(NULL) {
2445 SharedCtor();
2446 MergeFrom(from);
2447 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ExtensionRange)
2448 }
2449
SharedCtor()2450 void DescriptorProto_ExtensionRange::SharedCtor() {
2451 _cached_size_ = 0;
2452 start_ = 0;
2453 end_ = 0;
2454 ::memset(_has_bits_, 0, sizeof(_has_bits_));
2455 }
2456
~DescriptorProto_ExtensionRange()2457 DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() {
2458 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.ExtensionRange)
2459 SharedDtor();
2460 }
2461
SharedDtor()2462 void DescriptorProto_ExtensionRange::SharedDtor() {
2463 if (this != default_instance_) {
2464 }
2465 }
2466
SetCachedSize(int size) const2467 void DescriptorProto_ExtensionRange::SetCachedSize(int size) const {
2468 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2469 _cached_size_ = size;
2470 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2471 }
descriptor()2472 const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange::descriptor() {
2473 protobuf_AssignDescriptorsOnce();
2474 return DescriptorProto_ExtensionRange_descriptor_;
2475 }
2476
default_instance()2477 const DescriptorProto_ExtensionRange& DescriptorProto_ExtensionRange::default_instance() {
2478 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2479 return *default_instance_;
2480 }
2481
2482 DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::default_instance_ = NULL;
2483
New(::google::protobuf::Arena * arena) const2484 DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::New(::google::protobuf::Arena* arena) const {
2485 DescriptorProto_ExtensionRange* n = new DescriptorProto_ExtensionRange;
2486 if (arena != NULL) {
2487 arena->Own(n);
2488 }
2489 return n;
2490 }
2491
Clear()2492 void DescriptorProto_ExtensionRange::Clear() {
2493 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto.ExtensionRange)
2494 #if defined(__clang__)
2495 #define ZR_HELPER_(f) \
2496 _Pragma("clang diagnostic push") \
2497 _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
2498 __builtin_offsetof(DescriptorProto_ExtensionRange, f) \
2499 _Pragma("clang diagnostic pop")
2500 #else
2501 #define ZR_HELPER_(f) reinterpret_cast<char*>(\
2502 &reinterpret_cast<DescriptorProto_ExtensionRange*>(16)->f)
2503 #endif
2504
2505 #define ZR_(first, last) do {\
2506 ::memset(&(first), 0,\
2507 ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
2508 } while (0)
2509
2510 ZR_(start_, end_);
2511
2512 #undef ZR_HELPER_
2513 #undef ZR_
2514
2515 ::memset(_has_bits_, 0, sizeof(_has_bits_));
2516 if (_internal_metadata_.have_unknown_fields()) {
2517 mutable_unknown_fields()->Clear();
2518 }
2519 }
2520
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)2521 bool DescriptorProto_ExtensionRange::MergePartialFromCodedStream(
2522 ::google::protobuf::io::CodedInputStream* input) {
2523 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2524 ::google::protobuf::uint32 tag;
2525 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.ExtensionRange)
2526 for (;;) {
2527 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2528 tag = p.first;
2529 if (!p.second) goto handle_unusual;
2530 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2531 // optional int32 start = 1;
2532 case 1: {
2533 if (tag == 8) {
2534 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2535 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2536 input, &start_)));
2537 set_has_start();
2538 } else {
2539 goto handle_unusual;
2540 }
2541 if (input->ExpectTag(16)) goto parse_end;
2542 break;
2543 }
2544
2545 // optional int32 end = 2;
2546 case 2: {
2547 if (tag == 16) {
2548 parse_end:
2549 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2550 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2551 input, &end_)));
2552 set_has_end();
2553 } else {
2554 goto handle_unusual;
2555 }
2556 if (input->ExpectAtEnd()) goto success;
2557 break;
2558 }
2559
2560 default: {
2561 handle_unusual:
2562 if (tag == 0 ||
2563 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2564 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2565 goto success;
2566 }
2567 DO_(::google::protobuf::internal::WireFormat::SkipField(
2568 input, tag, mutable_unknown_fields()));
2569 break;
2570 }
2571 }
2572 }
2573 success:
2574 // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto.ExtensionRange)
2575 return true;
2576 failure:
2577 // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto.ExtensionRange)
2578 return false;
2579 #undef DO_
2580 }
2581
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const2582 void DescriptorProto_ExtensionRange::SerializeWithCachedSizes(
2583 ::google::protobuf::io::CodedOutputStream* output) const {
2584 // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto.ExtensionRange)
2585 // optional int32 start = 1;
2586 if (has_start()) {
2587 ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->start(), output);
2588 }
2589
2590 // optional int32 end = 2;
2591 if (has_end()) {
2592 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), output);
2593 }
2594
2595 if (_internal_metadata_.have_unknown_fields()) {
2596 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2597 unknown_fields(), output);
2598 }
2599 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.ExtensionRange)
2600 }
2601
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const2602 ::google::protobuf::uint8* DescriptorProto_ExtensionRange::SerializeWithCachedSizesToArray(
2603 ::google::protobuf::uint8* target) const {
2604 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ExtensionRange)
2605 // optional int32 start = 1;
2606 if (has_start()) {
2607 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target);
2608 }
2609
2610 // optional int32 end = 2;
2611 if (has_end()) {
2612 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target);
2613 }
2614
2615 if (_internal_metadata_.have_unknown_fields()) {
2616 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2617 unknown_fields(), target);
2618 }
2619 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto.ExtensionRange)
2620 return target;
2621 }
2622
ByteSize() const2623 int DescriptorProto_ExtensionRange::ByteSize() const {
2624 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorProto.ExtensionRange)
2625 int total_size = 0;
2626
2627 if (_has_bits_[0 / 32] & 3u) {
2628 // optional int32 start = 1;
2629 if (has_start()) {
2630 total_size += 1 +
2631 ::google::protobuf::internal::WireFormatLite::Int32Size(
2632 this->start());
2633 }
2634
2635 // optional int32 end = 2;
2636 if (has_end()) {
2637 total_size += 1 +
2638 ::google::protobuf::internal::WireFormatLite::Int32Size(
2639 this->end());
2640 }
2641
2642 }
2643 if (_internal_metadata_.have_unknown_fields()) {
2644 total_size +=
2645 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2646 unknown_fields());
2647 }
2648 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2649 _cached_size_ = total_size;
2650 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2651 return total_size;
2652 }
2653
MergeFrom(const::google::protobuf::Message & from)2654 void DescriptorProto_ExtensionRange::MergeFrom(const ::google::protobuf::Message& from) {
2655 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.DescriptorProto.ExtensionRange)
2656 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
2657 const DescriptorProto_ExtensionRange* source =
2658 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto_ExtensionRange>(
2659 &from);
2660 if (source == NULL) {
2661 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.DescriptorProto.ExtensionRange)
2662 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2663 } else {
2664 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.DescriptorProto.ExtensionRange)
2665 MergeFrom(*source);
2666 }
2667 }
2668
MergeFrom(const DescriptorProto_ExtensionRange & from)2669 void DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRange& from) {
2670 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DescriptorProto.ExtensionRange)
2671 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
2672 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2673 if (from.has_start()) {
2674 set_start(from.start());
2675 }
2676 if (from.has_end()) {
2677 set_end(from.end());
2678 }
2679 }
2680 if (from._internal_metadata_.have_unknown_fields()) {
2681 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2682 }
2683 }
2684
CopyFrom(const::google::protobuf::Message & from)2685 void DescriptorProto_ExtensionRange::CopyFrom(const ::google::protobuf::Message& from) {
2686 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.DescriptorProto.ExtensionRange)
2687 if (&from == this) return;
2688 Clear();
2689 MergeFrom(from);
2690 }
2691
CopyFrom(const DescriptorProto_ExtensionRange & from)2692 void DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRange& from) {
2693 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DescriptorProto.ExtensionRange)
2694 if (&from == this) return;
2695 Clear();
2696 MergeFrom(from);
2697 }
2698
IsInitialized() const2699 bool DescriptorProto_ExtensionRange::IsInitialized() const {
2700
2701 return true;
2702 }
2703
Swap(DescriptorProto_ExtensionRange * other)2704 void DescriptorProto_ExtensionRange::Swap(DescriptorProto_ExtensionRange* other) {
2705 if (other == this) return;
2706 InternalSwap(other);
2707 }
InternalSwap(DescriptorProto_ExtensionRange * other)2708 void DescriptorProto_ExtensionRange::InternalSwap(DescriptorProto_ExtensionRange* other) {
2709 std::swap(start_, other->start_);
2710 std::swap(end_, other->end_);
2711 std::swap(_has_bits_[0], other->_has_bits_[0]);
2712 _internal_metadata_.Swap(&other->_internal_metadata_);
2713 std::swap(_cached_size_, other->_cached_size_);
2714 }
2715
GetMetadata() const2716 ::google::protobuf::Metadata DescriptorProto_ExtensionRange::GetMetadata() const {
2717 protobuf_AssignDescriptorsOnce();
2718 ::google::protobuf::Metadata metadata;
2719 metadata.descriptor = DescriptorProto_ExtensionRange_descriptor_;
2720 metadata.reflection = DescriptorProto_ExtensionRange_reflection_;
2721 return metadata;
2722 }
2723
2724
2725 // -------------------------------------------------------------------
2726
2727 #if !defined(_MSC_VER) || _MSC_VER >= 1900
2728 const int DescriptorProto_ReservedRange::kStartFieldNumber;
2729 const int DescriptorProto_ReservedRange::kEndFieldNumber;
2730 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2731
DescriptorProto_ReservedRange()2732 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange()
2733 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2734 SharedCtor();
2735 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.ReservedRange)
2736 }
2737
InitAsDefaultInstance()2738 void DescriptorProto_ReservedRange::InitAsDefaultInstance() {
2739 }
2740
DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange & from)2741 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange& from)
2742 : ::google::protobuf::Message(),
2743 _internal_metadata_(NULL) {
2744 SharedCtor();
2745 MergeFrom(from);
2746 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ReservedRange)
2747 }
2748
SharedCtor()2749 void DescriptorProto_ReservedRange::SharedCtor() {
2750 _cached_size_ = 0;
2751 start_ = 0;
2752 end_ = 0;
2753 ::memset(_has_bits_, 0, sizeof(_has_bits_));
2754 }
2755
~DescriptorProto_ReservedRange()2756 DescriptorProto_ReservedRange::~DescriptorProto_ReservedRange() {
2757 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.ReservedRange)
2758 SharedDtor();
2759 }
2760
SharedDtor()2761 void DescriptorProto_ReservedRange::SharedDtor() {
2762 if (this != default_instance_) {
2763 }
2764 }
2765
SetCachedSize(int size) const2766 void DescriptorProto_ReservedRange::SetCachedSize(int size) const {
2767 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2768 _cached_size_ = size;
2769 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2770 }
descriptor()2771 const ::google::protobuf::Descriptor* DescriptorProto_ReservedRange::descriptor() {
2772 protobuf_AssignDescriptorsOnce();
2773 return DescriptorProto_ReservedRange_descriptor_;
2774 }
2775
default_instance()2776 const DescriptorProto_ReservedRange& DescriptorProto_ReservedRange::default_instance() {
2777 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2778 return *default_instance_;
2779 }
2780
2781 DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::default_instance_ = NULL;
2782
New(::google::protobuf::Arena * arena) const2783 DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::New(::google::protobuf::Arena* arena) const {
2784 DescriptorProto_ReservedRange* n = new DescriptorProto_ReservedRange;
2785 if (arena != NULL) {
2786 arena->Own(n);
2787 }
2788 return n;
2789 }
2790
Clear()2791 void DescriptorProto_ReservedRange::Clear() {
2792 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto.ReservedRange)
2793 #if defined(__clang__)
2794 #define ZR_HELPER_(f) \
2795 _Pragma("clang diagnostic push") \
2796 _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
2797 __builtin_offsetof(DescriptorProto_ReservedRange, f) \
2798 _Pragma("clang diagnostic pop")
2799 #else
2800 #define ZR_HELPER_(f) reinterpret_cast<char*>(\
2801 &reinterpret_cast<DescriptorProto_ReservedRange*>(16)->f)
2802 #endif
2803
2804 #define ZR_(first, last) do {\
2805 ::memset(&(first), 0,\
2806 ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
2807 } while (0)
2808
2809 ZR_(start_, end_);
2810
2811 #undef ZR_HELPER_
2812 #undef ZR_
2813
2814 ::memset(_has_bits_, 0, sizeof(_has_bits_));
2815 if (_internal_metadata_.have_unknown_fields()) {
2816 mutable_unknown_fields()->Clear();
2817 }
2818 }
2819
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)2820 bool DescriptorProto_ReservedRange::MergePartialFromCodedStream(
2821 ::google::protobuf::io::CodedInputStream* input) {
2822 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2823 ::google::protobuf::uint32 tag;
2824 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.ReservedRange)
2825 for (;;) {
2826 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2827 tag = p.first;
2828 if (!p.second) goto handle_unusual;
2829 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2830 // optional int32 start = 1;
2831 case 1: {
2832 if (tag == 8) {
2833 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2834 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2835 input, &start_)));
2836 set_has_start();
2837 } else {
2838 goto handle_unusual;
2839 }
2840 if (input->ExpectTag(16)) goto parse_end;
2841 break;
2842 }
2843
2844 // optional int32 end = 2;
2845 case 2: {
2846 if (tag == 16) {
2847 parse_end:
2848 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2849 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2850 input, &end_)));
2851 set_has_end();
2852 } else {
2853 goto handle_unusual;
2854 }
2855 if (input->ExpectAtEnd()) goto success;
2856 break;
2857 }
2858
2859 default: {
2860 handle_unusual:
2861 if (tag == 0 ||
2862 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2863 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2864 goto success;
2865 }
2866 DO_(::google::protobuf::internal::WireFormat::SkipField(
2867 input, tag, mutable_unknown_fields()));
2868 break;
2869 }
2870 }
2871 }
2872 success:
2873 // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto.ReservedRange)
2874 return true;
2875 failure:
2876 // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto.ReservedRange)
2877 return false;
2878 #undef DO_
2879 }
2880
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const2881 void DescriptorProto_ReservedRange::SerializeWithCachedSizes(
2882 ::google::protobuf::io::CodedOutputStream* output) const {
2883 // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto.ReservedRange)
2884 // optional int32 start = 1;
2885 if (has_start()) {
2886 ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->start(), output);
2887 }
2888
2889 // optional int32 end = 2;
2890 if (has_end()) {
2891 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), output);
2892 }
2893
2894 if (_internal_metadata_.have_unknown_fields()) {
2895 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2896 unknown_fields(), output);
2897 }
2898 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.ReservedRange)
2899 }
2900
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const2901 ::google::protobuf::uint8* DescriptorProto_ReservedRange::SerializeWithCachedSizesToArray(
2902 ::google::protobuf::uint8* target) const {
2903 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ReservedRange)
2904 // optional int32 start = 1;
2905 if (has_start()) {
2906 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target);
2907 }
2908
2909 // optional int32 end = 2;
2910 if (has_end()) {
2911 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target);
2912 }
2913
2914 if (_internal_metadata_.have_unknown_fields()) {
2915 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2916 unknown_fields(), target);
2917 }
2918 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto.ReservedRange)
2919 return target;
2920 }
2921
ByteSize() const2922 int DescriptorProto_ReservedRange::ByteSize() const {
2923 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorProto.ReservedRange)
2924 int total_size = 0;
2925
2926 if (_has_bits_[0 / 32] & 3u) {
2927 // optional int32 start = 1;
2928 if (has_start()) {
2929 total_size += 1 +
2930 ::google::protobuf::internal::WireFormatLite::Int32Size(
2931 this->start());
2932 }
2933
2934 // optional int32 end = 2;
2935 if (has_end()) {
2936 total_size += 1 +
2937 ::google::protobuf::internal::WireFormatLite::Int32Size(
2938 this->end());
2939 }
2940
2941 }
2942 if (_internal_metadata_.have_unknown_fields()) {
2943 total_size +=
2944 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2945 unknown_fields());
2946 }
2947 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2948 _cached_size_ = total_size;
2949 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2950 return total_size;
2951 }
2952
MergeFrom(const::google::protobuf::Message & from)2953 void DescriptorProto_ReservedRange::MergeFrom(const ::google::protobuf::Message& from) {
2954 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.DescriptorProto.ReservedRange)
2955 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
2956 const DescriptorProto_ReservedRange* source =
2957 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto_ReservedRange>(
2958 &from);
2959 if (source == NULL) {
2960 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.DescriptorProto.ReservedRange)
2961 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2962 } else {
2963 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.DescriptorProto.ReservedRange)
2964 MergeFrom(*source);
2965 }
2966 }
2967
MergeFrom(const DescriptorProto_ReservedRange & from)2968 void DescriptorProto_ReservedRange::MergeFrom(const DescriptorProto_ReservedRange& from) {
2969 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DescriptorProto.ReservedRange)
2970 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
2971 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2972 if (from.has_start()) {
2973 set_start(from.start());
2974 }
2975 if (from.has_end()) {
2976 set_end(from.end());
2977 }
2978 }
2979 if (from._internal_metadata_.have_unknown_fields()) {
2980 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2981 }
2982 }
2983
CopyFrom(const::google::protobuf::Message & from)2984 void DescriptorProto_ReservedRange::CopyFrom(const ::google::protobuf::Message& from) {
2985 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.DescriptorProto.ReservedRange)
2986 if (&from == this) return;
2987 Clear();
2988 MergeFrom(from);
2989 }
2990
CopyFrom(const DescriptorProto_ReservedRange & from)2991 void DescriptorProto_ReservedRange::CopyFrom(const DescriptorProto_ReservedRange& from) {
2992 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DescriptorProto.ReservedRange)
2993 if (&from == this) return;
2994 Clear();
2995 MergeFrom(from);
2996 }
2997
IsInitialized() const2998 bool DescriptorProto_ReservedRange::IsInitialized() const {
2999
3000 return true;
3001 }
3002
Swap(DescriptorProto_ReservedRange * other)3003 void DescriptorProto_ReservedRange::Swap(DescriptorProto_ReservedRange* other) {
3004 if (other == this) return;
3005 InternalSwap(other);
3006 }
InternalSwap(DescriptorProto_ReservedRange * other)3007 void DescriptorProto_ReservedRange::InternalSwap(DescriptorProto_ReservedRange* other) {
3008 std::swap(start_, other->start_);
3009 std::swap(end_, other->end_);
3010 std::swap(_has_bits_[0], other->_has_bits_[0]);
3011 _internal_metadata_.Swap(&other->_internal_metadata_);
3012 std::swap(_cached_size_, other->_cached_size_);
3013 }
3014
GetMetadata() const3015 ::google::protobuf::Metadata DescriptorProto_ReservedRange::GetMetadata() const {
3016 protobuf_AssignDescriptorsOnce();
3017 ::google::protobuf::Metadata metadata;
3018 metadata.descriptor = DescriptorProto_ReservedRange_descriptor_;
3019 metadata.reflection = DescriptorProto_ReservedRange_reflection_;
3020 return metadata;
3021 }
3022
3023
3024 // -------------------------------------------------------------------
3025
3026 #if !defined(_MSC_VER) || _MSC_VER >= 1900
3027 const int DescriptorProto::kNameFieldNumber;
3028 const int DescriptorProto::kFieldFieldNumber;
3029 const int DescriptorProto::kExtensionFieldNumber;
3030 const int DescriptorProto::kNestedTypeFieldNumber;
3031 const int DescriptorProto::kEnumTypeFieldNumber;
3032 const int DescriptorProto::kExtensionRangeFieldNumber;
3033 const int DescriptorProto::kOneofDeclFieldNumber;
3034 const int DescriptorProto::kOptionsFieldNumber;
3035 const int DescriptorProto::kReservedRangeFieldNumber;
3036 const int DescriptorProto::kReservedNameFieldNumber;
3037 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
3038
DescriptorProto()3039 DescriptorProto::DescriptorProto()
3040 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3041 SharedCtor();
3042 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto)
3043 }
3044
InitAsDefaultInstance()3045 void DescriptorProto::InitAsDefaultInstance() {
3046 options_ = const_cast< ::google::protobuf::MessageOptions*>(&::google::protobuf::MessageOptions::default_instance());
3047 }
3048
DescriptorProto(const DescriptorProto & from)3049 DescriptorProto::DescriptorProto(const DescriptorProto& from)
3050 : ::google::protobuf::Message(),
3051 _internal_metadata_(NULL) {
3052 SharedCtor();
3053 MergeFrom(from);
3054 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto)
3055 }
3056
SharedCtor()3057 void DescriptorProto::SharedCtor() {
3058 ::google::protobuf::internal::GetEmptyString();
3059 _cached_size_ = 0;
3060 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3061 options_ = NULL;
3062 ::memset(_has_bits_, 0, sizeof(_has_bits_));
3063 }
3064
~DescriptorProto()3065 DescriptorProto::~DescriptorProto() {
3066 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto)
3067 SharedDtor();
3068 }
3069
SharedDtor()3070 void DescriptorProto::SharedDtor() {
3071 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3072 if (this != default_instance_) {
3073 delete options_;
3074 }
3075 }
3076
SetCachedSize(int size) const3077 void DescriptorProto::SetCachedSize(int size) const {
3078 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3079 _cached_size_ = size;
3080 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3081 }
descriptor()3082 const ::google::protobuf::Descriptor* DescriptorProto::descriptor() {
3083 protobuf_AssignDescriptorsOnce();
3084 return DescriptorProto_descriptor_;
3085 }
3086
default_instance()3087 const DescriptorProto& DescriptorProto::default_instance() {
3088 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
3089 return *default_instance_;
3090 }
3091
3092 DescriptorProto* DescriptorProto::default_instance_ = NULL;
3093
New(::google::protobuf::Arena * arena) const3094 DescriptorProto* DescriptorProto::New(::google::protobuf::Arena* arena) const {
3095 DescriptorProto* n = new DescriptorProto;
3096 if (arena != NULL) {
3097 arena->Own(n);
3098 }
3099 return n;
3100 }
3101
Clear()3102 void DescriptorProto::Clear() {
3103 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto)
3104 if (_has_bits_[0 / 32] & 129u) {
3105 if (has_name()) {
3106 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3107 }
3108 if (has_options()) {
3109 if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear();
3110 }
3111 }
3112 field_.Clear();
3113 extension_.Clear();
3114 nested_type_.Clear();
3115 enum_type_.Clear();
3116 extension_range_.Clear();
3117 oneof_decl_.Clear();
3118 reserved_range_.Clear();
3119 reserved_name_.Clear();
3120 ::memset(_has_bits_, 0, sizeof(_has_bits_));
3121 if (_internal_metadata_.have_unknown_fields()) {
3122 mutable_unknown_fields()->Clear();
3123 }
3124 }
3125
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)3126 bool DescriptorProto::MergePartialFromCodedStream(
3127 ::google::protobuf::io::CodedInputStream* input) {
3128 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3129 ::google::protobuf::uint32 tag;
3130 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto)
3131 for (;;) {
3132 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
3133 tag = p.first;
3134 if (!p.second) goto handle_unusual;
3135 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3136 // optional string name = 1;
3137 case 1: {
3138 if (tag == 10) {
3139 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3140 input, this->mutable_name()));
3141 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3142 this->name().data(), this->name().length(),
3143 ::google::protobuf::internal::WireFormat::PARSE,
3144 "google.protobuf.DescriptorProto.name");
3145 } else {
3146 goto handle_unusual;
3147 }
3148 if (input->ExpectTag(18)) goto parse_field;
3149 break;
3150 }
3151
3152 // repeated .google.protobuf.FieldDescriptorProto field = 2;
3153 case 2: {
3154 if (tag == 18) {
3155 parse_field:
3156 DO_(input->IncrementRecursionDepth());
3157 parse_loop_field:
3158 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
3159 input, add_field()));
3160 } else {
3161 goto handle_unusual;
3162 }
3163 if (input->ExpectTag(18)) goto parse_loop_field;
3164 if (input->ExpectTag(26)) goto parse_loop_nested_type;
3165 input->UnsafeDecrementRecursionDepth();
3166 break;
3167 }
3168
3169 // repeated .google.protobuf.DescriptorProto nested_type = 3;
3170 case 3: {
3171 if (tag == 26) {
3172 DO_(input->IncrementRecursionDepth());
3173 parse_loop_nested_type:
3174 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
3175 input, add_nested_type()));
3176 } else {
3177 goto handle_unusual;
3178 }
3179 if (input->ExpectTag(26)) goto parse_loop_nested_type;
3180 if (input->ExpectTag(34)) goto parse_loop_enum_type;
3181 input->UnsafeDecrementRecursionDepth();
3182 break;
3183 }
3184
3185 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3186 case 4: {
3187 if (tag == 34) {
3188 DO_(input->IncrementRecursionDepth());
3189 parse_loop_enum_type:
3190 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
3191 input, add_enum_type()));
3192 } else {
3193 goto handle_unusual;
3194 }
3195 if (input->ExpectTag(34)) goto parse_loop_enum_type;
3196 if (input->ExpectTag(42)) goto parse_loop_extension_range;
3197 input->UnsafeDecrementRecursionDepth();
3198 break;
3199 }
3200
3201 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
3202 case 5: {
3203 if (tag == 42) {
3204 DO_(input->IncrementRecursionDepth());
3205 parse_loop_extension_range:
3206 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
3207 input, add_extension_range()));
3208 } else {
3209 goto handle_unusual;
3210 }
3211 if (input->ExpectTag(42)) goto parse_loop_extension_range;
3212 if (input->ExpectTag(50)) goto parse_loop_extension;
3213 input->UnsafeDecrementRecursionDepth();
3214 break;
3215 }
3216
3217 // repeated .google.protobuf.FieldDescriptorProto extension = 6;
3218 case 6: {
3219 if (tag == 50) {
3220 DO_(input->IncrementRecursionDepth());
3221 parse_loop_extension:
3222 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
3223 input, add_extension()));
3224 } else {
3225 goto handle_unusual;
3226 }
3227 if (input->ExpectTag(50)) goto parse_loop_extension;
3228 input->UnsafeDecrementRecursionDepth();
3229 if (input->ExpectTag(58)) goto parse_options;
3230 break;
3231 }
3232
3233 // optional .google.protobuf.MessageOptions options = 7;
3234 case 7: {
3235 if (tag == 58) {
3236 parse_options:
3237 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3238 input, mutable_options()));
3239 } else {
3240 goto handle_unusual;
3241 }
3242 if (input->ExpectTag(66)) goto parse_oneof_decl;
3243 break;
3244 }
3245
3246 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
3247 case 8: {
3248 if (tag == 66) {
3249 parse_oneof_decl:
3250 DO_(input->IncrementRecursionDepth());
3251 parse_loop_oneof_decl:
3252 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
3253 input, add_oneof_decl()));
3254 } else {
3255 goto handle_unusual;
3256 }
3257 if (input->ExpectTag(66)) goto parse_loop_oneof_decl;
3258 if (input->ExpectTag(74)) goto parse_loop_reserved_range;
3259 input->UnsafeDecrementRecursionDepth();
3260 break;
3261 }
3262
3263 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
3264 case 9: {
3265 if (tag == 74) {
3266 DO_(input->IncrementRecursionDepth());
3267 parse_loop_reserved_range:
3268 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
3269 input, add_reserved_range()));
3270 } else {
3271 goto handle_unusual;
3272 }
3273 if (input->ExpectTag(74)) goto parse_loop_reserved_range;
3274 input->UnsafeDecrementRecursionDepth();
3275 if (input->ExpectTag(82)) goto parse_reserved_name;
3276 break;
3277 }
3278
3279 // repeated string reserved_name = 10;
3280 case 10: {
3281 if (tag == 82) {
3282 parse_reserved_name:
3283 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3284 input, this->add_reserved_name()));
3285 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3286 this->reserved_name(this->reserved_name_size() - 1).data(),
3287 this->reserved_name(this->reserved_name_size() - 1).length(),
3288 ::google::protobuf::internal::WireFormat::PARSE,
3289 "google.protobuf.DescriptorProto.reserved_name");
3290 } else {
3291 goto handle_unusual;
3292 }
3293 if (input->ExpectTag(82)) goto parse_reserved_name;
3294 if (input->ExpectAtEnd()) goto success;
3295 break;
3296 }
3297
3298 default: {
3299 handle_unusual:
3300 if (tag == 0 ||
3301 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3302 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3303 goto success;
3304 }
3305 DO_(::google::protobuf::internal::WireFormat::SkipField(
3306 input, tag, mutable_unknown_fields()));
3307 break;
3308 }
3309 }
3310 }
3311 success:
3312 // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto)
3313 return true;
3314 failure:
3315 // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto)
3316 return false;
3317 #undef DO_
3318 }
3319
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const3320 void DescriptorProto::SerializeWithCachedSizes(
3321 ::google::protobuf::io::CodedOutputStream* output) const {
3322 // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto)
3323 // optional string name = 1;
3324 if (has_name()) {
3325 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3326 this->name().data(), this->name().length(),
3327 ::google::protobuf::internal::WireFormat::SERIALIZE,
3328 "google.protobuf.DescriptorProto.name");
3329 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3330 1, this->name(), output);
3331 }
3332
3333 // repeated .google.protobuf.FieldDescriptorProto field = 2;
3334 for (unsigned int i = 0, n = this->field_size(); i < n; i++) {
3335 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3336 2, this->field(i), output);
3337 }
3338
3339 // repeated .google.protobuf.DescriptorProto nested_type = 3;
3340 for (unsigned int i = 0, n = this->nested_type_size(); i < n; i++) {
3341 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3342 3, this->nested_type(i), output);
3343 }
3344
3345 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3346 for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) {
3347 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3348 4, this->enum_type(i), output);
3349 }
3350
3351 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
3352 for (unsigned int i = 0, n = this->extension_range_size(); i < n; i++) {
3353 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3354 5, this->extension_range(i), output);
3355 }
3356
3357 // repeated .google.protobuf.FieldDescriptorProto extension = 6;
3358 for (unsigned int i = 0, n = this->extension_size(); i < n; i++) {
3359 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3360 6, this->extension(i), output);
3361 }
3362
3363 // optional .google.protobuf.MessageOptions options = 7;
3364 if (has_options()) {
3365 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3366 7, *this->options_, output);
3367 }
3368
3369 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
3370 for (unsigned int i = 0, n = this->oneof_decl_size(); i < n; i++) {
3371 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3372 8, this->oneof_decl(i), output);
3373 }
3374
3375 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
3376 for (unsigned int i = 0, n = this->reserved_range_size(); i < n; i++) {
3377 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3378 9, this->reserved_range(i), output);
3379 }
3380
3381 // repeated string reserved_name = 10;
3382 for (int i = 0; i < this->reserved_name_size(); i++) {
3383 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3384 this->reserved_name(i).data(), this->reserved_name(i).length(),
3385 ::google::protobuf::internal::WireFormat::SERIALIZE,
3386 "google.protobuf.DescriptorProto.reserved_name");
3387 ::google::protobuf::internal::WireFormatLite::WriteString(
3388 10, this->reserved_name(i), output);
3389 }
3390
3391 if (_internal_metadata_.have_unknown_fields()) {
3392 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3393 unknown_fields(), output);
3394 }
3395 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto)
3396 }
3397
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const3398 ::google::protobuf::uint8* DescriptorProto::SerializeWithCachedSizesToArray(
3399 ::google::protobuf::uint8* target) const {
3400 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto)
3401 // optional string name = 1;
3402 if (has_name()) {
3403 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3404 this->name().data(), this->name().length(),
3405 ::google::protobuf::internal::WireFormat::SERIALIZE,
3406 "google.protobuf.DescriptorProto.name");
3407 target =
3408 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3409 1, this->name(), target);
3410 }
3411
3412 // repeated .google.protobuf.FieldDescriptorProto field = 2;
3413 for (unsigned int i = 0, n = this->field_size(); i < n; i++) {
3414 target = ::google::protobuf::internal::WireFormatLite::
3415 WriteMessageNoVirtualToArray(
3416 2, this->field(i), target);
3417 }
3418
3419 // repeated .google.protobuf.DescriptorProto nested_type = 3;
3420 for (unsigned int i = 0, n = this->nested_type_size(); i < n; i++) {
3421 target = ::google::protobuf::internal::WireFormatLite::
3422 WriteMessageNoVirtualToArray(
3423 3, this->nested_type(i), target);
3424 }
3425
3426 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3427 for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) {
3428 target = ::google::protobuf::internal::WireFormatLite::
3429 WriteMessageNoVirtualToArray(
3430 4, this->enum_type(i), target);
3431 }
3432
3433 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
3434 for (unsigned int i = 0, n = this->extension_range_size(); i < n; i++) {
3435 target = ::google::protobuf::internal::WireFormatLite::
3436 WriteMessageNoVirtualToArray(
3437 5, this->extension_range(i), target);
3438 }
3439
3440 // repeated .google.protobuf.FieldDescriptorProto extension = 6;
3441 for (unsigned int i = 0, n = this->extension_size(); i < n; i++) {
3442 target = ::google::protobuf::internal::WireFormatLite::
3443 WriteMessageNoVirtualToArray(
3444 6, this->extension(i), target);
3445 }
3446
3447 // optional .google.protobuf.MessageOptions options = 7;
3448 if (has_options()) {
3449 target = ::google::protobuf::internal::WireFormatLite::
3450 WriteMessageNoVirtualToArray(
3451 7, *this->options_, target);
3452 }
3453
3454 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
3455 for (unsigned int i = 0, n = this->oneof_decl_size(); i < n; i++) {
3456 target = ::google::protobuf::internal::WireFormatLite::
3457 WriteMessageNoVirtualToArray(
3458 8, this->oneof_decl(i), target);
3459 }
3460
3461 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
3462 for (unsigned int i = 0, n = this->reserved_range_size(); i < n; i++) {
3463 target = ::google::protobuf::internal::WireFormatLite::
3464 WriteMessageNoVirtualToArray(
3465 9, this->reserved_range(i), target);
3466 }
3467
3468 // repeated string reserved_name = 10;
3469 for (int i = 0; i < this->reserved_name_size(); i++) {
3470 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3471 this->reserved_name(i).data(), this->reserved_name(i).length(),
3472 ::google::protobuf::internal::WireFormat::SERIALIZE,
3473 "google.protobuf.DescriptorProto.reserved_name");
3474 target = ::google::protobuf::internal::WireFormatLite::
3475 WriteStringToArray(10, this->reserved_name(i), target);
3476 }
3477
3478 if (_internal_metadata_.have_unknown_fields()) {
3479 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3480 unknown_fields(), target);
3481 }
3482 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto)
3483 return target;
3484 }
3485
ByteSize() const3486 int DescriptorProto::ByteSize() const {
3487 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorProto)
3488 int total_size = 0;
3489
3490 if (_has_bits_[0 / 32] & 129u) {
3491 // optional string name = 1;
3492 if (has_name()) {
3493 total_size += 1 +
3494 ::google::protobuf::internal::WireFormatLite::StringSize(
3495 this->name());
3496 }
3497
3498 // optional .google.protobuf.MessageOptions options = 7;
3499 if (has_options()) {
3500 total_size += 1 +
3501 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3502 *this->options_);
3503 }
3504
3505 }
3506 // repeated .google.protobuf.FieldDescriptorProto field = 2;
3507 total_size += 1 * this->field_size();
3508 for (int i = 0; i < this->field_size(); i++) {
3509 total_size +=
3510 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3511 this->field(i));
3512 }
3513
3514 // repeated .google.protobuf.FieldDescriptorProto extension = 6;
3515 total_size += 1 * this->extension_size();
3516 for (int i = 0; i < this->extension_size(); i++) {
3517 total_size +=
3518 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3519 this->extension(i));
3520 }
3521
3522 // repeated .google.protobuf.DescriptorProto nested_type = 3;
3523 total_size += 1 * this->nested_type_size();
3524 for (int i = 0; i < this->nested_type_size(); i++) {
3525 total_size +=
3526 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3527 this->nested_type(i));
3528 }
3529
3530 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3531 total_size += 1 * this->enum_type_size();
3532 for (int i = 0; i < this->enum_type_size(); i++) {
3533 total_size +=
3534 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3535 this->enum_type(i));
3536 }
3537
3538 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
3539 total_size += 1 * this->extension_range_size();
3540 for (int i = 0; i < this->extension_range_size(); i++) {
3541 total_size +=
3542 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3543 this->extension_range(i));
3544 }
3545
3546 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
3547 total_size += 1 * this->oneof_decl_size();
3548 for (int i = 0; i < this->oneof_decl_size(); i++) {
3549 total_size +=
3550 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3551 this->oneof_decl(i));
3552 }
3553
3554 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
3555 total_size += 1 * this->reserved_range_size();
3556 for (int i = 0; i < this->reserved_range_size(); i++) {
3557 total_size +=
3558 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3559 this->reserved_range(i));
3560 }
3561
3562 // repeated string reserved_name = 10;
3563 total_size += 1 * this->reserved_name_size();
3564 for (int i = 0; i < this->reserved_name_size(); i++) {
3565 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
3566 this->reserved_name(i));
3567 }
3568
3569 if (_internal_metadata_.have_unknown_fields()) {
3570 total_size +=
3571 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3572 unknown_fields());
3573 }
3574 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3575 _cached_size_ = total_size;
3576 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3577 return total_size;
3578 }
3579
MergeFrom(const::google::protobuf::Message & from)3580 void DescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
3581 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.DescriptorProto)
3582 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
3583 const DescriptorProto* source =
3584 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto>(
3585 &from);
3586 if (source == NULL) {
3587 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.DescriptorProto)
3588 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3589 } else {
3590 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.DescriptorProto)
3591 MergeFrom(*source);
3592 }
3593 }
3594
MergeFrom(const DescriptorProto & from)3595 void DescriptorProto::MergeFrom(const DescriptorProto& from) {
3596 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DescriptorProto)
3597 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
3598 field_.MergeFrom(from.field_);
3599 extension_.MergeFrom(from.extension_);
3600 nested_type_.MergeFrom(from.nested_type_);
3601 enum_type_.MergeFrom(from.enum_type_);
3602 extension_range_.MergeFrom(from.extension_range_);
3603 oneof_decl_.MergeFrom(from.oneof_decl_);
3604 reserved_range_.MergeFrom(from.reserved_range_);
3605 reserved_name_.MergeFrom(from.reserved_name_);
3606 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3607 if (from.has_name()) {
3608 set_has_name();
3609 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
3610 }
3611 if (from.has_options()) {
3612 mutable_options()->::google::protobuf::MessageOptions::MergeFrom(from.options());
3613 }
3614 }
3615 if (from._internal_metadata_.have_unknown_fields()) {
3616 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3617 }
3618 }
3619
CopyFrom(const::google::protobuf::Message & from)3620 void DescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
3621 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.DescriptorProto)
3622 if (&from == this) return;
3623 Clear();
3624 MergeFrom(from);
3625 }
3626
CopyFrom(const DescriptorProto & from)3627 void DescriptorProto::CopyFrom(const DescriptorProto& from) {
3628 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DescriptorProto)
3629 if (&from == this) return;
3630 Clear();
3631 MergeFrom(from);
3632 }
3633
IsInitialized() const3634 bool DescriptorProto::IsInitialized() const {
3635
3636 if (!::google::protobuf::internal::AllAreInitialized(this->field())) return false;
3637 if (!::google::protobuf::internal::AllAreInitialized(this->extension())) return false;
3638 if (!::google::protobuf::internal::AllAreInitialized(this->nested_type())) return false;
3639 if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) return false;
3640 if (has_options()) {
3641 if (!this->options_->IsInitialized()) return false;
3642 }
3643 return true;
3644 }
3645
Swap(DescriptorProto * other)3646 void DescriptorProto::Swap(DescriptorProto* other) {
3647 if (other == this) return;
3648 InternalSwap(other);
3649 }
InternalSwap(DescriptorProto * other)3650 void DescriptorProto::InternalSwap(DescriptorProto* other) {
3651 name_.Swap(&other->name_);
3652 field_.UnsafeArenaSwap(&other->field_);
3653 extension_.UnsafeArenaSwap(&other->extension_);
3654 nested_type_.UnsafeArenaSwap(&other->nested_type_);
3655 enum_type_.UnsafeArenaSwap(&other->enum_type_);
3656 extension_range_.UnsafeArenaSwap(&other->extension_range_);
3657 oneof_decl_.UnsafeArenaSwap(&other->oneof_decl_);
3658 std::swap(options_, other->options_);
3659 reserved_range_.UnsafeArenaSwap(&other->reserved_range_);
3660 reserved_name_.UnsafeArenaSwap(&other->reserved_name_);
3661 std::swap(_has_bits_[0], other->_has_bits_[0]);
3662 _internal_metadata_.Swap(&other->_internal_metadata_);
3663 std::swap(_cached_size_, other->_cached_size_);
3664 }
3665
GetMetadata() const3666 ::google::protobuf::Metadata DescriptorProto::GetMetadata() const {
3667 protobuf_AssignDescriptorsOnce();
3668 ::google::protobuf::Metadata metadata;
3669 metadata.descriptor = DescriptorProto_descriptor_;
3670 metadata.reflection = DescriptorProto_reflection_;
3671 return metadata;
3672 }
3673
3674 #if PROTOBUF_INLINE_NOT_IN_HEADERS
3675 // DescriptorProto_ExtensionRange
3676
3677 // optional int32 start = 1;
has_start() const3678 bool DescriptorProto_ExtensionRange::has_start() const {
3679 return (_has_bits_[0] & 0x00000001u) != 0;
3680 }
set_has_start()3681 void DescriptorProto_ExtensionRange::set_has_start() {
3682 _has_bits_[0] |= 0x00000001u;
3683 }
clear_has_start()3684 void DescriptorProto_ExtensionRange::clear_has_start() {
3685 _has_bits_[0] &= ~0x00000001u;
3686 }
clear_start()3687 void DescriptorProto_ExtensionRange::clear_start() {
3688 start_ = 0;
3689 clear_has_start();
3690 }
start() const3691 ::google::protobuf::int32 DescriptorProto_ExtensionRange::start() const {
3692 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.start)
3693 return start_;
3694 }
set_start(::google::protobuf::int32 value)3695 void DescriptorProto_ExtensionRange::set_start(::google::protobuf::int32 value) {
3696 set_has_start();
3697 start_ = value;
3698 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.start)
3699 }
3700
3701 // optional int32 end = 2;
has_end() const3702 bool DescriptorProto_ExtensionRange::has_end() const {
3703 return (_has_bits_[0] & 0x00000002u) != 0;
3704 }
set_has_end()3705 void DescriptorProto_ExtensionRange::set_has_end() {
3706 _has_bits_[0] |= 0x00000002u;
3707 }
clear_has_end()3708 void DescriptorProto_ExtensionRange::clear_has_end() {
3709 _has_bits_[0] &= ~0x00000002u;
3710 }
clear_end()3711 void DescriptorProto_ExtensionRange::clear_end() {
3712 end_ = 0;
3713 clear_has_end();
3714 }
end() const3715 ::google::protobuf::int32 DescriptorProto_ExtensionRange::end() const {
3716 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.end)
3717 return end_;
3718 }
set_end(::google::protobuf::int32 value)3719 void DescriptorProto_ExtensionRange::set_end(::google::protobuf::int32 value) {
3720 set_has_end();
3721 end_ = value;
3722 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.end)
3723 }
3724
3725 // -------------------------------------------------------------------
3726
3727 // DescriptorProto_ReservedRange
3728
3729 // optional int32 start = 1;
has_start() const3730 bool DescriptorProto_ReservedRange::has_start() const {
3731 return (_has_bits_[0] & 0x00000001u) != 0;
3732 }
set_has_start()3733 void DescriptorProto_ReservedRange::set_has_start() {
3734 _has_bits_[0] |= 0x00000001u;
3735 }
clear_has_start()3736 void DescriptorProto_ReservedRange::clear_has_start() {
3737 _has_bits_[0] &= ~0x00000001u;
3738 }
clear_start()3739 void DescriptorProto_ReservedRange::clear_start() {
3740 start_ = 0;
3741 clear_has_start();
3742 }
start() const3743 ::google::protobuf::int32 DescriptorProto_ReservedRange::start() const {
3744 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.start)
3745 return start_;
3746 }
set_start(::google::protobuf::int32 value)3747 void DescriptorProto_ReservedRange::set_start(::google::protobuf::int32 value) {
3748 set_has_start();
3749 start_ = value;
3750 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.start)
3751 }
3752
3753 // optional int32 end = 2;
has_end() const3754 bool DescriptorProto_ReservedRange::has_end() const {
3755 return (_has_bits_[0] & 0x00000002u) != 0;
3756 }
set_has_end()3757 void DescriptorProto_ReservedRange::set_has_end() {
3758 _has_bits_[0] |= 0x00000002u;
3759 }
clear_has_end()3760 void DescriptorProto_ReservedRange::clear_has_end() {
3761 _has_bits_[0] &= ~0x00000002u;
3762 }
clear_end()3763 void DescriptorProto_ReservedRange::clear_end() {
3764 end_ = 0;
3765 clear_has_end();
3766 }
end() const3767 ::google::protobuf::int32 DescriptorProto_ReservedRange::end() const {
3768 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.end)
3769 return end_;
3770 }
set_end(::google::protobuf::int32 value)3771 void DescriptorProto_ReservedRange::set_end(::google::protobuf::int32 value) {
3772 set_has_end();
3773 end_ = value;
3774 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.end)
3775 }
3776
3777 // -------------------------------------------------------------------
3778
3779 // DescriptorProto
3780
3781 // optional string name = 1;
has_name() const3782 bool DescriptorProto::has_name() const {
3783 return (_has_bits_[0] & 0x00000001u) != 0;
3784 }
set_has_name()3785 void DescriptorProto::set_has_name() {
3786 _has_bits_[0] |= 0x00000001u;
3787 }
clear_has_name()3788 void DescriptorProto::clear_has_name() {
3789 _has_bits_[0] &= ~0x00000001u;
3790 }
clear_name()3791 void DescriptorProto::clear_name() {
3792 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3793 clear_has_name();
3794 }
name() const3795 const ::std::string& DescriptorProto::name() const {
3796 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name)
3797 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3798 }
set_name(const::std::string & value)3799 void DescriptorProto::set_name(const ::std::string& value) {
3800 set_has_name();
3801 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3802 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name)
3803 }
set_name(const char * value)3804 void DescriptorProto::set_name(const char* value) {
3805 set_has_name();
3806 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3807 // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.name)
3808 }
set_name(const char * value,size_t size)3809 void DescriptorProto::set_name(const char* value, size_t size) {
3810 set_has_name();
3811 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3812 ::std::string(reinterpret_cast<const char*>(value), size));
3813 // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.name)
3814 }
mutable_name()3815 ::std::string* DescriptorProto::mutable_name() {
3816 set_has_name();
3817 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name)
3818 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3819 }
release_name()3820 ::std::string* DescriptorProto::release_name() {
3821 // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.name)
3822 clear_has_name();
3823 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3824 }
set_allocated_name(::std::string * name)3825 void DescriptorProto::set_allocated_name(::std::string* name) {
3826 if (name != NULL) {
3827 set_has_name();
3828 } else {
3829 clear_has_name();
3830 }
3831 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
3832 // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.name)
3833 }
3834
3835 // repeated .google.protobuf.FieldDescriptorProto field = 2;
field_size() const3836 int DescriptorProto::field_size() const {
3837 return field_.size();
3838 }
clear_field()3839 void DescriptorProto::clear_field() {
3840 field_.Clear();
3841 }
field(int index) const3842 const ::google::protobuf::FieldDescriptorProto& DescriptorProto::field(int index) const {
3843 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.field)
3844 return field_.Get(index);
3845 }
mutable_field(int index)3846 ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_field(int index) {
3847 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.field)
3848 return field_.Mutable(index);
3849 }
add_field()3850 ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_field() {
3851 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.field)
3852 return field_.Add();
3853 }
3854 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
mutable_field()3855 DescriptorProto::mutable_field() {
3856 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.field)
3857 return &field_;
3858 }
3859 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
field() const3860 DescriptorProto::field() const {
3861 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.field)
3862 return field_;
3863 }
3864
3865 // repeated .google.protobuf.FieldDescriptorProto extension = 6;
extension_size() const3866 int DescriptorProto::extension_size() const {
3867 return extension_.size();
3868 }
clear_extension()3869 void DescriptorProto::clear_extension() {
3870 extension_.Clear();
3871 }
extension(int index) const3872 const ::google::protobuf::FieldDescriptorProto& DescriptorProto::extension(int index) const {
3873 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension)
3874 return extension_.Get(index);
3875 }
mutable_extension(int index)3876 ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_extension(int index) {
3877 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension)
3878 return extension_.Mutable(index);
3879 }
add_extension()3880 ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_extension() {
3881 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension)
3882 return extension_.Add();
3883 }
3884 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
mutable_extension()3885 DescriptorProto::mutable_extension() {
3886 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension)
3887 return &extension_;
3888 }
3889 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
extension() const3890 DescriptorProto::extension() const {
3891 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension)
3892 return extension_;
3893 }
3894
3895 // repeated .google.protobuf.DescriptorProto nested_type = 3;
nested_type_size() const3896 int DescriptorProto::nested_type_size() const {
3897 return nested_type_.size();
3898 }
clear_nested_type()3899 void DescriptorProto::clear_nested_type() {
3900 nested_type_.Clear();
3901 }
nested_type(int index) const3902 const ::google::protobuf::DescriptorProto& DescriptorProto::nested_type(int index) const {
3903 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.nested_type)
3904 return nested_type_.Get(index);
3905 }
mutable_nested_type(int index)3906 ::google::protobuf::DescriptorProto* DescriptorProto::mutable_nested_type(int index) {
3907 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.nested_type)
3908 return nested_type_.Mutable(index);
3909 }
add_nested_type()3910 ::google::protobuf::DescriptorProto* DescriptorProto::add_nested_type() {
3911 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.nested_type)
3912 return nested_type_.Add();
3913 }
3914 ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
mutable_nested_type()3915 DescriptorProto::mutable_nested_type() {
3916 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.nested_type)
3917 return &nested_type_;
3918 }
3919 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
nested_type() const3920 DescriptorProto::nested_type() const {
3921 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.nested_type)
3922 return nested_type_;
3923 }
3924
3925 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
enum_type_size() const3926 int DescriptorProto::enum_type_size() const {
3927 return enum_type_.size();
3928 }
clear_enum_type()3929 void DescriptorProto::clear_enum_type() {
3930 enum_type_.Clear();
3931 }
enum_type(int index) const3932 const ::google::protobuf::EnumDescriptorProto& DescriptorProto::enum_type(int index) const {
3933 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.enum_type)
3934 return enum_type_.Get(index);
3935 }
mutable_enum_type(int index)3936 ::google::protobuf::EnumDescriptorProto* DescriptorProto::mutable_enum_type(int index) {
3937 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.enum_type)
3938 return enum_type_.Mutable(index);
3939 }
add_enum_type()3940 ::google::protobuf::EnumDescriptorProto* DescriptorProto::add_enum_type() {
3941 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.enum_type)
3942 return enum_type_.Add();
3943 }
3944 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
mutable_enum_type()3945 DescriptorProto::mutable_enum_type() {
3946 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.enum_type)
3947 return &enum_type_;
3948 }
3949 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
enum_type() const3950 DescriptorProto::enum_type() const {
3951 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.enum_type)
3952 return enum_type_;
3953 }
3954
3955 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
extension_range_size() const3956 int DescriptorProto::extension_range_size() const {
3957 return extension_range_.size();
3958 }
clear_extension_range()3959 void DescriptorProto::clear_extension_range() {
3960 extension_range_.Clear();
3961 }
extension_range(int index) const3962 const ::google::protobuf::DescriptorProto_ExtensionRange& DescriptorProto::extension_range(int index) const {
3963 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension_range)
3964 return extension_range_.Get(index);
3965 }
mutable_extension_range(int index)3966 ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::mutable_extension_range(int index) {
3967 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension_range)
3968 return extension_range_.Mutable(index);
3969 }
add_extension_range()3970 ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::add_extension_range() {
3971 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension_range)
3972 return extension_range_.Add();
3973 }
3974 ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >*
mutable_extension_range()3975 DescriptorProto::mutable_extension_range() {
3976 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension_range)
3977 return &extension_range_;
3978 }
3979 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >&
extension_range() const3980 DescriptorProto::extension_range() const {
3981 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension_range)
3982 return extension_range_;
3983 }
3984
3985 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
oneof_decl_size() const3986 int DescriptorProto::oneof_decl_size() const {
3987 return oneof_decl_.size();
3988 }
clear_oneof_decl()3989 void DescriptorProto::clear_oneof_decl() {
3990 oneof_decl_.Clear();
3991 }
oneof_decl(int index) const3992 const ::google::protobuf::OneofDescriptorProto& DescriptorProto::oneof_decl(int index) const {
3993 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.oneof_decl)
3994 return oneof_decl_.Get(index);
3995 }
mutable_oneof_decl(int index)3996 ::google::protobuf::OneofDescriptorProto* DescriptorProto::mutable_oneof_decl(int index) {
3997 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.oneof_decl)
3998 return oneof_decl_.Mutable(index);
3999 }
add_oneof_decl()4000 ::google::protobuf::OneofDescriptorProto* DescriptorProto::add_oneof_decl() {
4001 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.oneof_decl)
4002 return oneof_decl_.Add();
4003 }
4004 ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >*
mutable_oneof_decl()4005 DescriptorProto::mutable_oneof_decl() {
4006 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.oneof_decl)
4007 return &oneof_decl_;
4008 }
4009 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >&
oneof_decl() const4010 DescriptorProto::oneof_decl() const {
4011 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_decl)
4012 return oneof_decl_;
4013 }
4014
4015 // optional .google.protobuf.MessageOptions options = 7;
has_options() const4016 bool DescriptorProto::has_options() const {
4017 return (_has_bits_[0] & 0x00000080u) != 0;
4018 }
set_has_options()4019 void DescriptorProto::set_has_options() {
4020 _has_bits_[0] |= 0x00000080u;
4021 }
clear_has_options()4022 void DescriptorProto::clear_has_options() {
4023 _has_bits_[0] &= ~0x00000080u;
4024 }
clear_options()4025 void DescriptorProto::clear_options() {
4026 if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear();
4027 clear_has_options();
4028 }
options() const4029 const ::google::protobuf::MessageOptions& DescriptorProto::options() const {
4030 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options)
4031 return options_ != NULL ? *options_ : *default_instance_->options_;
4032 }
mutable_options()4033 ::google::protobuf::MessageOptions* DescriptorProto::mutable_options() {
4034 set_has_options();
4035 if (options_ == NULL) {
4036 options_ = new ::google::protobuf::MessageOptions;
4037 }
4038 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.options)
4039 return options_;
4040 }
release_options()4041 ::google::protobuf::MessageOptions* DescriptorProto::release_options() {
4042 // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.options)
4043 clear_has_options();
4044 ::google::protobuf::MessageOptions* temp = options_;
4045 options_ = NULL;
4046 return temp;
4047 }
set_allocated_options(::google::protobuf::MessageOptions * options)4048 void DescriptorProto::set_allocated_options(::google::protobuf::MessageOptions* options) {
4049 delete options_;
4050 options_ = options;
4051 if (options) {
4052 set_has_options();
4053 } else {
4054 clear_has_options();
4055 }
4056 // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.options)
4057 }
4058
4059 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
reserved_range_size() const4060 int DescriptorProto::reserved_range_size() const {
4061 return reserved_range_.size();
4062 }
clear_reserved_range()4063 void DescriptorProto::clear_reserved_range() {
4064 reserved_range_.Clear();
4065 }
reserved_range(int index) const4066 const ::google::protobuf::DescriptorProto_ReservedRange& DescriptorProto::reserved_range(int index) const {
4067 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_range)
4068 return reserved_range_.Get(index);
4069 }
mutable_reserved_range(int index)4070 ::google::protobuf::DescriptorProto_ReservedRange* DescriptorProto::mutable_reserved_range(int index) {
4071 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_range)
4072 return reserved_range_.Mutable(index);
4073 }
add_reserved_range()4074 ::google::protobuf::DescriptorProto_ReservedRange* DescriptorProto::add_reserved_range() {
4075 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_range)
4076 return reserved_range_.Add();
4077 }
4078 ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >*
mutable_reserved_range()4079 DescriptorProto::mutable_reserved_range() {
4080 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_range)
4081 return &reserved_range_;
4082 }
4083 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >&
reserved_range() const4084 DescriptorProto::reserved_range() const {
4085 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_range)
4086 return reserved_range_;
4087 }
4088
4089 // repeated string reserved_name = 10;
reserved_name_size() const4090 int DescriptorProto::reserved_name_size() const {
4091 return reserved_name_.size();
4092 }
clear_reserved_name()4093 void DescriptorProto::clear_reserved_name() {
4094 reserved_name_.Clear();
4095 }
reserved_name(int index) const4096 const ::std::string& DescriptorProto::reserved_name(int index) const {
4097 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_name)
4098 return reserved_name_.Get(index);
4099 }
mutable_reserved_name(int index)4100 ::std::string* DescriptorProto::mutable_reserved_name(int index) {
4101 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_name)
4102 return reserved_name_.Mutable(index);
4103 }
set_reserved_name(int index,const::std::string & value)4104 void DescriptorProto::set_reserved_name(int index, const ::std::string& value) {
4105 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved_name)
4106 reserved_name_.Mutable(index)->assign(value);
4107 }
set_reserved_name(int index,const char * value)4108 void DescriptorProto::set_reserved_name(int index, const char* value) {
4109 reserved_name_.Mutable(index)->assign(value);
4110 // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.reserved_name)
4111 }
set_reserved_name(int index,const char * value,size_t size)4112 void DescriptorProto::set_reserved_name(int index, const char* value, size_t size) {
4113 reserved_name_.Mutable(index)->assign(
4114 reinterpret_cast<const char*>(value), size);
4115 // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.reserved_name)
4116 }
add_reserved_name()4117 ::std::string* DescriptorProto::add_reserved_name() {
4118 // @@protoc_insertion_point(field_add_mutable:google.protobuf.DescriptorProto.reserved_name)
4119 return reserved_name_.Add();
4120 }
add_reserved_name(const::std::string & value)4121 void DescriptorProto::add_reserved_name(const ::std::string& value) {
4122 reserved_name_.Add()->assign(value);
4123 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_name)
4124 }
add_reserved_name(const char * value)4125 void DescriptorProto::add_reserved_name(const char* value) {
4126 reserved_name_.Add()->assign(value);
4127 // @@protoc_insertion_point(field_add_char:google.protobuf.DescriptorProto.reserved_name)
4128 }
add_reserved_name(const char * value,size_t size)4129 void DescriptorProto::add_reserved_name(const char* value, size_t size) {
4130 reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
4131 // @@protoc_insertion_point(field_add_pointer:google.protobuf.DescriptorProto.reserved_name)
4132 }
4133 const ::google::protobuf::RepeatedPtrField< ::std::string>&
reserved_name() const4134 DescriptorProto::reserved_name() const {
4135 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_name)
4136 return reserved_name_;
4137 }
4138 ::google::protobuf::RepeatedPtrField< ::std::string>*
mutable_reserved_name()4139 DescriptorProto::mutable_reserved_name() {
4140 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_name)
4141 return &reserved_name_;
4142 }
4143
4144 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
4145
4146 // ===================================================================
4147
FieldDescriptorProto_Type_descriptor()4148 const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor() {
4149 protobuf_AssignDescriptorsOnce();
4150 return FieldDescriptorProto_Type_descriptor_;
4151 }
FieldDescriptorProto_Type_IsValid(int value)4152 bool FieldDescriptorProto_Type_IsValid(int value) {
4153 switch(value) {
4154 case 1:
4155 case 2:
4156 case 3:
4157 case 4:
4158 case 5:
4159 case 6:
4160 case 7:
4161 case 8:
4162 case 9:
4163 case 10:
4164 case 11:
4165 case 12:
4166 case 13:
4167 case 14:
4168 case 15:
4169 case 16:
4170 case 17:
4171 case 18:
4172 return true;
4173 default:
4174 return false;
4175 }
4176 }
4177
4178 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4179 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_DOUBLE;
4180 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FLOAT;
4181 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT64;
4182 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT64;
4183 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT32;
4184 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED64;
4185 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED32;
4186 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BOOL;
4187 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_STRING;
4188 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_GROUP;
4189 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_MESSAGE;
4190 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BYTES;
4191 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT32;
4192 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_ENUM;
4193 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED32;
4194 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED64;
4195 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT32;
4196 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT64;
4197 const FieldDescriptorProto_Type FieldDescriptorProto::Type_MIN;
4198 const FieldDescriptorProto_Type FieldDescriptorProto::Type_MAX;
4199 const int FieldDescriptorProto::Type_ARRAYSIZE;
4200 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
FieldDescriptorProto_Label_descriptor()4201 const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor() {
4202 protobuf_AssignDescriptorsOnce();
4203 return FieldDescriptorProto_Label_descriptor_;
4204 }
FieldDescriptorProto_Label_IsValid(int value)4205 bool FieldDescriptorProto_Label_IsValid(int value) {
4206 switch(value) {
4207 case 1:
4208 case 2:
4209 case 3:
4210 return true;
4211 default:
4212 return false;
4213 }
4214 }
4215
4216 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4217 const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_OPTIONAL;
4218 const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REQUIRED;
4219 const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REPEATED;
4220 const FieldDescriptorProto_Label FieldDescriptorProto::Label_MIN;
4221 const FieldDescriptorProto_Label FieldDescriptorProto::Label_MAX;
4222 const int FieldDescriptorProto::Label_ARRAYSIZE;
4223 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4224 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4225 const int FieldDescriptorProto::kNameFieldNumber;
4226 const int FieldDescriptorProto::kNumberFieldNumber;
4227 const int FieldDescriptorProto::kLabelFieldNumber;
4228 const int FieldDescriptorProto::kTypeFieldNumber;
4229 const int FieldDescriptorProto::kTypeNameFieldNumber;
4230 const int FieldDescriptorProto::kExtendeeFieldNumber;
4231 const int FieldDescriptorProto::kDefaultValueFieldNumber;
4232 const int FieldDescriptorProto::kOneofIndexFieldNumber;
4233 const int FieldDescriptorProto::kJsonNameFieldNumber;
4234 const int FieldDescriptorProto::kOptionsFieldNumber;
4235 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4236
FieldDescriptorProto()4237 FieldDescriptorProto::FieldDescriptorProto()
4238 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4239 SharedCtor();
4240 // @@protoc_insertion_point(constructor:google.protobuf.FieldDescriptorProto)
4241 }
4242
InitAsDefaultInstance()4243 void FieldDescriptorProto::InitAsDefaultInstance() {
4244 options_ = const_cast< ::google::protobuf::FieldOptions*>(&::google::protobuf::FieldOptions::default_instance());
4245 }
4246
FieldDescriptorProto(const FieldDescriptorProto & from)4247 FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from)
4248 : ::google::protobuf::Message(),
4249 _internal_metadata_(NULL) {
4250 SharedCtor();
4251 MergeFrom(from);
4252 // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldDescriptorProto)
4253 }
4254
SharedCtor()4255 void FieldDescriptorProto::SharedCtor() {
4256 ::google::protobuf::internal::GetEmptyString();
4257 _cached_size_ = 0;
4258 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4259 number_ = 0;
4260 label_ = 1;
4261 type_ = 1;
4262 type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4263 extendee_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4264 default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4265 oneof_index_ = 0;
4266 json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4267 options_ = NULL;
4268 ::memset(_has_bits_, 0, sizeof(_has_bits_));
4269 }
4270
~FieldDescriptorProto()4271 FieldDescriptorProto::~FieldDescriptorProto() {
4272 // @@protoc_insertion_point(destructor:google.protobuf.FieldDescriptorProto)
4273 SharedDtor();
4274 }
4275
SharedDtor()4276 void FieldDescriptorProto::SharedDtor() {
4277 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4278 type_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4279 extendee_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4280 default_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4281 json_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4282 if (this != default_instance_) {
4283 delete options_;
4284 }
4285 }
4286
SetCachedSize(int size) const4287 void FieldDescriptorProto::SetCachedSize(int size) const {
4288 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4289 _cached_size_ = size;
4290 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4291 }
descriptor()4292 const ::google::protobuf::Descriptor* FieldDescriptorProto::descriptor() {
4293 protobuf_AssignDescriptorsOnce();
4294 return FieldDescriptorProto_descriptor_;
4295 }
4296
default_instance()4297 const FieldDescriptorProto& FieldDescriptorProto::default_instance() {
4298 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
4299 return *default_instance_;
4300 }
4301
4302 FieldDescriptorProto* FieldDescriptorProto::default_instance_ = NULL;
4303
New(::google::protobuf::Arena * arena) const4304 FieldDescriptorProto* FieldDescriptorProto::New(::google::protobuf::Arena* arena) const {
4305 FieldDescriptorProto* n = new FieldDescriptorProto;
4306 if (arena != NULL) {
4307 arena->Own(n);
4308 }
4309 return n;
4310 }
4311
Clear()4312 void FieldDescriptorProto::Clear() {
4313 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldDescriptorProto)
4314 if (_has_bits_[0 / 32] & 255u) {
4315 if (has_name()) {
4316 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4317 }
4318 number_ = 0;
4319 label_ = 1;
4320 type_ = 1;
4321 if (has_type_name()) {
4322 type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4323 }
4324 if (has_extendee()) {
4325 extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4326 }
4327 if (has_default_value()) {
4328 default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4329 }
4330 oneof_index_ = 0;
4331 }
4332 if (_has_bits_[8 / 32] & 768u) {
4333 if (has_json_name()) {
4334 json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4335 }
4336 if (has_options()) {
4337 if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear();
4338 }
4339 }
4340 ::memset(_has_bits_, 0, sizeof(_has_bits_));
4341 if (_internal_metadata_.have_unknown_fields()) {
4342 mutable_unknown_fields()->Clear();
4343 }
4344 }
4345
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)4346 bool FieldDescriptorProto::MergePartialFromCodedStream(
4347 ::google::protobuf::io::CodedInputStream* input) {
4348 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4349 ::google::protobuf::uint32 tag;
4350 // @@protoc_insertion_point(parse_start:google.protobuf.FieldDescriptorProto)
4351 for (;;) {
4352 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
4353 tag = p.first;
4354 if (!p.second) goto handle_unusual;
4355 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4356 // optional string name = 1;
4357 case 1: {
4358 if (tag == 10) {
4359 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4360 input, this->mutable_name()));
4361 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4362 this->name().data(), this->name().length(),
4363 ::google::protobuf::internal::WireFormat::PARSE,
4364 "google.protobuf.FieldDescriptorProto.name");
4365 } else {
4366 goto handle_unusual;
4367 }
4368 if (input->ExpectTag(18)) goto parse_extendee;
4369 break;
4370 }
4371
4372 // optional string extendee = 2;
4373 case 2: {
4374 if (tag == 18) {
4375 parse_extendee:
4376 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4377 input, this->mutable_extendee()));
4378 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4379 this->extendee().data(), this->extendee().length(),
4380 ::google::protobuf::internal::WireFormat::PARSE,
4381 "google.protobuf.FieldDescriptorProto.extendee");
4382 } else {
4383 goto handle_unusual;
4384 }
4385 if (input->ExpectTag(24)) goto parse_number;
4386 break;
4387 }
4388
4389 // optional int32 number = 3;
4390 case 3: {
4391 if (tag == 24) {
4392 parse_number:
4393 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4394 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
4395 input, &number_)));
4396 set_has_number();
4397 } else {
4398 goto handle_unusual;
4399 }
4400 if (input->ExpectTag(32)) goto parse_label;
4401 break;
4402 }
4403
4404 // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
4405 case 4: {
4406 if (tag == 32) {
4407 parse_label:
4408 int value;
4409 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4410 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4411 input, &value)));
4412 if (::google::protobuf::FieldDescriptorProto_Label_IsValid(value)) {
4413 set_label(static_cast< ::google::protobuf::FieldDescriptorProto_Label >(value));
4414 } else {
4415 mutable_unknown_fields()->AddVarint(4, value);
4416 }
4417 } else {
4418 goto handle_unusual;
4419 }
4420 if (input->ExpectTag(40)) goto parse_type;
4421 break;
4422 }
4423
4424 // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
4425 case 5: {
4426 if (tag == 40) {
4427 parse_type:
4428 int value;
4429 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4430 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4431 input, &value)));
4432 if (::google::protobuf::FieldDescriptorProto_Type_IsValid(value)) {
4433 set_type(static_cast< ::google::protobuf::FieldDescriptorProto_Type >(value));
4434 } else {
4435 mutable_unknown_fields()->AddVarint(5, value);
4436 }
4437 } else {
4438 goto handle_unusual;
4439 }
4440 if (input->ExpectTag(50)) goto parse_type_name;
4441 break;
4442 }
4443
4444 // optional string type_name = 6;
4445 case 6: {
4446 if (tag == 50) {
4447 parse_type_name:
4448 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4449 input, this->mutable_type_name()));
4450 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4451 this->type_name().data(), this->type_name().length(),
4452 ::google::protobuf::internal::WireFormat::PARSE,
4453 "google.protobuf.FieldDescriptorProto.type_name");
4454 } else {
4455 goto handle_unusual;
4456 }
4457 if (input->ExpectTag(58)) goto parse_default_value;
4458 break;
4459 }
4460
4461 // optional string default_value = 7;
4462 case 7: {
4463 if (tag == 58) {
4464 parse_default_value:
4465 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4466 input, this->mutable_default_value()));
4467 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4468 this->default_value().data(), this->default_value().length(),
4469 ::google::protobuf::internal::WireFormat::PARSE,
4470 "google.protobuf.FieldDescriptorProto.default_value");
4471 } else {
4472 goto handle_unusual;
4473 }
4474 if (input->ExpectTag(66)) goto parse_options;
4475 break;
4476 }
4477
4478 // optional .google.protobuf.FieldOptions options = 8;
4479 case 8: {
4480 if (tag == 66) {
4481 parse_options:
4482 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4483 input, mutable_options()));
4484 } else {
4485 goto handle_unusual;
4486 }
4487 if (input->ExpectTag(72)) goto parse_oneof_index;
4488 break;
4489 }
4490
4491 // optional int32 oneof_index = 9;
4492 case 9: {
4493 if (tag == 72) {
4494 parse_oneof_index:
4495 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4496 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
4497 input, &oneof_index_)));
4498 set_has_oneof_index();
4499 } else {
4500 goto handle_unusual;
4501 }
4502 if (input->ExpectTag(82)) goto parse_json_name;
4503 break;
4504 }
4505
4506 // optional string json_name = 10;
4507 case 10: {
4508 if (tag == 82) {
4509 parse_json_name:
4510 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4511 input, this->mutable_json_name()));
4512 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4513 this->json_name().data(), this->json_name().length(),
4514 ::google::protobuf::internal::WireFormat::PARSE,
4515 "google.protobuf.FieldDescriptorProto.json_name");
4516 } else {
4517 goto handle_unusual;
4518 }
4519 if (input->ExpectAtEnd()) goto success;
4520 break;
4521 }
4522
4523 default: {
4524 handle_unusual:
4525 if (tag == 0 ||
4526 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4527 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4528 goto success;
4529 }
4530 DO_(::google::protobuf::internal::WireFormat::SkipField(
4531 input, tag, mutable_unknown_fields()));
4532 break;
4533 }
4534 }
4535 }
4536 success:
4537 // @@protoc_insertion_point(parse_success:google.protobuf.FieldDescriptorProto)
4538 return true;
4539 failure:
4540 // @@protoc_insertion_point(parse_failure:google.protobuf.FieldDescriptorProto)
4541 return false;
4542 #undef DO_
4543 }
4544
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const4545 void FieldDescriptorProto::SerializeWithCachedSizes(
4546 ::google::protobuf::io::CodedOutputStream* output) const {
4547 // @@protoc_insertion_point(serialize_start:google.protobuf.FieldDescriptorProto)
4548 // optional string name = 1;
4549 if (has_name()) {
4550 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4551 this->name().data(), this->name().length(),
4552 ::google::protobuf::internal::WireFormat::SERIALIZE,
4553 "google.protobuf.FieldDescriptorProto.name");
4554 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4555 1, this->name(), output);
4556 }
4557
4558 // optional string extendee = 2;
4559 if (has_extendee()) {
4560 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4561 this->extendee().data(), this->extendee().length(),
4562 ::google::protobuf::internal::WireFormat::SERIALIZE,
4563 "google.protobuf.FieldDescriptorProto.extendee");
4564 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4565 2, this->extendee(), output);
4566 }
4567
4568 // optional int32 number = 3;
4569 if (has_number()) {
4570 ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->number(), output);
4571 }
4572
4573 // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
4574 if (has_label()) {
4575 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4576 4, this->label(), output);
4577 }
4578
4579 // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
4580 if (has_type()) {
4581 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4582 5, this->type(), output);
4583 }
4584
4585 // optional string type_name = 6;
4586 if (has_type_name()) {
4587 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4588 this->type_name().data(), this->type_name().length(),
4589 ::google::protobuf::internal::WireFormat::SERIALIZE,
4590 "google.protobuf.FieldDescriptorProto.type_name");
4591 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4592 6, this->type_name(), output);
4593 }
4594
4595 // optional string default_value = 7;
4596 if (has_default_value()) {
4597 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4598 this->default_value().data(), this->default_value().length(),
4599 ::google::protobuf::internal::WireFormat::SERIALIZE,
4600 "google.protobuf.FieldDescriptorProto.default_value");
4601 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4602 7, this->default_value(), output);
4603 }
4604
4605 // optional .google.protobuf.FieldOptions options = 8;
4606 if (has_options()) {
4607 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4608 8, *this->options_, output);
4609 }
4610
4611 // optional int32 oneof_index = 9;
4612 if (has_oneof_index()) {
4613 ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->oneof_index(), output);
4614 }
4615
4616 // optional string json_name = 10;
4617 if (has_json_name()) {
4618 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4619 this->json_name().data(), this->json_name().length(),
4620 ::google::protobuf::internal::WireFormat::SERIALIZE,
4621 "google.protobuf.FieldDescriptorProto.json_name");
4622 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4623 10, this->json_name(), output);
4624 }
4625
4626 if (_internal_metadata_.have_unknown_fields()) {
4627 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4628 unknown_fields(), output);
4629 }
4630 // @@protoc_insertion_point(serialize_end:google.protobuf.FieldDescriptorProto)
4631 }
4632
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * target) const4633 ::google::protobuf::uint8* FieldDescriptorProto::SerializeWithCachedSizesToArray(
4634 ::google::protobuf::uint8* target) const {
4635 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldDescriptorProto)
4636 // optional string name = 1;
4637 if (has_name()) {
4638 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4639 this->name().data(), this->name().length(),
4640 ::google::protobuf::internal::WireFormat::SERIALIZE,
4641 "google.protobuf.FieldDescriptorProto.name");
4642 target =
4643 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4644 1, this->name(), target);
4645 }
4646
4647 // optional string extendee = 2;
4648 if (has_extendee()) {
4649 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4650 this->extendee().data(), this->extendee().length(),
4651 ::google::protobuf::internal::WireFormat::SERIALIZE,
4652 "google.protobuf.FieldDescriptorProto.extendee");
4653 target =
4654 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4655 2, this->extendee(), target);
4656 }
4657
4658 // optional int32 number = 3;
4659 if (has_number()) {
4660 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->number(), target);
4661 }
4662
4663 // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
4664 if (has_label()) {
4665 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4666 4, this->label(), target);
4667 }
4668
4669 // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
4670 if (has_type()) {
4671 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4672 5, this->type(), target);
4673 }
4674
4675 // optional string type_name = 6;
4676 if (has_type_name()) {
4677 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4678 this->type_name().data(), this->type_name().length(),
4679 ::google::protobuf::internal::WireFormat::SERIALIZE,
4680 "google.protobuf.FieldDescriptorProto.type_name");
4681 target =
4682 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4683 6, this->type_name(), target);
4684 }
4685
4686 // optional string default_value = 7;
4687 if (has_default_value()) {
4688 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4689 this->default_value().data(), this->default_value().length(),
4690 ::google::protobuf::internal::WireFormat::SERIALIZE,
4691 "google.protobuf.FieldDescriptorProto.default_value");
4692 target =
4693 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4694 7, this->default_value(), target);
4695 }
4696
4697 // optional .google.protobuf.FieldOptions options = 8;
4698 if (has_options()) {
4699 target = ::google::protobuf::internal::WireFormatLite::
4700 WriteMessageNoVirtualToArray(
4701 8, *this->options_, target);
4702 }
4703
4704 // optional int32 oneof_index = 9;
4705 if (has_oneof_index()) {
4706 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->oneof_index(), target);
4707 }
4708
4709 // optional string json_name = 10;
4710 if (has_json_name()) {
4711 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4712 this->json_name().data(), this->json_name().length(),
4713 ::google::protobuf::internal::WireFormat::SERIALIZE,
4714 "google.protobuf.FieldDescriptorProto.json_name");
4715 target =
4716 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4717 10, this->json_name(), target);
4718 }
4719
4720 if (_internal_metadata_.have_unknown_fields()) {
4721 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4722 unknown_fields(), target);
4723 }
4724 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldDescriptorProto)
4725 return target;
4726 }
4727
ByteSize() const4728 int FieldDescriptorProto::ByteSize() const {
4729 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldDescriptorProto)
4730 int total_size = 0;
4731
4732 if (_has_bits_[0 / 32] & 255u) {
4733 // optional string name = 1;
4734 if (has_name()) {
4735 total_size += 1 +
4736 ::google::protobuf::internal::WireFormatLite::StringSize(
4737 this->name());
4738 }
4739
4740 // optional int32 number = 3;
4741 if (has_number()) {
4742 total_size += 1 +
4743 ::google::protobuf::internal::WireFormatLite::Int32Size(
4744 this->number());
4745 }
4746
4747 // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
4748 if (has_label()) {
4749 total_size += 1 +
4750 ::google::protobuf::internal::WireFormatLite::EnumSize(this->label());
4751 }
4752
4753 // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
4754 if (has_type()) {
4755 total_size += 1 +
4756 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
4757 }
4758
4759 // optional string type_name = 6;
4760 if (has_type_name()) {
4761 total_size += 1 +
4762 ::google::protobuf::internal::WireFormatLite::StringSize(
4763 this->type_name());
4764 }
4765
4766 // optional string extendee = 2;
4767 if (has_extendee()) {
4768 total_size += 1 +
4769 ::google::protobuf::internal::WireFormatLite::StringSize(
4770 this->extendee());
4771 }
4772
4773 // optional string default_value = 7;
4774 if (has_default_value()) {
4775 total_size += 1 +
4776 ::google::protobuf::internal::WireFormatLite::StringSize(
4777 this->default_value());
4778 }
4779
4780 // optional int32 oneof_index = 9;
4781 if (has_oneof_index()) {
4782 total_size += 1 +
4783 ::google::protobuf::internal::WireFormatLite::Int32Size(
4784 this->oneof_index());
4785 }
4786
4787 }
4788 if (_has_bits_[8 / 32] & 768u) {
4789 // optional string json_name = 10;
4790 if (has_json_name()) {
4791 total_size += 1 +
4792 ::google::protobuf::internal::WireFormatLite::StringSize(
4793 this->json_name());
4794 }
4795
4796 // optional .google.protobuf.FieldOptions options = 8;
4797 if (has_options()) {
4798 total_size += 1 +
4799 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4800 *this->options_);
4801 }
4802
4803 }
4804 if (_internal_metadata_.have_unknown_fields()) {
4805 total_size +=
4806 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4807 unknown_fields());
4808 }
4809 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4810 _cached_size_ = total_size;
4811 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4812 return total_size;
4813 }
4814
MergeFrom(const::google::protobuf::Message & from)4815 void FieldDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
4816 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldDescriptorProto)
4817 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
4818 const FieldDescriptorProto* source =
4819 ::google::protobuf::internal::DynamicCastToGenerated<const FieldDescriptorProto>(
4820 &from);
4821 if (source == NULL) {
4822 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FieldDescriptorProto)
4823 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4824 } else {
4825 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FieldDescriptorProto)
4826 MergeFrom(*source);
4827 }
4828 }
4829
MergeFrom(const FieldDescriptorProto & from)4830 void FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) {
4831 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FieldDescriptorProto)
4832 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
4833 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4834 if (from.has_name()) {
4835 set_has_name();
4836 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
4837 }
4838 if (from.has_number()) {
4839 set_number(from.number());
4840 }
4841 if (from.has_label()) {
4842 set_label(from.label());
4843 }
4844 if (from.has_type()) {
4845 set_type(from.type());
4846 }
4847 if (from.has_type_name()) {
4848 set_has_type_name();
4849 type_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_name_);
4850 }
4851 if (from.has_extendee()) {
4852 set_has_extendee();
4853 extendee_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.extendee_);
4854 }
4855 if (from.has_default_value()) {
4856 set_has_default_value();
4857 default_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.default_value_);
4858 }
4859 if (from.has_oneof_index()) {
4860 set_oneof_index(from.oneof_index());
4861 }
4862 }
4863 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
4864 if (from.has_json_name()) {
4865 set_has_json_name();
4866 json_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.json_name_);
4867 }
4868 if (from.has_options()) {
4869 mutable_options()->::google::protobuf::FieldOptions::MergeFrom(from.options());
4870 }
4871 }
4872 if (from._internal_metadata_.have_unknown_fields()) {
4873 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4874 }
4875 }
4876
CopyFrom(const::google::protobuf::Message & from)4877 void FieldDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
4878 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldDescriptorProto)
4879 if (&from == this) return;
4880 Clear();
4881 MergeFrom(from);
4882 }
4883
CopyFrom(const FieldDescriptorProto & from)4884 void FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) {
4885 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FieldDescriptorProto)
4886 if (&from == this) return;
4887 Clear();
4888 MergeFrom(from);
4889 }
4890
IsInitialized() const4891 bool FieldDescriptorProto::IsInitialized() const {
4892
4893 if (has_options()) {
4894 if (!this->options_->IsInitialized()) return false;
4895 }
4896 return true;
4897 }
4898
Swap(FieldDescriptorProto * other)4899 void FieldDescriptorProto::Swap(FieldDescriptorProto* other) {
4900 if (other == this) return;
4901 InternalSwap(other);
4902 }
InternalSwap(FieldDescriptorProto * other)4903 void FieldDescriptorProto::InternalSwap(FieldDescriptorProto* other) {
4904 name_.Swap(&other->name_);
4905 std::swap(number_, other->number_);
4906 std::swap(label_, other->label_);
4907 std::swap(type_, other->type_);
4908 type_name_.Swap(&other->type_name_);
4909 extendee_.Swap(&other->extendee_);
4910 default_value_.Swap(&other->default_value_);
4911 std::swap(oneof_index_, other->oneof_index_);
4912 json_name_.Swap(&other->json_name_);
4913 std::swap(options_, other->options_);
4914 std::swap(_has_bits_[0], other->_has_bits_[0]);
4915 _internal_metadata_.Swap(&other->_internal_metadata_);
4916 std::swap(_cached_size_, other->_cached_size_);
4917 }
4918
GetMetadata() const4919 ::google::protobuf::Metadata FieldDescriptorProto::GetMetadata() const {
4920 protobuf_AssignDescriptorsOnce();
4921 ::google::protobuf::Metadata metadata;
4922 metadata.descriptor = FieldDescriptorProto_descriptor_;
4923 metadata.reflection = FieldDescriptorProto_reflection_;
4924 return metadata;
4925 }
4926
4927 #if PROTOBUF_INLINE_NOT_IN_HEADERS
4928 // FieldDescriptorProto
4929
4930 // optional string name = 1;
has_name() const4931 bool FieldDescriptorProto::has_name() const {
4932 return (_has_bits_[0] & 0x00000001u) != 0;
4933 }
set_has_name()4934 void FieldDescriptorProto::set_has_name() {
4935 _has_bits_[0] |= 0x00000001u;
4936 }
clear_has_name()4937 void FieldDescriptorProto::clear_has_name() {
4938 _has_bits_[0] &= ~0x00000001u;
4939 }
clear_name()4940 void FieldDescriptorProto::clear_name() {
4941 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4942 clear_has_name();
4943 }
name() const4944 const ::std::string& FieldDescriptorProto::name() const {
4945 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.name)
4946 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4947 }
set_name(const::std::string & value)4948 void FieldDescriptorProto::set_name(const ::std::string& value) {
4949 set_has_name();
4950 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4951 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.name)
4952 }
set_name(const char * value)4953 void FieldDescriptorProto::set_name(const char* value) {
4954 set_has_name();
4955 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4956 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.name)
4957 }
set_name(const char * value,size_t size)4958 void FieldDescriptorProto::set_name(const char* value, size_t size) {
4959 set_has_name();
4960 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4961 ::std::string(reinterpret_cast<const char*>(value), size));
4962 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.name)
4963 }
mutable_name()4964 ::std::string* FieldDescriptorProto::mutable_name() {
4965 set_has_name();
4966 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.name)
4967 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4968 }
release_name()4969 ::std::string* FieldDescriptorProto::release_name() {
4970 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.name)
4971 clear_has_name();
4972 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4973 }
set_allocated_name(::std::string * name)4974 void FieldDescriptorProto::set_allocated_name(::std::string* name) {
4975 if (name != NULL) {
4976 set_has_name();
4977 } else {
4978 clear_has_name();
4979 }
4980 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
4981 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.name)
4982 }
4983
4984 // optional int32 number = 3;
has_number() const4985 bool FieldDescriptorProto::has_number() const {
4986 return (_has_bits_[0] & 0x00000002u) != 0;
4987 }
set_has_number()4988 void FieldDescriptorProto::set_has_number() {
4989 _has_bits_[0] |= 0x00000002u;
4990 }
clear_has_number()4991 void FieldDescriptorProto::clear_has_number() {
4992 _has_bits_[0] &= ~0x00000002u;
4993 }
clear_number()4994 void FieldDescriptorProto::clear_number() {
4995 number_ = 0;
4996 clear_has_number();
4997 }
number() const4998 ::google::protobuf::int32 FieldDescriptorProto::number() const {
4999 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.number)
5000 return number_;
5001 }
set_number(::google::protobuf::int32 value)5002 void FieldDescriptorProto::set_number(::google::protobuf::int32 value) {
5003 set_has_number();
5004 number_ = value;
5005 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.number)
5006 }
5007
5008 // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
has_label() const5009 bool FieldDescriptorProto::has_label() const {
5010 return (_has_bits_[0] & 0x00000004u) != 0;
5011 }
set_has_label()5012 void FieldDescriptorProto::set_has_label() {
5013 _has_bits_[0] |= 0x00000004u;
5014 }
clear_has_label()5015 void FieldDescriptorProto::clear_has_label() {
5016 _has_bits_[0] &= ~0x00000004u;
5017 }
clear_label()5018 void FieldDescriptorProto::clear_label() {
5019 label_ = 1;
5020 clear_has_label();
5021 }
label() const5022 ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() const {
5023 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.label)
5024 return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_);
5025 }
set_label(::google::protobuf::FieldDescriptorProto_Label value)5026 void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_Label value) {
5027 assert(::google::protobuf::FieldDescriptorProto_Label_IsValid(value));
5028 set_has_label();
5029 label_ = value;
5030 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.label)
5031 }
5032
5033 // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
has_type() const5034 bool FieldDescriptorProto::has_type() const {
5035 return (_has_bits_[0] & 0x00000008u) != 0;
5036 }
set_has_type()5037 void FieldDescriptorProto::set_has_type() {
5038 _has_bits_[0] |= 0x00000008u;
5039 }
clear_has_type()5040 void FieldDescriptorProto::clear_has_type() {
5041 _has_bits_[0] &= ~0x00000008u;
5042 }
clear_type()5043 void FieldDescriptorProto::clear_type() {
5044 type_ = 1;
5045 clear_has_type();
5046 }
type() const5047 ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() const {
5048 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type)
5049 return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_);
5050 }
set_type(::google::protobuf::FieldDescriptorProto_Type value)5051 void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Type value) {
5052 assert(::google::protobuf::FieldDescriptorProto_Type_IsValid(value));
5053 set_has_type();
5054 type_ = value;
5055 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type)
5056 }
5057
5058 // optional string type_name = 6;
has_type_name() const5059 bool FieldDescriptorProto::has_type_name() const {
5060 return (_has_bits_[0] & 0x00000010u) != 0;
5061 }
set_has_type_name()5062 void FieldDescriptorProto::set_has_type_name() {
5063 _has_bits_[0] |= 0x00000010u;
5064 }
clear_has_type_name()5065 void FieldDescriptorProto::clear_has_type_name() {
5066 _has_bits_[0] &= ~0x00000010u;
5067 }
clear_type_name()5068 void FieldDescriptorProto::clear_type_name() {
5069 type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5070 clear_has_type_name();
5071 }
type_name() const5072 const ::std::string& FieldDescriptorProto::type_name() const {
5073 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type_name)
5074 return type_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5075 }
set_type_name(const::std::string & value)5076 void FieldDescriptorProto::set_type_name(const ::std::string& value) {
5077 set_has_type_name();
5078 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5079 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type_name)
5080 }
set_type_name(const char * value)5081 void FieldDescriptorProto::set_type_name(const char* value) {
5082 set_has_type_name();
5083 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5084 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.type_name)
5085 }
set_type_name(const char * value,size_t size)5086 void FieldDescriptorProto::set_type_name(const char* value, size_t size) {
5087 set_has_type_name();
5088 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5089 ::std::string(reinterpret_cast<const char*>(value), size));
5090 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.type_name)
5091 }
mutable_type_name()5092 ::std::string* FieldDescriptorProto::mutable_type_name() {
5093 set_has_type_name();
5094 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.type_name)
5095 return type_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5096 }
release_type_name()5097 ::std::string* FieldDescriptorProto::release_type_name() {
5098 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.type_name)
5099 clear_has_type_name();
5100 return type_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5101 }
set_allocated_type_name(::std::string * type_name)5102 void FieldDescriptorProto::set_allocated_type_name(::std::string* type_name) {
5103 if (type_name != NULL) {
5104 set_has_type_name();
5105 } else {
5106 clear_has_type_name();
5107 }
5108 type_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_name);
5109 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.type_name)
5110 }
5111
5112 // optional string extendee = 2;
has_extendee() const5113 bool FieldDescriptorProto::has_extendee() const {
5114 return (_has_bits_[0] & 0x00000020u) != 0;
5115 }
set_has_extendee()5116 void FieldDescriptorProto::set_has_extendee() {
5117 _has_bits_[0] |= 0x00000020u;
5118 }
clear_has_extendee()5119 void FieldDescriptorProto::clear_has_extendee() {
5120 _has_bits_[0] &= ~0x00000020u;
5121 }
clear_extendee()5122 void FieldDescriptorProto::clear_extendee() {
5123 extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5124 clear_has_extendee();
5125 }
extendee() const5126 const ::std::string& FieldDescriptorProto::extendee() const {
5127 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.extendee)
5128 return extendee_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5129 }
set_extendee(const::std::string & value)5130 void FieldDescriptorProto::set_extendee(const ::std::string& value) {
5131 set_has_extendee();
5132 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5133 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.extendee)
5134 }
set_extendee(const char * value)5135 void FieldDescriptorProto::set_extendee(const char* value) {
5136 set_has_extendee();
5137 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5138 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.extendee)
5139 }
set_extendee(const char * value,size_t size)5140 void FieldDescriptorProto::set_extendee(const char* value, size_t size) {
5141 set_has_extendee();
5142 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5143 ::std::string(reinterpret_cast<const char*>(value), size));
5144 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.extendee)
5145 }
mutable_extendee()5146 ::std::string* FieldDescriptorProto::mutable_extendee() {
5147 set_has_extendee();
5148 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.extendee)
5149 return extendee_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5150 }
release_extendee()5151 ::std::string* FieldDescriptorProto::release_extendee() {
5152 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.extendee)
5153 clear_has_extendee();
5154 return extendee_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5155 }
set_allocated_extendee(::std::string * extendee)5156 void FieldDescriptorProto::set_allocated_extendee(::std::string* extendee) {
5157 if (extendee != NULL) {
5158 set_has_extendee();
5159 } else {
5160 clear_has_extendee();
5161 }
5162 extendee_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), extendee);
5163 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.extendee)
5164 }
5165
5166 // optional string default_value = 7;
has_default_value() const5167 bool FieldDescriptorProto::has_default_value() const {
5168 return (_has_bits_[0] & 0x00000040u) != 0;
5169 }
set_has_default_value()5170 void FieldDescriptorProto::set_has_default_value() {
5171 _has_bits_[0] |= 0x00000040u;
5172 }
clear_has_default_value()5173 void FieldDescriptorProto::clear_has_default_value() {
5174 _has_bits_[0] &= ~0x00000040u;
5175 }
clear_default_value()5176 void FieldDescriptorProto::clear_default_value() {
5177 default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5178 clear_has_default_value();
5179 }
default_value() const5180 const ::std::string& FieldDescriptorProto::default_value() const {
5181 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.default_value)
5182 return default_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5183 }
set_default_value(const::std::string & value)5184 void FieldDescriptorProto::set_default_value(const ::std::string& value) {
5185 set_has_default_value();
5186 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5187 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.default_value)
5188 }
set_default_value(const char * value)5189 void FieldDescriptorProto::set_default_value(const char* value) {
5190 set_has_default_value();
5191 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5192 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.default_value)
5193 }
set_default_value(const char * value,size_t size)5194 void FieldDescriptorProto::set_default_value(const char* value, size_t size) {
5195 set_has_default_value();
5196 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5197 ::std::string(reinterpret_cast<const char*>(value), size));
5198 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.default_value)
5199 }
mutable_default_value()5200 ::std::string* FieldDescriptorProto::mutable_default_value() {
5201 set_has_default_value();
5202 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.default_value)
5203 return default_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5204 }
release_default_value()5205 ::std::string* FieldDescriptorProto::release_default_value() {
5206 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.default_value)
5207 clear_has_default_value();
5208 return default_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5209 }
set_allocated_default_value(::std::string * default_value)5210 void FieldDescriptorProto::set_allocated_default_value(::std::string* default_value) {
5211 if (default_value != NULL) {
5212 set_has_default_value();
5213 } else {
5214 clear_has_default_value();
5215 }
5216 default_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), default_value);
5217 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.default_value)
5218 }
5219
5220 // optional int32 oneof_index = 9;
has_oneof_index() const5221 bool FieldDescriptorProto::has_oneof_index() const {
5222 return (_has_bits_[0] & 0x00000080u) != 0;
5223 }
set_has_oneof_index()5224 void FieldDescriptorProto::set_has_oneof_index() {
5225 _has_bits_[0] |= 0x00000080u;
5226 }
clear_has_oneof_index()5227 void FieldDescriptorProto::clear_has_oneof_index() {
5228 _has_bits_[0] &= ~0x00000080u;
5229 }
clear_oneof_index()5230 void FieldDescriptorProto::clear_oneof_index() {
5231 oneof_index_ = 0;
5232 clear_has_oneof_index();
5233 }
oneof_index() const5234 ::google::protobuf::int32 FieldDescriptorProto::oneof_index() const {
5235 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.oneof_index)
5236 return oneof_index_;
5237 }
set_oneof_index(::google::protobuf::int32 value)5238 void FieldDescriptorProto::set_oneof_index(::google::protobuf::int32 value) {
5239 set_has_oneof_index();
5240 oneof_index_ = value;
5241 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.oneof_index)
5242 }
5243
5244 // optional string json_name = 10;
has_json_name() const5245 bool FieldDescriptorProto::has_json_name() const {
5246 return (_has_bits_[0] & 0x00000100u) != 0;
5247 }
set_has_json_name()5248 void FieldDescriptorProto::set_has_json_name() {
5249 _has_bits_[0] |= 0x00000100u;
5250 }
clear_has_json_name()5251 void FieldDescriptorProto::clear_has_json_name() {
5252 _has_bits_[0] &= ~0x00000100u;
5253 }
clear_json_name()5254 void FieldDescriptorProto::clear_json_name() {
5255 json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5256 clear_has_json_name();
5257 }
json_name() const5258 const ::std::string& FieldDescriptorProto::json_name() const {
5259 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.json_name)
5260 return json_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5261 }
set_json_name(const::std::string & value)5262 void FieldDescriptorProto::set_json_name(const ::std::string& value) {
5263 set_has_json_name();
5264 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5265 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.json_name)
5266 }
set_json_name(const char * value)5267 void FieldDescriptorProto::set_json_name(const char* value) {
5268 set_has_json_name();
5269 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5270 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.json_name)
5271 }
set_json_name(const char * value,size_t size)5272 void FieldDescriptorProto::set_json_name(const char* value, size_t size) {
5273 set_has_json_name();
5274 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5275 ::std::string(reinterpret_cast<const char*>(value), size));
5276 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.json_name)
5277 }
mutable_json_name()5278 ::std::string* FieldDescriptorProto::mutable_json_name() {
5279 set_has_json_name();
5280 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.json_name)
5281 return json_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5282 }
release_json_name()5283 ::std::string* FieldDescriptorProto::release_json_name() {
5284 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.json_name)
5285 clear_has_json_name();
5286 return json_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5287 }
set_allocated_json_name(::std::string * json_name)5288 void FieldDescriptorProto::set_allocated_json_name(::std::string* json_name) {
5289 if (json_name != NULL) {
5290 set_has_json_name();
5291 } else {
5292 clear_has_json_name();
5293 }
5294 json_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json_name);
5295 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.json_name)
5296 }
5297
5298 // optional .google.protobuf.FieldOptions options = 8;
has_options() const5299 bool FieldDescriptorProto::has_options() const {
5300 return (_has_bits_[0] & 0x00000200u) != 0;
5301 }
set_has_options()5302 void FieldDescriptorProto::set_has_options() {
5303 _has_bits_[0] |= 0x00000200u;
5304 }
clear_has_options()5305 void FieldDescriptorProto::clear_has_options() {
5306 _has_bits_[0] &= ~0x00000200u;
5307 }
clear_options()5308 void FieldDescriptorProto::clear_options() {
5309 if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear();
5310 clear_has_options();
5311 }
options() const5312 const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const {
5313 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.options)
5314 return options_ != NULL ? *options_ : *default_instance_->options_;
5315 }
mutable_options()5316 ::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() {
5317 set_has_options();
5318 if (options_ == NULL) {
5319 options_ = new ::google::protobuf::FieldOptions;
5320 }
5321 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.options)
5322 return options_;
5323 }
release_options()5324 ::google::protobuf::FieldOptions* FieldDescriptorProto::release_options() {
5325 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.options)
5326 clear_has_options();
5327 ::google::protobuf::FieldOptions* temp = options_;
5328 options_ = NULL;
5329 return temp;
5330 }
set_allocated_options(::google::protobuf::FieldOptions * options)5331 void FieldDescriptorProto::set_allocated_options(::google::protobuf::FieldOptions* options) {
5332 delete options_;
5333 options_ = options;
5334 if (options) {
5335 set_has_options();
5336 } else {
5337 clear_has_options();
5338 }
5339 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.options)
5340 }
5341
5342 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
5343
5344 // ===================================================================
5345
5346 #if !defined(_MSC_VER) || _MSC_VER >= 1900
5347 const int OneofDescriptorProto::kNameFieldNumber;
5348 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5349
OneofDescriptorProto()5350 OneofDescriptorProto::OneofDescriptorProto()
5351 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5352 SharedCtor();
5353 // @@protoc_insertion_point(constructor:google.protobuf.OneofDescriptorProto)
5354 }
5355
InitAsDefaultInstance()5356 void OneofDescriptorProto::InitAsDefaultInstance() {
5357 }
5358
OneofDescriptorProto(const OneofDescriptorProto & from)5359 OneofDescriptorProto::OneofDescriptorProto(const OneofDescriptorProto& from)
5360 : ::google::protobuf::Message(),
5361 _internal_metadata_(NULL) {
5362 SharedCtor();
5363 MergeFrom(from);
5364 // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofDescriptorProto)
5365 }
5366
SharedCtor()5367 void OneofDescriptorProto::SharedCtor() {
5368 ::google::protobuf::internal::GetEmptyString();
5369 _cached_size_ = 0;
5370 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5371 ::memset(_has_bits_, 0, sizeof(_has_bits_));
5372 }
5373
~OneofDescriptorProto()5374 OneofDescriptorProto::~OneofDescriptorProto() {
5375 // @@protoc_insertion_point(destructor:google.protobuf.OneofDescriptorProto)
5376 SharedDtor();
5377 }
5378
SharedDtor()5379 void OneofDescriptorProto::SharedDtor() {
5380 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5381 if (this != default_instance_) {
5382 }
5383 }
5384
SetCachedSize(int size) const5385 void OneofDescriptorProto::SetCachedSize(int size) const {
5386 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5387 _cached_size_ = size;
5388 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5389 }
descriptor()5390