1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/descriptor.proto
4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 #include "google/protobuf/descriptor.pb.h"
9 #include <google/protobuf/stubs/common.h>
10 #include <google/protobuf/stubs/once.h>
11 #include <google/protobuf/io/coded_stream.h>
12 #include <google/protobuf/wire_format_lite_inl.h>
13 #include <google/protobuf/descriptor.h>
14 #include <google/protobuf/generated_message_reflection.h>
15 #include <google/protobuf/reflection_ops.h>
16 #include <google/protobuf/wire_format.h>
17 // @@protoc_insertion_point(includes)
24 const ::google::protobuf::Descriptor* FileDescriptorSet_descriptor_ = NULL;
25 const ::google::protobuf::internal::GeneratedMessageReflection*
26 FileDescriptorSet_reflection_ = NULL;
27 const ::google::protobuf::Descriptor* FileDescriptorProto_descriptor_ = NULL;
28 const ::google::protobuf::internal::GeneratedMessageReflection*
29 FileDescriptorProto_reflection_ = NULL;
30 const ::google::protobuf::Descriptor* DescriptorProto_descriptor_ = NULL;
31 const ::google::protobuf::internal::GeneratedMessageReflection*
32 DescriptorProto_reflection_ = NULL;
33 const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange_descriptor_ = NULL;
34 const ::google::protobuf::internal::GeneratedMessageReflection*
35 DescriptorProto_ExtensionRange_reflection_ = NULL;
36 const ::google::protobuf::Descriptor* FieldDescriptorProto_descriptor_ = NULL;
37 const ::google::protobuf::internal::GeneratedMessageReflection*
38 FieldDescriptorProto_reflection_ = NULL;
39 const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor_ = NULL;
40 const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor_ = NULL;
41 const ::google::protobuf::Descriptor* EnumDescriptorProto_descriptor_ = NULL;
42 const ::google::protobuf::internal::GeneratedMessageReflection*
43 EnumDescriptorProto_reflection_ = NULL;
44 const ::google::protobuf::Descriptor* EnumValueDescriptorProto_descriptor_ = NULL;
45 const ::google::protobuf::internal::GeneratedMessageReflection*
46 EnumValueDescriptorProto_reflection_ = NULL;
47 const ::google::protobuf::Descriptor* ServiceDescriptorProto_descriptor_ = NULL;
48 const ::google::protobuf::internal::GeneratedMessageReflection*
49 ServiceDescriptorProto_reflection_ = NULL;
50 const ::google::protobuf::Descriptor* MethodDescriptorProto_descriptor_ = NULL;
51 const ::google::protobuf::internal::GeneratedMessageReflection*
52 MethodDescriptorProto_reflection_ = NULL;
53 const ::google::protobuf::Descriptor* FileOptions_descriptor_ = NULL;
54 const ::google::protobuf::internal::GeneratedMessageReflection*
55 FileOptions_reflection_ = NULL;
56 const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor_ = NULL;
57 const ::google::protobuf::Descriptor* MessageOptions_descriptor_ = NULL;
58 const ::google::protobuf::internal::GeneratedMessageReflection*
59 MessageOptions_reflection_ = NULL;
60 const ::google::protobuf::Descriptor* FieldOptions_descriptor_ = NULL;
61 const ::google::protobuf::internal::GeneratedMessageReflection*
62 FieldOptions_reflection_ = NULL;
63 const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor_ = NULL;
64 const ::google::protobuf::Descriptor* EnumOptions_descriptor_ = NULL;
65 const ::google::protobuf::internal::GeneratedMessageReflection*
66 EnumOptions_reflection_ = NULL;
67 const ::google::protobuf::Descriptor* EnumValueOptions_descriptor_ = NULL;
68 const ::google::protobuf::internal::GeneratedMessageReflection*
69 EnumValueOptions_reflection_ = NULL;
70 const ::google::protobuf::Descriptor* ServiceOptions_descriptor_ = NULL;
71 const ::google::protobuf::internal::GeneratedMessageReflection*
72 ServiceOptions_reflection_ = NULL;
73 const ::google::protobuf::Descriptor* MethodOptions_descriptor_ = NULL;
74 const ::google::protobuf::internal::GeneratedMessageReflection*
75 MethodOptions_reflection_ = NULL;
76 const ::google::protobuf::Descriptor* UninterpretedOption_descriptor_ = NULL;
77 const ::google::protobuf::internal::GeneratedMessageReflection*
78 UninterpretedOption_reflection_ = NULL;
79 const ::google::protobuf::Descriptor* UninterpretedOption_NamePart_descriptor_ = NULL;
80 const ::google::protobuf::internal::GeneratedMessageReflection*
81 UninterpretedOption_NamePart_reflection_ = NULL;
82 const ::google::protobuf::Descriptor* SourceCodeInfo_descriptor_ = NULL;
83 const ::google::protobuf::internal::GeneratedMessageReflection*
84 SourceCodeInfo_reflection_ = NULL;
85 const ::google::protobuf::Descriptor* SourceCodeInfo_Location_descriptor_ = NULL;
86 const ::google::protobuf::internal::GeneratedMessageReflection*
87 SourceCodeInfo_Location_reflection_ = NULL;
92 void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() {
93 protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
94 const ::google::protobuf::FileDescriptor* file =
95 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
96 "google/protobuf/descriptor.proto");
97 GOOGLE_CHECK(file != NULL);
98 FileDescriptorSet_descriptor_ = file->message_type(0);
99 static const int FileDescriptorSet_offsets_[1] = {
100 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, file_),
102 FileDescriptorSet_reflection_ =
103 new ::google::protobuf::internal::GeneratedMessageReflection(
104 FileDescriptorSet_descriptor_,
105 FileDescriptorSet::default_instance_,
106 FileDescriptorSet_offsets_,
107 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _has_bits_[0]),
108 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _unknown_fields_),
110 ::google::protobuf::DescriptorPool::generated_pool(),
111 ::google::protobuf::MessageFactory::generated_factory(),
112 sizeof(FileDescriptorSet));
113 FileDescriptorProto_descriptor_ = file->message_type(1);
114 static const int FileDescriptorProto_offsets_[11] = {
115 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, name_),
116 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, package_),
117 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, dependency_),
118 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, public_dependency_),
119 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, weak_dependency_),
120 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, message_type_),
121 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, enum_type_),
122 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, service_),
123 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, extension_),
124 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, options_),
125 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, source_code_info_),
127 FileDescriptorProto_reflection_ =
128 new ::google::protobuf::internal::GeneratedMessageReflection(
129 FileDescriptorProto_descriptor_,
130 FileDescriptorProto::default_instance_,
131 FileDescriptorProto_offsets_,
132 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _has_bits_[0]),
133 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _unknown_fields_),
135 ::google::protobuf::DescriptorPool::generated_pool(),
136 ::google::protobuf::MessageFactory::generated_factory(),
137 sizeof(FileDescriptorProto));
138 DescriptorProto_descriptor_ = file->message_type(2);
139 static const int DescriptorProto_offsets_[7] = {
140 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, name_),
141 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, field_),
142 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_),
143 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, nested_type_),
144 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, enum_type_),
145 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_range_),
146 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, options_),
148 DescriptorProto_reflection_ =
149 new ::google::protobuf::internal::GeneratedMessageReflection(
150 DescriptorProto_descriptor_,
151 DescriptorProto::default_instance_,
152 DescriptorProto_offsets_,
153 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _has_bits_[0]),
154 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _unknown_fields_),
156 ::google::protobuf::DescriptorPool::generated_pool(),
157 ::google::protobuf::MessageFactory::generated_factory(),
158 sizeof(DescriptorProto));
159 DescriptorProto_ExtensionRange_descriptor_ = DescriptorProto_descriptor_->nested_type(0);
160 static const int DescriptorProto_ExtensionRange_offsets_[2] = {
161 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, start_),
162 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, end_),
164 DescriptorProto_ExtensionRange_reflection_ =
165 new ::google::protobuf::internal::GeneratedMessageReflection(
166 DescriptorProto_ExtensionRange_descriptor_,
167 DescriptorProto_ExtensionRange::default_instance_,
168 DescriptorProto_ExtensionRange_offsets_,
169 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _has_bits_[0]),
170 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _unknown_fields_),
172 ::google::protobuf::DescriptorPool::generated_pool(),
173 ::google::protobuf::MessageFactory::generated_factory(),
174 sizeof(DescriptorProto_ExtensionRange));
175 FieldDescriptorProto_descriptor_ = file->message_type(3);
176 static const int FieldDescriptorProto_offsets_[8] = {
177 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, name_),
178 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, number_),
179 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, label_),
180 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_),
181 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_name_),
182 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, extendee_),
183 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, default_value_),
184 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, options_),
186 FieldDescriptorProto_reflection_ =
187 new ::google::protobuf::internal::GeneratedMessageReflection(
188 FieldDescriptorProto_descriptor_,
189 FieldDescriptorProto::default_instance_,
190 FieldDescriptorProto_offsets_,
191 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _has_bits_[0]),
192 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _unknown_fields_),
194 ::google::protobuf::DescriptorPool::generated_pool(),
195 ::google::protobuf::MessageFactory::generated_factory(),
196 sizeof(FieldDescriptorProto));
197 FieldDescriptorProto_Type_descriptor_ = FieldDescriptorProto_descriptor_->enum_type(0);
198 FieldDescriptorProto_Label_descriptor_ = FieldDescriptorProto_descriptor_->enum_type(1);
199 EnumDescriptorProto_descriptor_ = file->message_type(4);
200 static const int EnumDescriptorProto_offsets_[3] = {
201 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, name_),
202 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, value_),
203 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, options_),
205 EnumDescriptorProto_reflection_ =
206 new ::google::protobuf::internal::GeneratedMessageReflection(
207 EnumDescriptorProto_descriptor_,
208 EnumDescriptorProto::default_instance_,
209 EnumDescriptorProto_offsets_,
210 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _has_bits_[0]),
211 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _unknown_fields_),
213 ::google::protobuf::DescriptorPool::generated_pool(),
214 ::google::protobuf::MessageFactory::generated_factory(),
215 sizeof(EnumDescriptorProto));
216 EnumValueDescriptorProto_descriptor_ = file->message_type(5);
217 static const int EnumValueDescriptorProto_offsets_[3] = {
218 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, name_),
219 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, number_),
220 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, options_),
222 EnumValueDescriptorProto_reflection_ =
223 new ::google::protobuf::internal::GeneratedMessageReflection(
224 EnumValueDescriptorProto_descriptor_,
225 EnumValueDescriptorProto::default_instance_,
226 EnumValueDescriptorProto_offsets_,
227 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _has_bits_[0]),
228 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _unknown_fields_),
230 ::google::protobuf::DescriptorPool::generated_pool(),
231 ::google::protobuf::MessageFactory::generated_factory(),
232 sizeof(EnumValueDescriptorProto));
233 ServiceDescriptorProto_descriptor_ = file->message_type(6);
234 static const int ServiceDescriptorProto_offsets_[3] = {
235 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, name_),
236 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, method_),
237 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, options_),
239 ServiceDescriptorProto_reflection_ =
240 new ::google::protobuf::internal::GeneratedMessageReflection(
241 ServiceDescriptorProto_descriptor_,
242 ServiceDescriptorProto::default_instance_,
243 ServiceDescriptorProto_offsets_,
244 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _has_bits_[0]),
245 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _unknown_fields_),
247 ::google::protobuf::DescriptorPool::generated_pool(),
248 ::google::protobuf::MessageFactory::generated_factory(),
249 sizeof(ServiceDescriptorProto));
250 MethodDescriptorProto_descriptor_ = file->message_type(7);
251 static const int MethodDescriptorProto_offsets_[4] = {
252 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, name_),
253 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, input_type_),
254 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, output_type_),
255 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, options_),
257 MethodDescriptorProto_reflection_ =
258 new ::google::protobuf::internal::GeneratedMessageReflection(
259 MethodDescriptorProto_descriptor_,
260 MethodDescriptorProto::default_instance_,
261 MethodDescriptorProto_offsets_,
262 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _has_bits_[0]),
263 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _unknown_fields_),
265 ::google::protobuf::DescriptorPool::generated_pool(),
266 ::google::protobuf::MessageFactory::generated_factory(),
267 sizeof(MethodDescriptorProto));
268 FileOptions_descriptor_ = file->message_type(8);
269 static const int FileOptions_offsets_[11] = {
270 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_package_),
271 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_outer_classname_),
272 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_multiple_files_),
273 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, retain_unknown_fields_),
274 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generate_equals_and_hash_),
275 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, optimize_for_),
276 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, go_package_),
277 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_generic_services_),
278 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generic_services_),
279 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, py_generic_services_),
280 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, uninterpreted_option_),
282 FileOptions_reflection_ =
283 new ::google::protobuf::internal::GeneratedMessageReflection(
284 FileOptions_descriptor_,
285 FileOptions::default_instance_,
286 FileOptions_offsets_,
287 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _has_bits_[0]),
288 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _unknown_fields_),
289 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _extensions_),
290 ::google::protobuf::DescriptorPool::generated_pool(),
291 ::google::protobuf::MessageFactory::generated_factory(),
292 sizeof(FileOptions));
293 FileOptions_OptimizeMode_descriptor_ = FileOptions_descriptor_->enum_type(0);
294 MessageOptions_descriptor_ = file->message_type(9);
295 static const int MessageOptions_offsets_[3] = {
296 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, message_set_wire_format_),
297 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, no_standard_descriptor_accessor_),
298 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, uninterpreted_option_),
300 MessageOptions_reflection_ =
301 new ::google::protobuf::internal::GeneratedMessageReflection(
302 MessageOptions_descriptor_,
303 MessageOptions::default_instance_,
304 MessageOptions_offsets_,
305 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _has_bits_[0]),
306 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _unknown_fields_),
307 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _extensions_),
308 ::google::protobuf::DescriptorPool::generated_pool(),
309 ::google::protobuf::MessageFactory::generated_factory(),
310 sizeof(MessageOptions));
311 FieldOptions_descriptor_ = file->message_type(10);
312 static const int FieldOptions_offsets_[7] = {
313 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, ctype_),
314 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, packed_),
315 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, lazy_),
316 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, deprecated_),
317 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, experimental_map_key_),
318 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, weak_),
319 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, uninterpreted_option_),
321 FieldOptions_reflection_ =
322 new ::google::protobuf::internal::GeneratedMessageReflection(
323 FieldOptions_descriptor_,
324 FieldOptions::default_instance_,
325 FieldOptions_offsets_,
326 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _has_bits_[0]),
327 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _unknown_fields_),
328 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _extensions_),
329 ::google::protobuf::DescriptorPool::generated_pool(),
330 ::google::protobuf::MessageFactory::generated_factory(),
331 sizeof(FieldOptions));
332 FieldOptions_CType_descriptor_ = FieldOptions_descriptor_->enum_type(0);
333 EnumOptions_descriptor_ = file->message_type(11);
334 static const int EnumOptions_offsets_[2] = {
335 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, allow_alias_),
336 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, uninterpreted_option_),
338 EnumOptions_reflection_ =
339 new ::google::protobuf::internal::GeneratedMessageReflection(
340 EnumOptions_descriptor_,
341 EnumOptions::default_instance_,
342 EnumOptions_offsets_,
343 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _has_bits_[0]),
344 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _unknown_fields_),
345 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _extensions_),
346 ::google::protobuf::DescriptorPool::generated_pool(),
347 ::google::protobuf::MessageFactory::generated_factory(),
348 sizeof(EnumOptions));
349 EnumValueOptions_descriptor_ = file->message_type(12);
350 static const int EnumValueOptions_offsets_[1] = {
351 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, uninterpreted_option_),
353 EnumValueOptions_reflection_ =
354 new ::google::protobuf::internal::GeneratedMessageReflection(
355 EnumValueOptions_descriptor_,
356 EnumValueOptions::default_instance_,
357 EnumValueOptions_offsets_,
358 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _has_bits_[0]),
359 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _unknown_fields_),
360 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _extensions_),
361 ::google::protobuf::DescriptorPool::generated_pool(),
362 ::google::protobuf::MessageFactory::generated_factory(),
363 sizeof(EnumValueOptions));
364 ServiceOptions_descriptor_ = file->message_type(13);
365 static const int ServiceOptions_offsets_[1] = {
366 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, uninterpreted_option_),
368 ServiceOptions_reflection_ =
369 new ::google::protobuf::internal::GeneratedMessageReflection(
370 ServiceOptions_descriptor_,
371 ServiceOptions::default_instance_,
372 ServiceOptions_offsets_,
373 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _has_bits_[0]),
374 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _unknown_fields_),
375 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _extensions_),
376 ::google::protobuf::DescriptorPool::generated_pool(),
377 ::google::protobuf::MessageFactory::generated_factory(),
378 sizeof(ServiceOptions));
379 MethodOptions_descriptor_ = file->message_type(14);
380 static const int MethodOptions_offsets_[1] = {
381 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, uninterpreted_option_),
383 MethodOptions_reflection_ =
384 new ::google::protobuf::internal::GeneratedMessageReflection(
385 MethodOptions_descriptor_,
386 MethodOptions::default_instance_,
387 MethodOptions_offsets_,
388 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _has_bits_[0]),
389 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _unknown_fields_),
390 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _extensions_),
391 ::google::protobuf::DescriptorPool::generated_pool(),
392 ::google::protobuf::MessageFactory::generated_factory(),
393 sizeof(MethodOptions));
394 UninterpretedOption_descriptor_ = file->message_type(15);
395 static const int UninterpretedOption_offsets_[7] = {
396 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, name_),
397 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, identifier_value_),
398 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, positive_int_value_),
399 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, negative_int_value_),
400 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, double_value_),
401 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, string_value_),
402 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, aggregate_value_),
404 UninterpretedOption_reflection_ =
405 new ::google::protobuf::internal::GeneratedMessageReflection(
406 UninterpretedOption_descriptor_,
407 UninterpretedOption::default_instance_,
408 UninterpretedOption_offsets_,
409 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _has_bits_[0]),
410 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _unknown_fields_),
412 ::google::protobuf::DescriptorPool::generated_pool(),
413 ::google::protobuf::MessageFactory::generated_factory(),
414 sizeof(UninterpretedOption));
415 UninterpretedOption_NamePart_descriptor_ = UninterpretedOption_descriptor_->nested_type(0);
416 static const int UninterpretedOption_NamePart_offsets_[2] = {
417 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, name_part_),
418 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, is_extension_),
420 UninterpretedOption_NamePart_reflection_ =
421 new ::google::protobuf::internal::GeneratedMessageReflection(
422 UninterpretedOption_NamePart_descriptor_,
423 UninterpretedOption_NamePart::default_instance_,
424 UninterpretedOption_NamePart_offsets_,
425 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _has_bits_[0]),
426 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _unknown_fields_),
428 ::google::protobuf::DescriptorPool::generated_pool(),
429 ::google::protobuf::MessageFactory::generated_factory(),
430 sizeof(UninterpretedOption_NamePart));
431 SourceCodeInfo_descriptor_ = file->message_type(16);
432 static const int SourceCodeInfo_offsets_[1] = {
433 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, location_),
435 SourceCodeInfo_reflection_ =
436 new ::google::protobuf::internal::GeneratedMessageReflection(
437 SourceCodeInfo_descriptor_,
438 SourceCodeInfo::default_instance_,
439 SourceCodeInfo_offsets_,
440 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _has_bits_[0]),
441 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _unknown_fields_),
443 ::google::protobuf::DescriptorPool::generated_pool(),
444 ::google::protobuf::MessageFactory::generated_factory(),
445 sizeof(SourceCodeInfo));
446 SourceCodeInfo_Location_descriptor_ = SourceCodeInfo_descriptor_->nested_type(0);
447 static const int SourceCodeInfo_Location_offsets_[4] = {
448 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, path_),
449 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, span_),
450 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, leading_comments_),
451 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, trailing_comments_),
453 SourceCodeInfo_Location_reflection_ =
454 new ::google::protobuf::internal::GeneratedMessageReflection(
455 SourceCodeInfo_Location_descriptor_,
456 SourceCodeInfo_Location::default_instance_,
457 SourceCodeInfo_Location_offsets_,
458 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _has_bits_[0]),
459 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _unknown_fields_),
461 ::google::protobuf::DescriptorPool::generated_pool(),
462 ::google::protobuf::MessageFactory::generated_factory(),
463 sizeof(SourceCodeInfo_Location));
468 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
469 inline void protobuf_AssignDescriptorsOnce() {
470 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
471 &protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto);
474 void protobuf_RegisterTypes(const ::std::string&) {
475 protobuf_AssignDescriptorsOnce();
476 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
477 FileDescriptorSet_descriptor_, &FileDescriptorSet::default_instance());
478 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
479 FileDescriptorProto_descriptor_, &FileDescriptorProto::default_instance());
480 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
481 DescriptorProto_descriptor_, &DescriptorProto::default_instance());
482 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
483 DescriptorProto_ExtensionRange_descriptor_, &DescriptorProto_ExtensionRange::default_instance());
484 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
485 FieldDescriptorProto_descriptor_, &FieldDescriptorProto::default_instance());
486 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
487 EnumDescriptorProto_descriptor_, &EnumDescriptorProto::default_instance());
488 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
489 EnumValueDescriptorProto_descriptor_, &EnumValueDescriptorProto::default_instance());
490 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
491 ServiceDescriptorProto_descriptor_, &ServiceDescriptorProto::default_instance());
492 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
493 MethodDescriptorProto_descriptor_, &MethodDescriptorProto::default_instance());
494 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
495 FileOptions_descriptor_, &FileOptions::default_instance());
496 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
497 MessageOptions_descriptor_, &MessageOptions::default_instance());
498 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
499 FieldOptions_descriptor_, &FieldOptions::default_instance());
500 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
501 EnumOptions_descriptor_, &EnumOptions::default_instance());
502 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
503 EnumValueOptions_descriptor_, &EnumValueOptions::default_instance());
504 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
505 ServiceOptions_descriptor_, &ServiceOptions::default_instance());
506 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
507 MethodOptions_descriptor_, &MethodOptions::default_instance());
508 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
509 UninterpretedOption_descriptor_, &UninterpretedOption::default_instance());
510 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
511 UninterpretedOption_NamePart_descriptor_, &UninterpretedOption_NamePart::default_instance());
512 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
513 SourceCodeInfo_descriptor_, &SourceCodeInfo::default_instance());
514 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
515 SourceCodeInfo_Location_descriptor_, &SourceCodeInfo_Location::default_instance());
520 void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto() {
521 delete FileDescriptorSet::default_instance_;
522 delete FileDescriptorSet_reflection_;
523 delete FileDescriptorProto::default_instance_;
524 delete FileDescriptorProto_reflection_;
525 delete DescriptorProto::default_instance_;
526 delete DescriptorProto_reflection_;
527 delete DescriptorProto_ExtensionRange::default_instance_;
528 delete DescriptorProto_ExtensionRange_reflection_;
529 delete FieldDescriptorProto::default_instance_;
530 delete FieldDescriptorProto_reflection_;
531 delete EnumDescriptorProto::default_instance_;
532 delete EnumDescriptorProto_reflection_;
533 delete EnumValueDescriptorProto::default_instance_;
534 delete EnumValueDescriptorProto_reflection_;
535 delete ServiceDescriptorProto::default_instance_;
536 delete ServiceDescriptorProto_reflection_;
537 delete MethodDescriptorProto::default_instance_;
538 delete MethodDescriptorProto_reflection_;
539 delete FileOptions::default_instance_;
540 delete FileOptions_reflection_;
541 delete MessageOptions::default_instance_;
542 delete MessageOptions_reflection_;
543 delete FieldOptions::default_instance_;
544 delete FieldOptions_reflection_;
545 delete EnumOptions::default_instance_;
546 delete EnumOptions_reflection_;
547 delete EnumValueOptions::default_instance_;
548 delete EnumValueOptions_reflection_;
549 delete ServiceOptions::default_instance_;
550 delete ServiceOptions_reflection_;
551 delete MethodOptions::default_instance_;
552 delete MethodOptions_reflection_;
553 delete UninterpretedOption::default_instance_;
554 delete UninterpretedOption_reflection_;
555 delete UninterpretedOption_NamePart::default_instance_;
556 delete UninterpretedOption_NamePart_reflection_;
557 delete SourceCodeInfo::default_instance_;
558 delete SourceCodeInfo_reflection_;
559 delete SourceCodeInfo_Location::default_instance_;
560 delete SourceCodeInfo_Location_reflection_;
563 void protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto() {
564 static bool already_here = false;
565 if (already_here) return;
567 GOOGLE_PROTOBUF_VERIFY_VERSION;
569 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
570 "\n google/protobuf/descriptor.proto\022\017goog"
571 "le.protobuf\"G\n\021FileDescriptorSet\0222\n\004file"
572 "\030\001 \003(\0132$.google.protobuf.FileDescriptorP"
573 "roto\"\313\003\n\023FileDescriptorProto\022\014\n\004name\030\001 \001"
574 "(\t\022\017\n\007package\030\002 \001(\t\022\022\n\ndependency\030\003 \003(\t\022"
575 "\031\n\021public_dependency\030\n \003(\005\022\027\n\017weak_depen"
576 "dency\030\013 \003(\005\0226\n\014message_type\030\004 \003(\0132 .goog"
577 "le.protobuf.DescriptorProto\0227\n\tenum_type"
578 "\030\005 \003(\0132$.google.protobuf.EnumDescriptorP"
579 "roto\0228\n\007service\030\006 \003(\0132\'.google.protobuf."
580 "ServiceDescriptorProto\0228\n\textension\030\007 \003("
581 "\0132%.google.protobuf.FieldDescriptorProto"
582 "\022-\n\007options\030\010 \001(\0132\034.google.protobuf.File"
583 "Options\0229\n\020source_code_info\030\t \001(\0132\037.goog"
584 "le.protobuf.SourceCodeInfo\"\251\003\n\017Descripto"
585 "rProto\022\014\n\004name\030\001 \001(\t\0224\n\005field\030\002 \003(\0132%.go"
586 "ogle.protobuf.FieldDescriptorProto\0228\n\tex"
587 "tension\030\006 \003(\0132%.google.protobuf.FieldDes"
588 "criptorProto\0225\n\013nested_type\030\003 \003(\0132 .goog"
589 "le.protobuf.DescriptorProto\0227\n\tenum_type"
590 "\030\004 \003(\0132$.google.protobuf.EnumDescriptorP"
591 "roto\022H\n\017extension_range\030\005 \003(\0132/.google.p"
592 "rotobuf.DescriptorProto.ExtensionRange\0220"
593 "\n\007options\030\007 \001(\0132\037.google.protobuf.Messag"
594 "eOptions\032,\n\016ExtensionRange\022\r\n\005start\030\001 \001("
595 "\005\022\013\n\003end\030\002 \001(\005\"\224\005\n\024FieldDescriptorProto\022"
596 "\014\n\004name\030\001 \001(\t\022\016\n\006number\030\003 \001(\005\022:\n\005label\030\004"
597 " \001(\0162+.google.protobuf.FieldDescriptorPr"
598 "oto.Label\0228\n\004type\030\005 \001(\0162*.google.protobu"
599 "f.FieldDescriptorProto.Type\022\021\n\ttype_name"
600 "\030\006 \001(\t\022\020\n\010extendee\030\002 \001(\t\022\025\n\rdefault_valu"
601 "e\030\007 \001(\t\022.\n\007options\030\010 \001(\0132\035.google.protob"
602 "uf.FieldOptions\"\266\002\n\004Type\022\017\n\013TYPE_DOUBLE\020"
603 "\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTYPE_INT64\020\003\022\017\n\013TYP"
604 "E_UINT64\020\004\022\016\n\nTYPE_INT32\020\005\022\020\n\014TYPE_FIXED"
605 "64\020\006\022\020\n\014TYPE_FIXED32\020\007\022\r\n\tTYPE_BOOL\020\010\022\017\n"
606 "\013TYPE_STRING\020\t\022\016\n\nTYPE_GROUP\020\n\022\020\n\014TYPE_M"
607 "ESSAGE\020\013\022\016\n\nTYPE_BYTES\020\014\022\017\n\013TYPE_UINT32\020"
608 "\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_SFIXED32\020\017\022\021\n\rT"
609 "YPE_SFIXED64\020\020\022\017\n\013TYPE_SINT32\020\021\022\017\n\013TYPE_"
610 "SINT64\020\022\"C\n\005Label\022\022\n\016LABEL_OPTIONAL\020\001\022\022\n"
611 "\016LABEL_REQUIRED\020\002\022\022\n\016LABEL_REPEATED\020\003\"\214\001"
612 "\n\023EnumDescriptorProto\022\014\n\004name\030\001 \001(\t\0228\n\005v"
613 "alue\030\002 \003(\0132).google.protobuf.EnumValueDe"
614 "scriptorProto\022-\n\007options\030\003 \001(\0132\034.google."
615 "protobuf.EnumOptions\"l\n\030EnumValueDescrip"
616 "torProto\022\014\n\004name\030\001 \001(\t\022\016\n\006number\030\002 \001(\005\0222"
617 "\n\007options\030\003 \001(\0132!.google.protobuf.EnumVa"
618 "lueOptions\"\220\001\n\026ServiceDescriptorProto\022\014\n"
619 "\004name\030\001 \001(\t\0226\n\006method\030\002 \003(\0132&.google.pro"
620 "tobuf.MethodDescriptorProto\0220\n\007options\030\003"
621 " \001(\0132\037.google.protobuf.ServiceOptions\"\177\n"
622 "\025MethodDescriptorProto\022\014\n\004name\030\001 \001(\t\022\022\n\n"
623 "input_type\030\002 \001(\t\022\023\n\013output_type\030\003 \001(\t\022/\n"
624 "\007options\030\004 \001(\0132\036.google.protobuf.MethodO"
625 "ptions\"\217\004\n\013FileOptions\022\024\n\014java_package\030\001"
626 " \001(\t\022\034\n\024java_outer_classname\030\010 \001(\t\022\"\n\023ja"
627 "va_multiple_files\030\n \001(\010:\005false\022$\n\025retain"
628 "_unknown_fields\030\014 \001(\010:\005false\022,\n\035java_gen"
629 "erate_equals_and_hash\030\024 \001(\010:\005false\022F\n\014op"
630 "timize_for\030\t \001(\0162).google.protobuf.FileO"
631 "ptions.OptimizeMode:\005SPEED\022\022\n\ngo_package"
632 "\030\013 \001(\t\022\"\n\023cc_generic_services\030\020 \001(\010:\005fal"
633 "se\022$\n\025java_generic_services\030\021 \001(\010:\005false"
634 "\022\"\n\023py_generic_services\030\022 \001(\010:\005false\022C\n\024"
635 "uninterpreted_option\030\347\007 \003(\0132$.google.pro"
636 "tobuf.UninterpretedOption\":\n\014OptimizeMod"
637 "e\022\t\n\005SPEED\020\001\022\r\n\tCODE_SIZE\020\002\022\020\n\014LITE_RUNT"
638 "IME\020\003*\t\010\350\007\020\200\200\200\200\002\"\270\001\n\016MessageOptions\022&\n\027m"
639 "essage_set_wire_format\030\001 \001(\010:\005false\022.\n\037n"
640 "o_standard_descriptor_accessor\030\002 \001(\010:\005fa"
641 "lse\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.goo"
642 "gle.protobuf.UninterpretedOption*\t\010\350\007\020\200\200"
643 "\200\200\002\"\276\002\n\014FieldOptions\022:\n\005ctype\030\001 \001(\0162#.go"
644 "ogle.protobuf.FieldOptions.CType:\006STRING"
645 "\022\016\n\006packed\030\002 \001(\010\022\023\n\004lazy\030\005 \001(\010:\005false\022\031\n"
646 "\ndeprecated\030\003 \001(\010:\005false\022\034\n\024experimental"
647 "_map_key\030\t \001(\t\022\023\n\004weak\030\n \001(\010:\005false\022C\n\024u"
648 "ninterpreted_option\030\347\007 \003(\0132$.google.prot"
649 "obuf.UninterpretedOption\"/\n\005CType\022\n\n\006STR"
650 "ING\020\000\022\010\n\004CORD\020\001\022\020\n\014STRING_PIECE\020\002*\t\010\350\007\020\200"
651 "\200\200\200\002\"x\n\013EnumOptions\022\031\n\013allow_alias\030\002 \001(\010"
652 ":\004true\022C\n\024uninterpreted_option\030\347\007 \003(\0132$."
653 "google.protobuf.UninterpretedOption*\t\010\350\007"
654 "\020\200\200\200\200\002\"b\n\020EnumValueOptions\022C\n\024uninterpre"
655 "ted_option\030\347\007 \003(\0132$.google.protobuf.Unin"
656 "terpretedOption*\t\010\350\007\020\200\200\200\200\002\"`\n\016ServiceOpt"
657 "ions\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.go"
658 "ogle.protobuf.UninterpretedOption*\t\010\350\007\020\200"
659 "\200\200\200\002\"_\n\rMethodOptions\022C\n\024uninterpreted_o"
660 "ption\030\347\007 \003(\0132$.google.protobuf.Uninterpr"
661 "etedOption*\t\010\350\007\020\200\200\200\200\002\"\236\002\n\023UninterpretedO"
662 "ption\022;\n\004name\030\002 \003(\0132-.google.protobuf.Un"
663 "interpretedOption.NamePart\022\030\n\020identifier"
664 "_value\030\003 \001(\t\022\032\n\022positive_int_value\030\004 \001(\004"
665 "\022\032\n\022negative_int_value\030\005 \001(\003\022\024\n\014double_v"
666 "alue\030\006 \001(\001\022\024\n\014string_value\030\007 \001(\014\022\027\n\017aggr"
667 "egate_value\030\010 \001(\t\0323\n\010NamePart\022\021\n\tname_pa"
668 "rt\030\001 \002(\t\022\024\n\014is_extension\030\002 \002(\010\"\261\001\n\016Sourc"
669 "eCodeInfo\022:\n\010location\030\001 \003(\0132(.google.pro"
670 "tobuf.SourceCodeInfo.Location\032c\n\010Locatio"
671 "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"
672 "\020leading_comments\030\003 \001(\t\022\031\n\021trailing_comm"
673 "ents\030\004 \001(\tB)\n\023com.google.protobufB\020Descr"
674 "iptorProtosH\001", 4173);
675 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
676 "google/protobuf/descriptor.proto", &protobuf_RegisterTypes);
677 FileDescriptorSet::default_instance_ = new FileDescriptorSet();
678 FileDescriptorProto::default_instance_ = new FileDescriptorProto();
679 DescriptorProto::default_instance_ = new DescriptorProto();
680 DescriptorProto_ExtensionRange::default_instance_ = new DescriptorProto_ExtensionRange();
681 FieldDescriptorProto::default_instance_ = new FieldDescriptorProto();
682 EnumDescriptorProto::default_instance_ = new EnumDescriptorProto();
683 EnumValueDescriptorProto::default_instance_ = new EnumValueDescriptorProto();
684 ServiceDescriptorProto::default_instance_ = new ServiceDescriptorProto();
685 MethodDescriptorProto::default_instance_ = new MethodDescriptorProto();
686 FileOptions::default_instance_ = new FileOptions();
687 MessageOptions::default_instance_ = new MessageOptions();
688 FieldOptions::default_instance_ = new FieldOptions();
689 EnumOptions::default_instance_ = new EnumOptions();
690 EnumValueOptions::default_instance_ = new EnumValueOptions();
691 ServiceOptions::default_instance_ = new ServiceOptions();
692 MethodOptions::default_instance_ = new MethodOptions();
693 UninterpretedOption::default_instance_ = new UninterpretedOption();
694 UninterpretedOption_NamePart::default_instance_ = new UninterpretedOption_NamePart();
695 SourceCodeInfo::default_instance_ = new SourceCodeInfo();
696 SourceCodeInfo_Location::default_instance_ = new SourceCodeInfo_Location();
697 FileDescriptorSet::default_instance_->InitAsDefaultInstance();
698 FileDescriptorProto::default_instance_->InitAsDefaultInstance();
699 DescriptorProto::default_instance_->InitAsDefaultInstance();
700 DescriptorProto_ExtensionRange::default_instance_->InitAsDefaultInstance();
701 FieldDescriptorProto::default_instance_->InitAsDefaultInstance();
702 EnumDescriptorProto::default_instance_->InitAsDefaultInstance();
703 EnumValueDescriptorProto::default_instance_->InitAsDefaultInstance();
704 ServiceDescriptorProto::default_instance_->InitAsDefaultInstance();
705 MethodDescriptorProto::default_instance_->InitAsDefaultInstance();
706 FileOptions::default_instance_->InitAsDefaultInstance();
707 MessageOptions::default_instance_->InitAsDefaultInstance();
708 FieldOptions::default_instance_->InitAsDefaultInstance();
709 EnumOptions::default_instance_->InitAsDefaultInstance();
710 EnumValueOptions::default_instance_->InitAsDefaultInstance();
711 ServiceOptions::default_instance_->InitAsDefaultInstance();
712 MethodOptions::default_instance_->InitAsDefaultInstance();
713 UninterpretedOption::default_instance_->InitAsDefaultInstance();
714 UninterpretedOption_NamePart::default_instance_->InitAsDefaultInstance();
715 SourceCodeInfo::default_instance_->InitAsDefaultInstance();
716 SourceCodeInfo_Location::default_instance_->InitAsDefaultInstance();
717 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto);
720 // Force AddDescriptors() to be called at static initialization time.
721 struct StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto {
722 StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto() {
723 protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
725 } static_descriptor_initializer_google_2fprotobuf_2fdescriptor_2eproto_;
727 // ===================================================================
730 const int FileDescriptorSet::kFileFieldNumber;
733 FileDescriptorSet::FileDescriptorSet()
734 : ::google::protobuf::Message() {
738 void FileDescriptorSet::InitAsDefaultInstance() {
741 FileDescriptorSet::FileDescriptorSet(const FileDescriptorSet& from)
742 : ::google::protobuf::Message() {
747 void FileDescriptorSet::SharedCtor() {
749 ::memset(_has_bits_, 0, sizeof(_has_bits_));
752 FileDescriptorSet::~FileDescriptorSet() {
756 void FileDescriptorSet::SharedDtor() {
757 if (this != default_instance_) {
761 void FileDescriptorSet::SetCachedSize(int size) const {
762 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
763 _cached_size_ = size;
764 GOOGLE_SAFE_CONCURRENT_WRITES_END();
766 const ::google::protobuf::Descriptor* FileDescriptorSet::descriptor() {
767 protobuf_AssignDescriptorsOnce();
768 return FileDescriptorSet_descriptor_;
771 const FileDescriptorSet& FileDescriptorSet::default_instance() {
772 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
773 return *default_instance_;
776 FileDescriptorSet* FileDescriptorSet::default_instance_ = NULL;
778 FileDescriptorSet* FileDescriptorSet::New() const {
779 return new FileDescriptorSet;
782 void FileDescriptorSet::Clear() {
784 ::memset(_has_bits_, 0, sizeof(_has_bits_));
785 mutable_unknown_fields()->Clear();
788 bool FileDescriptorSet::MergePartialFromCodedStream(
789 ::google::protobuf::io::CodedInputStream* input) {
790 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
791 ::google::protobuf::uint32 tag;
792 while ((tag = input->ReadTag()) != 0) {
793 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
794 // repeated .google.protobuf.FileDescriptorProto file = 1;
796 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
797 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
799 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
802 goto handle_uninterpreted;
804 if (input->ExpectTag(10)) goto parse_file;
805 if (input->ExpectAtEnd()) return true;
810 handle_uninterpreted:
811 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
812 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
815 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
816 input, tag, mutable_unknown_fields()));
825 void FileDescriptorSet::SerializeWithCachedSizes(
826 ::google::protobuf::io::CodedOutputStream* output) const {
827 // repeated .google.protobuf.FileDescriptorProto file = 1;
828 for (int i = 0; i < this->file_size(); i++) {
829 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
830 1, this->file(i), output);
833 if (!unknown_fields().empty()) {
834 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
835 unknown_fields(), output);
839 ::google::protobuf::uint8* FileDescriptorSet::SerializeWithCachedSizesToArray(
840 ::google::protobuf::uint8* target) const {
841 // repeated .google.protobuf.FileDescriptorProto file = 1;
842 for (int i = 0; i < this->file_size(); i++) {
843 target = ::google::protobuf::internal::WireFormatLite::
844 WriteMessageNoVirtualToArray(
845 1, this->file(i), target);
848 if (!unknown_fields().empty()) {
849 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownFieldsToArray(
850 unknown_fields(), target);
855 int FileDescriptorSet::ByteSize() const {
858 // repeated .google.protobuf.FileDescriptorProto file = 1;
859 total_size += 1 * this->file_size();
860 for (int i = 0; i < this->file_size(); i++) {
862 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
866 if (!unknown_fields().empty()) {
868 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
871 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
872 _cached_size_ = total_size;
873 GOOGLE_SAFE_CONCURRENT_WRITES_END();
877 void FileDescriptorSet::MergeFrom(const ::google::protobuf::Message& from) {
878 GOOGLE_CHECK_NE(&from, this);
879 const FileDescriptorSet* source =
880 ::google::protobuf::internal::dynamic_cast_if_available<const FileDescriptorSet*>(
882 if (source == NULL) {
883 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
889 void FileDescriptorSet::MergeFrom(const FileDescriptorSet& from) {
890 GOOGLE_CHECK_NE(&from, this);
891 file_.MergeFrom(from.file_);
892 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
895 void FileDescriptorSet::CopyFrom(const ::google::protobuf::Message& from) {
896 if (&from == this) return;
901 void FileDescriptorSet::CopyFrom(const FileDescriptorSet& from) {
902 if (&from == this) return;
907 bool FileDescriptorSet::IsInitialized() const {
909 for (int i = 0; i < file_size(); i++) {
910 if (!this->file(i).IsInitialized()) return false;
915 void FileDescriptorSet::Swap(FileDescriptorSet* other) {
917 file_.Swap(&other->file_);
918 std::swap(_has_bits_[0], other->_has_bits_[0]);
919 _unknown_fields_.Swap(&other->_unknown_fields_);
920 std::swap(_cached_size_, other->_cached_size_);
924 ::google::protobuf::Metadata FileDescriptorSet::GetMetadata() const {
925 protobuf_AssignDescriptorsOnce();
926 ::google::protobuf::Metadata metadata;
927 metadata.descriptor = FileDescriptorSet_descriptor_;
928 metadata.reflection = FileDescriptorSet_reflection_;
933 // ===================================================================
936 const int FileDescriptorProto::kNameFieldNumber;
937 const int FileDescriptorProto::kPackageFieldNumber;
938 const int FileDescriptorProto::kDependencyFieldNumber;
939 const int FileDescriptorProto::kPublicDependencyFieldNumber;
940 const int FileDescriptorProto::kWeakDependencyFieldNumber;
941 const int FileDescriptorProto::kMessageTypeFieldNumber;
942 const int FileDescriptorProto::kEnumTypeFieldNumber;
943 const int FileDescriptorProto::kServiceFieldNumber;
944 const int FileDescriptorProto::kExtensionFieldNumber;
945 const int FileDescriptorProto::kOptionsFieldNumber;
946 const int FileDescriptorProto::kSourceCodeInfoFieldNumber;
949 FileDescriptorProto::FileDescriptorProto()
950 : ::google::protobuf::Message() {
954 void FileDescriptorProto::InitAsDefaultInstance() {
955 options_ = const_cast< ::google::protobuf::FileOptions*>(&::google::protobuf::FileOptions::default_instance());
956 source_code_info_ = const_cast< ::google::protobuf::SourceCodeInfo*>(&::google::protobuf::SourceCodeInfo::default_instance());
959 FileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from)
960 : ::google::protobuf::Message() {
965 void FileDescriptorProto::SharedCtor() {
967 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
968 package_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
970 source_code_info_ = NULL;
971 ::memset(_has_bits_, 0, sizeof(_has_bits_));
974 FileDescriptorProto::~FileDescriptorProto() {
978 void FileDescriptorProto::SharedDtor() {
979 if (name_ != &::google::protobuf::internal::GetEmptyString()) {
982 if (package_ != &::google::protobuf::internal::GetEmptyString()) {
985 if (this != default_instance_) {
987 delete source_code_info_;
991 void FileDescriptorProto::SetCachedSize(int size) const {
992 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
993 _cached_size_ = size;
994 GOOGLE_SAFE_CONCURRENT_WRITES_END();
996 const ::google::protobuf::Descriptor* FileDescriptorProto::descriptor() {
997 protobuf_AssignDescriptorsOnce();
998 return FileDescriptorProto_descriptor_;
1001 const FileDescriptorProto& FileDescriptorProto::default_instance() {
1002 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
1003 return *default_instance_;
1006 FileDescriptorProto* FileDescriptorProto::default_instance_ = NULL;
1008 FileDescriptorProto* FileDescriptorProto::New() const {
1009 return new FileDescriptorProto;
1012 void FileDescriptorProto::Clear() {
1013 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1015 if (name_ != &::google::protobuf::internal::GetEmptyString()) {
1019 if (has_package()) {
1020 if (package_ != &::google::protobuf::internal::GetEmptyString()) {
1025 if (_has_bits_[9 / 32] & (0xffu << (9 % 32))) {
1026 if (has_options()) {
1027 if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear();
1029 if (has_source_code_info()) {
1030 if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCodeInfo::Clear();
1033 dependency_.Clear();
1034 public_dependency_.Clear();
1035 weak_dependency_.Clear();
1036 message_type_.Clear();
1040 ::memset(_has_bits_, 0, sizeof(_has_bits_));
1041 mutable_unknown_fields()->Clear();
1044 bool FileDescriptorProto::MergePartialFromCodedStream(
1045 ::google::protobuf::io::CodedInputStream* input) {
1046 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1047 ::google::protobuf::uint32 tag;
1048 while ((tag = input->ReadTag()) != 0) {
1049 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1050 // optional string name = 1;
1052 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1053 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1054 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1055 input, this->mutable_name()));
1056 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1057 this->name().data(), this->name().length(),
1058 ::google::protobuf::internal::WireFormat::PARSE);
1060 goto handle_uninterpreted;
1062 if (input->ExpectTag(18)) goto parse_package;
1066 // optional string package = 2;
1068 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1069 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1071 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1072 input, this->mutable_package()));
1073 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1074 this->package().data(), this->package().length(),
1075 ::google::protobuf::internal::WireFormat::PARSE);
1077 goto handle_uninterpreted;
1079 if (input->ExpectTag(26)) goto parse_dependency;
1083 // repeated string dependency = 3;
1085 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1086 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1088 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1089 input, this->add_dependency()));
1090 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1091 this->dependency(this->dependency_size() - 1).data(),
1092 this->dependency(this->dependency_size() - 1).length(),
1093 ::google::protobuf::internal::WireFormat::PARSE);
1095 goto handle_uninterpreted;
1097 if (input->ExpectTag(26)) goto parse_dependency;
1098 if (input->ExpectTag(34)) goto parse_message_type;
1102 // repeated .google.protobuf.DescriptorProto message_type = 4;
1104 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1105 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1107 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1108 input, add_message_type()));
1110 goto handle_uninterpreted;
1112 if (input->ExpectTag(34)) goto parse_message_type;
1113 if (input->ExpectTag(42)) goto parse_enum_type;
1117 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1119 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1120 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1122 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1123 input, add_enum_type()));
1125 goto handle_uninterpreted;
1127 if (input->ExpectTag(42)) goto parse_enum_type;
1128 if (input->ExpectTag(50)) goto parse_service;
1132 // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1134 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1135 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1137 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1138 input, add_service()));
1140 goto handle_uninterpreted;
1142 if (input->ExpectTag(50)) goto parse_service;
1143 if (input->ExpectTag(58)) goto parse_extension;
1147 // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1149 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1150 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1152 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1153 input, add_extension()));
1155 goto handle_uninterpreted;
1157 if (input->ExpectTag(58)) goto parse_extension;
1158 if (input->ExpectTag(66)) goto parse_options;
1162 // optional .google.protobuf.FileOptions options = 8;
1164 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1165 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1167 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1168 input, mutable_options()));
1170 goto handle_uninterpreted;
1172 if (input->ExpectTag(74)) goto parse_source_code_info;
1176 // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1178 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1179 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1180 parse_source_code_info:
1181 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1182 input, mutable_source_code_info()));
1184 goto handle_uninterpreted;
1186 if (input->ExpectTag(80)) goto parse_public_dependency;
1190 // repeated int32 public_dependency = 10;
1192 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1193 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1194 parse_public_dependency:
1195 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
1196 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1197 1, 80, input, this->mutable_public_dependency())));
1198 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
1199 == ::google::protobuf::internal::WireFormatLite::
1200 WIRETYPE_LENGTH_DELIMITED) {
1201 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
1202 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1203 input, this->mutable_public_dependency())));
1205 goto handle_uninterpreted;
1207 if (input->ExpectTag(80)) goto parse_public_dependency;
1208 if (input->ExpectTag(88)) goto parse_weak_dependency;
1212 // repeated int32 weak_dependency = 11;
1214 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1215 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1216 parse_weak_dependency:
1217 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
1218 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1219 1, 88, input, this->mutable_weak_dependency())));
1220 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
1221 == ::google::protobuf::internal::WireFormatLite::
1222 WIRETYPE_LENGTH_DELIMITED) {
1223 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
1224 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1225 input, this->mutable_weak_dependency())));
1227 goto handle_uninterpreted;
1229 if (input->ExpectTag(88)) goto parse_weak_dependency;
1230 if (input->ExpectAtEnd()) return true;
1235 handle_uninterpreted:
1236 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1237 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1240 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
1241 input, tag, mutable_unknown_fields()));
1250 void FileDescriptorProto::SerializeWithCachedSizes(
1251 ::google::protobuf::io::CodedOutputStream* output) const {
1252 // optional string name = 1;
1254 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1255 this->name().data(), this->name().length(),
1256 ::google::protobuf::internal::WireFormat::SERIALIZE);
1257 ::google::protobuf::internal::WireFormatLite::WriteString(
1258 1, this->name(), output);
1261 // optional string package = 2;
1262 if (has_package()) {
1263 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1264 this->package().data(), this->package().length(),
1265 ::google::protobuf::internal::WireFormat::SERIALIZE);
1266 ::google::protobuf::internal::WireFormatLite::WriteString(
1267 2, this->package(), output);
1270 // repeated string dependency = 3;
1271 for (int i = 0; i < this->dependency_size(); i++) {
1272 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1273 this->dependency(i).data(), this->dependency(i).length(),
1274 ::google::protobuf::internal::WireFormat::SERIALIZE);
1275 ::google::protobuf::internal::WireFormatLite::WriteString(
1276 3, this->dependency(i), output);
1279 // repeated .google.protobuf.DescriptorProto message_type = 4;
1280 for (int i = 0; i < this->message_type_size(); i++) {
1281 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1282 4, this->message_type(i), output);
1285 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1286 for (int i = 0; i < this->enum_type_size(); i++) {
1287 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1288 5, this->enum_type(i), output);
1291 // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1292 for (int i = 0; i < this->service_size(); i++) {
1293 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1294 6, this->service(i), output);
1297 // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1298 for (int i = 0; i < this->extension_size(); i++) {
1299 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1300 7, this->extension(i), output);
1303 // optional .google.protobuf.FileOptions options = 8;
1304 if (has_options()) {
1305 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1306 8, this->options(), output);
1309 // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1310 if (has_source_code_info()) {
1311 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1312 9, this->source_code_info(), output);
1315 // repeated int32 public_dependency = 10;
1316 for (int i = 0; i < this->public_dependency_size(); i++) {
1317 ::google::protobuf::internal::WireFormatLite::WriteInt32(
1318 10, this->public_dependency(i), output);
1321 // repeated int32 weak_dependency = 11;
1322 for (int i = 0; i < this->weak_dependency_size(); i++) {
1323 ::google::protobuf::internal::WireFormatLite::WriteInt32(
1324 11, this->weak_dependency(i), output);
1327 if (!unknown_fields().empty()) {
1328 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
1329 unknown_fields(), output);
1333 ::google::protobuf::uint8* FileDescriptorProto::SerializeWithCachedSizesToArray(
1334 ::google::protobuf::uint8* target) const {
1335 // optional string name = 1;
1337 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1338 this->name().data(), this->name().length(),
1339 ::google::protobuf::internal::WireFormat::SERIALIZE);
1341 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1342 1, this->name(), target);
1345 // optional string package = 2;
1346 if (has_package()) {
1347 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1348 this->package().data(), this->package().length(),
1349 ::google::protobuf::internal::WireFormat::SERIALIZE);
1351 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1352 2, this->package(), target);
1355 // repeated string dependency = 3;
1356 for (int i = 0; i < this->dependency_size(); i++) {
1357 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1358 this->dependency(i).data(), this->dependency(i).length(),
1359 ::google::protobuf::internal::WireFormat::SERIALIZE);
1360 target = ::google::protobuf::internal::WireFormatLite::
1361 WriteStringToArray(3, this->dependency(i), target);
1364 // repeated .google.protobuf.DescriptorProto message_type = 4;
1365 for (int i = 0; i < this->message_type_size(); i++) {
1366 target = ::google::protobuf::internal::WireFormatLite::
1367 WriteMessageNoVirtualToArray(
1368 4, this->message_type(i), target);
1371 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1372 for (int i = 0; i < this->enum_type_size(); i++) {
1373 target = ::google::protobuf::internal::WireFormatLite::
1374 WriteMessageNoVirtualToArray(
1375 5, this->enum_type(i), target);
1378 // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1379 for (int i = 0; i < this->service_size(); i++) {
1380 target = ::google::protobuf::internal::WireFormatLite::
1381 WriteMessageNoVirtualToArray(
1382 6, this->service(i), target);
1385 // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1386 for (int i = 0; i < this->extension_size(); i++) {
1387 target = ::google::protobuf::internal::WireFormatLite::
1388 WriteMessageNoVirtualToArray(
1389 7, this->extension(i), target);
1392 // optional .google.protobuf.FileOptions options = 8;
1393 if (has_options()) {
1394 target = ::google::protobuf::internal::WireFormatLite::
1395 WriteMessageNoVirtualToArray(
1396 8, this->options(), target);
1399 // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1400 if (has_source_code_info()) {
1401 target = ::google::protobuf::internal::WireFormatLite::
1402 WriteMessageNoVirtualToArray(
1403 9, this->source_code_info(), target);
1406 // repeated int32 public_dependency = 10;
1407 for (int i = 0; i < this->public_dependency_size(); i++) {
1408 target = ::google::protobuf::internal::WireFormatLite::
1409 WriteInt32ToArray(10, this->public_dependency(i), target);
1412 // repeated int32 weak_dependency = 11;
1413 for (int i = 0; i < this->weak_dependency_size(); i++) {
1414 target = ::google::protobuf::internal::WireFormatLite::
1415 WriteInt32ToArray(11, this->weak_dependency(i), target);
1418 if (!unknown_fields().empty()) {
1419 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownFieldsToArray(
1420 unknown_fields(), target);
1425 int FileDescriptorProto::ByteSize() const {
1428 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1429 // optional string name = 1;
1432 ::google::protobuf::internal::WireFormatLite::StringSize(
1436 // optional string package = 2;
1437 if (has_package()) {
1439 ::google::protobuf::internal::WireFormatLite::StringSize(
1444 if (_has_bits_[9 / 32] & (0xffu << (9 % 32))) {
1445 // optional .google.protobuf.FileOptions options = 8;
1446 if (has_options()) {
1448 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1452 // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1453 if (has_source_code_info()) {
1455 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1456 this->source_code_info());
1460 // repeated string dependency = 3;
1461 total_size += 1 * this->dependency_size();
1462 for (int i = 0; i < this->dependency_size(); i++) {
1463 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
1464 this->dependency(i));
1467 // repeated int32 public_dependency = 10;
1470 for (int i = 0; i < this->public_dependency_size(); i++) {
1471 data_size += ::google::protobuf::internal::WireFormatLite::
1472 Int32Size(this->public_dependency(i));
1474 total_size += 1 * this->public_dependency_size() + data_size;
1477 // repeated int32 weak_dependency = 11;
1480 for (int i = 0; i < this->weak_dependency_size(); i++) {
1481 data_size += ::google::protobuf::internal::WireFormatLite::
1482 Int32Size(this->weak_dependency(i));
1484 total_size += 1 * this->weak_dependency_size() + data_size;
1487 // repeated .google.protobuf.DescriptorProto message_type = 4;
1488 total_size += 1 * this->message_type_size();
1489 for (int i = 0; i < this->message_type_size(); i++) {
1491 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1492 this->message_type(i));
1495 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1496 total_size += 1 * this->enum_type_size();
1497 for (int i = 0; i < this->enum_type_size(); i++) {
1499 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1500 this->enum_type(i));
1503 // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1504 total_size += 1 * this->service_size();
1505 for (int i = 0; i < this->service_size(); i++) {
1507 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1511 // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1512 total_size += 1 * this->extension_size();
1513 for (int i = 0; i < this->extension_size(); i++) {
1515 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1516 this->extension(i));
1519 if (!unknown_fields().empty()) {
1521 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
1524 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1525 _cached_size_ = total_size;
1526 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1530 void FileDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
1531 GOOGLE_CHECK_NE(&from, this);
1532 const FileDescriptorProto* source =
1533 ::google::protobuf::internal::dynamic_cast_if_available<const FileDescriptorProto*>(
1535 if (source == NULL) {
1536 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1542 void FileDescriptorProto::MergeFrom(const FileDescriptorProto& from) {
1543 GOOGLE_CHECK_NE(&from, this);
1544 dependency_.MergeFrom(from.dependency_);
1545 public_dependency_.MergeFrom(from.public_dependency_);
1546 weak_dependency_.MergeFrom(from.weak_dependency_);
1547 message_type_.MergeFrom(from.message_type_);
1548 enum_type_.MergeFrom(from.enum_type_);
1549 service_.MergeFrom(from.service_);
1550 extension_.MergeFrom(from.extension_);
1551 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1552 if (from.has_name()) {
1553 set_name(from.name());
1555 if (from.has_package()) {
1556 set_package(from.package());
1559 if (from._has_bits_[9 / 32] & (0xffu << (9 % 32))) {
1560 if (from.has_options()) {
1561 mutable_options()->::google::protobuf::FileOptions::MergeFrom(from.options());
1563 if (from.has_source_code_info()) {
1564 mutable_source_code_info()->::google::protobuf::SourceCodeInfo::MergeFrom(from.source_code_info());
1567 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1570 void FileDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
1571 if (&from == this) return;
1576 void FileDescriptorProto::CopyFrom(const FileDescriptorProto& from) {
1577 if (&from == this) return;
1582 bool FileDescriptorProto::IsInitialized() const {
1584 for (int i = 0; i < message_type_size(); i++) {
1585 if (!this->message_type(i).IsInitialized()) return false;
1587 for (int i = 0; i < enum_type_size(); i++) {
1588 if (!this->enum_type(i).IsInitialized()) return false;
1590 for (int i = 0; i < service_size(); i++) {
1591 if (!this->service(i).IsInitialized()) return false;
1593 for (int i = 0; i < extension_size(); i++) {
1594 if (!this->extension(i).IsInitialized()) return false;
1596 if (has_options()) {
1597 if (!this->options().IsInitialized()) return false;
1602 void FileDescriptorProto::Swap(FileDescriptorProto* other) {
1603 if (other != this) {
1604 std::swap(name_, other->name_);
1605 std::swap(package_, other->package_);
1606 dependency_.Swap(&other->dependency_);
1607 public_dependency_.Swap(&other->public_dependency_);
1608 weak_dependency_.Swap(&other->weak_dependency_);
1609 message_type_.Swap(&other->message_type_);
1610 enum_type_.Swap(&other->enum_type_);
1611 service_.Swap(&other->service_);
1612 extension_.Swap(&other->extension_);
1613 std::swap(options_, other->options_);
1614 std::swap(source_code_info_, other->source_code_info_);
1615 std::swap(_has_bits_[0], other->_has_bits_[0]);
1616 _unknown_fields_.Swap(&other->_unknown_fields_);
1617 std::swap(_cached_size_, other->_cached_size_);
1621 ::google::protobuf::Metadata FileDescriptorProto::GetMetadata() const {
1622 protobuf_AssignDescriptorsOnce();
1623 ::google::protobuf::Metadata metadata;
1624 metadata.descriptor = FileDescriptorProto_descriptor_;
1625 metadata.reflection = FileDescriptorProto_reflection_;
1630 // ===================================================================
1633 const int DescriptorProto_ExtensionRange::kStartFieldNumber;
1634 const int DescriptorProto_ExtensionRange::kEndFieldNumber;
1637 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange()
1638 : ::google::protobuf::Message() {
1642 void DescriptorProto_ExtensionRange::InitAsDefaultInstance() {
1645 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from)
1646 : ::google::protobuf::Message() {
1651 void DescriptorProto_ExtensionRange::SharedCtor() {
1655 ::memset(_has_bits_, 0, sizeof(_has_bits_));
1658 DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() {
1662 void DescriptorProto_ExtensionRange::SharedDtor() {
1663 if (this != default_instance_) {
1667 void DescriptorProto_ExtensionRange::SetCachedSize(int size) const {
1668 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1669 _cached_size_ = size;
1670 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1672 const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange::descriptor() {
1673 protobuf_AssignDescriptorsOnce();
1674 return DescriptorProto_ExtensionRange_descriptor_;
1677 const DescriptorProto_ExtensionRange& DescriptorProto_ExtensionRange::default_instance() {
1678 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
1679 return *default_instance_;
1682 DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::default_instance_ = NULL;
1684 DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::New() const {
1685 return new DescriptorProto_ExtensionRange;
1688 void DescriptorProto_ExtensionRange::Clear() {
1689 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1693 ::memset(_has_bits_, 0, sizeof(_has_bits_));
1694 mutable_unknown_fields()->Clear();
1697 bool DescriptorProto_ExtensionRange::MergePartialFromCodedStream(
1698 ::google::protobuf::io::CodedInputStream* input) {
1699 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1700 ::google::protobuf::uint32 tag;
1701 while ((tag = input->ReadTag()) != 0) {
1702 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1703 // optional int32 start = 1;
1705 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1706 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1707 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1708 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1712 goto handle_uninterpreted;
1714 if (input->ExpectTag(16)) goto parse_end;
1718 // optional int32 end = 2;
1720 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1721 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1723 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1724 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1728 goto handle_uninterpreted;
1730 if (input->ExpectAtEnd()) return true;
1735 handle_uninterpreted:
1736 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1737 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1740 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
1741 input, tag, mutable_unknown_fields()));
1750 void DescriptorProto_ExtensionRange::SerializeWithCachedSizes(
1751 ::google::protobuf::io::CodedOutputStream* output) const {
1752 // optional int32 start = 1;
1754 ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->start(), output);
1757 // optional int32 end = 2;
1759 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), output);
1762 if (!unknown_fields().empty()) {
1763 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
1764 unknown_fields(), output);
1768 ::google::protobuf::uint8* DescriptorProto_ExtensionRange::SerializeWithCachedSizesToArray(
1769 ::google::protobuf::uint8* target) const {
1770 // optional int32 start = 1;
1772 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target);
1775 // optional int32 end = 2;
1777 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target);
1780 if (!unknown_fields().empty()) {
1781 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownFieldsToArray(
1782 unknown_fields(), target);
1787 int DescriptorProto_ExtensionRange::ByteSize() const {
1790 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1791 // optional int32 start = 1;
1794 ::google::protobuf::internal::WireFormatLite::Int32Size(
1798 // optional int32 end = 2;
1801 ::google::protobuf::internal::WireFormatLite::Int32Size(
1806 if (!unknown_fields().empty()) {
1808 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
1811 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1812 _cached_size_ = total_size;
1813 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1817 void DescriptorProto_ExtensionRange::MergeFrom(const ::google::protobuf::Message& from) {
1818 GOOGLE_CHECK_NE(&from, this);
1819 const DescriptorProto_ExtensionRange* source =
1820 ::google::protobuf::internal::dynamic_cast_if_available<const DescriptorProto_ExtensionRange*>(
1822 if (source == NULL) {
1823 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1829 void DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRange& from) {
1830 GOOGLE_CHECK_NE(&from, this);
1831 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1832 if (from.has_start()) {
1833 set_start(from.start());
1835 if (from.has_end()) {
1836 set_end(from.end());
1839 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1842 void DescriptorProto_ExtensionRange::CopyFrom(const ::google::protobuf::Message& from) {
1843 if (&from == this) return;
1848 void DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRange& from) {
1849 if (&from == this) return;
1854 bool DescriptorProto_ExtensionRange::IsInitialized() const {
1859 void DescriptorProto_ExtensionRange::Swap(DescriptorProto_ExtensionRange* other) {
1860 if (other != this) {
1861 std::swap(start_, other->start_);
1862 std::swap(end_, other->end_);
1863 std::swap(_has_bits_[0], other->_has_bits_[0]);
1864 _unknown_fields_.Swap(&other->_unknown_fields_);
1865 std::swap(_cached_size_, other->_cached_size_);
1869 ::google::protobuf::Metadata DescriptorProto_ExtensionRange::GetMetadata() const {
1870 protobuf_AssignDescriptorsOnce();
1871 ::google::protobuf::Metadata metadata;
1872 metadata.descriptor = DescriptorProto_ExtensionRange_descriptor_;
1873 metadata.reflection = DescriptorProto_ExtensionRange_reflection_;
1878 // -------------------------------------------------------------------
1881 const int DescriptorProto::kNameFieldNumber;
1882 const int DescriptorProto::kFieldFieldNumber;
1883 const int DescriptorProto::kExtensionFieldNumber;
1884 const int DescriptorProto::kNestedTypeFieldNumber;
1885 const int DescriptorProto::kEnumTypeFieldNumber;
1886 const int DescriptorProto::kExtensionRangeFieldNumber;
1887 const int DescriptorProto::kOptionsFieldNumber;
1890 DescriptorProto::DescriptorProto()
1891 : ::google::protobuf::Message() {
1895 void DescriptorProto::InitAsDefaultInstance() {
1896 options_ = const_cast< ::google::protobuf::MessageOptions*>(&::google::protobuf::MessageOptions::default_instance());
1899 DescriptorProto::DescriptorProto(const DescriptorProto& from)
1900 : ::google::protobuf::Message() {
1905 void DescriptorProto::SharedCtor() {
1907 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
1909 ::memset(_has_bits_, 0, sizeof(_has_bits_));
1912 DescriptorProto::~DescriptorProto() {
1916 void DescriptorProto::SharedDtor() {
1917 if (name_ != &::google::protobuf::internal::GetEmptyString()) {
1920 if (this != default_instance_) {
1925 void DescriptorProto::SetCachedSize(int size) const {
1926 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1927 _cached_size_ = size;
1928 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1930 const ::google::protobuf::Descriptor* DescriptorProto::descriptor() {
1931 protobuf_AssignDescriptorsOnce();
1932 return DescriptorProto_descriptor_;
1935 const DescriptorProto& DescriptorProto::default_instance() {
1936 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
1937 return *default_instance_;
1940 DescriptorProto* DescriptorProto::default_instance_ = NULL;
1942 DescriptorProto* DescriptorProto::New() const {
1943 return new DescriptorProto;
1946 void DescriptorProto::Clear() {
1947 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1949 if (name_ != &::google::protobuf::internal::GetEmptyString()) {
1953 if (has_options()) {
1954 if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear();
1959 nested_type_.Clear();
1961 extension_range_.Clear();
1962 ::memset(_has_bits_, 0, sizeof(_has_bits_));
1963 mutable_unknown_fields()->Clear();
1966 bool DescriptorProto::MergePartialFromCodedStream(
1967 ::google::protobuf::io::CodedInputStream* input) {
1968 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1969 ::google::protobuf::uint32 tag;
1970 while ((tag = input->ReadTag()) != 0) {
1971 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1972 // optional string name = 1;
1974 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1975 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1976 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1977 input, this->mutable_name()));
1978 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1979 this->name().data(), this->name().length(),
1980 ::google::protobuf::internal::WireFormat::PARSE);
1982 goto handle_uninterpreted;
1984 if (input->ExpectTag(18)) goto parse_field;
1988 // repeated .google.protobuf.FieldDescriptorProto field = 2;
1990 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1991 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1993 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1994 input, add_field()));
1996 goto handle_uninterpreted;
1998 if (input->ExpectTag(18)) goto parse_field;
1999 if (input->ExpectTag(26)) goto parse_nested_type;
2003 // repeated .google.protobuf.DescriptorProto nested_type = 3;
2005 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2006 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2008 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2009 input, add_nested_type()));
2011 goto handle_uninterpreted;
2013 if (input->ExpectTag(26)) goto parse_nested_type;
2014 if (input->ExpectTag(34)) goto parse_enum_type;
2018 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
2020 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2021 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2023 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2024 input, add_enum_type()));
2026 goto handle_uninterpreted;
2028 if (input->ExpectTag(34)) goto parse_enum_type;
2029 if (input->ExpectTag(42)) goto parse_extension_range;
2033 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
2035 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2036 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2037 parse_extension_range:
2038 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2039 input, add_extension_range()));
2041 goto handle_uninterpreted;
2043 if (input->ExpectTag(42)) goto parse_extension_range;
2044 if (input->ExpectTag(50)) goto parse_extension;
2048 // repeated .google.protobuf.FieldDescriptorProto extension = 6;
2050 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2051 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2053 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2054 input, add_extension()));
2056 goto handle_uninterpreted;
2058 if (input->ExpectTag(50)) goto parse_extension;
2059 if (input->ExpectTag(58)) goto parse_options;
2063 // optional .google.protobuf.MessageOptions options = 7;
2065 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2066 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2068 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2069 input, mutable_options()));
2071 goto handle_uninterpreted;
2073 if (input->ExpectAtEnd()) return true;
2078 handle_uninterpreted:
2079 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2080 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2083 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
2084 input, tag, mutable_unknown_fields()));
2093 void DescriptorProto::SerializeWithCachedSizes(
2094 ::google::protobuf::io::CodedOutputStream* output) const {
2095 // optional string name = 1;
2097 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2098 this->name().data(), this->name().length(),
2099 ::google::protobuf::internal::WireFormat::SERIALIZE);
2100 ::google::protobuf::internal::WireFormatLite::WriteString(
2101 1, this->name(), output);
2104 // repeated .google.protobuf.FieldDescriptorProto field = 2;
2105 for (int i = 0; i < this->field_size(); i++) {
2106 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2107 2, this->field(i), output);
2110 // repeated .google.protobuf.DescriptorProto nested_type = 3;
2111 for (int i = 0; i < this->nested_type_size(); i++) {
2112 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2113 3, this->nested_type(i), output);
2116 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
2117 for (int i = 0; i < this->enum_type_size(); i++) {
2118 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2119 4, this->enum_type(i), output);
2122 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
2123 for (int i = 0; i < this->extension_range_size(); i++) {
2124 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2125 5, this->extension_range(i), output);
2128 // repeated .google.protobuf.FieldDescriptorProto extension = 6;
2129 for (int i = 0; i < this->extension_size(); i++) {
2130 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2131 6, this->extension(i), output);
2134 // optional .google.protobuf.MessageOptions options = 7;
2135 if (has_options()) {
2136 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2137 7, this->options(), output);
2140 if (!unknown_fields().empty()) {
2141 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
2142 unknown_fields(), output);
2146 ::google::protobuf::uint8* DescriptorProto::SerializeWithCachedSizesToArray(
2147 ::google::protobuf::uint8* target) const {
2148 // optional string name = 1;
2150 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2151 this->name().data(), this->name().length(),
2152 ::google::protobuf::internal::WireFormat::SERIALIZE);
2154 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2155 1, this->name(), target);
2158 // repeated .google.protobuf.FieldDescriptorProto field = 2;
2159 for (int i = 0; i < this->field_size(); i++) {
2160 target = ::google::protobuf::internal::WireFormatLite::
2161 WriteMessageNoVirtualToArray(
2162 2, this->field(i), target);
2165 // repeated .google.protobuf.DescriptorProto nested_type = 3;
2166 for (int i = 0; i < this->nested_type_size(); i++) {
2167 target = ::google::protobuf::internal::WireFormatLite::
2168 WriteMessageNoVirtualToArray(
2169 3, this->nested_type(i), target);
2172 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
2173 for (int i = 0; i < this->enum_type_size(); i++) {
2174 target = ::google::protobuf::internal::WireFormatLite::
2175 WriteMessageNoVirtualToArray(
2176 4, this->enum_type(i), target);
2179 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
2180 for (int i = 0; i < this->extension_range_size(); i++) {
2181 target = ::google::protobuf::internal::WireFormatLite::
2182 WriteMessageNoVirtualToArray(
2183 5, this->extension_range(i), target);
2186 // repeated .google.protobuf.FieldDescriptorProto extension = 6;
2187 for (int i = 0; i < this->extension_size(); i++) {
2188 target = ::google::protobuf::internal::WireFormatLite::
2189 WriteMessageNoVirtualToArray(
2190 6, this->extension(i), target);
2193 // optional .google.protobuf.MessageOptions options = 7;
2194 if (has_options()) {
2195 target = ::google::protobuf::internal::WireFormatLite::
2196 WriteMessageNoVirtualToArray(
2197 7, this->options(), target);
2200 if (!unknown_fields().empty()) {
2201 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownFieldsToArray(
2202 unknown_fields(), target);
2207 int DescriptorProto::ByteSize() const {
2210 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2211 // optional string name = 1;
2214 ::google::protobuf::internal::WireFormatLite::StringSize(
2218 // optional .google.protobuf.MessageOptions options = 7;
2219 if (has_options()) {
2221 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2226 // repeated .google.protobuf.FieldDescriptorProto field = 2;
2227 total_size += 1 * this->field_size();
2228 for (int i = 0; i < this->field_size(); i++) {
2230 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2234 // repeated .google.protobuf.FieldDescriptorProto extension = 6;
2235 total_size += 1 * this->extension_size();
2236 for (int i = 0; i < this->extension_size(); i++) {
2238 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2239 this->extension(i));
2242 // repeated .google.protobuf.DescriptorProto nested_type = 3;
2243 total_size += 1 * this->nested_type_size();
2244 for (int i = 0; i < this->nested_type_size(); i++) {
2246 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2247 this->nested_type(i));
2250 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
2251 total_size += 1 * this->enum_type_size();
2252 for (int i = 0; i < this->enum_type_size(); i++) {
2254 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2255 this->enum_type(i));
2258 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
2259 total_size += 1 * this->extension_range_size();
2260 for (int i = 0; i < this->extension_range_size(); i++) {
2262 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2263 this->extension_range(i));
2266 if (!unknown_fields().empty()) {
2268 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
2271 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2272 _cached_size_ = total_size;
2273 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2277 void DescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
2278 GOOGLE_CHECK_NE(&from, this);
2279 const DescriptorProto* source =
2280 ::google::protobuf::internal::dynamic_cast_if_available<const DescriptorProto*>(
2282 if (source == NULL) {
2283 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2289 void DescriptorProto::MergeFrom(const DescriptorProto& from) {
2290 GOOGLE_CHECK_NE(&from, this);
2291 field_.MergeFrom(from.field_);
2292 extension_.MergeFrom(from.extension_);
2293 nested_type_.MergeFrom(from.nested_type_);
2294 enum_type_.MergeFrom(from.enum_type_);
2295 extension_range_.MergeFrom(from.extension_range_);
2296 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2297 if (from.has_name()) {
2298 set_name(from.name());
2300 if (from.has_options()) {
2301 mutable_options()->::google::protobuf::MessageOptions::MergeFrom(from.options());
2304 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2307 void DescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
2308 if (&from == this) return;
2313 void DescriptorProto::CopyFrom(const DescriptorProto& from) {
2314 if (&from == this) return;
2319 bool DescriptorProto::IsInitialized() const {
2321 for (int i = 0; i < field_size(); i++) {
2322 if (!this->field(i).IsInitialized()) return false;
2324 for (int i = 0; i < extension_size(); i++) {
2325 if (!this->extension(i).IsInitialized()) return false;
2327 for (int i = 0; i < nested_type_size(); i++) {
2328 if (!this->nested_type(i).IsInitialized()) return false;
2330 for (int i = 0; i < enum_type_size(); i++) {
2331 if (!this->enum_type(i).IsInitialized()) return false;
2333 if (has_options()) {
2334 if (!this->options().IsInitialized()) return false;
2339 void DescriptorProto::Swap(DescriptorProto* other) {
2340 if (other != this) {
2341 std::swap(name_, other->name_);
2342 field_.Swap(&other->field_);
2343 extension_.Swap(&other->extension_);
2344 nested_type_.Swap(&other->nested_type_);
2345 enum_type_.Swap(&other->enum_type_);
2346 extension_range_.Swap(&other->extension_range_);
2347 std::swap(options_, other->options_);
2348 std::swap(_has_bits_[0], other->_has_bits_[0]);
2349 _unknown_fields_.Swap(&other->_unknown_fields_);
2350 std::swap(_cached_size_, other->_cached_size_);
2354 ::google::protobuf::Metadata DescriptorProto::GetMetadata() const {
2355 protobuf_AssignDescriptorsOnce();
2356 ::google::protobuf::Metadata metadata;
2357 metadata.descriptor = DescriptorProto_descriptor_;
2358 metadata.reflection = DescriptorProto_reflection_;
2363 // ===================================================================
2365 const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor() {
2366 protobuf_AssignDescriptorsOnce();
2367 return FieldDescriptorProto_Type_descriptor_;
2369 bool FieldDescriptorProto_Type_IsValid(int value) {
2396 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_DOUBLE;
2397 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FLOAT;
2398 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT64;
2399 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT64;
2400 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT32;
2401 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED64;
2402 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED32;
2403 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BOOL;
2404 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_STRING;
2405 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_GROUP;
2406 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_MESSAGE;
2407 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BYTES;
2408 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT32;
2409 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_ENUM;
2410 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED32;
2411 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED64;
2412 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT32;
2413 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT64;
2414 const FieldDescriptorProto_Type FieldDescriptorProto::Type_MIN;
2415 const FieldDescriptorProto_Type FieldDescriptorProto::Type_MAX;
2416 const int FieldDescriptorProto::Type_ARRAYSIZE;
2418 const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor() {
2419 protobuf_AssignDescriptorsOnce();
2420 return FieldDescriptorProto_Label_descriptor_;
2422 bool FieldDescriptorProto_Label_IsValid(int value) {
2434 const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_OPTIONAL;
2435 const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REQUIRED;
2436 const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REPEATED;
2437 const FieldDescriptorProto_Label FieldDescriptorProto::Label_MIN;
2438 const FieldDescriptorProto_Label FieldDescriptorProto::Label_MAX;
2439 const int FieldDescriptorProto::Label_ARRAYSIZE;
2442 const int FieldDescriptorProto::kNameFieldNumber;
2443 const int FieldDescriptorProto::kNumberFieldNumber;
2444 const int FieldDescriptorProto::kLabelFieldNumber;
2445 const int FieldDescriptorProto::kTypeFieldNumber;
2446 const int FieldDescriptorProto::kTypeNameFieldNumber;
2447 const int FieldDescriptorProto::kExtendeeFieldNumber;
2448 const int FieldDescriptorProto::kDefaultValueFieldNumber;
2449 const int FieldDescriptorProto::kOptionsFieldNumber;
2452 FieldDescriptorProto::FieldDescriptorProto()
2453 : ::google::protobuf::Message() {
2457 void FieldDescriptorProto::InitAsDefaultInstance() {
2458 options_ = const_cast< ::google::protobuf::FieldOptions*>(&::google::protobuf::FieldOptions::default_instance());
2461 FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from)
2462 : ::google::protobuf::Message() {
2467 void FieldDescriptorProto::SharedCtor() {
2469 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
2473 type_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
2474 extendee_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
2475 default_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
2477 ::memset(_has_bits_, 0, sizeof(_has_bits_));
2480 FieldDescriptorProto::~FieldDescriptorProto() {
2484 void FieldDescriptorProto::SharedDtor() {
2485 if (name_ != &::google::protobuf::internal::GetEmptyString()) {
2488 if (type_name_ != &::google::protobuf::internal::GetEmptyString()) {
2491 if (extendee_ != &::google::protobuf::internal::GetEmptyString()) {
2494 if (default_value_ != &::google::protobuf::internal::GetEmptyString()) {
2495 delete default_value_;
2497 if (this != default_instance_) {
2502 void FieldDescriptorProto::SetCachedSize(int size) const {
2503 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2504 _cached_size_ = size;
2505 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2507 const ::google::protobuf::Descriptor* FieldDescriptorProto::descriptor() {
2508 protobuf_AssignDescriptorsOnce();
2509 return FieldDescriptorProto_descriptor_;
2512 const FieldDescriptorProto& FieldDescriptorProto::default_instance() {
2513 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2514 return *default_instance_;
2517 FieldDescriptorProto* FieldDescriptorProto::default_instance_ = NULL;
2519 FieldDescriptorProto* FieldDescriptorProto::New() const {
2520 return new FieldDescriptorProto;
2523 void FieldDescriptorProto::Clear() {
2524 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2526 if (name_ != &::google::protobuf::internal::GetEmptyString()) {
2533 if (has_type_name()) {
2534 if (type_name_ != &::google::protobuf::internal::GetEmptyString()) {
2535 type_name_->clear();
2538 if (has_extendee()) {
2539 if (extendee_ != &::google::protobuf::internal::GetEmptyString()) {
2543 if (has_default_value()) {
2544 if (default_value_ != &::google::protobuf::internal::GetEmptyString()) {
2545 default_value_->clear();
2548 if (has_options()) {
2549 if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear();
2552 ::memset(_has_bits_, 0, sizeof(_has_bits_));
2553 mutable_unknown_fields()->Clear();
2556 bool FieldDescriptorProto::MergePartialFromCodedStream(
2557 ::google::protobuf::io::CodedInputStream* input) {
2558 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
2559 ::google::protobuf::uint32 tag;
2560 while ((tag = input->ReadTag()) != 0) {
2561 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2562 // optional string name = 1;
2564 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2565 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2566 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2567 input, this->mutable_name()));
2568 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2569 this->name().data(), this->name().length(),
2570 ::google::protobuf::internal::WireFormat::PARSE);
2572 goto handle_uninterpreted;
2574 if (input->ExpectTag(18)) goto parse_extendee;
2578 // optional string extendee = 2;
2580 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2581 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2583 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2584 input, this->mutable_extendee()));
2585 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2586 this->extendee().data(), this->extendee().length(),
2587 ::google::protobuf::internal::WireFormat::PARSE);
2589 goto handle_uninterpreted;
2591 if (input->ExpectTag(24)) goto parse_number;
2595 // optional int32 number = 3;
2597 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2598 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
2600 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2601 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2605 goto handle_uninterpreted;
2607 if (input->ExpectTag(32)) goto parse_label;
2611 // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
2613 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2614 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
2617 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2618 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2620 if (::google::protobuf::FieldDescriptorProto_Label_IsValid(value)) {
2621 set_label(static_cast< ::google::protobuf::FieldDescriptorProto_Label >(value));
2623 mutable_unknown_fields()->AddVarint(4, value);
2626 goto handle_uninterpreted;
2628 if (input->ExpectTag(40)) goto parse_type;
2632 // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
2634 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2635 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
2638 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2639 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2641 if (::google::protobuf::FieldDescriptorProto_Type_IsValid(value)) {
2642 set_type(static_cast< ::google::protobuf::FieldDescriptorProto_Type >(value));
2644 mutable_unknown_fields()->AddVarint(5, value);
2647 goto handle_uninterpreted;
2649 if (input->ExpectTag(50)) goto parse_type_name;
2653 // optional string type_name = 6;
2655 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2656 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2658 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2659 input, this->mutable_type_name()));
2660 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2661 this->type_name().data(), this->type_name().length(),
2662 ::google::protobuf::internal::WireFormat::PARSE);
2664 goto handle_uninterpreted;
2666 if (input->ExpectTag(58)) goto parse_default_value;
2670 // optional string default_value = 7;
2672 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2673 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2674 parse_default_value:
2675 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2676 input, this->mutable_default_value()));
2677 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2678 this->default_value().data(), this->default_value().length(),
2679 ::google::protobuf::internal::WireFormat::PARSE);
2681 goto handle_uninterpreted;
2683 if (input->ExpectTag(66)) goto parse_options;
2687 // optional .google.protobuf.FieldOptions options = 8;
2689 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2690 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2692 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2693 input, mutable_options()));
2695 goto handle_uninterpreted;
2697 if (input->ExpectAtEnd()) return true;
2702 handle_uninterpreted:
2703 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2704 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2707 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
2708 input, tag, mutable_unknown_fields()));
2717 void FieldDescriptorProto::SerializeWithCachedSizes(
2718 ::google::protobuf::io::CodedOutputStream* output) const {
2719 // optional string name = 1;
2721 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2722 this->name().data(), this->name().length(),
2723 ::google::protobuf::internal::WireFormat::SERIALIZE);
2724 ::google::protobuf::internal::WireFormatLite::WriteString(
2725 1, this->name(), output);
2728 // optional string extendee = 2;
2729 if (has_extendee()) {
2730 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2731 this->extendee().data(), this->extendee().length(),
2732 ::google::protobuf::internal::WireFormat::SERIALIZE);
2733 ::google::protobuf::internal::WireFormatLite::WriteString(
2734 2, this->extendee(), output);
2737 // optional int32 number = 3;
2739 ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->number(), output);
2742 // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
2744 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2745 4, this->label(), output);
2748 // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
2750 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2751 5, this->type(), output);
2754 // optional string type_name = 6;
2755 if (has_type_name()) {
2756 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2757 this->type_name().data(), this->type_name().length(),
2758 ::google::protobuf::internal::WireFormat::SERIALIZE);
2759 ::google::protobuf::internal::WireFormatLite::WriteString(
2760 6, this->type_name(), output);
2763 // optional string default_value = 7;
2764 if (has_default_value()) {
2765 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2766 this->default_value().data(), this->default_value().length(),
2767 ::google::protobuf::internal::WireFormat::SERIALIZE);
2768 ::google::protobuf::internal::WireFormatLite::WriteString(
2769 7, this->default_value(), output);
2772 // optional .google.protobuf.FieldOptions options = 8;
2773 if (has_options()) {
2774 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2775 8, this->options(), output);
2778 if (!unknown_fields().empty()) {
2779 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
2780 unknown_fields(), output);
2784 ::google::protobuf::uint8* FieldDescriptorProto::SerializeWithCachedSizesToArray(
2785 ::google::protobuf::uint8* target) const {
2786 // optional string name = 1;
2788 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2789 this->name().data(), this->name().length(),
2790 ::google::protobuf::internal::WireFormat::SERIALIZE);
2792 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2793 1, this->name(), target);
2796 // optional string extendee = 2;
2797 if (has_extendee()) {
2798 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2799 this->extendee().data(), this->extendee().length(),
2800 ::google::protobuf::internal::WireFormat::SERIALIZE);
2802 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2803 2, this->extendee(), target);
2806 // optional int32 number = 3;
2808 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->number(), target);
2811 // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
2813 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2814 4, this->label(), target);
2817 // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
2819 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2820 5, this->type(), target);
2823 // optional string type_name = 6;
2824 if (has_type_name()) {
2825 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2826 this->type_name().data(), this->type_name().length(),
2827 ::google::protobuf::internal::WireFormat::SERIALIZE);
2829 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2830 6, this->type_name(), target);
2833 // optional string default_value = 7;
2834 if (has_default_value()) {
2835 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2836 this->default_value().data(), this->default_value().length(),
2837 ::google::protobuf::internal::WireFormat::SERIALIZE);
2839 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2840 7, this->default_value(), target);
2843 // optional .google.protobuf.FieldOptions options = 8;
2844 if (has_options()) {
2845 target = ::google::protobuf::internal::WireFormatLite::
2846 WriteMessageNoVirtualToArray(
2847 8, this->options(), target);
2850 if (!unknown_fields().empty()) {
2851 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownFieldsToArray(
2852 unknown_fields(), target);
2857 int FieldDescriptorProto::ByteSize() const {
2860 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2861 // optional string name = 1;
2864 ::google::protobuf::internal::WireFormatLite::StringSize(
2868 // optional int32 number = 3;
2871 ::google::protobuf::internal::WireFormatLite::Int32Size(
2875 // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
2878 ::google::protobuf::internal::WireFormatLite::EnumSize(this->label());
2881 // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
2884 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
2887 // optional string type_name = 6;
2888 if (has_type_name()) {
2890 ::google::protobuf::internal::WireFormatLite::StringSize(
2894 // optional string extendee = 2;
2895 if (has_extendee()) {
2897 ::google::protobuf::internal::WireFormatLite::StringSize(
2901 // optional string default_value = 7;
2902 if (has_default_value()) {
2904 ::google::protobuf::internal::WireFormatLite::StringSize(
2905 this->default_value());
2908 // optional .google.protobuf.FieldOptions options = 8;
2909 if (has_options()) {
2911 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2916 if (!unknown_fields().empty()) {
2918 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
2921 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2922 _cached_size_ = total_size;
2923 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2927 void FieldDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
2928 GOOGLE_CHECK_NE(&from, this);
2929 const FieldDescriptorProto* source =
2930 ::google::protobuf::internal::dynamic_cast_if_available<const FieldDescriptorProto*>(
2932 if (source == NULL) {
2933 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2939 void FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) {
2940 GOOGLE_CHECK_NE(&from, this);
2941 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2942 if (from.has_name()) {
2943 set_name(from.name());
2945 if (from.has_number()) {
2946 set_number(from.number());
2948 if (from.has_label()) {
2949 set_label(from.label());
2951 if (from.has_type()) {
2952 set_type(from.type());
2954 if (from.has_type_name()) {
2955 set_type_name(from.type_name());
2957 if (from.has_extendee()) {
2958 set_extendee(from.extendee());
2960 if (from.has_default_value()) {
2961 set_default_value(from.default_value());
2963 if (from.has_options()) {
2964 mutable_options()->::google::protobuf::FieldOptions::MergeFrom(from.options());
2967 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2970 void FieldDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
2971 if (&from == this) return;
2976 void FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) {
2977 if (&from == this) return;
2982 bool FieldDescriptorProto::IsInitialized() const {
2984 if (has_options()) {
2985 if (!this->options().IsInitialized()) return false;
2990 void FieldDescriptorProto::Swap(FieldDescriptorProto* other) {
2991 if (other != this) {
2992 std::swap(name_, other->name_);
2993 std::swap(number_, other->number_);
2994 std::swap(label_, other->label_);
2995 std::swap(type_, other->type_);
2996 std::swap(type_name_, other->type_name_);
2997 std::swap(extendee_, other->extendee_);
2998 std::swap(default_value_, other->default_value_);
2999 std::swap(options_, other->options_);
3000 std::swap(_has_bits_[0], other->_has_bits_[0]);
3001 _unknown_fields_.Swap(&other->_unknown_fields_);
3002 std::swap(_cached_size_, other->_cached_size_);
3006 ::google::protobuf::Metadata FieldDescriptorProto::GetMetadata() const {
3007 protobuf_AssignDescriptorsOnce();
3008 ::google::protobuf::Metadata metadata;
3009 metadata.descriptor = FieldDescriptorProto_descriptor_;
3010 metadata.reflection = FieldDescriptorProto_reflection_;
3015 // ===================================================================
3018 const int EnumDescriptorProto::kNameFieldNumber;
3019 const int EnumDescriptorProto::kValueFieldNumber;
3020 const int EnumDescriptorProto::kOptionsFieldNumber;
3023 EnumDescriptorProto::EnumDescriptorProto()
3024 : ::google::protobuf::Message() {
3028 void EnumDescriptorProto::InitAsDefaultInstance() {
3029 options_ = const_cast< ::google::protobuf::EnumOptions*>(&::google::protobuf::EnumOptions::default_instance());
3032 EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from)
3033 : ::google::protobuf::Message() {
3038 void EnumDescriptorProto::SharedCtor() {
3040 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
3042 ::memset(_has_bits_, 0, sizeof(_has_bits_));
3045 EnumDescriptorProto::~EnumDescriptorProto() {
3049 void EnumDescriptorProto::SharedDtor() {
3050 if (name_ != &::google::protobuf::internal::GetEmptyString()) {
3053 if (this != default_instance_) {
3058 void EnumDescriptorProto::SetCachedSize(int size) const {
3059 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3060 _cached_size_ = size;
3061 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3063 const ::google::protobuf::Descriptor* EnumDescriptorProto::descriptor() {
3064 protobuf_AssignDescriptorsOnce();
3065 return EnumDescriptorProto_descriptor_;
3068 const EnumDescriptorProto& EnumDescriptorProto::default_instance() {
3069 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
3070 return *default_instance_;
3073 EnumDescriptorProto* EnumDescriptorProto::default_instance_ = NULL;
3075 EnumDescriptorProto* EnumDescriptorProto::New() const {
3076 return new EnumDescriptorProto;
3079 void EnumDescriptorProto::Clear() {
3080 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3082 if (name_ != &::google::protobuf::internal::GetEmptyString()) {
3086 if (has_options()) {
3087 if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear();
3091 ::memset(_has_bits_, 0, sizeof(_has_bits_));
3092 mutable_unknown_fields()->Clear();
3095 bool EnumDescriptorProto::MergePartialFromCodedStream(
3096 ::google::protobuf::io::CodedInputStream* input) {
3097 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
3098 ::google::protobuf::uint32 tag;
3099 while ((tag = input->ReadTag()) != 0) {
3100 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3101 // optional string name = 1;
3103 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3104 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
3105 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3106 input, this->mutable_name()));
3107 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3108 this->name().data(), this->name().length(),
3109 ::google::protobuf::internal::WireFormat::PARSE);
3111 goto handle_uninterpreted;
3113 if (input->ExpectTag(18)) goto parse_value;
3117 // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
3119 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3120 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
3122 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3123 input, add_value()));
3125 goto handle_uninterpreted;
3127 if (input->ExpectTag(18)) goto parse_value;
3128 if (input->ExpectTag(26)) goto parse_options;
3132 // optional .google.protobuf.EnumOptions options = 3;
3134 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3135 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
3137 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3138 input, mutable_options()));
3140 goto handle_uninterpreted;
3142 if (input->ExpectAtEnd()) return true;
3147 handle_uninterpreted:
3148 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3149 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3152 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
3153 input, tag, mutable_unknown_fields()));
3162 void EnumDescriptorProto::SerializeWithCachedSizes(
3163 ::google::protobuf::io::CodedOutputStream* output) const {
3164 // optional string name = 1;
3166 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3167 this->name().data(), this->name().length(),
3168 ::google::protobuf::internal::WireFormat::SERIALIZE);
3169 ::google::protobuf::internal::WireFormatLite::WriteString(
3170 1, this->name(), output);
3173 // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
3174 for (int i = 0; i < this->value_size(); i++) {
3175 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3176 2, this->value(i), output);
3179 // optional .google.protobuf.EnumOptions options = 3;
3180 if (has_options()) {
3181 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3182 3, this->options(), output);
3185 if (!unknown_fields().empty()) {
3186 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
3187 unknown_fields(), output);
3191 ::google::protobuf::uint8* EnumDescriptorProto::SerializeWithCachedSizesToArray(
3192 ::google::protobuf::uint8* target) const {
3193 // optional string name = 1;
3195 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3196 this->name().data(), this->name().length(),
3197 ::google::protobuf::internal::WireFormat::SERIALIZE);
3199 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3200 1, this->name(), target);
3203 // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
3204 for (int i = 0; i < this->value_size(); i++) {
3205 target = ::google::protobuf::internal::WireFormatLite::
3206 WriteMessageNoVirtualToArray(
3207 2, this->value(i), target);
3210 // optional .google.protobuf.EnumOptions options = 3;
3211 if (has_options()) {
3212 target = ::google::protobuf::internal::WireFormatLite::
3213 WriteMessageNoVirtualToArray(
3214 3, this->options(), target);
3217 if (!unknown_fields().empty()) {
3218 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownFieldsToArray(
3219 unknown_fields(), target);
3224 int EnumDescriptorProto::ByteSize() const {
3227 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3228 // optional string name = 1;
3231 ::google::protobuf::internal::WireFormatLite::StringSize(
3235 // optional .google.protobuf.EnumOptions options = 3;
3236 if (has_options()) {
3238 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3243 // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
3244 total_size += 1 * this->value_size();
3245 for (int i = 0; i < this->value_size(); i++) {
3247 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3251 if (!unknown_fields().empty()) {
3253 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
3256 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3257 _cached_size_ = total_size;
3258 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3262 void EnumDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
3263 GOOGLE_CHECK_NE(&from, this);
3264 const EnumDescriptorProto* source =
3265 ::google::protobuf::internal::dynamic_cast_if_available<const EnumDescriptorProto*>(
3267 if (source == NULL) {
3268 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3274 void EnumDescriptorProto::MergeFrom(const EnumDescriptorProto& from) {
3275 GOOGLE_CHECK_NE(&from, this);
3276 value_.MergeFrom(from.value_);
3277 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3278 if (from.has_name()) {
3279 set_name(from.name());
3281 if (from.has_options()) {
3282 mutable_options()->::google::protobuf::EnumOptions::MergeFrom(from.options());
3285 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3288 void EnumDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
3289 if (&from == this) return;
3294 void EnumDescriptorProto::CopyFrom(const EnumDescriptorProto& from) {
3295 if (&from == this) return;
3300 bool EnumDescriptorProto::IsInitialized() const {
3302 for (int i = 0; i < value_size(); i++) {
3303 if (!this->value(i).IsInitialized()) return false;
3305 if (has_options()) {
3306 if (!this->options().IsInitialized()) return false;
3311 void EnumDescriptorProto::Swap(EnumDescriptorProto* other) {
3312 if (other != this) {
3313 std::swap(name_, other->name_);
3314 value_.Swap(&other->value_);
3315 std::swap(options_, other->options_);
3316 std::swap(_has_bits_[0], other->_has_bits_[0]);
3317 _unknown_fields_.Swap(&other->_unknown_fields_);
3318 std::swap(_cached_size_, other->_cached_size_);
3322 ::google::protobuf::Metadata EnumDescriptorProto::GetMetadata() const {
3323 protobuf_AssignDescriptorsOnce();
3324 ::google::protobuf::Metadata metadata;
3325 metadata.descriptor = EnumDescriptorProto_descriptor_;
3326 metadata.reflection = EnumDescriptorProto_reflection_;
3331 // ===================================================================
3334 const int EnumValueDescriptorProto::kNameFieldNumber;
3335 const int EnumValueDescriptorProto::kNumberFieldNumber;
3336 const int EnumValueDescriptorProto::kOptionsFieldNumber;
3339 EnumValueDescriptorProto::EnumValueDescriptorProto()
3340 : ::google::protobuf::Message() {
3344 void EnumValueDescriptorProto::InitAsDefaultInstance() {
3345 options_ = const_cast< ::google::protobuf::EnumValueOptions*>(&::google::protobuf::EnumValueOptions::default_instance());
3348 EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProto& from)
3349 : ::google::protobuf::Message() {
3354 void EnumValueDescriptorProto::SharedCtor() {
3356 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
3359 ::memset(_has_bits_, 0, sizeof(_has_bits_));
3362 EnumValueDescriptorProto::~EnumValueDescriptorProto() {
3366 void EnumValueDescriptorProto::SharedDtor() {
3367 if (name_ != &::google::protobuf::internal::GetEmptyString()) {
3370 if (this != default_instance_) {
3375 void EnumValueDescriptorProto::SetCachedSize(int size) const {
3376 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3377 _cached_size_ = size;
3378 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3380 const ::google::protobuf::Descriptor* EnumValueDescriptorProto::descriptor() {
3381 protobuf_AssignDescriptorsOnce();
3382 return EnumValueDescriptorProto_descriptor_;
3385 const EnumValueDescriptorProto& EnumValueDescriptorProto::default_instance() {
3386 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
3387 return *default_instance_;
3390 EnumValueDescriptorProto* EnumValueDescriptorProto::default_instance_ = NULL;
3392 EnumValueDescriptorProto* EnumValueDescriptorProto::New() const {
3393 return new EnumValueDescriptorProto;
3396 void EnumValueDescriptorProto::Clear() {
3397 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3399 if (name_ != &::google::protobuf::internal::GetEmptyString()) {
3404 if (has_options()) {
3405 if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear();
3408 ::memset(_has_bits_, 0, sizeof(_has_bits_));
3409 mutable_unknown_fields()->Clear();
3412 bool EnumValueDescriptorProto::MergePartialFromCodedStream(
3413 ::google::protobuf::io::CodedInputStream* input) {
3414 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
3415 ::google::protobuf::uint32 tag;
3416 while ((tag = input->ReadTag()) != 0) {
3417 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3418 // optional string name = 1;
3420 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3421 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
3422 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3423 input, this->mutable_name()));
3424 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3425 this->name().data(), this->name().length(),
3426 ::google::protobuf::internal::WireFormat::PARSE);
3428 goto handle_uninterpreted;
3430 if (input->ExpectTag(16)) goto parse_number;
3434 // optional int32 number = 2;
3436 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3437 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
3439 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3440 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3444 goto handle_uninterpreted;
3446 if (input->ExpectTag(26)) goto parse_options;
3450 // optional .google.protobuf.EnumValueOptions options = 3;
3452 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3453 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
3455 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3456 input, mutable_options()));
3458 goto handle_uninterpreted;
3460 if (input->ExpectAtEnd()) return true;
3465 handle_uninterpreted:
3466 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3467 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3470 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
3471 input, tag, mutable_unknown_fields()));
3480 void EnumValueDescriptorProto::SerializeWithCachedSizes(
3481 ::google::protobuf::io::CodedOutputStream* output) const {
3482 // optional string name = 1;
3484 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3485 this->name().data(), this->name().length(),
3486 ::google::protobuf::internal::WireFormat::SERIALIZE);
3487 ::google::protobuf::internal::WireFormatLite::WriteString(
3488 1, this->name(), output);
3491 // optional int32 number = 2;
3493 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->number(), output);
3496 // optional .google.protobuf.EnumValueOptions options = 3;
3497 if (has_options()) {
3498 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3499 3, this->options(), output);
3502 if (!unknown_fields().empty()) {
3503 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
3504 unknown_fields(), output);
3508 ::google::protobuf::uint8* EnumValueDescriptorProto::SerializeWithCachedSizesToArray(
3509 ::google::protobuf::uint8* target) const {
3510 // optional string name = 1;
3512 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3513 this->name().data(), this->name().length(),
3514 ::google::protobuf::internal::WireFormat::SERIALIZE);
3516 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3517 1, this->name(), target);
3520 // optional int32 number = 2;
3522 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->number(), target);
3525 // optional .google.protobuf.EnumValueOptions options = 3;
3526 if (has_options()) {
3527 target = ::google::protobuf::internal::WireFormatLite::
3528 WriteMessageNoVirtualToArray(
3529 3, this->options(), target);
3532 if (!unknown_fields().empty()) {
3533 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownFieldsToArray(
3534 unknown_fields(), target);
3539 int EnumValueDescriptorProto::ByteSize() const {
3542 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3543 // optional string name = 1;
3546 ::google::protobuf::internal::WireFormatLite::StringSize(
3550 // optional int32 number = 2;
3553 ::google::protobuf::internal::WireFormatLite::Int32Size(
3557 // optional .google.protobuf.EnumValueOptions options = 3;
3558 if (has_options()) {
3560 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3565 if (!unknown_fields().empty()) {
3567 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
3570 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3571 _cached_size_ = total_size;
3572 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3576 void EnumValueDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
3577 GOOGLE_CHECK_NE(&from, this);
3578 const EnumValueDescriptorProto* source =
3579 ::google::protobuf::internal::dynamic_cast_if_available<const EnumValueDescriptorProto*>(
3581 if (source == NULL) {
3582 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3588 void EnumValueDescriptorProto::MergeFrom(const EnumValueDescriptorProto& from) {
3589 GOOGLE_CHECK_NE(&from, this);
3590 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3591 if (from.has_name()) {
3592 set_name(from.name());
3594 if (from.has_number()) {
3595 set_number(from.number());
3597 if (from.has_options()) {
3598 mutable_options()->::google::protobuf::EnumValueOptions::MergeFrom(from.options());
3601 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3604 void EnumValueDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
3605 if (&from == this) return;
3610 void EnumValueDescriptorProto::CopyFrom(const EnumValueDescriptorProto& from) {
3611 if (&from == this) return;
3616 bool EnumValueDescriptorProto::IsInitialized() const {
3618 if (has_options()) {
3619 if (!this->options().IsInitialized()) return false;
3624 void EnumValueDescriptorProto::Swap(EnumValueDescriptorProto* other) {
3625 if (other != this) {
3626 std::swap(name_, other->name_);
3627 std::swap(number_, other->number_);
3628 std::swap(options_, other->options_);
3629 std::swap(_has_bits_[0], other->_has_bits_[0]);
3630 _unknown_fields_.Swap(&other->_unknown_fields_);
3631 std::swap(_cached_size_, other->_cached_size_);
3635 ::google::protobuf::Metadata EnumValueDescriptorProto::GetMetadata() const {
3636 protobuf_AssignDescriptorsOnce();
3637 ::google::protobuf::Metadata metadata;
3638 metadata.descriptor = EnumValueDescriptorProto_descriptor_;
3639 metadata.reflection = EnumValueDescriptorProto_reflection_;
3644 // ===================================================================
3647 const int ServiceDescriptorProto::kNameFieldNumber;
3648 const int ServiceDescriptorProto::kMethodFieldNumber;
3649 const int ServiceDescriptorProto::kOptionsFieldNumber;
3652 ServiceDescriptorProto::ServiceDescriptorProto()
3653 : ::google::protobuf::Message() {
3657 void ServiceDescriptorProto::InitAsDefaultInstance() {
3658 options_ = const_cast< ::google::protobuf::ServiceOptions*>(&::google::protobuf::ServiceOptions::default_instance());
3661 ServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& from)
3662 : ::google::protobuf::Message() {
3667 void ServiceDescriptorProto::SharedCtor() {
3669 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
3671 ::memset(_has_bits_, 0, sizeof(_has_bits_));
3674 ServiceDescriptorProto::~ServiceDescriptorProto() {
3678 void ServiceDescriptorProto::SharedDtor() {
3679 if (name_ != &::google::protobuf::internal::GetEmptyString()) {
3682 if (this != default_instance_) {
3687 void ServiceDescriptorProto::SetCachedSize(int size) const {
3688 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3689 _cached_size_ = size;
3690 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3692 const ::google::protobuf::Descriptor* ServiceDescriptorProto::descriptor() {
3693 protobuf_AssignDescriptorsOnce();
3694 return ServiceDescriptorProto_descriptor_;
3697 const ServiceDescriptorProto& ServiceDescriptorProto::default_instance() {
3698 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
3699 return *default_instance_;
3702 ServiceDescriptorProto* ServiceDescriptorProto::default_instance_ = NULL;
3704 ServiceDescriptorProto* ServiceDescriptorProto::New() const {
3705 return new ServiceDescriptorProto;
3708 void ServiceDescriptorProto::Clear() {
3709 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3711 if (name_ != &::google::protobuf::internal::GetEmptyString()) {
3715 if (has_options()) {
3716 if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear();
3720 ::memset(_has_bits_, 0, sizeof(_has_bits_));
3721 mutable_unknown_fields()->Clear();
3724 bool ServiceDescriptorProto::MergePartialFromCodedStream(
3725 ::google::protobuf::io::CodedInputStream* input) {
3726 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
3727 ::google::protobuf::uint32 tag;
3728 while ((tag = input->ReadTag()) != 0) {
3729 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3730 // optional string name = 1;
3732 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3733 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
3734 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3735 input, this->mutable_name()));
3736 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3737 this->name().data(), this->name().length(),
3738 ::google::protobuf::internal::WireFormat::PARSE);
3740 goto handle_uninterpreted;
3742 if (input->ExpectTag(18)) goto parse_method;
3746 // repeated .google.protobuf.MethodDescriptorProto method = 2;
3748 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3749 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
3751 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3752 input, add_method()));
3754 goto handle_uninterpreted;
3756 if (input->ExpectTag(18)) goto parse_method;
3757 if (input->ExpectTag(26)) goto parse_options;
3761 // optional .google.protobuf.ServiceOptions options = 3;
3763 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3764 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
3766 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3767 input, mutable_options()));
3769 goto handle_uninterpreted;
3771 if (input->ExpectAtEnd()) return true;
3776 handle_uninterpreted:
3777 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3778 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3781 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
3782 input, tag, mutable_unknown_fields()));
3791 void ServiceDescriptorProto::SerializeWithCachedSizes(
3792 ::google::protobuf::io::CodedOutputStream* output) const {
3793 // optional string name = 1;
3795 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3796 this->name().data(), this->name().length(),
3797 ::google::protobuf::internal::WireFormat::SERIALIZE);
3798 ::google::protobuf::internal::WireFormatLite::WriteString(
3799 1, this->name(), output);
3802 // repeated .google.protobuf.MethodDescriptorProto method = 2;
3803 for (int i = 0; i < this->method_size(); i++) {
3804 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3805 2, this->method(i), output);
3808 // optional .google.protobuf.ServiceOptions options = 3;
3809 if (has_options()) {
3810 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3811 3, this->options(), output);
3814 if (!unknown_fields().empty()) {
3815 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
3816 unknown_fields(), output);
3820 ::google::protobuf::uint8* ServiceDescriptorProto::SerializeWithCachedSizesToArray(
3821 ::google::protobuf::uint8* target) const {
3822 // optional string name = 1;
3824 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3825 this->name().data(), this->name().length(),
3826 ::google::protobuf::internal::WireFormat::SERIALIZE);
3828 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3829 1, this->name(), target);
3832 // repeated .google.protobuf.MethodDescriptorProto method = 2;
3833 for (int i = 0; i < this->method_size(); i++) {
3834 target = ::google::protobuf::internal::WireFormatLite::
3835 WriteMessageNoVirtualToArray(
3836 2, this->method(i), target);
3839 // optional .google.protobuf.ServiceOptions options = 3;
3840 if (has_options()) {
3841 target = ::google::protobuf::internal::WireFormatLite::
3842 WriteMessageNoVirtualToArray(
3843 3, this->options(), target);
3846 if (!unknown_fields().empty()) {
3847 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownFieldsToArray(
3848 unknown_fields(), target);
3853 int ServiceDescriptorProto::ByteSize() const {
3856 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3857 // optional string name = 1;
3860 ::google::protobuf::internal::WireFormatLite::StringSize(
3864 // optional .google.protobuf.ServiceOptions options = 3;
3865 if (has_options()) {
3867 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3872 // repeated .google.protobuf.MethodDescriptorProto method = 2;
3873 total_size += 1 * this->method_size();
3874 for (int i = 0; i < this->method_size(); i++) {
3876 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3880 if (!unknown_fields().empty()) {
3882 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
3885 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3886 _cached_size_ = total_size;
3887 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3891 void ServiceDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
3892 GOOGLE_CHECK_NE(&from, this);
3893 const ServiceDescriptorProto* source =
3894 ::google::protobuf::internal::dynamic_cast_if_available<const ServiceDescriptorProto*>(
3896 if (source == NULL) {
3897 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3903 void ServiceDescriptorProto::MergeFrom(const ServiceDescriptorProto& from) {
3904 GOOGLE_CHECK_NE(&from, this);
3905 method_.MergeFrom(from.method_);
3906 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3907 if (from.has_name()) {
3908 set_name(from.name());
3910 if (from.has_options()) {
3911 mutable_options()->::google::protobuf::ServiceOptions::MergeFrom(from.options());
3914 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3917 void ServiceDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
3918 if (&from == this) return;
3923 void ServiceDescriptorProto::CopyFrom(const ServiceDescriptorProto& from) {
3924 if (&from == this) return;
3929 bool ServiceDescriptorProto::IsInitialized() const {
3931 for (int i = 0; i < method_size(); i++) {
3932 if (!this->method(i).IsInitialized()) return false;
3934 if (has_options()) {
3935 if (!this->options().IsInitialized()) return false;
3940 void ServiceDescriptorProto::Swap(ServiceDescriptorProto* other) {
3941 if (other != this) {
3942 std::swap(name_, other->name_);
3943 method_.Swap(&other->method_);
3944 std::swap(options_, other->options_);
3945 std::swap(_has_bits_[0], other->_has_bits_[0]);
3946 _unknown_fields_.Swap(&other->_unknown_fields_);
3947 std::swap(_cached_size_, other->_cached_size_);
3951 ::google::protobuf::Metadata ServiceDescriptorProto::GetMetadata() const {
3952 protobuf_AssignDescriptorsOnce();
3953 ::google::protobuf::Metadata metadata;
3954 metadata.descriptor = ServiceDescriptorProto_descriptor_;
3955 metadata.reflection = ServiceDescriptorProto_reflection_;
3960 // ===================================================================
3963 const int MethodDescriptorProto::kNameFieldNumber;
3964 const int MethodDescriptorProto::kInputTypeFieldNumber;
3965 const int MethodDescriptorProto::kOutputTypeFieldNumber;
3966 const int MethodDescriptorProto::kOptionsFieldNumber;
3969 MethodDescriptorProto::MethodDescriptorProto()
3970 : ::google::protobuf::Message() {
3974 void MethodDescriptorProto::InitAsDefaultInstance() {
3975 options_ = const_cast< ::google::protobuf::MethodOptions*>(&::google::protobuf::MethodOptions::default_instance());
3978 MethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from)
3979 : ::google::protobuf::Message() {
3984 void MethodDescriptorProto::SharedCtor() {
3986 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
3987 input_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
3988 output_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
3990 ::memset(_has_bits_, 0, sizeof(_has_bits_));
3993 MethodDescriptorProto::~MethodDescriptorProto() {
3997 void MethodDescriptorProto::SharedDtor() {
3998 if (name_ != &::google::protobuf::internal::GetEmptyString()) {
4001 if (input_type_ != &::google::protobuf::internal::GetEmptyString()) {
4004 if (output_type_ != &::google::protobuf::internal::GetEmptyString()) {
4005 delete output_type_;
4007 if (this != default_instance_) {
4012 void MethodDescriptorProto::SetCachedSize(int size) const {
4013 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4014 _cached_size_ = size;
4015 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4017 const ::google::protobuf::Descriptor* MethodDescriptorProto::descriptor() {
4018 protobuf_AssignDescriptorsOnce();
4019 return MethodDescriptorProto_descriptor_;
4022 const MethodDescriptorProto& MethodDescriptorProto::default_instance() {
4023 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
4024 return *default_instance_;
4027 MethodDescriptorProto* MethodDescriptorProto::default_instance_ = NULL;
4029 MethodDescriptorProto* MethodDescriptorProto::New() const {
4030 return new MethodDescriptorProto;
4033 void MethodDescriptorProto::Clear() {
4034 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4036 if (name_ != &::google::protobuf::internal::GetEmptyString()) {
4040 if (has_input_type()) {
4041 if (input_type_ != &::google::protobuf::internal::GetEmptyString()) {
4042 input_type_->clear();
4045 if (has_output_type()) {
4046 if (output_type_ != &::google::protobuf::internal::GetEmptyString()) {
4047 output_type_->clear();
4050 if (has_options()) {
4051 if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear();
4054 ::memset(_has_bits_, 0, sizeof(_has_bits_));
4055 mutable_unknown_fields()->Clear();
4058 bool MethodDescriptorProto::MergePartialFromCodedStream(
4059 ::google::protobuf::io::CodedInputStream* input) {
4060 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
4061 ::google::protobuf::uint32 tag;
4062 while ((tag = input->ReadTag()) != 0) {
4063 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4064 // optional string name = 1;
4066 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4067 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4068 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4069 input, this->mutable_name()));
4070 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4071 this->name().data(), this->name().length(),
4072 ::google::protobuf::internal::WireFormat::PARSE);
4074 goto handle_uninterpreted;
4076 if (input->ExpectTag(18)) goto parse_input_type;
4080 // optional string input_type = 2;
4082 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4083 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4085 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4086 input, this->mutable_input_type()));
4087 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4088 this->input_type().data(), this->input_type().length(),
4089 ::google::protobuf::internal::WireFormat::PARSE);
4091 goto handle_uninterpreted;
4093 if (input->ExpectTag(26)) goto parse_output_type;
4097 // optional string output_type = 3;
4099 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4100 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4102 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4103 input, this->mutable_output_type()));
4104 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4105 this->output_type().data(), this->output_type().length(),
4106 ::google::protobuf::internal::WireFormat::PARSE);
4108 goto handle_uninterpreted;
4110 if (input->ExpectTag(34)) goto parse_options;
4114 // optional .google.protobuf.MethodOptions options = 4;
4116 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4117 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4119 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4120 input, mutable_options()));
4122 goto handle_uninterpreted;
4124 if (input->ExpectAtEnd()) return true;
4129 handle_uninterpreted:
4130 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4131 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4134 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
4135 input, tag, mutable_unknown_fields()));
4144 void MethodDescriptorProto::SerializeWithCachedSizes(
4145 ::google::protobuf::io::CodedOutputStream* output) const {
4146 // optional string name = 1;
4148 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4149 this->name().data(), this->name().length(),
4150 ::google::protobuf::internal::WireFormat::SERIALIZE);
4151 ::google::protobuf::internal::WireFormatLite::WriteString(
4152 1, this->name(), output);
4155 // optional string input_type = 2;
4156 if (has_input_type()) {
4157 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4158 this->input_type().data(), this->input_type().length(),
4159 ::google::protobuf::internal::WireFormat::SERIALIZE);
4160 ::google::protobuf::internal::WireFormatLite::WriteString(
4161 2, this->input_type(), output);
4164 // optional string output_type = 3;
4165 if (has_output_type()) {
4166 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4167 this->output_type().data(), this->output_type().length(),
4168 ::google::protobuf::internal::WireFormat::SERIALIZE);
4169 ::google::protobuf::internal::WireFormatLite::WriteString(
4170 3, this->output_type(), output);
4173 // optional .google.protobuf.MethodOptions options = 4;
4174 if (has_options()) {
4175 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4176 4, this->options(), output);
4179 if (!unknown_fields().empty()) {
4180 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
4181 unknown_fields(), output);
4185 ::google::protobuf::uint8* MethodDescriptorProto::SerializeWithCachedSizesToArray(
4186 ::google::protobuf::uint8* target) const {
4187 // optional string name = 1;
4189 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4190 this->name().data(), this->name().length(),
4191 ::google::protobuf::internal::WireFormat::SERIALIZE);
4193 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4194 1, this->name(), target);
4197 // optional string input_type = 2;
4198 if (has_input_type()) {
4199 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4200 this->input_type().data(), this->input_type().length(),
4201 ::google::protobuf::internal::WireFormat::SERIALIZE);
4203 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4204 2, this->input_type(), target);
4207 // optional string output_type = 3;
4208 if (has_output_type()) {
4209 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4210 this->output_type().data(), this->output_type().length(),
4211 ::google::protobuf::internal::WireFormat::SERIALIZE);
4213 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4214 3, this->output_type(), target);
4217 // optional .google.protobuf.MethodOptions options = 4;
4218 if (has_options()) {
4219 target = ::google::protobuf::internal::WireFormatLite::
4220 WriteMessageNoVirtualToArray(
4221 4, this->options(), target);
4224 if (!unknown_fields().empty()) {
4225 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownFieldsToArray(
4226 unknown_fields(), target);
4231 int MethodDescriptorProto::ByteSize() const {
4234 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4235 // optional string name = 1;
4238 ::google::protobuf::internal::WireFormatLite::StringSize(
4242 // optional string input_type = 2;
4243 if (has_input_type()) {
4245 ::google::protobuf::internal::WireFormatLite::StringSize(
4246 this->input_type());
4249 // optional string output_type = 3;
4250 if (has_output_type()) {
4252 ::google::protobuf::internal::WireFormatLite::StringSize(
4253 this->output_type());
4256 // optional .google.protobuf.MethodOptions options = 4;
4257 if (has_options()) {
4259 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4264 if (!unknown_fields().empty()) {
4266 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
4269 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4270 _cached_size_ = total_size;
4271 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4275 void MethodDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
4276 GOOGLE_CHECK_NE(&from, this);
4277 const MethodDescriptorProto* source =
4278 ::google::protobuf::internal::dynamic_cast_if_available<const MethodDescriptorProto*>(
4280 if (source == NULL) {
4281 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4287 void MethodDescriptorProto::MergeFrom(const MethodDescriptorProto& from) {
4288 GOOGLE_CHECK_NE(&from, this);
4289 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4290 if (from.has_name()) {
4291 set_name(from.name());
4293 if (from.has_input_type()) {
4294 set_input_type(from.input_type());
4296 if (from.has_output_type()) {
4297 set_output_type(from.output_type());
4299 if (from.has_options()) {
4300 mutable_options()->::google::protobuf::MethodOptions::MergeFrom(from.options());
4303 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4306 void MethodDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
4307 if (&from == this) return;
4312 void MethodDescriptorProto::CopyFrom(const MethodDescriptorProto& from) {
4313 if (&from == this) return;
4318 bool MethodDescriptorProto::IsInitialized() const {
4320 if (has_options()) {
4321 if (!this->options().IsInitialized()) return false;
4326 void MethodDescriptorProto::Swap(MethodDescriptorProto* other) {
4327 if (other != this) {
4328 std::swap(name_, other->name_);
4329 std::swap(input_type_, other->input_type_);
4330 std::swap(output_type_, other->output_type_);
4331 std::swap(options_, other->options_);
4332 std::swap(_has_bits_[0], other->_has_bits_[0]);
4333 _unknown_fields_.Swap(&other->_unknown_fields_);
4334 std::swap(_cached_size_, other->_cached_size_);
4338 ::google::protobuf::Metadata MethodDescriptorProto::GetMetadata() const {
4339 protobuf_AssignDescriptorsOnce();
4340 ::google::protobuf::Metadata metadata;
4341 metadata.descriptor = MethodDescriptorProto_descriptor_;
4342 metadata.reflection = MethodDescriptorProto_reflection_;
4347 // ===================================================================
4349 const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor() {
4350 protobuf_AssignDescriptorsOnce();
4351 return FileOptions_OptimizeMode_descriptor_;
4353 bool FileOptions_OptimizeMode_IsValid(int value) {
4365 const FileOptions_OptimizeMode FileOptions::SPEED;
4366 const FileOptions_OptimizeMode FileOptions::CODE_SIZE;
4367 const FileOptions_OptimizeMode FileOptions::LITE_RUNTIME;
4368 const FileOptions_OptimizeMode FileOptions::OptimizeMode_MIN;
4369 const FileOptions_OptimizeMode FileOptions::OptimizeMode_MAX;
4370 const int FileOptions::OptimizeMode_ARRAYSIZE;
4373 const int FileOptions::kJavaPackageFieldNumber;
4374 const int FileOptions::kJavaOuterClassnameFieldNumber;
4375 const int FileOptions::kJavaMultipleFilesFieldNumber;
4376 const int FileOptions::kRetainUnknownFieldsFieldNumber;
4377 const int FileOptions::kJavaGenerateEqualsAndHashFieldNumber;
4378 const int FileOptions::kOptimizeForFieldNumber;
4379 const int FileOptions::kGoPackageFieldNumber;
4380 const int FileOptions::kCcGenericServicesFieldNumber;
4381 const int FileOptions::kJavaGenericServicesFieldNumber;
4382 const int FileOptions::kPyGenericServicesFieldNumber;
4383 const int FileOptions::kUninterpretedOptionFieldNumber;
4386 FileOptions::FileOptions()
4387 : ::google::protobuf::Message() {
4391 void FileOptions::InitAsDefaultInstance() {
4394 FileOptions::FileOptions(const FileOptions& from)
4395 : ::google::protobuf::Message() {
4400 void FileOptions::SharedCtor() {
4402 java_package_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
4403 java_outer_classname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
4404 java_multiple_files_ = false;
4405 retain_unknown_fields_ = false;
4406 java_generate_equals_and_hash_ = false;
4408 go_package_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
4409 cc_generic_services_ = false;
4410 java_generic_services_ = false;
4411 py_generic_services_ = false;
4412 ::memset(_has_bits_, 0, sizeof(_has_bits_));
4415 FileOptions::~FileOptions() {
4419 void FileOptions::SharedDtor() {
4420 if (java_package_ != &::google::protobuf::internal::GetEmptyString()) {
4421 delete java_package_;
4423 if (java_outer_classname_ != &::google::protobuf::internal::GetEmptyString()) {
4424 delete java_outer_classname_;
4426 if (go_package_ != &::google::protobuf::internal::GetEmptyString()) {
4429 if (this != default_instance_) {
4433 void FileOptions::SetCachedSize(int size) const {
4434 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4435 _cached_size_ = size;
4436 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4438 const ::google::protobuf::Descriptor* FileOptions::descriptor() {
4439 protobuf_AssignDescriptorsOnce();
4440 return FileOptions_descriptor_;
4443 const FileOptions& FileOptions::default_instance() {
4444 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
4445 return *default_instance_;
4448 FileOptions* FileOptions::default_instance_ = NULL;
4450 FileOptions* FileOptions::New() const {
4451 return new FileOptions;
4454 void FileOptions::Clear() {
4455 _extensions_.Clear();
4456 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4457 if (has_java_package()) {
4458 if (java_package_ != &::google::protobuf::internal::GetEmptyString()) {
4459 java_package_->clear();
4462 if (has_java_outer_classname()) {
4463 if (java_outer_classname_ != &::google::protobuf::internal::GetEmptyString()) {
4464 java_outer_classname_->clear();
4467 java_multiple_files_ = false;
4468 retain_unknown_fields_ = false;
4469 java_generate_equals_and_hash_ = false;
4471 if (has_go_package()) {
4472 if (go_package_ != &::google::protobuf::internal::GetEmptyString()) {
4473 go_package_->clear();
4476 cc_generic_services_ = false;
4478 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
4479 java_generic_services_ = false;
4480 py_generic_services_ = false;
4482 uninterpreted_option_.Clear();
4483 ::memset(_has_bits_, 0, sizeof(_has_bits_));
4484 mutable_unknown_fields()->Clear();
4487 bool FileOptions::MergePartialFromCodedStream(
4488 ::google::protobuf::io::CodedInputStream* input) {
4489 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
4490 ::google::protobuf::uint32 tag;
4491 while ((tag = input->ReadTag()) != 0) {
4492 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4493 // optional string java_package = 1;
4495 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4496 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4497 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4498 input, this->mutable_java_package()));
4499 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4500 this->java_package().data(), this->java_package().length(),
4501 ::google::protobuf::internal::WireFormat::PARSE);
4503 goto handle_uninterpreted;
4505 if (input->ExpectTag(66)) goto parse_java_outer_classname;
4509 // optional string java_outer_classname = 8;
4511 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4512 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4513 parse_java_outer_classname:
4514 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4515 input, this->mutable_java_outer_classname()));
4516 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4517 this->java_outer_classname().data(), this->java_outer_classname().length(),
4518 ::google::protobuf::internal::WireFormat::PARSE);
4520 goto handle_uninterpreted;
4522 if (input->ExpectTag(72)) goto parse_optimize_for;
4526 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
4528 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4529 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4532 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4533 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4535 if (::google::protobuf::FileOptions_OptimizeMode_IsValid(value)) {
4536 set_optimize_for(static_cast< ::google::protobuf::FileOptions_OptimizeMode >(value));
4538 mutable_unknown_fields()->AddVarint(9, value);
4541 goto handle_uninterpreted;
4543 if (input->ExpectTag(80)) goto parse_java_multiple_files;
4547 // optional bool java_multiple_files = 10 [default = false];
4549 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4550 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4551 parse_java_multiple_files:
4552 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4553 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4554 input, &java_multiple_files_)));
4555 set_has_java_multiple_files();
4557 goto handle_uninterpreted;
4559 if (input->ExpectTag(90)) goto parse_go_package;
4563 // optional string go_package = 11;
4565 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4566 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4568 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4569 input, this->mutable_go_package()));
4570 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4571 this->go_package().data(), this->go_package().length(),
4572 ::google::protobuf::internal::WireFormat::PARSE);
4574 goto handle_uninterpreted;
4576 if (input->ExpectTag(96)) goto parse_retain_unknown_fields;
4580 // optional bool retain_unknown_fields = 12 [default = false];
4582 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4583 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4584 parse_retain_unknown_fields:
4585 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4586 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4587 input, &retain_unknown_fields_)));
4588 set_has_retain_unknown_fields();
4590 goto handle_uninterpreted;
4592 if (input->ExpectTag(128)) goto parse_cc_generic_services;
4596 // optional bool cc_generic_services = 16 [default = false];
4598 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4599 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4600 parse_cc_generic_services:
4601 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4602 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4603 input, &cc_generic_services_)));
4604 set_has_cc_generic_services();
4606 goto handle_uninterpreted;
4608 if (input->ExpectTag(136)) goto parse_java_generic_services;
4612 // optional bool java_generic_services = 17 [default = false];
4614 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4615 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4616 parse_java_generic_services:
4617 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4618 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4619 input, &java_generic_services_)));
4620 set_has_java_generic_services();
4622 goto handle_uninterpreted;
4624 if (input->ExpectTag(144)) goto parse_py_generic_services;
4628 // optional bool py_generic_services = 18 [default = false];
4630 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4631 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4632 parse_py_generic_services:
4633 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4634 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4635 input, &py_generic_services_)));
4636 set_has_py_generic_services();
4638 goto handle_uninterpreted;
4640 if (input->ExpectTag(160)) goto parse_java_generate_equals_and_hash;
4644 // optional bool java_generate_equals_and_hash = 20 [default = false];
4646 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4647 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4648 parse_java_generate_equals_and_hash:
4649 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4650 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4651 input, &java_generate_equals_and_hash_)));
4652 set_has_java_generate_equals_and_hash();
4654 goto handle_uninterpreted;
4656 if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
4660 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4662 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4663 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4664 parse_uninterpreted_option:
4665 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4666 input, add_uninterpreted_option()));
4668 goto handle_uninterpreted;
4670 if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
4671 if (input->ExpectAtEnd()) return true;
4676 handle_uninterpreted:
4677 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4678 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4681 if ((8000u <= tag)) {
4682 DO_(_extensions_.ParseField(tag, input, default_instance_,
4683 mutable_unknown_fields()));
4686 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
4687 input, tag, mutable_unknown_fields()));
4696 void FileOptions::SerializeWithCachedSizes(
4697 ::google::protobuf::io::CodedOutputStream* output) const {
4698 // optional string java_package = 1;
4699 if (has_java_package()) {
4700 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4701 this->java_package().data(), this->java_package().length(),
4702 ::google::protobuf::internal::WireFormat::SERIALIZE);
4703 ::google::protobuf::internal::WireFormatLite::WriteString(
4704 1, this->java_package(), output);
4707 // optional string java_outer_classname = 8;
4708 if (has_java_outer_classname()) {
4709 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4710 this->java_outer_classname().data(), this->java_outer_classname().length(),
4711 ::google::protobuf::internal::WireFormat::SERIALIZE);
4712 ::google::protobuf::internal::WireFormatLite::WriteString(
4713 8, this->java_outer_classname(), output);
4716 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
4717 if (has_optimize_for()) {
4718 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4719 9, this->optimize_for(), output);
4722 // optional bool java_multiple_files = 10 [default = false];
4723 if (has_java_multiple_files()) {
4724 ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->java_multiple_files(), output);
4727 // optional string go_package = 11;
4728 if (has_go_package()) {
4729 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4730 this->go_package().data(), this->go_package().length(),
4731 ::google::protobuf::internal::WireFormat::SERIALIZE);
4732 ::google::protobuf::internal::WireFormatLite::WriteString(
4733 11, this->go_package(), output);
4736 // optional bool retain_unknown_fields = 12 [default = false];
4737 if (has_retain_unknown_fields()) {
4738 ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->retain_unknown_fields(), output);
4741 // optional bool cc_generic_services = 16 [default = false];
4742 if (has_cc_generic_services()) {
4743 ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->cc_generic_services(), output);
4746 // optional bool java_generic_services = 17 [default = false];
4747 if (has_java_generic_services()) {
4748 ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->java_generic_services(), output);
4751 // optional bool py_generic_services = 18 [default = false];
4752 if (has_py_generic_services()) {
4753 ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic_services(), output);
4756 // optional bool java_generate_equals_and_hash = 20 [default = false];
4757 if (has_java_generate_equals_and_hash()) {
4758 ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->java_generate_equals_and_hash(), output);
4761 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4762 for (int i = 0; i < this->uninterpreted_option_size(); i++) {
4763 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4764 999, this->uninterpreted_option(i), output);
4767 // Extension range [1000, 536870912)
4768 _extensions_.SerializeWithCachedSizes(
4769 1000, 536870912, output);
4771 if (!unknown_fields().empty()) {
4772 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
4773 unknown_fields(), output);
4777 ::google::protobuf::uint8* FileOptions::SerializeWithCachedSizesToArray(
4778 ::google::protobuf::uint8* target) const {
4779 // optional string java_package = 1;
4780 if (has_java_package()) {
4781 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4782 this->java_package().data(), this->java_package().length(),
4783 ::google::protobuf::internal::WireFormat::SERIALIZE);
4785 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4786 1, this->java_package(), target);
4789 // optional string java_outer_classname = 8;
4790 if (has_java_outer_classname()) {
4791 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4792 this->java_outer_classname().data(), this->java_outer_classname().length(),
4793 ::google::protobuf::internal::WireFormat::SERIALIZE);
4795 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4796 8, this->java_outer_classname(), target);
4799 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
4800 if (has_optimize_for()) {
4801 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4802 9, this->optimize_for(), target);
4805 // optional bool java_multiple_files = 10 [default = false];
4806 if (has_java_multiple_files()) {
4807 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->java_multiple_files(), target);
4810 // optional string go_package = 11;
4811 if (has_go_package()) {
4812 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4813 this->go_package().data(), this->go_package().length(),
4814 ::google::protobuf::internal::WireFormat::SERIALIZE);
4816 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4817 11, this->go_package(), target);
4820 // optional bool retain_unknown_fields = 12 [default = false];
4821 if (has_retain_unknown_fields()) {
4822 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12, this->retain_unknown_fields(), target);
4825 // optional bool cc_generic_services = 16 [default = false];
4826 if (has_cc_generic_services()) {
4827 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->cc_generic_services(), target);
4830 // optional bool java_generic_services = 17 [default = false];
4831 if (has_java_generic_services()) {
4832 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->java_generic_services(), target);
4835 // optional bool py_generic_services = 18 [default = false];
4836 if (has_py_generic_services()) {
4837 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->py_generic_services(), target);
4840 // optional bool java_generate_equals_and_hash = 20 [default = false];
4841 if (has_java_generate_equals_and_hash()) {
4842 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->java_generate_equals_and_hash(), target);
4845 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4846 for (int i = 0; i < this->uninterpreted_option_size(); i++) {
4847 target = ::google::protobuf::internal::WireFormatLite::
4848 WriteMessageNoVirtualToArray(
4849 999, this->uninterpreted_option(i), target);
4852 // Extension range [1000, 536870912)
4853 target = _extensions_.SerializeWithCachedSizesToArray(
4854 1000, 536870912, target);
4856 if (!unknown_fields().empty()) {
4857 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownFieldsToArray(
4858 unknown_fields(), target);
4863 int FileOptions::ByteSize() const {
4866 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4867 // optional string java_package = 1;
4868 if (has_java_package()) {
4870 ::google::protobuf::internal::WireFormatLite::StringSize(
4871 this->java_package());
4874 // optional string java_outer_classname = 8;
4875 if (has_java_outer_classname()) {
4877 ::google::protobuf::internal::WireFormatLite::StringSize(
4878 this->java_outer_classname());
4881 // optional bool java_multiple_files = 10 [default = false];
4882 if (has_java_multiple_files()) {
4883 total_size += 1 + 1;
4886 // optional bool retain_unknown_fields = 12 [default = false];
4887 if (has_retain_unknown_fields()) {
4888 total_size += 1 + 1;
4891 // optional bool java_generate_equals_and_hash = 20 [default = false];
4892 if (has_java_generate_equals_and_hash()) {
4893 total_size += 2 + 1;
4896 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
4897 if (has_optimize_for()) {
4899 ::google::protobuf::internal::WireFormatLite::EnumSize(this->optimize_for());
4902 // optional string go_package = 11;
4903 if (has_go_package()) {
4905 ::google::protobuf::internal::WireFormatLite::StringSize(
4906 this->go_package());
4909 // optional bool cc_generic_services = 16 [default = false];
4910 if (has_cc_generic_services()) {
4911 total_size += 2 + 1;
4915 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
4916 // optional bool java_generic_services = 17 [default = false];
4917 if (has_java_generic_services()) {
4918 total_size += 2 + 1;
4921 // optional bool py_generic_services = 18 [default = false];
4922 if (has_py_generic_services()) {
4923 total_size += 2 + 1;
4927 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4928 total_size += 2 * this->uninterpreted_option_size();
4929 for (int i = 0; i < this->uninterpreted_option_size(); i++) {
4931 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4932 this->uninterpreted_option(i));
4935 total_size += _extensions_.ByteSize();
4937 if (!unknown_fields().empty()) {
4939 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
4942 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4943 _cached_size_ = total_size;
4944 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4948 void FileOptions::MergeFrom(const ::google::protobuf::Message& from) {
4949 GOOGLE_CHECK_NE(&from, this);
4950 const FileOptions* source =
4951 ::google::protobuf::internal::dynamic_cast_if_available<const FileOptions*>(
4953 if (source == NULL) {
4954 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4960 void FileOptions::MergeFrom(const FileOptions& from) {
4961 GOOGLE_CHECK_NE(&from, this);
4962 uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
4963 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4964 if (from.has_java_package()) {
4965 set_java_package(from.java_package());
4967 if (from.has_java_outer_classname()) {
4968 set_java_outer_classname(from.java_outer_classname());
4970 if (from.has_java_multiple_files()) {
4971 set_java_multiple_files(from.java_multiple_files());
4973 if (from.has_retain_unknown_fields()) {
4974 set_retain_unknown_fields(from.retain_unknown_fields());
4976 if (from.has_java_generate_equals_and_hash()) {
4977 set_java_generate_equals_and_hash(from.java_generate_equals_and_hash());
4979 if (from.has_optimize_for()) {
4980 set_optimize_for(from.optimize_for());
4982 if (from.has_go_package()) {
4983 set_go_package(from.go_package());
4985 if (from.has_cc_generic_services()) {
4986 set_cc_generic_services(from.cc_generic_services());
4989 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
4990 if (from.has_java_generic_services()) {
4991 set_java_generic_services(from.java_generic_services());
4993 if (from.has_py_generic_services()) {
4994 set_py_generic_services(from.py_generic_services());
4997 _extensions_.MergeFrom(from._extensions_);
4998 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5001 void FileOptions::CopyFrom(const ::google::protobuf::Message& from) {
5002 if (&from == this) return;
5007 void FileOptions::CopyFrom(const FileOptions& from) {
5008 if (&from == this) return;
5013 bool FileOptions::IsInitialized() const {
5015 for (int i = 0; i < uninterpreted_option_size(); i++) {
5016 if (!this->uninterpreted_option(i).IsInitialized()) return false;
5019 if (!_extensions_.IsInitialized()) return false; return true;
5022 void FileOptions::Swap(FileOptions* other) {
5023 if (other != this) {
5024 std::swap(java_package_, other->java_package_);
5025 std::swap(java_outer_classname_, other->java_outer_classname_);
5026 std::swap(java_multiple_files_, other->java_multiple_files_);
5027 std::swap(retain_unknown_fields_, other->retain_unknown_fields_);
5028 std::swap(java_generate_equals_and_hash_, other->java_generate_equals_and_hash_);
5029 std::swap(optimize_for_, other->optimize_for_);
5030 std::swap(go_package_, other->go_package_);
5031 std::swap(cc_generic_services_, other->cc_generic_services_);
5032 std::swap(java_generic_services_, other->java_generic_services_);
5033 std::swap(py_generic_services_, other->py_generic_services_);
5034 uninterpreted_option_.Swap(&other->uninterpreted_option_);
5035 std::swap(_has_bits_[0], other->_has_bits_[0]);
5036 _unknown_fields_.Swap(&other->_unknown_fields_);
5037 std::swap(_cached_size_, other->_cached_size_);
5038 _extensions_.Swap(&other->_extensions_);
5042 ::google::protobuf::Metadata FileOptions::GetMetadata() const {
5043 protobuf_AssignDescriptorsOnce();
5044 ::google::protobuf::Metadata metadata;
5045 metadata.descriptor = FileOptions_descriptor_;
5046 metadata.reflection = FileOptions_reflection_;
5051 // ===================================================================
5054 const int MessageOptions::kMessageSetWireFormatFieldNumber;
5055 const int MessageOptions::kNoStandardDescriptorAccessorFieldNumber;
5056 const int MessageOptions::kUninterpretedOptionFieldNumber;
5059 MessageOptions::MessageOptions()
5060 : ::google::protobuf::Message() {
5064 void MessageOptions::InitAsDefaultInstance() {
5067 MessageOptions::MessageOptions(const MessageOptions& from)
5068 : ::google::protobuf::Message() {
5073 void MessageOptions::SharedCtor() {
5075 message_set_wire_format_ = false;
5076 no_standard_descriptor_accessor_ = false;
5077 ::memset(_has_bits_, 0, sizeof(_has_bits_));
5080 MessageOptions::~MessageOptions() {
5084 void MessageOptions::SharedDtor() {
5085 if (this != default_instance_) {
5089 void MessageOptions::SetCachedSize(int size) const {
5090 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5091 _cached_size_ = size;
5092 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5094 const ::google::protobuf::Descriptor* MessageOptions::descriptor() {
5095 protobuf_AssignDescriptorsOnce();
5096 return MessageOptions_descriptor_;
5099 const MessageOptions& MessageOptions::default_instance() {
5100 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
5101 return *default_instance_;
5104 MessageOptions* MessageOptions::default_instance_ = NULL;
5106 MessageOptions* MessageOptions::New() const {
5107 return new MessageOptions;
5110 void MessageOptions::Clear() {
5111 _extensions_.Clear();
5112 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5113 message_set_wire_format_ = false;
5114 no_standard_descriptor_accessor_ = false;
5116 uninterpreted_option_.Clear();
5117 ::memset(_has_bits_, 0, sizeof(_has_bits_));
5118 mutable_unknown_fields()->Clear();
5121 bool MessageOptions::MergePartialFromCodedStream(
5122 ::google::protobuf::io::CodedInputStream* input) {
5123 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
5124 ::google::protobuf::uint32 tag;
5125 while ((tag = input->ReadTag()) != 0) {
5126 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5127 // optional bool message_set_wire_format = 1 [default = false];
5129 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5130 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5131 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5132 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5133 input, &message_set_wire_format_)));
5134 set_has_message_set_wire_format();
5136 goto handle_uninterpreted;
5138 if (input->ExpectTag(16)) goto parse_no_standard_descriptor_accessor;
5142 // optional bool no_standard_descriptor_accessor = 2 [default = false];
5144 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5145 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5146 parse_no_standard_descriptor_accessor:
5147 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5148 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5149 input, &no_standard_descriptor_accessor_)));
5150 set_has_no_standard_descriptor_accessor();
5152 goto handle_uninterpreted;
5154 if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
5158 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5160 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5161 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
5162 parse_uninterpreted_option:
5163 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5164 input, add_uninterpreted_option()));
5166 goto handle_uninterpreted;
5168 if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
5169 if (input->ExpectAtEnd()) return true;
5174 handle_uninterpreted:
5175 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5176 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5179 if ((8000u <= tag)) {
5180 DO_(_extensions_.ParseField(tag, input, default_instance_,
5181 mutable_unknown_fields()));
5184 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
5185 input, tag, mutable_unknown_fields()));
5194 void MessageOptions::SerializeWithCachedSizes(
5195 ::google::protobuf::io::CodedOutputStream* output) const {
5196 // optional bool message_set_wire_format = 1 [default = false];
5197 if (has_message_set_wire_format()) {
5198 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->message_set_wire_format(), output);
5201 // optional bool no_standard_descriptor_accessor = 2 [default = false];
5202 if (has_no_standard_descriptor_accessor()) {
5203 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->no_standard_descriptor_accessor(), output);
5206 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5207 for (int i = 0; i < this->uninterpreted_option_size(); i++) {
5208 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5209 999, this->uninterpreted_option(i), output);
5212 // Extension range [1000, 536870912)
5213 _extensions_.SerializeWithCachedSizes(
5214 1000, 536870912, output);
5216 if (!unknown_fields().empty()) {
5217 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
5218 unknown_fields(), output);
5222 ::google::protobuf::uint8* MessageOptions::SerializeWithCachedSizesToArray(
5223 ::google::protobuf::uint8* target) const {
5224 // optional bool message_set_wire_format = 1 [default = false];
5225 if (has_message_set_wire_format()) {
5226 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->message_set_wire_format(), target);
5229 // optional bool no_standard_descriptor_accessor = 2 [default = false];
5230 if (has_no_standard_descriptor_accessor()) {
5231 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->no_standard_descriptor_accessor(), target);
5234 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5235 for (int i = 0; i < this->uninterpreted_option_size(); i++) {
5236 target = ::google::protobuf::internal::WireFormatLite::
5237 WriteMessageNoVirtualToArray(
5238 999, this->uninterpreted_option(i), target);
5241 // Extension range [1000, 536870912)
5242 target = _extensions_.SerializeWithCachedSizesToArray(
5243 1000, 536870912, target);
5245 if (!unknown_fields().empty()) {
5246 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownFieldsToArray(
5247 unknown_fields(), target);
5252 int MessageOptions::ByteSize() const {
5255 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5256 // optional bool message_set_wire_format = 1 [default = false];
5257 if (has_message_set_wire_format()) {
5258 total_size += 1 + 1;
5261 // optional bool no_standard_descriptor_accessor = 2 [default = false];
5262 if (has_no_standard_descriptor_accessor()) {
5263 total_size += 1 + 1;
5267 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5268 total_size += 2 * this->uninterpreted_option_size();
5269 for (int i = 0; i < this->uninterpreted_option_size(); i++) {
5271 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5272 this->uninterpreted_option(i));
5275 total_size += _extensions_.ByteSize();
5277 if (!unknown_fields().empty()) {
5279 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
5282 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5283 _cached_size_ = total_size;
5284 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5288 void MessageOptions::MergeFrom(const ::google::protobuf::Message& from) {
5289 GOOGLE_CHECK_NE(&from, this);
5290 const MessageOptions* source =
5291 ::google::protobuf::internal::dynamic_cast_if_available<const MessageOptions*>(
5293 if (source == NULL) {
5294 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5300 void MessageOptions::MergeFrom(const MessageOptions& from) {
5301 GOOGLE_CHECK_NE(&from, this);
5302 uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
5303 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5304 if (from.has_message_set_wire_format()) {
5305 set_message_set_wire_format(from.message_set_wire_format());
5307 if (from.has_no_standard_descriptor_accessor()) {
5308 set_no_standard_descriptor_accessor(from.no_standard_descriptor_accessor());
5311 _extensions_.MergeFrom(from._extensions_);
5312 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5315 void MessageOptions::CopyFrom(const ::google::protobuf::Message& from) {
5316 if (&from == this) return;
5321 void MessageOptions::CopyFrom(const MessageOptions& from) {
5322 if (&from == this) return;
5327 bool MessageOptions::IsInitialized() const {
5329 for (int i = 0; i < uninterpreted_option_size(); i++) {
5330 if (!this->uninterpreted_option(i).IsInitialized()) return false;
5333 if (!_extensions_.IsInitialized()) return false; return true;
5336 void MessageOptions::Swap(MessageOptions* other) {
5337 if (other != this) {
5338 std::swap(message_set_wire_format_, other->message_set_wire_format_);
5339 std::swap(no_standard_descriptor_accessor_, other->no_standard_descriptor_accessor_);
5340 uninterpreted_option_.Swap(&other->uninterpreted_option_);
5341 std::swap(_has_bits_[0], other->_has_bits_[0]);
5342 _unknown_fields_.Swap(&other->_unknown_fields_);
5343 std::swap(_cached_size_, other->_cached_size_);
5344 _extensions_.Swap(&other->_extensions_);
5348 ::google::protobuf::Metadata MessageOptions::GetMetadata() const {
5349 protobuf_AssignDescriptorsOnce();
5350 ::google::protobuf::Metadata metadata;
5351 metadata.descriptor = MessageOptions_descriptor_;
5352 metadata.reflection = MessageOptions_reflection_;
5357 // ===================================================================
5359 const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor() {
5360 protobuf_AssignDescriptorsOnce();
5361 return FieldOptions_CType_descriptor_;
5363 bool FieldOptions_CType_IsValid(int value) {
5375 const FieldOptions_CType FieldOptions::STRING;
5376 const FieldOptions_CType FieldOptions::CORD;
5377 const FieldOptions_CType FieldOptions::STRING_PIECE;
5378 const FieldOptions_CType FieldOptions::CType_MIN;
5379 const FieldOptions_CType FieldOptions::CType_MAX;
5380 const int FieldOptions::CType_ARRAYSIZE;
5383 const int FieldOptions::kCtypeFieldNumber;
5384 const int FieldOptions::kPackedFieldNumber;
5385 const int FieldOptions::kLazyFieldNumber;
5386 const int FieldOptions::kDeprecatedFieldNumber;
5387 const int FieldOptions::kExperimentalMapKeyFieldNumber;
5388 const int FieldOptions::kWeakFieldNumber;
5389 const int FieldOptions::kUninterpretedOptionFieldNumber;
5392 FieldOptions::FieldOptions()
5393 : ::google::protobuf::Message() {
5397 void FieldOptions::InitAsDefaultInstance() {
5400 FieldOptions::FieldOptions(const FieldOptions& from)
5401 : ::google::protobuf::Message() {
5406 void FieldOptions::SharedCtor() {
5411 deprecated_ = false;
5412 experimental_map_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
5414 ::memset(_has_bits_, 0, sizeof(_has_bits_));
5417 FieldOptions::~FieldOptions() {
5421 void FieldOptions::SharedDtor() {
5422 if (experimental_map_key_ != &::google::protobuf::internal::GetEmptyString()) {
5423 delete experimental_map_key_;
5425 if (this != default_instance_) {
5429 void FieldOptions::SetCachedSize(int size) const {
5430 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5431 _cached_size_ = size;
5432 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5434 const ::google::protobuf::Descriptor* FieldOptions::descriptor() {
5435 protobuf_AssignDescriptorsOnce();
5436 return FieldOptions_descriptor_;
5439 const FieldOptions& FieldOptions::default_instance() {
5440 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
5441 return *default_instance_;
5444 FieldOptions* FieldOptions::default_instance_ = NULL;
5446 FieldOptions* FieldOptions::New() const {
5447 return new FieldOptions;
5450 void FieldOptions::Clear() {
5451 _extensions_.Clear();
5452 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5456 deprecated_ = false;
5457 if (has_experimental_map_key()) {
5458 if (experimental_map_key_ != &::google::protobuf::internal::GetEmptyString()) {
5459 experimental_map_key_->clear();
5464 uninterpreted_option_.Clear();
5465 ::memset(_has_bits_, 0, sizeof(_has_bits_));
5466 mutable_unknown_fields()->Clear();
5469 bool FieldOptions::MergePartialFromCodedStream(
5470 ::google::protobuf::io::CodedInputStream* input) {
5471 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
5472 ::google::protobuf::uint32 tag;
5473 while ((tag = input->ReadTag()) != 0) {
5474 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5475 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
5477 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5478 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5480 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5481 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5483 if (::google::protobuf::FieldOptions_CType_IsValid(value)) {
5484 set_ctype(static_cast< ::google::protobuf::FieldOptions_CType >(value));
5486 mutable_unknown_fields()->AddVarint(1, value);
5489 goto handle_uninterpreted;
5491 if (input->ExpectTag(16)) goto parse_packed;
5495 // optional bool packed = 2;
5497 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5498 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5500 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5501 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5505 goto handle_uninterpreted;
5507 if (input->ExpectTag(24)) goto parse_deprecated;
5511 // optional bool deprecated = 3 [default = false];
5513 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5514 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5516 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5517 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5518 input, &deprecated_)));
5519 set_has_deprecated();
5521 goto handle_uninterpreted;
5523 if (input->ExpectTag(40)) goto parse_lazy;
5527 // optional bool lazy = 5 [default = false];
5529 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5530 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5532 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5533 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5537 goto handle_uninterpreted;
5539 if (input->ExpectTag(74)) goto parse_experimental_map_key;
5543 // optional string experimental_map_key = 9;
5545 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5546 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
5547 parse_experimental_map_key:
5548 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5549 input, this->mutable_experimental_map_key()));
5550 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5551 this->experimental_map_key().data(), this->experimental_map_key().length(),
5552 ::google::protobuf::internal::WireFormat::PARSE);
5554 goto handle_uninterpreted;
5556 if (input->ExpectTag(80)) goto parse_weak;
5560 // optional bool weak = 10 [default = false];
5562 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5563 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5565 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5566 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5570 goto handle_uninterpreted;
5572 if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
5576 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5578 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5579 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
5580 parse_uninterpreted_option:
5581 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5582 input, add_uninterpreted_option()));
5584 goto handle_uninterpreted;
5586 if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
5587 if (input->ExpectAtEnd()) return true;
5592 handle_uninterpreted:
5593 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5594 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5597 if ((8000u <= tag)) {
5598 DO_(_extensions_.ParseField(tag, input, default_instance_,
5599 mutable_unknown_fields()));
5602 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
5603 input, tag, mutable_unknown_fields()));
5612 void FieldOptions::SerializeWithCachedSizes(
5613 ::google::protobuf::io::CodedOutputStream* output) const {
5614 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
5616 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5617 1, this->ctype(), output);
5620 // optional bool packed = 2;
5622 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->packed(), output);
5625 // optional bool deprecated = 3 [default = false];
5626 if (has_deprecated()) {
5627 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output);
5630 // optional bool lazy = 5 [default = false];
5632 ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->lazy(), output);
5635 // optional string experimental_map_key = 9;
5636 if (has_experimental_map_key()) {
5637 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5638 this->experimental_map_key().data(), this->experimental_map_key().length(),
5639 ::google::protobuf::internal::WireFormat::SERIALIZE);
5640 ::google::protobuf::internal::WireFormatLite::WriteString(
5641 9, this->experimental_map_key(), output);
5644 // optional bool weak = 10 [default = false];
5646 ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->weak(), output);
5649 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5650 for (int i = 0; i < this->uninterpreted_option_size(); i++) {
5651 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5652 999, this->uninterpreted_option(i), output);
5655 // Extension range [1000, 536870912)
5656 _extensions_.SerializeWithCachedSizes(
5657 1000, 536870912, output);
5659 if (!unknown_fields().empty()) {
5660 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
5661 unknown_fields(), output);
5665 ::google::protobuf::uint8* FieldOptions::SerializeWithCachedSizesToArray(
5666 ::google::protobuf::uint8* target) const {
5667 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
5669 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5670 1, this->ctype(), target);
5673 // optional bool packed = 2;
5675 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->packed(), target);
5678 // optional bool deprecated = 3 [default = false];
5679 if (has_deprecated()) {
5680 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target);
5683 // optional bool lazy = 5 [default = false];
5685 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->lazy(), target);
5688 // optional string experimental_map_key = 9;
5689 if (has_experimental_map_key()) {
5690 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5691 this->experimental_map_key().data(), this->experimental_map_key().length(),
5692 ::google::protobuf::internal::WireFormat::SERIALIZE);
5694 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5695 9, this->experimental_map_key(), target);
5698 // optional bool weak = 10 [default = false];
5700 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->weak(), target);
5703 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5704 for (int i = 0; i < this->uninterpreted_option_size(); i++) {
5705 target = ::google::protobuf::internal::WireFormatLite::
5706 WriteMessageNoVirtualToArray(
5707 999, this->uninterpreted_option(i), target);
5710 // Extension range [1000, 536870912)
5711 target = _extensions_.SerializeWithCachedSizesToArray(
5712 1000, 536870912, target);
5714 if (!unknown_fields().empty()) {
5715 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownFieldsToArray(
5716 unknown_fields(), target);
5721 int FieldOptions::ByteSize() const {
5724 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5725 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
5728 ::google::protobuf::internal::WireFormatLite::EnumSize(this->ctype());
5731 // optional bool packed = 2;
5733 total_size += 1 + 1;
5736 // optional bool lazy = 5 [default = false];
5738 total_size += 1 + 1;
5741 // optional bool deprecated = 3 [default = false];
5742 if (has_deprecated()) {
5743 total_size += 1 + 1;
5746 // optional string experimental_map_key = 9;
5747 if (has_experimental_map_key()) {
5749 ::google::protobuf::internal::WireFormatLite::StringSize(
5750 this->experimental_map_key());
5753 // optional bool weak = 10 [default = false];
5755 total_size += 1 + 1;
5759 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5760 total_size += 2 * this->uninterpreted_option_size();
5761 for (int i = 0; i < this->uninterpreted_option_size(); i++) {
5763 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5764 this->uninterpreted_option(i));
5767 total_size += _extensions_.ByteSize();
5769 if (!unknown_fields().empty()) {
5771 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
5774 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5775 _cached_size_ = total_size;
5776 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5780 void FieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
5781 GOOGLE_CHECK_NE(&from, this);
5782 const FieldOptions* source =
5783 ::google::protobuf::internal::dynamic_cast_if_available<const FieldOptions*>(
5785 if (source == NULL) {
5786 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5792 void FieldOptions::MergeFrom(const FieldOptions& from) {
5793 GOOGLE_CHECK_NE(&from, this);
5794 uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
5795 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5796 if (from.has_ctype()) {
5797 set_ctype(from.ctype());
5799 if (from.has_packed()) {
5800 set_packed(from.packed());
5802 if (from.has_lazy()) {
5803 set_lazy(from.lazy());
5805 if (from.has_deprecated()) {
5806 set_deprecated(from.deprecated());
5808 if (from.has_experimental_map_key()) {
5809 set_experimental_map_key(from.experimental_map_key());
5811 if (from.has_weak()) {
5812 set_weak(from.weak());
5815 _extensions_.MergeFrom(from._extensions_);
5816 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5819 void FieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
5820 if (&from == this) return;
5825 void FieldOptions::CopyFrom(const FieldOptions& from) {
5826 if (&from == this) return;
5831 bool FieldOptions::IsInitialized() const {
5833 for (int i = 0; i < uninterpreted_option_size(); i++) {
5834 if (!this->uninterpreted_option(i).IsInitialized()) return false;
5837 if (!_extensions_.IsInitialized()) return false; return true;
5840 void FieldOptions::Swap(FieldOptions* other) {
5841 if (other != this) {
5842 std::swap(ctype_, other->ctype_);
5843 std::swap(packed_, other->packed_);
5844 std::swap(lazy_, other->lazy_);
5845 std::swap(deprecated_, other->deprecated_);
5846 std::swap(experimental_map_key_, other->experimental_map_key_);
5847 std::swap(weak_, other->weak_);
5848 uninterpreted_option_.Swap(&other->uninterpreted_option_);
5849 std::swap(_has_bits_[0], other->_has_bits_[0]);
5850 _unknown_fields_.Swap(&other->_unknown_fields_);
5851 std::swap(_cached_size_, other->_cached_size_);
5852 _extensions_.Swap(&other->_extensions_);
5856 ::google::protobuf::Metadata FieldOptions::GetMetadata() const {
5857 protobuf_AssignDescriptorsOnce();
5858 ::google::protobuf::Metadata metadata;
5859 metadata.descriptor = FieldOptions_descriptor_;
5860 metadata.reflection = FieldOptions_reflection_;
5865 // ===================================================================
5868 const int EnumOptions::kAllowAliasFieldNumber;
5869 const int EnumOptions::kUninterpretedOptionFieldNumber;
5872 EnumOptions::EnumOptions()
5873 : ::google::protobuf::Message() {
5877 void EnumOptions::InitAsDefaultInstance() {
5880 EnumOptions::EnumOptions(const EnumOptions& from)
5881 : ::google::protobuf::Message() {
5886 void EnumOptions::SharedCtor() {
5888 allow_alias_ = true;
5889 ::memset(_has_bits_, 0, sizeof(_has_bits_));
5892 EnumOptions::~EnumOptions() {
5896 void EnumOptions::SharedDtor() {
5897 if (this != default_instance_) {
5901 void EnumOptions::SetCachedSize(int size) const {
5902 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5903 _cached_size_ = size;
5904 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5906 const ::google::protobuf::Descriptor* EnumOptions::descriptor() {
5907 protobuf_AssignDescriptorsOnce();
5908 return EnumOptions_descriptor_;
5911 const EnumOptions& EnumOptions::default_instance() {
5912 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
5913 return *default_instance_;
5916 EnumOptions* EnumOptions::default_instance_ = NULL;
5918 EnumOptions* EnumOptions::New() const {
5919 return new EnumOptions;
5922 void EnumOptions::Clear() {
5923 _extensions_.Clear();
5924 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5925 allow_alias_ = true;
5927 uninterpreted_option_.Clear();
5928 ::memset(_has_bits_, 0, sizeof(_has_bits_));
5929 mutable_unknown_fields()->Clear();
5932 bool EnumOptions::MergePartialFromCodedStream(
5933 ::google::protobuf::io::CodedInputStream* input) {
5934 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
5935 ::google::protobuf::uint32 tag;
5936 while ((tag = input->ReadTag()) != 0) {
5937 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5938 // optional bool allow_alias = 2 [default = true];
5940 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5941 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5942 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5943 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5944 input, &allow_alias_)));
5945 set_has_allow_alias();
5947 goto handle_uninterpreted;
5949 if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
5953 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5955 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5956 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
5957 parse_uninterpreted_option:
5958 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5959 input, add_uninterpreted_option()));
5961 goto handle_uninterpreted;
5963 if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
5964 if (input->ExpectAtEnd()) return true;
5969 handle_uninterpreted:
5970 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5971 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5974 if ((8000u <= tag)) {
5975 DO_(_extensions_.ParseField(tag, input, default_instance_,
5976 mutable_unknown_fields()));
5979 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
5980 input, tag, mutable_unknown_fields()));
5989 void EnumOptions::SerializeWithCachedSizes(
5990 ::google::protobuf::io::CodedOutputStream* output) const {
5991 // optional bool allow_alias = 2 [default = true];
5992 if (has_allow_alias()) {
5993 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->allow_alias(), output);
5996 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5997 for (int i = 0; i < this->uninterpreted_option_size(); i++) {
5998 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5999 999, this->uninterpreted_option(i), output);
6002 // Extension range [1000, 536870912)
6003 _extensions_.SerializeWithCachedSizes(
6004 1000, 536870912, output);
6006 if (!unknown_fields().empty()) {
6007 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
6008 unknown_fields(), output);
6012 ::google::protobuf::uint8* EnumOptions::SerializeWithCachedSizesToArray(
6013 ::google::protobuf::uint8* target) const {
6014 // optional bool allow_alias = 2 [default = true];
6015 if (has_allow_alias()) {
6016 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->allow_alias(), target);
6019 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6020 for (int i = 0; i < this->uninterpreted_option_size(); i++) {
6021 target = ::google::protobuf::internal::WireFormatLite::
6022 WriteMessageNoVirtualToArray(
6023 999, this->uninterpreted_option(i), target);
6026 // Extension range [1000, 536870912)
6027 target = _extensions_.SerializeWithCachedSizesToArray(
6028 1000, 536870912, target);
6030 if (!unknown_fields().empty()) {
6031 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownFieldsToArray(
6032 unknown_fields(), target);
6037 int EnumOptions::ByteSize() const {
6040 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6041 // optional bool allow_alias = 2 [default = true];
6042 if (has_allow_alias()) {
6043 total_size += 1 + 1;
6047 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6048 total_size += 2 * this->uninterpreted_option_size();
6049 for (int i = 0; i < this->uninterpreted_option_size(); i++) {
6051 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6052 this->uninterpreted_option(i));
6055 total_size += _extensions_.ByteSize();
6057 if (!unknown_fields().empty()) {
6059 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
6062 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6063 _cached_size_ = total_size;
6064 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6068 void EnumOptions::MergeFrom(const ::google::protobuf::Message& from) {
6069 GOOGLE_CHECK_NE(&from, this);
6070 const EnumOptions* source =
6071 ::google::protobuf::internal::dynamic_cast_if_available<const EnumOptions*>(
6073 if (source == NULL) {
6074 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6080 void EnumOptions::MergeFrom(const EnumOptions& from) {
6081 GOOGLE_CHECK_NE(&from, this);
6082 uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
6083 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6084 if (from.has_allow_alias()) {
6085 set_allow_alias(from.allow_alias());
6088 _extensions_.MergeFrom(from._extensions_);
6089 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6092 void EnumOptions::CopyFrom(const ::google::protobuf::Message& from) {
6093 if (&from == this) return;
6098 void EnumOptions::CopyFrom(const EnumOptions& from) {
6099 if (&from == this) return;
6104 bool EnumOptions::IsInitialized() const {
6106 for (int i = 0; i < uninterpreted_option_size(); i++) {
6107 if (!this->uninterpreted_option(i).IsInitialized()) return false;
6110 if (!_extensions_.IsInitialized()) return false; return true;
6113 void EnumOptions::Swap(EnumOptions* other) {
6114 if (other != this) {
6115 std::swap(allow_alias_, other->allow_alias_);
6116 uninterpreted_option_.Swap(&other->uninterpreted_option_);
6117 std::swap(_has_bits_[0], other->_has_bits_[0]);
6118 _unknown_fields_.Swap(&other->_unknown_fields_);
6119 std::swap(_cached_size_, other->_cached_size_);
6120 _extensions_.Swap(&other->_extensions_);
6124 ::google::protobuf::Metadata EnumOptions::GetMetadata() const {
6125 protobuf_AssignDescriptorsOnce();
6126 ::google::protobuf::Metadata metadata;
6127 metadata.descriptor = EnumOptions_descriptor_;
6128 metadata.reflection = EnumOptions_reflection_;
6133 // ===================================================================
6136 const int EnumValueOptions::kUninterpretedOptionFieldNumber;
6139 EnumValueOptions::EnumValueOptions()
6140 : ::google::protobuf::Message() {
6144 void EnumValueOptions::InitAsDefaultInstance() {
6147 EnumValueOptions::EnumValueOptions(const EnumValueOptions& from)
6148 : ::google::protobuf::Message() {
6153 void EnumValueOptions::SharedCtor() {
6155 ::memset(_has_bits_, 0, sizeof(_has_bits_));
6158 EnumValueOptions::~EnumValueOptions() {
6162 void EnumValueOptions::SharedDtor() {
6163 if (this != default_instance_) {
6167 void EnumValueOptions::SetCachedSize(int size) const {
6168 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6169 _cached_size_ = size;
6170 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6172 const ::google::protobuf::Descriptor* EnumValueOptions::descriptor() {
6173 protobuf_AssignDescriptorsOnce();
6174 return EnumValueOptions_descriptor_;
6177 const EnumValueOptions& EnumValueOptions::default_instance() {
6178 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
6179 return *default_instance_;
6182 EnumValueOptions* EnumValueOptions::default_instance_ = NULL;
6184 EnumValueOptions* EnumValueOptions::New() const {
6185 return new EnumValueOptions;
6188 void EnumValueOptions::Clear() {
6189 _extensions_.Clear();
6190 uninterpreted_option_.Clear();
6191 ::memset(_has_bits_, 0, sizeof(_has_bits_));
6192 mutable_unknown_fields()->Clear();
6195 bool EnumValueOptions::MergePartialFromCodedStream(
6196 ::google::protobuf::io::CodedInputStream* input) {
6197 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
6198 ::google::protobuf::uint32 tag;
6199 while ((tag = input->ReadTag()) != 0) {
6200 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6201 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6203 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6204 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6205 parse_uninterpreted_option:
6206 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6207 input, add_uninterpreted_option()));
6209 goto handle_uninterpreted;
6211 if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
6212 if (input->ExpectAtEnd()) return true;
6217 handle_uninterpreted:
6218 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6219 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6222 if ((8000u <= tag)) {
6223 DO_(_extensions_.ParseField(tag, input, default_instance_,
6224 mutable_unknown_fields()));
6227 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
6228 input, tag, mutable_unknown_fields()));
6237 void EnumValueOptions::SerializeWithCachedSizes(
6238 ::google::protobuf::io::CodedOutputStream* output) const {
6239 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6240 for (int i = 0; i < this->uninterpreted_option_size(); i++) {
6241 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6242 999, this->uninterpreted_option(i), output);
6245 // Extension range [1000, 536870912)
6246 _extensions_.SerializeWithCachedSizes(
6247 1000, 536870912, output);
6249 if (!unknown_fields().empty()) {
6250 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
6251 unknown_fields(), output);
6255 ::google::protobuf::uint8* EnumValueOptions::SerializeWithCachedSizesToArray(
6256 ::google::protobuf::uint8* target) const {
6257 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6258 for (int i = 0; i < this->uninterpreted_option_size(); i++) {
6259 target = ::google::protobuf::internal::WireFormatLite::
6260 WriteMessageNoVirtualToArray(
6261 999, this->uninterpreted_option(i), target);
6264 // Extension range [1000, 536870912)
6265 target = _extensions_.SerializeWithCachedSizesToArray(
6266 1000, 536870912, target);
6268 if (!unknown_fields().empty()) {
6269 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownFieldsToArray(
6270 unknown_fields(), target);
6275 int EnumValueOptions::ByteSize() const {
6278 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6279 total_size += 2 * this->uninterpreted_option_size();
6280 for (int i = 0; i < this->uninterpreted_option_size(); i++) {
6282 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6283 this->uninterpreted_option(i));
6286 total_size += _extensions_.ByteSize();
6288 if (!unknown_fields().empty()) {
6290 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
6293 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6294 _cached_size_ = total_size;
6295 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6299 void EnumValueOptions::MergeFrom(const ::google::protobuf::Message& from) {
6300 GOOGLE_CHECK_NE(&from, this);
6301 const EnumValueOptions* source =
6302 ::google::protobuf::internal::dynamic_cast_if_available<const EnumValueOptions*>(
6304 if (source == NULL) {
6305 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6311 void EnumValueOptions::MergeFrom(const EnumValueOptions& from) {
6312 GOOGLE_CHECK_NE(&from, this);
6313 uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
6314 _extensions_.MergeFrom(from._extensions_);
6315 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6318 void EnumValueOptions::CopyFrom(const ::google::protobuf::Message& from) {
6319 if (&from == this) return;
6324 void EnumValueOptions::CopyFrom(const EnumValueOptions& from) {
6325 if (&from == this) return;
6330 bool EnumValueOptions::IsInitialized() const {
6332 for (int i = 0; i < uninterpreted_option_size(); i++) {
6333 if (!this->uninterpreted_option(i).IsInitialized()) return false;
6336 if (!_extensions_.IsInitialized()) return false; return true;
6339 void EnumValueOptions::Swap(EnumValueOptions* other) {
6340 if (other != this) {
6341 uninterpreted_option_.Swap(&other->uninterpreted_option_);
6342 std::swap(_has_bits_[0], other->_has_bits_[0]);
6343 _unknown_fields_.Swap(&other->_unknown_fields_);
6344 std::swap(_cached_size_, other->_cached_size_);
6345 _extensions_.Swap(&other->_extensions_);
6349 ::google::protobuf::Metadata EnumValueOptions::GetMetadata() const {
6350 protobuf_AssignDescriptorsOnce();
6351 ::google::protobuf::Metadata metadata;
6352 metadata.descriptor = EnumValueOptions_descriptor_;
6353 metadata.reflection = EnumValueOptions_reflection_;
6358 // ===================================================================
6361 const int ServiceOptions::kUninterpretedOptionFieldNumber;
6364 ServiceOptions::ServiceOptions()
6365 : ::google::protobuf::Message() {
6369 void ServiceOptions::InitAsDefaultInstance() {
6372 ServiceOptions::ServiceOptions(const ServiceOptions& from)
6373 : ::google::protobuf::Message() {
6378 void ServiceOptions::SharedCtor() {
6380 ::memset(_has_bits_, 0, sizeof(_has_bits_));
6383 ServiceOptions::~ServiceOptions() {
6387 void ServiceOptions::SharedDtor() {
6388 if (this != default_instance_) {
6392 void ServiceOptions::SetCachedSize(int size) const {
6393 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6394 _cached_size_ = size;
6395 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6397 const ::google::protobuf::Descriptor* ServiceOptions::descriptor() {
6398 protobuf_AssignDescriptorsOnce();
6399 return ServiceOptions_descriptor_;
6402 const ServiceOptions& ServiceOptions::default_instance() {
6403 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
6404 return *default_instance_;
6407 ServiceOptions* ServiceOptions::default_instance_ = NULL;
6409 ServiceOptions* ServiceOptions::New() const {
6410 return new ServiceOptions;
6413 void ServiceOptions::Clear() {
6414 _extensions_.Clear();
6415 uninterpreted_option_.Clear();
6416 ::memset(_has_bits_, 0, sizeof(_has_bits_));
6417 mutable_unknown_fields()->Clear();
6420 bool ServiceOptions::MergePartialFromCodedStream(
6421 ::google::protobuf::io::CodedInputStream* input) {
6422 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
6423 ::google::protobuf::uint32 tag;
6424 while ((tag = input->ReadTag()) != 0) {
6425 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6426 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6428 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6429 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6430 parse_uninterpreted_option:
6431 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6432 input, add_uninterpreted_option()));
6434 goto handle_uninterpreted;
6436 if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
6437 if (input->ExpectAtEnd()) return true;
6442 handle_uninterpreted:
6443 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6444 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6447 if ((8000u <= tag)) {
6448 DO_(_extensions_.ParseField(tag, input, default_instance_,
6449 mutable_unknown_fields()));
6452 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
6453 input, tag, mutable_unknown_fields()));
6462 void ServiceOptions::SerializeWithCachedSizes(
6463 ::google::protobuf::io::CodedOutputStream* output) const {
6464 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6465 for (int i = 0; i < this->uninterpreted_option_size(); i++) {
6466 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6467 999, this->uninterpreted_option(i), output);
6470 // Extension range [1000, 536870912)
6471 _extensions_.SerializeWithCachedSizes(
6472 1000, 536870912, output);
6474 if (!unknown_fields().empty()) {
6475 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
6476 unknown_fields(), output);
6480 ::google::protobuf::uint8* ServiceOptions::SerializeWithCachedSizesToArray(
6481 ::google::protobuf::uint8* target) const {
6482 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6483 for (int i = 0; i < this->uninterpreted_option_size(); i++) {
6484 target = ::google::protobuf::internal::WireFormatLite::
6485 WriteMessageNoVirtualToArray(
6486 999, this->uninterpreted_option(i), target);
6489 // Extension range [1000, 536870912)
6490 target = _extensions_.SerializeWithCachedSizesToArray(
6491 1000, 536870912, target);
6493 if (!unknown_fields().empty()) {
6494 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownFieldsToArray(
6495 unknown_fields(), target);
6500 int ServiceOptions::ByteSize() const {
6503 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6504 total_size += 2 * this->uninterpreted_option_size();
6505 for (int i = 0; i < this->uninterpreted_option_size(); i++) {
6507 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6508 this->uninterpreted_option(i));
6511 total_size += _extensions_.ByteSize();
6513 if (!unknown_fields().empty()) {
6515 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
6518 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6519 _cached_size_ = total_size;
6520 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6524 void ServiceOptions::MergeFrom(const ::google::protobuf::Message& from) {
6525 GOOGLE_CHECK_NE(&from, this);
6526 const ServiceOptions* source =
6527 ::google::protobuf::internal::dynamic_cast_if_available<const ServiceOptions*>(
6529 if (source == NULL) {
6530 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6536 void ServiceOptions::MergeFrom(const ServiceOptions& from) {
6537 GOOGLE_CHECK_NE(&from, this);
6538 uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
6539 _extensions_.MergeFrom(from._extensions_);
6540 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6543 void ServiceOptions::CopyFrom(const ::google::protobuf::Message& from) {
6544 if (&from == this) return;
6549 void ServiceOptions::CopyFrom(const ServiceOptions& from) {
6550 if (&from == this) return;
6555 bool ServiceOptions::IsInitialized() const {
6557 for (int i = 0; i < uninterpreted_option_size(); i++) {
6558 if (!this->uninterpreted_option(i).IsInitialized()) return false;
6561 if (!_extensions_.IsInitialized()) return false; return true;
6564 void ServiceOptions::Swap(ServiceOptions* other) {
6565 if (other != this) {
6566 uninterpreted_option_.Swap(&other->uninterpreted_option_);
6567 std::swap(_has_bits_[0], other->_has_bits_[0]);
6568 _unknown_fields_.Swap(&other->_unknown_fields_);
6569 std::swap(_cached_size_, other->_cached_size_);
6570 _extensions_.Swap(&other->_extensions_);
6574 ::google::protobuf::Metadata ServiceOptions::GetMetadata() const {
6575 protobuf_AssignDescriptorsOnce();
6576 ::google::protobuf::Metadata metadata;
6577 metadata.descriptor = ServiceOptions_descriptor_;
6578 metadata.reflection = ServiceOptions_reflection_;
6583 // ===================================================================
6586 const int MethodOptions::kUninterpretedOptionFieldNumber;
6589 MethodOptions::MethodOptions()
6590 : ::google::protobuf::Message() {
6594 void MethodOptions::InitAsDefaultInstance() {
6597 MethodOptions::MethodOptions(const MethodOptions& from)
6598 : ::google::protobuf::Message() {
6603 void MethodOptions::SharedCtor() {
6605 ::memset(_has_bits_, 0, sizeof(_has_bits_));
6608 MethodOptions::~MethodOptions() {
6612 void MethodOptions::SharedDtor() {
6613 if (this != default_instance_) {
6617 void MethodOptions::SetCachedSize(int size) const {
6618 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6619 _cached_size_ = size;
6620 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6622 const ::google::protobuf::Descriptor* MethodOptions::descriptor() {
6623 protobuf_AssignDescriptorsOnce();
6624 return MethodOptions_descriptor_;
6627 const MethodOptions& MethodOptions::default_instance() {
6628 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
6629 return *default_instance_;
6632 MethodOptions* MethodOptions::default_instance_ = NULL;
6634 MethodOptions* MethodOptions::New() const {
6635 return new MethodOptions;
6638 void MethodOptions::Clear() {
6639 _extensions_.Clear();
6640 uninterpreted_option_.Clear();
6641 ::memset(_has_bits_, 0, sizeof(_has_bits_));
6642 mutable_unknown_fields()->Clear();
6645 bool MethodOptions::MergePartialFromCodedStream(
6646 ::google::protobuf::io::CodedInputStream* input) {
6647 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
6648 ::google::protobuf::uint32 tag;
6649 while ((tag = input->ReadTag()) != 0) {
6650 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6651 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6653 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6654 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6655 parse_uninterpreted_option:
6656 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6657 input, add_uninterpreted_option()));
6659 goto handle_uninterpreted;
6661 if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
6662 if (input->ExpectAtEnd()) return true;
6667 handle_uninterpreted:
6668 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6669 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6672 if ((8000u <= tag)) {
6673 DO_(_extensions_.ParseField(tag, input, default_instance_,
6674 mutable_unknown_fields()));
6677 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
6678 input, tag, mutable_unknown_fields()));
6687 void MethodOptions::SerializeWithCachedSizes(
6688 ::google::protobuf::io::CodedOutputStream* output) const {
6689 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6690 for (int i = 0; i < this->uninterpreted_option_size(); i++) {
6691 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6692 999, this->uninterpreted_option(i), output);
6695 // Extension range [1000, 536870912)
6696 _extensions_.SerializeWithCachedSizes(
6697 1000, 536870912, output);
6699 if (!unknown_fields().empty()) {
6700 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
6701 unknown_fields(), output);
6705 ::google::protobuf::uint8* MethodOptions::SerializeWithCachedSizesToArray(
6706 ::google::protobuf::uint8* target) const {
6707 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6708 for (int i = 0; i < this->uninterpreted_option_size(); i++) {
6709 target = ::google::protobuf::internal::WireFormatLite::
6710 WriteMessageNoVirtualToArray(
6711 999, this->uninterpreted_option(i), target);
6714 // Extension range [1000, 536870912)
6715 target = _extensions_.SerializeWithCachedSizesToArray(
6716 1000, 536870912, target);
6718 if (!unknown_fields().empty()) {
6719 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownFieldsToArray(
6720 unknown_fields(), target);
6725 int MethodOptions::ByteSize() const {
6728 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6729 total_size += 2 * this->uninterpreted_option_size();
6730 for (int i = 0; i < this->uninterpreted_option_size(); i++) {
6732 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6733 this->uninterpreted_option(i));
6736 total_size += _extensions_.ByteSize();
6738 if (!unknown_fields().empty()) {
6740 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
6743 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6744 _cached_size_ = total_size;
6745 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6749 void MethodOptions::MergeFrom(const ::google::protobuf::Message& from) {
6750 GOOGLE_CHECK_NE(&from, this);
6751 const MethodOptions* source =
6752 ::google::protobuf::internal::dynamic_cast_if_available<const MethodOptions*>(
6754 if (source == NULL) {
6755 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6761 void MethodOptions::MergeFrom(const MethodOptions& from) {
6762 GOOGLE_CHECK_NE(&from, this);
6763 uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
6764 _extensions_.MergeFrom(from._extensions_);
6765 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6768 void MethodOptions::CopyFrom(const ::google::protobuf::Message& from) {
6769 if (&from == this) return;
6774 void MethodOptions::CopyFrom(const MethodOptions& from) {
6775 if (&from == this) return;
6780 bool MethodOptions::IsInitialized() const {
6782 for (int i = 0; i < uninterpreted_option_size(); i++) {
6783 if (!this->uninterpreted_option(i).IsInitialized()) return false;
6786 if (!_extensions_.IsInitialized()) return false; return true;
6789 void MethodOptions::Swap(MethodOptions* other) {
6790 if (other != this) {
6791 uninterpreted_option_.Swap(&other->uninterpreted_option_);
6792 std::swap(_has_bits_[0], other->_has_bits_[0]);
6793 _unknown_fields_.Swap(&other->_unknown_fields_);
6794 std::swap(_cached_size_, other->_cached_size_);
6795 _extensions_.Swap(&other->_extensions_);
6799 ::google::protobuf::Metadata MethodOptions::GetMetadata() const {
6800 protobuf_AssignDescriptorsOnce();
6801 ::google::protobuf::Metadata metadata;
6802 metadata.descriptor = MethodOptions_descriptor_;
6803 metadata.reflection = MethodOptions_reflection_;
6808 // ===================================================================
6811 const int UninterpretedOption_NamePart::kNamePartFieldNumber;
6812 const int UninterpretedOption_NamePart::kIsExtensionFieldNumber;
6815 UninterpretedOption_NamePart::UninterpretedOption_NamePart()
6816 : ::google::protobuf::Message() {
6820 void UninterpretedOption_NamePart::InitAsDefaultInstance() {
6823 UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from)
6824 : ::google::protobuf::Message() {
6829 void UninterpretedOption_NamePart::SharedCtor() {
6831 name_part_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
6832 is_extension_ = false;
6833 ::memset(_has_bits_, 0, sizeof(_has_bits_));
6836 UninterpretedOption_NamePart::~UninterpretedOption_NamePart() {
6840 void UninterpretedOption_NamePart::SharedDtor() {
6841 if (name_part_ != &::google::protobuf::internal::GetEmptyString()) {
6844 if (this != default_instance_) {
6848 void UninterpretedOption_NamePart::SetCachedSize(int size) const {
6849 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6850 _cached_size_ = size;
6851 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6853 const ::google::protobuf::Descriptor* UninterpretedOption_NamePart::descriptor() {
6854 protobuf_AssignDescriptorsOnce();
6855 return UninterpretedOption_NamePart_descriptor_;
6858 const UninterpretedOption_NamePart& UninterpretedOption_NamePart::default_instance() {
6859 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
6860 return *default_instance_;
6863 UninterpretedOption_NamePart* UninterpretedOption_NamePart::default_instance_ = NULL;
6865 UninterpretedOption_NamePart* UninterpretedOption_NamePart::New() const {
6866 return new UninterpretedOption_NamePart;
6869 void UninterpretedOption_NamePart::Clear() {
6870 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6871 if (has_name_part()) {
6872 if (name_part_ != &::google::protobuf::internal::GetEmptyString()) {
6873 name_part_->clear();
6876 is_extension_ = false;
6878 ::memset(_has_bits_, 0, sizeof(_has_bits_));
6879 mutable_unknown_fields()->Clear();
6882 bool UninterpretedOption_NamePart::MergePartialFromCodedStream(
6883 ::google::protobuf::io::CodedInputStream* input) {
6884 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
6885 ::google::protobuf::uint32 tag;
6886 while ((tag = input->ReadTag()) != 0) {
6887 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6888 // required string name_part = 1;
6890 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6891 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6892 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6893 input, this->mutable_name_part()));
6894 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6895 this->name_part().data(), this->name_part().length(),
6896 ::google::protobuf::internal::WireFormat::PARSE);
6898 goto handle_uninterpreted;
6900 if (input->ExpectTag(16)) goto parse_is_extension;
6904 // required bool is_extension = 2;
6906 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6907 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
6909 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6910 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6911 input, &is_extension_)));
6912 set_has_is_extension();
6914 goto handle_uninterpreted;
6916 if (input->ExpectAtEnd()) return true;
6921 handle_uninterpreted:
6922 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6923 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6926 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
6927 input, tag, mutable_unknown_fields()));
6936 void UninterpretedOption_NamePart::SerializeWithCachedSizes(
6937 ::google::protobuf::io::CodedOutputStream* output) const {
6938 // required string name_part = 1;
6939 if (has_name_part()) {
6940 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6941 this->name_part().data(), this->name_part().length(),
6942 ::google::protobuf::internal::WireFormat::SERIALIZE);
6943 ::google::protobuf::internal::WireFormatLite::WriteString(
6944 1, this->name_part(), output);
6947 // required bool is_extension = 2;
6948 if (has_is_extension()) {
6949 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_extension(), output);
6952 if (!unknown_fields().empty()) {
6953 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
6954 unknown_fields(), output);
6958 ::google::protobuf::uint8* UninterpretedOption_NamePart::SerializeWithCachedSizesToArray(
6959 ::google::protobuf::uint8* target) const {
6960 // required string name_part = 1;
6961 if (has_name_part()) {
6962 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6963 this->name_part().data(), this->name_part().length(),
6964 ::google::protobuf::internal::WireFormat::SERIALIZE);
6966 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6967 1, this->name_part(), target);
6970 // required bool is_extension = 2;
6971 if (has_is_extension()) {
6972 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_extension(), target);
6975 if (!unknown_fields().empty()) {
6976 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownFieldsToArray(
6977 unknown_fields(), target);
6982 int UninterpretedOption_NamePart::ByteSize() const {
6985 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6986 // required string name_part = 1;
6987 if (has_name_part()) {
6989 ::google::protobuf::internal::WireFormatLite::StringSize(
6993 // required bool is_extension = 2;
6994 if (has_is_extension()) {
6995 total_size += 1 + 1;
6999 if (!unknown_fields().empty()) {
7001 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
7004 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7005 _cached_size_ = total_size;
7006 GOOGLE_SAFE_CONCURRENT_WRITES_END();
7010 void UninterpretedOption_NamePart::MergeFrom(const ::google::protobuf::Message& from) {
7011 GOOGLE_CHECK_NE(&from, this);
7012 const UninterpretedOption_NamePart* source =
7013 ::google::protobuf::internal::dynamic_cast_if_available<const UninterpretedOption_NamePart*>(
7015 if (source == NULL) {
7016 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7022 void UninterpretedOption_NamePart::MergeFrom(const UninterpretedOption_NamePart& from) {
7023 GOOGLE_CHECK_NE(&from, this);
7024 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
7025 if (from.has_name_part()) {
7026 set_name_part(from.name_part());
7028 if (from.has_is_extension()) {
7029 set_is_extension(from.is_extension());
7032 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
7035 void UninterpretedOption_NamePart::CopyFrom(const ::google::protobuf::Message& from) {
7036 if (&from == this) return;
7041 void UninterpretedOption_NamePart::CopyFrom(const UninterpretedOption_NamePart& from) {
7042 if (&from == this) return;
7047 bool UninterpretedOption_NamePart::IsInitialized() const {
7048 if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
7053 void UninterpretedOption_NamePart::Swap(UninterpretedOption_NamePart* other) {
7054 if (other != this) {
7055 std::swap(name_part_, other->name_part_);
7056 std::swap(is_extension_, other->is_extension_);
7057 std::swap(_has_bits_[0], other->_has_bits_[0]);
7058 _unknown_fields_.Swap(&other->_unknown_fields_);
7059 std::swap(_cached_size_, other->_cached_size_);
7063 ::google::protobuf::Metadata UninterpretedOption_NamePart::GetMetadata() const {
7064 protobuf_AssignDescriptorsOnce();
7065 ::google::protobuf::Metadata metadata;
7066 metadata.descriptor = UninterpretedOption_NamePart_descriptor_;
7067 metadata.reflection = UninterpretedOption_NamePart_reflection_;
7072 // -------------------------------------------------------------------
7075 const int UninterpretedOption::kNameFieldNumber;
7076 const int UninterpretedOption::kIdentifierValueFieldNumber;
7077 const int UninterpretedOption::kPositiveIntValueFieldNumber;
7078 const int UninterpretedOption::kNegativeIntValueFieldNumber;
7079 const int UninterpretedOption::kDoubleValueFieldNumber;
7080 const int UninterpretedOption::kStringValueFieldNumber;
7081 const int UninterpretedOption::kAggregateValueFieldNumber;
7084 UninterpretedOption::UninterpretedOption()
7085 : ::google::protobuf::Message() {
7089 void UninterpretedOption::InitAsDefaultInstance() {
7092 UninterpretedOption::UninterpretedOption(const UninterpretedOption& from)
7093 : ::google::protobuf::Message() {
7098 void UninterpretedOption::SharedCtor() {
7100 identifier_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
7101 positive_int_value_ = GOOGLE_ULONGLONG(0);
7102 negative_int_value_ = GOOGLE_LONGLONG(0);
7104 string_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
7105 aggregate_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
7106 ::memset(_has_bits_, 0, sizeof(_has_bits_));
7109 UninterpretedOption::~UninterpretedOption() {
7113 void UninterpretedOption::SharedDtor() {
7114 if (identifier_value_ != &::google::protobuf::internal::GetEmptyString()) {
7115 delete identifier_value_;
7117 if (string_value_ != &::google::protobuf::internal::GetEmptyString()) {
7118 delete string_value_;
7120 if (aggregate_value_ != &::google::protobuf::internal::GetEmptyString()) {
7121 delete aggregate_value_;
7123 if (this != default_instance_) {
7127 void UninterpretedOption::SetCachedSize(int size) const {
7128 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7129 _cached_size_ = size;
7130 GOOGLE_SAFE_CONCURRENT_WRITES_END();
7132 const ::google::protobuf::Descriptor* UninterpretedOption::descriptor() {
7133 protobuf_AssignDescriptorsOnce();
7134 return UninterpretedOption_descriptor_;
7137 const UninterpretedOption& UninterpretedOption::default_instance() {
7138 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
7139 return *default_instance_;
7142 UninterpretedOption* UninterpretedOption::default_instance_ = NULL;
7144 UninterpretedOption* UninterpretedOption::New() const {
7145 return new UninterpretedOption;
7148 void UninterpretedOption::Clear() {
7149 if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
7150 if (has_identifier_value()) {
7151 if (identifier_value_ != &::google::protobuf::internal::GetEmptyString()) {
7152 identifier_value_->clear();
7155 positive_int_value_ = GOOGLE_ULONGLONG(0);
7156 negative_int_value_ = GOOGLE_LONGLONG(0);
7158 if (has_string_value()) {
7159 if (string_value_ != &::google::protobuf::internal::GetEmptyString()) {
7160 string_value_->clear();
7163 if (has_aggregate_value()) {
7164 if (aggregate_value_ != &::google::protobuf::internal::GetEmptyString()) {
7165 aggregate_value_->clear();
7170 ::memset(_has_bits_, 0, sizeof(_has_bits_));
7171 mutable_unknown_fields()->Clear();
7174 bool UninterpretedOption::MergePartialFromCodedStream(
7175 ::google::protobuf::io::CodedInputStream* input) {
7176 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
7177 ::google::protobuf::uint32 tag;
7178 while ((tag = input->ReadTag()) != 0) {
7179 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7180 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
7182 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7183 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
7185 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7186 input, add_name()));
7188 goto handle_uninterpreted;
7190 if (input->ExpectTag(18)) goto parse_name;
7191 if (input->ExpectTag(26)) goto parse_identifier_value;
7195 // optional string identifier_value = 3;
7197 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7198 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
7199 parse_identifier_value:
7200 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7201 input, this->mutable_identifier_value()));
7202 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
7203 this->identifier_value().data(), this->identifier_value().length(),
7204 ::google::protobuf::internal::WireFormat::PARSE);
7206 goto handle_uninterpreted;
7208 if (input->ExpectTag(32)) goto parse_positive_int_value;
7212 // optional uint64 positive_int_value = 4;
7214 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7215 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
7216 parse_positive_int_value:
7217 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7218 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
7219 input, &positive_int_value_)));
7220 set_has_positive_int_value();
7222 goto handle_uninterpreted;
7224 if (input->ExpectTag(40)) goto parse_negative_int_value;
7228 // optional int64 negative_int_value = 5;
7230 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7231 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
7232 parse_negative_int_value:
7233 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7234 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
7235 input, &negative_int_value_)));
7236 set_has_negative_int_value();
7238 goto handle_uninterpreted;
7240 if (input->ExpectTag(49)) goto parse_double_value;
7244 // optional double double_value = 6;
7246 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7247 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
7249 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7250 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
7251 input, &double_value_)));
7252 set_has_double_value();
7254 goto handle_uninterpreted;
7256 if (input->ExpectTag(58)) goto parse_string_value;
7260 // optional bytes string_value = 7;
7262 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7263 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
7265 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
7266 input, this->mutable_string_value()));
7268 goto handle_uninterpreted;
7270 if (input->ExpectTag(66)) goto parse_aggregate_value;
7274 // optional string aggregate_value = 8;
7276 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7277 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
7278 parse_aggregate_value:
7279 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7280 input, this->mutable_aggregate_value()));
7281 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
7282 this->aggregate_value().data(), this->aggregate_value().length(),
7283 ::google::protobuf::internal::WireFormat::PARSE);
7285 goto handle_uninterpreted;
7287 if (input->ExpectAtEnd()) return true;
7292 handle_uninterpreted:
7293 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7294 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
7297 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
7298 input, tag, mutable_unknown_fields()));
7307 void UninterpretedOption::SerializeWithCachedSizes(
7308 ::google::protobuf::io::CodedOutputStream* output) const {
7309 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
7310 for (int i = 0; i < this->name_size(); i++) {
7311 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7312 2, this->name(i), output);
7315 // optional string identifier_value = 3;
7316 if (has_identifier_value()) {
7317 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
7318 this->identifier_value().data(), this->identifier_value().length(),
7319 ::google::protobuf::internal::WireFormat::SERIALIZE);
7320 ::google::protobuf::internal::WireFormatLite::WriteString(
7321 3, this->identifier_value(), output);
7324 // optional uint64 positive_int_value = 4;
7325 if (has_positive_int_value()) {
7326 ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->positive_int_value(), output);
7329 // optional int64 negative_int_value = 5;
7330 if (has_negative_int_value()) {
7331 ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->negative_int_value(), output);
7334 // optional double double_value = 6;
7335 if (has_double_value()) {
7336 ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->double_value(), output);
7339 // optional bytes string_value = 7;
7340 if (has_string_value()) {
7341 ::google::protobuf::internal::WireFormatLite::WriteBytes(
7342 7, this->string_value(), output);
7345 // optional string aggregate_value = 8;
7346 if (has_aggregate_value()) {
7347 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
7348 this->aggregate_value().data(), this->aggregate_value().length(),
7349 ::google::protobuf::internal::WireFormat::SERIALIZE);
7350 ::google::protobuf::internal::WireFormatLite::WriteString(
7351 8, this->aggregate_value(), output);
7354 if (!unknown_fields().empty()) {
7355 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
7356 unknown_fields(), output);
7360 ::google::protobuf::uint8* UninterpretedOption::SerializeWithCachedSizesToArray(
7361 ::google::protobuf::uint8* target) const {
7362 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
7363 for (int i = 0; i < this->name_size(); i++) {
7364 target = ::google::protobuf::internal::WireFormatLite::
7365 WriteMessageNoVirtualToArray(
7366 2, this->name(i), target);
7369 // optional string identifier_value = 3;
7370 if (has_identifier_value()) {
7371 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
7372 this->identifier_value().data(), this->identifier_value().length(),
7373 ::google::protobuf::internal::WireFormat::SERIALIZE);
7375 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7376 3, this->identifier_value(), target);
7379 // optional uint64 positive_int_value = 4;
7380 if (has_positive_int_value()) {
7381 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->positive_int_value(), target);
7384 // optional int64 negative_int_value = 5;
7385 if (has_negative_int_value()) {
7386 target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->negative_int_value(), target);
7389 // optional double double_value = 6;
7390 if (has_double_value()) {
7391 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->double_value(), target);
7394 // optional bytes string_value = 7;
7395 if (has_string_value()) {
7397 ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
7398 7, this->string_value(), target);
7401 // optional string aggregate_value = 8;
7402 if (has_aggregate_value()) {
7403 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
7404 this->aggregate_value().data(), this->aggregate_value().length(),
7405 ::google::protobuf::internal::WireFormat::SERIALIZE);
7407 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7408 8, this->aggregate_value(), target);
7411 if (!unknown_fields().empty()) {
7412 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownFieldsToArray(
7413 unknown_fields(), target);
7418 int UninterpretedOption::ByteSize() const {
7421 if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
7422 // optional string identifier_value = 3;
7423 if (has_identifier_value()) {
7425 ::google::protobuf::internal::WireFormatLite::StringSize(
7426 this->identifier_value());
7429 // optional uint64 positive_int_value = 4;
7430 if (has_positive_int_value()) {
7432 ::google::protobuf::internal::WireFormatLite::UInt64Size(
7433 this->positive_int_value());
7436 // optional int64 negative_int_value = 5;
7437 if (has_negative_int_value()) {
7439 ::google::protobuf::internal::WireFormatLite::Int64Size(
7440 this->negative_int_value());
7443 // optional double double_value = 6;
7444 if (has_double_value()) {
7445 total_size += 1 + 8;
7448 // optional bytes string_value = 7;
7449 if (has_string_value()) {
7451 ::google::protobuf::internal::WireFormatLite::BytesSize(
7452 this->string_value());
7455 // optional string aggregate_value = 8;
7456 if (has_aggregate_value()) {
7458 ::google::protobuf::internal::WireFormatLite::StringSize(
7459 this->aggregate_value());
7463 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
7464 total_size += 1 * this->name_size();
7465 for (int i = 0; i < this->name_size(); i++) {
7467 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7471 if (!unknown_fields().empty()) {
7473 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
7476 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7477 _cached_size_ = total_size;
7478 GOOGLE_SAFE_CONCURRENT_WRITES_END();
7482 void UninterpretedOption::MergeFrom(const ::google::protobuf::Message& from) {
7483 GOOGLE_CHECK_NE(&from, this);
7484 const UninterpretedOption* source =
7485 ::google::protobuf::internal::dynamic_cast_if_available<const UninterpretedOption*>(
7487 if (source == NULL) {
7488 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7494 void UninterpretedOption::MergeFrom(const UninterpretedOption& from) {
7495 GOOGLE_CHECK_NE(&from, this);
7496 name_.MergeFrom(from.name_);
7497 if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
7498 if (from.has_identifier_value()) {
7499 set_identifier_value(from.identifier_value());
7501 if (from.has_positive_int_value()) {
7502 set_positive_int_value(from.positive_int_value());
7504 if (from.has_negative_int_value()) {
7505 set_negative_int_value(from.negative_int_value());
7507 if (from.has_double_value()) {
7508 set_double_value(from.double_value());
7510 if (from.has_string_value()) {
7511 set_string_value(from.string_value());
7513 if (from.has_aggregate_value()) {
7514 set_aggregate_value(from.aggregate_value());
7517 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
7520 void UninterpretedOption::CopyFrom(const ::google::protobuf::Message& from) {
7521 if (&from == this) return;
7526 void UninterpretedOption::CopyFrom(const UninterpretedOption& from) {
7527 if (&from == this) return;
7532 bool UninterpretedOption::IsInitialized() const {
7534 for (int i = 0; i < name_size(); i++) {
7535 if (!this->name(i).IsInitialized()) return false;
7540 void UninterpretedOption::Swap(UninterpretedOption* other) {
7541 if (other != this) {
7542 name_.Swap(&other->name_);
7543 std::swap(identifier_value_, other->identifier_value_);
7544 std::swap(positive_int_value_, other->positive_int_value_);
7545 std::swap(negative_int_value_, other->negative_int_value_);
7546 std::swap(double_value_, other->double_value_);
7547 std::swap(string_value_, other->string_value_);
7548 std::swap(aggregate_value_, other->aggregate_value_);
7549 std::swap(_has_bits_[0], other->_has_bits_[0]);
7550 _unknown_fields_.Swap(&other->_unknown_fields_);
7551 std::swap(_cached_size_, other->_cached_size_);
7555 ::google::protobuf::Metadata UninterpretedOption::GetMetadata() const {
7556 protobuf_AssignDescriptorsOnce();
7557 ::google::protobuf::Metadata metadata;
7558 metadata.descriptor = UninterpretedOption_descriptor_;
7559 metadata.reflection = UninterpretedOption_reflection_;
7564 // ===================================================================
7567 const int SourceCodeInfo_Location::kPathFieldNumber;
7568 const int SourceCodeInfo_Location::kSpanFieldNumber;
7569 const int SourceCodeInfo_Location::kLeadingCommentsFieldNumber;
7570 const int SourceCodeInfo_Location::kTrailingCommentsFieldNumber;
7573 SourceCodeInfo_Location::SourceCodeInfo_Location()
7574 : ::google::protobuf::Message() {
7578 void SourceCodeInfo_Location::InitAsDefaultInstance() {
7581 SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location& from)
7582 : ::google::protobuf::Message() {
7587 void SourceCodeInfo_Location::SharedCtor() {
7589 leading_comments_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
7590 trailing_comments_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
7591 ::memset(_has_bits_, 0, sizeof(_has_bits_));
7594 SourceCodeInfo_Location::~SourceCodeInfo_Location() {
7598 void SourceCodeInfo_Location::SharedDtor() {
7599 if (leading_comments_ != &::google::protobuf::internal::GetEmptyString()) {
7600 delete leading_comments_;
7602 if (trailing_comments_ != &::google::protobuf::internal::GetEmptyString()) {
7603 delete trailing_comments_;
7605 if (this != default_instance_) {
7609 void SourceCodeInfo_Location::SetCachedSize(int size) const {
7610 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7611 _cached_size_ = size;
7612 GOOGLE_SAFE_CONCURRENT_WRITES_END();
7614 const ::google::protobuf::Descriptor* SourceCodeInfo_Location::descriptor() {
7615 protobuf_AssignDescriptorsOnce();
7616 return SourceCodeInfo_Location_descriptor_;
7619 const SourceCodeInfo_Location& SourceCodeInfo_Location::default_instance() {
7620 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
7621 return *default_instance_;
7624 SourceCodeInfo_Location* SourceCodeInfo_Location::default_instance_ = NULL;
7626 SourceCodeInfo_Location* SourceCodeInfo_Location::New() const {
7627 return new SourceCodeInfo_Location;
7630 void SourceCodeInfo_Location::Clear() {
7631 if (_has_bits_[2 / 32] & (0xffu << (2 % 32))) {
7632 if (has_leading_comments()) {
7633 if (leading_comments_ != &::google::protobuf::internal::GetEmptyString()) {
7634 leading_comments_->clear();
7637 if (has_trailing_comments()) {
7638 if (trailing_comments_ != &::google::protobuf::internal::GetEmptyString()) {
7639 trailing_comments_->clear();
7645 ::memset(_has_bits_, 0, sizeof(_has_bits_));
7646 mutable_unknown_fields()->Clear();
7649 bool SourceCodeInfo_Location::MergePartialFromCodedStream(
7650 ::google::protobuf::io::CodedInputStream* input) {
7651 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
7652 ::google::protobuf::uint32 tag;
7653 while ((tag = input->ReadTag()) != 0) {
7654 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7655 // repeated int32 path = 1 [packed = true];
7657 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7658 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
7659 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
7660 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
7661 input, this->mutable_path())));
7662 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
7663 == ::google::protobuf::internal::WireFormatLite::
7665 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
7666 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
7667 1, 10, input, this->mutable_path())));
7669 goto handle_uninterpreted;
7671 if (input->ExpectTag(18)) goto parse_span;
7675 // repeated int32 span = 2 [packed = true];
7677 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7678 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
7680 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
7681 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
7682 input, this->mutable_span())));
7683 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
7684 == ::google::protobuf::internal::WireFormatLite::
7686 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
7687 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
7688 1, 18, input, this->mutable_span())));
7690 goto handle_uninterpreted;
7692 if (input->ExpectTag(26)) goto parse_leading_comments;
7696 // optional string leading_comments = 3;
7698 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7699 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
7700 parse_leading_comments:
7701 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7702 input, this->mutable_leading_comments()));
7703 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
7704 this->leading_comments().data(), this->leading_comments().length(),
7705 ::google::protobuf::internal::WireFormat::PARSE);
7707 goto handle_uninterpreted;
7709 if (input->ExpectTag(34)) goto parse_trailing_comments;
7713 // optional string trailing_comments = 4;
7715 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7716 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
7717 parse_trailing_comments:
7718 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7719 input, this->mutable_trailing_comments()));
7720 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
7721 this->trailing_comments().data(), this->trailing_comments().length(),
7722 ::google::protobuf::internal::WireFormat::PARSE);
7724 goto handle_uninterpreted;
7726 if (input->ExpectAtEnd()) return true;
7731 handle_uninterpreted:
7732 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7733 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
7736 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
7737 input, tag, mutable_unknown_fields()));
7746 void SourceCodeInfo_Location::SerializeWithCachedSizes(
7747 ::google::protobuf::io::CodedOutputStream* output) const {
7748 // repeated int32 path = 1 [packed = true];
7749 if (this->path_size() > 0) {
7750 ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
7751 output->WriteVarint32(_path_cached_byte_size_);
7753 for (int i = 0; i < this->path_size(); i++) {
7754 ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
7755 this->path(i), output);
7758 // repeated int32 span = 2 [packed = true];
7759 if (this->span_size() > 0) {
7760 ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
7761 output->WriteVarint32(_span_cached_byte_size_);
7763 for (int i = 0; i < this->span_size(); i++) {
7764 ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
7765 this->span(i), output);
7768 // optional string leading_comments = 3;
7769 if (has_leading_comments()) {
7770 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
7771 this->leading_comments().data(), this->leading_comments().length(),
7772 ::google::protobuf::internal::WireFormat::SERIALIZE);
7773 ::google::protobuf::internal::WireFormatLite::WriteString(
7774 3, this->leading_comments(), output);
7777 // optional string trailing_comments = 4;
7778 if (has_trailing_comments()) {
7779 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
7780 this->trailing_comments().data(), this->trailing_comments().length(),
7781 ::google::protobuf::internal::WireFormat::SERIALIZE);
7782 ::google::protobuf::internal::WireFormatLite::WriteString(
7783 4, this->trailing_comments(), output);
7786 if (!unknown_fields().empty()) {
7787 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
7788 unknown_fields(), output);
7792 ::google::protobuf::uint8* SourceCodeInfo_Location::SerializeWithCachedSizesToArray(
7793 ::google::protobuf::uint8* target) const {
7794 // repeated int32 path = 1 [packed = true];
7795 if (this->path_size() > 0) {
7796 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
7798 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
7800 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
7801 _path_cached_byte_size_, target);
7803 for (int i = 0; i < this->path_size(); i++) {
7804 target = ::google::protobuf::internal::WireFormatLite::
7805 WriteInt32NoTagToArray(this->path(i), target);
7808 // repeated int32 span = 2 [packed = true];
7809 if (this->span_size() > 0) {
7810 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
7812 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
7814 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
7815 _span_cached_byte_size_, target);
7817 for (int i = 0; i < this->span_size(); i++) {
7818 target = ::google::protobuf::internal::WireFormatLite::
7819 WriteInt32NoTagToArray(this->span(i), target);
7822 // optional string leading_comments = 3;
7823 if (has_leading_comments()) {
7824 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
7825 this->leading_comments().data(), this->leading_comments().length(),
7826 ::google::protobuf::internal::WireFormat::SERIALIZE);
7828 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7829 3, this->leading_comments(), target);
7832 // optional string trailing_comments = 4;
7833 if (has_trailing_comments()) {
7834 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
7835 this->trailing_comments().data(), this->trailing_comments().length(),
7836 ::google::protobuf::internal::WireFormat::SERIALIZE);
7838 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7839 4, this->trailing_comments(), target);
7842 if (!unknown_fields().empty()) {
7843 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownFieldsToArray(
7844 unknown_fields(), target);
7849 int SourceCodeInfo_Location::ByteSize() const {
7852 if (_has_bits_[2 / 32] & (0xffu << (2 % 32))) {
7853 // optional string leading_comments = 3;
7854 if (has_leading_comments()) {
7856 ::google::protobuf::internal::WireFormatLite::StringSize(
7857 this->leading_comments());
7860 // optional string trailing_comments = 4;
7861 if (has_trailing_comments()) {
7863 ::google::protobuf::internal::WireFormatLite::StringSize(
7864 this->trailing_comments());
7868 // repeated int32 path = 1 [packed = true];
7871 for (int i = 0; i < this->path_size(); i++) {
7872 data_size += ::google::protobuf::internal::WireFormatLite::
7873 Int32Size(this->path(i));
7875 if (data_size > 0) {
7877 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
7879 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7880 _path_cached_byte_size_ = data_size;
7881 GOOGLE_SAFE_CONCURRENT_WRITES_END();
7882 total_size += data_size;
7885 // repeated int32 span = 2 [packed = true];
7888 for (int i = 0; i < this->span_size(); i++) {
7889 data_size += ::google::protobuf::internal::WireFormatLite::
7890 Int32Size(this->span(i));
7892 if (data_size > 0) {
7894 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
7896 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7897 _span_cached_byte_size_ = data_size;
7898 GOOGLE_SAFE_CONCURRENT_WRITES_END();
7899 total_size += data_size;
7902 if (!unknown_fields().empty()) {
7904 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
7907 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7908 _cached_size_ = total_size;
7909 GOOGLE_SAFE_CONCURRENT_WRITES_END();
7913 void SourceCodeInfo_Location::MergeFrom(const ::google::protobuf::Message& from) {
7914 GOOGLE_CHECK_NE(&from, this);
7915 const SourceCodeInfo_Location* source =
7916 ::google::protobuf::internal::dynamic_cast_if_available<const SourceCodeInfo_Location*>(
7918 if (source == NULL) {
7919 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7925 void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) {
7926 GOOGLE_CHECK_NE(&from, this);
7927 path_.MergeFrom(from.path_);
7928 span_.MergeFrom(from.span_);
7929 if (from._has_bits_[2 / 32] & (0xffu << (2 % 32))) {
7930 if (from.has_leading_comments()) {
7931 set_leading_comments(from.leading_comments());
7933 if (from.has_trailing_comments()) {
7934 set_trailing_comments(from.trailing_comments());
7937 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
7940 void SourceCodeInfo_Location::CopyFrom(const ::google::protobuf::Message& from) {
7941 if (&from == this) return;
7946 void SourceCodeInfo_Location::CopyFrom(const SourceCodeInfo_Location& from) {
7947 if (&from == this) return;
7952 bool SourceCodeInfo_Location::IsInitialized() const {
7957 void SourceCodeInfo_Location::Swap(SourceCodeInfo_Location* other) {
7958 if (other != this) {
7959 path_.Swap(&other->path_);
7960 span_.Swap(&other->span_);
7961 std::swap(leading_comments_, other->leading_comments_);
7962 std::swap(trailing_comments_, other->trailing_comments_);
7963 std::swap(_has_bits_[0], other->_has_bits_[0]);
7964 _unknown_fields_.Swap(&other->_unknown_fields_);
7965 std::swap(_cached_size_, other->_cached_size_);
7969 ::google::protobuf::Metadata SourceCodeInfo_Location::GetMetadata() const {
7970 protobuf_AssignDescriptorsOnce();
7971 ::google::protobuf::Metadata metadata;
7972 metadata.descriptor = SourceCodeInfo_Location_descriptor_;
7973 metadata.reflection = SourceCodeInfo_Location_reflection_;
7978 // -------------------------------------------------------------------
7981 const int SourceCodeInfo::kLocationFieldNumber;
7984 SourceCodeInfo::SourceCodeInfo()
7985 : ::google::protobuf::Message() {
7989 void SourceCodeInfo::InitAsDefaultInstance() {
7992 SourceCodeInfo::SourceCodeInfo(const SourceCodeInfo& from)
7993 : ::google::protobuf::Message() {
7998 void SourceCodeInfo::SharedCtor() {
8000 ::memset(_has_bits_, 0, sizeof(_has_bits_));
8003 SourceCodeInfo::~SourceCodeInfo() {
8007 void SourceCodeInfo::SharedDtor() {
8008 if (this != default_instance_) {
8012 void SourceCodeInfo::SetCachedSize(int size) const {
8013 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8014 _cached_size_ = size;
8015 GOOGLE_SAFE_CONCURRENT_WRITES_END();
8017 const ::google::protobuf::Descriptor* SourceCodeInfo::descriptor() {
8018 protobuf_AssignDescriptorsOnce();
8019 return SourceCodeInfo_descriptor_;
8022 const SourceCodeInfo& SourceCodeInfo::default_instance() {
8023 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
8024 return *default_instance_;
8027 SourceCodeInfo* SourceCodeInfo::default_instance_ = NULL;
8029 SourceCodeInfo* SourceCodeInfo::New() const {
8030 return new SourceCodeInfo;
8033 void SourceCodeInfo::Clear() {
8035 ::memset(_has_bits_, 0, sizeof(_has_bits_));
8036 mutable_unknown_fields()->Clear();
8039 bool SourceCodeInfo::MergePartialFromCodedStream(
8040 ::google::protobuf::io::CodedInputStream* input) {
8041 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
8042 ::google::protobuf::uint32 tag;
8043 while ((tag = input->ReadTag()) != 0) {
8044 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8045 // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
8047 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
8048 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
8050 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
8051 input, add_location()));
8053 goto handle_uninterpreted;
8055 if (input->ExpectTag(10)) goto parse_location;
8056 if (input->ExpectAtEnd()) return true;
8061 handle_uninterpreted:
8062 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
8063 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
8066 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
8067 input, tag, mutable_unknown_fields()));
8076 void SourceCodeInfo::SerializeWithCachedSizes(
8077 ::google::protobuf::io::CodedOutputStream* output) const {
8078 // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
8079 for (int i = 0; i < this->location_size(); i++) {
8080 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8081 1, this->location(i), output);
8084 if (!unknown_fields().empty()) {
8085 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
8086 unknown_fields(), output);
8090 ::google::protobuf::uint8* SourceCodeInfo::SerializeWithCachedSizesToArray(
8091 ::google::protobuf::uint8* target) const {
8092 // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
8093 for (int i = 0; i < this->location_size(); i++) {
8094 target = ::google::protobuf::internal::WireFormatLite::
8095 WriteMessageNoVirtualToArray(
8096 1, this->location(i), target);
8099 if (!unknown_fields().empty()) {
8100 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownFieldsToArray(
8101 unknown_fields(), target);
8106 int SourceCodeInfo::ByteSize() const {
8109 // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
8110 total_size += 1 * this->location_size();
8111 for (int i = 0; i < this->location_size(); i++) {
8113 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
8117 if (!unknown_fields().empty()) {
8119 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
8122 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8123 _cached_size_ = total_size;
8124 GOOGLE_SAFE_CONCURRENT_WRITES_END();
8128 void SourceCodeInfo::MergeFrom(const ::google::protobuf::Message& from) {
8129 GOOGLE_CHECK_NE(&from, this);
8130 const SourceCodeInfo* source =
8131 ::google::protobuf::internal::dynamic_cast_if_available<const SourceCodeInfo*>(
8133 if (source == NULL) {
8134 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8140 void SourceCodeInfo::MergeFrom(const SourceCodeInfo& from) {
8141 GOOGLE_CHECK_NE(&from, this);
8142 location_.MergeFrom(from.location_);
8143 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
8146 void SourceCodeInfo::CopyFrom(const ::google::protobuf::Message& from) {
8147 if (&from == this) return;
8152 void SourceCodeInfo::CopyFrom(const SourceCodeInfo& from) {
8153 if (&from == this) return;
8158 bool SourceCodeInfo::IsInitialized() const {
8163 void SourceCodeInfo::Swap(SourceCodeInfo* other) {
8164 if (other != this) {
8165 location_.Swap(&other->location_);
8166 std::swap(_has_bits_[0], other->_has_bits_[0]);
8167 _unknown_fields_.Swap(&other->_unknown_fields_);
8168 std::swap(_cached_size_, other->_cached_size_);
8172 ::google::protobuf::Metadata SourceCodeInfo::GetMetadata() const {
8173 protobuf_AssignDescriptorsOnce();
8174 ::google::protobuf::Metadata metadata;
8175 metadata.descriptor = SourceCodeInfo_descriptor_;
8176 metadata.reflection = SourceCodeInfo_reflection_;
8181 // @@protoc_insertion_point(namespace_scope)
8183 } // namespace protobuf
8184 } // namespace google
8186 // @@protoc_insertion_point(global_scope)