Line data Source code
1 : // Generated by the protocol buffer compiler. DO NOT EDIT!
2 : // source: google/protobuf/descriptor.proto
3 :
4 : #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 : #include "google/protobuf/descriptor.pb.h"
6 :
7 : #include <algorithm>
8 :
9 : #include <google/protobuf/stubs/common.h>
10 : #include <google/protobuf/stubs/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)
18 :
19 : namespace google {
20 : namespace protobuf {
21 :
22 : namespace {
23 :
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* DescriptorProto_ReservedRange_descriptor_ = NULL;
37 : const ::google::protobuf::internal::GeneratedMessageReflection*
38 : DescriptorProto_ReservedRange_reflection_ = NULL;
39 : const ::google::protobuf::Descriptor* FieldDescriptorProto_descriptor_ = NULL;
40 : const ::google::protobuf::internal::GeneratedMessageReflection*
41 : FieldDescriptorProto_reflection_ = NULL;
42 : const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor_ = NULL;
43 : const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor_ = NULL;
44 : const ::google::protobuf::Descriptor* OneofDescriptorProto_descriptor_ = NULL;
45 : const ::google::protobuf::internal::GeneratedMessageReflection*
46 : OneofDescriptorProto_reflection_ = NULL;
47 : const ::google::protobuf::Descriptor* EnumDescriptorProto_descriptor_ = NULL;
48 : const ::google::protobuf::internal::GeneratedMessageReflection*
49 : EnumDescriptorProto_reflection_ = NULL;
50 : const ::google::protobuf::Descriptor* EnumValueDescriptorProto_descriptor_ = NULL;
51 : const ::google::protobuf::internal::GeneratedMessageReflection*
52 : EnumValueDescriptorProto_reflection_ = NULL;
53 : const ::google::protobuf::Descriptor* ServiceDescriptorProto_descriptor_ = NULL;
54 : const ::google::protobuf::internal::GeneratedMessageReflection*
55 : ServiceDescriptorProto_reflection_ = NULL;
56 : const ::google::protobuf::Descriptor* MethodDescriptorProto_descriptor_ = NULL;
57 : const ::google::protobuf::internal::GeneratedMessageReflection*
58 : MethodDescriptorProto_reflection_ = NULL;
59 : const ::google::protobuf::Descriptor* FileOptions_descriptor_ = NULL;
60 : const ::google::protobuf::internal::GeneratedMessageReflection*
61 : FileOptions_reflection_ = NULL;
62 : const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor_ = NULL;
63 : const ::google::protobuf::Descriptor* MessageOptions_descriptor_ = NULL;
64 : const ::google::protobuf::internal::GeneratedMessageReflection*
65 : MessageOptions_reflection_ = NULL;
66 : const ::google::protobuf::Descriptor* FieldOptions_descriptor_ = NULL;
67 : const ::google::protobuf::internal::GeneratedMessageReflection*
68 : FieldOptions_reflection_ = NULL;
69 : const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor_ = NULL;
70 : const ::google::protobuf::EnumDescriptor* FieldOptions_JSType_descriptor_ = NULL;
71 : const ::google::protobuf::Descriptor* EnumOptions_descriptor_ = NULL;
72 : const ::google::protobuf::internal::GeneratedMessageReflection*
73 : EnumOptions_reflection_ = NULL;
74 : const ::google::protobuf::Descriptor* EnumValueOptions_descriptor_ = NULL;
75 : const ::google::protobuf::internal::GeneratedMessageReflection*
76 : EnumValueOptions_reflection_ = NULL;
77 : const ::google::protobuf::Descriptor* ServiceOptions_descriptor_ = NULL;
78 : const ::google::protobuf::internal::GeneratedMessageReflection*
79 : ServiceOptions_reflection_ = NULL;
80 : const ::google::protobuf::Descriptor* MethodOptions_descriptor_ = NULL;
81 : const ::google::protobuf::internal::GeneratedMessageReflection*
82 : MethodOptions_reflection_ = NULL;
83 : const ::google::protobuf::Descriptor* UninterpretedOption_descriptor_ = NULL;
84 : const ::google::protobuf::internal::GeneratedMessageReflection*
85 : UninterpretedOption_reflection_ = NULL;
86 : const ::google::protobuf::Descriptor* UninterpretedOption_NamePart_descriptor_ = NULL;
87 : const ::google::protobuf::internal::GeneratedMessageReflection*
88 : UninterpretedOption_NamePart_reflection_ = NULL;
89 : const ::google::protobuf::Descriptor* SourceCodeInfo_descriptor_ = NULL;
90 : const ::google::protobuf::internal::GeneratedMessageReflection*
91 : SourceCodeInfo_reflection_ = NULL;
92 : const ::google::protobuf::Descriptor* SourceCodeInfo_Location_descriptor_ = NULL;
93 : const ::google::protobuf::internal::GeneratedMessageReflection*
94 : SourceCodeInfo_Location_reflection_ = NULL;
95 :
96 : } // namespace
97 :
98 :
99 5 : void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() {
100 5 : protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
101 90 : const ::google::protobuf::FileDescriptor* file =
102 : ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
103 10 : "google/protobuf/descriptor.proto");
104 5 : GOOGLE_CHECK(file != NULL);
105 5 : FileDescriptorSet_descriptor_ = file->message_type(0);
106 : static const int FileDescriptorSet_offsets_[1] = {
107 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, file_),
108 : };
109 : FileDescriptorSet_reflection_ =
110 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
111 : FileDescriptorSet_descriptor_,
112 : FileDescriptorSet::default_instance_,
113 : FileDescriptorSet_offsets_,
114 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _has_bits_[0]),
115 : -1,
116 : -1,
117 : sizeof(FileDescriptorSet),
118 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _internal_metadata_),
119 5 : -1);
120 5 : FileDescriptorProto_descriptor_ = file->message_type(1);
121 : static const int FileDescriptorProto_offsets_[12] = {
122 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, name_),
123 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, package_),
124 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, dependency_),
125 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, public_dependency_),
126 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, weak_dependency_),
127 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, message_type_),
128 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, enum_type_),
129 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, service_),
130 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, extension_),
131 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, options_),
132 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, source_code_info_),
133 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, syntax_),
134 : };
135 : FileDescriptorProto_reflection_ =
136 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
137 : FileDescriptorProto_descriptor_,
138 : FileDescriptorProto::default_instance_,
139 : FileDescriptorProto_offsets_,
140 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _has_bits_[0]),
141 : -1,
142 : -1,
143 : sizeof(FileDescriptorProto),
144 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _internal_metadata_),
145 5 : -1);
146 5 : DescriptorProto_descriptor_ = file->message_type(2);
147 : static const int DescriptorProto_offsets_[10] = {
148 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, name_),
149 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, field_),
150 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_),
151 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, nested_type_),
152 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, enum_type_),
153 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_range_),
154 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, oneof_decl_),
155 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, options_),
156 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_range_),
157 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_name_),
158 : };
159 : DescriptorProto_reflection_ =
160 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
161 : DescriptorProto_descriptor_,
162 : DescriptorProto::default_instance_,
163 : DescriptorProto_offsets_,
164 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _has_bits_[0]),
165 : -1,
166 : -1,
167 : sizeof(DescriptorProto),
168 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _internal_metadata_),
169 15 : -1);
170 10 : DescriptorProto_ExtensionRange_descriptor_ = DescriptorProto_descriptor_->nested_type(0);
171 : static const int DescriptorProto_ExtensionRange_offsets_[2] = {
172 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, start_),
173 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, end_),
174 : };
175 : DescriptorProto_ExtensionRange_reflection_ =
176 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
177 : DescriptorProto_ExtensionRange_descriptor_,
178 : DescriptorProto_ExtensionRange::default_instance_,
179 : DescriptorProto_ExtensionRange_offsets_,
180 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _has_bits_[0]),
181 : -1,
182 : -1,
183 : sizeof(DescriptorProto_ExtensionRange),
184 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _internal_metadata_),
185 5 : -1);
186 10 : DescriptorProto_ReservedRange_descriptor_ = DescriptorProto_descriptor_->nested_type(1);
187 : static const int DescriptorProto_ReservedRange_offsets_[2] = {
188 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, start_),
189 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, end_),
190 : };
191 : DescriptorProto_ReservedRange_reflection_ =
192 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
193 : DescriptorProto_ReservedRange_descriptor_,
194 : DescriptorProto_ReservedRange::default_instance_,
195 : DescriptorProto_ReservedRange_offsets_,
196 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, _has_bits_[0]),
197 : -1,
198 : -1,
199 : sizeof(DescriptorProto_ReservedRange),
200 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, _internal_metadata_),
201 5 : -1);
202 5 : FieldDescriptorProto_descriptor_ = file->message_type(3);
203 : static const int FieldDescriptorProto_offsets_[9] = {
204 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, name_),
205 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, number_),
206 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, label_),
207 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_),
208 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_name_),
209 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, extendee_),
210 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, default_value_),
211 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, oneof_index_),
212 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, options_),
213 : };
214 : FieldDescriptorProto_reflection_ =
215 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
216 : FieldDescriptorProto_descriptor_,
217 : FieldDescriptorProto::default_instance_,
218 : FieldDescriptorProto_offsets_,
219 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _has_bits_[0]),
220 : -1,
221 : -1,
222 : sizeof(FieldDescriptorProto),
223 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _internal_metadata_),
224 10 : -1);
225 10 : FieldDescriptorProto_Type_descriptor_ = FieldDescriptorProto_descriptor_->enum_type(0);
226 5 : FieldDescriptorProto_Label_descriptor_ = FieldDescriptorProto_descriptor_->enum_type(1);
227 5 : OneofDescriptorProto_descriptor_ = file->message_type(4);
228 : static const int OneofDescriptorProto_offsets_[1] = {
229 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, name_),
230 : };
231 : OneofDescriptorProto_reflection_ =
232 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
233 : OneofDescriptorProto_descriptor_,
234 : OneofDescriptorProto::default_instance_,
235 : OneofDescriptorProto_offsets_,
236 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _has_bits_[0]),
237 : -1,
238 : -1,
239 : sizeof(OneofDescriptorProto),
240 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _internal_metadata_),
241 5 : -1);
242 5 : EnumDescriptorProto_descriptor_ = file->message_type(5);
243 : static const int EnumDescriptorProto_offsets_[3] = {
244 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, name_),
245 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, value_),
246 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, options_),
247 : };
248 : EnumDescriptorProto_reflection_ =
249 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
250 : EnumDescriptorProto_descriptor_,
251 : EnumDescriptorProto::default_instance_,
252 : EnumDescriptorProto_offsets_,
253 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _has_bits_[0]),
254 : -1,
255 : -1,
256 : sizeof(EnumDescriptorProto),
257 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _internal_metadata_),
258 5 : -1);
259 5 : EnumValueDescriptorProto_descriptor_ = file->message_type(6);
260 : static const int EnumValueDescriptorProto_offsets_[3] = {
261 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, name_),
262 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, number_),
263 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, options_),
264 : };
265 : EnumValueDescriptorProto_reflection_ =
266 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
267 : EnumValueDescriptorProto_descriptor_,
268 : EnumValueDescriptorProto::default_instance_,
269 : EnumValueDescriptorProto_offsets_,
270 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _has_bits_[0]),
271 : -1,
272 : -1,
273 : sizeof(EnumValueDescriptorProto),
274 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _internal_metadata_),
275 5 : -1);
276 5 : ServiceDescriptorProto_descriptor_ = file->message_type(7);
277 : static const int ServiceDescriptorProto_offsets_[3] = {
278 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, name_),
279 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, method_),
280 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, options_),
281 : };
282 : ServiceDescriptorProto_reflection_ =
283 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
284 : ServiceDescriptorProto_descriptor_,
285 : ServiceDescriptorProto::default_instance_,
286 : ServiceDescriptorProto_offsets_,
287 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _has_bits_[0]),
288 : -1,
289 : -1,
290 : sizeof(ServiceDescriptorProto),
291 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _internal_metadata_),
292 5 : -1);
293 5 : MethodDescriptorProto_descriptor_ = file->message_type(8);
294 : static const int MethodDescriptorProto_offsets_[6] = {
295 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, name_),
296 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, input_type_),
297 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, output_type_),
298 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, options_),
299 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, client_streaming_),
300 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, server_streaming_),
301 : };
302 : MethodDescriptorProto_reflection_ =
303 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
304 : MethodDescriptorProto_descriptor_,
305 : MethodDescriptorProto::default_instance_,
306 : MethodDescriptorProto_offsets_,
307 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _has_bits_[0]),
308 : -1,
309 : -1,
310 : sizeof(MethodDescriptorProto),
311 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _internal_metadata_),
312 5 : -1);
313 5 : FileOptions_descriptor_ = file->message_type(9);
314 : static const int FileOptions_offsets_[16] = {
315 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_package_),
316 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_outer_classname_),
317 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_multiple_files_),
318 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generate_equals_and_hash_),
319 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_string_check_utf8_),
320 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, optimize_for_),
321 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, go_package_),
322 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_generic_services_),
323 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generic_services_),
324 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, py_generic_services_),
325 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, deprecated_),
326 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_enable_arenas_),
327 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, objc_class_prefix_),
328 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, csharp_namespace_),
329 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, javanano_use_deprecated_package_),
330 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, uninterpreted_option_),
331 : };
332 : FileOptions_reflection_ =
333 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
334 : FileOptions_descriptor_,
335 : FileOptions::default_instance_,
336 : FileOptions_offsets_,
337 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _has_bits_[0]),
338 : -1,
339 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _extensions_),
340 : sizeof(FileOptions),
341 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _internal_metadata_),
342 10 : -1);
343 10 : FileOptions_OptimizeMode_descriptor_ = FileOptions_descriptor_->enum_type(0);
344 5 : MessageOptions_descriptor_ = file->message_type(10);
345 : static const int MessageOptions_offsets_[5] = {
346 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, message_set_wire_format_),
347 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, no_standard_descriptor_accessor_),
348 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, deprecated_),
349 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, map_entry_),
350 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, uninterpreted_option_),
351 : };
352 : MessageOptions_reflection_ =
353 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
354 : MessageOptions_descriptor_,
355 : MessageOptions::default_instance_,
356 : MessageOptions_offsets_,
357 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _has_bits_[0]),
358 : -1,
359 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _extensions_),
360 : sizeof(MessageOptions),
361 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _internal_metadata_),
362 5 : -1);
363 5 : FieldOptions_descriptor_ = file->message_type(11);
364 : static const int FieldOptions_offsets_[7] = {
365 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, ctype_),
366 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, packed_),
367 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, jstype_),
368 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, lazy_),
369 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, deprecated_),
370 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, weak_),
371 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, uninterpreted_option_),
372 : };
373 : FieldOptions_reflection_ =
374 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
375 : FieldOptions_descriptor_,
376 : FieldOptions::default_instance_,
377 : FieldOptions_offsets_,
378 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _has_bits_[0]),
379 : -1,
380 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _extensions_),
381 : sizeof(FieldOptions),
382 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _internal_metadata_),
383 10 : -1);
384 10 : FieldOptions_CType_descriptor_ = FieldOptions_descriptor_->enum_type(0);
385 5 : FieldOptions_JSType_descriptor_ = FieldOptions_descriptor_->enum_type(1);
386 5 : EnumOptions_descriptor_ = file->message_type(12);
387 : static const int EnumOptions_offsets_[3] = {
388 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, allow_alias_),
389 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, deprecated_),
390 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, uninterpreted_option_),
391 : };
392 : EnumOptions_reflection_ =
393 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
394 : EnumOptions_descriptor_,
395 : EnumOptions::default_instance_,
396 : EnumOptions_offsets_,
397 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _has_bits_[0]),
398 : -1,
399 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _extensions_),
400 : sizeof(EnumOptions),
401 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _internal_metadata_),
402 5 : -1);
403 5 : EnumValueOptions_descriptor_ = file->message_type(13);
404 : static const int EnumValueOptions_offsets_[2] = {
405 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, deprecated_),
406 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, uninterpreted_option_),
407 : };
408 : EnumValueOptions_reflection_ =
409 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
410 : EnumValueOptions_descriptor_,
411 : EnumValueOptions::default_instance_,
412 : EnumValueOptions_offsets_,
413 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _has_bits_[0]),
414 : -1,
415 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _extensions_),
416 : sizeof(EnumValueOptions),
417 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _internal_metadata_),
418 5 : -1);
419 5 : ServiceOptions_descriptor_ = file->message_type(14);
420 : static const int ServiceOptions_offsets_[2] = {
421 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, deprecated_),
422 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, uninterpreted_option_),
423 : };
424 : ServiceOptions_reflection_ =
425 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
426 : ServiceOptions_descriptor_,
427 : ServiceOptions::default_instance_,
428 : ServiceOptions_offsets_,
429 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _has_bits_[0]),
430 : -1,
431 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _extensions_),
432 : sizeof(ServiceOptions),
433 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _internal_metadata_),
434 5 : -1);
435 5 : MethodOptions_descriptor_ = file->message_type(15);
436 : static const int MethodOptions_offsets_[2] = {
437 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, deprecated_),
438 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, uninterpreted_option_),
439 : };
440 : MethodOptions_reflection_ =
441 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
442 : MethodOptions_descriptor_,
443 : MethodOptions::default_instance_,
444 : MethodOptions_offsets_,
445 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _has_bits_[0]),
446 : -1,
447 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _extensions_),
448 : sizeof(MethodOptions),
449 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _internal_metadata_),
450 5 : -1);
451 5 : UninterpretedOption_descriptor_ = file->message_type(16);
452 : static const int UninterpretedOption_offsets_[7] = {
453 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, name_),
454 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, identifier_value_),
455 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, positive_int_value_),
456 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, negative_int_value_),
457 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, double_value_),
458 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, string_value_),
459 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, aggregate_value_),
460 : };
461 : UninterpretedOption_reflection_ =
462 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
463 : UninterpretedOption_descriptor_,
464 : UninterpretedOption::default_instance_,
465 : UninterpretedOption_offsets_,
466 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _has_bits_[0]),
467 : -1,
468 : -1,
469 : sizeof(UninterpretedOption),
470 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _internal_metadata_),
471 10 : -1);
472 10 : UninterpretedOption_NamePart_descriptor_ = UninterpretedOption_descriptor_->nested_type(0);
473 : static const int UninterpretedOption_NamePart_offsets_[2] = {
474 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, name_part_),
475 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, is_extension_),
476 : };
477 : UninterpretedOption_NamePart_reflection_ =
478 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
479 : UninterpretedOption_NamePart_descriptor_,
480 : UninterpretedOption_NamePart::default_instance_,
481 : UninterpretedOption_NamePart_offsets_,
482 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _has_bits_[0]),
483 : -1,
484 : -1,
485 : sizeof(UninterpretedOption_NamePart),
486 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _internal_metadata_),
487 5 : -1);
488 5 : SourceCodeInfo_descriptor_ = file->message_type(17);
489 : static const int SourceCodeInfo_offsets_[1] = {
490 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, location_),
491 : };
492 : SourceCodeInfo_reflection_ =
493 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
494 : SourceCodeInfo_descriptor_,
495 : SourceCodeInfo::default_instance_,
496 : SourceCodeInfo_offsets_,
497 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _has_bits_[0]),
498 : -1,
499 : -1,
500 : sizeof(SourceCodeInfo),
501 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _internal_metadata_),
502 10 : -1);
503 10 : SourceCodeInfo_Location_descriptor_ = SourceCodeInfo_descriptor_->nested_type(0);
504 : static const int SourceCodeInfo_Location_offsets_[5] = {
505 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, path_),
506 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, span_),
507 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, leading_comments_),
508 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, trailing_comments_),
509 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, leading_detached_comments_),
510 : };
511 : SourceCodeInfo_Location_reflection_ =
512 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
513 : SourceCodeInfo_Location_descriptor_,
514 : SourceCodeInfo_Location::default_instance_,
515 : SourceCodeInfo_Location_offsets_,
516 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _has_bits_[0]),
517 : -1,
518 : -1,
519 : sizeof(SourceCodeInfo_Location),
520 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _internal_metadata_),
521 5 : -1);
522 5 : }
523 :
524 : namespace {
525 :
526 : GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
527 : inline void protobuf_AssignDescriptorsOnce() {
528 : ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
529 17633 : &protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto);
530 : }
531 :
532 1 : void protobuf_RegisterTypes(const ::std::string&) {
533 : protobuf_AssignDescriptorsOnce();
534 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
535 1 : FileDescriptorSet_descriptor_, &FileDescriptorSet::default_instance());
536 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
537 1 : FileDescriptorProto_descriptor_, &FileDescriptorProto::default_instance());
538 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
539 1 : DescriptorProto_descriptor_, &DescriptorProto::default_instance());
540 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
541 1 : DescriptorProto_ExtensionRange_descriptor_, &DescriptorProto_ExtensionRange::default_instance());
542 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
543 1 : DescriptorProto_ReservedRange_descriptor_, &DescriptorProto_ReservedRange::default_instance());
544 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
545 1 : FieldDescriptorProto_descriptor_, &FieldDescriptorProto::default_instance());
546 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
547 1 : OneofDescriptorProto_descriptor_, &OneofDescriptorProto::default_instance());
548 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
549 1 : EnumDescriptorProto_descriptor_, &EnumDescriptorProto::default_instance());
550 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
551 1 : EnumValueDescriptorProto_descriptor_, &EnumValueDescriptorProto::default_instance());
552 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
553 1 : ServiceDescriptorProto_descriptor_, &ServiceDescriptorProto::default_instance());
554 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
555 1 : MethodDescriptorProto_descriptor_, &MethodDescriptorProto::default_instance());
556 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
557 1 : FileOptions_descriptor_, &FileOptions::default_instance());
558 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
559 1 : MessageOptions_descriptor_, &MessageOptions::default_instance());
560 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
561 1 : FieldOptions_descriptor_, &FieldOptions::default_instance());
562 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
563 1 : EnumOptions_descriptor_, &EnumOptions::default_instance());
564 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
565 1 : EnumValueOptions_descriptor_, &EnumValueOptions::default_instance());
566 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
567 1 : ServiceOptions_descriptor_, &ServiceOptions::default_instance());
568 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
569 1 : MethodOptions_descriptor_, &MethodOptions::default_instance());
570 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
571 1 : UninterpretedOption_descriptor_, &UninterpretedOption::default_instance());
572 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
573 1 : UninterpretedOption_NamePart_descriptor_, &UninterpretedOption_NamePart::default_instance());
574 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
575 1 : SourceCodeInfo_descriptor_, &SourceCodeInfo::default_instance());
576 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
577 1 : SourceCodeInfo_Location_descriptor_, &SourceCodeInfo_Location::default_instance());
578 1 : }
579 :
580 : } // namespace
581 :
582 0 : void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto() {
583 0 : delete FileDescriptorSet::default_instance_;
584 0 : delete FileDescriptorSet_reflection_;
585 0 : delete FileDescriptorProto::default_instance_;
586 0 : delete FileDescriptorProto_reflection_;
587 0 : delete DescriptorProto::default_instance_;
588 0 : delete DescriptorProto_reflection_;
589 0 : delete DescriptorProto_ExtensionRange::default_instance_;
590 0 : delete DescriptorProto_ExtensionRange_reflection_;
591 0 : delete DescriptorProto_ReservedRange::default_instance_;
592 0 : delete DescriptorProto_ReservedRange_reflection_;
593 0 : delete FieldDescriptorProto::default_instance_;
594 0 : delete FieldDescriptorProto_reflection_;
595 0 : delete OneofDescriptorProto::default_instance_;
596 0 : delete OneofDescriptorProto_reflection_;
597 0 : delete EnumDescriptorProto::default_instance_;
598 0 : delete EnumDescriptorProto_reflection_;
599 0 : delete EnumValueDescriptorProto::default_instance_;
600 0 : delete EnumValueDescriptorProto_reflection_;
601 0 : delete ServiceDescriptorProto::default_instance_;
602 0 : delete ServiceDescriptorProto_reflection_;
603 0 : delete MethodDescriptorProto::default_instance_;
604 0 : delete MethodDescriptorProto_reflection_;
605 0 : delete FileOptions::default_instance_;
606 0 : delete FileOptions_reflection_;
607 0 : delete MessageOptions::default_instance_;
608 0 : delete MessageOptions_reflection_;
609 0 : delete FieldOptions::default_instance_;
610 0 : delete FieldOptions_reflection_;
611 0 : delete EnumOptions::default_instance_;
612 0 : delete EnumOptions_reflection_;
613 0 : delete EnumValueOptions::default_instance_;
614 0 : delete EnumValueOptions_reflection_;
615 0 : delete ServiceOptions::default_instance_;
616 0 : delete ServiceOptions_reflection_;
617 0 : delete MethodOptions::default_instance_;
618 0 : delete MethodOptions_reflection_;
619 0 : delete UninterpretedOption::default_instance_;
620 0 : delete UninterpretedOption_reflection_;
621 0 : delete UninterpretedOption_NamePart::default_instance_;
622 0 : delete UninterpretedOption_NamePart_reflection_;
623 0 : delete SourceCodeInfo::default_instance_;
624 0 : delete SourceCodeInfo_reflection_;
625 0 : delete SourceCodeInfo_Location::default_instance_;
626 0 : delete SourceCodeInfo_Location_reflection_;
627 0 : }
628 :
629 76 : void protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto() {
630 : static bool already_here = false;
631 152 : if (already_here) return;
632 46 : already_here = true;
633 46 : GOOGLE_PROTOBUF_VERIFY_VERSION;
634 :
635 : ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
636 : "\n google/protobuf/descriptor.proto\022\017goog"
637 : "le.protobuf\"G\n\021FileDescriptorSet\0222\n\004file"
638 : "\030\001 \003(\0132$.google.protobuf.FileDescriptorP"
639 : "roto\"\333\003\n\023FileDescriptorProto\022\014\n\004name\030\001 \001"
640 : "(\t\022\017\n\007package\030\002 \001(\t\022\022\n\ndependency\030\003 \003(\t\022"
641 : "\031\n\021public_dependency\030\n \003(\005\022\027\n\017weak_depen"
642 : "dency\030\013 \003(\005\0226\n\014message_type\030\004 \003(\0132 .goog"
643 : "le.protobuf.DescriptorProto\0227\n\tenum_type"
644 : "\030\005 \003(\0132$.google.protobuf.EnumDescriptorP"
645 : "roto\0228\n\007service\030\006 \003(\0132\'.google.protobuf."
646 : "ServiceDescriptorProto\0228\n\textension\030\007 \003("
647 : "\0132%.google.protobuf.FieldDescriptorProto"
648 : "\022-\n\007options\030\010 \001(\0132\034.google.protobuf.File"
649 : "Options\0229\n\020source_code_info\030\t \001(\0132\037.goog"
650 : "le.protobuf.SourceCodeInfo\022\016\n\006syntax\030\014 \001"
651 : "(\t\"\360\004\n\017DescriptorProto\022\014\n\004name\030\001 \001(\t\0224\n\005"
652 : "field\030\002 \003(\0132%.google.protobuf.FieldDescr"
653 : "iptorProto\0228\n\textension\030\006 \003(\0132%.google.p"
654 : "rotobuf.FieldDescriptorProto\0225\n\013nested_t"
655 : "ype\030\003 \003(\0132 .google.protobuf.DescriptorPr"
656 : "oto\0227\n\tenum_type\030\004 \003(\0132$.google.protobuf"
657 : ".EnumDescriptorProto\022H\n\017extension_range\030"
658 : "\005 \003(\0132/.google.protobuf.DescriptorProto."
659 : "ExtensionRange\0229\n\noneof_decl\030\010 \003(\0132%.goo"
660 : "gle.protobuf.OneofDescriptorProto\0220\n\007opt"
661 : "ions\030\007 \001(\0132\037.google.protobuf.MessageOpti"
662 : "ons\022F\n\016reserved_range\030\t \003(\0132..google.pro"
663 : "tobuf.DescriptorProto.ReservedRange\022\025\n\rr"
664 : "eserved_name\030\n \003(\t\032,\n\016ExtensionRange\022\r\n\005"
665 : "start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\032+\n\rReservedRang"
666 : "e\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"\251\005\n\024FieldD"
667 : "escriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n\006number\030\003"
668 : " \001(\005\022:\n\005label\030\004 \001(\0162+.google.protobuf.Fi"
669 : "eldDescriptorProto.Label\0228\n\004type\030\005 \001(\0162*"
670 : ".google.protobuf.FieldDescriptorProto.Ty"
671 : "pe\022\021\n\ttype_name\030\006 \001(\t\022\020\n\010extendee\030\002 \001(\t\022"
672 : "\025\n\rdefault_value\030\007 \001(\t\022\023\n\013oneof_index\030\t "
673 : "\001(\005\022.\n\007options\030\010 \001(\0132\035.google.protobuf.F"
674 : "ieldOptions\"\266\002\n\004Type\022\017\n\013TYPE_DOUBLE\020\001\022\016\n"
675 : "\nTYPE_FLOAT\020\002\022\016\n\nTYPE_INT64\020\003\022\017\n\013TYPE_UI"
676 : "NT64\020\004\022\016\n\nTYPE_INT32\020\005\022\020\n\014TYPE_FIXED64\020\006"
677 : "\022\020\n\014TYPE_FIXED32\020\007\022\r\n\tTYPE_BOOL\020\010\022\017\n\013TYP"
678 : "E_STRING\020\t\022\016\n\nTYPE_GROUP\020\n\022\020\n\014TYPE_MESSA"
679 : "GE\020\013\022\016\n\nTYPE_BYTES\020\014\022\017\n\013TYPE_UINT32\020\r\022\r\n"
680 : "\tTYPE_ENUM\020\016\022\021\n\rTYPE_SFIXED32\020\017\022\021\n\rTYPE_"
681 : "SFIXED64\020\020\022\017\n\013TYPE_SINT32\020\021\022\017\n\013TYPE_SINT"
682 : "64\020\022\"C\n\005Label\022\022\n\016LABEL_OPTIONAL\020\001\022\022\n\016LAB"
683 : "EL_REQUIRED\020\002\022\022\n\016LABEL_REPEATED\020\003\"$\n\024One"
684 : "ofDescriptorProto\022\014\n\004name\030\001 \001(\t\"\214\001\n\023Enum"
685 : "DescriptorProto\022\014\n\004name\030\001 \001(\t\0228\n\005value\030\002"
686 : " \003(\0132).google.protobuf.EnumValueDescript"
687 : "orProto\022-\n\007options\030\003 \001(\0132\034.google.protob"
688 : "uf.EnumOptions\"l\n\030EnumValueDescriptorPro"
689 : "to\022\014\n\004name\030\001 \001(\t\022\016\n\006number\030\002 \001(\005\0222\n\007opti"
690 : "ons\030\003 \001(\0132!.google.protobuf.EnumValueOpt"
691 : "ions\"\220\001\n\026ServiceDescriptorProto\022\014\n\004name\030"
692 : "\001 \001(\t\0226\n\006method\030\002 \003(\0132&.google.protobuf."
693 : "MethodDescriptorProto\0220\n\007options\030\003 \001(\0132\037"
694 : ".google.protobuf.ServiceOptions\"\301\001\n\025Meth"
695 : "odDescriptorProto\022\014\n\004name\030\001 \001(\t\022\022\n\ninput"
696 : "_type\030\002 \001(\t\022\023\n\013output_type\030\003 \001(\t\022/\n\007opti"
697 : "ons\030\004 \001(\0132\036.google.protobuf.MethodOption"
698 : "s\022\037\n\020client_streaming\030\005 \001(\010:\005false\022\037\n\020se"
699 : "rver_streaming\030\006 \001(\010:\005false\"\252\005\n\013FileOpti"
700 : "ons\022\024\n\014java_package\030\001 \001(\t\022\034\n\024java_outer_"
701 : "classname\030\010 \001(\t\022\"\n\023java_multiple_files\030\n"
702 : " \001(\010:\005false\022,\n\035java_generate_equals_and_"
703 : "hash\030\024 \001(\010:\005false\022%\n\026java_string_check_u"
704 : "tf8\030\033 \001(\010:\005false\022F\n\014optimize_for\030\t \001(\0162)"
705 : ".google.protobuf.FileOptions.OptimizeMod"
706 : "e:\005SPEED\022\022\n\ngo_package\030\013 \001(\t\022\"\n\023cc_gener"
707 : "ic_services\030\020 \001(\010:\005false\022$\n\025java_generic"
708 : "_services\030\021 \001(\010:\005false\022\"\n\023py_generic_ser"
709 : "vices\030\022 \001(\010:\005false\022\031\n\ndeprecated\030\027 \001(\010:\005"
710 : "false\022\037\n\020cc_enable_arenas\030\037 \001(\010:\005false\022\031"
711 : "\n\021objc_class_prefix\030$ \001(\t\022\030\n\020csharp_name"
712 : "space\030% \001(\t\022\'\n\037javanano_use_deprecated_p"
713 : "ackage\030& \001(\010\022C\n\024uninterpreted_option\030\347\007 "
714 : "\003(\0132$.google.protobuf.UninterpretedOptio"
715 : "n\":\n\014OptimizeMode\022\t\n\005SPEED\020\001\022\r\n\tCODE_SIZ"
716 : "E\020\002\022\020\n\014LITE_RUNTIME\020\003*\t\010\350\007\020\200\200\200\200\002\"\346\001\n\016Mes"
717 : "sageOptions\022&\n\027message_set_wire_format\030\001"
718 : " \001(\010:\005false\022.\n\037no_standard_descriptor_ac"
719 : "cessor\030\002 \001(\010:\005false\022\031\n\ndeprecated\030\003 \001(\010:"
720 : "\005false\022\021\n\tmap_entry\030\007 \001(\010\022C\n\024uninterpret"
721 : "ed_option\030\347\007 \003(\0132$.google.protobuf.Unint"
722 : "erpretedOption*\t\010\350\007\020\200\200\200\200\002\"\230\003\n\014FieldOptio"
723 : "ns\022:\n\005ctype\030\001 \001(\0162#.google.protobuf.Fiel"
724 : "dOptions.CType:\006STRING\022\016\n\006packed\030\002 \001(\010\022\?"
725 : "\n\006jstype\030\006 \001(\0162$.google.protobuf.FieldOp"
726 : "tions.JSType:\tJS_NORMAL\022\023\n\004lazy\030\005 \001(\010:\005f"
727 : "alse\022\031\n\ndeprecated\030\003 \001(\010:\005false\022\023\n\004weak\030"
728 : "\n \001(\010:\005false\022C\n\024uninterpreted_option\030\347\007 "
729 : "\003(\0132$.google.protobuf.UninterpretedOptio"
730 : "n\"/\n\005CType\022\n\n\006STRING\020\000\022\010\n\004CORD\020\001\022\020\n\014STRI"
731 : "NG_PIECE\020\002\"5\n\006JSType\022\r\n\tJS_NORMAL\020\000\022\r\n\tJ"
732 : "S_STRING\020\001\022\r\n\tJS_NUMBER\020\002*\t\010\350\007\020\200\200\200\200\002\"\215\001\n"
733 : "\013EnumOptions\022\023\n\013allow_alias\030\002 \001(\010\022\031\n\ndep"
734 : "recated\030\003 \001(\010:\005false\022C\n\024uninterpreted_op"
735 : "tion\030\347\007 \003(\0132$.google.protobuf.Uninterpre"
736 : "tedOption*\t\010\350\007\020\200\200\200\200\002\"}\n\020EnumValueOptions"
737 : "\022\031\n\ndeprecated\030\001 \001(\010:\005false\022C\n\024uninterpr"
738 : "eted_option\030\347\007 \003(\0132$.google.protobuf.Uni"
739 : "nterpretedOption*\t\010\350\007\020\200\200\200\200\002\"{\n\016ServiceOp"
740 : "tions\022\031\n\ndeprecated\030! \001(\010:\005false\022C\n\024unin"
741 : "terpreted_option\030\347\007 \003(\0132$.google.protobu"
742 : "f.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\"z\n\rMeth"
743 : "odOptions\022\031\n\ndeprecated\030! \001(\010:\005false\022C\n\024"
744 : "uninterpreted_option\030\347\007 \003(\0132$.google.pro"
745 : "tobuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\"\236\002\n"
746 : "\023UninterpretedOption\022;\n\004name\030\002 \003(\0132-.goo"
747 : "gle.protobuf.UninterpretedOption.NamePar"
748 : "t\022\030\n\020identifier_value\030\003 \001(\t\022\032\n\022positive_"
749 : "int_value\030\004 \001(\004\022\032\n\022negative_int_value\030\005 "
750 : "\001(\003\022\024\n\014double_value\030\006 \001(\001\022\024\n\014string_valu"
751 : "e\030\007 \001(\014\022\027\n\017aggregate_value\030\010 \001(\t\0323\n\010Name"
752 : "Part\022\021\n\tname_part\030\001 \002(\t\022\024\n\014is_extension\030"
753 : "\002 \002(\010\"\325\001\n\016SourceCodeInfo\022:\n\010location\030\001 \003"
754 : "(\0132(.google.protobuf.SourceCodeInfo.Loca"
755 : "tion\032\206\001\n\010Location\022\020\n\004path\030\001 \003(\005B\002\020\001\022\020\n\004s"
756 : "pan\030\002 \003(\005B\002\020\001\022\030\n\020leading_comments\030\003 \001(\t\022"
757 : "\031\n\021trailing_comments\030\004 \001(\t\022!\n\031leading_de"
758 : "tached_comments\030\006 \003(\tB;\n\023com.google.prot"
759 : "obufB\020DescriptorProtosH\001Z\ndescriptor\242\002\003G"
760 46 : "PB", 4962);
761 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
762 46 : "google/protobuf/descriptor.proto", &protobuf_RegisterTypes);
763 46 : FileDescriptorSet::default_instance_ = new FileDescriptorSet();
764 46 : FileDescriptorProto::default_instance_ = new FileDescriptorProto();
765 46 : DescriptorProto::default_instance_ = new DescriptorProto();
766 46 : DescriptorProto_ExtensionRange::default_instance_ = new DescriptorProto_ExtensionRange();
767 46 : DescriptorProto_ReservedRange::default_instance_ = new DescriptorProto_ReservedRange();
768 46 : FieldDescriptorProto::default_instance_ = new FieldDescriptorProto();
769 46 : OneofDescriptorProto::default_instance_ = new OneofDescriptorProto();
770 46 : EnumDescriptorProto::default_instance_ = new EnumDescriptorProto();
771 46 : EnumValueDescriptorProto::default_instance_ = new EnumValueDescriptorProto();
772 46 : ServiceDescriptorProto::default_instance_ = new ServiceDescriptorProto();
773 46 : MethodDescriptorProto::default_instance_ = new MethodDescriptorProto();
774 46 : FileOptions::default_instance_ = new FileOptions();
775 46 : MessageOptions::default_instance_ = new MessageOptions();
776 46 : FieldOptions::default_instance_ = new FieldOptions();
777 46 : EnumOptions::default_instance_ = new EnumOptions();
778 46 : EnumValueOptions::default_instance_ = new EnumValueOptions();
779 46 : ServiceOptions::default_instance_ = new ServiceOptions();
780 46 : MethodOptions::default_instance_ = new MethodOptions();
781 46 : UninterpretedOption::default_instance_ = new UninterpretedOption();
782 46 : UninterpretedOption_NamePart::default_instance_ = new UninterpretedOption_NamePart();
783 46 : SourceCodeInfo::default_instance_ = new SourceCodeInfo();
784 46 : SourceCodeInfo_Location::default_instance_ = new SourceCodeInfo_Location();
785 46 : FileDescriptorSet::default_instance_->InitAsDefaultInstance();
786 46 : FileDescriptorProto::default_instance_->InitAsDefaultInstance();
787 46 : DescriptorProto::default_instance_->InitAsDefaultInstance();
788 46 : DescriptorProto_ExtensionRange::default_instance_->InitAsDefaultInstance();
789 46 : DescriptorProto_ReservedRange::default_instance_->InitAsDefaultInstance();
790 46 : FieldDescriptorProto::default_instance_->InitAsDefaultInstance();
791 46 : OneofDescriptorProto::default_instance_->InitAsDefaultInstance();
792 46 : EnumDescriptorProto::default_instance_->InitAsDefaultInstance();
793 46 : EnumValueDescriptorProto::default_instance_->InitAsDefaultInstance();
794 46 : ServiceDescriptorProto::default_instance_->InitAsDefaultInstance();
795 46 : MethodDescriptorProto::default_instance_->InitAsDefaultInstance();
796 46 : FileOptions::default_instance_->InitAsDefaultInstance();
797 46 : MessageOptions::default_instance_->InitAsDefaultInstance();
798 46 : FieldOptions::default_instance_->InitAsDefaultInstance();
799 46 : EnumOptions::default_instance_->InitAsDefaultInstance();
800 46 : EnumValueOptions::default_instance_->InitAsDefaultInstance();
801 46 : ServiceOptions::default_instance_->InitAsDefaultInstance();
802 46 : MethodOptions::default_instance_->InitAsDefaultInstance();
803 46 : UninterpretedOption::default_instance_->InitAsDefaultInstance();
804 46 : UninterpretedOption_NamePart::default_instance_->InitAsDefaultInstance();
805 46 : SourceCodeInfo::default_instance_->InitAsDefaultInstance();
806 46 : SourceCodeInfo_Location::default_instance_->InitAsDefaultInstance();
807 46 : ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto);
808 : }
809 :
810 : // Force AddDescriptors() to be called at static initialization time.
811 : struct StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto {
812 : StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto() {
813 46 : protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
814 : }
815 : } static_descriptor_initializer_google_2fprotobuf_2fdescriptor_2eproto_;
816 :
817 : namespace {
818 :
819 : static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD;
820 0 : static void MergeFromFail(int line) {
821 0 : GOOGLE_CHECK(false) << __FILE__ << ":" << line;
822 0 : }
823 :
824 : } // namespace
825 :
826 :
827 : // ===================================================================
828 :
829 : #ifndef _MSC_VER
830 : const int FileDescriptorSet::kFileFieldNumber;
831 : #endif // !_MSC_VER
832 :
833 46 : FileDescriptorSet::FileDescriptorSet()
834 138 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
835 46 : SharedCtor();
836 : // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorSet)
837 46 : }
838 :
839 46 : void FileDescriptorSet::InitAsDefaultInstance() {
840 46 : }
841 :
842 0 : FileDescriptorSet::FileDescriptorSet(const FileDescriptorSet& from)
843 : : ::google::protobuf::Message(),
844 0 : _internal_metadata_(NULL) {
845 0 : SharedCtor();
846 0 : MergeFrom(from);
847 : // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorSet)
848 0 : }
849 :
850 46 : void FileDescriptorSet::SharedCtor() {
851 46 : _cached_size_ = 0;
852 46 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
853 46 : }
854 :
855 0 : FileDescriptorSet::~FileDescriptorSet() {
856 : // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorSet)
857 0 : SharedDtor();
858 0 : }
859 :
860 0 : void FileDescriptorSet::SharedDtor() {
861 : if (this != default_instance_) {
862 : }
863 0 : }
864 :
865 0 : void FileDescriptorSet::SetCachedSize(int size) const {
866 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
867 0 : _cached_size_ = size;
868 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
869 0 : }
870 0 : const ::google::protobuf::Descriptor* FileDescriptorSet::descriptor() {
871 : protobuf_AssignDescriptorsOnce();
872 0 : return FileDescriptorSet_descriptor_;
873 : }
874 :
875 1 : const FileDescriptorSet& FileDescriptorSet::default_instance() {
876 1 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
877 1 : return *default_instance_;
878 : }
879 :
880 : FileDescriptorSet* FileDescriptorSet::default_instance_ = NULL;
881 :
882 0 : FileDescriptorSet* FileDescriptorSet::New(::google::protobuf::Arena* arena) const {
883 0 : FileDescriptorSet* n = new FileDescriptorSet;
884 0 : if (arena != NULL) {
885 0 : arena->Own(n);
886 : }
887 0 : return n;
888 : }
889 :
890 0 : void FileDescriptorSet::Clear() {
891 0 : file_.Clear();
892 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
893 0 : if (_internal_metadata_.have_unknown_fields()) {
894 0 : mutable_unknown_fields()->Clear();
895 : }
896 0 : }
897 :
898 0 : bool FileDescriptorSet::MergePartialFromCodedStream(
899 : ::google::protobuf::io::CodedInputStream* input) {
900 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
901 : ::google::protobuf::uint32 tag;
902 : // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorSet)
903 : for (;;) {
904 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
905 0 : tag = p.first;
906 0 : if (!p.second) goto handle_unusual;
907 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
908 : // repeated .google.protobuf.FileDescriptorProto file = 1;
909 : case 1: {
910 0 : if (tag == 10) {
911 0 : DO_(input->IncrementRecursionDepth());
912 : parse_loop_file:
913 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
914 : input, add_file()));
915 : } else {
916 : goto handle_unusual;
917 : }
918 0 : if (input->ExpectTag(10)) goto parse_loop_file;
919 0 : input->UnsafeDecrementRecursionDepth();
920 0 : if (input->ExpectAtEnd()) goto success;
921 : break;
922 : }
923 :
924 : default: {
925 : handle_unusual:
926 0 : if (tag == 0 ||
927 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
928 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
929 : goto success;
930 : }
931 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
932 : input, tag, mutable_unknown_fields()));
933 : break;
934 : }
935 : }
936 0 : }
937 : success:
938 : // @@protoc_insertion_point(parse_success:google.protobuf.FileDescriptorSet)
939 0 : return true;
940 : failure:
941 : // @@protoc_insertion_point(parse_failure:google.protobuf.FileDescriptorSet)
942 0 : return false;
943 : #undef DO_
944 : }
945 :
946 0 : void FileDescriptorSet::SerializeWithCachedSizes(
947 : ::google::protobuf::io::CodedOutputStream* output) const {
948 : // @@protoc_insertion_point(serialize_start:google.protobuf.FileDescriptorSet)
949 : // repeated .google.protobuf.FileDescriptorProto file = 1;
950 0 : for (unsigned int i = 0, n = this->file_size(); i < n; i++) {
951 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
952 0 : 1, this->file(i), output);
953 : }
954 :
955 0 : if (_internal_metadata_.have_unknown_fields()) {
956 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
957 0 : unknown_fields(), output);
958 : }
959 : // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorSet)
960 0 : }
961 :
962 0 : ::google::protobuf::uint8* FileDescriptorSet::SerializeWithCachedSizesToArray(
963 : ::google::protobuf::uint8* target) const {
964 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorSet)
965 : // repeated .google.protobuf.FileDescriptorProto file = 1;
966 0 : for (unsigned int i = 0, n = this->file_size(); i < n; i++) {
967 : target = ::google::protobuf::internal::WireFormatLite::
968 : WriteMessageNoVirtualToArray(
969 0 : 1, this->file(i), target);
970 : }
971 :
972 0 : if (_internal_metadata_.have_unknown_fields()) {
973 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
974 0 : unknown_fields(), target);
975 : }
976 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescriptorSet)
977 0 : return target;
978 : }
979 :
980 0 : int FileDescriptorSet::ByteSize() const {
981 0 : int total_size = 0;
982 :
983 : // repeated .google.protobuf.FileDescriptorProto file = 1;
984 0 : total_size += 1 * this->file_size();
985 0 : for (int i = 0; i < this->file_size(); i++) {
986 : total_size +=
987 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
988 0 : this->file(i));
989 : }
990 :
991 0 : if (_internal_metadata_.have_unknown_fields()) {
992 : total_size +=
993 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
994 0 : unknown_fields());
995 : }
996 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
997 0 : _cached_size_ = total_size;
998 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
999 0 : return total_size;
1000 : }
1001 :
1002 0 : void FileDescriptorSet::MergeFrom(const ::google::protobuf::Message& from) {
1003 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1004 : const FileDescriptorSet* source =
1005 : ::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorSet>(
1006 0 : &from);
1007 0 : if (source == NULL) {
1008 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1009 : } else {
1010 0 : MergeFrom(*source);
1011 : }
1012 0 : }
1013 :
1014 0 : void FileDescriptorSet::MergeFrom(const FileDescriptorSet& from) {
1015 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1016 0 : file_.MergeFrom(from.file_);
1017 0 : if (from._internal_metadata_.have_unknown_fields()) {
1018 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1019 : }
1020 0 : }
1021 :
1022 0 : void FileDescriptorSet::CopyFrom(const ::google::protobuf::Message& from) {
1023 0 : if (&from == this) return;
1024 0 : Clear();
1025 0 : MergeFrom(from);
1026 : }
1027 :
1028 0 : void FileDescriptorSet::CopyFrom(const FileDescriptorSet& from) {
1029 0 : if (&from == this) return;
1030 0 : Clear();
1031 0 : MergeFrom(from);
1032 : }
1033 :
1034 0 : bool FileDescriptorSet::IsInitialized() const {
1035 :
1036 0 : if (!::google::protobuf::internal::AllAreInitialized(this->file())) return false;
1037 0 : return true;
1038 : }
1039 :
1040 0 : void FileDescriptorSet::Swap(FileDescriptorSet* other) {
1041 0 : if (other == this) return;
1042 0 : InternalSwap(other);
1043 : }
1044 0 : void FileDescriptorSet::InternalSwap(FileDescriptorSet* other) {
1045 0 : file_.UnsafeArenaSwap(&other->file_);
1046 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
1047 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
1048 0 : std::swap(_cached_size_, other->_cached_size_);
1049 0 : }
1050 :
1051 0 : ::google::protobuf::Metadata FileDescriptorSet::GetMetadata() const {
1052 : protobuf_AssignDescriptorsOnce();
1053 : ::google::protobuf::Metadata metadata;
1054 0 : metadata.descriptor = FileDescriptorSet_descriptor_;
1055 0 : metadata.reflection = FileDescriptorSet_reflection_;
1056 0 : return metadata;
1057 : }
1058 :
1059 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
1060 : // FileDescriptorSet
1061 :
1062 : // repeated .google.protobuf.FileDescriptorProto file = 1;
1063 : int FileDescriptorSet::file_size() const {
1064 : return file_.size();
1065 : }
1066 : void FileDescriptorSet::clear_file() {
1067 : file_.Clear();
1068 : }
1069 : const ::google::protobuf::FileDescriptorProto& FileDescriptorSet::file(int index) const {
1070 : // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorSet.file)
1071 : return file_.Get(index);
1072 : }
1073 : ::google::protobuf::FileDescriptorProto* FileDescriptorSet::mutable_file(int index) {
1074 : // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorSet.file)
1075 : return file_.Mutable(index);
1076 : }
1077 : ::google::protobuf::FileDescriptorProto* FileDescriptorSet::add_file() {
1078 : // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorSet.file)
1079 : return file_.Add();
1080 : }
1081 : ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
1082 : FileDescriptorSet::mutable_file() {
1083 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorSet.file)
1084 : return &file_;
1085 : }
1086 : const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
1087 : FileDescriptorSet::file() const {
1088 : // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorSet.file)
1089 : return file_;
1090 : }
1091 :
1092 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
1093 :
1094 : // ===================================================================
1095 :
1096 : #ifndef _MSC_VER
1097 : const int FileDescriptorProto::kNameFieldNumber;
1098 : const int FileDescriptorProto::kPackageFieldNumber;
1099 : const int FileDescriptorProto::kDependencyFieldNumber;
1100 : const int FileDescriptorProto::kPublicDependencyFieldNumber;
1101 : const int FileDescriptorProto::kWeakDependencyFieldNumber;
1102 : const int FileDescriptorProto::kMessageTypeFieldNumber;
1103 : const int FileDescriptorProto::kEnumTypeFieldNumber;
1104 : const int FileDescriptorProto::kServiceFieldNumber;
1105 : const int FileDescriptorProto::kExtensionFieldNumber;
1106 : const int FileDescriptorProto::kOptionsFieldNumber;
1107 : const int FileDescriptorProto::kSourceCodeInfoFieldNumber;
1108 : const int FileDescriptorProto::kSyntaxFieldNumber;
1109 : #endif // !_MSC_VER
1110 :
1111 857 : FileDescriptorProto::FileDescriptorProto()
1112 7713 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1113 857 : SharedCtor();
1114 : // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorProto)
1115 857 : }
1116 :
1117 46 : void FileDescriptorProto::InitAsDefaultInstance() {
1118 46 : options_ = const_cast< ::google::protobuf::FileOptions*>(&::google::protobuf::FileOptions::default_instance());
1119 46 : source_code_info_ = const_cast< ::google::protobuf::SourceCodeInfo*>(&::google::protobuf::SourceCodeInfo::default_instance());
1120 46 : }
1121 :
1122 0 : FileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from)
1123 : : ::google::protobuf::Message(),
1124 0 : _internal_metadata_(NULL) {
1125 0 : SharedCtor();
1126 0 : MergeFrom(from);
1127 : // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorProto)
1128 0 : }
1129 :
1130 857 : void FileDescriptorProto::SharedCtor() {
1131 : ::google::protobuf::internal::GetEmptyString();
1132 857 : _cached_size_ = 0;
1133 857 : name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1134 857 : package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1135 857 : options_ = NULL;
1136 857 : source_code_info_ = NULL;
1137 857 : syntax_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1138 857 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
1139 857 : }
1140 :
1141 5703 : FileDescriptorProto::~FileDescriptorProto() {
1142 : // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorProto)
1143 811 : SharedDtor();
1144 837 : }
1145 :
1146 811 : void FileDescriptorProto::SharedDtor() {
1147 811 : name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1148 811 : package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1149 811 : syntax_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1150 811 : if (this != default_instance_) {
1151 811 : delete options_;
1152 811 : delete source_code_info_;
1153 : }
1154 811 : }
1155 :
1156 0 : void FileDescriptorProto::SetCachedSize(int size) const {
1157 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1158 0 : _cached_size_ = size;
1159 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1160 0 : }
1161 0 : const ::google::protobuf::Descriptor* FileDescriptorProto::descriptor() {
1162 : protobuf_AssignDescriptorsOnce();
1163 0 : return FileDescriptorProto_descriptor_;
1164 : }
1165 :
1166 1 : const FileDescriptorProto& FileDescriptorProto::default_instance() {
1167 1 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
1168 1 : return *default_instance_;
1169 : }
1170 :
1171 : FileDescriptorProto* FileDescriptorProto::default_instance_ = NULL;
1172 :
1173 0 : FileDescriptorProto* FileDescriptorProto::New(::google::protobuf::Arena* arena) const {
1174 0 : FileDescriptorProto* n = new FileDescriptorProto;
1175 0 : if (arena != NULL) {
1176 0 : arena->Own(n);
1177 : }
1178 0 : return n;
1179 : }
1180 :
1181 108 : void FileDescriptorProto::Clear() {
1182 108 : if (_has_bits_[0 / 32] & 3u) {
1183 0 : if (has_name()) {
1184 0 : name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1185 : }
1186 0 : if (has_package()) {
1187 0 : package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1188 : }
1189 : }
1190 108 : if (_has_bits_[8 / 32] & 3584u) {
1191 0 : if (has_options()) {
1192 0 : if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear();
1193 : }
1194 0 : if (has_source_code_info()) {
1195 0 : if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCodeInfo::Clear();
1196 : }
1197 0 : if (has_syntax()) {
1198 0 : syntax_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1199 : }
1200 : }
1201 108 : dependency_.Clear();
1202 108 : public_dependency_.Clear();
1203 108 : weak_dependency_.Clear();
1204 108 : message_type_.Clear();
1205 108 : enum_type_.Clear();
1206 108 : service_.Clear();
1207 108 : extension_.Clear();
1208 108 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
1209 216 : if (_internal_metadata_.have_unknown_fields()) {
1210 0 : mutable_unknown_fields()->Clear();
1211 : }
1212 108 : }
1213 :
1214 121 : bool FileDescriptorProto::MergePartialFromCodedStream(
1215 : ::google::protobuf::io::CodedInputStream* input) {
1216 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1217 : ::google::protobuf::uint32 tag;
1218 : // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorProto)
1219 : for (;;) {
1220 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1221 427 : tag = p.first;
1222 427 : if (!p.second) goto handle_unusual;
1223 351 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1224 : // optional string name = 1;
1225 : case 1: {
1226 121 : if (tag == 10) {
1227 242 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1228 : input, this->mutable_name()));
1229 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1230 242 : this->name().data(), this->name().length(),
1231 : ::google::protobuf::internal::WireFormat::PARSE,
1232 242 : "google.protobuf.FileDescriptorProto.name");
1233 : } else {
1234 : goto handle_unusual;
1235 : }
1236 121 : if (input->ExpectTag(18)) goto parse_package;
1237 : break;
1238 : }
1239 :
1240 : // optional string package = 2;
1241 : case 2: {
1242 0 : if (tag == 18) {
1243 : parse_package:
1244 242 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1245 : input, this->mutable_package()));
1246 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1247 242 : this->package().data(), this->package().length(),
1248 : ::google::protobuf::internal::WireFormat::PARSE,
1249 242 : "google.protobuf.FileDescriptorProto.package");
1250 : } else {
1251 : goto handle_unusual;
1252 : }
1253 121 : if (input->ExpectTag(26)) goto parse_dependency;
1254 : break;
1255 : }
1256 :
1257 : // repeated string dependency = 3;
1258 : case 3: {
1259 0 : if (tag == 26) {
1260 : parse_dependency:
1261 72 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1262 : input, this->add_dependency()));
1263 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1264 72 : this->dependency(this->dependency_size() - 1).data(),
1265 72 : this->dependency(this->dependency_size() - 1).length(),
1266 : ::google::protobuf::internal::WireFormat::PARSE,
1267 72 : "google.protobuf.FileDescriptorProto.dependency");
1268 : } else {
1269 : goto handle_unusual;
1270 : }
1271 36 : if (input->ExpectTag(26)) goto parse_dependency;
1272 35 : if (input->ExpectTag(34)) goto parse_message_type;
1273 : break;
1274 : }
1275 :
1276 : // repeated .google.protobuf.DescriptorProto message_type = 4;
1277 : case 4: {
1278 86 : if (tag == 34) {
1279 : parse_message_type:
1280 236 : DO_(input->IncrementRecursionDepth());
1281 : parse_loop_message_type:
1282 1270 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
1283 : input, add_message_type()));
1284 : } else {
1285 : goto handle_unusual;
1286 : }
1287 1270 : if (input->ExpectTag(34)) goto parse_loop_message_type;
1288 118 : if (input->ExpectTag(42)) goto parse_loop_enum_type;
1289 103 : input->UnsafeDecrementRecursionDepth();
1290 : break;
1291 : }
1292 :
1293 : // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1294 : case 5: {
1295 0 : if (tag == 42) {
1296 0 : DO_(input->IncrementRecursionDepth());
1297 : parse_loop_enum_type:
1298 54 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
1299 : input, add_enum_type()));
1300 : } else {
1301 : goto handle_unusual;
1302 : }
1303 54 : if (input->ExpectTag(42)) goto parse_loop_enum_type;
1304 15 : if (input->ExpectTag(50)) goto parse_loop_service;
1305 7 : input->UnsafeDecrementRecursionDepth();
1306 : break;
1307 : }
1308 :
1309 : // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1310 : case 6: {
1311 10 : if (tag == 50) {
1312 20 : DO_(input->IncrementRecursionDepth());
1313 : parse_loop_service:
1314 29 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
1315 : input, add_service()));
1316 : } else {
1317 : goto handle_unusual;
1318 : }
1319 29 : if (input->ExpectTag(50)) goto parse_loop_service;
1320 18 : if (input->ExpectTag(58)) goto parse_loop_extension;
1321 18 : input->UnsafeDecrementRecursionDepth();
1322 : break;
1323 : }
1324 :
1325 : // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1326 : case 7: {
1327 0 : if (tag == 58) {
1328 0 : DO_(input->IncrementRecursionDepth());
1329 : parse_loop_extension:
1330 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
1331 : input, add_extension()));
1332 : } else {
1333 : goto handle_unusual;
1334 : }
1335 0 : if (input->ExpectTag(58)) goto parse_loop_extension;
1336 0 : input->UnsafeDecrementRecursionDepth();
1337 0 : if (input->ExpectTag(66)) goto parse_options;
1338 : break;
1339 : }
1340 :
1341 : // optional .google.protobuf.FileOptions options = 8;
1342 : case 8: {
1343 76 : if (tag == 66) {
1344 : parse_options:
1345 76 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1346 : input, mutable_options()));
1347 : } else {
1348 : goto handle_unusual;
1349 : }
1350 76 : if (input->ExpectTag(74)) goto parse_source_code_info;
1351 : break;
1352 : }
1353 :
1354 : // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1355 : case 9: {
1356 13 : if (tag == 74) {
1357 : parse_source_code_info:
1358 13 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1359 : input, mutable_source_code_info()));
1360 : } else {
1361 : goto handle_unusual;
1362 : }
1363 13 : if (input->ExpectTag(80)) goto parse_public_dependency;
1364 : break;
1365 : }
1366 :
1367 : // repeated int32 public_dependency = 10;
1368 : case 10: {
1369 0 : if (tag == 80) {
1370 : parse_public_dependency:
1371 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
1372 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1373 : 1, 80, input, this->mutable_public_dependency())));
1374 0 : } else if (tag == 82) {
1375 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
1376 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1377 : input, this->mutable_public_dependency())));
1378 : } else {
1379 : goto handle_unusual;
1380 : }
1381 0 : if (input->ExpectTag(80)) goto parse_public_dependency;
1382 0 : if (input->ExpectTag(88)) goto parse_weak_dependency;
1383 : break;
1384 : }
1385 :
1386 : // repeated int32 weak_dependency = 11;
1387 : case 11: {
1388 0 : if (tag == 88) {
1389 : parse_weak_dependency:
1390 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
1391 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1392 : 1, 88, input, this->mutable_weak_dependency())));
1393 0 : } else if (tag == 90) {
1394 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
1395 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1396 : input, this->mutable_weak_dependency())));
1397 : } else {
1398 : goto handle_unusual;
1399 : }
1400 0 : if (input->ExpectTag(88)) goto parse_weak_dependency;
1401 0 : if (input->ExpectTag(98)) goto parse_syntax;
1402 : break;
1403 : }
1404 :
1405 : // optional string syntax = 12;
1406 : case 12: {
1407 45 : if (tag == 98) {
1408 : parse_syntax:
1409 90 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1410 : input, this->mutable_syntax()));
1411 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1412 90 : this->syntax().data(), this->syntax().length(),
1413 : ::google::protobuf::internal::WireFormat::PARSE,
1414 90 : "google.protobuf.FileDescriptorProto.syntax");
1415 : } else {
1416 : goto handle_unusual;
1417 : }
1418 45 : if (input->ExpectAtEnd()) goto success;
1419 : break;
1420 : }
1421 :
1422 : default: {
1423 : handle_unusual:
1424 76 : if (tag == 0 ||
1425 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1426 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1427 : goto success;
1428 : }
1429 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
1430 : input, tag, mutable_unknown_fields()));
1431 : break;
1432 : }
1433 : }
1434 306 : }
1435 : success:
1436 : // @@protoc_insertion_point(parse_success:google.protobuf.FileDescriptorProto)
1437 121 : return true;
1438 : failure:
1439 : // @@protoc_insertion_point(parse_failure:google.protobuf.FileDescriptorProto)
1440 0 : return false;
1441 : #undef DO_
1442 : }
1443 :
1444 0 : void FileDescriptorProto::SerializeWithCachedSizes(
1445 0 : ::google::protobuf::io::CodedOutputStream* output) const {
1446 : // @@protoc_insertion_point(serialize_start:google.protobuf.FileDescriptorProto)
1447 : // optional string name = 1;
1448 0 : if (has_name()) {
1449 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1450 0 : this->name().data(), this->name().length(),
1451 : ::google::protobuf::internal::WireFormat::SERIALIZE,
1452 0 : "google.protobuf.FileDescriptorProto.name");
1453 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1454 0 : 1, this->name(), output);
1455 : }
1456 :
1457 : // optional string package = 2;
1458 0 : if (has_package()) {
1459 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1460 0 : this->package().data(), this->package().length(),
1461 : ::google::protobuf::internal::WireFormat::SERIALIZE,
1462 0 : "google.protobuf.FileDescriptorProto.package");
1463 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1464 0 : 2, this->package(), output);
1465 : }
1466 :
1467 : // repeated string dependency = 3;
1468 0 : for (int i = 0; i < this->dependency_size(); i++) {
1469 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1470 0 : this->dependency(i).data(), this->dependency(i).length(),
1471 : ::google::protobuf::internal::WireFormat::SERIALIZE,
1472 0 : "google.protobuf.FileDescriptorProto.dependency");
1473 : ::google::protobuf::internal::WireFormatLite::WriteString(
1474 0 : 3, this->dependency(i), output);
1475 : }
1476 :
1477 : // repeated .google.protobuf.DescriptorProto message_type = 4;
1478 0 : for (unsigned int i = 0, n = this->message_type_size(); i < n; i++) {
1479 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1480 0 : 4, this->message_type(i), output);
1481 : }
1482 :
1483 : // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1484 0 : for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) {
1485 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1486 0 : 5, this->enum_type(i), output);
1487 : }
1488 :
1489 : // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1490 0 : for (unsigned int i = 0, n = this->service_size(); i < n; i++) {
1491 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1492 0 : 6, this->service(i), output);
1493 : }
1494 :
1495 : // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1496 0 : for (unsigned int i = 0, n = this->extension_size(); i < n; i++) {
1497 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1498 0 : 7, this->extension(i), output);
1499 : }
1500 :
1501 : // optional .google.protobuf.FileOptions options = 8;
1502 0 : if (has_options()) {
1503 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1504 0 : 8, *this->options_, output);
1505 : }
1506 :
1507 : // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1508 0 : if (has_source_code_info()) {
1509 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1510 0 : 9, *this->source_code_info_, output);
1511 : }
1512 :
1513 : // repeated int32 public_dependency = 10;
1514 0 : for (int i = 0; i < this->public_dependency_size(); i++) {
1515 : ::google::protobuf::internal::WireFormatLite::WriteInt32(
1516 0 : 10, this->public_dependency(i), output);
1517 : }
1518 :
1519 : // repeated int32 weak_dependency = 11;
1520 0 : for (int i = 0; i < this->weak_dependency_size(); i++) {
1521 : ::google::protobuf::internal::WireFormatLite::WriteInt32(
1522 0 : 11, this->weak_dependency(i), output);
1523 : }
1524 :
1525 : // optional string syntax = 12;
1526 0 : if (has_syntax()) {
1527 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1528 0 : this->syntax().data(), this->syntax().length(),
1529 : ::google::protobuf::internal::WireFormat::SERIALIZE,
1530 0 : "google.protobuf.FileDescriptorProto.syntax");
1531 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1532 0 : 12, this->syntax(), output);
1533 : }
1534 :
1535 0 : if (_internal_metadata_.have_unknown_fields()) {
1536 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1537 0 : unknown_fields(), output);
1538 : }
1539 : // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorProto)
1540 0 : }
1541 :
1542 56 : ::google::protobuf::uint8* FileDescriptorProto::SerializeWithCachedSizesToArray(
1543 280 : ::google::protobuf::uint8* target) const {
1544 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorProto)
1545 : // optional string name = 1;
1546 112 : if (has_name()) {
1547 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1548 112 : this->name().data(), this->name().length(),
1549 : ::google::protobuf::internal::WireFormat::SERIALIZE,
1550 112 : "google.protobuf.FileDescriptorProto.name");
1551 : target =
1552 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1553 112 : 1, this->name(), target);
1554 : }
1555 :
1556 : // optional string package = 2;
1557 112 : if (has_package()) {
1558 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1559 110 : this->package().data(), this->package().length(),
1560 : ::google::protobuf::internal::WireFormat::SERIALIZE,
1561 110 : "google.protobuf.FileDescriptorProto.package");
1562 : target =
1563 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1564 110 : 2, this->package(), target);
1565 : }
1566 :
1567 : // repeated string dependency = 3;
1568 158 : for (int i = 0; i < this->dependency_size(); i++) {
1569 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1570 102 : this->dependency(i).data(), this->dependency(i).length(),
1571 : ::google::protobuf::internal::WireFormat::SERIALIZE,
1572 102 : "google.protobuf.FileDescriptorProto.dependency");
1573 : target = ::google::protobuf::internal::WireFormatLite::
1574 102 : WriteStringToArray(3, this->dependency(i), target);
1575 : }
1576 :
1577 : // repeated .google.protobuf.DescriptorProto message_type = 4;
1578 405 : for (unsigned int i = 0, n = this->message_type_size(); i < n; i++) {
1579 : target = ::google::protobuf::internal::WireFormatLite::
1580 : WriteMessageNoVirtualToArray(
1581 879 : 4, this->message_type(i), target);
1582 : }
1583 :
1584 : // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1585 151 : for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) {
1586 : target = ::google::protobuf::internal::WireFormatLite::
1587 : WriteMessageNoVirtualToArray(
1588 117 : 5, this->enum_type(i), target);
1589 : }
1590 :
1591 : // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1592 144 : for (unsigned int i = 0, n = this->service_size(); i < n; i++) {
1593 : target = ::google::protobuf::internal::WireFormatLite::
1594 : WriteMessageNoVirtualToArray(
1595 96 : 6, this->service(i), target);
1596 : }
1597 :
1598 : // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1599 259 : for (unsigned int i = 0, n = this->extension_size(); i < n; i++) {
1600 : target = ::google::protobuf::internal::WireFormatLite::
1601 : WriteMessageNoVirtualToArray(
1602 441 : 7, this->extension(i), target);
1603 : }
1604 :
1605 : // optional .google.protobuf.FileOptions options = 8;
1606 112 : if (has_options()) {
1607 : target = ::google::protobuf::internal::WireFormatLite::
1608 : WriteMessageNoVirtualToArray(
1609 44 : 8, *this->options_, target);
1610 : }
1611 :
1612 : // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1613 112 : if (has_source_code_info()) {
1614 : target = ::google::protobuf::internal::WireFormatLite::
1615 : WriteMessageNoVirtualToArray(
1616 26 : 9, *this->source_code_info_, target);
1617 : }
1618 :
1619 : // repeated int32 public_dependency = 10;
1620 58 : for (int i = 0; i < this->public_dependency_size(); i++) {
1621 : target = ::google::protobuf::internal::WireFormatLite::
1622 2 : WriteInt32ToArray(10, this->public_dependency(i), target);
1623 : }
1624 :
1625 : // repeated int32 weak_dependency = 11;
1626 56 : for (int i = 0; i < this->weak_dependency_size(); i++) {
1627 : target = ::google::protobuf::internal::WireFormatLite::
1628 0 : WriteInt32ToArray(11, this->weak_dependency(i), target);
1629 : }
1630 :
1631 : // optional string syntax = 12;
1632 112 : if (has_syntax()) {
1633 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1634 74 : this->syntax().data(), this->syntax().length(),
1635 : ::google::protobuf::internal::WireFormat::SERIALIZE,
1636 74 : "google.protobuf.FileDescriptorProto.syntax");
1637 : target =
1638 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1639 74 : 12, this->syntax(), target);
1640 : }
1641 :
1642 112 : if (_internal_metadata_.have_unknown_fields()) {
1643 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1644 0 : unknown_fields(), target);
1645 : }
1646 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescriptorProto)
1647 56 : return target;
1648 : }
1649 :
1650 210 : int FileDescriptorProto::ByteSize() const {
1651 56 : int total_size = 0;
1652 :
1653 56 : if (_has_bits_[0 / 32] & 3u) {
1654 : // optional string name = 1;
1655 112 : if (has_name()) {
1656 : total_size += 1 +
1657 : ::google::protobuf::internal::WireFormatLite::StringSize(
1658 56 : this->name());
1659 : }
1660 :
1661 : // optional string package = 2;
1662 112 : if (has_package()) {
1663 : total_size += 1 +
1664 : ::google::protobuf::internal::WireFormatLite::StringSize(
1665 55 : this->package());
1666 : }
1667 :
1668 : }
1669 56 : if (_has_bits_[9 / 32] & 3584u) {
1670 : // optional .google.protobuf.FileOptions options = 8;
1671 98 : if (has_options()) {
1672 : total_size += 1 +
1673 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1674 22 : *this->options_);
1675 : }
1676 :
1677 : // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1678 98 : if (has_source_code_info()) {
1679 : total_size += 1 +
1680 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1681 13 : *this->source_code_info_);
1682 : }
1683 :
1684 : // optional string syntax = 12;
1685 98 : if (has_syntax()) {
1686 : total_size += 1 +
1687 : ::google::protobuf::internal::WireFormatLite::StringSize(
1688 37 : this->syntax());
1689 : }
1690 :
1691 : }
1692 : // repeated string dependency = 3;
1693 56 : total_size += 1 * this->dependency_size();
1694 214 : for (int i = 0; i < this->dependency_size(); i++) {
1695 : total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
1696 51 : this->dependency(i));
1697 : }
1698 :
1699 : // repeated int32 public_dependency = 10;
1700 : {
1701 : int data_size = 0;
1702 58 : for (int i = 0; i < this->public_dependency_size(); i++) {
1703 : data_size += ::google::protobuf::internal::WireFormatLite::
1704 2 : Int32Size(this->public_dependency(i));
1705 : }
1706 56 : total_size += 1 * this->public_dependency_size() + data_size;
1707 : }
1708 :
1709 : // repeated int32 weak_dependency = 11;
1710 : {
1711 56 : int data_size = 0;
1712 112 : for (int i = 0; i < this->weak_dependency_size(); i++) {
1713 : data_size += ::google::protobuf::internal::WireFormatLite::
1714 0 : Int32Size(this->weak_dependency(i));
1715 : }
1716 56 : total_size += 1 * this->weak_dependency_size() + data_size;
1717 : }
1718 :
1719 : // repeated .google.protobuf.DescriptorProto message_type = 4;
1720 56 : total_size += 1 * this->message_type_size();
1721 698 : for (int i = 0; i < this->message_type_size(); i++) {
1722 : total_size +=
1723 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1724 293 : this->message_type(i));
1725 : }
1726 :
1727 : // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1728 56 : total_size += 1 * this->enum_type_size();
1729 190 : for (int i = 0; i < this->enum_type_size(); i++) {
1730 : total_size +=
1731 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1732 39 : this->enum_type(i));
1733 : }
1734 :
1735 : // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1736 56 : total_size += 1 * this->service_size();
1737 176 : for (int i = 0; i < this->service_size(); i++) {
1738 : total_size +=
1739 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1740 32 : this->service(i));
1741 : }
1742 :
1743 : // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1744 56 : total_size += 1 * this->extension_size();
1745 406 : for (int i = 0; i < this->extension_size(); i++) {
1746 : total_size +=
1747 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1748 147 : this->extension(i));
1749 : }
1750 :
1751 112 : if (_internal_metadata_.have_unknown_fields()) {
1752 : total_size +=
1753 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1754 0 : unknown_fields());
1755 : }
1756 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1757 56 : _cached_size_ = total_size;
1758 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1759 56 : return total_size;
1760 : }
1761 :
1762 0 : void FileDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
1763 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1764 : const FileDescriptorProto* source =
1765 : ::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorProto>(
1766 0 : &from);
1767 0 : if (source == NULL) {
1768 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1769 : } else {
1770 0 : MergeFrom(*source);
1771 : }
1772 0 : }
1773 :
1774 0 : void FileDescriptorProto::MergeFrom(const FileDescriptorProto& from) {
1775 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1776 0 : dependency_.MergeFrom(from.dependency_);
1777 0 : public_dependency_.MergeFrom(from.public_dependency_);
1778 0 : weak_dependency_.MergeFrom(from.weak_dependency_);
1779 0 : message_type_.MergeFrom(from.message_type_);
1780 0 : enum_type_.MergeFrom(from.enum_type_);
1781 0 : service_.MergeFrom(from.service_);
1782 0 : extension_.MergeFrom(from.extension_);
1783 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1784 0 : if (from.has_name()) {
1785 0 : set_has_name();
1786 0 : name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
1787 : }
1788 0 : if (from.has_package()) {
1789 0 : set_has_package();
1790 0 : package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.package_);
1791 : }
1792 : }
1793 0 : if (from._has_bits_[9 / 32] & (0xffu << (9 % 32))) {
1794 0 : if (from.has_options()) {
1795 0 : mutable_options()->::google::protobuf::FileOptions::MergeFrom(from.options());
1796 : }
1797 0 : if (from.has_source_code_info()) {
1798 0 : mutable_source_code_info()->::google::protobuf::SourceCodeInfo::MergeFrom(from.source_code_info());
1799 : }
1800 0 : if (from.has_syntax()) {
1801 0 : set_has_syntax();
1802 0 : syntax_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.syntax_);
1803 : }
1804 : }
1805 0 : if (from._internal_metadata_.have_unknown_fields()) {
1806 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1807 : }
1808 0 : }
1809 :
1810 0 : void FileDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
1811 0 : if (&from == this) return;
1812 0 : Clear();
1813 0 : MergeFrom(from);
1814 : }
1815 :
1816 0 : void FileDescriptorProto::CopyFrom(const FileDescriptorProto& from) {
1817 0 : if (&from == this) return;
1818 0 : Clear();
1819 0 : MergeFrom(from);
1820 : }
1821 :
1822 242 : bool FileDescriptorProto::IsInitialized() const {
1823 :
1824 242 : if (!::google::protobuf::internal::AllAreInitialized(this->message_type())) return false;
1825 242 : if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) return false;
1826 242 : if (!::google::protobuf::internal::AllAreInitialized(this->service())) return false;
1827 242 : if (!::google::protobuf::internal::AllAreInitialized(this->extension())) return false;
1828 242 : if (has_options()) {
1829 76 : if (!this->options_->IsInitialized()) return false;
1830 : }
1831 : return true;
1832 : }
1833 :
1834 0 : void FileDescriptorProto::Swap(FileDescriptorProto* other) {
1835 0 : if (other == this) return;
1836 0 : InternalSwap(other);
1837 : }
1838 0 : void FileDescriptorProto::InternalSwap(FileDescriptorProto* other) {
1839 0 : name_.Swap(&other->name_);
1840 0 : package_.Swap(&other->package_);
1841 0 : dependency_.UnsafeArenaSwap(&other->dependency_);
1842 0 : public_dependency_.UnsafeArenaSwap(&other->public_dependency_);
1843 0 : weak_dependency_.UnsafeArenaSwap(&other->weak_dependency_);
1844 0 : message_type_.UnsafeArenaSwap(&other->message_type_);
1845 0 : enum_type_.UnsafeArenaSwap(&other->enum_type_);
1846 0 : service_.UnsafeArenaSwap(&other->service_);
1847 0 : extension_.UnsafeArenaSwap(&other->extension_);
1848 0 : std::swap(options_, other->options_);
1849 0 : std::swap(source_code_info_, other->source_code_info_);
1850 0 : syntax_.Swap(&other->syntax_);
1851 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
1852 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
1853 0 : std::swap(_cached_size_, other->_cached_size_);
1854 0 : }
1855 :
1856 0 : ::google::protobuf::Metadata FileDescriptorProto::GetMetadata() const {
1857 : protobuf_AssignDescriptorsOnce();
1858 : ::google::protobuf::Metadata metadata;
1859 0 : metadata.descriptor = FileDescriptorProto_descriptor_;
1860 0 : metadata.reflection = FileDescriptorProto_reflection_;
1861 0 : return metadata;
1862 : }
1863 :
1864 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
1865 : // FileDescriptorProto
1866 :
1867 : // optional string name = 1;
1868 : bool FileDescriptorProto::has_name() const {
1869 : return (_has_bits_[0] & 0x00000001u) != 0;
1870 : }
1871 : void FileDescriptorProto::set_has_name() {
1872 : _has_bits_[0] |= 0x00000001u;
1873 : }
1874 : void FileDescriptorProto::clear_has_name() {
1875 : _has_bits_[0] &= ~0x00000001u;
1876 : }
1877 : void FileDescriptorProto::clear_name() {
1878 : name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1879 : clear_has_name();
1880 : }
1881 : const ::std::string& FileDescriptorProto::name() const {
1882 : // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.name)
1883 : return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1884 : }
1885 : void FileDescriptorProto::set_name(const ::std::string& value) {
1886 : set_has_name();
1887 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1888 : // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.name)
1889 : }
1890 : void FileDescriptorProto::set_name(const char* value) {
1891 : set_has_name();
1892 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1893 : // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.name)
1894 : }
1895 : void FileDescriptorProto::set_name(const char* value, size_t size) {
1896 : set_has_name();
1897 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1898 : ::std::string(reinterpret_cast<const char*>(value), size));
1899 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.name)
1900 : }
1901 : ::std::string* FileDescriptorProto::mutable_name() {
1902 : set_has_name();
1903 : // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.name)
1904 : return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1905 : }
1906 : ::std::string* FileDescriptorProto::release_name() {
1907 : clear_has_name();
1908 : return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1909 : }
1910 : void FileDescriptorProto::set_allocated_name(::std::string* name) {
1911 : if (name != NULL) {
1912 : set_has_name();
1913 : } else {
1914 : clear_has_name();
1915 : }
1916 : name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
1917 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.name)
1918 : }
1919 :
1920 : // optional string package = 2;
1921 : bool FileDescriptorProto::has_package() const {
1922 : return (_has_bits_[0] & 0x00000002u) != 0;
1923 : }
1924 : void FileDescriptorProto::set_has_package() {
1925 : _has_bits_[0] |= 0x00000002u;
1926 : }
1927 : void FileDescriptorProto::clear_has_package() {
1928 : _has_bits_[0] &= ~0x00000002u;
1929 : }
1930 : void FileDescriptorProto::clear_package() {
1931 : package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1932 : clear_has_package();
1933 : }
1934 : const ::std::string& FileDescriptorProto::package() const {
1935 : // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.package)
1936 : return package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1937 : }
1938 : void FileDescriptorProto::set_package(const ::std::string& value) {
1939 : set_has_package();
1940 : package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1941 : // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.package)
1942 : }
1943 : void FileDescriptorProto::set_package(const char* value) {
1944 : set_has_package();
1945 : package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1946 : // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.package)
1947 : }
1948 : void FileDescriptorProto::set_package(const char* value, size_t size) {
1949 : set_has_package();
1950 : package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1951 : ::std::string(reinterpret_cast<const char*>(value), size));
1952 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.package)
1953 : }
1954 : ::std::string* FileDescriptorProto::mutable_package() {
1955 : set_has_package();
1956 : // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.package)
1957 : return package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1958 : }
1959 : ::std::string* FileDescriptorProto::release_package() {
1960 : clear_has_package();
1961 : return package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1962 : }
1963 : void FileDescriptorProto::set_allocated_package(::std::string* package) {
1964 : if (package != NULL) {
1965 : set_has_package();
1966 : } else {
1967 : clear_has_package();
1968 : }
1969 : package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), package);
1970 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.package)
1971 : }
1972 :
1973 : // repeated string dependency = 3;
1974 : int FileDescriptorProto::dependency_size() const {
1975 : return dependency_.size();
1976 : }
1977 : void FileDescriptorProto::clear_dependency() {
1978 : dependency_.Clear();
1979 : }
1980 : const ::std::string& FileDescriptorProto::dependency(int index) const {
1981 : // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.dependency)
1982 : return dependency_.Get(index);
1983 : }
1984 : ::std::string* FileDescriptorProto::mutable_dependency(int index) {
1985 : // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.dependency)
1986 : return dependency_.Mutable(index);
1987 : }
1988 : void FileDescriptorProto::set_dependency(int index, const ::std::string& value) {
1989 : // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency)
1990 : dependency_.Mutable(index)->assign(value);
1991 : }
1992 : void FileDescriptorProto::set_dependency(int index, const char* value) {
1993 : dependency_.Mutable(index)->assign(value);
1994 : // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.dependency)
1995 : }
1996 : void FileDescriptorProto::set_dependency(int index, const char* value, size_t size) {
1997 : dependency_.Mutable(index)->assign(
1998 : reinterpret_cast<const char*>(value), size);
1999 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.dependency)
2000 : }
2001 : ::std::string* FileDescriptorProto::add_dependency() {
2002 : return dependency_.Add();
2003 : }
2004 : void FileDescriptorProto::add_dependency(const ::std::string& value) {
2005 : dependency_.Add()->assign(value);
2006 : // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency)
2007 : }
2008 : void FileDescriptorProto::add_dependency(const char* value) {
2009 : dependency_.Add()->assign(value);
2010 : // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto.dependency)
2011 : }
2012 : void FileDescriptorProto::add_dependency(const char* value, size_t size) {
2013 : dependency_.Add()->assign(reinterpret_cast<const char*>(value), size);
2014 : // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorProto.dependency)
2015 : }
2016 : const ::google::protobuf::RepeatedPtrField< ::std::string>&
2017 : FileDescriptorProto::dependency() const {
2018 : // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dependency)
2019 : return dependency_;
2020 : }
2021 : ::google::protobuf::RepeatedPtrField< ::std::string>*
2022 : FileDescriptorProto::mutable_dependency() {
2023 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.dependency)
2024 : return &dependency_;
2025 : }
2026 :
2027 : // repeated int32 public_dependency = 10;
2028 : int FileDescriptorProto::public_dependency_size() const {
2029 : return public_dependency_.size();
2030 : }
2031 : void FileDescriptorProto::clear_public_dependency() {
2032 : public_dependency_.Clear();
2033 : }
2034 : ::google::protobuf::int32 FileDescriptorProto::public_dependency(int index) const {
2035 : // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.public_dependency)
2036 : return public_dependency_.Get(index);
2037 : }
2038 : void FileDescriptorProto::set_public_dependency(int index, ::google::protobuf::int32 value) {
2039 : public_dependency_.Set(index, value);
2040 : // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.public_dependency)
2041 : }
2042 : void FileDescriptorProto::add_public_dependency(::google::protobuf::int32 value) {
2043 : public_dependency_.Add(value);
2044 : // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.public_dependency)
2045 : }
2046 : const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
2047 : FileDescriptorProto::public_dependency() const {
2048 : // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.public_dependency)
2049 : return public_dependency_;
2050 : }
2051 : ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
2052 : FileDescriptorProto::mutable_public_dependency() {
2053 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.public_dependency)
2054 : return &public_dependency_;
2055 : }
2056 :
2057 : // repeated int32 weak_dependency = 11;
2058 : int FileDescriptorProto::weak_dependency_size() const {
2059 : return weak_dependency_.size();
2060 : }
2061 : void FileDescriptorProto::clear_weak_dependency() {
2062 : weak_dependency_.Clear();
2063 : }
2064 : ::google::protobuf::int32 FileDescriptorProto::weak_dependency(int index) const {
2065 : // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak_dependency)
2066 : return weak_dependency_.Get(index);
2067 : }
2068 : void FileDescriptorProto::set_weak_dependency(int index, ::google::protobuf::int32 value) {
2069 : weak_dependency_.Set(index, value);
2070 : // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak_dependency)
2071 : }
2072 : void FileDescriptorProto::add_weak_dependency(::google::protobuf::int32 value) {
2073 : weak_dependency_.Add(value);
2074 : // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak_dependency)
2075 : }
2076 : const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
2077 : FileDescriptorProto::weak_dependency() const {
2078 : // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.weak_dependency)
2079 : return weak_dependency_;
2080 : }
2081 : ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
2082 : FileDescriptorProto::mutable_weak_dependency() {
2083 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.weak_dependency)
2084 : return &weak_dependency_;
2085 : }
2086 :
2087 : // repeated .google.protobuf.DescriptorProto message_type = 4;
2088 : int FileDescriptorProto::message_type_size() const {
2089 : return message_type_.size();
2090 : }
2091 : void FileDescriptorProto::clear_message_type() {
2092 : message_type_.Clear();
2093 : }
2094 : const ::google::protobuf::DescriptorProto& FileDescriptorProto::message_type(int index) const {
2095 : // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.message_type)
2096 : return message_type_.Get(index);
2097 : }
2098 : ::google::protobuf::DescriptorProto* FileDescriptorProto::mutable_message_type(int index) {
2099 : // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.message_type)
2100 : return message_type_.Mutable(index);
2101 : }
2102 : ::google::protobuf::DescriptorProto* FileDescriptorProto::add_message_type() {
2103 : // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.message_type)
2104 : return message_type_.Add();
2105 : }
2106 : ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
2107 : FileDescriptorProto::mutable_message_type() {
2108 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.message_type)
2109 : return &message_type_;
2110 : }
2111 : const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
2112 : FileDescriptorProto::message_type() const {
2113 : // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.message_type)
2114 : return message_type_;
2115 : }
2116 :
2117 : // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
2118 : int FileDescriptorProto::enum_type_size() const {
2119 : return enum_type_.size();
2120 : }
2121 : void FileDescriptorProto::clear_enum_type() {
2122 : enum_type_.Clear();
2123 : }
2124 : const ::google::protobuf::EnumDescriptorProto& FileDescriptorProto::enum_type(int index) const {
2125 : // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.enum_type)
2126 : return enum_type_.Get(index);
2127 : }
2128 : ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::mutable_enum_type(int index) {
2129 : // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.enum_type)
2130 : return enum_type_.Mutable(index);
2131 : }
2132 : ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::add_enum_type() {
2133 : // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.enum_type)
2134 : return enum_type_.Add();
2135 : }
2136 : ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
2137 : FileDescriptorProto::mutable_enum_type() {
2138 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.enum_type)
2139 : return &enum_type_;
2140 : }
2141 : const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
2142 : FileDescriptorProto::enum_type() const {
2143 : // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.enum_type)
2144 : return enum_type_;
2145 : }
2146 :
2147 : // repeated .google.protobuf.ServiceDescriptorProto service = 6;
2148 : int FileDescriptorProto::service_size() const {
2149 : return service_.size();
2150 : }
2151 : void FileDescriptorProto::clear_service() {
2152 : service_.Clear();
2153 : }
2154 : const ::google::protobuf::ServiceDescriptorProto& FileDescriptorProto::service(int index) const {
2155 : // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.service)
2156 : return service_.Get(index);
2157 : }
2158 : ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::mutable_service(int index) {
2159 : // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.service)
2160 : return service_.Mutable(index);
2161 : }
2162 : ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::add_service() {
2163 : // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.service)
2164 : return service_.Add();
2165 : }
2166 : ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >*
2167 : FileDescriptorProto::mutable_service() {
2168 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.service)
2169 : return &service_;
2170 : }
2171 : const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >&
2172 : FileDescriptorProto::service() const {
2173 : // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.service)
2174 : return service_;
2175 : }
2176 :
2177 : // repeated .google.protobuf.FieldDescriptorProto extension = 7;
2178 : int FileDescriptorProto::extension_size() const {
2179 : return extension_.size();
2180 : }
2181 : void FileDescriptorProto::clear_extension() {
2182 : extension_.Clear();
2183 : }
2184 : const ::google::protobuf::FieldDescriptorProto& FileDescriptorProto::extension(int index) const {
2185 : // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.extension)
2186 : return extension_.Get(index);
2187 : }
2188 : ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::mutable_extension(int index) {
2189 : // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.extension)
2190 : return extension_.Mutable(index);
2191 : }
2192 : ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::add_extension() {
2193 : // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.extension)
2194 : return extension_.Add();
2195 : }
2196 : ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
2197 : FileDescriptorProto::mutable_extension() {
2198 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.extension)
2199 : return &extension_;
2200 : }
2201 : const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
2202 : FileDescriptorProto::extension() const {
2203 : // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.extension)
2204 : return extension_;
2205 : }
2206 :
2207 : // optional .google.protobuf.FileOptions options = 8;
2208 : bool FileDescriptorProto::has_options() const {
2209 : return (_has_bits_[0] & 0x00000200u) != 0;
2210 : }
2211 : void FileDescriptorProto::set_has_options() {
2212 : _has_bits_[0] |= 0x00000200u;
2213 : }
2214 : void FileDescriptorProto::clear_has_options() {
2215 : _has_bits_[0] &= ~0x00000200u;
2216 : }
2217 : void FileDescriptorProto::clear_options() {
2218 : if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear();
2219 : clear_has_options();
2220 : }
2221 : const ::google::protobuf::FileOptions& FileDescriptorProto::options() const {
2222 : // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.options)
2223 : return options_ != NULL ? *options_ : *default_instance_->options_;
2224 : }
2225 : ::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() {
2226 : set_has_options();
2227 : if (options_ == NULL) {
2228 : options_ = new ::google::protobuf::FileOptions;
2229 : }
2230 : // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.options)
2231 : return options_;
2232 : }
2233 : ::google::protobuf::FileOptions* FileDescriptorProto::release_options() {
2234 : clear_has_options();
2235 : ::google::protobuf::FileOptions* temp = options_;
2236 : options_ = NULL;
2237 : return temp;
2238 : }
2239 : void FileDescriptorProto::set_allocated_options(::google::protobuf::FileOptions* options) {
2240 : delete options_;
2241 : options_ = options;
2242 : if (options) {
2243 : set_has_options();
2244 : } else {
2245 : clear_has_options();
2246 : }
2247 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.options)
2248 : }
2249 :
2250 : // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
2251 : bool FileDescriptorProto::has_source_code_info() const {
2252 : return (_has_bits_[0] & 0x00000400u) != 0;
2253 : }
2254 : void FileDescriptorProto::set_has_source_code_info() {
2255 : _has_bits_[0] |= 0x00000400u;
2256 : }
2257 : void FileDescriptorProto::clear_has_source_code_info() {
2258 : _has_bits_[0] &= ~0x00000400u;
2259 : }
2260 : void FileDescriptorProto::clear_source_code_info() {
2261 : if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCodeInfo::Clear();
2262 : clear_has_source_code_info();
2263 : }
2264 : const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::source_code_info() const {
2265 : // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.source_code_info)
2266 : return source_code_info_ != NULL ? *source_code_info_ : *default_instance_->source_code_info_;
2267 : }
2268 : ::google::protobuf::SourceCodeInfo* FileDescriptorProto::mutable_source_code_info() {
2269 : set_has_source_code_info();
2270 : if (source_code_info_ == NULL) {
2271 : source_code_info_ = new ::google::protobuf::SourceCodeInfo;
2272 : }
2273 : // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.source_code_info)
2274 : return source_code_info_;
2275 : }
2276 : ::google::protobuf::SourceCodeInfo* FileDescriptorProto::release_source_code_info() {
2277 : clear_has_source_code_info();
2278 : ::google::protobuf::SourceCodeInfo* temp = source_code_info_;
2279 : source_code_info_ = NULL;
2280 : return temp;
2281 : }
2282 : void FileDescriptorProto::set_allocated_source_code_info(::google::protobuf::SourceCodeInfo* source_code_info) {
2283 : delete source_code_info_;
2284 : source_code_info_ = source_code_info;
2285 : if (source_code_info) {
2286 : set_has_source_code_info();
2287 : } else {
2288 : clear_has_source_code_info();
2289 : }
2290 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.source_code_info)
2291 : }
2292 :
2293 : // optional string syntax = 12;
2294 : bool FileDescriptorProto::has_syntax() const {
2295 : return (_has_bits_[0] & 0x00000800u) != 0;
2296 : }
2297 : void FileDescriptorProto::set_has_syntax() {
2298 : _has_bits_[0] |= 0x00000800u;
2299 : }
2300 : void FileDescriptorProto::clear_has_syntax() {
2301 : _has_bits_[0] &= ~0x00000800u;
2302 : }
2303 : void FileDescriptorProto::clear_syntax() {
2304 : syntax_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2305 : clear_has_syntax();
2306 : }
2307 : const ::std::string& FileDescriptorProto::syntax() const {
2308 : // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.syntax)
2309 : return syntax_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2310 : }
2311 : void FileDescriptorProto::set_syntax(const ::std::string& value) {
2312 : set_has_syntax();
2313 : syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2314 : // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.syntax)
2315 : }
2316 : void FileDescriptorProto::set_syntax(const char* value) {
2317 : set_has_syntax();
2318 : syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2319 : // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.syntax)
2320 : }
2321 : void FileDescriptorProto::set_syntax(const char* value, size_t size) {
2322 : set_has_syntax();
2323 : syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2324 : ::std::string(reinterpret_cast<const char*>(value), size));
2325 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.syntax)
2326 : }
2327 : ::std::string* FileDescriptorProto::mutable_syntax() {
2328 : set_has_syntax();
2329 : // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.syntax)
2330 : return syntax_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2331 : }
2332 : ::std::string* FileDescriptorProto::release_syntax() {
2333 : clear_has_syntax();
2334 : return syntax_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2335 : }
2336 : void FileDescriptorProto::set_allocated_syntax(::std::string* syntax) {
2337 : if (syntax != NULL) {
2338 : set_has_syntax();
2339 : } else {
2340 : clear_has_syntax();
2341 : }
2342 : syntax_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), syntax);
2343 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.syntax)
2344 : }
2345 :
2346 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
2347 :
2348 : // ===================================================================
2349 :
2350 : #ifndef _MSC_VER
2351 : const int DescriptorProto_ExtensionRange::kStartFieldNumber;
2352 : const int DescriptorProto_ExtensionRange::kEndFieldNumber;
2353 : #endif // !_MSC_VER
2354 :
2355 450 : DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange()
2356 900 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2357 450 : SharedCtor();
2358 : // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.ExtensionRange)
2359 450 : }
2360 :
2361 46 : void DescriptorProto_ExtensionRange::InitAsDefaultInstance() {
2362 46 : }
2363 :
2364 0 : DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from)
2365 : : ::google::protobuf::Message(),
2366 0 : _internal_metadata_(NULL) {
2367 0 : SharedCtor();
2368 0 : MergeFrom(from);
2369 : // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ExtensionRange)
2370 0 : }
2371 :
2372 450 : void DescriptorProto_ExtensionRange::SharedCtor() {
2373 450 : _cached_size_ = 0;
2374 450 : start_ = 0;
2375 450 : end_ = 0;
2376 450 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
2377 450 : }
2378 :
2379 1212 : DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() {
2380 : // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.ExtensionRange)
2381 404 : SharedDtor();
2382 808 : }
2383 :
2384 404 : void DescriptorProto_ExtensionRange::SharedDtor() {
2385 : if (this != default_instance_) {
2386 : }
2387 404 : }
2388 :
2389 0 : void DescriptorProto_ExtensionRange::SetCachedSize(int size) const {
2390 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2391 0 : _cached_size_ = size;
2392 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2393 0 : }
2394 0 : const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange::descriptor() {
2395 : protobuf_AssignDescriptorsOnce();
2396 0 : return DescriptorProto_ExtensionRange_descriptor_;
2397 : }
2398 :
2399 1 : const DescriptorProto_ExtensionRange& DescriptorProto_ExtensionRange::default_instance() {
2400 1 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2401 1 : return *default_instance_;
2402 : }
2403 :
2404 : DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::default_instance_ = NULL;
2405 :
2406 0 : DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::New(::google::protobuf::Arena* arena) const {
2407 0 : DescriptorProto_ExtensionRange* n = new DescriptorProto_ExtensionRange;
2408 0 : if (arena != NULL) {
2409 0 : arena->Own(n);
2410 : }
2411 0 : return n;
2412 : }
2413 :
2414 0 : void DescriptorProto_ExtensionRange::Clear() {
2415 : #define ZR_HELPER_(f) reinterpret_cast<char*>(\
2416 : &reinterpret_cast<DescriptorProto_ExtensionRange*>(16)->f)
2417 :
2418 : #define ZR_(first, last) do {\
2419 : ::memset(&first, 0,\
2420 : ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
2421 : } while (0)
2422 :
2423 0 : ZR_(start_, end_);
2424 :
2425 : #undef ZR_HELPER_
2426 : #undef ZR_
2427 :
2428 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
2429 0 : if (_internal_metadata_.have_unknown_fields()) {
2430 0 : mutable_unknown_fields()->Clear();
2431 : }
2432 0 : }
2433 :
2434 357 : bool DescriptorProto_ExtensionRange::MergePartialFromCodedStream(
2435 : ::google::protobuf::io::CodedInputStream* input) {
2436 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
2437 : ::google::protobuf::uint32 tag;
2438 : // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.ExtensionRange)
2439 : for (;;) {
2440 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2441 357 : tag = p.first;
2442 357 : if (!p.second) goto handle_unusual;
2443 357 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2444 : // optional int32 start = 1;
2445 : case 1: {
2446 357 : if (tag == 8) {
2447 714 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2448 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2449 : input, &start_)));
2450 357 : set_has_start();
2451 : } else {
2452 : goto handle_unusual;
2453 : }
2454 357 : if (input->ExpectTag(16)) goto parse_end;
2455 : break;
2456 : }
2457 :
2458 : // optional int32 end = 2;
2459 : case 2: {
2460 0 : if (tag == 16) {
2461 : parse_end:
2462 714 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2463 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2464 : input, &end_)));
2465 357 : set_has_end();
2466 : } else {
2467 : goto handle_unusual;
2468 : }
2469 357 : if (input->ExpectAtEnd()) goto success;
2470 : break;
2471 : }
2472 :
2473 : default: {
2474 : handle_unusual:
2475 0 : if (tag == 0 ||
2476 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2477 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2478 : goto success;
2479 : }
2480 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
2481 : input, tag, mutable_unknown_fields()));
2482 : break;
2483 : }
2484 : }
2485 0 : }
2486 : success:
2487 : // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto.ExtensionRange)
2488 357 : return true;
2489 : failure:
2490 : // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto.ExtensionRange)
2491 0 : return false;
2492 : #undef DO_
2493 : }
2494 :
2495 0 : void DescriptorProto_ExtensionRange::SerializeWithCachedSizes(
2496 0 : ::google::protobuf::io::CodedOutputStream* output) const {
2497 : // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto.ExtensionRange)
2498 : // optional int32 start = 1;
2499 0 : if (has_start()) {
2500 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->start(), output);
2501 : }
2502 :
2503 : // optional int32 end = 2;
2504 0 : if (has_end()) {
2505 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), output);
2506 : }
2507 :
2508 0 : if (_internal_metadata_.have_unknown_fields()) {
2509 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2510 0 : unknown_fields(), output);
2511 : }
2512 : // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.ExtensionRange)
2513 0 : }
2514 :
2515 18 : ::google::protobuf::uint8* DescriptorProto_ExtensionRange::SerializeWithCachedSizesToArray(
2516 72 : ::google::protobuf::uint8* target) const {
2517 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ExtensionRange)
2518 : // optional int32 start = 1;
2519 36 : if (has_start()) {
2520 36 : target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target);
2521 : }
2522 :
2523 : // optional int32 end = 2;
2524 36 : if (has_end()) {
2525 36 : target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target);
2526 : }
2527 :
2528 36 : if (_internal_metadata_.have_unknown_fields()) {
2529 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2530 0 : unknown_fields(), target);
2531 : }
2532 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto.ExtensionRange)
2533 18 : return target;
2534 : }
2535 :
2536 72 : int DescriptorProto_ExtensionRange::ByteSize() const {
2537 18 : int total_size = 0;
2538 :
2539 18 : if (_has_bits_[0 / 32] & 3u) {
2540 : // optional int32 start = 1;
2541 36 : if (has_start()) {
2542 : total_size += 1 +
2543 : ::google::protobuf::internal::WireFormatLite::Int32Size(
2544 36 : this->start());
2545 : }
2546 :
2547 : // optional int32 end = 2;
2548 36 : if (has_end()) {
2549 : total_size += 1 +
2550 : ::google::protobuf::internal::WireFormatLite::Int32Size(
2551 36 : this->end());
2552 : }
2553 :
2554 : }
2555 36 : if (_internal_metadata_.have_unknown_fields()) {
2556 : total_size +=
2557 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2558 0 : unknown_fields());
2559 : }
2560 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2561 18 : _cached_size_ = total_size;
2562 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2563 18 : return total_size;
2564 : }
2565 :
2566 0 : void DescriptorProto_ExtensionRange::MergeFrom(const ::google::protobuf::Message& from) {
2567 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
2568 : const DescriptorProto_ExtensionRange* source =
2569 : ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto_ExtensionRange>(
2570 0 : &from);
2571 0 : if (source == NULL) {
2572 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2573 : } else {
2574 0 : MergeFrom(*source);
2575 : }
2576 0 : }
2577 :
2578 0 : void DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRange& from) {
2579 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
2580 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2581 0 : if (from.has_start()) {
2582 0 : set_start(from.start());
2583 : }
2584 0 : if (from.has_end()) {
2585 0 : set_end(from.end());
2586 : }
2587 : }
2588 0 : if (from._internal_metadata_.have_unknown_fields()) {
2589 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2590 : }
2591 0 : }
2592 :
2593 0 : void DescriptorProto_ExtensionRange::CopyFrom(const ::google::protobuf::Message& from) {
2594 0 : if (&from == this) return;
2595 0 : Clear();
2596 0 : MergeFrom(from);
2597 : }
2598 :
2599 0 : void DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRange& from) {
2600 0 : if (&from == this) return;
2601 0 : Clear();
2602 0 : MergeFrom(from);
2603 : }
2604 :
2605 0 : bool DescriptorProto_ExtensionRange::IsInitialized() const {
2606 :
2607 0 : return true;
2608 : }
2609 :
2610 0 : void DescriptorProto_ExtensionRange::Swap(DescriptorProto_ExtensionRange* other) {
2611 0 : if (other == this) return;
2612 0 : InternalSwap(other);
2613 : }
2614 0 : void DescriptorProto_ExtensionRange::InternalSwap(DescriptorProto_ExtensionRange* other) {
2615 0 : std::swap(start_, other->start_);
2616 0 : std::swap(end_, other->end_);
2617 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
2618 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
2619 0 : std::swap(_cached_size_, other->_cached_size_);
2620 0 : }
2621 :
2622 0 : ::google::protobuf::Metadata DescriptorProto_ExtensionRange::GetMetadata() const {
2623 : protobuf_AssignDescriptorsOnce();
2624 : ::google::protobuf::Metadata metadata;
2625 0 : metadata.descriptor = DescriptorProto_ExtensionRange_descriptor_;
2626 0 : metadata.reflection = DescriptorProto_ExtensionRange_reflection_;
2627 0 : return metadata;
2628 : }
2629 :
2630 :
2631 : // -------------------------------------------------------------------
2632 :
2633 : #ifndef _MSC_VER
2634 : const int DescriptorProto_ReservedRange::kStartFieldNumber;
2635 : const int DescriptorProto_ReservedRange::kEndFieldNumber;
2636 : #endif // !_MSC_VER
2637 :
2638 52 : DescriptorProto_ReservedRange::DescriptorProto_ReservedRange()
2639 104 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2640 52 : SharedCtor();
2641 : // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.ReservedRange)
2642 52 : }
2643 :
2644 46 : void DescriptorProto_ReservedRange::InitAsDefaultInstance() {
2645 46 : }
2646 :
2647 0 : DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange& from)
2648 : : ::google::protobuf::Message(),
2649 0 : _internal_metadata_(NULL) {
2650 0 : SharedCtor();
2651 0 : MergeFrom(from);
2652 : // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ReservedRange)
2653 0 : }
2654 :
2655 52 : void DescriptorProto_ReservedRange::SharedCtor() {
2656 52 : _cached_size_ = 0;
2657 52 : start_ = 0;
2658 52 : end_ = 0;
2659 52 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
2660 52 : }
2661 :
2662 18 : DescriptorProto_ReservedRange::~DescriptorProto_ReservedRange() {
2663 : // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.ReservedRange)
2664 6 : SharedDtor();
2665 12 : }
2666 :
2667 6 : void DescriptorProto_ReservedRange::SharedDtor() {
2668 : if (this != default_instance_) {
2669 : }
2670 6 : }
2671 :
2672 0 : void DescriptorProto_ReservedRange::SetCachedSize(int size) const {
2673 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2674 0 : _cached_size_ = size;
2675 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2676 0 : }
2677 0 : const ::google::protobuf::Descriptor* DescriptorProto_ReservedRange::descriptor() {
2678 : protobuf_AssignDescriptorsOnce();
2679 0 : return DescriptorProto_ReservedRange_descriptor_;
2680 : }
2681 :
2682 1 : const DescriptorProto_ReservedRange& DescriptorProto_ReservedRange::default_instance() {
2683 1 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2684 1 : return *default_instance_;
2685 : }
2686 :
2687 : DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::default_instance_ = NULL;
2688 :
2689 0 : DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::New(::google::protobuf::Arena* arena) const {
2690 0 : DescriptorProto_ReservedRange* n = new DescriptorProto_ReservedRange;
2691 0 : if (arena != NULL) {
2692 0 : arena->Own(n);
2693 : }
2694 0 : return n;
2695 : }
2696 :
2697 0 : void DescriptorProto_ReservedRange::Clear() {
2698 : #define ZR_HELPER_(f) reinterpret_cast<char*>(\
2699 : &reinterpret_cast<DescriptorProto_ReservedRange*>(16)->f)
2700 :
2701 : #define ZR_(first, last) do {\
2702 : ::memset(&first, 0,\
2703 : ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
2704 : } while (0)
2705 :
2706 0 : ZR_(start_, end_);
2707 :
2708 : #undef ZR_HELPER_
2709 : #undef ZR_
2710 :
2711 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
2712 0 : if (_internal_metadata_.have_unknown_fields()) {
2713 0 : mutable_unknown_fields()->Clear();
2714 : }
2715 0 : }
2716 :
2717 0 : bool DescriptorProto_ReservedRange::MergePartialFromCodedStream(
2718 : ::google::protobuf::io::CodedInputStream* input) {
2719 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
2720 : ::google::protobuf::uint32 tag;
2721 : // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.ReservedRange)
2722 : for (;;) {
2723 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2724 0 : tag = p.first;
2725 0 : if (!p.second) goto handle_unusual;
2726 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2727 : // optional int32 start = 1;
2728 : case 1: {
2729 0 : if (tag == 8) {
2730 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2731 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2732 : input, &start_)));
2733 0 : set_has_start();
2734 : } else {
2735 : goto handle_unusual;
2736 : }
2737 0 : if (input->ExpectTag(16)) goto parse_end;
2738 : break;
2739 : }
2740 :
2741 : // optional int32 end = 2;
2742 : case 2: {
2743 0 : if (tag == 16) {
2744 : parse_end:
2745 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2746 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2747 : input, &end_)));
2748 0 : set_has_end();
2749 : } else {
2750 : goto handle_unusual;
2751 : }
2752 0 : if (input->ExpectAtEnd()) goto success;
2753 : break;
2754 : }
2755 :
2756 : default: {
2757 : handle_unusual:
2758 0 : if (tag == 0 ||
2759 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2760 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2761 : goto success;
2762 : }
2763 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
2764 : input, tag, mutable_unknown_fields()));
2765 : break;
2766 : }
2767 : }
2768 0 : }
2769 : success:
2770 : // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto.ReservedRange)
2771 0 : return true;
2772 : failure:
2773 : // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto.ReservedRange)
2774 0 : return false;
2775 : #undef DO_
2776 : }
2777 :
2778 0 : void DescriptorProto_ReservedRange::SerializeWithCachedSizes(
2779 0 : ::google::protobuf::io::CodedOutputStream* output) const {
2780 : // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto.ReservedRange)
2781 : // optional int32 start = 1;
2782 0 : if (has_start()) {
2783 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->start(), output);
2784 : }
2785 :
2786 : // optional int32 end = 2;
2787 0 : if (has_end()) {
2788 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), output);
2789 : }
2790 :
2791 0 : if (_internal_metadata_.have_unknown_fields()) {
2792 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2793 0 : unknown_fields(), output);
2794 : }
2795 : // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.ReservedRange)
2796 0 : }
2797 :
2798 3 : ::google::protobuf::uint8* DescriptorProto_ReservedRange::SerializeWithCachedSizesToArray(
2799 12 : ::google::protobuf::uint8* target) const {
2800 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ReservedRange)
2801 : // optional int32 start = 1;
2802 6 : if (has_start()) {
2803 6 : target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target);
2804 : }
2805 :
2806 : // optional int32 end = 2;
2807 6 : if (has_end()) {
2808 6 : target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target);
2809 : }
2810 :
2811 6 : if (_internal_metadata_.have_unknown_fields()) {
2812 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2813 0 : unknown_fields(), target);
2814 : }
2815 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto.ReservedRange)
2816 3 : return target;
2817 : }
2818 :
2819 12 : int DescriptorProto_ReservedRange::ByteSize() const {
2820 3 : int total_size = 0;
2821 :
2822 3 : if (_has_bits_[0 / 32] & 3u) {
2823 : // optional int32 start = 1;
2824 6 : if (has_start()) {
2825 : total_size += 1 +
2826 : ::google::protobuf::internal::WireFormatLite::Int32Size(
2827 6 : this->start());
2828 : }
2829 :
2830 : // optional int32 end = 2;
2831 6 : if (has_end()) {
2832 : total_size += 1 +
2833 : ::google::protobuf::internal::WireFormatLite::Int32Size(
2834 6 : this->end());
2835 : }
2836 :
2837 : }
2838 6 : if (_internal_metadata_.have_unknown_fields()) {
2839 : total_size +=
2840 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2841 0 : unknown_fields());
2842 : }
2843 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2844 3 : _cached_size_ = total_size;
2845 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2846 3 : return total_size;
2847 : }
2848 :
2849 0 : void DescriptorProto_ReservedRange::MergeFrom(const ::google::protobuf::Message& from) {
2850 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
2851 : const DescriptorProto_ReservedRange* source =
2852 : ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto_ReservedRange>(
2853 0 : &from);
2854 0 : if (source == NULL) {
2855 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2856 : } else {
2857 0 : MergeFrom(*source);
2858 : }
2859 0 : }
2860 :
2861 0 : void DescriptorProto_ReservedRange::MergeFrom(const DescriptorProto_ReservedRange& from) {
2862 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
2863 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2864 0 : if (from.has_start()) {
2865 0 : set_start(from.start());
2866 : }
2867 0 : if (from.has_end()) {
2868 0 : set_end(from.end());
2869 : }
2870 : }
2871 0 : if (from._internal_metadata_.have_unknown_fields()) {
2872 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2873 : }
2874 0 : }
2875 :
2876 0 : void DescriptorProto_ReservedRange::CopyFrom(const ::google::protobuf::Message& from) {
2877 0 : if (&from == this) return;
2878 0 : Clear();
2879 0 : MergeFrom(from);
2880 : }
2881 :
2882 0 : void DescriptorProto_ReservedRange::CopyFrom(const DescriptorProto_ReservedRange& from) {
2883 0 : if (&from == this) return;
2884 0 : Clear();
2885 0 : MergeFrom(from);
2886 : }
2887 :
2888 0 : bool DescriptorProto_ReservedRange::IsInitialized() const {
2889 :
2890 0 : return true;
2891 : }
2892 :
2893 0 : void DescriptorProto_ReservedRange::Swap(DescriptorProto_ReservedRange* other) {
2894 0 : if (other == this) return;
2895 0 : InternalSwap(other);
2896 : }
2897 0 : void DescriptorProto_ReservedRange::InternalSwap(DescriptorProto_ReservedRange* other) {
2898 0 : std::swap(start_, other->start_);
2899 0 : std::swap(end_, other->end_);
2900 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
2901 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
2902 0 : std::swap(_cached_size_, other->_cached_size_);
2903 0 : }
2904 :
2905 0 : ::google::protobuf::Metadata DescriptorProto_ReservedRange::GetMetadata() const {
2906 : protobuf_AssignDescriptorsOnce();
2907 : ::google::protobuf::Metadata metadata;
2908 0 : metadata.descriptor = DescriptorProto_ReservedRange_descriptor_;
2909 0 : metadata.reflection = DescriptorProto_ReservedRange_reflection_;
2910 0 : return metadata;
2911 : }
2912 :
2913 :
2914 : // -------------------------------------------------------------------
2915 :
2916 : #ifndef _MSC_VER
2917 : const int DescriptorProto::kNameFieldNumber;
2918 : const int DescriptorProto::kFieldFieldNumber;
2919 : const int DescriptorProto::kExtensionFieldNumber;
2920 : const int DescriptorProto::kNestedTypeFieldNumber;
2921 : const int DescriptorProto::kEnumTypeFieldNumber;
2922 : const int DescriptorProto::kExtensionRangeFieldNumber;
2923 : const int DescriptorProto::kOneofDeclFieldNumber;
2924 : const int DescriptorProto::kOptionsFieldNumber;
2925 : const int DescriptorProto::kReservedRangeFieldNumber;
2926 : const int DescriptorProto::kReservedNameFieldNumber;
2927 : #endif // !_MSC_VER
2928 :
2929 2536 : DescriptorProto::DescriptorProto()
2930 25360 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2931 2536 : SharedCtor();
2932 : // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto)
2933 2536 : }
2934 :
2935 46 : void DescriptorProto::InitAsDefaultInstance() {
2936 46 : options_ = const_cast< ::google::protobuf::MessageOptions*>(&::google::protobuf::MessageOptions::default_instance());
2937 46 : }
2938 :
2939 0 : DescriptorProto::DescriptorProto(const DescriptorProto& from)
2940 : : ::google::protobuf::Message(),
2941 0 : _internal_metadata_(NULL) {
2942 0 : SharedCtor();
2943 0 : MergeFrom(from);
2944 : // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto)
2945 0 : }
2946 :
2947 2536 : void DescriptorProto::SharedCtor() {
2948 : ::google::protobuf::internal::GetEmptyString();
2949 2536 : _cached_size_ = 0;
2950 2536 : name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2951 2536 : options_ = NULL;
2952 2536 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
2953 2536 : }
2954 :
2955 27390 : DescriptorProto::~DescriptorProto() {
2956 : // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto)
2957 2490 : SharedDtor();
2958 4980 : }
2959 :
2960 2490 : void DescriptorProto::SharedDtor() {
2961 2490 : name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2962 2490 : if (this != default_instance_) {
2963 2490 : delete options_;
2964 : }
2965 2490 : }
2966 :
2967 0 : void DescriptorProto::SetCachedSize(int size) const {
2968 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2969 0 : _cached_size_ = size;
2970 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2971 0 : }
2972 0 : const ::google::protobuf::Descriptor* DescriptorProto::descriptor() {
2973 : protobuf_AssignDescriptorsOnce();
2974 0 : return DescriptorProto_descriptor_;
2975 : }
2976 :
2977 1 : const DescriptorProto& DescriptorProto::default_instance() {
2978 1 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2979 1 : return *default_instance_;
2980 : }
2981 :
2982 : DescriptorProto* DescriptorProto::default_instance_ = NULL;
2983 :
2984 0 : DescriptorProto* DescriptorProto::New(::google::protobuf::Arena* arena) const {
2985 0 : DescriptorProto* n = new DescriptorProto;
2986 0 : if (arena != NULL) {
2987 0 : arena->Own(n);
2988 : }
2989 0 : return n;
2990 : }
2991 :
2992 0 : void DescriptorProto::Clear() {
2993 0 : if (_has_bits_[0 / 32] & 129u) {
2994 0 : if (has_name()) {
2995 0 : name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2996 : }
2997 0 : if (has_options()) {
2998 0 : if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear();
2999 : }
3000 : }
3001 0 : field_.Clear();
3002 0 : extension_.Clear();
3003 0 : nested_type_.Clear();
3004 0 : enum_type_.Clear();
3005 0 : extension_range_.Clear();
3006 0 : oneof_decl_.Clear();
3007 0 : reserved_range_.Clear();
3008 0 : reserved_name_.Clear();
3009 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
3010 0 : if (_internal_metadata_.have_unknown_fields()) {
3011 0 : mutable_unknown_fields()->Clear();
3012 : }
3013 0 : }
3014 :
3015 1499 : bool DescriptorProto::MergePartialFromCodedStream(
3016 : ::google::protobuf::io::CodedInputStream* input) {
3017 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
3018 : ::google::protobuf::uint32 tag;
3019 : // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto)
3020 : for (;;) {
3021 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
3022 3430 : tag = p.first;
3023 3430 : if (!p.second) goto handle_unusual;
3024 1931 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3025 : // optional string name = 1;
3026 : case 1: {
3027 1499 : if (tag == 10) {
3028 2998 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3029 : input, this->mutable_name()));
3030 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3031 2998 : this->name().data(), this->name().length(),
3032 : ::google::protobuf::internal::WireFormat::PARSE,
3033 2998 : "google.protobuf.DescriptorProto.name");
3034 : } else {
3035 : goto handle_unusual;
3036 : }
3037 1499 : if (input->ExpectTag(18)) goto parse_field;
3038 : break;
3039 : }
3040 :
3041 : // repeated .google.protobuf.FieldDescriptorProto field = 2;
3042 : case 2: {
3043 0 : if (tag == 18) {
3044 : parse_field:
3045 2954 : DO_(input->IncrementRecursionDepth());
3046 : parse_loop_field:
3047 6423 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
3048 : input, add_field()));
3049 : } else {
3050 : goto handle_unusual;
3051 : }
3052 6423 : if (input->ExpectTag(18)) goto parse_loop_field;
3053 1477 : if (input->ExpectTag(26)) goto parse_loop_nested_type;
3054 1299 : input->UnsafeDecrementRecursionDepth();
3055 : break;
3056 : }
3057 :
3058 : // repeated .google.protobuf.DescriptorProto nested_type = 3;
3059 : case 3: {
3060 0 : if (tag == 26) {
3061 0 : DO_(input->IncrementRecursionDepth());
3062 : parse_loop_nested_type:
3063 229 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
3064 : input, add_nested_type()));
3065 : } else {
3066 : goto handle_unusual;
3067 : }
3068 229 : if (input->ExpectTag(26)) goto parse_loop_nested_type;
3069 178 : if (input->ExpectTag(34)) goto parse_loop_enum_type;
3070 178 : input->UnsafeDecrementRecursionDepth();
3071 : break;
3072 : }
3073 :
3074 : // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3075 : case 4: {
3076 153 : if (tag == 34) {
3077 306 : DO_(input->IncrementRecursionDepth());
3078 : parse_loop_enum_type:
3079 255 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
3080 : input, add_enum_type()));
3081 : } else {
3082 : goto handle_unusual;
3083 : }
3084 255 : if (input->ExpectTag(34)) goto parse_loop_enum_type;
3085 153 : if (input->ExpectTag(42)) goto parse_loop_extension_range;
3086 51 : input->UnsafeDecrementRecursionDepth();
3087 : break;
3088 : }
3089 :
3090 : // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
3091 : case 5: {
3092 255 : if (tag == 42) {
3093 510 : DO_(input->IncrementRecursionDepth());
3094 : parse_loop_extension_range:
3095 357 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
3096 : input, add_extension_range()));
3097 : } else {
3098 : goto handle_unusual;
3099 : }
3100 357 : if (input->ExpectTag(42)) goto parse_loop_extension_range;
3101 357 : if (input->ExpectTag(50)) goto parse_loop_extension;
3102 357 : input->UnsafeDecrementRecursionDepth();
3103 : break;
3104 : }
3105 :
3106 : // repeated .google.protobuf.FieldDescriptorProto extension = 6;
3107 : case 6: {
3108 0 : if (tag == 50) {
3109 0 : DO_(input->IncrementRecursionDepth());
3110 : parse_loop_extension:
3111 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
3112 : input, add_extension()));
3113 : } else {
3114 : goto handle_unusual;
3115 : }
3116 0 : if (input->ExpectTag(50)) goto parse_loop_extension;
3117 0 : input->UnsafeDecrementRecursionDepth();
3118 0 : if (input->ExpectTag(58)) goto parse_options;
3119 : break;
3120 : }
3121 :
3122 : // optional .google.protobuf.MessageOptions options = 7;
3123 : case 7: {
3124 0 : if (tag == 58) {
3125 : parse_options:
3126 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3127 : input, mutable_options()));
3128 : } else {
3129 : goto handle_unusual;
3130 : }
3131 0 : if (input->ExpectTag(66)) goto parse_oneof_decl;
3132 : break;
3133 : }
3134 :
3135 : // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
3136 : case 8: {
3137 24 : if (tag == 66) {
3138 : parse_oneof_decl:
3139 48 : DO_(input->IncrementRecursionDepth());
3140 : parse_loop_oneof_decl:
3141 24 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
3142 : input, add_oneof_decl()));
3143 : } else {
3144 : goto handle_unusual;
3145 : }
3146 24 : if (input->ExpectTag(66)) goto parse_loop_oneof_decl;
3147 24 : if (input->ExpectTag(74)) goto parse_loop_reserved_range;
3148 24 : input->UnsafeDecrementRecursionDepth();
3149 : break;
3150 : }
3151 :
3152 : // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
3153 : case 9: {
3154 0 : if (tag == 74) {
3155 0 : DO_(input->IncrementRecursionDepth());
3156 : parse_loop_reserved_range:
3157 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
3158 : input, add_reserved_range()));
3159 : } else {
3160 : goto handle_unusual;
3161 : }
3162 0 : if (input->ExpectTag(74)) goto parse_loop_reserved_range;
3163 0 : input->UnsafeDecrementRecursionDepth();
3164 0 : if (input->ExpectTag(82)) goto parse_reserved_name;
3165 : break;
3166 : }
3167 :
3168 : // repeated string reserved_name = 10;
3169 : case 10: {
3170 0 : if (tag == 82) {
3171 : parse_reserved_name:
3172 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3173 : input, this->add_reserved_name()));
3174 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3175 0 : this->reserved_name(this->reserved_name_size() - 1).data(),
3176 0 : this->reserved_name(this->reserved_name_size() - 1).length(),
3177 : ::google::protobuf::internal::WireFormat::PARSE,
3178 0 : "google.protobuf.DescriptorProto.reserved_name");
3179 : } else {
3180 : goto handle_unusual;
3181 : }
3182 0 : if (input->ExpectTag(82)) goto parse_reserved_name;
3183 0 : if (input->ExpectAtEnd()) goto success;
3184 : break;
3185 : }
3186 :
3187 : default: {
3188 : handle_unusual:
3189 1499 : if (tag == 0 ||
3190 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3191 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3192 : goto success;
3193 : }
3194 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
3195 : input, tag, mutable_unknown_fields()));
3196 : break;
3197 : }
3198 : }
3199 1931 : }
3200 : success:
3201 : // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto)
3202 1499 : return true;
3203 : failure:
3204 : // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto)
3205 0 : return false;
3206 : #undef DO_
3207 : }
3208 :
3209 0 : void DescriptorProto::SerializeWithCachedSizes(
3210 0 : ::google::protobuf::io::CodedOutputStream* output) const {
3211 : // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto)
3212 : // optional string name = 1;
3213 0 : if (has_name()) {
3214 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3215 0 : this->name().data(), this->name().length(),
3216 : ::google::protobuf::internal::WireFormat::SERIALIZE,
3217 0 : "google.protobuf.DescriptorProto.name");
3218 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3219 0 : 1, this->name(), output);
3220 : }
3221 :
3222 : // repeated .google.protobuf.FieldDescriptorProto field = 2;
3223 0 : for (unsigned int i = 0, n = this->field_size(); i < n; i++) {
3224 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3225 0 : 2, this->field(i), output);
3226 : }
3227 :
3228 : // repeated .google.protobuf.DescriptorProto nested_type = 3;
3229 0 : for (unsigned int i = 0, n = this->nested_type_size(); i < n; i++) {
3230 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3231 0 : 3, this->nested_type(i), output);
3232 : }
3233 :
3234 : // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3235 0 : for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) {
3236 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3237 0 : 4, this->enum_type(i), output);
3238 : }
3239 :
3240 : // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
3241 0 : for (unsigned int i = 0, n = this->extension_range_size(); i < n; i++) {
3242 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3243 0 : 5, this->extension_range(i), output);
3244 : }
3245 :
3246 : // repeated .google.protobuf.FieldDescriptorProto extension = 6;
3247 0 : for (unsigned int i = 0, n = this->extension_size(); i < n; i++) {
3248 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3249 0 : 6, this->extension(i), output);
3250 : }
3251 :
3252 : // optional .google.protobuf.MessageOptions options = 7;
3253 0 : if (has_options()) {
3254 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3255 0 : 7, *this->options_, output);
3256 : }
3257 :
3258 : // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
3259 0 : for (unsigned int i = 0, n = this->oneof_decl_size(); i < n; i++) {
3260 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3261 0 : 8, this->oneof_decl(i), output);
3262 : }
3263 :
3264 : // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
3265 0 : for (unsigned int i = 0, n = this->reserved_range_size(); i < n; i++) {
3266 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3267 0 : 9, this->reserved_range(i), output);
3268 : }
3269 :
3270 : // repeated string reserved_name = 10;
3271 0 : for (int i = 0; i < this->reserved_name_size(); i++) {
3272 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3273 0 : this->reserved_name(i).data(), this->reserved_name(i).length(),
3274 : ::google::protobuf::internal::WireFormat::SERIALIZE,
3275 0 : "google.protobuf.DescriptorProto.reserved_name");
3276 : ::google::protobuf::internal::WireFormatLite::WriteString(
3277 0 : 10, this->reserved_name(i), output);
3278 : }
3279 :
3280 0 : if (_internal_metadata_.have_unknown_fields()) {
3281 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3282 0 : unknown_fields(), output);
3283 : }
3284 : // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto)
3285 0 : }
3286 :
3287 415 : ::google::protobuf::uint8* DescriptorProto::SerializeWithCachedSizesToArray(
3288 830 : ::google::protobuf::uint8* target) const {
3289 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto)
3290 : // optional string name = 1;
3291 830 : if (has_name()) {
3292 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3293 830 : this->name().data(), this->name().length(),
3294 : ::google::protobuf::internal::WireFormat::SERIALIZE,
3295 830 : "google.protobuf.DescriptorProto.name");
3296 : target =
3297 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3298 830 : 1, this->name(), target);
3299 : }
3300 :
3301 : // repeated .google.protobuf.FieldDescriptorProto field = 2;
3302 3328 : for (unsigned int i = 0, n = this->field_size(); i < n; i++) {
3303 : target = ::google::protobuf::internal::WireFormatLite::
3304 : WriteMessageNoVirtualToArray(
3305 7494 : 2, this->field(i), target);
3306 : }
3307 :
3308 : // repeated .google.protobuf.DescriptorProto nested_type = 3;
3309 952 : for (unsigned int i = 0, n = this->nested_type_size(); i < n; i++) {
3310 : target = ::google::protobuf::internal::WireFormatLite::
3311 : WriteMessageNoVirtualToArray(
3312 366 : 3, this->nested_type(i), target);
3313 : }
3314 :
3315 : // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3316 846 : for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) {
3317 : target = ::google::protobuf::internal::WireFormatLite::
3318 : WriteMessageNoVirtualToArray(
3319 48 : 4, this->enum_type(i), target);
3320 : }
3321 :
3322 : // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
3323 848 : for (unsigned int i = 0, n = this->extension_range_size(); i < n; i++) {
3324 : target = ::google::protobuf::internal::WireFormatLite::
3325 : WriteMessageNoVirtualToArray(
3326 54 : 5, this->extension_range(i), target);
3327 : }
3328 :
3329 : // repeated .google.protobuf.FieldDescriptorProto extension = 6;
3330 846 : for (unsigned int i = 0, n = this->extension_size(); i < n; i++) {
3331 : target = ::google::protobuf::internal::WireFormatLite::
3332 : WriteMessageNoVirtualToArray(
3333 48 : 6, this->extension(i), target);
3334 : }
3335 :
3336 : // optional .google.protobuf.MessageOptions options = 7;
3337 830 : if (has_options()) {
3338 : target = ::google::protobuf::internal::WireFormatLite::
3339 : WriteMessageNoVirtualToArray(
3340 184 : 7, *this->options_, target);
3341 : }
3342 :
3343 : // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
3344 855 : for (unsigned int i = 0, n = this->oneof_decl_size(); i < n; i++) {
3345 : target = ::google::protobuf::internal::WireFormatLite::
3346 : WriteMessageNoVirtualToArray(
3347 75 : 8, this->oneof_decl(i), target);
3348 : }
3349 :
3350 : // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
3351 833 : for (unsigned int i = 0, n = this->reserved_range_size(); i < n; i++) {
3352 : target = ::google::protobuf::internal::WireFormatLite::
3353 : WriteMessageNoVirtualToArray(
3354 9 : 9, this->reserved_range(i), target);
3355 : }
3356 :
3357 : // repeated string reserved_name = 10;
3358 419 : for (int i = 0; i < this->reserved_name_size(); i++) {
3359 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3360 4 : this->reserved_name(i).data(), this->reserved_name(i).length(),
3361 : ::google::protobuf::internal::WireFormat::SERIALIZE,
3362 4 : "google.protobuf.DescriptorProto.reserved_name");
3363 : target = ::google::protobuf::internal::WireFormatLite::
3364 4 : WriteStringToArray(10, this->reserved_name(i), target);
3365 : }
3366 :
3367 830 : if (_internal_metadata_.have_unknown_fields()) {
3368 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3369 0 : unknown_fields(), target);
3370 : }
3371 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto)
3372 415 : return target;
3373 : }
3374 :
3375 830 : int DescriptorProto::ByteSize() const {
3376 415 : int total_size = 0;
3377 :
3378 415 : if (_has_bits_[0 / 32] & 129u) {
3379 : // optional string name = 1;
3380 830 : if (has_name()) {
3381 : total_size += 1 +
3382 : ::google::protobuf::internal::WireFormatLite::StringSize(
3383 415 : this->name());
3384 : }
3385 :
3386 : // optional .google.protobuf.MessageOptions options = 7;
3387 830 : if (has_options()) {
3388 : total_size += 1 +
3389 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3390 92 : *this->options_);
3391 : }
3392 :
3393 : }
3394 : // repeated .google.protobuf.FieldDescriptorProto field = 2;
3395 415 : total_size += 1 * this->field_size();
3396 5826 : for (int i = 0; i < this->field_size(); i++) {
3397 : total_size +=
3398 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3399 2498 : this->field(i));
3400 : }
3401 :
3402 : // repeated .google.protobuf.FieldDescriptorProto extension = 6;
3403 415 : total_size += 1 * this->extension_size();
3404 862 : for (int i = 0; i < this->extension_size(); i++) {
3405 : total_size +=
3406 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3407 16 : this->extension(i));
3408 : }
3409 :
3410 : // repeated .google.protobuf.DescriptorProto nested_type = 3;
3411 415 : total_size += 1 * this->nested_type_size();
3412 1074 : for (int i = 0; i < this->nested_type_size(); i++) {
3413 : total_size +=
3414 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3415 122 : this->nested_type(i));
3416 : }
3417 :
3418 : // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3419 415 : total_size += 1 * this->enum_type_size();
3420 862 : for (int i = 0; i < this->enum_type_size(); i++) {
3421 : total_size +=
3422 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3423 16 : this->enum_type(i));
3424 : }
3425 :
3426 : // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
3427 415 : total_size += 1 * this->extension_range_size();
3428 866 : for (int i = 0; i < this->extension_range_size(); i++) {
3429 : total_size +=
3430 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3431 18 : this->extension_range(i));
3432 : }
3433 :
3434 : // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
3435 415 : total_size += 1 * this->oneof_decl_size();
3436 880 : for (int i = 0; i < this->oneof_decl_size(); i++) {
3437 : total_size +=
3438 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3439 25 : this->oneof_decl(i));
3440 : }
3441 :
3442 : // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
3443 415 : total_size += 1 * this->reserved_range_size();
3444 836 : for (int i = 0; i < this->reserved_range_size(); i++) {
3445 : total_size +=
3446 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3447 3 : this->reserved_range(i));
3448 : }
3449 :
3450 : // repeated string reserved_name = 10;
3451 415 : total_size += 1 * this->reserved_name_size();
3452 834 : for (int i = 0; i < this->reserved_name_size(); i++) {
3453 : total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
3454 2 : this->reserved_name(i));
3455 : }
3456 :
3457 830 : if (_internal_metadata_.have_unknown_fields()) {
3458 : total_size +=
3459 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3460 0 : unknown_fields());
3461 : }
3462 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3463 415 : _cached_size_ = total_size;
3464 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
3465 415 : return total_size;
3466 : }
3467 :
3468 0 : void DescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
3469 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
3470 : const DescriptorProto* source =
3471 : ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto>(
3472 0 : &from);
3473 0 : if (source == NULL) {
3474 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3475 : } else {
3476 0 : MergeFrom(*source);
3477 : }
3478 0 : }
3479 :
3480 0 : void DescriptorProto::MergeFrom(const DescriptorProto& from) {
3481 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
3482 0 : field_.MergeFrom(from.field_);
3483 0 : extension_.MergeFrom(from.extension_);
3484 0 : nested_type_.MergeFrom(from.nested_type_);
3485 0 : enum_type_.MergeFrom(from.enum_type_);
3486 0 : extension_range_.MergeFrom(from.extension_range_);
3487 0 : oneof_decl_.MergeFrom(from.oneof_decl_);
3488 0 : reserved_range_.MergeFrom(from.reserved_range_);
3489 0 : reserved_name_.MergeFrom(from.reserved_name_);
3490 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3491 0 : if (from.has_name()) {
3492 0 : set_has_name();
3493 0 : name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
3494 : }
3495 0 : if (from.has_options()) {
3496 0 : mutable_options()->::google::protobuf::MessageOptions::MergeFrom(from.options());
3497 : }
3498 : }
3499 0 : if (from._internal_metadata_.have_unknown_fields()) {
3500 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3501 : }
3502 0 : }
3503 :
3504 0 : void DescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
3505 0 : if (&from == this) return;
3506 0 : Clear();
3507 0 : MergeFrom(from);
3508 : }
3509 :
3510 0 : void DescriptorProto::CopyFrom(const DescriptorProto& from) {
3511 0 : if (&from == this) return;
3512 0 : Clear();
3513 0 : MergeFrom(from);
3514 : }
3515 :
3516 2998 : bool DescriptorProto::IsInitialized() const {
3517 :
3518 2998 : if (!::google::protobuf::internal::AllAreInitialized(this->field())) return false;
3519 2998 : if (!::google::protobuf::internal::AllAreInitialized(this->extension())) return false;
3520 2998 : if (!::google::protobuf::internal::AllAreInitialized(this->nested_type())) return false;
3521 2998 : if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) return false;
3522 2998 : if (has_options()) {
3523 0 : if (!this->options_->IsInitialized()) return false;
3524 : }
3525 : return true;
3526 : }
3527 :
3528 0 : void DescriptorProto::Swap(DescriptorProto* other) {
3529 0 : if (other == this) return;
3530 0 : InternalSwap(other);
3531 : }
3532 0 : void DescriptorProto::InternalSwap(DescriptorProto* other) {
3533 0 : name_.Swap(&other->name_);
3534 0 : field_.UnsafeArenaSwap(&other->field_);
3535 0 : extension_.UnsafeArenaSwap(&other->extension_);
3536 0 : nested_type_.UnsafeArenaSwap(&other->nested_type_);
3537 0 : enum_type_.UnsafeArenaSwap(&other->enum_type_);
3538 0 : extension_range_.UnsafeArenaSwap(&other->extension_range_);
3539 0 : oneof_decl_.UnsafeArenaSwap(&other->oneof_decl_);
3540 0 : std::swap(options_, other->options_);
3541 0 : reserved_range_.UnsafeArenaSwap(&other->reserved_range_);
3542 0 : reserved_name_.UnsafeArenaSwap(&other->reserved_name_);
3543 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
3544 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
3545 0 : std::swap(_cached_size_, other->_cached_size_);
3546 0 : }
3547 :
3548 0 : ::google::protobuf::Metadata DescriptorProto::GetMetadata() const {
3549 : protobuf_AssignDescriptorsOnce();
3550 : ::google::protobuf::Metadata metadata;
3551 0 : metadata.descriptor = DescriptorProto_descriptor_;
3552 0 : metadata.reflection = DescriptorProto_reflection_;
3553 0 : return metadata;
3554 : }
3555 :
3556 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
3557 : // DescriptorProto_ExtensionRange
3558 :
3559 : // optional int32 start = 1;
3560 : bool DescriptorProto_ExtensionRange::has_start() const {
3561 : return (_has_bits_[0] & 0x00000001u) != 0;
3562 : }
3563 : void DescriptorProto_ExtensionRange::set_has_start() {
3564 : _has_bits_[0] |= 0x00000001u;
3565 : }
3566 : void DescriptorProto_ExtensionRange::clear_has_start() {
3567 : _has_bits_[0] &= ~0x00000001u;
3568 : }
3569 : void DescriptorProto_ExtensionRange::clear_start() {
3570 : start_ = 0;
3571 : clear_has_start();
3572 : }
3573 : ::google::protobuf::int32 DescriptorProto_ExtensionRange::start() const {
3574 : // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.start)
3575 : return start_;
3576 : }
3577 : void DescriptorProto_ExtensionRange::set_start(::google::protobuf::int32 value) {
3578 : set_has_start();
3579 : start_ = value;
3580 : // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.start)
3581 : }
3582 :
3583 : // optional int32 end = 2;
3584 : bool DescriptorProto_ExtensionRange::has_end() const {
3585 : return (_has_bits_[0] & 0x00000002u) != 0;
3586 : }
3587 : void DescriptorProto_ExtensionRange::set_has_end() {
3588 : _has_bits_[0] |= 0x00000002u;
3589 : }
3590 : void DescriptorProto_ExtensionRange::clear_has_end() {
3591 : _has_bits_[0] &= ~0x00000002u;
3592 : }
3593 : void DescriptorProto_ExtensionRange::clear_end() {
3594 : end_ = 0;
3595 : clear_has_end();
3596 : }
3597 : ::google::protobuf::int32 DescriptorProto_ExtensionRange::end() const {
3598 : // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.end)
3599 : return end_;
3600 : }
3601 : void DescriptorProto_ExtensionRange::set_end(::google::protobuf::int32 value) {
3602 : set_has_end();
3603 : end_ = value;
3604 : // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.end)
3605 : }
3606 :
3607 : // -------------------------------------------------------------------
3608 :
3609 : // DescriptorProto_ReservedRange
3610 :
3611 : // optional int32 start = 1;
3612 : bool DescriptorProto_ReservedRange::has_start() const {
3613 : return (_has_bits_[0] & 0x00000001u) != 0;
3614 : }
3615 : void DescriptorProto_ReservedRange::set_has_start() {
3616 : _has_bits_[0] |= 0x00000001u;
3617 : }
3618 : void DescriptorProto_ReservedRange::clear_has_start() {
3619 : _has_bits_[0] &= ~0x00000001u;
3620 : }
3621 : void DescriptorProto_ReservedRange::clear_start() {
3622 : start_ = 0;
3623 : clear_has_start();
3624 : }
3625 : ::google::protobuf::int32 DescriptorProto_ReservedRange::start() const {
3626 : // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.start)
3627 : return start_;
3628 : }
3629 : void DescriptorProto_ReservedRange::set_start(::google::protobuf::int32 value) {
3630 : set_has_start();
3631 : start_ = value;
3632 : // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.start)
3633 : }
3634 :
3635 : // optional int32 end = 2;
3636 : bool DescriptorProto_ReservedRange::has_end() const {
3637 : return (_has_bits_[0] & 0x00000002u) != 0;
3638 : }
3639 : void DescriptorProto_ReservedRange::set_has_end() {
3640 : _has_bits_[0] |= 0x00000002u;
3641 : }
3642 : void DescriptorProto_ReservedRange::clear_has_end() {
3643 : _has_bits_[0] &= ~0x00000002u;
3644 : }
3645 : void DescriptorProto_ReservedRange::clear_end() {
3646 : end_ = 0;
3647 : clear_has_end();
3648 : }
3649 : ::google::protobuf::int32 DescriptorProto_ReservedRange::end() const {
3650 : // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.end)
3651 : return end_;
3652 : }
3653 : void DescriptorProto_ReservedRange::set_end(::google::protobuf::int32 value) {
3654 : set_has_end();
3655 : end_ = value;
3656 : // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.end)
3657 : }
3658 :
3659 : // -------------------------------------------------------------------
3660 :
3661 : // DescriptorProto
3662 :
3663 : // optional string name = 1;
3664 : bool DescriptorProto::has_name() const {
3665 : return (_has_bits_[0] & 0x00000001u) != 0;
3666 : }
3667 : void DescriptorProto::set_has_name() {
3668 : _has_bits_[0] |= 0x00000001u;
3669 : }
3670 : void DescriptorProto::clear_has_name() {
3671 : _has_bits_[0] &= ~0x00000001u;
3672 : }
3673 : void DescriptorProto::clear_name() {
3674 : name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3675 : clear_has_name();
3676 : }
3677 : const ::std::string& DescriptorProto::name() const {
3678 : // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name)
3679 : return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3680 : }
3681 : void DescriptorProto::set_name(const ::std::string& value) {
3682 : set_has_name();
3683 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3684 : // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name)
3685 : }
3686 : void DescriptorProto::set_name(const char* value) {
3687 : set_has_name();
3688 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3689 : // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.name)
3690 : }
3691 : void DescriptorProto::set_name(const char* value, size_t size) {
3692 : set_has_name();
3693 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3694 : ::std::string(reinterpret_cast<const char*>(value), size));
3695 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.name)
3696 : }
3697 : ::std::string* DescriptorProto::mutable_name() {
3698 : set_has_name();
3699 : // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name)
3700 : return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3701 : }
3702 : ::std::string* DescriptorProto::release_name() {
3703 : clear_has_name();
3704 : return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3705 : }
3706 : void DescriptorProto::set_allocated_name(::std::string* name) {
3707 : if (name != NULL) {
3708 : set_has_name();
3709 : } else {
3710 : clear_has_name();
3711 : }
3712 : name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
3713 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.name)
3714 : }
3715 :
3716 : // repeated .google.protobuf.FieldDescriptorProto field = 2;
3717 : int DescriptorProto::field_size() const {
3718 : return field_.size();
3719 : }
3720 : void DescriptorProto::clear_field() {
3721 : field_.Clear();
3722 : }
3723 : const ::google::protobuf::FieldDescriptorProto& DescriptorProto::field(int index) const {
3724 : // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.field)
3725 : return field_.Get(index);
3726 : }
3727 : ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_field(int index) {
3728 : // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.field)
3729 : return field_.Mutable(index);
3730 : }
3731 : ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_field() {
3732 : // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.field)
3733 : return field_.Add();
3734 : }
3735 : ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
3736 : DescriptorProto::mutable_field() {
3737 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.field)
3738 : return &field_;
3739 : }
3740 : const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
3741 : DescriptorProto::field() const {
3742 : // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.field)
3743 : return field_;
3744 : }
3745 :
3746 : // repeated .google.protobuf.FieldDescriptorProto extension = 6;
3747 : int DescriptorProto::extension_size() const {
3748 : return extension_.size();
3749 : }
3750 : void DescriptorProto::clear_extension() {
3751 : extension_.Clear();
3752 : }
3753 : const ::google::protobuf::FieldDescriptorProto& DescriptorProto::extension(int index) const {
3754 : // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension)
3755 : return extension_.Get(index);
3756 : }
3757 : ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_extension(int index) {
3758 : // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension)
3759 : return extension_.Mutable(index);
3760 : }
3761 : ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_extension() {
3762 : // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension)
3763 : return extension_.Add();
3764 : }
3765 : ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
3766 : DescriptorProto::mutable_extension() {
3767 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension)
3768 : return &extension_;
3769 : }
3770 : const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
3771 : DescriptorProto::extension() const {
3772 : // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension)
3773 : return extension_;
3774 : }
3775 :
3776 : // repeated .google.protobuf.DescriptorProto nested_type = 3;
3777 : int DescriptorProto::nested_type_size() const {
3778 : return nested_type_.size();
3779 : }
3780 : void DescriptorProto::clear_nested_type() {
3781 : nested_type_.Clear();
3782 : }
3783 : const ::google::protobuf::DescriptorProto& DescriptorProto::nested_type(int index) const {
3784 : // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.nested_type)
3785 : return nested_type_.Get(index);
3786 : }
3787 : ::google::protobuf::DescriptorProto* DescriptorProto::mutable_nested_type(int index) {
3788 : // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.nested_type)
3789 : return nested_type_.Mutable(index);
3790 : }
3791 : ::google::protobuf::DescriptorProto* DescriptorProto::add_nested_type() {
3792 : // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.nested_type)
3793 : return nested_type_.Add();
3794 : }
3795 : ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
3796 : DescriptorProto::mutable_nested_type() {
3797 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.nested_type)
3798 : return &nested_type_;
3799 : }
3800 : const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
3801 : DescriptorProto::nested_type() const {
3802 : // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.nested_type)
3803 : return nested_type_;
3804 : }
3805 :
3806 : // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3807 : int DescriptorProto::enum_type_size() const {
3808 : return enum_type_.size();
3809 : }
3810 : void DescriptorProto::clear_enum_type() {
3811 : enum_type_.Clear();
3812 : }
3813 : const ::google::protobuf::EnumDescriptorProto& DescriptorProto::enum_type(int index) const {
3814 : // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.enum_type)
3815 : return enum_type_.Get(index);
3816 : }
3817 : ::google::protobuf::EnumDescriptorProto* DescriptorProto::mutable_enum_type(int index) {
3818 : // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.enum_type)
3819 : return enum_type_.Mutable(index);
3820 : }
3821 : ::google::protobuf::EnumDescriptorProto* DescriptorProto::add_enum_type() {
3822 : // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.enum_type)
3823 : return enum_type_.Add();
3824 : }
3825 : ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
3826 : DescriptorProto::mutable_enum_type() {
3827 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.enum_type)
3828 : return &enum_type_;
3829 : }
3830 : const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
3831 : DescriptorProto::enum_type() const {
3832 : // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.enum_type)
3833 : return enum_type_;
3834 : }
3835 :
3836 : // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
3837 : int DescriptorProto::extension_range_size() const {
3838 : return extension_range_.size();
3839 : }
3840 : void DescriptorProto::clear_extension_range() {
3841 : extension_range_.Clear();
3842 : }
3843 : const ::google::protobuf::DescriptorProto_ExtensionRange& DescriptorProto::extension_range(int index) const {
3844 : // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension_range)
3845 : return extension_range_.Get(index);
3846 : }
3847 : ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::mutable_extension_range(int index) {
3848 : // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension_range)
3849 : return extension_range_.Mutable(index);
3850 : }
3851 : ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::add_extension_range() {
3852 : // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension_range)
3853 : return extension_range_.Add();
3854 : }
3855 : ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >*
3856 : DescriptorProto::mutable_extension_range() {
3857 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension_range)
3858 : return &extension_range_;
3859 : }
3860 : const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >&
3861 : DescriptorProto::extension_range() const {
3862 : // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension_range)
3863 : return extension_range_;
3864 : }
3865 :
3866 : // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
3867 : int DescriptorProto::oneof_decl_size() const {
3868 : return oneof_decl_.size();
3869 : }
3870 : void DescriptorProto::clear_oneof_decl() {
3871 : oneof_decl_.Clear();
3872 : }
3873 : const ::google::protobuf::OneofDescriptorProto& DescriptorProto::oneof_decl(int index) const {
3874 : // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.oneof_decl)
3875 : return oneof_decl_.Get(index);
3876 : }
3877 : ::google::protobuf::OneofDescriptorProto* DescriptorProto::mutable_oneof_decl(int index) {
3878 : // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.oneof_decl)
3879 : return oneof_decl_.Mutable(index);
3880 : }
3881 : ::google::protobuf::OneofDescriptorProto* DescriptorProto::add_oneof_decl() {
3882 : // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.oneof_decl)
3883 : return oneof_decl_.Add();
3884 : }
3885 : ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >*
3886 : DescriptorProto::mutable_oneof_decl() {
3887 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.oneof_decl)
3888 : return &oneof_decl_;
3889 : }
3890 : const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >&
3891 : DescriptorProto::oneof_decl() const {
3892 : // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_decl)
3893 : return oneof_decl_;
3894 : }
3895 :
3896 : // optional .google.protobuf.MessageOptions options = 7;
3897 : bool DescriptorProto::has_options() const {
3898 : return (_has_bits_[0] & 0x00000080u) != 0;
3899 : }
3900 : void DescriptorProto::set_has_options() {
3901 : _has_bits_[0] |= 0x00000080u;
3902 : }
3903 : void DescriptorProto::clear_has_options() {
3904 : _has_bits_[0] &= ~0x00000080u;
3905 : }
3906 : void DescriptorProto::clear_options() {
3907 : if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear();
3908 : clear_has_options();
3909 : }
3910 : const ::google::protobuf::MessageOptions& DescriptorProto::options() const {
3911 : // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options)
3912 : return options_ != NULL ? *options_ : *default_instance_->options_;
3913 : }
3914 : ::google::protobuf::MessageOptions* DescriptorProto::mutable_options() {
3915 : set_has_options();
3916 : if (options_ == NULL) {
3917 : options_ = new ::google::protobuf::MessageOptions;
3918 : }
3919 : // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.options)
3920 : return options_;
3921 : }
3922 : ::google::protobuf::MessageOptions* DescriptorProto::release_options() {
3923 : clear_has_options();
3924 : ::google::protobuf::MessageOptions* temp = options_;
3925 : options_ = NULL;
3926 : return temp;
3927 : }
3928 : void DescriptorProto::set_allocated_options(::google::protobuf::MessageOptions* options) {
3929 : delete options_;
3930 : options_ = options;
3931 : if (options) {
3932 : set_has_options();
3933 : } else {
3934 : clear_has_options();
3935 : }
3936 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.options)
3937 : }
3938 :
3939 : // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
3940 : int DescriptorProto::reserved_range_size() const {
3941 : return reserved_range_.size();
3942 : }
3943 : void DescriptorProto::clear_reserved_range() {
3944 : reserved_range_.Clear();
3945 : }
3946 : const ::google::protobuf::DescriptorProto_ReservedRange& DescriptorProto::reserved_range(int index) const {
3947 : // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_range)
3948 : return reserved_range_.Get(index);
3949 : }
3950 : ::google::protobuf::DescriptorProto_ReservedRange* DescriptorProto::mutable_reserved_range(int index) {
3951 : // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_range)
3952 : return reserved_range_.Mutable(index);
3953 : }
3954 : ::google::protobuf::DescriptorProto_ReservedRange* DescriptorProto::add_reserved_range() {
3955 : // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_range)
3956 : return reserved_range_.Add();
3957 : }
3958 : ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >*
3959 : DescriptorProto::mutable_reserved_range() {
3960 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_range)
3961 : return &reserved_range_;
3962 : }
3963 : const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >&
3964 : DescriptorProto::reserved_range() const {
3965 : // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_range)
3966 : return reserved_range_;
3967 : }
3968 :
3969 : // repeated string reserved_name = 10;
3970 : int DescriptorProto::reserved_name_size() const {
3971 : return reserved_name_.size();
3972 : }
3973 : void DescriptorProto::clear_reserved_name() {
3974 : reserved_name_.Clear();
3975 : }
3976 : const ::std::string& DescriptorProto::reserved_name(int index) const {
3977 : // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_name)
3978 : return reserved_name_.Get(index);
3979 : }
3980 : ::std::string* DescriptorProto::mutable_reserved_name(int index) {
3981 : // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_name)
3982 : return reserved_name_.Mutable(index);
3983 : }
3984 : void DescriptorProto::set_reserved_name(int index, const ::std::string& value) {
3985 : // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved_name)
3986 : reserved_name_.Mutable(index)->assign(value);
3987 : }
3988 : void DescriptorProto::set_reserved_name(int index, const char* value) {
3989 : reserved_name_.Mutable(index)->assign(value);
3990 : // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.reserved_name)
3991 : }
3992 : void DescriptorProto::set_reserved_name(int index, const char* value, size_t size) {
3993 : reserved_name_.Mutable(index)->assign(
3994 : reinterpret_cast<const char*>(value), size);
3995 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.reserved_name)
3996 : }
3997 : ::std::string* DescriptorProto::add_reserved_name() {
3998 : return reserved_name_.Add();
3999 : }
4000 : void DescriptorProto::add_reserved_name(const ::std::string& value) {
4001 : reserved_name_.Add()->assign(value);
4002 : // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_name)
4003 : }
4004 : void DescriptorProto::add_reserved_name(const char* value) {
4005 : reserved_name_.Add()->assign(value);
4006 : // @@protoc_insertion_point(field_add_char:google.protobuf.DescriptorProto.reserved_name)
4007 : }
4008 : void DescriptorProto::add_reserved_name(const char* value, size_t size) {
4009 : reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
4010 : // @@protoc_insertion_point(field_add_pointer:google.protobuf.DescriptorProto.reserved_name)
4011 : }
4012 : const ::google::protobuf::RepeatedPtrField< ::std::string>&
4013 : DescriptorProto::reserved_name() const {
4014 : // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_name)
4015 : return reserved_name_;
4016 : }
4017 : ::google::protobuf::RepeatedPtrField< ::std::string>*
4018 : DescriptorProto::mutable_reserved_name() {
4019 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_name)
4020 : return &reserved_name_;
4021 : }
4022 :
4023 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
4024 :
4025 : // ===================================================================
4026 :
4027 727 : const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor() {
4028 : protobuf_AssignDescriptorsOnce();
4029 727 : return FieldDescriptorProto_Type_descriptor_;
4030 : }
4031 6423 : bool FieldDescriptorProto_Type_IsValid(int value) {
4032 6423 : switch(value) {
4033 : case 1:
4034 : case 2:
4035 : case 3:
4036 : case 4:
4037 : case 5:
4038 : case 6:
4039 : case 7:
4040 : case 8:
4041 : case 9:
4042 : case 10:
4043 : case 11:
4044 : case 12:
4045 : case 13:
4046 : case 14:
4047 : case 15:
4048 : case 16:
4049 : case 17:
4050 : case 18:
4051 : return true;
4052 : default:
4053 0 : return false;
4054 : }
4055 : }
4056 :
4057 : #ifndef _MSC_VER
4058 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_DOUBLE;
4059 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FLOAT;
4060 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT64;
4061 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT64;
4062 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT32;
4063 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED64;
4064 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED32;
4065 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BOOL;
4066 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_STRING;
4067 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_GROUP;
4068 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_MESSAGE;
4069 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BYTES;
4070 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT32;
4071 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_ENUM;
4072 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED32;
4073 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED64;
4074 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT32;
4075 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT64;
4076 : const FieldDescriptorProto_Type FieldDescriptorProto::Type_MIN;
4077 : const FieldDescriptorProto_Type FieldDescriptorProto::Type_MAX;
4078 : const int FieldDescriptorProto::Type_ARRAYSIZE;
4079 : #endif // _MSC_VER
4080 0 : const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor() {
4081 : protobuf_AssignDescriptorsOnce();
4082 0 : return FieldDescriptorProto_Label_descriptor_;
4083 : }
4084 6423 : bool FieldDescriptorProto_Label_IsValid(int value) {
4085 6423 : switch(value) {
4086 : case 1:
4087 : case 2:
4088 : case 3:
4089 : return true;
4090 : default:
4091 0 : return false;
4092 : }
4093 : }
4094 :
4095 : #ifndef _MSC_VER
4096 : const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_OPTIONAL;
4097 : const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REQUIRED;
4098 : const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REPEATED;
4099 : const FieldDescriptorProto_Label FieldDescriptorProto::Label_MIN;
4100 : const FieldDescriptorProto_Label FieldDescriptorProto::Label_MAX;
4101 : const int FieldDescriptorProto::Label_ARRAYSIZE;
4102 : #endif // _MSC_VER
4103 : #ifndef _MSC_VER
4104 : const int FieldDescriptorProto::kNameFieldNumber;
4105 : const int FieldDescriptorProto::kNumberFieldNumber;
4106 : const int FieldDescriptorProto::kLabelFieldNumber;
4107 : const int FieldDescriptorProto::kTypeFieldNumber;
4108 : const int FieldDescriptorProto::kTypeNameFieldNumber;
4109 : const int FieldDescriptorProto::kExtendeeFieldNumber;
4110 : const int FieldDescriptorProto::kDefaultValueFieldNumber;
4111 : const int FieldDescriptorProto::kOneofIndexFieldNumber;
4112 : const int FieldDescriptorProto::kOptionsFieldNumber;
4113 : #endif // !_MSC_VER
4114 :
4115 12409 : FieldDescriptorProto::FieldDescriptorProto()
4116 24818 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4117 12409 : SharedCtor();
4118 : // @@protoc_insertion_point(constructor:google.protobuf.FieldDescriptorProto)
4119 12409 : }
4120 :
4121 46 : void FieldDescriptorProto::InitAsDefaultInstance() {
4122 46 : options_ = const_cast< ::google::protobuf::FieldOptions*>(&::google::protobuf::FieldOptions::default_instance());
4123 46 : }
4124 :
4125 0 : FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from)
4126 : : ::google::protobuf::Message(),
4127 0 : _internal_metadata_(NULL) {
4128 0 : SharedCtor();
4129 0 : MergeFrom(from);
4130 : // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldDescriptorProto)
4131 0 : }
4132 :
4133 12409 : void FieldDescriptorProto::SharedCtor() {
4134 : ::google::protobuf::internal::GetEmptyString();
4135 12409 : _cached_size_ = 0;
4136 12409 : name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4137 12409 : number_ = 0;
4138 12409 : label_ = 1;
4139 12409 : type_ = 1;
4140 12409 : type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4141 12409 : extendee_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4142 12409 : default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4143 12409 : oneof_index_ = 0;
4144 12409 : options_ = NULL;
4145 12409 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
4146 12409 : }
4147 :
4148 37089 : FieldDescriptorProto::~FieldDescriptorProto() {
4149 : // @@protoc_insertion_point(destructor:google.protobuf.FieldDescriptorProto)
4150 12363 : SharedDtor();
4151 24726 : }
4152 :
4153 12363 : void FieldDescriptorProto::SharedDtor() {
4154 12363 : name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4155 12363 : type_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4156 12363 : extendee_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4157 12363 : default_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4158 12363 : if (this != default_instance_) {
4159 12363 : delete options_;
4160 : }
4161 12363 : }
4162 :
4163 0 : void FieldDescriptorProto::SetCachedSize(int size) const {
4164 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4165 0 : _cached_size_ = size;
4166 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
4167 0 : }
4168 0 : const ::google::protobuf::Descriptor* FieldDescriptorProto::descriptor() {
4169 : protobuf_AssignDescriptorsOnce();
4170 0 : return FieldDescriptorProto_descriptor_;
4171 : }
4172 :
4173 1 : const FieldDescriptorProto& FieldDescriptorProto::default_instance() {
4174 1 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
4175 1 : return *default_instance_;
4176 : }
4177 :
4178 : FieldDescriptorProto* FieldDescriptorProto::default_instance_ = NULL;
4179 :
4180 0 : FieldDescriptorProto* FieldDescriptorProto::New(::google::protobuf::Arena* arena) const {
4181 0 : FieldDescriptorProto* n = new FieldDescriptorProto;
4182 0 : if (arena != NULL) {
4183 0 : arena->Own(n);
4184 : }
4185 0 : return n;
4186 : }
4187 :
4188 0 : void FieldDescriptorProto::Clear() {
4189 0 : if (_has_bits_[0 / 32] & 255u) {
4190 0 : if (has_name()) {
4191 0 : name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4192 : }
4193 0 : number_ = 0;
4194 0 : label_ = 1;
4195 0 : type_ = 1;
4196 0 : if (has_type_name()) {
4197 0 : type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4198 : }
4199 0 : if (has_extendee()) {
4200 0 : extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4201 : }
4202 0 : if (has_default_value()) {
4203 0 : default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4204 : }
4205 0 : oneof_index_ = 0;
4206 : }
4207 0 : if (has_options()) {
4208 0 : if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear();
4209 : }
4210 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
4211 0 : if (_internal_metadata_.have_unknown_fields()) {
4212 0 : mutable_unknown_fields()->Clear();
4213 : }
4214 0 : }
4215 :
4216 6423 : bool FieldDescriptorProto::MergePartialFromCodedStream(
4217 : ::google::protobuf::io::CodedInputStream* input) {
4218 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
4219 : ::google::protobuf::uint32 tag;
4220 : // @@protoc_insertion_point(parse_start:google.protobuf.FieldDescriptorProto)
4221 : for (;;) {
4222 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
4223 20391 : tag = p.first;
4224 20391 : if (!p.second) goto handle_unusual;
4225 14032 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4226 : // optional string name = 1;
4227 : case 1: {
4228 6423 : if (tag == 10) {
4229 12846 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4230 : input, this->mutable_name()));
4231 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4232 12846 : this->name().data(), this->name().length(),
4233 : ::google::protobuf::internal::WireFormat::PARSE,
4234 12846 : "google.protobuf.FieldDescriptorProto.name");
4235 : } else {
4236 : goto handle_unusual;
4237 : }
4238 6423 : if (input->ExpectTag(18)) goto parse_extendee;
4239 : break;
4240 : }
4241 :
4242 : // optional string extendee = 2;
4243 : case 2: {
4244 0 : if (tag == 18) {
4245 : parse_extendee:
4246 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4247 : input, this->mutable_extendee()));
4248 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4249 0 : this->extendee().data(), this->extendee().length(),
4250 : ::google::protobuf::internal::WireFormat::PARSE,
4251 0 : "google.protobuf.FieldDescriptorProto.extendee");
4252 : } else {
4253 : goto handle_unusual;
4254 : }
4255 0 : if (input->ExpectTag(24)) goto parse_number;
4256 : break;
4257 : }
4258 :
4259 : // optional int32 number = 3;
4260 : case 3: {
4261 6423 : if (tag == 24) {
4262 : parse_number:
4263 12846 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4264 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
4265 : input, &number_)));
4266 6423 : set_has_number();
4267 : } else {
4268 : goto handle_unusual;
4269 : }
4270 6423 : if (input->ExpectTag(32)) goto parse_label;
4271 : break;
4272 : }
4273 :
4274 : // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
4275 : case 4: {
4276 0 : if (tag == 32) {
4277 : parse_label:
4278 : int value;
4279 6423 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4280 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4281 : input, &value)));
4282 6423 : if (::google::protobuf::FieldDescriptorProto_Label_IsValid(value)) {
4283 6423 : set_label(static_cast< ::google::protobuf::FieldDescriptorProto_Label >(value));
4284 : } else {
4285 0 : mutable_unknown_fields()->AddVarint(4, value);
4286 : }
4287 : } else {
4288 : goto handle_unusual;
4289 : }
4290 6423 : if (input->ExpectTag(40)) goto parse_type;
4291 : break;
4292 : }
4293 :
4294 : // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
4295 : case 5: {
4296 0 : if (tag == 40) {
4297 : parse_type:
4298 : int value;
4299 6423 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4300 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4301 : input, &value)));
4302 6423 : if (::google::protobuf::FieldDescriptorProto_Type_IsValid(value)) {
4303 6423 : set_type(static_cast< ::google::protobuf::FieldDescriptorProto_Type >(value));
4304 : } else {
4305 0 : mutable_unknown_fields()->AddVarint(5, value);
4306 : }
4307 : } else {
4308 : goto handle_unusual;
4309 : }
4310 6423 : if (input->ExpectTag(50)) goto parse_type_name;
4311 : break;
4312 : }
4313 :
4314 : // optional string type_name = 6;
4315 : case 6: {
4316 0 : if (tag == 50) {
4317 : parse_type_name:
4318 4368 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4319 : input, this->mutable_type_name()));
4320 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4321 4368 : this->type_name().data(), this->type_name().length(),
4322 : ::google::protobuf::internal::WireFormat::PARSE,
4323 4368 : "google.protobuf.FieldDescriptorProto.type_name");
4324 : } else {
4325 : goto handle_unusual;
4326 : }
4327 2184 : if (input->ExpectTag(58)) goto parse_default_value;
4328 : break;
4329 : }
4330 :
4331 : // optional string default_value = 7;
4332 : case 7: {
4333 1020 : if (tag == 58) {
4334 : parse_default_value:
4335 2346 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4336 : input, this->mutable_default_value()));
4337 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4338 2346 : this->default_value().data(), this->default_value().length(),
4339 : ::google::protobuf::internal::WireFormat::PARSE,
4340 2346 : "google.protobuf.FieldDescriptorProto.default_value");
4341 : } else {
4342 : goto handle_unusual;
4343 : }
4344 1173 : if (input->ExpectTag(66)) goto parse_options;
4345 : break;
4346 : }
4347 :
4348 : // optional .google.protobuf.FieldOptions options = 8;
4349 : case 8: {
4350 102 : if (tag == 66) {
4351 : parse_options:
4352 102 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4353 : input, mutable_options()));
4354 : } else {
4355 : goto handle_unusual;
4356 : }
4357 102 : if (input->ExpectTag(72)) goto parse_oneof_index;
4358 : break;
4359 : }
4360 :
4361 : // optional int32 oneof_index = 9;
4362 : case 9: {
4363 64 : if (tag == 72) {
4364 : parse_oneof_index:
4365 128 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4366 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
4367 : input, &oneof_index_)));
4368 64 : set_has_oneof_index();
4369 : } else {
4370 : goto handle_unusual;
4371 : }
4372 64 : if (input->ExpectAtEnd()) goto success;
4373 : break;
4374 : }
4375 :
4376 : default: {
4377 : handle_unusual:
4378 6359 : if (tag == 0 ||
4379 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4380 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4381 : goto success;
4382 : }
4383 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
4384 : input, tag, mutable_unknown_fields()));
4385 : break;
4386 : }
4387 : }
4388 13968 : }
4389 : success:
4390 : // @@protoc_insertion_point(parse_success:google.protobuf.FieldDescriptorProto)
4391 6423 : return true;
4392 : failure:
4393 : // @@protoc_insertion_point(parse_failure:google.protobuf.FieldDescriptorProto)
4394 0 : return false;
4395 : #undef DO_
4396 : }
4397 :
4398 0 : void FieldDescriptorProto::SerializeWithCachedSizes(
4399 0 : ::google::protobuf::io::CodedOutputStream* output) const {
4400 : // @@protoc_insertion_point(serialize_start:google.protobuf.FieldDescriptorProto)
4401 : // optional string name = 1;
4402 0 : if (has_name()) {
4403 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4404 0 : this->name().data(), this->name().length(),
4405 : ::google::protobuf::internal::WireFormat::SERIALIZE,
4406 0 : "google.protobuf.FieldDescriptorProto.name");
4407 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4408 0 : 1, this->name(), output);
4409 : }
4410 :
4411 : // optional string extendee = 2;
4412 0 : if (has_extendee()) {
4413 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4414 0 : this->extendee().data(), this->extendee().length(),
4415 : ::google::protobuf::internal::WireFormat::SERIALIZE,
4416 0 : "google.protobuf.FieldDescriptorProto.extendee");
4417 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4418 0 : 2, this->extendee(), output);
4419 : }
4420 :
4421 : // optional int32 number = 3;
4422 0 : if (has_number()) {
4423 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->number(), output);
4424 : }
4425 :
4426 : // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
4427 0 : if (has_label()) {
4428 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
4429 0 : 4, this->label(), output);
4430 : }
4431 :
4432 : // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
4433 0 : if (has_type()) {
4434 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
4435 0 : 5, this->type(), output);
4436 : }
4437 :
4438 : // optional string type_name = 6;
4439 0 : if (has_type_name()) {
4440 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4441 0 : this->type_name().data(), this->type_name().length(),
4442 : ::google::protobuf::internal::WireFormat::SERIALIZE,
4443 0 : "google.protobuf.FieldDescriptorProto.type_name");
4444 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4445 0 : 6, this->type_name(), output);
4446 : }
4447 :
4448 : // optional string default_value = 7;
4449 0 : if (has_default_value()) {
4450 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4451 0 : this->default_value().data(), this->default_value().length(),
4452 : ::google::protobuf::internal::WireFormat::SERIALIZE,
4453 0 : "google.protobuf.FieldDescriptorProto.default_value");
4454 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4455 0 : 7, this->default_value(), output);
4456 : }
4457 :
4458 : // optional .google.protobuf.FieldOptions options = 8;
4459 0 : if (has_options()) {
4460 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4461 0 : 8, *this->options_, output);
4462 : }
4463 :
4464 : // optional int32 oneof_index = 9;
4465 0 : if (has_oneof_index()) {
4466 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->oneof_index(), output);
4467 : }
4468 :
4469 0 : if (_internal_metadata_.have_unknown_fields()) {
4470 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4471 0 : unknown_fields(), output);
4472 : }
4473 : // @@protoc_insertion_point(serialize_end:google.protobuf.FieldDescriptorProto)
4474 0 : }
4475 :
4476 2661 : ::google::protobuf::uint8* FieldDescriptorProto::SerializeWithCachedSizesToArray(
4477 32035 : ::google::protobuf::uint8* target) const {
4478 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldDescriptorProto)
4479 : // optional string name = 1;
4480 5322 : if (has_name()) {
4481 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4482 5322 : this->name().data(), this->name().length(),
4483 : ::google::protobuf::internal::WireFormat::SERIALIZE,
4484 5322 : "google.protobuf.FieldDescriptorProto.name");
4485 : target =
4486 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4487 5322 : 1, this->name(), target);
4488 : }
4489 :
4490 : // optional string extendee = 2;
4491 5322 : if (has_extendee()) {
4492 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4493 326 : this->extendee().data(), this->extendee().length(),
4494 : ::google::protobuf::internal::WireFormat::SERIALIZE,
4495 326 : "google.protobuf.FieldDescriptorProto.extendee");
4496 : target =
4497 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4498 326 : 2, this->extendee(), target);
4499 : }
4500 :
4501 : // optional int32 number = 3;
4502 5322 : if (has_number()) {
4503 5322 : target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->number(), target);
4504 : }
4505 :
4506 : // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
4507 5322 : if (has_label()) {
4508 : target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4509 5322 : 4, this->label(), target);
4510 : }
4511 :
4512 : // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
4513 5322 : if (has_type()) {
4514 : target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4515 5322 : 5, this->type(), target);
4516 : }
4517 :
4518 : // optional string type_name = 6;
4519 5322 : if (has_type_name()) {
4520 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4521 1270 : this->type_name().data(), this->type_name().length(),
4522 : ::google::protobuf::internal::WireFormat::SERIALIZE,
4523 1270 : "google.protobuf.FieldDescriptorProto.type_name");
4524 : target =
4525 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4526 1270 : 6, this->type_name(), target);
4527 : }
4528 :
4529 : // optional string default_value = 7;
4530 5322 : if (has_default_value()) {
4531 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4532 2194 : this->default_value().data(), this->default_value().length(),
4533 : ::google::protobuf::internal::WireFormat::SERIALIZE,
4534 2194 : "google.protobuf.FieldDescriptorProto.default_value");
4535 : target =
4536 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4537 2194 : 7, this->default_value(), target);
4538 : }
4539 :
4540 : // optional .google.protobuf.FieldOptions options = 8;
4541 5322 : if (has_options()) {
4542 : target = ::google::protobuf::internal::WireFormatLite::
4543 : WriteMessageNoVirtualToArray(
4544 332 : 8, *this->options_, target);
4545 : }
4546 :
4547 : // optional int32 oneof_index = 9;
4548 5322 : if (has_oneof_index()) {
4549 206 : target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->oneof_index(), target);
4550 : }
4551 :
4552 5322 : if (_internal_metadata_.have_unknown_fields()) {
4553 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4554 0 : unknown_fields(), target);
4555 : }
4556 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldDescriptorProto)
4557 2661 : return target;
4558 : }
4559 :
4560 32035 : int FieldDescriptorProto::ByteSize() const {
4561 2661 : int total_size = 0;
4562 :
4563 2661 : if (_has_bits_[0 / 32] & 255u) {
4564 : // optional string name = 1;
4565 5322 : if (has_name()) {
4566 : total_size += 1 +
4567 : ::google::protobuf::internal::WireFormatLite::StringSize(
4568 2661 : this->name());
4569 : }
4570 :
4571 : // optional int32 number = 3;
4572 5322 : if (has_number()) {
4573 : total_size += 1 +
4574 : ::google::protobuf::internal::WireFormatLite::Int32Size(
4575 5322 : this->number());
4576 : }
4577 :
4578 : // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
4579 5322 : if (has_label()) {
4580 : total_size += 1 +
4581 7983 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->label());
4582 : }
4583 :
4584 : // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
4585 5322 : if (has_type()) {
4586 : total_size += 1 +
4587 7983 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
4588 : }
4589 :
4590 : // optional string type_name = 6;
4591 5322 : if (has_type_name()) {
4592 : total_size += 1 +
4593 : ::google::protobuf::internal::WireFormatLite::StringSize(
4594 635 : this->type_name());
4595 : }
4596 :
4597 : // optional string extendee = 2;
4598 5322 : if (has_extendee()) {
4599 : total_size += 1 +
4600 : ::google::protobuf::internal::WireFormatLite::StringSize(
4601 163 : this->extendee());
4602 : }
4603 :
4604 : // optional string default_value = 7;
4605 5322 : if (has_default_value()) {
4606 : total_size += 1 +
4607 : ::google::protobuf::internal::WireFormatLite::StringSize(
4608 1097 : this->default_value());
4609 : }
4610 :
4611 : // optional int32 oneof_index = 9;
4612 5322 : if (has_oneof_index()) {
4613 : total_size += 1 +
4614 : ::google::protobuf::internal::WireFormatLite::Int32Size(
4615 206 : this->oneof_index());
4616 : }
4617 :
4618 : }
4619 : // optional .google.protobuf.FieldOptions options = 8;
4620 5322 : if (has_options()) {
4621 : total_size += 1 +
4622 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4623 166 : *this->options_);
4624 : }
4625 :
4626 5322 : if (_internal_metadata_.have_unknown_fields()) {
4627 : total_size +=
4628 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4629 0 : unknown_fields());
4630 : }
4631 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4632 2661 : _cached_size_ = total_size;
4633 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
4634 2661 : return total_size;
4635 : }
4636 :
4637 0 : void FieldDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
4638 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
4639 : const FieldDescriptorProto* source =
4640 : ::google::protobuf::internal::DynamicCastToGenerated<const FieldDescriptorProto>(
4641 0 : &from);
4642 0 : if (source == NULL) {
4643 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4644 : } else {
4645 0 : MergeFrom(*source);
4646 : }
4647 0 : }
4648 :
4649 0 : void FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) {
4650 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
4651 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4652 0 : if (from.has_name()) {
4653 0 : set_has_name();
4654 0 : name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
4655 : }
4656 0 : if (from.has_number()) {
4657 0 : set_number(from.number());
4658 : }
4659 0 : if (from.has_label()) {
4660 0 : set_label(from.label());
4661 : }
4662 0 : if (from.has_type()) {
4663 0 : set_type(from.type());
4664 : }
4665 0 : if (from.has_type_name()) {
4666 0 : set_has_type_name();
4667 0 : type_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_name_);
4668 : }
4669 0 : if (from.has_extendee()) {
4670 0 : set_has_extendee();
4671 0 : extendee_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.extendee_);
4672 : }
4673 0 : if (from.has_default_value()) {
4674 0 : set_has_default_value();
4675 0 : default_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.default_value_);
4676 : }
4677 0 : if (from.has_oneof_index()) {
4678 0 : set_oneof_index(from.oneof_index());
4679 : }
4680 : }
4681 0 : if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
4682 0 : if (from.has_options()) {
4683 0 : mutable_options()->::google::protobuf::FieldOptions::MergeFrom(from.options());
4684 : }
4685 : }
4686 0 : if (from._internal_metadata_.have_unknown_fields()) {
4687 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4688 : }
4689 0 : }
4690 :
4691 0 : void FieldDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
4692 0 : if (&from == this) return;
4693 0 : Clear();
4694 0 : MergeFrom(from);
4695 : }
4696 :
4697 0 : void FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) {
4698 0 : if (&from == this) return;
4699 0 : Clear();
4700 0 : MergeFrom(from);
4701 : }
4702 :
4703 6423 : bool FieldDescriptorProto::IsInitialized() const {
4704 :
4705 12846 : if (has_options()) {
4706 102 : if (!this->options_->IsInitialized()) return false;
4707 : }
4708 : return true;
4709 : }
4710 :
4711 0 : void FieldDescriptorProto::Swap(FieldDescriptorProto* other) {
4712 0 : if (other == this) return;
4713 0 : InternalSwap(other);
4714 : }
4715 0 : void FieldDescriptorProto::InternalSwap(FieldDescriptorProto* other) {
4716 0 : name_.Swap(&other->name_);
4717 0 : std::swap(number_, other->number_);
4718 0 : std::swap(label_, other->label_);
4719 0 : std::swap(type_, other->type_);
4720 0 : type_name_.Swap(&other->type_name_);
4721 0 : extendee_.Swap(&other->extendee_);
4722 0 : default_value_.Swap(&other->default_value_);
4723 0 : std::swap(oneof_index_, other->oneof_index_);
4724 0 : std::swap(options_, other->options_);
4725 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
4726 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
4727 0 : std::swap(_cached_size_, other->_cached_size_);
4728 0 : }
4729 :
4730 0 : ::google::protobuf::Metadata FieldDescriptorProto::GetMetadata() const {
4731 : protobuf_AssignDescriptorsOnce();
4732 : ::google::protobuf::Metadata metadata;
4733 0 : metadata.descriptor = FieldDescriptorProto_descriptor_;
4734 0 : metadata.reflection = FieldDescriptorProto_reflection_;
4735 0 : return metadata;
4736 : }
4737 :
4738 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
4739 : // FieldDescriptorProto
4740 :
4741 : // optional string name = 1;
4742 : bool FieldDescriptorProto::has_name() const {
4743 : return (_has_bits_[0] & 0x00000001u) != 0;
4744 : }
4745 : void FieldDescriptorProto::set_has_name() {
4746 : _has_bits_[0] |= 0x00000001u;
4747 : }
4748 : void FieldDescriptorProto::clear_has_name() {
4749 : _has_bits_[0] &= ~0x00000001u;
4750 : }
4751 : void FieldDescriptorProto::clear_name() {
4752 : name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4753 : clear_has_name();
4754 : }
4755 : const ::std::string& FieldDescriptorProto::name() const {
4756 : // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.name)
4757 : return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4758 : }
4759 : void FieldDescriptorProto::set_name(const ::std::string& value) {
4760 : set_has_name();
4761 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4762 : // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.name)
4763 : }
4764 : void FieldDescriptorProto::set_name(const char* value) {
4765 : set_has_name();
4766 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4767 : // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.name)
4768 : }
4769 : void FieldDescriptorProto::set_name(const char* value, size_t size) {
4770 : set_has_name();
4771 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4772 : ::std::string(reinterpret_cast<const char*>(value), size));
4773 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.name)
4774 : }
4775 : ::std::string* FieldDescriptorProto::mutable_name() {
4776 : set_has_name();
4777 : // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.name)
4778 : return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4779 : }
4780 : ::std::string* FieldDescriptorProto::release_name() {
4781 : clear_has_name();
4782 : return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4783 : }
4784 : void FieldDescriptorProto::set_allocated_name(::std::string* name) {
4785 : if (name != NULL) {
4786 : set_has_name();
4787 : } else {
4788 : clear_has_name();
4789 : }
4790 : name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
4791 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.name)
4792 : }
4793 :
4794 : // optional int32 number = 3;
4795 : bool FieldDescriptorProto::has_number() const {
4796 : return (_has_bits_[0] & 0x00000002u) != 0;
4797 : }
4798 : void FieldDescriptorProto::set_has_number() {
4799 : _has_bits_[0] |= 0x00000002u;
4800 : }
4801 : void FieldDescriptorProto::clear_has_number() {
4802 : _has_bits_[0] &= ~0x00000002u;
4803 : }
4804 : void FieldDescriptorProto::clear_number() {
4805 : number_ = 0;
4806 : clear_has_number();
4807 : }
4808 : ::google::protobuf::int32 FieldDescriptorProto::number() const {
4809 : // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.number)
4810 : return number_;
4811 : }
4812 : void FieldDescriptorProto::set_number(::google::protobuf::int32 value) {
4813 : set_has_number();
4814 : number_ = value;
4815 : // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.number)
4816 : }
4817 :
4818 : // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
4819 : bool FieldDescriptorProto::has_label() const {
4820 : return (_has_bits_[0] & 0x00000004u) != 0;
4821 : }
4822 : void FieldDescriptorProto::set_has_label() {
4823 : _has_bits_[0] |= 0x00000004u;
4824 : }
4825 : void FieldDescriptorProto::clear_has_label() {
4826 : _has_bits_[0] &= ~0x00000004u;
4827 : }
4828 : void FieldDescriptorProto::clear_label() {
4829 : label_ = 1;
4830 : clear_has_label();
4831 : }
4832 : ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() const {
4833 : // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.label)
4834 : return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_);
4835 : }
4836 : void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_Label value) {
4837 : assert(::google::protobuf::FieldDescriptorProto_Label_IsValid(value));
4838 : set_has_label();
4839 : label_ = value;
4840 : // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.label)
4841 : }
4842 :
4843 : // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
4844 : bool FieldDescriptorProto::has_type() const {
4845 : return (_has_bits_[0] & 0x00000008u) != 0;
4846 : }
4847 : void FieldDescriptorProto::set_has_type() {
4848 : _has_bits_[0] |= 0x00000008u;
4849 : }
4850 : void FieldDescriptorProto::clear_has_type() {
4851 : _has_bits_[0] &= ~0x00000008u;
4852 : }
4853 : void FieldDescriptorProto::clear_type() {
4854 : type_ = 1;
4855 : clear_has_type();
4856 : }
4857 : ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() const {
4858 : // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type)
4859 : return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_);
4860 : }
4861 : void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Type value) {
4862 : assert(::google::protobuf::FieldDescriptorProto_Type_IsValid(value));
4863 : set_has_type();
4864 : type_ = value;
4865 : // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type)
4866 : }
4867 :
4868 : // optional string type_name = 6;
4869 : bool FieldDescriptorProto::has_type_name() const {
4870 : return (_has_bits_[0] & 0x00000010u) != 0;
4871 : }
4872 : void FieldDescriptorProto::set_has_type_name() {
4873 : _has_bits_[0] |= 0x00000010u;
4874 : }
4875 : void FieldDescriptorProto::clear_has_type_name() {
4876 : _has_bits_[0] &= ~0x00000010u;
4877 : }
4878 : void FieldDescriptorProto::clear_type_name() {
4879 : type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4880 : clear_has_type_name();
4881 : }
4882 : const ::std::string& FieldDescriptorProto::type_name() const {
4883 : // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type_name)
4884 : return type_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4885 : }
4886 : void FieldDescriptorProto::set_type_name(const ::std::string& value) {
4887 : set_has_type_name();
4888 : type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4889 : // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type_name)
4890 : }
4891 : void FieldDescriptorProto::set_type_name(const char* value) {
4892 : set_has_type_name();
4893 : type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4894 : // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.type_name)
4895 : }
4896 : void FieldDescriptorProto::set_type_name(const char* value, size_t size) {
4897 : set_has_type_name();
4898 : type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4899 : ::std::string(reinterpret_cast<const char*>(value), size));
4900 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.type_name)
4901 : }
4902 : ::std::string* FieldDescriptorProto::mutable_type_name() {
4903 : set_has_type_name();
4904 : // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.type_name)
4905 : return type_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4906 : }
4907 : ::std::string* FieldDescriptorProto::release_type_name() {
4908 : clear_has_type_name();
4909 : return type_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4910 : }
4911 : void FieldDescriptorProto::set_allocated_type_name(::std::string* type_name) {
4912 : if (type_name != NULL) {
4913 : set_has_type_name();
4914 : } else {
4915 : clear_has_type_name();
4916 : }
4917 : type_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_name);
4918 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.type_name)
4919 : }
4920 :
4921 : // optional string extendee = 2;
4922 : bool FieldDescriptorProto::has_extendee() const {
4923 : return (_has_bits_[0] & 0x00000020u) != 0;
4924 : }
4925 : void FieldDescriptorProto::set_has_extendee() {
4926 : _has_bits_[0] |= 0x00000020u;
4927 : }
4928 : void FieldDescriptorProto::clear_has_extendee() {
4929 : _has_bits_[0] &= ~0x00000020u;
4930 : }
4931 : void FieldDescriptorProto::clear_extendee() {
4932 : extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4933 : clear_has_extendee();
4934 : }
4935 : const ::std::string& FieldDescriptorProto::extendee() const {
4936 : // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.extendee)
4937 : return extendee_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4938 : }
4939 : void FieldDescriptorProto::set_extendee(const ::std::string& value) {
4940 : set_has_extendee();
4941 : extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4942 : // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.extendee)
4943 : }
4944 : void FieldDescriptorProto::set_extendee(const char* value) {
4945 : set_has_extendee();
4946 : extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4947 : // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.extendee)
4948 : }
4949 : void FieldDescriptorProto::set_extendee(const char* value, size_t size) {
4950 : set_has_extendee();
4951 : extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4952 : ::std::string(reinterpret_cast<const char*>(value), size));
4953 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.extendee)
4954 : }
4955 : ::std::string* FieldDescriptorProto::mutable_extendee() {
4956 : set_has_extendee();
4957 : // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.extendee)
4958 : return extendee_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4959 : }
4960 : ::std::string* FieldDescriptorProto::release_extendee() {
4961 : clear_has_extendee();
4962 : return extendee_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4963 : }
4964 : void FieldDescriptorProto::set_allocated_extendee(::std::string* extendee) {
4965 : if (extendee != NULL) {
4966 : set_has_extendee();
4967 : } else {
4968 : clear_has_extendee();
4969 : }
4970 : extendee_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), extendee);
4971 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.extendee)
4972 : }
4973 :
4974 : // optional string default_value = 7;
4975 : bool FieldDescriptorProto::has_default_value() const {
4976 : return (_has_bits_[0] & 0x00000040u) != 0;
4977 : }
4978 : void FieldDescriptorProto::set_has_default_value() {
4979 : _has_bits_[0] |= 0x00000040u;
4980 : }
4981 : void FieldDescriptorProto::clear_has_default_value() {
4982 : _has_bits_[0] &= ~0x00000040u;
4983 : }
4984 : void FieldDescriptorProto::clear_default_value() {
4985 : default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4986 : clear_has_default_value();
4987 : }
4988 : const ::std::string& FieldDescriptorProto::default_value() const {
4989 : // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.default_value)
4990 : return default_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4991 : }
4992 : void FieldDescriptorProto::set_default_value(const ::std::string& value) {
4993 : set_has_default_value();
4994 : default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4995 : // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.default_value)
4996 : }
4997 : void FieldDescriptorProto::set_default_value(const char* value) {
4998 : set_has_default_value();
4999 : default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5000 : // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.default_value)
5001 : }
5002 : void FieldDescriptorProto::set_default_value(const char* value, size_t size) {
5003 : set_has_default_value();
5004 : default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5005 : ::std::string(reinterpret_cast<const char*>(value), size));
5006 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.default_value)
5007 : }
5008 : ::std::string* FieldDescriptorProto::mutable_default_value() {
5009 : set_has_default_value();
5010 : // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.default_value)
5011 : return default_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5012 : }
5013 : ::std::string* FieldDescriptorProto::release_default_value() {
5014 : clear_has_default_value();
5015 : return default_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5016 : }
5017 : void FieldDescriptorProto::set_allocated_default_value(::std::string* default_value) {
5018 : if (default_value != NULL) {
5019 : set_has_default_value();
5020 : } else {
5021 : clear_has_default_value();
5022 : }
5023 : default_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), default_value);
5024 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.default_value)
5025 : }
5026 :
5027 : // optional int32 oneof_index = 9;
5028 : bool FieldDescriptorProto::has_oneof_index() const {
5029 : return (_has_bits_[0] & 0x00000080u) != 0;
5030 : }
5031 : void FieldDescriptorProto::set_has_oneof_index() {
5032 : _has_bits_[0] |= 0x00000080u;
5033 : }
5034 : void FieldDescriptorProto::clear_has_oneof_index() {
5035 : _has_bits_[0] &= ~0x00000080u;
5036 : }
5037 : void FieldDescriptorProto::clear_oneof_index() {
5038 : oneof_index_ = 0;
5039 : clear_has_oneof_index();
5040 : }
5041 : ::google::protobuf::int32 FieldDescriptorProto::oneof_index() const {
5042 : // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.oneof_index)
5043 : return oneof_index_;
5044 : }
5045 : void FieldDescriptorProto::set_oneof_index(::google::protobuf::int32 value) {
5046 : set_has_oneof_index();
5047 : oneof_index_ = value;
5048 : // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.oneof_index)
5049 : }
5050 :
5051 : // optional .google.protobuf.FieldOptions options = 8;
5052 : bool FieldDescriptorProto::has_options() const {
5053 : return (_has_bits_[0] & 0x00000100u) != 0;
5054 : }
5055 : void FieldDescriptorProto::set_has_options() {
5056 : _has_bits_[0] |= 0x00000100u;
5057 : }
5058 : void FieldDescriptorProto::clear_has_options() {
5059 : _has_bits_[0] &= ~0x00000100u;
5060 : }
5061 : void FieldDescriptorProto::clear_options() {
5062 : if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear();
5063 : clear_has_options();
5064 : }
5065 : const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const {
5066 : // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.options)
5067 : return options_ != NULL ? *options_ : *default_instance_->options_;
5068 : }
5069 : ::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() {
5070 : set_has_options();
5071 : if (options_ == NULL) {
5072 : options_ = new ::google::protobuf::FieldOptions;
5073 : }
5074 : // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.options)
5075 : return options_;
5076 : }
5077 : ::google::protobuf::FieldOptions* FieldDescriptorProto::release_options() {
5078 : clear_has_options();
5079 : ::google::protobuf::FieldOptions* temp = options_;
5080 : options_ = NULL;
5081 : return temp;
5082 : }
5083 : void FieldDescriptorProto::set_allocated_options(::google::protobuf::FieldOptions* options) {
5084 : delete options_;
5085 : options_ = options;
5086 : if (options) {
5087 : set_has_options();
5088 : } else {
5089 : clear_has_options();
5090 : }
5091 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.options)
5092 : }
5093 :
5094 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
5095 :
5096 : // ===================================================================
5097 :
5098 : #ifndef _MSC_VER
5099 : const int OneofDescriptorProto::kNameFieldNumber;
5100 : #endif // !_MSC_VER
5101 :
5102 125 : OneofDescriptorProto::OneofDescriptorProto()
5103 250 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5104 125 : SharedCtor();
5105 : // @@protoc_insertion_point(constructor:google.protobuf.OneofDescriptorProto)
5106 125 : }
5107 :
5108 46 : void OneofDescriptorProto::InitAsDefaultInstance() {
5109 46 : }
5110 :
5111 0 : OneofDescriptorProto::OneofDescriptorProto(const OneofDescriptorProto& from)
5112 : : ::google::protobuf::Message(),
5113 0 : _internal_metadata_(NULL) {
5114 0 : SharedCtor();
5115 0 : MergeFrom(from);
5116 : // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofDescriptorProto)
5117 0 : }
5118 :
5119 125 : void OneofDescriptorProto::SharedCtor() {
5120 : ::google::protobuf::internal::GetEmptyString();
5121 125 : _cached_size_ = 0;
5122 125 : name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5123 125 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
5124 125 : }
5125 :
5126 237 : OneofDescriptorProto::~OneofDescriptorProto() {
5127 : // @@protoc_insertion_point(destructor:google.protobuf.OneofDescriptorProto)
5128 79 : SharedDtor();
5129 158 : }
5130 :
5131 79 : void OneofDescriptorProto::SharedDtor() {
5132 79 : name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5133 : if (this != default_instance_) {
5134 : }
5135 79 : }
5136 :
5137 0 : void OneofDescriptorProto::SetCachedSize(int size) const {
5138 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5139 0 : _cached_size_ = size;
5140 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
5141 0 : }
5142 0 : const ::google::protobuf::Descriptor* OneofDescriptorProto::descriptor() {
5143 : protobuf_AssignDescriptorsOnce();
5144 0 : return OneofDescriptorProto_descriptor_;
5145 : }
5146 :
5147 1 : const OneofDescriptorProto& OneofDescriptorProto::default_instance() {
5148 1 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
5149 1 : return *default_instance_;
5150 : }
5151 :
5152 : OneofDescriptorProto* OneofDescriptorProto::default_instance_ = NULL;
5153 :
5154 0 : OneofDescriptorProto* OneofDescriptorProto::New(::google::protobuf::Arena* arena) const {
5155 0 : OneofDescriptorProto* n = new OneofDescriptorProto;
5156 0 : if (arena != NULL) {
5157 0 : arena->Own(n);
5158 : }
5159 0 : return n;
5160 : }
5161 :
5162 0 : void OneofDescriptorProto::Clear() {
5163 0 : if (has_name()) {
5164 0 : name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5165 : }
5166 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
5167 0 : if (_internal_metadata_.have_unknown_fields()) {
5168 0 : mutable_unknown_fields()->Clear();
5169 : }
5170 0 : }
5171 :
5172 24 : bool OneofDescriptorProto::MergePartialFromCodedStream(
5173 : ::google::protobuf::io::CodedInputStream* input) {
5174 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
5175 : ::google::protobuf::uint32 tag;
5176 : // @@protoc_insertion_point(parse_start:google.protobuf.OneofDescriptorProto)
5177 : for (;;) {
5178 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
5179 24 : tag = p.first;
5180 24 : if (!p.second) goto handle_unusual;
5181 24 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5182 : // optional string name = 1;
5183 : case 1: {
5184 24 : if (tag == 10) {
5185 48 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5186 : input, this->mutable_name()));
5187 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5188 48 : this->name().data(), this->name().length(),
5189 : ::google::protobuf::internal::WireFormat::PARSE,
5190 48 : "google.protobuf.OneofDescriptorProto.name");
5191 : } else {
5192 : goto handle_unusual;
5193 : }
5194 24 : if (input->ExpectAtEnd()) goto success;
5195 : break;
5196 : }
5197 :
5198 : default: {
5199 : handle_unusual:
5200 0 : if (tag == 0 ||
5201 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5202 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5203 : goto success;
5204 : }
5205 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
5206 : input, tag, mutable_unknown_fields()));
5207 : break;
5208 : }
5209 : }
5210 0 : }
5211 : success:
5212 : // @@protoc_insertion_point(parse_success:google.protobuf.OneofDescriptorProto)
5213 24 : return true;
5214 : failure:
5215 : // @@protoc_insertion_point(parse_failure:google.protobuf.OneofDescriptorProto)
5216 0 : return false;
5217 : #undef DO_
5218 : }
5219 :
5220 0 : void OneofDescriptorProto::SerializeWithCachedSizes(
5221 0 : ::google::protobuf::io::CodedOutputStream* output) const {
5222 : // @@protoc_insertion_point(serialize_start:google.protobuf.OneofDescriptorProto)
5223 : // optional string name = 1;
5224 0 : if (has_name()) {
5225 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5226 0 : this->name().data(), this->name().length(),
5227 : ::google::protobuf::internal::WireFormat::SERIALIZE,
5228 0 : "google.protobuf.OneofDescriptorProto.name");
5229 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5230 0 : 1, this->name(), output);
5231 : }
5232 :
5233 0 : if (_internal_metadata_.have_unknown_fields()) {
5234 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5235 0 : unknown_fields(), output);
5236 : }
5237 : // @@protoc_insertion_point(serialize_end:google.protobuf.OneofDescriptorProto)
5238 0 : }
5239 :
5240 25 : ::google::protobuf::uint8* OneofDescriptorProto::SerializeWithCachedSizesToArray(
5241 25 : ::google::protobuf::uint8* target) const {
5242 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofDescriptorProto)
5243 : // optional string name = 1;
5244 50 : if (has_name()) {
5245 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5246 50 : this->name().data(), this->name().length(),
5247 : ::google::protobuf::internal::WireFormat::SERIALIZE,
5248 50 : "google.protobuf.OneofDescriptorProto.name");
5249 : target =
5250 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5251 50 : 1, this->name(), target);
5252 : }
5253 :
5254 50 : if (_internal_metadata_.have_unknown_fields()) {
5255 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5256 0 : unknown_fields(), target);
5257 : }
5258 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofDescriptorProto)
5259 25 : return target;
5260 : }
5261 :
5262 50 : int OneofDescriptorProto::ByteSize() const {
5263 25 : int total_size = 0;
5264 :
5265 : // optional string name = 1;
5266 50 : if (has_name()) {
5267 : total_size += 1 +
5268 : ::google::protobuf::internal::WireFormatLite::StringSize(
5269 25 : this->name());
5270 : }
5271 :
5272 50 : if (_internal_metadata_.have_unknown_fields()) {
5273 : total_size +=
5274 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5275 0 : unknown_fields());
5276 : }
5277 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5278 25 : _cached_size_ = total_size;
5279 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
5280 25 : return total_size;
5281 : }
5282 :
5283 0 : void OneofDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
5284 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
5285 : const OneofDescriptorProto* source =
5286 : ::google::protobuf::internal::DynamicCastToGenerated<const OneofDescriptorProto>(
5287 0 : &from);
5288 0 : if (source == NULL) {
5289 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5290 : } else {
5291 0 : MergeFrom(*source);
5292 : }
5293 0 : }
5294 :
5295 0 : void OneofDescriptorProto::MergeFrom(const OneofDescriptorProto& from) {
5296 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
5297 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5298 0 : if (from.has_name()) {
5299 0 : set_has_name();
5300 0 : name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
5301 : }
5302 : }
5303 0 : if (from._internal_metadata_.have_unknown_fields()) {
5304 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5305 : }
5306 0 : }
5307 :
5308 0 : void OneofDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
5309 0 : if (&from == this) return;
5310 0 : Clear();
5311 0 : MergeFrom(from);
5312 : }
5313 :
5314 0 : void OneofDescriptorProto::CopyFrom(const OneofDescriptorProto& from) {
5315 0 : if (&from == this) return;
5316 0 : Clear();
5317 0 : MergeFrom(from);
5318 : }
5319 :
5320 0 : bool OneofDescriptorProto::IsInitialized() const {
5321 :
5322 0 : return true;
5323 : }
5324 :
5325 0 : void OneofDescriptorProto::Swap(OneofDescriptorProto* other) {
5326 0 : if (other == this) return;
5327 0 : InternalSwap(other);
5328 : }
5329 0 : void OneofDescriptorProto::InternalSwap(OneofDescriptorProto* other) {
5330 0 : name_.Swap(&other->name_);
5331 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
5332 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
5333 0 : std::swap(_cached_size_, other->_cached_size_);
5334 0 : }
5335 :
5336 0 : ::google::protobuf::Metadata OneofDescriptorProto::GetMetadata() const {
5337 : protobuf_AssignDescriptorsOnce();
5338 : ::google::protobuf::Metadata metadata;
5339 0 : metadata.descriptor = OneofDescriptorProto_descriptor_;
5340 0 : metadata.reflection = OneofDescriptorProto_reflection_;
5341 0 : return metadata;
5342 : }
5343 :
5344 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
5345 : // OneofDescriptorProto
5346 :
5347 : // optional string name = 1;
5348 : bool OneofDescriptorProto::has_name() const {
5349 : return (_has_bits_[0] & 0x00000001u) != 0;
5350 : }
5351 : void OneofDescriptorProto::set_has_name() {
5352 : _has_bits_[0] |= 0x00000001u;
5353 : }
5354 : void OneofDescriptorProto::clear_has_name() {
5355 : _has_bits_[0] &= ~0x00000001u;
5356 : }
5357 : void OneofDescriptorProto::clear_name() {
5358 : name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5359 : clear_has_name();
5360 : }
5361 : const ::std::string& OneofDescriptorProto::name() const {
5362 : // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.name)
5363 : return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5364 : }
5365 : void OneofDescriptorProto::set_name(const ::std::string& value) {
5366 : set_has_name();
5367 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5368 : // @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.name)
5369 : }
5370 : void OneofDescriptorProto::set_name(const char* value) {
5371 : set_has_name();
5372 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5373 : // @@protoc_insertion_point(field_set_char:google.protobuf.OneofDescriptorProto.name)
5374 : }
5375 : void OneofDescriptorProto::set_name(const char* value, size_t size) {
5376 : set_has_name();
5377 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5378 : ::std::string(reinterpret_cast<const char*>(value), size));
5379 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.OneofDescriptorProto.name)
5380 : }
5381 : ::std::string* OneofDescriptorProto::mutable_name() {
5382 : set_has_name();
5383 : // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.name)
5384 : return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5385 : }
5386 : ::std::string* OneofDescriptorProto::release_name() {
5387 : clear_has_name();
5388 : return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5389 : }
5390 : void OneofDescriptorProto::set_allocated_name(::std::string* name) {
5391 : if (name != NULL) {
5392 : set_has_name();
5393 : } else {
5394 : clear_has_name();
5395 : }
5396 : name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
5397 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.name)
5398 : }
5399 :
5400 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
5401 :
5402 : // ===================================================================
5403 :
5404 : #ifndef _MSC_VER
5405 : const int EnumDescriptorProto::kNameFieldNumber;
5406 : const int EnumDescriptorProto::kValueFieldNumber;
5407 : const int EnumDescriptorProto::kOptionsFieldNumber;
5408 : #endif // !_MSC_VER
5409 :
5410 487 : EnumDescriptorProto::EnumDescriptorProto()
5411 1461 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5412 487 : SharedCtor();
5413 : // @@protoc_insertion_point(constructor:google.protobuf.EnumDescriptorProto)
5414 487 : }
5415 :
5416 46 : void EnumDescriptorProto::InitAsDefaultInstance() {
5417 46 : options_ = const_cast< ::google::protobuf::EnumOptions*>(&::google::protobuf::EnumOptions::default_instance());
5418 46 : }
5419 :
5420 0 : EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from)
5421 : : ::google::protobuf::Message(),
5422 0 : _internal_metadata_(NULL) {
5423 0 : SharedCtor();
5424 0 : MergeFrom(from);
5425 : // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumDescriptorProto)
5426 0 : }
5427 :
5428 487 : void EnumDescriptorProto::SharedCtor() {
5429 : ::google::protobuf::internal::GetEmptyString();
5430 487 : _cached_size_ = 0;
5431 487 : name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5432 487 : options_ = NULL;
5433 487 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
5434 487 : }
5435 :
5436 1764 : EnumDescriptorProto::~EnumDescriptorProto() {
5437 : // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto)
5438 441 : SharedDtor();
5439 882 : }
5440 :
5441 441 : void EnumDescriptorProto::SharedDtor() {
5442 441 : name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5443 441 : if (this != default_instance_) {
5444 441 : delete options_;
5445 : }
5446 441 : }
5447 :
5448 0 : void EnumDescriptorProto::SetCachedSize(int size) const {
5449 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5450 0 : _cached_size_ = size;
5451 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
5452 0 : }
5453 0 : const ::google::protobuf::Descriptor* EnumDescriptorProto::descriptor() {
5454 : protobuf_AssignDescriptorsOnce();
5455 0 : return EnumDescriptorProto_descriptor_;
5456 : }
5457 :
5458 1 : const EnumDescriptorProto& EnumDescriptorProto::default_instance() {
5459 1 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
5460 1 : return *default_instance_;
5461 : }
5462 :
5463 : EnumDescriptorProto* EnumDescriptorProto::default_instance_ = NULL;
5464 :
5465 0 : EnumDescriptorProto* EnumDescriptorProto::New(::google::protobuf::Arena* arena) const {
5466 0 : EnumDescriptorProto* n = new EnumDescriptorProto;
5467 0 : if (arena != NULL) {
5468 0 : arena->Own(n);
5469 : }
5470 0 : return n;
5471 : }
5472 :
5473 0 : void EnumDescriptorProto::Clear() {
5474 0 : if (_has_bits_[0 / 32] & 5u) {
5475 0 : if (has_name()) {
5476 0 : name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5477 : }
5478 0 : if (has_options()) {
5479 0 : if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear();
5480 : }
5481 : }
5482 0 : value_.Clear();
5483 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
5484 0 : if (_internal_metadata_.have_unknown_fields()) {
5485 0 : mutable_unknown_fields()->Clear();
5486 : }
5487 0 : }
5488 :
5489 309 : bool EnumDescriptorProto::MergePartialFromCodedStream(
5490 : ::google::protobuf::io::CodedInputStream* input) {
5491 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
5492 : ::google::protobuf::uint32 tag;
5493 : // @@protoc_insertion_point(parse_start:google.protobuf.EnumDescriptorProto)
5494 : for (;;) {
5495 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
5496 618 : tag = p.first;
5497 618 : if (!p.second) goto handle_unusual;
5498 309 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5499 : // optional string name = 1;
5500 : case 1: {
5501 309 : if (tag == 10) {
5502 618 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5503 : input, this->mutable_name()));
5504 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5505 618 : this->name().data(), this->name().length(),
5506 : ::google::protobuf::internal::WireFormat::PARSE,
5507 618 : "google.protobuf.EnumDescriptorProto.name");
5508 : } else {
5509 : goto handle_unusual;
5510 : }
5511 309 : if (input->ExpectTag(18)) goto parse_value;
5512 : break;
5513 : }
5514 :
5515 : // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
5516 : case 2: {
5517 0 : if (tag == 18) {
5518 : parse_value:
5519 618 : DO_(input->IncrementRecursionDepth());
5520 : parse_loop_value:
5521 1684 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
5522 : input, add_value()));
5523 : } else {
5524 : goto handle_unusual;
5525 : }
5526 1684 : if (input->ExpectTag(18)) goto parse_loop_value;
5527 309 : input->UnsafeDecrementRecursionDepth();
5528 309 : if (input->ExpectTag(26)) goto parse_options;
5529 : break;
5530 : }
5531 :
5532 : // optional .google.protobuf.EnumOptions options = 3;
5533 : case 3: {
5534 0 : if (tag == 26) {
5535 : parse_options:
5536 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5537 : input, mutable_options()));
5538 : } else {
5539 : goto handle_unusual;
5540 : }
5541 0 : if (input->ExpectAtEnd()) goto success;
5542 : break;
5543 : }
5544 :
5545 : default: {
5546 : handle_unusual:
5547 309 : if (tag == 0 ||
5548 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5549 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5550 : goto success;
5551 : }
5552 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
5553 : input, tag, mutable_unknown_fields()));
5554 : break;
5555 : }
5556 : }
5557 309 : }
5558 : success:
5559 : // @@protoc_insertion_point(parse_success:google.protobuf.EnumDescriptorProto)
5560 309 : return true;
5561 : failure:
5562 : // @@protoc_insertion_point(parse_failure:google.protobuf.EnumDescriptorProto)
5563 0 : return false;
5564 : #undef DO_
5565 : }
5566 :
5567 0 : void EnumDescriptorProto::SerializeWithCachedSizes(
5568 0 : ::google::protobuf::io::CodedOutputStream* output) const {
5569 : // @@protoc_insertion_point(serialize_start:google.protobuf.EnumDescriptorProto)
5570 : // optional string name = 1;
5571 0 : if (has_name()) {
5572 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5573 0 : this->name().data(), this->name().length(),
5574 : ::google::protobuf::internal::WireFormat::SERIALIZE,
5575 0 : "google.protobuf.EnumDescriptorProto.name");
5576 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5577 0 : 1, this->name(), output);
5578 : }
5579 :
5580 : // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
5581 0 : for (unsigned int i = 0, n = this->value_size(); i < n; i++) {
5582 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5583 0 : 2, this->value(i), output);
5584 : }
5585 :
5586 : // optional .google.protobuf.EnumOptions options = 3;
5587 0 : if (has_options()) {
5588 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5589 0 : 3, *this->options_, output);
5590 : }
5591 :
5592 0 : if (_internal_metadata_.have_unknown_fields()) {
5593 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5594 0 : unknown_fields(), output);
5595 : }
5596 : // @@protoc_insertion_point(serialize_end:google.protobuf.EnumDescriptorProto)
5597 0 : }
5598 :
5599 55 : ::google::protobuf::uint8* EnumDescriptorProto::SerializeWithCachedSizesToArray(
5600 110 : ::google::protobuf::uint8* target) const {
5601 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescriptorProto)
5602 : // optional string name = 1;
5603 110 : if (has_name()) {
5604 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5605 110 : this->name().data(), this->name().length(),
5606 : ::google::protobuf::internal::WireFormat::SERIALIZE,
5607 110 : "google.protobuf.EnumDescriptorProto.name");
5608 : target =
5609 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5610 110 : 1, this->name(), target);
5611 : }
5612 :
5613 : // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
5614 274 : for (unsigned int i = 0, n = this->value_size(); i < n; i++) {
5615 : target = ::google::protobuf::internal::WireFormatLite::
5616 : WriteMessageNoVirtualToArray(
5617 492 : 2, this->value(i), target);
5618 : }
5619 :
5620 : // optional .google.protobuf.EnumOptions options = 3;
5621 110 : if (has_options()) {
5622 : target = ::google::protobuf::internal::WireFormatLite::
5623 : WriteMessageNoVirtualToArray(
5624 8 : 3, *this->options_, target);
5625 : }
5626 :
5627 110 : if (_internal_metadata_.have_unknown_fields()) {
5628 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5629 0 : unknown_fields(), target);
5630 : }
5631 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumDescriptorProto)
5632 55 : return target;
5633 : }
5634 :
5635 110 : int EnumDescriptorProto::ByteSize() const {
5636 55 : int total_size = 0;
5637 :
5638 55 : if (_has_bits_[0 / 32] & 5u) {
5639 : // optional string name = 1;
5640 110 : if (has_name()) {
5641 : total_size += 1 +
5642 : ::google::protobuf::internal::WireFormatLite::StringSize(
5643 55 : this->name());
5644 : }
5645 :
5646 : // optional .google.protobuf.EnumOptions options = 3;
5647 110 : if (has_options()) {
5648 : total_size += 1 +
5649 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5650 4 : *this->options_);
5651 : }
5652 :
5653 : }
5654 : // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
5655 55 : total_size += 1 * this->value_size();
5656 438 : for (int i = 0; i < this->value_size(); i++) {
5657 : total_size +=
5658 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5659 164 : this->value(i));
5660 : }
5661 :
5662 110 : if (_internal_metadata_.have_unknown_fields()) {
5663 : total_size +=
5664 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5665 0 : unknown_fields());
5666 : }
5667 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5668 55 : _cached_size_ = total_size;
5669 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
5670 55 : return total_size;
5671 : }
5672 :
5673 0 : void EnumDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
5674 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
5675 : const EnumDescriptorProto* source =
5676 : ::google::protobuf::internal::DynamicCastToGenerated<const EnumDescriptorProto>(
5677 0 : &from);
5678 0 : if (source == NULL) {
5679 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5680 : } else {
5681 0 : MergeFrom(*source);
5682 : }
5683 0 : }
5684 :
5685 0 : void EnumDescriptorProto::MergeFrom(const EnumDescriptorProto& from) {
5686 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
5687 0 : value_.MergeFrom(from.value_);
5688 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5689 0 : if (from.has_name()) {
5690 0 : set_has_name();
5691 0 : name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
5692 : }
5693 0 : if (from.has_options()) {
5694 0 : mutable_options()->::google::protobuf::EnumOptions::MergeFrom(from.options());
5695 : }
5696 : }
5697 0 : if (from._internal_metadata_.have_unknown_fields()) {
5698 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5699 : }
5700 0 : }
5701 :
5702 0 : void EnumDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
5703 0 : if (&from == this) return;
5704 0 : Clear();
5705 0 : MergeFrom(from);
5706 : }
5707 :
5708 0 : void EnumDescriptorProto::CopyFrom(const EnumDescriptorProto& from) {
5709 0 : if (&from == this) return;
5710 0 : Clear();
5711 0 : MergeFrom(from);
5712 : }
5713 :
5714 618 : bool EnumDescriptorProto::IsInitialized() const {
5715 :
5716 618 : if (!::google::protobuf::internal::AllAreInitialized(this->value())) return false;
5717 618 : if (has_options()) {
5718 0 : if (!this->options_->IsInitialized()) return false;
5719 : }
5720 : return true;
5721 : }
5722 :
5723 0 : void EnumDescriptorProto::Swap(EnumDescriptorProto* other) {
5724 0 : if (other == this) return;
5725 0 : InternalSwap(other);
5726 : }
5727 0 : void EnumDescriptorProto::InternalSwap(EnumDescriptorProto* other) {
5728 0 : name_.Swap(&other->name_);
5729 0 : value_.UnsafeArenaSwap(&other->value_);
5730 0 : std::swap(options_, other->options_);
5731 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
5732 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
5733 0 : std::swap(_cached_size_, other->_cached_size_);
5734 0 : }
5735 :
5736 0 : ::google::protobuf::Metadata EnumDescriptorProto::GetMetadata() const {
5737 : protobuf_AssignDescriptorsOnce();
5738 : ::google::protobuf::Metadata metadata;
5739 0 : metadata.descriptor = EnumDescriptorProto_descriptor_;
5740 0 : metadata.reflection = EnumDescriptorProto_reflection_;
5741 0 : return metadata;
5742 : }
5743 :
5744 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
5745 : // EnumDescriptorProto
5746 :
5747 : // optional string name = 1;
5748 : bool EnumDescriptorProto::has_name() const {
5749 : return (_has_bits_[0] & 0x00000001u) != 0;
5750 : }
5751 : void EnumDescriptorProto::set_has_name() {
5752 : _has_bits_[0] |= 0x00000001u;
5753 : }
5754 : void EnumDescriptorProto::clear_has_name() {
5755 : _has_bits_[0] &= ~0x00000001u;
5756 : }
5757 : void EnumDescriptorProto::clear_name() {
5758 : name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5759 : clear_has_name();
5760 : }
5761 : const ::std::string& EnumDescriptorProto::name() const {
5762 : // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name)
5763 : return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5764 : }
5765 : void EnumDescriptorProto::set_name(const ::std::string& value) {
5766 : set_has_name();
5767 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5768 : // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name)
5769 : }
5770 : void EnumDescriptorProto::set_name(const char* value) {
5771 : set_has_name();
5772 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5773 : // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto.name)
5774 : }
5775 : void EnumDescriptorProto::set_name(const char* value, size_t size) {
5776 : set_has_name();
5777 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5778 : ::std::string(reinterpret_cast<const char*>(value), size));
5779 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorProto.name)
5780 : }
5781 : ::std::string* EnumDescriptorProto::mutable_name() {
5782 : set_has_name();
5783 : // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.name)
5784 : return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5785 : }
5786 : ::std::string* EnumDescriptorProto::release_name() {
5787 : clear_has_name();
5788 : return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5789 : }
5790 : void EnumDescriptorProto::set_allocated_name(::std::string* name) {
5791 : if (name != NULL) {
5792 : set_has_name();
5793 : } else {
5794 : clear_has_name();
5795 : }
5796 : name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
5797 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.name)
5798 : }
5799 :
5800 : // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
5801 : int EnumDescriptorProto::value_size() const {
5802 : return value_.size();
5803 : }
5804 : void EnumDescriptorProto::clear_value() {
5805 : value_.Clear();
5806 : }
5807 : const ::google::protobuf::EnumValueDescriptorProto& EnumDescriptorProto::value(int index) const {
5808 : // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.value)
5809 : return value_.Get(index);
5810 : }
5811 : ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::mutable_value(int index) {
5812 : // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.value)
5813 : return value_.Mutable(index);
5814 : }
5815 : ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::add_value() {
5816 : // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.value)
5817 : return value_.Add();
5818 : }
5819 : ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >*
5820 : EnumDescriptorProto::mutable_value() {
5821 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.value)
5822 : return &value_;
5823 : }
5824 : const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >&
5825 : EnumDescriptorProto::value() const {
5826 : // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.value)
5827 : return value_;
5828 : }
5829 :
5830 : // optional .google.protobuf.EnumOptions options = 3;
5831 : bool EnumDescriptorProto::has_options() const {
5832 : return (_has_bits_[0] & 0x00000004u) != 0;
5833 : }
5834 : void EnumDescriptorProto::set_has_options() {
5835 : _has_bits_[0] |= 0x00000004u;
5836 : }
5837 : void EnumDescriptorProto::clear_has_options() {
5838 : _has_bits_[0] &= ~0x00000004u;
5839 : }
5840 : void EnumDescriptorProto::clear_options() {
5841 : if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear();
5842 : clear_has_options();
5843 : }
5844 : const ::google::protobuf::EnumOptions& EnumDescriptorProto::options() const {
5845 : // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.options)
5846 : return options_ != NULL ? *options_ : *default_instance_->options_;
5847 : }
5848 : ::google::protobuf::EnumOptions* EnumDescriptorProto::mutable_options() {
5849 : set_has_options();
5850 : if (options_ == NULL) {
5851 : options_ = new ::google::protobuf::EnumOptions;
5852 : }
5853 : // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.options)
5854 : return options_;
5855 : }
5856 : ::google::protobuf::EnumOptions* EnumDescriptorProto::release_options() {
5857 : clear_has_options();
5858 : ::google::protobuf::EnumOptions* temp = options_;
5859 : options_ = NULL;
5860 : return temp;
5861 : }
5862 : void EnumDescriptorProto::set_allocated_options(::google::protobuf::EnumOptions* options) {
5863 : delete options_;
5864 : options_ = options;
5865 : if (options) {
5866 : set_has_options();
5867 : } else {
5868 : clear_has_options();
5869 : }
5870 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.options)
5871 : }
5872 :
5873 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
5874 :
5875 : // ===================================================================
5876 :
5877 : #ifndef _MSC_VER
5878 : const int EnumValueDescriptorProto::kNameFieldNumber;
5879 : const int EnumValueDescriptorProto::kNumberFieldNumber;
5880 : const int EnumValueDescriptorProto::kOptionsFieldNumber;
5881 : #endif // !_MSC_VER
5882 :
5883 2153 : EnumValueDescriptorProto::EnumValueDescriptorProto()
5884 4306 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5885 2153 : SharedCtor();
5886 : // @@protoc_insertion_point(constructor:google.protobuf.EnumValueDescriptorProto)
5887 2153 : }
5888 :
5889 46 : void EnumValueDescriptorProto::InitAsDefaultInstance() {
5890 46 : options_ = const_cast< ::google::protobuf::EnumValueOptions*>(&::google::protobuf::EnumValueOptions::default_instance());
5891 46 : }
5892 :
5893 0 : EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProto& from)
5894 : : ::google::protobuf::Message(),
5895 0 : _internal_metadata_(NULL) {
5896 0 : SharedCtor();
5897 0 : MergeFrom(from);
5898 : // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueDescriptorProto)
5899 0 : }
5900 :
5901 2153 : void EnumValueDescriptorProto::SharedCtor() {
5902 : ::google::protobuf::internal::GetEmptyString();
5903 2153 : _cached_size_ = 0;
5904 2153 : name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5905 2153 : number_ = 0;
5906 2153 : options_ = NULL;
5907 2153 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
5908 2153 : }
5909 :
5910 6321 : EnumValueDescriptorProto::~EnumValueDescriptorProto() {
5911 : // @@protoc_insertion_point(destructor:google.protobuf.EnumValueDescriptorProto)
5912 2107 : SharedDtor();
5913 4214 : }
5914 :
5915 2107 : void EnumValueDescriptorProto::SharedDtor() {
5916 2107 : name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5917 2107 : if (this != default_instance_) {
5918 2107 : delete options_;
5919 : }
5920 2107 : }
5921 :
5922 0 : void EnumValueDescriptorProto::SetCachedSize(int size) const {
5923 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5924 0 : _cached_size_ = size;
5925 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
5926 0 : }
5927 0 : const ::google::protobuf::Descriptor* EnumValueDescriptorProto::descriptor() {
5928 : protobuf_AssignDescriptorsOnce();
5929 0 : return EnumValueDescriptorProto_descriptor_;
5930 : }
5931 :
5932 1 : const EnumValueDescriptorProto& EnumValueDescriptorProto::default_instance() {
5933 1 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
5934 1 : return *default_instance_;
5935 : }
5936 :
5937 : EnumValueDescriptorProto* EnumValueDescriptorProto::default_instance_ = NULL;
5938 :
5939 0 : EnumValueDescriptorProto* EnumValueDescriptorProto::New(::google::protobuf::Arena* arena) const {
5940 0 : EnumValueDescriptorProto* n = new EnumValueDescriptorProto;
5941 0 : if (arena != NULL) {
5942 0 : arena->Own(n);
5943 : }
5944 0 : return n;
5945 : }
5946 :
5947 0 : void EnumValueDescriptorProto::Clear() {
5948 0 : if (_has_bits_[0 / 32] & 7u) {
5949 0 : if (has_name()) {
5950 0 : name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5951 : }
5952 0 : number_ = 0;
5953 0 : if (has_options()) {
5954 0 : if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear();
5955 : }
5956 : }
5957 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
5958 0 : if (_internal_metadata_.have_unknown_fields()) {
5959 0 : mutable_unknown_fields()->Clear();
5960 : }
5961 0 : }
5962 :
5963 1684 : bool EnumValueDescriptorProto::MergePartialFromCodedStream(
5964 : ::google::protobuf::io::CodedInputStream* input) {
5965 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
5966 : ::google::protobuf::uint32 tag;
5967 : // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueDescriptorProto)
5968 : for (;;) {
5969 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
5970 3368 : tag = p.first;
5971 3368 : if (!p.second) goto handle_unusual;
5972 1684 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5973 : // optional string name = 1;
5974 : case 1: {
5975 1684 : if (tag == 10) {
5976 3368 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5977 : input, this->mutable_name()));
5978 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5979 3368 : this->name().data(), this->name().length(),
5980 : ::google::protobuf::internal::WireFormat::PARSE,
5981 3368 : "google.protobuf.EnumValueDescriptorProto.name");
5982 : } else {
5983 : goto handle_unusual;
5984 : }
5985 1684 : if (input->ExpectTag(16)) goto parse_number;
5986 : break;
5987 : }
5988 :
5989 : // optional int32 number = 2;
5990 : case 2: {
5991 0 : if (tag == 16) {
5992 : parse_number:
5993 3368 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5994 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
5995 : input, &number_)));
5996 1684 : set_has_number();
5997 : } else {
5998 : goto handle_unusual;
5999 : }
6000 1684 : if (input->ExpectTag(26)) goto parse_options;
6001 : break;
6002 : }
6003 :
6004 : // optional .google.protobuf.EnumValueOptions options = 3;
6005 : case 3: {
6006 0 : if (tag == 26) {
6007 : parse_options:
6008 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6009 : input, mutable_options()));
6010 : } else {
6011 : goto handle_unusual;
6012 : }
6013 0 : if (input->ExpectAtEnd()) goto success;
6014 : break;
6015 : }
6016 :
6017 : default: {
6018 : handle_unusual:
6019 1684 : if (tag == 0 ||
6020 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6021 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6022 : goto success;
6023 : }
6024 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
6025 : input, tag, mutable_unknown_fields()));
6026 : break;
6027 : }
6028 : }
6029 1684 : }
6030 : success:
6031 : // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueDescriptorProto)
6032 1684 : return true;
6033 : failure:
6034 : // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueDescriptorProto)
6035 0 : return false;
6036 : #undef DO_
6037 : }
6038 :
6039 0 : void EnumValueDescriptorProto::SerializeWithCachedSizes(
6040 0 : ::google::protobuf::io::CodedOutputStream* output) const {
6041 : // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueDescriptorProto)
6042 : // optional string name = 1;
6043 0 : if (has_name()) {
6044 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6045 0 : this->name().data(), this->name().length(),
6046 : ::google::protobuf::internal::WireFormat::SERIALIZE,
6047 0 : "google.protobuf.EnumValueDescriptorProto.name");
6048 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6049 0 : 1, this->name(), output);
6050 : }
6051 :
6052 : // optional int32 number = 2;
6053 0 : if (has_number()) {
6054 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->number(), output);
6055 : }
6056 :
6057 : // optional .google.protobuf.EnumValueOptions options = 3;
6058 0 : if (has_options()) {
6059 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6060 0 : 3, *this->options_, output);
6061 : }
6062 :
6063 0 : if (_internal_metadata_.have_unknown_fields()) {
6064 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6065 0 : unknown_fields(), output);
6066 : }
6067 : // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueDescriptorProto)
6068 0 : }
6069 :
6070 164 : ::google::protobuf::uint8* EnumValueDescriptorProto::SerializeWithCachedSizesToArray(
6071 656 : ::google::protobuf::uint8* target) const {
6072 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueDescriptorProto)
6073 : // optional string name = 1;
6074 328 : if (has_name()) {
6075 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6076 328 : this->name().data(), this->name().length(),
6077 : ::google::protobuf::internal::WireFormat::SERIALIZE,
6078 328 : "google.protobuf.EnumValueDescriptorProto.name");
6079 : target =
6080 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6081 328 : 1, this->name(), target);
6082 : }
6083 :
6084 : // optional int32 number = 2;
6085 328 : if (has_number()) {
6086 328 : target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->number(), target);
6087 : }
6088 :
6089 : // optional .google.protobuf.EnumValueOptions options = 3;
6090 328 : if (has_options()) {
6091 : target = ::google::protobuf::internal::WireFormatLite::
6092 : WriteMessageNoVirtualToArray(
6093 6 : 3, *this->options_, target);
6094 : }
6095 :
6096 328 : if (_internal_metadata_.have_unknown_fields()) {
6097 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6098 0 : unknown_fields(), target);
6099 : }
6100 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueDescriptorProto)
6101 164 : return target;
6102 : }
6103 :
6104 656 : int EnumValueDescriptorProto::ByteSize() const {
6105 164 : int total_size = 0;
6106 :
6107 164 : if (_has_bits_[0 / 32] & 7u) {
6108 : // optional string name = 1;
6109 328 : if (has_name()) {
6110 : total_size += 1 +
6111 : ::google::protobuf::internal::WireFormatLite::StringSize(
6112 164 : this->name());
6113 : }
6114 :
6115 : // optional int32 number = 2;
6116 328 : if (has_number()) {
6117 : total_size += 1 +
6118 : ::google::protobuf::internal::WireFormatLite::Int32Size(
6119 328 : this->number());
6120 : }
6121 :
6122 : // optional .google.protobuf.EnumValueOptions options = 3;
6123 328 : if (has_options()) {
6124 : total_size += 1 +
6125 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6126 3 : *this->options_);
6127 : }
6128 :
6129 : }
6130 328 : if (_internal_metadata_.have_unknown_fields()) {
6131 : total_size +=
6132 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6133 0 : unknown_fields());
6134 : }
6135 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6136 164 : _cached_size_ = total_size;
6137 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
6138 164 : return total_size;
6139 : }
6140 :
6141 0 : void EnumValueDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
6142 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
6143 : const EnumValueDescriptorProto* source =
6144 : ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueDescriptorProto>(
6145 0 : &from);
6146 0 : if (source == NULL) {
6147 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6148 : } else {
6149 0 : MergeFrom(*source);
6150 : }
6151 0 : }
6152 :
6153 0 : void EnumValueDescriptorProto::MergeFrom(const EnumValueDescriptorProto& from) {
6154 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
6155 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6156 0 : if (from.has_name()) {
6157 0 : set_has_name();
6158 0 : name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
6159 : }
6160 0 : if (from.has_number()) {
6161 0 : set_number(from.number());
6162 : }
6163 0 : if (from.has_options()) {
6164 0 : mutable_options()->::google::protobuf::EnumValueOptions::MergeFrom(from.options());
6165 : }
6166 : }
6167 0 : if (from._internal_metadata_.have_unknown_fields()) {
6168 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6169 : }
6170 0 : }
6171 :
6172 0 : void EnumValueDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
6173 0 : if (&from == this) return;
6174 0 : Clear();
6175 0 : MergeFrom(from);
6176 : }
6177 :
6178 0 : void EnumValueDescriptorProto::CopyFrom(const EnumValueDescriptorProto& from) {
6179 0 : if (&from == this) return;
6180 0 : Clear();
6181 0 : MergeFrom(from);
6182 : }
6183 :
6184 1684 : bool EnumValueDescriptorProto::IsInitialized() const {
6185 :
6186 3368 : if (has_options()) {
6187 0 : if (!this->options_->IsInitialized()) return false;
6188 : }
6189 : return true;
6190 : }
6191 :
6192 0 : void EnumValueDescriptorProto::Swap(EnumValueDescriptorProto* other) {
6193 0 : if (other == this) return;
6194 0 : InternalSwap(other);
6195 : }
6196 0 : void EnumValueDescriptorProto::InternalSwap(EnumValueDescriptorProto* other) {
6197 0 : name_.Swap(&other->name_);
6198 0 : std::swap(number_, other->number_);
6199 0 : std::swap(options_, other->options_);
6200 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
6201 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
6202 0 : std::swap(_cached_size_, other->_cached_size_);
6203 0 : }
6204 :
6205 0 : ::google::protobuf::Metadata EnumValueDescriptorProto::GetMetadata() const {
6206 : protobuf_AssignDescriptorsOnce();
6207 : ::google::protobuf::Metadata metadata;
6208 0 : metadata.descriptor = EnumValueDescriptorProto_descriptor_;
6209 0 : metadata.reflection = EnumValueDescriptorProto_reflection_;
6210 0 : return metadata;
6211 : }
6212 :
6213 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
6214 : // EnumValueDescriptorProto
6215 :
6216 : // optional string name = 1;
6217 : bool EnumValueDescriptorProto::has_name() const {
6218 : return (_has_bits_[0] & 0x00000001u) != 0;
6219 : }
6220 : void EnumValueDescriptorProto::set_has_name() {
6221 : _has_bits_[0] |= 0x00000001u;
6222 : }
6223 : void EnumValueDescriptorProto::clear_has_name() {
6224 : _has_bits_[0] &= ~0x00000001u;
6225 : }
6226 : void EnumValueDescriptorProto::clear_name() {
6227 : name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6228 : clear_has_name();
6229 : }
6230 : const ::std::string& EnumValueDescriptorProto::name() const {
6231 : // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.name)
6232 : return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6233 : }
6234 : void EnumValueDescriptorProto::set_name(const ::std::string& value) {
6235 : set_has_name();
6236 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6237 : // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.name)
6238 : }
6239 : void EnumValueDescriptorProto::set_name(const char* value) {
6240 : set_has_name();
6241 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6242 : // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValueDescriptorProto.name)
6243 : }
6244 : void EnumValueDescriptorProto::set_name(const char* value, size_t size) {
6245 : set_has_name();
6246 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6247 : ::std::string(reinterpret_cast<const char*>(value), size));
6248 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValueDescriptorProto.name)
6249 : }
6250 : ::std::string* EnumValueDescriptorProto::mutable_name() {
6251 : set_has_name();
6252 : // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.name)
6253 : return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6254 : }
6255 : ::std::string* EnumValueDescriptorProto::release_name() {
6256 : clear_has_name();
6257 : return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6258 : }
6259 : void EnumValueDescriptorProto::set_allocated_name(::std::string* name) {
6260 : if (name != NULL) {
6261 : set_has_name();
6262 : } else {
6263 : clear_has_name();
6264 : }
6265 : name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
6266 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.name)
6267 : }
6268 :
6269 : // optional int32 number = 2;
6270 : bool EnumValueDescriptorProto::has_number() const {
6271 : return (_has_bits_[0] & 0x00000002u) != 0;
6272 : }
6273 : void EnumValueDescriptorProto::set_has_number() {
6274 : _has_bits_[0] |= 0x00000002u;
6275 : }
6276 : void EnumValueDescriptorProto::clear_has_number() {
6277 : _has_bits_[0] &= ~0x00000002u;
6278 : }
6279 : void EnumValueDescriptorProto::clear_number() {
6280 : number_ = 0;
6281 : clear_has_number();
6282 : }
6283 : ::google::protobuf::int32 EnumValueDescriptorProto::number() const {
6284 : // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.number)
6285 : return number_;
6286 : }
6287 : void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) {
6288 : set_has_number();
6289 : number_ = value;
6290 : // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.number)
6291 : }
6292 :
6293 : // optional .google.protobuf.EnumValueOptions options = 3;
6294 : bool EnumValueDescriptorProto::has_options() const {
6295 : return (_has_bits_[0] & 0x00000004u) != 0;
6296 : }
6297 : void EnumValueDescriptorProto::set_has_options() {
6298 : _has_bits_[0] |= 0x00000004u;
6299 : }
6300 : void EnumValueDescriptorProto::clear_has_options() {
6301 : _has_bits_[0] &= ~0x00000004u;
6302 : }
6303 : void EnumValueDescriptorProto::clear_options() {
6304 : if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear();
6305 : clear_has_options();
6306 : }
6307 : const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::options() const {
6308 : // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.options)
6309 : return options_ != NULL ? *options_ : *default_instance_->options_;
6310 : }
6311 : ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::mutable_options() {
6312 : set_has_options();
6313 : if (options_ == NULL) {
6314 : options_ = new ::google::protobuf::EnumValueOptions;
6315 : }
6316 : // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.options)
6317 : return options_;
6318 : }
6319 : ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::release_options() {
6320 : clear_has_options();
6321 : ::google::protobuf::EnumValueOptions* temp = options_;
6322 : options_ = NULL;
6323 : return temp;
6324 : }
6325 : void EnumValueDescriptorProto::set_allocated_options(::google::protobuf::EnumValueOptions* options) {
6326 : delete options_;
6327 : options_ = options;
6328 : if (options) {
6329 : set_has_options();
6330 : } else {
6331 : clear_has_options();
6332 : }
6333 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.options)
6334 : }
6335 :
6336 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
6337 :
6338 : // ===================================================================
6339 :
6340 : #ifndef _MSC_VER
6341 : const int ServiceDescriptorProto::kNameFieldNumber;
6342 : const int ServiceDescriptorProto::kMethodFieldNumber;
6343 : const int ServiceDescriptorProto::kOptionsFieldNumber;
6344 : #endif // !_MSC_VER
6345 :
6346 141 : ServiceDescriptorProto::ServiceDescriptorProto()
6347 423 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6348 141 : SharedCtor();
6349 : // @@protoc_insertion_point(constructor:google.protobuf.ServiceDescriptorProto)
6350 141 : }
6351 :
6352 46 : void ServiceDescriptorProto::InitAsDefaultInstance() {
6353 46 : options_ = const_cast< ::google::protobuf::ServiceOptions*>(&::google::protobuf::ServiceOptions::default_instance());
6354 46 : }
6355 :
6356 0 : ServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& from)
6357 : : ::google::protobuf::Message(),
6358 0 : _internal_metadata_(NULL) {
6359 0 : SharedCtor();
6360 0 : MergeFrom(from);
6361 : // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceDescriptorProto)
6362 0 : }
6363 :
6364 141 : void ServiceDescriptorProto::SharedCtor() {
6365 : ::google::protobuf::internal::GetEmptyString();
6366 141 : _cached_size_ = 0;
6367 141 : name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6368 141 : options_ = NULL;
6369 141 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
6370 141 : }
6371 :
6372 380 : ServiceDescriptorProto::~ServiceDescriptorProto() {
6373 : // @@protoc_insertion_point(destructor:google.protobuf.ServiceDescriptorProto)
6374 95 : SharedDtor();
6375 190 : }
6376 :
6377 95 : void ServiceDescriptorProto::SharedDtor() {
6378 95 : name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6379 95 : if (this != default_instance_) {
6380 95 : delete options_;
6381 : }
6382 95 : }
6383 :
6384 0 : void ServiceDescriptorProto::SetCachedSize(int size) const {
6385 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6386 0 : _cached_size_ = size;
6387 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
6388 0 : }
6389 0 : const ::google::protobuf::Descriptor* ServiceDescriptorProto::descriptor() {
6390 : protobuf_AssignDescriptorsOnce();
6391 0 : return ServiceDescriptorProto_descriptor_;
6392 : }
6393 :
6394 1 : const ServiceDescriptorProto& ServiceDescriptorProto::default_instance() {
6395 1 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
6396 1 : return *default_instance_;
6397 : }
6398 :
6399 : ServiceDescriptorProto* ServiceDescriptorProto::default_instance_ = NULL;
6400 :
6401 0 : ServiceDescriptorProto* ServiceDescriptorProto::New(::google::protobuf::Arena* arena) const {
6402 0 : ServiceDescriptorProto* n = new ServiceDescriptorProto;
6403 0 : if (arena != NULL) {
6404 0 : arena->Own(n);
6405 : }
6406 0 : return n;
6407 : }
6408 :
6409 0 : void ServiceDescriptorProto::Clear() {
6410 0 : if (_has_bits_[0 / 32] & 5u) {
6411 0 : if (has_name()) {
6412 0 : name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6413 : }
6414 0 : if (has_options()) {
6415 0 : if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear();
6416 : }
6417 : }
6418 0 : method_.Clear();
6419 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
6420 0 : if (_internal_metadata_.have_unknown_fields()) {
6421 0 : mutable_unknown_fields()->Clear();
6422 : }
6423 0 : }
6424 :
6425 29 : bool ServiceDescriptorProto::MergePartialFromCodedStream(
6426 : ::google::protobuf::io::CodedInputStream* input) {
6427 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
6428 : ::google::protobuf::uint32 tag;
6429 : // @@protoc_insertion_point(parse_start:google.protobuf.ServiceDescriptorProto)
6430 : for (;;) {
6431 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
6432 58 : tag = p.first;
6433 58 : if (!p.second) goto handle_unusual;
6434 29 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6435 : // optional string name = 1;
6436 : case 1: {
6437 29 : if (tag == 10) {
6438 58 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6439 : input, this->mutable_name()));
6440 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6441 58 : this->name().data(), this->name().length(),
6442 : ::google::protobuf::internal::WireFormat::PARSE,
6443 58 : "google.protobuf.ServiceDescriptorProto.name");
6444 : } else {
6445 : goto handle_unusual;
6446 : }
6447 29 : if (input->ExpectTag(18)) goto parse_method;
6448 : break;
6449 : }
6450 :
6451 : // repeated .google.protobuf.MethodDescriptorProto method = 2;
6452 : case 2: {
6453 0 : if (tag == 18) {
6454 : parse_method:
6455 58 : DO_(input->IncrementRecursionDepth());
6456 : parse_loop_method:
6457 55 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
6458 : input, add_method()));
6459 : } else {
6460 : goto handle_unusual;
6461 : }
6462 55 : if (input->ExpectTag(18)) goto parse_loop_method;
6463 29 : input->UnsafeDecrementRecursionDepth();
6464 29 : if (input->ExpectTag(26)) goto parse_options;
6465 : break;
6466 : }
6467 :
6468 : // optional .google.protobuf.ServiceOptions options = 3;
6469 : case 3: {
6470 0 : if (tag == 26) {
6471 : parse_options:
6472 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6473 : input, mutable_options()));
6474 : } else {
6475 : goto handle_unusual;
6476 : }
6477 0 : if (input->ExpectAtEnd()) goto success;
6478 : break;
6479 : }
6480 :
6481 : default: {
6482 : handle_unusual:
6483 29 : if (tag == 0 ||
6484 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6485 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6486 : goto success;
6487 : }
6488 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
6489 : input, tag, mutable_unknown_fields()));
6490 : break;
6491 : }
6492 : }
6493 29 : }
6494 : success:
6495 : // @@protoc_insertion_point(parse_success:google.protobuf.ServiceDescriptorProto)
6496 29 : return true;
6497 : failure:
6498 : // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceDescriptorProto)
6499 0 : return false;
6500 : #undef DO_
6501 : }
6502 :
6503 0 : void ServiceDescriptorProto::SerializeWithCachedSizes(
6504 0 : ::google::protobuf::io::CodedOutputStream* output) const {
6505 : // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceDescriptorProto)
6506 : // optional string name = 1;
6507 0 : if (has_name()) {
6508 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6509 0 : this->name().data(), this->name().length(),
6510 : ::google::protobuf::internal::WireFormat::SERIALIZE,
6511 0 : "google.protobuf.ServiceDescriptorProto.name");
6512 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6513 0 : 1, this->name(), output);
6514 : }
6515 :
6516 : // repeated .google.protobuf.MethodDescriptorProto method = 2;
6517 0 : for (unsigned int i = 0, n = this->method_size(); i < n; i++) {
6518 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6519 0 : 2, this->method(i), output);
6520 : }
6521 :
6522 : // optional .google.protobuf.ServiceOptions options = 3;
6523 0 : if (has_options()) {
6524 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6525 0 : 3, *this->options_, output);
6526 : }
6527 :
6528 0 : if (_internal_metadata_.have_unknown_fields()) {
6529 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6530 0 : unknown_fields(), output);
6531 : }
6532 : // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceDescriptorProto)
6533 0 : }
6534 :
6535 32 : ::google::protobuf::uint8* ServiceDescriptorProto::SerializeWithCachedSizesToArray(
6536 64 : ::google::protobuf::uint8* target) const {
6537 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceDescriptorProto)
6538 : // optional string name = 1;
6539 64 : if (has_name()) {
6540 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6541 64 : this->name().data(), this->name().length(),
6542 : ::google::protobuf::internal::WireFormat::SERIALIZE,
6543 64 : "google.protobuf.ServiceDescriptorProto.name");
6544 : target =
6545 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6546 64 : 1, this->name(), target);
6547 : }
6548 :
6549 : // repeated .google.protobuf.MethodDescriptorProto method = 2;
6550 124 : for (unsigned int i = 0, n = this->method_size(); i < n; i++) {
6551 : target = ::google::protobuf::internal::WireFormatLite::
6552 : WriteMessageNoVirtualToArray(
6553 180 : 2, this->method(i), target);
6554 : }
6555 :
6556 : // optional .google.protobuf.ServiceOptions options = 3;
6557 64 : if (has_options()) {
6558 : target = ::google::protobuf::internal::WireFormatLite::
6559 : WriteMessageNoVirtualToArray(
6560 4 : 3, *this->options_, target);
6561 : }
6562 :
6563 64 : if (_internal_metadata_.have_unknown_fields()) {
6564 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6565 0 : unknown_fields(), target);
6566 : }
6567 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceDescriptorProto)
6568 32 : return target;
6569 : }
6570 :
6571 64 : int ServiceDescriptorProto::ByteSize() const {
6572 32 : int total_size = 0;
6573 :
6574 32 : if (_has_bits_[0 / 32] & 5u) {
6575 : // optional string name = 1;
6576 64 : if (has_name()) {
6577 : total_size += 1 +
6578 : ::google::protobuf::internal::WireFormatLite::StringSize(
6579 32 : this->name());
6580 : }
6581 :
6582 : // optional .google.protobuf.ServiceOptions options = 3;
6583 64 : if (has_options()) {
6584 : total_size += 1 +
6585 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6586 2 : *this->options_);
6587 : }
6588 :
6589 : }
6590 : // repeated .google.protobuf.MethodDescriptorProto method = 2;
6591 32 : total_size += 1 * this->method_size();
6592 184 : for (int i = 0; i < this->method_size(); i++) {
6593 : total_size +=
6594 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6595 60 : this->method(i));
6596 : }
6597 :
6598 64 : if (_internal_metadata_.have_unknown_fields()) {
6599 : total_size +=
6600 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6601 0 : unknown_fields());
6602 : }
6603 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6604 32 : _cached_size_ = total_size;
6605 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
6606 32 : return total_size;
6607 : }
6608 :
6609 0 : void ServiceDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
6610 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
6611 : const ServiceDescriptorProto* source =
6612 : ::google::protobuf::internal::DynamicCastToGenerated<const ServiceDescriptorProto>(
6613 0 : &from);
6614 0 : if (source == NULL) {
6615 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6616 : } else {
6617 0 : MergeFrom(*source);
6618 : }
6619 0 : }
6620 :
6621 0 : void ServiceDescriptorProto::MergeFrom(const ServiceDescriptorProto& from) {
6622 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
6623 0 : method_.MergeFrom(from.method_);
6624 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6625 0 : if (from.has_name()) {
6626 0 : set_has_name();
6627 0 : name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
6628 : }
6629 0 : if (from.has_options()) {
6630 0 : mutable_options()->::google::protobuf::ServiceOptions::MergeFrom(from.options());
6631 : }
6632 : }
6633 0 : if (from._internal_metadata_.have_unknown_fields()) {
6634 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6635 : }
6636 0 : }
6637 :
6638 0 : void ServiceDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
6639 0 : if (&from == this) return;
6640 0 : Clear();
6641 0 : MergeFrom(from);
6642 : }
6643 :
6644 0 : void ServiceDescriptorProto::CopyFrom(const ServiceDescriptorProto& from) {
6645 0 : if (&from == this) return;
6646 0 : Clear();
6647 0 : MergeFrom(from);
6648 : }
6649 :
6650 58 : bool ServiceDescriptorProto::IsInitialized() const {
6651 :
6652 58 : if (!::google::protobuf::internal::AllAreInitialized(this->method())) return false;
6653 58 : if (has_options()) {
6654 0 : if (!this->options_->IsInitialized()) return false;
6655 : }
6656 : return true;
6657 : }
6658 :
6659 0 : void ServiceDescriptorProto::Swap(ServiceDescriptorProto* other) {
6660 0 : if (other == this) return;
6661 0 : InternalSwap(other);
6662 : }
6663 0 : void ServiceDescriptorProto::InternalSwap(ServiceDescriptorProto* other) {
6664 0 : name_.Swap(&other->name_);
6665 0 : method_.UnsafeArenaSwap(&other->method_);
6666 0 : std::swap(options_, other->options_);
6667 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
6668 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
6669 0 : std::swap(_cached_size_, other->_cached_size_);
6670 0 : }
6671 :
6672 0 : ::google::protobuf::Metadata ServiceDescriptorProto::GetMetadata() const {
6673 : protobuf_AssignDescriptorsOnce();
6674 : ::google::protobuf::Metadata metadata;
6675 0 : metadata.descriptor = ServiceDescriptorProto_descriptor_;
6676 0 : metadata.reflection = ServiceDescriptorProto_reflection_;
6677 0 : return metadata;
6678 : }
6679 :
6680 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
6681 : // ServiceDescriptorProto
6682 :
6683 : // optional string name = 1;
6684 : bool ServiceDescriptorProto::has_name() const {
6685 : return (_has_bits_[0] & 0x00000001u) != 0;
6686 : }
6687 : void ServiceDescriptorProto::set_has_name() {
6688 : _has_bits_[0] |= 0x00000001u;
6689 : }
6690 : void ServiceDescriptorProto::clear_has_name() {
6691 : _has_bits_[0] &= ~0x00000001u;
6692 : }
6693 : void ServiceDescriptorProto::clear_name() {
6694 : name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6695 : clear_has_name();
6696 : }
6697 : const ::std::string& ServiceDescriptorProto::name() const {
6698 : // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.name)
6699 : return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6700 : }
6701 : void ServiceDescriptorProto::set_name(const ::std::string& value) {
6702 : set_has_name();
6703 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6704 : // @@protoc_insertion_point(field_set:google.protobuf.ServiceDescriptorProto.name)
6705 : }
6706 : void ServiceDescriptorProto::set_name(const char* value) {
6707 : set_has_name();
6708 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6709 : // @@protoc_insertion_point(field_set_char:google.protobuf.ServiceDescriptorProto.name)
6710 : }
6711 : void ServiceDescriptorProto::set_name(const char* value, size_t size) {
6712 : set_has_name();
6713 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6714 : ::std::string(reinterpret_cast<const char*>(value), size));
6715 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.ServiceDescriptorProto.name)
6716 : }
6717 : ::std::string* ServiceDescriptorProto::mutable_name() {
6718 : set_has_name();
6719 : // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.name)
6720 : return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6721 : }
6722 : ::std::string* ServiceDescriptorProto::release_name() {
6723 : clear_has_name();
6724 : return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6725 : }
6726 : void ServiceDescriptorProto::set_allocated_name(::std::string* name) {
6727 : if (name != NULL) {
6728 : set_has_name();
6729 : } else {
6730 : clear_has_name();
6731 : }
6732 : name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
6733 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.name)
6734 : }
6735 :
6736 : // repeated .google.protobuf.MethodDescriptorProto method = 2;
6737 : int ServiceDescriptorProto::method_size() const {
6738 : return method_.size();
6739 : }
6740 : void ServiceDescriptorProto::clear_method() {
6741 : method_.Clear();
6742 : }
6743 : const ::google::protobuf::MethodDescriptorProto& ServiceDescriptorProto::method(int index) const {
6744 : // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.method)
6745 : return method_.Get(index);
6746 : }
6747 : ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::mutable_method(int index) {
6748 : // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.method)
6749 : return method_.Mutable(index);
6750 : }
6751 : ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::add_method() {
6752 : // @@protoc_insertion_point(field_add:google.protobuf.ServiceDescriptorProto.method)
6753 : return method_.Add();
6754 : }
6755 : ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >*
6756 : ServiceDescriptorProto::mutable_method() {
6757 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceDescriptorProto.method)
6758 : return &method_;
6759 : }
6760 : const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >&
6761 : ServiceDescriptorProto::method() const {
6762 : // @@protoc_insertion_point(field_list:google.protobuf.ServiceDescriptorProto.method)
6763 : return method_;
6764 : }
6765 :
6766 : // optional .google.protobuf.ServiceOptions options = 3;
6767 : bool ServiceDescriptorProto::has_options() const {
6768 : return (_has_bits_[0] & 0x00000004u) != 0;
6769 : }
6770 : void ServiceDescriptorProto::set_has_options() {
6771 : _has_bits_[0] |= 0x00000004u;
6772 : }
6773 : void ServiceDescriptorProto::clear_has_options() {
6774 : _has_bits_[0] &= ~0x00000004u;
6775 : }
6776 : void ServiceDescriptorProto::clear_options() {
6777 : if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear();
6778 : clear_has_options();
6779 : }
6780 : const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::options() const {
6781 : // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.options)
6782 : return options_ != NULL ? *options_ : *default_instance_->options_;
6783 : }
6784 : ::google::protobuf::ServiceOptions* ServiceDescriptorProto::mutable_options() {
6785 : set_has_options();
6786 : if (options_ == NULL) {
6787 : options_ = new ::google::protobuf::ServiceOptions;
6788 : }
6789 : // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.options)
6790 : return options_;
6791 : }
6792 : ::google::protobuf::ServiceOptions* ServiceDescriptorProto::release_options() {
6793 : clear_has_options();
6794 : ::google::protobuf::ServiceOptions* temp = options_;
6795 : options_ = NULL;
6796 : return temp;
6797 : }
6798 : void ServiceDescriptorProto::set_allocated_options(::google::protobuf::ServiceOptions* options) {
6799 : delete options_;
6800 : options_ = options;
6801 : if (options) {
6802 : set_has_options();
6803 : } else {
6804 : clear_has_options();
6805 : }
6806 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.options)
6807 : }
6808 :
6809 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
6810 :
6811 : // ===================================================================
6812 :
6813 : #ifndef _MSC_VER
6814 : const int MethodDescriptorProto::kNameFieldNumber;
6815 : const int MethodDescriptorProto::kInputTypeFieldNumber;
6816 : const int MethodDescriptorProto::kOutputTypeFieldNumber;
6817 : const int MethodDescriptorProto::kOptionsFieldNumber;
6818 : const int MethodDescriptorProto::kClientStreamingFieldNumber;
6819 : const int MethodDescriptorProto::kServerStreamingFieldNumber;
6820 : #endif // !_MSC_VER
6821 :
6822 225 : MethodDescriptorProto::MethodDescriptorProto()
6823 450 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6824 225 : SharedCtor();
6825 : // @@protoc_insertion_point(constructor:google.protobuf.MethodDescriptorProto)
6826 225 : }
6827 :
6828 46 : void MethodDescriptorProto::InitAsDefaultInstance() {
6829 46 : options_ = const_cast< ::google::protobuf::MethodOptions*>(&::google::protobuf::MethodOptions::default_instance());
6830 46 : }
6831 :
6832 0 : MethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from)
6833 : : ::google::protobuf::Message(),
6834 0 : _internal_metadata_(NULL) {
6835 0 : SharedCtor();
6836 0 : MergeFrom(from);
6837 : // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodDescriptorProto)
6838 0 : }
6839 :
6840 225 : void MethodDescriptorProto::SharedCtor() {
6841 : ::google::protobuf::internal::GetEmptyString();
6842 225 : _cached_size_ = 0;
6843 225 : name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6844 225 : input_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6845 225 : output_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6846 225 : options_ = NULL;
6847 225 : client_streaming_ = false;
6848 225 : server_streaming_ = false;
6849 225 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
6850 225 : }
6851 :
6852 537 : MethodDescriptorProto::~MethodDescriptorProto() {
6853 : // @@protoc_insertion_point(destructor:google.protobuf.MethodDescriptorProto)
6854 179 : SharedDtor();
6855 358 : }
6856 :
6857 179 : void MethodDescriptorProto::SharedDtor() {
6858 179 : name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6859 179 : input_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6860 179 : output_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6861 179 : if (this != default_instance_) {
6862 179 : delete options_;
6863 : }
6864 179 : }
6865 :
6866 0 : void MethodDescriptorProto::SetCachedSize(int size) const {
6867 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6868 0 : _cached_size_ = size;
6869 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
6870 0 : }
6871 0 : const ::google::protobuf::Descriptor* MethodDescriptorProto::descriptor() {
6872 : protobuf_AssignDescriptorsOnce();
6873 0 : return MethodDescriptorProto_descriptor_;
6874 : }
6875 :
6876 1 : const MethodDescriptorProto& MethodDescriptorProto::default_instance() {
6877 1 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
6878 1 : return *default_instance_;
6879 : }
6880 :
6881 : MethodDescriptorProto* MethodDescriptorProto::default_instance_ = NULL;
6882 :
6883 0 : MethodDescriptorProto* MethodDescriptorProto::New(::google::protobuf::Arena* arena) const {
6884 0 : MethodDescriptorProto* n = new MethodDescriptorProto;
6885 0 : if (arena != NULL) {
6886 0 : arena->Own(n);
6887 : }
6888 0 : return n;
6889 : }
6890 :
6891 0 : void MethodDescriptorProto::Clear() {
6892 : #define ZR_HELPER_(f) reinterpret_cast<char*>(\
6893 : &reinterpret_cast<MethodDescriptorProto*>(16)->f)
6894 :
6895 : #define ZR_(first, last) do {\
6896 : ::memset(&first, 0,\
6897 : ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
6898 : } while (0)
6899 :
6900 0 : if (_has_bits_[0 / 32] & 63u) {
6901 0 : ZR_(client_streaming_, server_streaming_);
6902 0 : if (has_name()) {
6903 0 : name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6904 : }
6905 0 : if (has_input_type()) {
6906 0 : input_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6907 : }
6908 0 : if (has_output_type()) {
6909 0 : output_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6910 : }
6911 0 : if (has_options()) {
6912 0 : if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear();
6913 : }
6914 : }
6915 :
6916 : #undef ZR_HELPER_
6917 : #undef ZR_
6918 :
6919 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
6920 0 : if (_internal_metadata_.have_unknown_fields()) {
6921 0 : mutable_unknown_fields()->Clear();
6922 : }
6923 0 : }
6924 :
6925 55 : bool MethodDescriptorProto::MergePartialFromCodedStream(
6926 : ::google::protobuf::io::CodedInputStream* input) {
6927 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
6928 : ::google::protobuf::uint32 tag;
6929 : // @@protoc_insertion_point(parse_start:google.protobuf.MethodDescriptorProto)
6930 : for (;;) {
6931 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
6932 112 : tag = p.first;
6933 112 : if (!p.second) goto handle_unusual;
6934 86 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6935 : // optional string name = 1;
6936 : case 1: {
6937 55 : if (tag == 10) {
6938 110 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6939 : input, this->mutable_name()));
6940 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6941 110 : this->name().data(), this->name().length(),
6942 : ::google::protobuf::internal::WireFormat::PARSE,
6943 110 : "google.protobuf.MethodDescriptorProto.name");
6944 : } else {
6945 : goto handle_unusual;
6946 : }
6947 55 : if (input->ExpectTag(18)) goto parse_input_type;
6948 : break;
6949 : }
6950 :
6951 : // optional string input_type = 2;
6952 : case 2: {
6953 0 : if (tag == 18) {
6954 : parse_input_type:
6955 110 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6956 : input, this->mutable_input_type()));
6957 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6958 110 : this->input_type().data(), this->input_type().length(),
6959 : ::google::protobuf::internal::WireFormat::PARSE,
6960 110 : "google.protobuf.MethodDescriptorProto.input_type");
6961 : } else {
6962 : goto handle_unusual;
6963 : }
6964 55 : if (input->ExpectTag(26)) goto parse_output_type;
6965 : break;
6966 : }
6967 :
6968 : // optional string output_type = 3;
6969 : case 3: {
6970 0 : if (tag == 26) {
6971 : parse_output_type:
6972 110 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6973 : input, this->mutable_output_type()));
6974 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6975 110 : this->output_type().data(), this->output_type().length(),
6976 : ::google::protobuf::internal::WireFormat::PARSE,
6977 110 : "google.protobuf.MethodDescriptorProto.output_type");
6978 : } else {
6979 : goto handle_unusual;
6980 : }
6981 55 : if (input->ExpectTag(34)) goto parse_options;
6982 : break;
6983 : }
6984 :
6985 : // optional .google.protobuf.MethodOptions options = 4;
6986 : case 4: {
6987 0 : if (tag == 34) {
6988 : parse_options:
6989 7 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6990 : input, mutable_options()));
6991 : } else {
6992 : goto handle_unusual;
6993 : }
6994 7 : if (input->ExpectTag(40)) goto parse_client_streaming;
6995 : break;
6996 : }
6997 :
6998 : // optional bool client_streaming = 5 [default = false];
6999 : case 5: {
7000 29 : if (tag == 40) {
7001 : parse_client_streaming:
7002 58 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7003 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7004 : input, &client_streaming_)));
7005 29 : set_has_client_streaming();
7006 : } else {
7007 : goto handle_unusual;
7008 : }
7009 29 : if (input->ExpectTag(48)) goto parse_server_streaming;
7010 : break;
7011 : }
7012 :
7013 : // optional bool server_streaming = 6 [default = false];
7014 : case 6: {
7015 2 : if (tag == 48) {
7016 : parse_server_streaming:
7017 58 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7018 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7019 : input, &server_streaming_)));
7020 29 : set_has_server_streaming();
7021 : } else {
7022 : goto handle_unusual;
7023 : }
7024 29 : if (input->ExpectAtEnd()) goto success;
7025 : break;
7026 : }
7027 :
7028 : default: {
7029 : handle_unusual:
7030 26 : if (tag == 0 ||
7031 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7032 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
7033 : goto success;
7034 : }
7035 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
7036 : input, tag, mutable_unknown_fields()));
7037 : break;
7038 : }
7039 : }
7040 57 : }
7041 : success:
7042 : // @@protoc_insertion_point(parse_success:google.protobuf.MethodDescriptorProto)
7043 55 : return true;
7044 : failure:
7045 : // @@protoc_insertion_point(parse_failure:google.protobuf.MethodDescriptorProto)
7046 0 : return false;
7047 : #undef DO_
7048 : }
7049 :
7050 0 : void MethodDescriptorProto::SerializeWithCachedSizes(
7051 0 : ::google::protobuf::io::CodedOutputStream* output) const {
7052 : // @@protoc_insertion_point(serialize_start:google.protobuf.MethodDescriptorProto)
7053 : // optional string name = 1;
7054 0 : if (has_name()) {
7055 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7056 0 : this->name().data(), this->name().length(),
7057 : ::google::protobuf::internal::WireFormat::SERIALIZE,
7058 0 : "google.protobuf.MethodDescriptorProto.name");
7059 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7060 0 : 1, this->name(), output);
7061 : }
7062 :
7063 : // optional string input_type = 2;
7064 0 : if (has_input_type()) {
7065 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7066 0 : this->input_type().data(), this->input_type().length(),
7067 : ::google::protobuf::internal::WireFormat::SERIALIZE,
7068 0 : "google.protobuf.MethodDescriptorProto.input_type");
7069 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7070 0 : 2, this->input_type(), output);
7071 : }
7072 :
7073 : // optional string output_type = 3;
7074 0 : if (has_output_type()) {
7075 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7076 0 : this->output_type().data(), this->output_type().length(),
7077 : ::google::protobuf::internal::WireFormat::SERIALIZE,
7078 0 : "google.protobuf.MethodDescriptorProto.output_type");
7079 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7080 0 : 3, this->output_type(), output);
7081 : }
7082 :
7083 : // optional .google.protobuf.MethodOptions options = 4;
7084 0 : if (has_options()) {
7085 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7086 0 : 4, *this->options_, output);
7087 : }
7088 :
7089 : // optional bool client_streaming = 5 [default = false];
7090 0 : if (has_client_streaming()) {
7091 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->client_streaming(), output);
7092 : }
7093 :
7094 : // optional bool server_streaming = 6 [default = false];
7095 0 : if (has_server_streaming()) {
7096 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->server_streaming(), output);
7097 : }
7098 :
7099 0 : if (_internal_metadata_.have_unknown_fields()) {
7100 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7101 0 : unknown_fields(), output);
7102 : }
7103 : // @@protoc_insertion_point(serialize_end:google.protobuf.MethodDescriptorProto)
7104 0 : }
7105 :
7106 60 : ::google::protobuf::uint8* MethodDescriptorProto::SerializeWithCachedSizesToArray(
7107 398 : ::google::protobuf::uint8* target) const {
7108 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodDescriptorProto)
7109 : // optional string name = 1;
7110 120 : if (has_name()) {
7111 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7112 120 : this->name().data(), this->name().length(),
7113 : ::google::protobuf::internal::WireFormat::SERIALIZE,
7114 120 : "google.protobuf.MethodDescriptorProto.name");
7115 : target =
7116 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7117 120 : 1, this->name(), target);
7118 : }
7119 :
7120 : // optional string input_type = 2;
7121 120 : if (has_input_type()) {
7122 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7123 120 : this->input_type().data(), this->input_type().length(),
7124 : ::google::protobuf::internal::WireFormat::SERIALIZE,
7125 120 : "google.protobuf.MethodDescriptorProto.input_type");
7126 : target =
7127 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7128 120 : 2, this->input_type(), target);
7129 : }
7130 :
7131 : // optional string output_type = 3;
7132 120 : if (has_output_type()) {
7133 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7134 120 : this->output_type().data(), this->output_type().length(),
7135 : ::google::protobuf::internal::WireFormat::SERIALIZE,
7136 120 : "google.protobuf.MethodDescriptorProto.output_type");
7137 : target =
7138 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7139 120 : 3, this->output_type(), target);
7140 : }
7141 :
7142 : // optional .google.protobuf.MethodOptions options = 4;
7143 120 : if (has_options()) {
7144 : target = ::google::protobuf::internal::WireFormatLite::
7145 : WriteMessageNoVirtualToArray(
7146 8 : 4, *this->options_, target);
7147 : }
7148 :
7149 : // optional bool client_streaming = 5 [default = false];
7150 120 : if (has_client_streaming()) {
7151 38 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->client_streaming(), target);
7152 : }
7153 :
7154 : // optional bool server_streaming = 6 [default = false];
7155 120 : if (has_server_streaming()) {
7156 38 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->server_streaming(), target);
7157 : }
7158 :
7159 120 : if (_internal_metadata_.have_unknown_fields()) {
7160 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7161 0 : unknown_fields(), target);
7162 : }
7163 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodDescriptorProto)
7164 60 : return target;
7165 : }
7166 :
7167 300 : int MethodDescriptorProto::ByteSize() const {
7168 60 : int total_size = 0;
7169 :
7170 60 : if (_has_bits_[0 / 32] & 63u) {
7171 : // optional string name = 1;
7172 120 : if (has_name()) {
7173 : total_size += 1 +
7174 : ::google::protobuf::internal::WireFormatLite::StringSize(
7175 60 : this->name());
7176 : }
7177 :
7178 : // optional string input_type = 2;
7179 120 : if (has_input_type()) {
7180 : total_size += 1 +
7181 : ::google::protobuf::internal::WireFormatLite::StringSize(
7182 60 : this->input_type());
7183 : }
7184 :
7185 : // optional string output_type = 3;
7186 120 : if (has_output_type()) {
7187 : total_size += 1 +
7188 : ::google::protobuf::internal::WireFormatLite::StringSize(
7189 60 : this->output_type());
7190 : }
7191 :
7192 : // optional .google.protobuf.MethodOptions options = 4;
7193 120 : if (has_options()) {
7194 : total_size += 1 +
7195 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7196 4 : *this->options_);
7197 : }
7198 :
7199 : // optional bool client_streaming = 5 [default = false];
7200 120 : if (has_client_streaming()) {
7201 19 : total_size += 1 + 1;
7202 : }
7203 :
7204 : // optional bool server_streaming = 6 [default = false];
7205 120 : if (has_server_streaming()) {
7206 19 : total_size += 1 + 1;
7207 : }
7208 :
7209 : }
7210 120 : if (_internal_metadata_.have_unknown_fields()) {
7211 : total_size +=
7212 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7213 0 : unknown_fields());
7214 : }
7215 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7216 60 : _cached_size_ = total_size;
7217 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
7218 60 : return total_size;
7219 : }
7220 :
7221 0 : void MethodDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
7222 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
7223 : const MethodDescriptorProto* source =
7224 : ::google::protobuf::internal::DynamicCastToGenerated<const MethodDescriptorProto>(
7225 0 : &from);
7226 0 : if (source == NULL) {
7227 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7228 : } else {
7229 0 : MergeFrom(*source);
7230 : }
7231 0 : }
7232 :
7233 0 : void MethodDescriptorProto::MergeFrom(const MethodDescriptorProto& from) {
7234 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
7235 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
7236 0 : if (from.has_name()) {
7237 0 : set_has_name();
7238 0 : name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
7239 : }
7240 0 : if (from.has_input_type()) {
7241 0 : set_has_input_type();
7242 0 : input_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_type_);
7243 : }
7244 0 : if (from.has_output_type()) {
7245 0 : set_has_output_type();
7246 0 : output_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_type_);
7247 : }
7248 0 : if (from.has_options()) {
7249 0 : mutable_options()->::google::protobuf::MethodOptions::MergeFrom(from.options());
7250 : }
7251 0 : if (from.has_client_streaming()) {
7252 0 : set_client_streaming(from.client_streaming());
7253 : }
7254 0 : if (from.has_server_streaming()) {
7255 0 : set_server_streaming(from.server_streaming());
7256 : }
7257 : }
7258 0 : if (from._internal_metadata_.have_unknown_fields()) {
7259 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
7260 : }
7261 0 : }
7262 :
7263 0 : void MethodDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
7264 0 : if (&from == this) return;
7265 0 : Clear();
7266 0 : MergeFrom(from);
7267 : }
7268 :
7269 0 : void MethodDescriptorProto::CopyFrom(const MethodDescriptorProto& from) {
7270 0 : if (&from == this) return;
7271 0 : Clear();
7272 0 : MergeFrom(from);
7273 : }
7274 :
7275 55 : bool MethodDescriptorProto::IsInitialized() const {
7276 :
7277 110 : if (has_options()) {
7278 7 : if (!this->options_->IsInitialized()) return false;
7279 : }
7280 : return true;
7281 : }
7282 :
7283 0 : void MethodDescriptorProto::Swap(MethodDescriptorProto* other) {
7284 0 : if (other == this) return;
7285 0 : InternalSwap(other);
7286 : }
7287 0 : void MethodDescriptorProto::InternalSwap(MethodDescriptorProto* other) {
7288 0 : name_.Swap(&other->name_);
7289 0 : input_type_.Swap(&other->input_type_);
7290 0 : output_type_.Swap(&other->output_type_);
7291 0 : std::swap(options_, other->options_);
7292 0 : std::swap(client_streaming_, other->client_streaming_);
7293 0 : std::swap(server_streaming_, other->server_streaming_);
7294 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
7295 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
7296 0 : std::swap(_cached_size_, other->_cached_size_);
7297 0 : }
7298 :
7299 0 : ::google::protobuf::Metadata MethodDescriptorProto::GetMetadata() const {
7300 : protobuf_AssignDescriptorsOnce();
7301 : ::google::protobuf::Metadata metadata;
7302 0 : metadata.descriptor = MethodDescriptorProto_descriptor_;
7303 0 : metadata.reflection = MethodDescriptorProto_reflection_;
7304 0 : return metadata;
7305 : }
7306 :
7307 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
7308 : // MethodDescriptorProto
7309 :
7310 : // optional string name = 1;
7311 : bool MethodDescriptorProto::has_name() const {
7312 : return (_has_bits_[0] & 0x00000001u) != 0;
7313 : }
7314 : void MethodDescriptorProto::set_has_name() {
7315 : _has_bits_[0] |= 0x00000001u;
7316 : }
7317 : void MethodDescriptorProto::clear_has_name() {
7318 : _has_bits_[0] &= ~0x00000001u;
7319 : }
7320 : void MethodDescriptorProto::clear_name() {
7321 : name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7322 : clear_has_name();
7323 : }
7324 : const ::std::string& MethodDescriptorProto::name() const {
7325 : // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.name)
7326 : return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7327 : }
7328 : void MethodDescriptorProto::set_name(const ::std::string& value) {
7329 : set_has_name();
7330 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
7331 : // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.name)
7332 : }
7333 : void MethodDescriptorProto::set_name(const char* value) {
7334 : set_has_name();
7335 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
7336 : // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.name)
7337 : }
7338 : void MethodDescriptorProto::set_name(const char* value, size_t size) {
7339 : set_has_name();
7340 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7341 : ::std::string(reinterpret_cast<const char*>(value), size));
7342 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.name)
7343 : }
7344 : ::std::string* MethodDescriptorProto::mutable_name() {
7345 : set_has_name();
7346 : // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.name)
7347 : return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7348 : }
7349 : ::std::string* MethodDescriptorProto::release_name() {
7350 : clear_has_name();
7351 : return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7352 : }
7353 : void MethodDescriptorProto::set_allocated_name(::std::string* name) {
7354 : if (name != NULL) {
7355 : set_has_name();
7356 : } else {
7357 : clear_has_name();
7358 : }
7359 : name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
7360 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.name)
7361 : }
7362 :
7363 : // optional string input_type = 2;
7364 : bool MethodDescriptorProto::has_input_type() const {
7365 : return (_has_bits_[0] & 0x00000002u) != 0;
7366 : }
7367 : void MethodDescriptorProto::set_has_input_type() {
7368 : _has_bits_[0] |= 0x00000002u;
7369 : }
7370 : void MethodDescriptorProto::clear_has_input_type() {
7371 : _has_bits_[0] &= ~0x00000002u;
7372 : }
7373 : void MethodDescriptorProto::clear_input_type() {
7374 : input_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7375 : clear_has_input_type();
7376 : }
7377 : const ::std::string& MethodDescriptorProto::input_type() const {
7378 : // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.input_type)
7379 : return input_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7380 : }
7381 : void MethodDescriptorProto::set_input_type(const ::std::string& value) {
7382 : set_has_input_type();
7383 : input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
7384 : // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.input_type)
7385 : }
7386 : void MethodDescriptorProto::set_input_type(const char* value) {
7387 : set_has_input_type();
7388 : input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
7389 : // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.input_type)
7390 : }
7391 : void MethodDescriptorProto::set_input_type(const char* value, size_t size) {
7392 : set_has_input_type();
7393 : input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7394 : ::std::string(reinterpret_cast<const char*>(value), size));
7395 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.input_type)
7396 : }
7397 : ::std::string* MethodDescriptorProto::mutable_input_type() {
7398 : set_has_input_type();
7399 : // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.input_type)
7400 : return input_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7401 : }
7402 : ::std::string* MethodDescriptorProto::release_input_type() {
7403 : clear_has_input_type();
7404 : return input_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7405 : }
7406 : void MethodDescriptorProto::set_allocated_input_type(::std::string* input_type) {
7407 : if (input_type != NULL) {
7408 : set_has_input_type();
7409 : } else {
7410 : clear_has_input_type();
7411 : }
7412 : input_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), input_type);
7413 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.input_type)
7414 : }
7415 :
7416 : // optional string output_type = 3;
7417 : bool MethodDescriptorProto::has_output_type() const {
7418 : return (_has_bits_[0] & 0x00000004u) != 0;
7419 : }
7420 : void MethodDescriptorProto::set_has_output_type() {
7421 : _has_bits_[0] |= 0x00000004u;
7422 : }
7423 : void MethodDescriptorProto::clear_has_output_type() {
7424 : _has_bits_[0] &= ~0x00000004u;
7425 : }
7426 : void MethodDescriptorProto::clear_output_type() {
7427 : output_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7428 : clear_has_output_type();
7429 : }
7430 : const ::std::string& MethodDescriptorProto::output_type() const {
7431 : // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.output_type)
7432 : return output_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7433 : }
7434 : void MethodDescriptorProto::set_output_type(const ::std::string& value) {
7435 : set_has_output_type();
7436 : output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
7437 : // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.output_type)
7438 : }
7439 : void MethodDescriptorProto::set_output_type(const char* value) {
7440 : set_has_output_type();
7441 : output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
7442 : // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.output_type)
7443 : }
7444 : void MethodDescriptorProto::set_output_type(const char* value, size_t size) {
7445 : set_has_output_type();
7446 : output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7447 : ::std::string(reinterpret_cast<const char*>(value), size));
7448 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.output_type)
7449 : }
7450 : ::std::string* MethodDescriptorProto::mutable_output_type() {
7451 : set_has_output_type();
7452 : // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.output_type)
7453 : return output_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7454 : }
7455 : ::std::string* MethodDescriptorProto::release_output_type() {
7456 : clear_has_output_type();
7457 : return output_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7458 : }
7459 : void MethodDescriptorProto::set_allocated_output_type(::std::string* output_type) {
7460 : if (output_type != NULL) {
7461 : set_has_output_type();
7462 : } else {
7463 : clear_has_output_type();
7464 : }
7465 : output_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_type);
7466 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.output_type)
7467 : }
7468 :
7469 : // optional .google.protobuf.MethodOptions options = 4;
7470 : bool MethodDescriptorProto::has_options() const {
7471 : return (_has_bits_[0] & 0x00000008u) != 0;
7472 : }
7473 : void MethodDescriptorProto::set_has_options() {
7474 : _has_bits_[0] |= 0x00000008u;
7475 : }
7476 : void MethodDescriptorProto::clear_has_options() {
7477 : _has_bits_[0] &= ~0x00000008u;
7478 : }
7479 : void MethodDescriptorProto::clear_options() {
7480 : if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear();
7481 : clear_has_options();
7482 : }
7483 : const ::google::protobuf::MethodOptions& MethodDescriptorProto::options() const {
7484 : // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.options)
7485 : return options_ != NULL ? *options_ : *default_instance_->options_;
7486 : }
7487 : ::google::protobuf::MethodOptions* MethodDescriptorProto::mutable_options() {
7488 : set_has_options();
7489 : if (options_ == NULL) {
7490 : options_ = new ::google::protobuf::MethodOptions;
7491 : }
7492 : // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.options)
7493 : return options_;
7494 : }
7495 : ::google::protobuf::MethodOptions* MethodDescriptorProto::release_options() {
7496 : clear_has_options();
7497 : ::google::protobuf::MethodOptions* temp = options_;
7498 : options_ = NULL;
7499 : return temp;
7500 : }
7501 : void MethodDescriptorProto::set_allocated_options(::google::protobuf::MethodOptions* options) {
7502 : delete options_;
7503 : options_ = options;
7504 : if (options) {
7505 : set_has_options();
7506 : } else {
7507 : clear_has_options();
7508 : }
7509 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.options)
7510 : }
7511 :
7512 : // optional bool client_streaming = 5 [default = false];
7513 : bool MethodDescriptorProto::has_client_streaming() const {
7514 : return (_has_bits_[0] & 0x00000010u) != 0;
7515 : }
7516 : void MethodDescriptorProto::set_has_client_streaming() {
7517 : _has_bits_[0] |= 0x00000010u;
7518 : }
7519 : void MethodDescriptorProto::clear_has_client_streaming() {
7520 : _has_bits_[0] &= ~0x00000010u;
7521 : }
7522 : void MethodDescriptorProto::clear_client_streaming() {
7523 : client_streaming_ = false;
7524 : clear_has_client_streaming();
7525 : }
7526 : bool MethodDescriptorProto::client_streaming() const {
7527 : // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.client_streaming)
7528 : return client_streaming_;
7529 : }
7530 : void MethodDescriptorProto::set_client_streaming(bool value) {
7531 : set_has_client_streaming();
7532 : client_streaming_ = value;
7533 : // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.client_streaming)
7534 : }
7535 :
7536 : // optional bool server_streaming = 6 [default = false];
7537 : bool MethodDescriptorProto::has_server_streaming() const {
7538 : return (_has_bits_[0] & 0x00000020u) != 0;
7539 : }
7540 : void MethodDescriptorProto::set_has_server_streaming() {
7541 : _has_bits_[0] |= 0x00000020u;
7542 : }
7543 : void MethodDescriptorProto::clear_has_server_streaming() {
7544 : _has_bits_[0] &= ~0x00000020u;
7545 : }
7546 : void MethodDescriptorProto::clear_server_streaming() {
7547 : server_streaming_ = false;
7548 : clear_has_server_streaming();
7549 : }
7550 : bool MethodDescriptorProto::server_streaming() const {
7551 : // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.server_streaming)
7552 : return server_streaming_;
7553 : }
7554 : void MethodDescriptorProto::set_server_streaming(bool value) {
7555 : set_has_server_streaming();
7556 : server_streaming_ = value;
7557 : // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.server_streaming)
7558 : }
7559 :
7560 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
7561 :
7562 : // ===================================================================
7563 :
7564 0 : const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor() {
7565 : protobuf_AssignDescriptorsOnce();
7566 0 : return FileOptions_OptimizeMode_descriptor_;
7567 : }
7568 71 : bool FileOptions_OptimizeMode_IsValid(int value) {
7569 71 : switch(value) {
7570 : case 1:
7571 : case 2:
7572 : case 3:
7573 : return true;
7574 : default:
7575 0 : return false;
7576 : }
7577 : }
7578 :
7579 : #ifndef _MSC_VER
7580 : const FileOptions_OptimizeMode FileOptions::SPEED;
7581 : const FileOptions_OptimizeMode FileOptions::CODE_SIZE;
7582 : const FileOptions_OptimizeMode FileOptions::LITE_RUNTIME;
7583 : const FileOptions_OptimizeMode FileOptions::OptimizeMode_MIN;
7584 : const FileOptions_OptimizeMode FileOptions::OptimizeMode_MAX;
7585 : const int FileOptions::OptimizeMode_ARRAYSIZE;
7586 : #endif // _MSC_VER
7587 : #ifndef _MSC_VER
7588 : const int FileOptions::kJavaPackageFieldNumber;
7589 : const int FileOptions::kJavaOuterClassnameFieldNumber;
7590 : const int FileOptions::kJavaMultipleFilesFieldNumber;
7591 : const int FileOptions::kJavaGenerateEqualsAndHashFieldNumber;
7592 : const int FileOptions::kJavaStringCheckUtf8FieldNumber;
7593 : const int FileOptions::kOptimizeForFieldNumber;
7594 : const int FileOptions::kGoPackageFieldNumber;
7595 : const int FileOptions::kCcGenericServicesFieldNumber;
7596 : const int FileOptions::kJavaGenericServicesFieldNumber;
7597 : const int FileOptions::kPyGenericServicesFieldNumber;
7598 : const int FileOptions::kDeprecatedFieldNumber;
7599 : const int FileOptions::kCcEnableArenasFieldNumber;
7600 : const int FileOptions::kObjcClassPrefixFieldNumber;
7601 : const int FileOptions::kCsharpNamespaceFieldNumber;
7602 : const int FileOptions::kJavananoUseDeprecatedPackageFieldNumber;
7603 : const int FileOptions::kUninterpretedOptionFieldNumber;
7604 : #endif // !_MSC_VER
7605 :
7606 227 : FileOptions::FileOptions()
7607 681 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7608 227 : SharedCtor();
7609 : // @@protoc_insertion_point(constructor:google.protobuf.FileOptions)
7610 227 : }
7611 :
7612 46 : void FileOptions::InitAsDefaultInstance() {
7613 46 : }
7614 :
7615 0 : FileOptions::FileOptions(const FileOptions& from)
7616 : : ::google::protobuf::Message(),
7617 0 : _internal_metadata_(NULL) {
7618 0 : SharedCtor();
7619 0 : MergeFrom(from);
7620 : // @@protoc_insertion_point(copy_constructor:google.protobuf.FileOptions)
7621 0 : }
7622 :
7623 227 : void FileOptions::SharedCtor() {
7624 : ::google::protobuf::internal::GetEmptyString();
7625 227 : _cached_size_ = 0;
7626 227 : java_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7627 227 : java_outer_classname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7628 227 : java_multiple_files_ = false;
7629 227 : java_generate_equals_and_hash_ = false;
7630 227 : java_string_check_utf8_ = false;
7631 227 : optimize_for_ = 1;
7632 227 : go_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7633 227 : cc_generic_services_ = false;
7634 227 : java_generic_services_ = false;
7635 227 : py_generic_services_ = false;
7636 227 : deprecated_ = false;
7637 227 : cc_enable_arenas_ = false;
7638 227 : objc_class_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7639 227 : csharp_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7640 227 : javanano_use_deprecated_package_ = false;
7641 227 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
7642 227 : }
7643 :
7644 704 : FileOptions::~FileOptions() {
7645 : // @@protoc_insertion_point(destructor:google.protobuf.FileOptions)
7646 176 : SharedDtor();
7647 352 : }
7648 :
7649 176 : void FileOptions::SharedDtor() {
7650 176 : java_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7651 176 : java_outer_classname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7652 176 : go_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7653 176 : objc_class_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7654 176 : csharp_namespace_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7655 : if (this != default_instance_) {
7656 : }
7657 176 : }
7658 :
7659 0 : void FileOptions::SetCachedSize(int size) const {
7660 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7661 0 : _cached_size_ = size;
7662 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
7663 0 : }
7664 0 : const ::google::protobuf::Descriptor* FileOptions::descriptor() {
7665 : protobuf_AssignDescriptorsOnce();
7666 0 : return FileOptions_descriptor_;
7667 : }
7668 :
7669 4777 : const FileOptions& FileOptions::default_instance() {
7670 4777 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
7671 4777 : return *default_instance_;
7672 : }
7673 :
7674 : FileOptions* FileOptions::default_instance_ = NULL;
7675 :
7676 0 : FileOptions* FileOptions::New(::google::protobuf::Arena* arena) const {
7677 0 : FileOptions* n = new FileOptions;
7678 0 : if (arena != NULL) {
7679 0 : arena->Own(n);
7680 : }
7681 0 : return n;
7682 : }
7683 :
7684 105 : void FileOptions::Clear() {
7685 105 : _extensions_.Clear();
7686 : #define ZR_HELPER_(f) reinterpret_cast<char*>(\
7687 : &reinterpret_cast<FileOptions*>(16)->f)
7688 :
7689 : #define ZR_(first, last) do {\
7690 : ::memset(&first, 0,\
7691 : ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
7692 : } while (0)
7693 :
7694 105 : if (_has_bits_[0 / 32] & 255u) {
7695 0 : ZR_(java_multiple_files_, cc_generic_services_);
7696 0 : if (has_java_package()) {
7697 0 : java_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7698 : }
7699 0 : if (has_java_outer_classname()) {
7700 0 : java_outer_classname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7701 : }
7702 0 : optimize_for_ = 1;
7703 0 : if (has_go_package()) {
7704 0 : go_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7705 : }
7706 : }
7707 105 : if (_has_bits_[8 / 32] & 32512u) {
7708 0 : ZR_(java_generic_services_, javanano_use_deprecated_package_);
7709 0 : if (has_objc_class_prefix()) {
7710 0 : objc_class_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7711 : }
7712 0 : if (has_csharp_namespace()) {
7713 0 : csharp_namespace_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7714 : }
7715 : }
7716 :
7717 : #undef ZR_HELPER_
7718 : #undef ZR_
7719 :
7720 105 : uninterpreted_option_.Clear();
7721 105 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
7722 210 : if (_internal_metadata_.have_unknown_fields()) {
7723 39 : mutable_unknown_fields()->Clear();
7724 : }
7725 105 : }
7726 :
7727 159 : bool FileOptions::MergePartialFromCodedStream(
7728 : ::google::protobuf::io::CodedInputStream* input) {
7729 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
7730 : ::google::protobuf::uint32 tag;
7731 : // @@protoc_insertion_point(parse_start:google.protobuf.FileOptions)
7732 : for (;;) {
7733 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
7734 487 : tag = p.first;
7735 487 : if (!p.second) goto handle_unusual;
7736 365 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7737 : // optional string java_package = 1;
7738 : case 1: {
7739 104 : if (tag == 10) {
7740 208 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7741 : input, this->mutable_java_package()));
7742 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7743 208 : this->java_package().data(), this->java_package().length(),
7744 : ::google::protobuf::internal::WireFormat::PARSE,
7745 208 : "google.protobuf.FileOptions.java_package");
7746 : } else {
7747 : goto handle_unusual;
7748 : }
7749 104 : if (input->ExpectTag(66)) goto parse_java_outer_classname;
7750 : break;
7751 : }
7752 :
7753 : // optional string java_outer_classname = 8;
7754 : case 8: {
7755 10 : if (tag == 66) {
7756 : parse_java_outer_classname:
7757 188 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7758 : input, this->mutable_java_outer_classname()));
7759 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7760 188 : this->java_outer_classname().data(), this->java_outer_classname().length(),
7761 : ::google::protobuf::internal::WireFormat::PARSE,
7762 188 : "google.protobuf.FileOptions.java_outer_classname");
7763 : } else {
7764 : goto handle_unusual;
7765 : }
7766 94 : if (input->ExpectTag(72)) goto parse_optimize_for;
7767 : break;
7768 : }
7769 :
7770 : // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
7771 : case 9: {
7772 15 : if (tag == 72) {
7773 : parse_optimize_for:
7774 : int value;
7775 71 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7776 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7777 : input, &value)));
7778 71 : if (::google::protobuf::FileOptions_OptimizeMode_IsValid(value)) {
7779 71 : set_optimize_for(static_cast< ::google::protobuf::FileOptions_OptimizeMode >(value));
7780 : } else {
7781 0 : mutable_unknown_fields()->AddVarint(9, value);
7782 : }
7783 : } else {
7784 : goto handle_unusual;
7785 : }
7786 71 : if (input->ExpectTag(80)) goto parse_java_multiple_files;
7787 : break;
7788 : }
7789 :
7790 : // optional bool java_multiple_files = 10 [default = false];
7791 : case 10: {
7792 11 : if (tag == 80) {
7793 : parse_java_multiple_files:
7794 22 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7795 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7796 : input, &java_multiple_files_)));
7797 11 : set_has_java_multiple_files();
7798 : } else {
7799 : goto handle_unusual;
7800 : }
7801 11 : if (input->ExpectTag(90)) goto parse_go_package;
7802 : break;
7803 : }
7804 :
7805 : // optional string go_package = 11;
7806 : case 11: {
7807 82 : if (tag == 90) {
7808 : parse_go_package:
7809 164 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7810 : input, this->mutable_go_package()));
7811 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7812 164 : this->go_package().data(), this->go_package().length(),
7813 : ::google::protobuf::internal::WireFormat::PARSE,
7814 164 : "google.protobuf.FileOptions.go_package");
7815 : } else {
7816 : goto handle_unusual;
7817 : }
7818 82 : if (input->ExpectTag(128)) goto parse_cc_generic_services;
7819 : break;
7820 : }
7821 :
7822 : // optional bool cc_generic_services = 16 [default = false];
7823 : case 16: {
7824 4 : if (tag == 128) {
7825 : parse_cc_generic_services:
7826 8 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7827 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7828 : input, &cc_generic_services_)));
7829 4 : set_has_cc_generic_services();
7830 : } else {
7831 : goto handle_unusual;
7832 : }
7833 4 : if (input->ExpectTag(136)) goto parse_java_generic_services;
7834 : break;
7835 : }
7836 :
7837 : // optional bool java_generic_services = 17 [default = false];
7838 : case 17: {
7839 0 : if (tag == 136) {
7840 : parse_java_generic_services:
7841 6 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7842 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7843 : input, &java_generic_services_)));
7844 3 : set_has_java_generic_services();
7845 : } else {
7846 : goto handle_unusual;
7847 : }
7848 3 : if (input->ExpectTag(144)) goto parse_py_generic_services;
7849 : break;
7850 : }
7851 :
7852 : // optional bool py_generic_services = 18 [default = false];
7853 : case 18: {
7854 0 : if (tag == 144) {
7855 : parse_py_generic_services:
7856 6 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7857 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7858 : input, &py_generic_services_)));
7859 3 : set_has_py_generic_services();
7860 : } else {
7861 : goto handle_unusual;
7862 : }
7863 3 : if (input->ExpectTag(160)) goto parse_java_generate_equals_and_hash;
7864 : break;
7865 : }
7866 :
7867 : // optional bool java_generate_equals_and_hash = 20 [default = false];
7868 : case 20: {
7869 10 : if (tag == 160) {
7870 : parse_java_generate_equals_and_hash:
7871 20 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7872 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7873 : input, &java_generate_equals_and_hash_)));
7874 10 : set_has_java_generate_equals_and_hash();
7875 : } else {
7876 : goto handle_unusual;
7877 : }
7878 10 : if (input->ExpectTag(184)) goto parse_deprecated;
7879 : break;
7880 : }
7881 :
7882 : // optional bool deprecated = 23 [default = false];
7883 : case 23: {
7884 0 : if (tag == 184) {
7885 : parse_deprecated:
7886 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7887 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7888 : input, &deprecated_)));
7889 0 : set_has_deprecated();
7890 : } else {
7891 : goto handle_unusual;
7892 : }
7893 0 : if (input->ExpectTag(216)) goto parse_java_string_check_utf8;
7894 : break;
7895 : }
7896 :
7897 : // optional bool java_string_check_utf8 = 27 [default = false];
7898 : case 27: {
7899 0 : if (tag == 216) {
7900 : parse_java_string_check_utf8:
7901 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7902 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7903 : input, &java_string_check_utf8_)));
7904 0 : set_has_java_string_check_utf8();
7905 : } else {
7906 : goto handle_unusual;
7907 : }
7908 0 : if (input->ExpectTag(248)) goto parse_cc_enable_arenas;
7909 : break;
7910 : }
7911 :
7912 : // optional bool cc_enable_arenas = 31 [default = false];
7913 : case 31: {
7914 9 : if (tag == 248) {
7915 : parse_cc_enable_arenas:
7916 18 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7917 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7918 : input, &cc_enable_arenas_)));
7919 9 : set_has_cc_enable_arenas();
7920 : } else {
7921 : goto handle_unusual;
7922 : }
7923 9 : if (input->ExpectTag(290)) goto parse_objc_class_prefix;
7924 : break;
7925 : }
7926 :
7927 : // optional string objc_class_prefix = 36;
7928 : case 36: {
7929 69 : if (tag == 290) {
7930 : parse_objc_class_prefix:
7931 140 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7932 : input, this->mutable_objc_class_prefix()));
7933 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7934 140 : this->objc_class_prefix().data(), this->objc_class_prefix().length(),
7935 : ::google::protobuf::internal::WireFormat::PARSE,
7936 140 : "google.protobuf.FileOptions.objc_class_prefix");
7937 : } else {
7938 : goto handle_unusual;
7939 : }
7940 70 : if (input->ExpectTag(298)) goto parse_csharp_namespace;
7941 : break;
7942 : }
7943 :
7944 : // optional string csharp_namespace = 37;
7945 : case 37: {
7946 12 : if (tag == 298) {
7947 : parse_csharp_namespace:
7948 28 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7949 : input, this->mutable_csharp_namespace()));
7950 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7951 28 : this->csharp_namespace().data(), this->csharp_namespace().length(),
7952 : ::google::protobuf::internal::WireFormat::PARSE,
7953 28 : "google.protobuf.FileOptions.csharp_namespace");
7954 : } else {
7955 : goto handle_unusual;
7956 : }
7957 14 : if (input->ExpectTag(304)) goto parse_javanano_use_deprecated_package;
7958 : break;
7959 : }
7960 :
7961 : // optional bool javanano_use_deprecated_package = 38;
7962 : case 38: {
7963 0 : if (tag == 304) {
7964 : parse_javanano_use_deprecated_package:
7965 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7966 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7967 : input, &javanano_use_deprecated_package_)));
7968 0 : set_has_javanano_use_deprecated_package();
7969 : } else {
7970 : goto handle_unusual;
7971 : }
7972 0 : if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
7973 : break;
7974 : }
7975 :
7976 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
7977 : case 999: {
7978 39 : if (tag == 7994) {
7979 : parse_uninterpreted_option:
7980 78 : DO_(input->IncrementRecursionDepth());
7981 : parse_loop_uninterpreted_option:
7982 122 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
7983 : input, add_uninterpreted_option()));
7984 : } else {
7985 : goto handle_unusual;
7986 : }
7987 122 : if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
7988 39 : input->UnsafeDecrementRecursionDepth();
7989 39 : if (input->ExpectAtEnd()) goto success;
7990 : break;
7991 : }
7992 :
7993 : default: {
7994 : handle_unusual:
7995 124 : if (tag == 0 ||
7996 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7997 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
7998 : goto success;
7999 : }
8000 2 : if ((8000u <= tag)) {
8001 2 : DO_(_extensions_.ParseField(tag, input, default_instance_,
8002 : mutable_unknown_fields()));
8003 : continue;
8004 : }
8005 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
8006 : input, tag, mutable_unknown_fields()));
8007 : break;
8008 : }
8009 : }
8010 : }
8011 : success:
8012 : // @@protoc_insertion_point(parse_success:google.protobuf.FileOptions)
8013 159 : return true;
8014 : failure:
8015 : // @@protoc_insertion_point(parse_failure:google.protobuf.FileOptions)
8016 0 : return false;
8017 : #undef DO_
8018 : }
8019 :
8020 0 : void FileOptions::SerializeWithCachedSizes(
8021 0 : ::google::protobuf::io::CodedOutputStream* output) const {
8022 : // @@protoc_insertion_point(serialize_start:google.protobuf.FileOptions)
8023 : // optional string java_package = 1;
8024 0 : if (has_java_package()) {
8025 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8026 0 : this->java_package().data(), this->java_package().length(),
8027 : ::google::protobuf::internal::WireFormat::SERIALIZE,
8028 0 : "google.protobuf.FileOptions.java_package");
8029 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8030 0 : 1, this->java_package(), output);
8031 : }
8032 :
8033 : // optional string java_outer_classname = 8;
8034 0 : if (has_java_outer_classname()) {
8035 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8036 0 : this->java_outer_classname().data(), this->java_outer_classname().length(),
8037 : ::google::protobuf::internal::WireFormat::SERIALIZE,
8038 0 : "google.protobuf.FileOptions.java_outer_classname");
8039 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8040 0 : 8, this->java_outer_classname(), output);
8041 : }
8042 :
8043 : // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
8044 0 : if (has_optimize_for()) {
8045 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
8046 0 : 9, this->optimize_for(), output);
8047 : }
8048 :
8049 : // optional bool java_multiple_files = 10 [default = false];
8050 0 : if (has_java_multiple_files()) {
8051 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->java_multiple_files(), output);
8052 : }
8053 :
8054 : // optional string go_package = 11;
8055 0 : if (has_go_package()) {
8056 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8057 0 : this->go_package().data(), this->go_package().length(),
8058 : ::google::protobuf::internal::WireFormat::SERIALIZE,
8059 0 : "google.protobuf.FileOptions.go_package");
8060 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8061 0 : 11, this->go_package(), output);
8062 : }
8063 :
8064 : // optional bool cc_generic_services = 16 [default = false];
8065 0 : if (has_cc_generic_services()) {
8066 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->cc_generic_services(), output);
8067 : }
8068 :
8069 : // optional bool java_generic_services = 17 [default = false];
8070 0 : if (has_java_generic_services()) {
8071 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->java_generic_services(), output);
8072 : }
8073 :
8074 : // optional bool py_generic_services = 18 [default = false];
8075 0 : if (has_py_generic_services()) {
8076 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic_services(), output);
8077 : }
8078 :
8079 : // optional bool java_generate_equals_and_hash = 20 [default = false];
8080 0 : if (has_java_generate_equals_and_hash()) {
8081 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->java_generate_equals_and_hash(), output);
8082 : }
8083 :
8084 : // optional bool deprecated = 23 [default = false];
8085 0 : if (has_deprecated()) {
8086 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(23, this->deprecated(), output);
8087 : }
8088 :
8089 : // optional bool java_string_check_utf8 = 27 [default = false];
8090 0 : if (has_java_string_check_utf8()) {
8091 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(27, this->java_string_check_utf8(), output);
8092 : }
8093 :
8094 : // optional bool cc_enable_arenas = 31 [default = false];
8095 0 : if (has_cc_enable_arenas()) {
8096 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(31, this->cc_enable_arenas(), output);
8097 : }
8098 :
8099 : // optional string objc_class_prefix = 36;
8100 0 : if (has_objc_class_prefix()) {
8101 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8102 0 : this->objc_class_prefix().data(), this->objc_class_prefix().length(),
8103 : ::google::protobuf::internal::WireFormat::SERIALIZE,
8104 0 : "google.protobuf.FileOptions.objc_class_prefix");
8105 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8106 0 : 36, this->objc_class_prefix(), output);
8107 : }
8108 :
8109 : // optional string csharp_namespace = 37;
8110 0 : if (has_csharp_namespace()) {
8111 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8112 0 : this->csharp_namespace().data(), this->csharp_namespace().length(),
8113 : ::google::protobuf::internal::WireFormat::SERIALIZE,
8114 0 : "google.protobuf.FileOptions.csharp_namespace");
8115 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8116 0 : 37, this->csharp_namespace(), output);
8117 : }
8118 :
8119 : // optional bool javanano_use_deprecated_package = 38;
8120 0 : if (has_javanano_use_deprecated_package()) {
8121 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(38, this->javanano_use_deprecated_package(), output);
8122 : }
8123 :
8124 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8125 0 : for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
8126 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8127 0 : 999, this->uninterpreted_option(i), output);
8128 : }
8129 :
8130 : // Extension range [1000, 536870912)
8131 : _extensions_.SerializeWithCachedSizes(
8132 0 : 1000, 536870912, output);
8133 :
8134 0 : if (_internal_metadata_.have_unknown_fields()) {
8135 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8136 0 : unknown_fields(), output);
8137 : }
8138 : // @@protoc_insertion_point(serialize_end:google.protobuf.FileOptions)
8139 0 : }
8140 :
8141 105 : ::google::protobuf::uint8* FileOptions::SerializeWithCachedSizesToArray(
8142 1607 : ::google::protobuf::uint8* target) const {
8143 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileOptions)
8144 : // optional string java_package = 1;
8145 210 : if (has_java_package()) {
8146 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8147 28 : this->java_package().data(), this->java_package().length(),
8148 : ::google::protobuf::internal::WireFormat::SERIALIZE,
8149 28 : "google.protobuf.FileOptions.java_package");
8150 : target =
8151 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8152 28 : 1, this->java_package(), target);
8153 : }
8154 :
8155 : // optional string java_outer_classname = 8;
8156 210 : if (has_java_outer_classname()) {
8157 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8158 14 : this->java_outer_classname().data(), this->java_outer_classname().length(),
8159 : ::google::protobuf::internal::WireFormat::SERIALIZE,
8160 14 : "google.protobuf.FileOptions.java_outer_classname");
8161 : target =
8162 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8163 14 : 8, this->java_outer_classname(), target);
8164 : }
8165 :
8166 : // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
8167 210 : if (has_optimize_for()) {
8168 : target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8169 26 : 9, this->optimize_for(), target);
8170 : }
8171 :
8172 : // optional bool java_multiple_files = 10 [default = false];
8173 210 : if (has_java_multiple_files()) {
8174 2 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->java_multiple_files(), target);
8175 : }
8176 :
8177 : // optional string go_package = 11;
8178 210 : if (has_go_package()) {
8179 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8180 10 : this->go_package().data(), this->go_package().length(),
8181 : ::google::protobuf::internal::WireFormat::SERIALIZE,
8182 10 : "google.protobuf.FileOptions.go_package");
8183 : target =
8184 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8185 10 : 11, this->go_package(), target);
8186 : }
8187 :
8188 : // optional bool cc_generic_services = 16 [default = false];
8189 210 : if (has_cc_generic_services()) {
8190 8 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->cc_generic_services(), target);
8191 : }
8192 :
8193 : // optional bool java_generic_services = 17 [default = false];
8194 210 : if (has_java_generic_services()) {
8195 6 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->java_generic_services(), target);
8196 : }
8197 :
8198 : // optional bool py_generic_services = 18 [default = false];
8199 210 : if (has_py_generic_services()) {
8200 6 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->py_generic_services(), target);
8201 : }
8202 :
8203 : // optional bool java_generate_equals_and_hash = 20 [default = false];
8204 210 : if (has_java_generate_equals_and_hash()) {
8205 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->java_generate_equals_and_hash(), target);
8206 : }
8207 :
8208 : // optional bool deprecated = 23 [default = false];
8209 210 : if (has_deprecated()) {
8210 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(23, this->deprecated(), target);
8211 : }
8212 :
8213 : // optional bool java_string_check_utf8 = 27 [default = false];
8214 210 : if (has_java_string_check_utf8()) {
8215 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(27, this->java_string_check_utf8(), target);
8216 : }
8217 :
8218 : // optional bool cc_enable_arenas = 31 [default = false];
8219 210 : if (has_cc_enable_arenas()) {
8220 16 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(31, this->cc_enable_arenas(), target);
8221 : }
8222 :
8223 : // optional string objc_class_prefix = 36;
8224 210 : if (has_objc_class_prefix()) {
8225 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8226 16 : this->objc_class_prefix().data(), this->objc_class_prefix().length(),
8227 : ::google::protobuf::internal::WireFormat::SERIALIZE,
8228 16 : "google.protobuf.FileOptions.objc_class_prefix");
8229 : target =
8230 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8231 16 : 36, this->objc_class_prefix(), target);
8232 : }
8233 :
8234 : // optional string csharp_namespace = 37;
8235 210 : if (has_csharp_namespace()) {
8236 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8237 8 : this->csharp_namespace().data(), this->csharp_namespace().length(),
8238 : ::google::protobuf::internal::WireFormat::SERIALIZE,
8239 8 : "google.protobuf.FileOptions.csharp_namespace");
8240 : target =
8241 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8242 8 : 37, this->csharp_namespace(), target);
8243 : }
8244 :
8245 : // optional bool javanano_use_deprecated_package = 38;
8246 210 : if (has_javanano_use_deprecated_package()) {
8247 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(38, this->javanano_use_deprecated_package(), target);
8248 : }
8249 :
8250 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8251 332 : for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
8252 : target = ::google::protobuf::internal::WireFormatLite::
8253 : WriteMessageNoVirtualToArray(
8254 366 : 999, this->uninterpreted_option(i), target);
8255 : }
8256 :
8257 : // Extension range [1000, 536870912)
8258 : target = _extensions_.SerializeWithCachedSizesToArray(
8259 105 : 1000, 536870912, target);
8260 :
8261 210 : if (_internal_metadata_.have_unknown_fields()) {
8262 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8263 61 : unknown_fields(), target);
8264 : }
8265 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileOptions)
8266 105 : return target;
8267 : }
8268 :
8269 240 : int FileOptions::ByteSize() const {
8270 105 : int total_size = 0;
8271 :
8272 105 : if (_has_bits_[0 / 32] & 255u) {
8273 : // optional string java_package = 1;
8274 44 : if (has_java_package()) {
8275 : total_size += 1 +
8276 : ::google::protobuf::internal::WireFormatLite::StringSize(
8277 14 : this->java_package());
8278 : }
8279 :
8280 : // optional string java_outer_classname = 8;
8281 44 : if (has_java_outer_classname()) {
8282 : total_size += 1 +
8283 : ::google::protobuf::internal::WireFormatLite::StringSize(
8284 7 : this->java_outer_classname());
8285 : }
8286 :
8287 : // optional bool java_multiple_files = 10 [default = false];
8288 44 : if (has_java_multiple_files()) {
8289 1 : total_size += 1 + 1;
8290 : }
8291 :
8292 : // optional bool java_generate_equals_and_hash = 20 [default = false];
8293 44 : if (has_java_generate_equals_and_hash()) {
8294 0 : total_size += 2 + 1;
8295 : }
8296 :
8297 : // optional bool java_string_check_utf8 = 27 [default = false];
8298 44 : if (has_java_string_check_utf8()) {
8299 0 : total_size += 2 + 1;
8300 : }
8301 :
8302 : // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
8303 44 : if (has_optimize_for()) {
8304 : total_size += 1 +
8305 39 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->optimize_for());
8306 : }
8307 :
8308 : // optional string go_package = 11;
8309 44 : if (has_go_package()) {
8310 : total_size += 1 +
8311 : ::google::protobuf::internal::WireFormatLite::StringSize(
8312 5 : this->go_package());
8313 : }
8314 :
8315 : // optional bool cc_generic_services = 16 [default = false];
8316 44 : if (has_cc_generic_services()) {
8317 4 : total_size += 2 + 1;
8318 : }
8319 :
8320 : }
8321 105 : if (_has_bits_[8 / 32] & 32512u) {
8322 : // optional bool java_generic_services = 17 [default = false];
8323 34 : if (has_java_generic_services()) {
8324 3 : total_size += 2 + 1;
8325 : }
8326 :
8327 : // optional bool py_generic_services = 18 [default = false];
8328 34 : if (has_py_generic_services()) {
8329 3 : total_size += 2 + 1;
8330 : }
8331 :
8332 : // optional bool deprecated = 23 [default = false];
8333 34 : if (has_deprecated()) {
8334 0 : total_size += 2 + 1;
8335 : }
8336 :
8337 : // optional bool cc_enable_arenas = 31 [default = false];
8338 34 : if (has_cc_enable_arenas()) {
8339 8 : total_size += 2 + 1;
8340 : }
8341 :
8342 : // optional string objc_class_prefix = 36;
8343 34 : if (has_objc_class_prefix()) {
8344 : total_size += 2 +
8345 : ::google::protobuf::internal::WireFormatLite::StringSize(
8346 8 : this->objc_class_prefix());
8347 : }
8348 :
8349 : // optional string csharp_namespace = 37;
8350 34 : if (has_csharp_namespace()) {
8351 : total_size += 2 +
8352 : ::google::protobuf::internal::WireFormatLite::StringSize(
8353 4 : this->csharp_namespace());
8354 : }
8355 :
8356 : // optional bool javanano_use_deprecated_package = 38;
8357 34 : if (has_javanano_use_deprecated_package()) {
8358 0 : total_size += 2 + 1;
8359 : }
8360 :
8361 : }
8362 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8363 105 : total_size += 2 * this->uninterpreted_option_size();
8364 454 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
8365 : total_size +=
8366 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
8367 122 : this->uninterpreted_option(i));
8368 : }
8369 :
8370 105 : total_size += _extensions_.ByteSize();
8371 :
8372 210 : if (_internal_metadata_.have_unknown_fields()) {
8373 : total_size +=
8374 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8375 61 : unknown_fields());
8376 : }
8377 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8378 105 : _cached_size_ = total_size;
8379 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
8380 105 : return total_size;
8381 : }
8382 :
8383 0 : void FileOptions::MergeFrom(const ::google::protobuf::Message& from) {
8384 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
8385 : const FileOptions* source =
8386 : ::google::protobuf::internal::DynamicCastToGenerated<const FileOptions>(
8387 0 : &from);
8388 0 : if (source == NULL) {
8389 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8390 : } else {
8391 0 : MergeFrom(*source);
8392 : }
8393 0 : }
8394 :
8395 240 : void FileOptions::MergeFrom(const FileOptions& from) {
8396 22 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
8397 22 : uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
8398 22 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
8399 34 : if (from.has_java_package()) {
8400 9 : set_has_java_package();
8401 9 : java_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.java_package_);
8402 : }
8403 34 : if (from.has_java_outer_classname()) {
8404 2 : set_has_java_outer_classname();
8405 2 : java_outer_classname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.java_outer_classname_);
8406 : }
8407 34 : if (from.has_java_multiple_files()) {
8408 1 : set_java_multiple_files(from.java_multiple_files());
8409 : }
8410 34 : if (from.has_java_generate_equals_and_hash()) {
8411 0 : set_java_generate_equals_and_hash(from.java_generate_equals_and_hash());
8412 : }
8413 34 : if (from.has_java_string_check_utf8()) {
8414 0 : set_java_string_check_utf8(from.java_string_check_utf8());
8415 : }
8416 34 : if (from.has_optimize_for()) {
8417 8 : set_optimize_for(from.optimize_for());
8418 : }
8419 34 : if (from.has_go_package()) {
8420 0 : set_has_go_package();
8421 0 : go_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.go_package_);
8422 : }
8423 34 : if (from.has_cc_generic_services()) {
8424 4 : set_cc_generic_services(from.cc_generic_services());
8425 : }
8426 : }
8427 22 : if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
8428 24 : if (from.has_java_generic_services()) {
8429 3 : set_java_generic_services(from.java_generic_services());
8430 : }
8431 24 : if (from.has_py_generic_services()) {
8432 3 : set_py_generic_services(from.py_generic_services());
8433 : }
8434 24 : if (from.has_deprecated()) {
8435 0 : set_deprecated(from.deprecated());
8436 : }
8437 24 : if (from.has_cc_enable_arenas()) {
8438 8 : set_cc_enable_arenas(from.cc_enable_arenas());
8439 : }
8440 24 : if (from.has_objc_class_prefix()) {
8441 3 : set_has_objc_class_prefix();
8442 3 : objc_class_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.objc_class_prefix_);
8443 : }
8444 24 : if (from.has_csharp_namespace()) {
8445 4 : set_has_csharp_namespace();
8446 4 : csharp_namespace_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.csharp_namespace_);
8447 : }
8448 24 : if (from.has_javanano_use_deprecated_package()) {
8449 0 : set_javanano_use_deprecated_package(from.javanano_use_deprecated_package());
8450 : }
8451 : }
8452 22 : _extensions_.MergeFrom(from._extensions_);
8453 44 : if (from._internal_metadata_.have_unknown_fields()) {
8454 22 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
8455 : }
8456 22 : }
8457 :
8458 0 : void FileOptions::CopyFrom(const ::google::protobuf::Message& from) {
8459 0 : if (&from == this) return;
8460 0 : Clear();
8461 0 : MergeFrom(from);
8462 : }
8463 :
8464 22 : void FileOptions::CopyFrom(const FileOptions& from) {
8465 44 : if (&from == this) return;
8466 22 : Clear();
8467 22 : MergeFrom(from);
8468 : }
8469 :
8470 159 : bool FileOptions::IsInitialized() const {
8471 :
8472 318 : if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
8473 :
8474 159 : if (!_extensions_.IsInitialized()) return false; return true;
8475 : }
8476 :
8477 0 : void FileOptions::Swap(FileOptions* other) {
8478 0 : if (other == this) return;
8479 0 : InternalSwap(other);
8480 : }
8481 0 : void FileOptions::InternalSwap(FileOptions* other) {
8482 0 : java_package_.Swap(&other->java_package_);
8483 0 : java_outer_classname_.Swap(&other->java_outer_classname_);
8484 0 : std::swap(java_multiple_files_, other->java_multiple_files_);
8485 0 : std::swap(java_generate_equals_and_hash_, other->java_generate_equals_and_hash_);
8486 0 : std::swap(java_string_check_utf8_, other->java_string_check_utf8_);
8487 0 : std::swap(optimize_for_, other->optimize_for_);
8488 0 : go_package_.Swap(&other->go_package_);
8489 0 : std::swap(cc_generic_services_, other->cc_generic_services_);
8490 0 : std::swap(java_generic_services_, other->java_generic_services_);
8491 0 : std::swap(py_generic_services_, other->py_generic_services_);
8492 0 : std::swap(deprecated_, other->deprecated_);
8493 0 : std::swap(cc_enable_arenas_, other->cc_enable_arenas_);
8494 0 : objc_class_prefix_.Swap(&other->objc_class_prefix_);
8495 0 : csharp_namespace_.Swap(&other->csharp_namespace_);
8496 0 : std::swap(javanano_use_deprecated_package_, other->javanano_use_deprecated_package_);
8497 0 : uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
8498 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
8499 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
8500 0 : std::swap(_cached_size_, other->_cached_size_);
8501 0 : _extensions_.Swap(&other->_extensions_);
8502 0 : }
8503 :
8504 1045 : ::google::protobuf::Metadata FileOptions::GetMetadata() const {
8505 : protobuf_AssignDescriptorsOnce();
8506 : ::google::protobuf::Metadata metadata;
8507 1045 : metadata.descriptor = FileOptions_descriptor_;
8508 1045 : metadata.reflection = FileOptions_reflection_;
8509 1045 : return metadata;
8510 : }
8511 :
8512 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
8513 : // FileOptions
8514 :
8515 : // optional string java_package = 1;
8516 : bool FileOptions::has_java_package() const {
8517 : return (_has_bits_[0] & 0x00000001u) != 0;
8518 : }
8519 : void FileOptions::set_has_java_package() {
8520 : _has_bits_[0] |= 0x00000001u;
8521 : }
8522 : void FileOptions::clear_has_java_package() {
8523 : _has_bits_[0] &= ~0x00000001u;
8524 : }
8525 : void FileOptions::clear_java_package() {
8526 : java_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8527 : clear_has_java_package();
8528 : }
8529 : const ::std::string& FileOptions::java_package() const {
8530 : // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_package)
8531 : return java_package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8532 : }
8533 : void FileOptions::set_java_package(const ::std::string& value) {
8534 : set_has_java_package();
8535 : java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
8536 : // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_package)
8537 : }
8538 : void FileOptions::set_java_package(const char* value) {
8539 : set_has_java_package();
8540 : java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
8541 : // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_package)
8542 : }
8543 : void FileOptions::set_java_package(const char* value, size_t size) {
8544 : set_has_java_package();
8545 : java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
8546 : ::std::string(reinterpret_cast<const char*>(value), size));
8547 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java_package)
8548 : }
8549 : ::std::string* FileOptions::mutable_java_package() {
8550 : set_has_java_package();
8551 : // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_package)
8552 : return java_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8553 : }
8554 : ::std::string* FileOptions::release_java_package() {
8555 : clear_has_java_package();
8556 : return java_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8557 : }
8558 : void FileOptions::set_allocated_java_package(::std::string* java_package) {
8559 : if (java_package != NULL) {
8560 : set_has_java_package();
8561 : } else {
8562 : clear_has_java_package();
8563 : }
8564 : java_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), java_package);
8565 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_package)
8566 : }
8567 :
8568 : // optional string java_outer_classname = 8;
8569 : bool FileOptions::has_java_outer_classname() const {
8570 : return (_has_bits_[0] & 0x00000002u) != 0;
8571 : }
8572 : void FileOptions::set_has_java_outer_classname() {
8573 : _has_bits_[0] |= 0x00000002u;
8574 : }
8575 : void FileOptions::clear_has_java_outer_classname() {
8576 : _has_bits_[0] &= ~0x00000002u;
8577 : }
8578 : void FileOptions::clear_java_outer_classname() {
8579 : java_outer_classname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8580 : clear_has_java_outer_classname();
8581 : }
8582 : const ::std::string& FileOptions::java_outer_classname() const {
8583 : // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_outer_classname)
8584 : return java_outer_classname_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8585 : }
8586 : void FileOptions::set_java_outer_classname(const ::std::string& value) {
8587 : set_has_java_outer_classname();
8588 : java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
8589 : // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_outer_classname)
8590 : }
8591 : void FileOptions::set_java_outer_classname(const char* value) {
8592 : set_has_java_outer_classname();
8593 : java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
8594 : // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_outer_classname)
8595 : }
8596 : void FileOptions::set_java_outer_classname(const char* value, size_t size) {
8597 : set_has_java_outer_classname();
8598 : java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
8599 : ::std::string(reinterpret_cast<const char*>(value), size));
8600 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java_outer_classname)
8601 : }
8602 : ::std::string* FileOptions::mutable_java_outer_classname() {
8603 : set_has_java_outer_classname();
8604 : // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_outer_classname)
8605 : return java_outer_classname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8606 : }
8607 : ::std::string* FileOptions::release_java_outer_classname() {
8608 : clear_has_java_outer_classname();
8609 : return java_outer_classname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8610 : }
8611 : void FileOptions::set_allocated_java_outer_classname(::std::string* java_outer_classname) {
8612 : if (java_outer_classname != NULL) {
8613 : set_has_java_outer_classname();
8614 : } else {
8615 : clear_has_java_outer_classname();
8616 : }
8617 : java_outer_classname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), java_outer_classname);
8618 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_outer_classname)
8619 : }
8620 :
8621 : // optional bool java_multiple_files = 10 [default = false];
8622 : bool FileOptions::has_java_multiple_files() const {
8623 : return (_has_bits_[0] & 0x00000004u) != 0;
8624 : }
8625 : void FileOptions::set_has_java_multiple_files() {
8626 : _has_bits_[0] |= 0x00000004u;
8627 : }
8628 : void FileOptions::clear_has_java_multiple_files() {
8629 : _has_bits_[0] &= ~0x00000004u;
8630 : }
8631 : void FileOptions::clear_java_multiple_files() {
8632 : java_multiple_files_ = false;
8633 : clear_has_java_multiple_files();
8634 : }
8635 : bool FileOptions::java_multiple_files() const {
8636 : // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_multiple_files)
8637 : return java_multiple_files_;
8638 : }
8639 : void FileOptions::set_java_multiple_files(bool value) {
8640 : set_has_java_multiple_files();
8641 : java_multiple_files_ = value;
8642 : // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_multiple_files)
8643 : }
8644 :
8645 : // optional bool java_generate_equals_and_hash = 20 [default = false];
8646 : bool FileOptions::has_java_generate_equals_and_hash() const {
8647 : return (_has_bits_[0] & 0x00000008u) != 0;
8648 : }
8649 : void FileOptions::set_has_java_generate_equals_and_hash() {
8650 : _has_bits_[0] |= 0x00000008u;
8651 : }
8652 : void FileOptions::clear_has_java_generate_equals_and_hash() {
8653 : _has_bits_[0] &= ~0x00000008u;
8654 : }
8655 : void FileOptions::clear_java_generate_equals_and_hash() {
8656 : java_generate_equals_and_hash_ = false;
8657 : clear_has_java_generate_equals_and_hash();
8658 : }
8659 : bool FileOptions::java_generate_equals_and_hash() const {
8660 : // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generate_equals_and_hash)
8661 : return java_generate_equals_and_hash_;
8662 : }
8663 : void FileOptions::set_java_generate_equals_and_hash(bool value) {
8664 : set_has_java_generate_equals_and_hash();
8665 : java_generate_equals_and_hash_ = value;
8666 : // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generate_equals_and_hash)
8667 : }
8668 :
8669 : // optional bool java_string_check_utf8 = 27 [default = false];
8670 : bool FileOptions::has_java_string_check_utf8() const {
8671 : return (_has_bits_[0] & 0x00000010u) != 0;
8672 : }
8673 : void FileOptions::set_has_java_string_check_utf8() {
8674 : _has_bits_[0] |= 0x00000010u;
8675 : }
8676 : void FileOptions::clear_has_java_string_check_utf8() {
8677 : _has_bits_[0] &= ~0x00000010u;
8678 : }
8679 : void FileOptions::clear_java_string_check_utf8() {
8680 : java_string_check_utf8_ = false;
8681 : clear_has_java_string_check_utf8();
8682 : }
8683 : bool FileOptions::java_string_check_utf8() const {
8684 : // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_string_check_utf8)
8685 : return java_string_check_utf8_;
8686 : }
8687 : void FileOptions::set_java_string_check_utf8(bool value) {
8688 : set_has_java_string_check_utf8();
8689 : java_string_check_utf8_ = value;
8690 : // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_string_check_utf8)
8691 : }
8692 :
8693 : // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
8694 : bool FileOptions::has_optimize_for() const {
8695 : return (_has_bits_[0] & 0x00000020u) != 0;
8696 : }
8697 : void FileOptions::set_has_optimize_for() {
8698 : _has_bits_[0] |= 0x00000020u;
8699 : }
8700 : void FileOptions::clear_has_optimize_for() {
8701 : _has_bits_[0] &= ~0x00000020u;
8702 : }
8703 : void FileOptions::clear_optimize_for() {
8704 : optimize_for_ = 1;
8705 : clear_has_optimize_for();
8706 : }
8707 : ::google::protobuf::FileOptions_OptimizeMode FileOptions::optimize_for() const {
8708 : // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.optimize_for)
8709 : return static_cast< ::google::protobuf::FileOptions_OptimizeMode >(optimize_for_);
8710 : }
8711 : void FileOptions::set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value) {
8712 : assert(::google::protobuf::FileOptions_OptimizeMode_IsValid(value));
8713 : set_has_optimize_for();
8714 : optimize_for_ = value;
8715 : // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.optimize_for)
8716 : }
8717 :
8718 : // optional string go_package = 11;
8719 : bool FileOptions::has_go_package() const {
8720 : return (_has_bits_[0] & 0x00000040u) != 0;
8721 : }
8722 : void FileOptions::set_has_go_package() {
8723 : _has_bits_[0] |= 0x00000040u;
8724 : }
8725 : void FileOptions::clear_has_go_package() {
8726 : _has_bits_[0] &= ~0x00000040u;
8727 : }
8728 : void FileOptions::clear_go_package() {
8729 : go_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8730 : clear_has_go_package();
8731 : }
8732 : const ::std::string& FileOptions::go_package() const {
8733 : // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.go_package)
8734 : return go_package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8735 : }
8736 : void FileOptions::set_go_package(const ::std::string& value) {
8737 : set_has_go_package();
8738 : go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
8739 : // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.go_package)
8740 : }
8741 : void FileOptions::set_go_package(const char* value) {
8742 : set_has_go_package();
8743 : go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
8744 : // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.go_package)
8745 : }
8746 : void FileOptions::set_go_package(const char* value, size_t size) {
8747 : set_has_go_package();
8748 : go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
8749 : ::std::string(reinterpret_cast<const char*>(value), size));
8750 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.go_package)
8751 : }
8752 : ::std::string* FileOptions::mutable_go_package() {
8753 : set_has_go_package();
8754 : // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.go_package)
8755 : return go_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8756 : }
8757 : ::std::string* FileOptions::release_go_package() {
8758 : clear_has_go_package();
8759 : return go_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8760 : }
8761 : void FileOptions::set_allocated_go_package(::std::string* go_package) {
8762 : if (go_package != NULL) {
8763 : set_has_go_package();
8764 : } else {
8765 : clear_has_go_package();
8766 : }
8767 : go_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), go_package);
8768 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.go_package)
8769 : }
8770 :
8771 : // optional bool cc_generic_services = 16 [default = false];
8772 : bool FileOptions::has_cc_generic_services() const {
8773 : return (_has_bits_[0] & 0x00000080u) != 0;
8774 : }
8775 : void FileOptions::set_has_cc_generic_services() {
8776 : _has_bits_[0] |= 0x00000080u;
8777 : }
8778 : void FileOptions::clear_has_cc_generic_services() {
8779 : _has_bits_[0] &= ~0x00000080u;
8780 : }
8781 : void FileOptions::clear_cc_generic_services() {
8782 : cc_generic_services_ = false;
8783 : clear_has_cc_generic_services();
8784 : }
8785 : bool FileOptions::cc_generic_services() const {
8786 : // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_generic_services)
8787 : return cc_generic_services_;
8788 : }
8789 : void FileOptions::set_cc_generic_services(bool value) {
8790 : set_has_cc_generic_services();
8791 : cc_generic_services_ = value;
8792 : // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_generic_services)
8793 : }
8794 :
8795 : // optional bool java_generic_services = 17 [default = false];
8796 : bool FileOptions::has_java_generic_services() const {
8797 : return (_has_bits_[0] & 0x00000100u) != 0;
8798 : }
8799 : void FileOptions::set_has_java_generic_services() {
8800 : _has_bits_[0] |= 0x00000100u;
8801 : }
8802 : void FileOptions::clear_has_java_generic_services() {
8803 : _has_bits_[0] &= ~0x00000100u;
8804 : }
8805 : void FileOptions::clear_java_generic_services() {
8806 : java_generic_services_ = false;
8807 : clear_has_java_generic_services();
8808 : }
8809 : bool FileOptions::java_generic_services() const {
8810 : // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generic_services)
8811 : return java_generic_services_;
8812 : }
8813 : void FileOptions::set_java_generic_services(bool value) {
8814 : set_has_java_generic_services();
8815 : java_generic_services_ = value;
8816 : // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generic_services)
8817 : }
8818 :
8819 : // optional bool py_generic_services = 18 [default = false];
8820 : bool FileOptions::has_py_generic_services() const {
8821 : return (_has_bits_[0] & 0x00000200u) != 0;
8822 : }
8823 : void FileOptions::set_has_py_generic_services() {
8824 : _has_bits_[0] |= 0x00000200u;
8825 : }
8826 : void FileOptions::clear_has_py_generic_services() {
8827 : _has_bits_[0] &= ~0x00000200u;
8828 : }
8829 : void FileOptions::clear_py_generic_services() {
8830 : py_generic_services_ = false;
8831 : clear_has_py_generic_services();
8832 : }
8833 : bool FileOptions::py_generic_services() const {
8834 : // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.py_generic_services)
8835 : return py_generic_services_;
8836 : }
8837 : void FileOptions::set_py_generic_services(bool value) {
8838 : set_has_py_generic_services();
8839 : py_generic_services_ = value;
8840 : // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.py_generic_services)
8841 : }
8842 :
8843 : // optional bool deprecated = 23 [default = false];
8844 : bool FileOptions::has_deprecated() const {
8845 : return (_has_bits_[0] & 0x00000400u) != 0;
8846 : }
8847 : void FileOptions::set_has_deprecated() {
8848 : _has_bits_[0] |= 0x00000400u;
8849 : }
8850 : void FileOptions::clear_has_deprecated() {
8851 : _has_bits_[0] &= ~0x00000400u;
8852 : }
8853 : void FileOptions::clear_deprecated() {
8854 : deprecated_ = false;
8855 : clear_has_deprecated();
8856 : }
8857 : bool FileOptions::deprecated() const {
8858 : // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.deprecated)
8859 : return deprecated_;
8860 : }
8861 : void FileOptions::set_deprecated(bool value) {
8862 : set_has_deprecated();
8863 : deprecated_ = value;
8864 : // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.deprecated)
8865 : }
8866 :
8867 : // optional bool cc_enable_arenas = 31 [default = false];
8868 : bool FileOptions::has_cc_enable_arenas() const {
8869 : return (_has_bits_[0] & 0x00000800u) != 0;
8870 : }
8871 : void FileOptions::set_has_cc_enable_arenas() {
8872 : _has_bits_[0] |= 0x00000800u;
8873 : }
8874 : void FileOptions::clear_has_cc_enable_arenas() {
8875 : _has_bits_[0] &= ~0x00000800u;
8876 : }
8877 : void FileOptions::clear_cc_enable_arenas() {
8878 : cc_enable_arenas_ = false;
8879 : clear_has_cc_enable_arenas();
8880 : }
8881 : bool FileOptions::cc_enable_arenas() const {
8882 : // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_enable_arenas)
8883 : return cc_enable_arenas_;
8884 : }
8885 : void FileOptions::set_cc_enable_arenas(bool value) {
8886 : set_has_cc_enable_arenas();
8887 : cc_enable_arenas_ = value;
8888 : // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_enable_arenas)
8889 : }
8890 :
8891 : // optional string objc_class_prefix = 36;
8892 : bool FileOptions::has_objc_class_prefix() const {
8893 : return (_has_bits_[0] & 0x00001000u) != 0;
8894 : }
8895 : void FileOptions::set_has_objc_class_prefix() {
8896 : _has_bits_[0] |= 0x00001000u;
8897 : }
8898 : void FileOptions::clear_has_objc_class_prefix() {
8899 : _has_bits_[0] &= ~0x00001000u;
8900 : }
8901 : void FileOptions::clear_objc_class_prefix() {
8902 : objc_class_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8903 : clear_has_objc_class_prefix();
8904 : }
8905 : const ::std::string& FileOptions::objc_class_prefix() const {
8906 : // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.objc_class_prefix)
8907 : return objc_class_prefix_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8908 : }
8909 : void FileOptions::set_objc_class_prefix(const ::std::string& value) {
8910 : set_has_objc_class_prefix();
8911 : objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
8912 : // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.objc_class_prefix)
8913 : }
8914 : void FileOptions::set_objc_class_prefix(const char* value) {
8915 : set_has_objc_class_prefix();
8916 : objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
8917 : // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.objc_class_prefix)
8918 : }
8919 : void FileOptions::set_objc_class_prefix(const char* value, size_t size) {
8920 : set_has_objc_class_prefix();
8921 : objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
8922 : ::std::string(reinterpret_cast<const char*>(value), size));
8923 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.objc_class_prefix)
8924 : }
8925 : ::std::string* FileOptions::mutable_objc_class_prefix() {
8926 : set_has_objc_class_prefix();
8927 : // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.objc_class_prefix)
8928 : return objc_class_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8929 : }
8930 : ::std::string* FileOptions::release_objc_class_prefix() {
8931 : clear_has_objc_class_prefix();
8932 : return objc_class_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8933 : }
8934 : void FileOptions::set_allocated_objc_class_prefix(::std::string* objc_class_prefix) {
8935 : if (objc_class_prefix != NULL) {
8936 : set_has_objc_class_prefix();
8937 : } else {
8938 : clear_has_objc_class_prefix();
8939 : }
8940 : objc_class_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), objc_class_prefix);
8941 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.objc_class_prefix)
8942 : }
8943 :
8944 : // optional string csharp_namespace = 37;
8945 : bool FileOptions::has_csharp_namespace() const {
8946 : return (_has_bits_[0] & 0x00002000u) != 0;
8947 : }
8948 : void FileOptions::set_has_csharp_namespace() {
8949 : _has_bits_[0] |= 0x00002000u;
8950 : }
8951 : void FileOptions::clear_has_csharp_namespace() {
8952 : _has_bits_[0] &= ~0x00002000u;
8953 : }
8954 : void FileOptions::clear_csharp_namespace() {
8955 : csharp_namespace_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8956 : clear_has_csharp_namespace();
8957 : }
8958 : const ::std::string& FileOptions::csharp_namespace() const {
8959 : // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.csharp_namespace)
8960 : return csharp_namespace_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8961 : }
8962 : void FileOptions::set_csharp_namespace(const ::std::string& value) {
8963 : set_has_csharp_namespace();
8964 : csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
8965 : // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.csharp_namespace)
8966 : }
8967 : void FileOptions::set_csharp_namespace(const char* value) {
8968 : set_has_csharp_namespace();
8969 : csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
8970 : // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.csharp_namespace)
8971 : }
8972 : void FileOptions::set_csharp_namespace(const char* value, size_t size) {
8973 : set_has_csharp_namespace();
8974 : csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
8975 : ::std::string(reinterpret_cast<const char*>(value), size));
8976 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.csharp_namespace)
8977 : }
8978 : ::std::string* FileOptions::mutable_csharp_namespace() {
8979 : set_has_csharp_namespace();
8980 : // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.csharp_namespace)
8981 : return csharp_namespace_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8982 : }
8983 : ::std::string* FileOptions::release_csharp_namespace() {
8984 : clear_has_csharp_namespace();
8985 : return csharp_namespace_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8986 : }
8987 : void FileOptions::set_allocated_csharp_namespace(::std::string* csharp_namespace) {
8988 : if (csharp_namespace != NULL) {
8989 : set_has_csharp_namespace();
8990 : } else {
8991 : clear_has_csharp_namespace();
8992 : }
8993 : csharp_namespace_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), csharp_namespace);
8994 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.csharp_namespace)
8995 : }
8996 :
8997 : // optional bool javanano_use_deprecated_package = 38;
8998 : bool FileOptions::has_javanano_use_deprecated_package() const {
8999 : return (_has_bits_[0] & 0x00004000u) != 0;
9000 : }
9001 : void FileOptions::set_has_javanano_use_deprecated_package() {
9002 : _has_bits_[0] |= 0x00004000u;
9003 : }
9004 : void FileOptions::clear_has_javanano_use_deprecated_package() {
9005 : _has_bits_[0] &= ~0x00004000u;
9006 : }
9007 : void FileOptions::clear_javanano_use_deprecated_package() {
9008 : javanano_use_deprecated_package_ = false;
9009 : clear_has_javanano_use_deprecated_package();
9010 : }
9011 : bool FileOptions::javanano_use_deprecated_package() const {
9012 : // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.javanano_use_deprecated_package)
9013 : return javanano_use_deprecated_package_;
9014 : }
9015 : void FileOptions::set_javanano_use_deprecated_package(bool value) {
9016 : set_has_javanano_use_deprecated_package();
9017 : javanano_use_deprecated_package_ = value;
9018 : // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.javanano_use_deprecated_package)
9019 : }
9020 :
9021 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9022 : int FileOptions::uninterpreted_option_size() const {
9023 : return uninterpreted_option_.size();
9024 : }
9025 : void FileOptions::clear_uninterpreted_option() {
9026 : uninterpreted_option_.Clear();
9027 : }
9028 : const ::google::protobuf::UninterpretedOption& FileOptions::uninterpreted_option(int index) const {
9029 : // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.uninterpreted_option)
9030 : return uninterpreted_option_.Get(index);
9031 : }
9032 : ::google::protobuf::UninterpretedOption* FileOptions::mutable_uninterpreted_option(int index) {
9033 : // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.uninterpreted_option)
9034 : return uninterpreted_option_.Mutable(index);
9035 : }
9036 : ::google::protobuf::UninterpretedOption* FileOptions::add_uninterpreted_option() {
9037 : // @@protoc_insertion_point(field_add:google.protobuf.FileOptions.uninterpreted_option)
9038 : return uninterpreted_option_.Add();
9039 : }
9040 : ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
9041 : FileOptions::mutable_uninterpreted_option() {
9042 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileOptions.uninterpreted_option)
9043 : return &uninterpreted_option_;
9044 : }
9045 : const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
9046 : FileOptions::uninterpreted_option() const {
9047 : // @@protoc_insertion_point(field_list:google.protobuf.FileOptions.uninterpreted_option)
9048 : return uninterpreted_option_;
9049 : }
9050 :
9051 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
9052 :
9053 : // ===================================================================
9054 :
9055 : #ifndef _MSC_VER
9056 : const int MessageOptions::kMessageSetWireFormatFieldNumber;
9057 : const int MessageOptions::kNoStandardDescriptorAccessorFieldNumber;
9058 : const int MessageOptions::kDeprecatedFieldNumber;
9059 : const int MessageOptions::kMapEntryFieldNumber;
9060 : const int MessageOptions::kUninterpretedOptionFieldNumber;
9061 : #endif // !_MSC_VER
9062 :
9063 408 : MessageOptions::MessageOptions()
9064 1224 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9065 408 : SharedCtor();
9066 : // @@protoc_insertion_point(constructor:google.protobuf.MessageOptions)
9067 408 : }
9068 :
9069 46 : void MessageOptions::InitAsDefaultInstance() {
9070 46 : }
9071 :
9072 0 : MessageOptions::MessageOptions(const MessageOptions& from)
9073 : : ::google::protobuf::Message(),
9074 0 : _internal_metadata_(NULL) {
9075 0 : SharedCtor();
9076 0 : MergeFrom(from);
9077 : // @@protoc_insertion_point(copy_constructor:google.protobuf.MessageOptions)
9078 0 : }
9079 :
9080 408 : void MessageOptions::SharedCtor() {
9081 408 : _cached_size_ = 0;
9082 408 : message_set_wire_format_ = false;
9083 408 : no_standard_descriptor_accessor_ = false;
9084 408 : deprecated_ = false;
9085 408 : map_entry_ = false;
9086 408 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
9087 408 : }
9088 :
9089 1448 : MessageOptions::~MessageOptions() {
9090 : // @@protoc_insertion_point(destructor:google.protobuf.MessageOptions)
9091 362 : SharedDtor();
9092 724 : }
9093 :
9094 362 : void MessageOptions::SharedDtor() {
9095 : if (this != default_instance_) {
9096 : }
9097 362 : }
9098 :
9099 0 : void MessageOptions::SetCachedSize(int size) const {
9100 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9101 0 : _cached_size_ = size;
9102 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
9103 0 : }
9104 0 : const ::google::protobuf::Descriptor* MessageOptions::descriptor() {
9105 : protobuf_AssignDescriptorsOnce();
9106 0 : return MessageOptions_descriptor_;
9107 : }
9108 :
9109 5106 : const MessageOptions& MessageOptions::default_instance() {
9110 5106 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
9111 5106 : return *default_instance_;
9112 : }
9113 :
9114 : MessageOptions* MessageOptions::default_instance_ = NULL;
9115 :
9116 0 : MessageOptions* MessageOptions::New(::google::protobuf::Arena* arena) const {
9117 0 : MessageOptions* n = new MessageOptions;
9118 0 : if (arena != NULL) {
9119 0 : arena->Own(n);
9120 : }
9121 0 : return n;
9122 : }
9123 :
9124 238 : void MessageOptions::Clear() {
9125 238 : _extensions_.Clear();
9126 : #define ZR_HELPER_(f) reinterpret_cast<char*>(\
9127 : &reinterpret_cast<MessageOptions*>(16)->f)
9128 :
9129 : #define ZR_(first, last) do {\
9130 : ::memset(&first, 0,\
9131 : ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
9132 : } while (0)
9133 :
9134 238 : ZR_(message_set_wire_format_, map_entry_);
9135 :
9136 : #undef ZR_HELPER_
9137 : #undef ZR_
9138 :
9139 238 : uninterpreted_option_.Clear();
9140 238 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
9141 476 : if (_internal_metadata_.have_unknown_fields()) {
9142 11 : mutable_unknown_fields()->Clear();
9143 : }
9144 238 : }
9145 :
9146 146 : bool MessageOptions::MergePartialFromCodedStream(
9147 : ::google::protobuf::io::CodedInputStream* input) {
9148 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
9149 : ::google::protobuf::uint32 tag;
9150 : // @@protoc_insertion_point(parse_start:google.protobuf.MessageOptions)
9151 : for (;;) {
9152 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
9153 328 : tag = p.first;
9154 328 : if (!p.second) goto handle_unusual;
9155 138 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9156 : // optional bool message_set_wire_format = 1 [default = false];
9157 : case 1: {
9158 3 : if (tag == 8) {
9159 6 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9160 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
9161 : input, &message_set_wire_format_)));
9162 3 : set_has_message_set_wire_format();
9163 : } else {
9164 : goto handle_unusual;
9165 : }
9166 3 : if (input->ExpectTag(16)) goto parse_no_standard_descriptor_accessor;
9167 : break;
9168 : }
9169 :
9170 : // optional bool no_standard_descriptor_accessor = 2 [default = false];
9171 : case 2: {
9172 0 : if (tag == 16) {
9173 : parse_no_standard_descriptor_accessor:
9174 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9175 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
9176 : input, &no_standard_descriptor_accessor_)));
9177 0 : set_has_no_standard_descriptor_accessor();
9178 : } else {
9179 : goto handle_unusual;
9180 : }
9181 0 : if (input->ExpectTag(24)) goto parse_deprecated;
9182 : break;
9183 : }
9184 :
9185 : // optional bool deprecated = 3 [default = false];
9186 : case 3: {
9187 0 : if (tag == 24) {
9188 : parse_deprecated:
9189 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9190 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
9191 : input, &deprecated_)));
9192 0 : set_has_deprecated();
9193 : } else {
9194 : goto handle_unusual;
9195 : }
9196 0 : if (input->ExpectTag(56)) goto parse_map_entry;
9197 : break;
9198 : }
9199 :
9200 : // optional bool map_entry = 7;
9201 : case 7: {
9202 124 : if (tag == 56) {
9203 : parse_map_entry:
9204 248 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9205 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
9206 : input, &map_entry_)));
9207 124 : set_has_map_entry();
9208 : } else {
9209 : goto handle_unusual;
9210 : }
9211 124 : if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
9212 : break;
9213 : }
9214 :
9215 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9216 : case 999: {
9217 11 : if (tag == 7994) {
9218 : parse_uninterpreted_option:
9219 22 : DO_(input->IncrementRecursionDepth());
9220 : parse_loop_uninterpreted_option:
9221 58 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
9222 : input, add_uninterpreted_option()));
9223 : } else {
9224 : goto handle_unusual;
9225 : }
9226 58 : if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
9227 11 : input->UnsafeDecrementRecursionDepth();
9228 11 : if (input->ExpectAtEnd()) goto success;
9229 : break;
9230 : }
9231 :
9232 : default: {
9233 : handle_unusual:
9234 245 : if (tag == 0 ||
9235 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
9236 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
9237 : goto success;
9238 : }
9239 55 : if ((8000u <= tag)) {
9240 55 : DO_(_extensions_.ParseField(tag, input, default_instance_,
9241 : mutable_unknown_fields()));
9242 : continue;
9243 : }
9244 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
9245 : input, tag, mutable_unknown_fields()));
9246 : break;
9247 : }
9248 : }
9249 : }
9250 : success:
9251 : // @@protoc_insertion_point(parse_success:google.protobuf.MessageOptions)
9252 146 : return true;
9253 : failure:
9254 : // @@protoc_insertion_point(parse_failure:google.protobuf.MessageOptions)
9255 0 : return false;
9256 : #undef DO_
9257 : }
9258 :
9259 0 : void MessageOptions::SerializeWithCachedSizes(
9260 0 : ::google::protobuf::io::CodedOutputStream* output) const {
9261 : // @@protoc_insertion_point(serialize_start:google.protobuf.MessageOptions)
9262 : // optional bool message_set_wire_format = 1 [default = false];
9263 0 : if (has_message_set_wire_format()) {
9264 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->message_set_wire_format(), output);
9265 : }
9266 :
9267 : // optional bool no_standard_descriptor_accessor = 2 [default = false];
9268 0 : if (has_no_standard_descriptor_accessor()) {
9269 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->no_standard_descriptor_accessor(), output);
9270 : }
9271 :
9272 : // optional bool deprecated = 3 [default = false];
9273 0 : if (has_deprecated()) {
9274 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output);
9275 : }
9276 :
9277 : // optional bool map_entry = 7;
9278 0 : if (has_map_entry()) {
9279 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->map_entry(), output);
9280 : }
9281 :
9282 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9283 0 : for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
9284 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9285 0 : 999, this->uninterpreted_option(i), output);
9286 : }
9287 :
9288 : // Extension range [1000, 536870912)
9289 : _extensions_.SerializeWithCachedSizes(
9290 0 : 1000, 536870912, output);
9291 :
9292 0 : if (_internal_metadata_.have_unknown_fields()) {
9293 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9294 0 : unknown_fields(), output);
9295 : }
9296 : // @@protoc_insertion_point(serialize_end:google.protobuf.MessageOptions)
9297 0 : }
9298 :
9299 238 : ::google::protobuf::uint8* MessageOptions::SerializeWithCachedSizesToArray(
9300 1160 : ::google::protobuf::uint8* target) const {
9301 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MessageOptions)
9302 : // optional bool message_set_wire_format = 1 [default = false];
9303 476 : if (has_message_set_wire_format()) {
9304 6 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->message_set_wire_format(), target);
9305 : }
9306 :
9307 : // optional bool no_standard_descriptor_accessor = 2 [default = false];
9308 476 : if (has_no_standard_descriptor_accessor()) {
9309 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->no_standard_descriptor_accessor(), target);
9310 : }
9311 :
9312 : // optional bool deprecated = 3 [default = false];
9313 476 : if (has_deprecated()) {
9314 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target);
9315 : }
9316 :
9317 : // optional bool map_entry = 7;
9318 476 : if (has_map_entry()) {
9319 410 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->map_entry(), target);
9320 : }
9321 :
9322 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9323 534 : for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
9324 : target = ::google::protobuf::internal::WireFormatLite::
9325 : WriteMessageNoVirtualToArray(
9326 174 : 999, this->uninterpreted_option(i), target);
9327 : }
9328 :
9329 : // Extension range [1000, 536870912)
9330 : target = _extensions_.SerializeWithCachedSizesToArray(
9331 238 : 1000, 536870912, target);
9332 :
9333 476 : if (_internal_metadata_.have_unknown_fields()) {
9334 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9335 22 : unknown_fields(), target);
9336 : }
9337 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MessageOptions)
9338 238 : return target;
9339 : }
9340 :
9341 238 : int MessageOptions::ByteSize() const {
9342 238 : int total_size = 0;
9343 :
9344 238 : if (_has_bits_[0 / 32] & 15u) {
9345 : // optional bool message_set_wire_format = 1 [default = false];
9346 416 : if (has_message_set_wire_format()) {
9347 3 : total_size += 1 + 1;
9348 : }
9349 :
9350 : // optional bool no_standard_descriptor_accessor = 2 [default = false];
9351 416 : if (has_no_standard_descriptor_accessor()) {
9352 0 : total_size += 1 + 1;
9353 : }
9354 :
9355 : // optional bool deprecated = 3 [default = false];
9356 416 : if (has_deprecated()) {
9357 0 : total_size += 1 + 1;
9358 : }
9359 :
9360 : // optional bool map_entry = 7;
9361 416 : if (has_map_entry()) {
9362 205 : total_size += 1 + 1;
9363 : }
9364 :
9365 : }
9366 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9367 238 : total_size += 2 * this->uninterpreted_option_size();
9368 592 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
9369 : total_size +=
9370 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
9371 58 : this->uninterpreted_option(i));
9372 : }
9373 :
9374 238 : total_size += _extensions_.ByteSize();
9375 :
9376 476 : if (_internal_metadata_.have_unknown_fields()) {
9377 : total_size +=
9378 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9379 22 : unknown_fields());
9380 : }
9381 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9382 238 : _cached_size_ = total_size;
9383 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
9384 238 : return total_size;
9385 : }
9386 :
9387 0 : void MessageOptions::MergeFrom(const ::google::protobuf::Message& from) {
9388 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
9389 : const MessageOptions* source =
9390 : ::google::protobuf::internal::DynamicCastToGenerated<const MessageOptions>(
9391 0 : &from);
9392 0 : if (source == NULL) {
9393 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9394 : } else {
9395 0 : MergeFrom(*source);
9396 : }
9397 0 : }
9398 :
9399 428 : void MessageOptions::MergeFrom(const MessageOptions& from) {
9400 92 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
9401 92 : uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
9402 92 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
9403 168 : if (from.has_message_set_wire_format()) {
9404 3 : set_message_set_wire_format(from.message_set_wire_format());
9405 : }
9406 168 : if (from.has_no_standard_descriptor_accessor()) {
9407 0 : set_no_standard_descriptor_accessor(from.no_standard_descriptor_accessor());
9408 : }
9409 168 : if (from.has_deprecated()) {
9410 0 : set_deprecated(from.deprecated());
9411 : }
9412 168 : if (from.has_map_entry()) {
9413 81 : set_map_entry(from.map_entry());
9414 : }
9415 : }
9416 92 : _extensions_.MergeFrom(from._extensions_);
9417 184 : if (from._internal_metadata_.have_unknown_fields()) {
9418 11 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
9419 : }
9420 92 : }
9421 :
9422 0 : void MessageOptions::CopyFrom(const ::google::protobuf::Message& from) {
9423 0 : if (&from == this) return;
9424 0 : Clear();
9425 0 : MergeFrom(from);
9426 : }
9427 :
9428 92 : void MessageOptions::CopyFrom(const MessageOptions& from) {
9429 184 : if (&from == this) return;
9430 92 : Clear();
9431 92 : MergeFrom(from);
9432 : }
9433 :
9434 146 : bool MessageOptions::IsInitialized() const {
9435 :
9436 292 : if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
9437 :
9438 146 : if (!_extensions_.IsInitialized()) return false; return true;
9439 : }
9440 :
9441 0 : void MessageOptions::Swap(MessageOptions* other) {
9442 0 : if (other == this) return;
9443 0 : InternalSwap(other);
9444 : }
9445 0 : void MessageOptions::InternalSwap(MessageOptions* other) {
9446 0 : std::swap(message_set_wire_format_, other->message_set_wire_format_);
9447 0 : std::swap(no_standard_descriptor_accessor_, other->no_standard_descriptor_accessor_);
9448 0 : std::swap(deprecated_, other->deprecated_);
9449 0 : std::swap(map_entry_, other->map_entry_);
9450 0 : uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
9451 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
9452 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
9453 0 : std::swap(_cached_size_, other->_cached_size_);
9454 0 : _extensions_.Swap(&other->_extensions_);
9455 0 : }
9456 :
9457 446 : ::google::protobuf::Metadata MessageOptions::GetMetadata() const {
9458 : protobuf_AssignDescriptorsOnce();
9459 : ::google::protobuf::Metadata metadata;
9460 446 : metadata.descriptor = MessageOptions_descriptor_;
9461 446 : metadata.reflection = MessageOptions_reflection_;
9462 446 : return metadata;
9463 : }
9464 :
9465 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
9466 : // MessageOptions
9467 :
9468 : // optional bool message_set_wire_format = 1 [default = false];
9469 : bool MessageOptions::has_message_set_wire_format() const {
9470 : return (_has_bits_[0] & 0x00000001u) != 0;
9471 : }
9472 : void MessageOptions::set_has_message_set_wire_format() {
9473 : _has_bits_[0] |= 0x00000001u;
9474 : }
9475 : void MessageOptions::clear_has_message_set_wire_format() {
9476 : _has_bits_[0] &= ~0x00000001u;
9477 : }
9478 : void MessageOptions::clear_message_set_wire_format() {
9479 : message_set_wire_format_ = false;
9480 : clear_has_message_set_wire_format();
9481 : }
9482 : bool MessageOptions::message_set_wire_format() const {
9483 : // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.message_set_wire_format)
9484 : return message_set_wire_format_;
9485 : }
9486 : void MessageOptions::set_message_set_wire_format(bool value) {
9487 : set_has_message_set_wire_format();
9488 : message_set_wire_format_ = value;
9489 : // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.message_set_wire_format)
9490 : }
9491 :
9492 : // optional bool no_standard_descriptor_accessor = 2 [default = false];
9493 : bool MessageOptions::has_no_standard_descriptor_accessor() const {
9494 : return (_has_bits_[0] & 0x00000002u) != 0;
9495 : }
9496 : void MessageOptions::set_has_no_standard_descriptor_accessor() {
9497 : _has_bits_[0] |= 0x00000002u;
9498 : }
9499 : void MessageOptions::clear_has_no_standard_descriptor_accessor() {
9500 : _has_bits_[0] &= ~0x00000002u;
9501 : }
9502 : void MessageOptions::clear_no_standard_descriptor_accessor() {
9503 : no_standard_descriptor_accessor_ = false;
9504 : clear_has_no_standard_descriptor_accessor();
9505 : }
9506 : bool MessageOptions::no_standard_descriptor_accessor() const {
9507 : // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
9508 : return no_standard_descriptor_accessor_;
9509 : }
9510 : void MessageOptions::set_no_standard_descriptor_accessor(bool value) {
9511 : set_has_no_standard_descriptor_accessor();
9512 : no_standard_descriptor_accessor_ = value;
9513 : // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
9514 : }
9515 :
9516 : // optional bool deprecated = 3 [default = false];
9517 : bool MessageOptions::has_deprecated() const {
9518 : return (_has_bits_[0] & 0x00000004u) != 0;
9519 : }
9520 : void MessageOptions::set_has_deprecated() {
9521 : _has_bits_[0] |= 0x00000004u;
9522 : }
9523 : void MessageOptions::clear_has_deprecated() {
9524 : _has_bits_[0] &= ~0x00000004u;
9525 : }
9526 : void MessageOptions::clear_deprecated() {
9527 : deprecated_ = false;
9528 : clear_has_deprecated();
9529 : }
9530 : bool MessageOptions::deprecated() const {
9531 : // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.deprecated)
9532 : return deprecated_;
9533 : }
9534 : void MessageOptions::set_deprecated(bool value) {
9535 : set_has_deprecated();
9536 : deprecated_ = value;
9537 : // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.deprecated)
9538 : }
9539 :
9540 : // optional bool map_entry = 7;
9541 : bool MessageOptions::has_map_entry() const {
9542 : return (_has_bits_[0] & 0x00000008u) != 0;
9543 : }
9544 : void MessageOptions::set_has_map_entry() {
9545 : _has_bits_[0] |= 0x00000008u;
9546 : }
9547 : void MessageOptions::clear_has_map_entry() {
9548 : _has_bits_[0] &= ~0x00000008u;
9549 : }
9550 : void MessageOptions::clear_map_entry() {
9551 : map_entry_ = false;
9552 : clear_has_map_entry();
9553 : }
9554 : bool MessageOptions::map_entry() const {
9555 : // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.map_entry)
9556 : return map_entry_;
9557 : }
9558 : void MessageOptions::set_map_entry(bool value) {
9559 : set_has_map_entry();
9560 : map_entry_ = value;
9561 : // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.map_entry)
9562 : }
9563 :
9564 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9565 : int MessageOptions::uninterpreted_option_size() const {
9566 : return uninterpreted_option_.size();
9567 : }
9568 : void MessageOptions::clear_uninterpreted_option() {
9569 : uninterpreted_option_.Clear();
9570 : }
9571 : const ::google::protobuf::UninterpretedOption& MessageOptions::uninterpreted_option(int index) const {
9572 : // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.uninterpreted_option)
9573 : return uninterpreted_option_.Get(index);
9574 : }
9575 : ::google::protobuf::UninterpretedOption* MessageOptions::mutable_uninterpreted_option(int index) {
9576 : // @@protoc_insertion_point(field_mutable:google.protobuf.MessageOptions.uninterpreted_option)
9577 : return uninterpreted_option_.Mutable(index);
9578 : }
9579 : ::google::protobuf::UninterpretedOption* MessageOptions::add_uninterpreted_option() {
9580 : // @@protoc_insertion_point(field_add:google.protobuf.MessageOptions.uninterpreted_option)
9581 : return uninterpreted_option_.Add();
9582 : }
9583 : ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
9584 : MessageOptions::mutable_uninterpreted_option() {
9585 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.MessageOptions.uninterpreted_option)
9586 : return &uninterpreted_option_;
9587 : }
9588 : const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
9589 : MessageOptions::uninterpreted_option() const {
9590 : // @@protoc_insertion_point(field_list:google.protobuf.MessageOptions.uninterpreted_option)
9591 : return uninterpreted_option_;
9592 : }
9593 :
9594 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
9595 :
9596 : // ===================================================================
9597 :
9598 0 : const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor() {
9599 : protobuf_AssignDescriptorsOnce();
9600 0 : return FieldOptions_CType_descriptor_;
9601 : }
9602 55 : bool FieldOptions_CType_IsValid(int value) {
9603 55 : switch(value) {
9604 : case 0:
9605 : case 1:
9606 : case 2:
9607 : return true;
9608 : default:
9609 0 : return false;
9610 : }
9611 : }
9612 :
9613 : #ifndef _MSC_VER
9614 : const FieldOptions_CType FieldOptions::STRING;
9615 : const FieldOptions_CType FieldOptions::CORD;
9616 : const FieldOptions_CType FieldOptions::STRING_PIECE;
9617 : const FieldOptions_CType FieldOptions::CType_MIN;
9618 : const FieldOptions_CType FieldOptions::CType_MAX;
9619 : const int FieldOptions::CType_ARRAYSIZE;
9620 : #endif // _MSC_VER
9621 0 : const ::google::protobuf::EnumDescriptor* FieldOptions_JSType_descriptor() {
9622 : protobuf_AssignDescriptorsOnce();
9623 0 : return FieldOptions_JSType_descriptor_;
9624 : }
9625 0 : bool FieldOptions_JSType_IsValid(int value) {
9626 0 : switch(value) {
9627 : case 0:
9628 : case 1:
9629 : case 2:
9630 : return true;
9631 : default:
9632 0 : return false;
9633 : }
9634 : }
9635 :
9636 : #ifndef _MSC_VER
9637 : const FieldOptions_JSType FieldOptions::JS_NORMAL;
9638 : const FieldOptions_JSType FieldOptions::JS_STRING;
9639 : const FieldOptions_JSType FieldOptions::JS_NUMBER;
9640 : const FieldOptions_JSType FieldOptions::JSType_MIN;
9641 : const FieldOptions_JSType FieldOptions::JSType_MAX;
9642 : const int FieldOptions::JSType_ARRAYSIZE;
9643 : #endif // _MSC_VER
9644 : #ifndef _MSC_VER
9645 : const int FieldOptions::kCtypeFieldNumber;
9646 : const int FieldOptions::kPackedFieldNumber;
9647 : const int FieldOptions::kJstypeFieldNumber;
9648 : const int FieldOptions::kLazyFieldNumber;
9649 : const int FieldOptions::kDeprecatedFieldNumber;
9650 : const int FieldOptions::kWeakFieldNumber;
9651 : const int FieldOptions::kUninterpretedOptionFieldNumber;
9652 : #endif // !_MSC_VER
9653 :
9654 750 : FieldOptions::FieldOptions()
9655 2250 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9656 750 : SharedCtor();
9657 : // @@protoc_insertion_point(constructor:google.protobuf.FieldOptions)
9658 750 : }
9659 :
9660 46 : void FieldOptions::InitAsDefaultInstance() {
9661 46 : }
9662 :
9663 0 : FieldOptions::FieldOptions(const FieldOptions& from)
9664 : : ::google::protobuf::Message(),
9665 0 : _internal_metadata_(NULL) {
9666 0 : SharedCtor();
9667 0 : MergeFrom(from);
9668 : // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldOptions)
9669 0 : }
9670 :
9671 750 : void FieldOptions::SharedCtor() {
9672 750 : _cached_size_ = 0;
9673 750 : ctype_ = 0;
9674 750 : packed_ = false;
9675 750 : jstype_ = 0;
9676 750 : lazy_ = false;
9677 750 : deprecated_ = false;
9678 750 : weak_ = false;
9679 750 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
9680 750 : }
9681 :
9682 2776 : FieldOptions::~FieldOptions() {
9683 : // @@protoc_insertion_point(destructor:google.protobuf.FieldOptions)
9684 694 : SharedDtor();
9685 1388 : }
9686 :
9687 694 : void FieldOptions::SharedDtor() {
9688 : if (this != default_instance_) {
9689 : }
9690 694 : }
9691 :
9692 0 : void FieldOptions::SetCachedSize(int size) const {
9693 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9694 0 : _cached_size_ = size;
9695 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
9696 0 : }
9697 0 : const ::google::protobuf::Descriptor* FieldOptions::descriptor() {
9698 : protobuf_AssignDescriptorsOnce();
9699 0 : return FieldOptions_descriptor_;
9700 : }
9701 :
9702 6503 : const FieldOptions& FieldOptions::default_instance() {
9703 6503 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
9704 6503 : return *default_instance_;
9705 : }
9706 :
9707 : FieldOptions* FieldOptions::default_instance_ = NULL;
9708 :
9709 0 : FieldOptions* FieldOptions::New(::google::protobuf::Arena* arena) const {
9710 0 : FieldOptions* n = new FieldOptions;
9711 0 : if (arena != NULL) {
9712 0 : arena->Own(n);
9713 : }
9714 0 : return n;
9715 : }
9716 :
9717 602 : void FieldOptions::Clear() {
9718 602 : _extensions_.Clear();
9719 : #define ZR_HELPER_(f) reinterpret_cast<char*>(\
9720 : &reinterpret_cast<FieldOptions*>(16)->f)
9721 :
9722 : #define ZR_(first, last) do {\
9723 : ::memset(&first, 0,\
9724 : ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
9725 : } while (0)
9726 :
9727 602 : if (_has_bits_[0 / 32] & 63u) {
9728 0 : ZR_(ctype_, jstype_);
9729 0 : ZR_(packed_, weak_);
9730 : }
9731 :
9732 : #undef ZR_HELPER_
9733 : #undef ZR_
9734 :
9735 602 : uninterpreted_option_.Clear();
9736 602 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
9737 1204 : if (_internal_metadata_.have_unknown_fields()) {
9738 213 : mutable_unknown_fields()->Clear();
9739 : }
9740 602 : }
9741 :
9742 538 : bool FieldOptions::MergePartialFromCodedStream(
9743 : ::google::protobuf::io::CodedInputStream* input) {
9744 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
9745 : ::google::protobuf::uint32 tag;
9746 : // @@protoc_insertion_point(parse_start:google.protobuf.FieldOptions)
9747 : for (;;) {
9748 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
9749 864 : tag = p.first;
9750 864 : if (!p.second) goto handle_unusual;
9751 535 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9752 : // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
9753 : case 1: {
9754 55 : if (tag == 8) {
9755 : int value;
9756 55 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9757 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
9758 : input, &value)));
9759 55 : if (::google::protobuf::FieldOptions_CType_IsValid(value)) {
9760 55 : set_ctype(static_cast< ::google::protobuf::FieldOptions_CType >(value));
9761 : } else {
9762 0 : mutable_unknown_fields()->AddVarint(1, value);
9763 : }
9764 : } else {
9765 : goto handle_unusual;
9766 : }
9767 55 : if (input->ExpectTag(16)) goto parse_packed;
9768 : break;
9769 : }
9770 :
9771 : // optional bool packed = 2;
9772 : case 2: {
9773 247 : if (tag == 16) {
9774 : parse_packed:
9775 494 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9776 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
9777 : input, &packed_)));
9778 247 : set_has_packed();
9779 : } else {
9780 : goto handle_unusual;
9781 : }
9782 247 : if (input->ExpectTag(24)) goto parse_deprecated;
9783 : break;
9784 : }
9785 :
9786 : // optional bool deprecated = 3 [default = false];
9787 : case 3: {
9788 2 : if (tag == 24) {
9789 : parse_deprecated:
9790 4 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9791 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
9792 : input, &deprecated_)));
9793 2 : set_has_deprecated();
9794 : } else {
9795 : goto handle_unusual;
9796 : }
9797 2 : if (input->ExpectTag(40)) goto parse_lazy;
9798 : break;
9799 : }
9800 :
9801 : // optional bool lazy = 5 [default = false];
9802 : case 5: {
9803 18 : if (tag == 40) {
9804 : parse_lazy:
9805 36 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9806 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
9807 : input, &lazy_)));
9808 18 : set_has_lazy();
9809 : } else {
9810 : goto handle_unusual;
9811 : }
9812 18 : if (input->ExpectTag(48)) goto parse_jstype;
9813 : break;
9814 : }
9815 :
9816 : // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
9817 : case 6: {
9818 0 : if (tag == 48) {
9819 : parse_jstype:
9820 : int value;
9821 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9822 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
9823 : input, &value)));
9824 0 : if (::google::protobuf::FieldOptions_JSType_IsValid(value)) {
9825 0 : set_jstype(static_cast< ::google::protobuf::FieldOptions_JSType >(value));
9826 : } else {
9827 0 : mutable_unknown_fields()->AddVarint(6, value);
9828 : }
9829 : } else {
9830 : goto handle_unusual;
9831 : }
9832 0 : if (input->ExpectTag(80)) goto parse_weak;
9833 : break;
9834 : }
9835 :
9836 : // optional bool weak = 10 [default = false];
9837 : case 10: {
9838 0 : if (tag == 80) {
9839 : parse_weak:
9840 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9841 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
9842 : input, &weak_)));
9843 0 : set_has_weak();
9844 : } else {
9845 : goto handle_unusual;
9846 : }
9847 0 : if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
9848 : break;
9849 : }
9850 :
9851 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9852 : case 999: {
9853 213 : if (tag == 7994) {
9854 : parse_uninterpreted_option:
9855 426 : DO_(input->IncrementRecursionDepth());
9856 : parse_loop_uninterpreted_option:
9857 214 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
9858 : input, add_uninterpreted_option()));
9859 : } else {
9860 : goto handle_unusual;
9861 : }
9862 214 : if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
9863 213 : input->UnsafeDecrementRecursionDepth();
9864 213 : if (input->ExpectAtEnd()) goto success;
9865 : break;
9866 : }
9867 :
9868 : default: {
9869 : handle_unusual:
9870 333 : if (tag == 0 ||
9871 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
9872 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
9873 : goto success;
9874 : }
9875 4 : if ((8000u <= tag)) {
9876 4 : DO_(_extensions_.ParseField(tag, input, default_instance_,
9877 : mutable_unknown_fields()));
9878 : continue;
9879 : }
9880 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
9881 : input, tag, mutable_unknown_fields()));
9882 : break;
9883 : }
9884 : }
9885 : }
9886 : success:
9887 : // @@protoc_insertion_point(parse_success:google.protobuf.FieldOptions)
9888 538 : return true;
9889 : failure:
9890 : // @@protoc_insertion_point(parse_failure:google.protobuf.FieldOptions)
9891 0 : return false;
9892 : #undef DO_
9893 : }
9894 :
9895 0 : void FieldOptions::SerializeWithCachedSizes(
9896 0 : ::google::protobuf::io::CodedOutputStream* output) const {
9897 : // @@protoc_insertion_point(serialize_start:google.protobuf.FieldOptions)
9898 : // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
9899 0 : if (has_ctype()) {
9900 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
9901 0 : 1, this->ctype(), output);
9902 : }
9903 :
9904 : // optional bool packed = 2;
9905 0 : if (has_packed()) {
9906 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->packed(), output);
9907 : }
9908 :
9909 : // optional bool deprecated = 3 [default = false];
9910 0 : if (has_deprecated()) {
9911 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output);
9912 : }
9913 :
9914 : // optional bool lazy = 5 [default = false];
9915 0 : if (has_lazy()) {
9916 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->lazy(), output);
9917 : }
9918 :
9919 : // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
9920 0 : if (has_jstype()) {
9921 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
9922 0 : 6, this->jstype(), output);
9923 : }
9924 :
9925 : // optional bool weak = 10 [default = false];
9926 0 : if (has_weak()) {
9927 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->weak(), output);
9928 : }
9929 :
9930 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9931 0 : for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
9932 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9933 0 : 999, this->uninterpreted_option(i), output);
9934 : }
9935 :
9936 : // Extension range [1000, 536870912)
9937 : _extensions_.SerializeWithCachedSizes(
9938 0 : 1000, 536870912, output);
9939 :
9940 0 : if (_internal_metadata_.have_unknown_fields()) {
9941 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9942 0 : unknown_fields(), output);
9943 : }
9944 : // @@protoc_insertion_point(serialize_end:google.protobuf.FieldOptions)
9945 0 : }
9946 :
9947 602 : ::google::protobuf::uint8* FieldOptions::SerializeWithCachedSizesToArray(
9948 3785 : ::google::protobuf::uint8* target) const {
9949 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldOptions)
9950 : // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
9951 1204 : if (has_ctype()) {
9952 : target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
9953 86 : 1, this->ctype(), target);
9954 : }
9955 :
9956 : // optional bool packed = 2;
9957 1204 : if (has_packed()) {
9958 230 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->packed(), target);
9959 : }
9960 :
9961 : // optional bool deprecated = 3 [default = false];
9962 1204 : if (has_deprecated()) {
9963 2 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target);
9964 : }
9965 :
9966 : // optional bool lazy = 5 [default = false];
9967 1204 : if (has_lazy()) {
9968 28 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->lazy(), target);
9969 : }
9970 :
9971 : // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
9972 1204 : if (has_jstype()) {
9973 : target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
9974 0 : 6, this->jstype(), target);
9975 : }
9976 :
9977 : // optional bool weak = 10 [default = false];
9978 1204 : if (has_weak()) {
9979 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->weak(), target);
9980 : }
9981 :
9982 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9983 1418 : for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
9984 : target = ::google::protobuf::internal::WireFormatLite::
9985 : WriteMessageNoVirtualToArray(
9986 642 : 999, this->uninterpreted_option(i), target);
9987 : }
9988 :
9989 : // Extension range [1000, 536870912)
9990 : target = _extensions_.SerializeWithCachedSizesToArray(
9991 602 : 1000, 536870912, target);
9992 :
9993 1204 : if (_internal_metadata_.have_unknown_fields()) {
9994 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9995 379 : unknown_fields(), target);
9996 : }
9997 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldOptions)
9998 602 : return target;
9999 : }
10000 :
10001 991 : int FieldOptions::ByteSize() const {
10002 602 : int total_size = 0;
10003 :
10004 602 : if (_has_bits_[0 / 32] & 63u) {
10005 : // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
10006 346 : if (has_ctype()) {
10007 : total_size += 1 +
10008 129 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->ctype());
10009 : }
10010 :
10011 : // optional bool packed = 2;
10012 346 : if (has_packed()) {
10013 115 : total_size += 1 + 1;
10014 : }
10015 :
10016 : // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
10017 346 : if (has_jstype()) {
10018 : total_size += 1 +
10019 0 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->jstype());
10020 : }
10021 :
10022 : // optional bool lazy = 5 [default = false];
10023 346 : if (has_lazy()) {
10024 14 : total_size += 1 + 1;
10025 : }
10026 :
10027 : // optional bool deprecated = 3 [default = false];
10028 346 : if (has_deprecated()) {
10029 1 : total_size += 1 + 1;
10030 : }
10031 :
10032 : // optional bool weak = 10 [default = false];
10033 346 : if (has_weak()) {
10034 0 : total_size += 1 + 1;
10035 : }
10036 :
10037 : }
10038 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10039 602 : total_size += 2 * this->uninterpreted_option_size();
10040 1632 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
10041 : total_size +=
10042 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
10043 214 : this->uninterpreted_option(i));
10044 : }
10045 :
10046 602 : total_size += _extensions_.ByteSize();
10047 :
10048 1204 : if (_internal_metadata_.have_unknown_fields()) {
10049 : total_size +=
10050 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10051 379 : unknown_fields());
10052 : }
10053 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10054 602 : _cached_size_ = total_size;
10055 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
10056 602 : return total_size;
10057 : }
10058 :
10059 0 : void FieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
10060 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
10061 : const FieldOptions* source =
10062 : ::google::protobuf::internal::DynamicCastToGenerated<const FieldOptions>(
10063 0 : &from);
10064 0 : if (source == NULL) {
10065 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10066 : } else {
10067 0 : MergeFrom(*source);
10068 : }
10069 0 : }
10070 :
10071 1144 : void FieldOptions::MergeFrom(const FieldOptions& from) {
10072 166 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
10073 166 : uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
10074 166 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
10075 326 : if (from.has_ctype()) {
10076 43 : set_ctype(from.ctype());
10077 : }
10078 326 : if (from.has_packed()) {
10079 105 : set_packed(from.packed());
10080 : }
10081 326 : if (from.has_jstype()) {
10082 0 : set_jstype(from.jstype());
10083 : }
10084 326 : if (from.has_lazy()) {
10085 14 : set_lazy(from.lazy());
10086 : }
10087 326 : if (from.has_deprecated()) {
10088 1 : set_deprecated(from.deprecated());
10089 : }
10090 326 : if (from.has_weak()) {
10091 0 : set_weak(from.weak());
10092 : }
10093 : }
10094 166 : _extensions_.MergeFrom(from._extensions_);
10095 332 : if (from._internal_metadata_.have_unknown_fields()) {
10096 166 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
10097 : }
10098 166 : }
10099 :
10100 0 : void FieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
10101 0 : if (&from == this) return;
10102 0 : Clear();
10103 0 : MergeFrom(from);
10104 : }
10105 :
10106 166 : void FieldOptions::CopyFrom(const FieldOptions& from) {
10107 332 : if (&from == this) return;
10108 166 : Clear();
10109 166 : MergeFrom(from);
10110 : }
10111 :
10112 538 : bool FieldOptions::IsInitialized() const {
10113 :
10114 1076 : if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
10115 :
10116 538 : if (!_extensions_.IsInitialized()) return false; return true;
10117 : }
10118 :
10119 0 : void FieldOptions::Swap(FieldOptions* other) {
10120 0 : if (other == this) return;
10121 0 : InternalSwap(other);
10122 : }
10123 0 : void FieldOptions::InternalSwap(FieldOptions* other) {
10124 0 : std::swap(ctype_, other->ctype_);
10125 0 : std::swap(packed_, other->packed_);
10126 0 : std::swap(jstype_, other->jstype_);
10127 0 : std::swap(lazy_, other->lazy_);
10128 0 : std::swap(deprecated_, other->deprecated_);
10129 0 : std::swap(weak_, other->weak_);
10130 0 : uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
10131 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
10132 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
10133 0 : std::swap(_cached_size_, other->_cached_size_);
10134 0 : _extensions_.Swap(&other->_extensions_);
10135 0 : }
10136 :
10137 15292 : ::google::protobuf::Metadata FieldOptions::GetMetadata() const {
10138 : protobuf_AssignDescriptorsOnce();
10139 : ::google::protobuf::Metadata metadata;
10140 15292 : metadata.descriptor = FieldOptions_descriptor_;
10141 15292 : metadata.reflection = FieldOptions_reflection_;
10142 15292 : return metadata;
10143 : }
10144 :
10145 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
10146 : // FieldOptions
10147 :
10148 : // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
10149 : bool FieldOptions::has_ctype() const {
10150 : return (_has_bits_[0] & 0x00000001u) != 0;
10151 : }
10152 : void FieldOptions::set_has_ctype() {
10153 : _has_bits_[0] |= 0x00000001u;
10154 : }
10155 : void FieldOptions::clear_has_ctype() {
10156 : _has_bits_[0] &= ~0x00000001u;
10157 : }
10158 : void FieldOptions::clear_ctype() {
10159 : ctype_ = 0;
10160 : clear_has_ctype();
10161 : }
10162 : ::google::protobuf::FieldOptions_CType FieldOptions::ctype() const {
10163 : // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype)
10164 : return static_cast< ::google::protobuf::FieldOptions_CType >(ctype_);
10165 : }
10166 : void FieldOptions::set_ctype(::google::protobuf::FieldOptions_CType value) {
10167 : assert(::google::protobuf::FieldOptions_CType_IsValid(value));
10168 : set_has_ctype();
10169 : ctype_ = value;
10170 : // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.ctype)
10171 : }
10172 :
10173 : // optional bool packed = 2;
10174 : bool FieldOptions::has_packed() const {
10175 : return (_has_bits_[0] & 0x00000002u) != 0;
10176 : }
10177 : void FieldOptions::set_has_packed() {
10178 : _has_bits_[0] |= 0x00000002u;
10179 : }
10180 : void FieldOptions::clear_has_packed() {
10181 : _has_bits_[0] &= ~0x00000002u;
10182 : }
10183 : void FieldOptions::clear_packed() {
10184 : packed_ = false;
10185 : clear_has_packed();
10186 : }
10187 : bool FieldOptions::packed() const {
10188 : // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed)
10189 : return packed_;
10190 : }
10191 : void FieldOptions::set_packed(bool value) {
10192 : set_has_packed();
10193 : packed_ = value;
10194 : // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.packed)
10195 : }
10196 :
10197 : // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
10198 : bool FieldOptions::has_jstype() const {
10199 : return (_has_bits_[0] & 0x00000004u) != 0;
10200 : }
10201 : void FieldOptions::set_has_jstype() {
10202 : _has_bits_[0] |= 0x00000004u;
10203 : }
10204 : void FieldOptions::clear_has_jstype() {
10205 : _has_bits_[0] &= ~0x00000004u;
10206 : }
10207 : void FieldOptions::clear_jstype() {
10208 : jstype_ = 0;
10209 : clear_has_jstype();
10210 : }
10211 : ::google::protobuf::FieldOptions_JSType FieldOptions::jstype() const {
10212 : // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.jstype)
10213 : return static_cast< ::google::protobuf::FieldOptions_JSType >(jstype_);
10214 : }
10215 : void FieldOptions::set_jstype(::google::protobuf::FieldOptions_JSType value) {
10216 : assert(::google::protobuf::FieldOptions_JSType_IsValid(value));
10217 : set_has_jstype();
10218 : jstype_ = value;
10219 : // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.jstype)
10220 : }
10221 :
10222 : // optional bool lazy = 5 [default = false];
10223 : bool FieldOptions::has_lazy() const {
10224 : return (_has_bits_[0] & 0x00000008u) != 0;
10225 : }
10226 : void FieldOptions::set_has_lazy() {
10227 : _has_bits_[0] |= 0x00000008u;
10228 : }
10229 : void FieldOptions::clear_has_lazy() {
10230 : _has_bits_[0] &= ~0x00000008u;
10231 : }
10232 : void FieldOptions::clear_lazy() {
10233 : lazy_ = false;
10234 : clear_has_lazy();
10235 : }
10236 : bool FieldOptions::lazy() const {
10237 : // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.lazy)
10238 : return lazy_;
10239 : }
10240 : void FieldOptions::set_lazy(bool value) {
10241 : set_has_lazy();
10242 : lazy_ = value;
10243 : // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.lazy)
10244 : }
10245 :
10246 : // optional bool deprecated = 3 [default = false];
10247 : bool FieldOptions::has_deprecated() const {
10248 : return (_has_bits_[0] & 0x00000010u) != 0;
10249 : }
10250 : void FieldOptions::set_has_deprecated() {
10251 : _has_bits_[0] |= 0x00000010u;
10252 : }
10253 : void FieldOptions::clear_has_deprecated() {
10254 : _has_bits_[0] &= ~0x00000010u;
10255 : }
10256 : void FieldOptions::clear_deprecated() {
10257 : deprecated_ = false;
10258 : clear_has_deprecated();
10259 : }
10260 : bool FieldOptions::deprecated() const {
10261 : // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.deprecated)
10262 : return deprecated_;
10263 : }
10264 : void FieldOptions::set_deprecated(bool value) {
10265 : set_has_deprecated();
10266 : deprecated_ = value;
10267 : // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.deprecated)
10268 : }
10269 :
10270 : // optional bool weak = 10 [default = false];
10271 : bool FieldOptions::has_weak() const {
10272 : return (_has_bits_[0] & 0x00000020u) != 0;
10273 : }
10274 : void FieldOptions::set_has_weak() {
10275 : _has_bits_[0] |= 0x00000020u;
10276 : }
10277 : void FieldOptions::clear_has_weak() {
10278 : _has_bits_[0] &= ~0x00000020u;
10279 : }
10280 : void FieldOptions::clear_weak() {
10281 : weak_ = false;
10282 : clear_has_weak();
10283 : }
10284 : bool FieldOptions::weak() const {
10285 : // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak)
10286 : return weak_;
10287 : }
10288 : void FieldOptions::set_weak(bool value) {
10289 : set_has_weak();
10290 : weak_ = value;
10291 : // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.weak)
10292 : }
10293 :
10294 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10295 : int FieldOptions::uninterpreted_option_size() const {
10296 : return uninterpreted_option_.size();
10297 : }
10298 : void FieldOptions::clear_uninterpreted_option() {
10299 : uninterpreted_option_.Clear();
10300 : }
10301 : const ::google::protobuf::UninterpretedOption& FieldOptions::uninterpreted_option(int index) const {
10302 : // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.uninterpreted_option)
10303 : return uninterpreted_option_.Get(index);
10304 : }
10305 : ::google::protobuf::UninterpretedOption* FieldOptions::mutable_uninterpreted_option(int index) {
10306 : // @@protoc_insertion_point(field_mutable:google.protobuf.FieldOptions.uninterpreted_option)
10307 : return uninterpreted_option_.Mutable(index);
10308 : }
10309 : ::google::protobuf::UninterpretedOption* FieldOptions::add_uninterpreted_option() {
10310 : // @@protoc_insertion_point(field_add:google.protobuf.FieldOptions.uninterpreted_option)
10311 : return uninterpreted_option_.Add();
10312 : }
10313 : ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
10314 : FieldOptions::mutable_uninterpreted_option() {
10315 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldOptions.uninterpreted_option)
10316 : return &uninterpreted_option_;
10317 : }
10318 : const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
10319 : FieldOptions::uninterpreted_option() const {
10320 : // @@protoc_insertion_point(field_list:google.protobuf.FieldOptions.uninterpreted_option)
10321 : return uninterpreted_option_;
10322 : }
10323 :
10324 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
10325 :
10326 : // ===================================================================
10327 :
10328 : #ifndef _MSC_VER
10329 : const int EnumOptions::kAllowAliasFieldNumber;
10330 : const int EnumOptions::kDeprecatedFieldNumber;
10331 : const int EnumOptions::kUninterpretedOptionFieldNumber;
10332 : #endif // !_MSC_VER
10333 :
10334 58 : EnumOptions::EnumOptions()
10335 174 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
10336 58 : SharedCtor();
10337 : // @@protoc_insertion_point(constructor:google.protobuf.EnumOptions)
10338 58 : }
10339 :
10340 46 : void EnumOptions::InitAsDefaultInstance() {
10341 46 : }
10342 :
10343 0 : EnumOptions::EnumOptions(const EnumOptions& from)
10344 : : ::google::protobuf::Message(),
10345 0 : _internal_metadata_(NULL) {
10346 0 : SharedCtor();
10347 0 : MergeFrom(from);
10348 : // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumOptions)
10349 0 : }
10350 :
10351 58 : void EnumOptions::SharedCtor() {
10352 58 : _cached_size_ = 0;
10353 58 : allow_alias_ = false;
10354 58 : deprecated_ = false;
10355 58 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
10356 58 : }
10357 :
10358 48 : EnumOptions::~EnumOptions() {
10359 : // @@protoc_insertion_point(destructor:google.protobuf.EnumOptions)
10360 12 : SharedDtor();
10361 24 : }
10362 :
10363 12 : void EnumOptions::SharedDtor() {
10364 : if (this != default_instance_) {
10365 : }
10366 12 : }
10367 :
10368 0 : void EnumOptions::SetCachedSize(int size) const {
10369 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10370 0 : _cached_size_ = size;
10371 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
10372 0 : }
10373 0 : const ::google::protobuf::Descriptor* EnumOptions::descriptor() {
10374 : protobuf_AssignDescriptorsOnce();
10375 0 : return EnumOptions_descriptor_;
10376 : }
10377 :
10378 214 : const EnumOptions& EnumOptions::default_instance() {
10379 214 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
10380 214 : return *default_instance_;
10381 : }
10382 :
10383 : EnumOptions* EnumOptions::default_instance_ = NULL;
10384 :
10385 0 : EnumOptions* EnumOptions::New(::google::protobuf::Arena* arena) const {
10386 0 : EnumOptions* n = new EnumOptions;
10387 0 : if (arena != NULL) {
10388 0 : arena->Own(n);
10389 : }
10390 0 : return n;
10391 : }
10392 :
10393 12 : void EnumOptions::Clear() {
10394 12 : _extensions_.Clear();
10395 : #define ZR_HELPER_(f) reinterpret_cast<char*>(\
10396 : &reinterpret_cast<EnumOptions*>(16)->f)
10397 :
10398 : #define ZR_(first, last) do {\
10399 : ::memset(&first, 0,\
10400 : ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
10401 : } while (0)
10402 :
10403 12 : ZR_(allow_alias_, deprecated_);
10404 :
10405 : #undef ZR_HELPER_
10406 : #undef ZR_
10407 :
10408 12 : uninterpreted_option_.Clear();
10409 12 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
10410 24 : if (_internal_metadata_.have_unknown_fields()) {
10411 4 : mutable_unknown_fields()->Clear();
10412 : }
10413 12 : }
10414 :
10415 8 : bool EnumOptions::MergePartialFromCodedStream(
10416 : ::google::protobuf::io::CodedInputStream* input) {
10417 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
10418 : ::google::protobuf::uint32 tag;
10419 : // @@protoc_insertion_point(parse_start:google.protobuf.EnumOptions)
10420 : for (;;) {
10421 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
10422 12 : tag = p.first;
10423 12 : if (!p.second) goto handle_unusual;
10424 5 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10425 : // optional bool allow_alias = 2;
10426 : case 2: {
10427 1 : if (tag == 16) {
10428 2 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10429 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
10430 : input, &allow_alias_)));
10431 1 : set_has_allow_alias();
10432 : } else {
10433 : goto handle_unusual;
10434 : }
10435 1 : if (input->ExpectTag(24)) goto parse_deprecated;
10436 : break;
10437 : }
10438 :
10439 : // optional bool deprecated = 3 [default = false];
10440 : case 3: {
10441 0 : if (tag == 24) {
10442 : parse_deprecated:
10443 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10444 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
10445 : input, &deprecated_)));
10446 0 : set_has_deprecated();
10447 : } else {
10448 : goto handle_unusual;
10449 : }
10450 0 : if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
10451 : break;
10452 : }
10453 :
10454 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10455 : case 999: {
10456 4 : if (tag == 7994) {
10457 : parse_uninterpreted_option:
10458 8 : DO_(input->IncrementRecursionDepth());
10459 : parse_loop_uninterpreted_option:
10460 4 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
10461 : input, add_uninterpreted_option()));
10462 : } else {
10463 : goto handle_unusual;
10464 : }
10465 4 : if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
10466 4 : input->UnsafeDecrementRecursionDepth();
10467 4 : if (input->ExpectAtEnd()) goto success;
10468 : break;
10469 : }
10470 :
10471 : default: {
10472 : handle_unusual:
10473 10 : if (tag == 0 ||
10474 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
10475 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
10476 : goto success;
10477 : }
10478 3 : if ((8000u <= tag)) {
10479 3 : DO_(_extensions_.ParseField(tag, input, default_instance_,
10480 : mutable_unknown_fields()));
10481 : continue;
10482 : }
10483 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
10484 : input, tag, mutable_unknown_fields()));
10485 : break;
10486 : }
10487 : }
10488 : }
10489 : success:
10490 : // @@protoc_insertion_point(parse_success:google.protobuf.EnumOptions)
10491 8 : return true;
10492 : failure:
10493 : // @@protoc_insertion_point(parse_failure:google.protobuf.EnumOptions)
10494 0 : return false;
10495 : #undef DO_
10496 : }
10497 :
10498 0 : void EnumOptions::SerializeWithCachedSizes(
10499 0 : ::google::protobuf::io::CodedOutputStream* output) const {
10500 : // @@protoc_insertion_point(serialize_start:google.protobuf.EnumOptions)
10501 : // optional bool allow_alias = 2;
10502 0 : if (has_allow_alias()) {
10503 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->allow_alias(), output);
10504 : }
10505 :
10506 : // optional bool deprecated = 3 [default = false];
10507 0 : if (has_deprecated()) {
10508 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output);
10509 : }
10510 :
10511 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10512 0 : for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
10513 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10514 0 : 999, this->uninterpreted_option(i), output);
10515 : }
10516 :
10517 : // Extension range [1000, 536870912)
10518 : _extensions_.SerializeWithCachedSizes(
10519 0 : 1000, 536870912, output);
10520 :
10521 0 : if (_internal_metadata_.have_unknown_fields()) {
10522 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10523 0 : unknown_fields(), output);
10524 : }
10525 : // @@protoc_insertion_point(serialize_end:google.protobuf.EnumOptions)
10526 0 : }
10527 :
10528 12 : ::google::protobuf::uint8* EnumOptions::SerializeWithCachedSizesToArray(
10529 25 : ::google::protobuf::uint8* target) const {
10530 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumOptions)
10531 : // optional bool allow_alias = 2;
10532 24 : if (has_allow_alias()) {
10533 2 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->allow_alias(), target);
10534 : }
10535 :
10536 : // optional bool deprecated = 3 [default = false];
10537 24 : if (has_deprecated()) {
10538 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target);
10539 : }
10540 :
10541 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10542 28 : for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
10543 : target = ::google::protobuf::internal::WireFormatLite::
10544 : WriteMessageNoVirtualToArray(
10545 12 : 999, this->uninterpreted_option(i), target);
10546 : }
10547 :
10548 : // Extension range [1000, 536870912)
10549 : target = _extensions_.SerializeWithCachedSizesToArray(
10550 12 : 1000, 536870912, target);
10551 :
10552 24 : if (_internal_metadata_.have_unknown_fields()) {
10553 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10554 8 : unknown_fields(), target);
10555 : }
10556 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumOptions)
10557 12 : return target;
10558 : }
10559 :
10560 12 : int EnumOptions::ByteSize() const {
10561 12 : int total_size = 0;
10562 :
10563 12 : if (_has_bits_[0 / 32] & 3u) {
10564 : // optional bool allow_alias = 2;
10565 2 : if (has_allow_alias()) {
10566 1 : total_size += 1 + 1;
10567 : }
10568 :
10569 : // optional bool deprecated = 3 [default = false];
10570 2 : if (has_deprecated()) {
10571 0 : total_size += 1 + 1;
10572 : }
10573 :
10574 : }
10575 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10576 12 : total_size += 2 * this->uninterpreted_option_size();
10577 32 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
10578 : total_size +=
10579 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
10580 4 : this->uninterpreted_option(i));
10581 : }
10582 :
10583 12 : total_size += _extensions_.ByteSize();
10584 :
10585 24 : if (_internal_metadata_.have_unknown_fields()) {
10586 : total_size +=
10587 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10588 8 : unknown_fields());
10589 : }
10590 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10591 12 : _cached_size_ = total_size;
10592 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
10593 12 : return total_size;
10594 : }
10595 :
10596 0 : void EnumOptions::MergeFrom(const ::google::protobuf::Message& from) {
10597 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
10598 : const EnumOptions* source =
10599 : ::google::protobuf::internal::DynamicCastToGenerated<const EnumOptions>(
10600 0 : &from);
10601 0 : if (source == NULL) {
10602 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10603 : } else {
10604 0 : MergeFrom(*source);
10605 : }
10606 0 : }
10607 :
10608 6 : void EnumOptions::MergeFrom(const EnumOptions& from) {
10609 4 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
10610 4 : uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
10611 4 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
10612 2 : if (from.has_allow_alias()) {
10613 1 : set_allow_alias(from.allow_alias());
10614 : }
10615 2 : if (from.has_deprecated()) {
10616 0 : set_deprecated(from.deprecated());
10617 : }
10618 : }
10619 4 : _extensions_.MergeFrom(from._extensions_);
10620 8 : if (from._internal_metadata_.have_unknown_fields()) {
10621 4 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
10622 : }
10623 4 : }
10624 :
10625 0 : void EnumOptions::CopyFrom(const ::google::protobuf::Message& from) {
10626 0 : if (&from == this) return;
10627 0 : Clear();
10628 0 : MergeFrom(from);
10629 : }
10630 :
10631 4 : void EnumOptions::CopyFrom(const EnumOptions& from) {
10632 8 : if (&from == this) return;
10633 4 : Clear();
10634 4 : MergeFrom(from);
10635 : }
10636 :
10637 8 : bool EnumOptions::IsInitialized() const {
10638 :
10639 16 : if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
10640 :
10641 8 : if (!_extensions_.IsInitialized()) return false; return true;
10642 : }
10643 :
10644 0 : void EnumOptions::Swap(EnumOptions* other) {
10645 0 : if (other == this) return;
10646 0 : InternalSwap(other);
10647 : }
10648 0 : void EnumOptions::InternalSwap(EnumOptions* other) {
10649 0 : std::swap(allow_alias_, other->allow_alias_);
10650 0 : std::swap(deprecated_, other->deprecated_);
10651 0 : uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
10652 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
10653 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
10654 0 : std::swap(_cached_size_, other->_cached_size_);
10655 0 : _extensions_.Swap(&other->_extensions_);
10656 0 : }
10657 :
10658 45 : ::google::protobuf::Metadata EnumOptions::GetMetadata() const {
10659 : protobuf_AssignDescriptorsOnce();
10660 : ::google::protobuf::Metadata metadata;
10661 45 : metadata.descriptor = EnumOptions_descriptor_;
10662 45 : metadata.reflection = EnumOptions_reflection_;
10663 45 : return metadata;
10664 : }
10665 :
10666 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
10667 : // EnumOptions
10668 :
10669 : // optional bool allow_alias = 2;
10670 : bool EnumOptions::has_allow_alias() const {
10671 : return (_has_bits_[0] & 0x00000001u) != 0;
10672 : }
10673 : void EnumOptions::set_has_allow_alias() {
10674 : _has_bits_[0] |= 0x00000001u;
10675 : }
10676 : void EnumOptions::clear_has_allow_alias() {
10677 : _has_bits_[0] &= ~0x00000001u;
10678 : }
10679 : void EnumOptions::clear_allow_alias() {
10680 : allow_alias_ = false;
10681 : clear_has_allow_alias();
10682 : }
10683 : bool EnumOptions::allow_alias() const {
10684 : // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.allow_alias)
10685 : return allow_alias_;
10686 : }
10687 : void EnumOptions::set_allow_alias(bool value) {
10688 : set_has_allow_alias();
10689 : allow_alias_ = value;
10690 : // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.allow_alias)
10691 : }
10692 :
10693 : // optional bool deprecated = 3 [default = false];
10694 : bool EnumOptions::has_deprecated() const {
10695 : return (_has_bits_[0] & 0x00000002u) != 0;
10696 : }
10697 : void EnumOptions::set_has_deprecated() {
10698 : _has_bits_[0] |= 0x00000002u;
10699 : }
10700 : void EnumOptions::clear_has_deprecated() {
10701 : _has_bits_[0] &= ~0x00000002u;
10702 : }
10703 : void EnumOptions::clear_deprecated() {
10704 : deprecated_ = false;
10705 : clear_has_deprecated();
10706 : }
10707 : bool EnumOptions::deprecated() const {
10708 : // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.deprecated)
10709 : return deprecated_;
10710 : }
10711 : void EnumOptions::set_deprecated(bool value) {
10712 : set_has_deprecated();
10713 : deprecated_ = value;
10714 : // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.deprecated)
10715 : }
10716 :
10717 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10718 : int EnumOptions::uninterpreted_option_size() const {
10719 : return uninterpreted_option_.size();
10720 : }
10721 : void EnumOptions::clear_uninterpreted_option() {
10722 : uninterpreted_option_.Clear();
10723 : }
10724 : const ::google::protobuf::UninterpretedOption& EnumOptions::uninterpreted_option(int index) const {
10725 : // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.uninterpreted_option)
10726 : return uninterpreted_option_.Get(index);
10727 : }
10728 : ::google::protobuf::UninterpretedOption* EnumOptions::mutable_uninterpreted_option(int index) {
10729 : // @@protoc_insertion_point(field_mutable:google.protobuf.EnumOptions.uninterpreted_option)
10730 : return uninterpreted_option_.Mutable(index);
10731 : }
10732 : ::google::protobuf::UninterpretedOption* EnumOptions::add_uninterpreted_option() {
10733 : // @@protoc_insertion_point(field_add:google.protobuf.EnumOptions.uninterpreted_option)
10734 : return uninterpreted_option_.Add();
10735 : }
10736 : ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
10737 : EnumOptions::mutable_uninterpreted_option() {
10738 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumOptions.uninterpreted_option)
10739 : return &uninterpreted_option_;
10740 : }
10741 : const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
10742 : EnumOptions::uninterpreted_option() const {
10743 : // @@protoc_insertion_point(field_list:google.protobuf.EnumOptions.uninterpreted_option)
10744 : return uninterpreted_option_;
10745 : }
10746 :
10747 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
10748 :
10749 : // ===================================================================
10750 :
10751 : #ifndef _MSC_VER
10752 : const int EnumValueOptions::kDeprecatedFieldNumber;
10753 : const int EnumValueOptions::kUninterpretedOptionFieldNumber;
10754 : #endif // !_MSC_VER
10755 :
10756 55 : EnumValueOptions::EnumValueOptions()
10757 165 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
10758 55 : SharedCtor();
10759 : // @@protoc_insertion_point(constructor:google.protobuf.EnumValueOptions)
10760 55 : }
10761 :
10762 46 : void EnumValueOptions::InitAsDefaultInstance() {
10763 46 : }
10764 :
10765 0 : EnumValueOptions::EnumValueOptions(const EnumValueOptions& from)
10766 : : ::google::protobuf::Message(),
10767 0 : _internal_metadata_(NULL) {
10768 0 : SharedCtor();
10769 0 : MergeFrom(from);
10770 : // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueOptions)
10771 0 : }
10772 :
10773 55 : void EnumValueOptions::SharedCtor() {
10774 55 : _cached_size_ = 0;
10775 55 : deprecated_ = false;
10776 55 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
10777 55 : }
10778 :
10779 36 : EnumValueOptions::~EnumValueOptions() {
10780 : // @@protoc_insertion_point(destructor:google.protobuf.EnumValueOptions)
10781 9 : SharedDtor();
10782 18 : }
10783 :
10784 9 : void EnumValueOptions::SharedDtor() {
10785 : if (this != default_instance_) {
10786 : }
10787 9 : }
10788 :
10789 0 : void EnumValueOptions::SetCachedSize(int size) const {
10790 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10791 0 : _cached_size_ = size;
10792 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
10793 0 : }
10794 0 : const ::google::protobuf::Descriptor* EnumValueOptions::descriptor() {
10795 : protobuf_AssignDescriptorsOnce();
10796 0 : return EnumValueOptions_descriptor_;
10797 : }
10798 :
10799 657 : const EnumValueOptions& EnumValueOptions::default_instance() {
10800 657 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
10801 657 : return *default_instance_;
10802 : }
10803 :
10804 : EnumValueOptions* EnumValueOptions::default_instance_ = NULL;
10805 :
10806 0 : EnumValueOptions* EnumValueOptions::New(::google::protobuf::Arena* arena) const {
10807 0 : EnumValueOptions* n = new EnumValueOptions;
10808 0 : if (arena != NULL) {
10809 0 : arena->Own(n);
10810 : }
10811 0 : return n;
10812 : }
10813 :
10814 9 : void EnumValueOptions::Clear() {
10815 9 : _extensions_.Clear();
10816 9 : deprecated_ = false;
10817 9 : uninterpreted_option_.Clear();
10818 9 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
10819 18 : if (_internal_metadata_.have_unknown_fields()) {
10820 3 : mutable_unknown_fields()->Clear();
10821 : }
10822 9 : }
10823 :
10824 6 : bool EnumValueOptions::MergePartialFromCodedStream(
10825 : ::google::protobuf::io::CodedInputStream* input) {
10826 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
10827 : ::google::protobuf::uint32 tag;
10828 : // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueOptions)
10829 : for (;;) {
10830 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
10831 9 : tag = p.first;
10832 9 : if (!p.second) goto handle_unusual;
10833 3 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10834 : // optional bool deprecated = 1 [default = false];
10835 : case 1: {
10836 0 : if (tag == 8) {
10837 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10838 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
10839 : input, &deprecated_)));
10840 0 : set_has_deprecated();
10841 : } else {
10842 : goto handle_unusual;
10843 : }
10844 0 : if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
10845 : break;
10846 : }
10847 :
10848 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10849 : case 999: {
10850 3 : if (tag == 7994) {
10851 : parse_uninterpreted_option:
10852 6 : DO_(input->IncrementRecursionDepth());
10853 : parse_loop_uninterpreted_option:
10854 3 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
10855 : input, add_uninterpreted_option()));
10856 : } else {
10857 : goto handle_unusual;
10858 : }
10859 3 : if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
10860 3 : input->UnsafeDecrementRecursionDepth();
10861 3 : if (input->ExpectAtEnd()) goto success;
10862 : break;
10863 : }
10864 :
10865 : default: {
10866 : handle_unusual:
10867 9 : if (tag == 0 ||
10868 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
10869 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
10870 : goto success;
10871 : }
10872 3 : if ((8000u <= tag)) {
10873 3 : DO_(_extensions_.ParseField(tag, input, default_instance_,
10874 : mutable_unknown_fields()));
10875 : continue;
10876 : }
10877 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
10878 : input, tag, mutable_unknown_fields()));
10879 : break;
10880 : }
10881 : }
10882 : }
10883 : success:
10884 : // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueOptions)
10885 6 : return true;
10886 : failure:
10887 : // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueOptions)
10888 0 : return false;
10889 : #undef DO_
10890 : }
10891 :
10892 0 : void EnumValueOptions::SerializeWithCachedSizes(
10893 0 : ::google::protobuf::io::CodedOutputStream* output) const {
10894 : // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueOptions)
10895 : // optional bool deprecated = 1 [default = false];
10896 0 : if (has_deprecated()) {
10897 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->deprecated(), output);
10898 : }
10899 :
10900 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10901 0 : for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
10902 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10903 0 : 999, this->uninterpreted_option(i), output);
10904 : }
10905 :
10906 : // Extension range [1000, 536870912)
10907 : _extensions_.SerializeWithCachedSizes(
10908 0 : 1000, 536870912, output);
10909 :
10910 0 : if (_internal_metadata_.have_unknown_fields()) {
10911 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10912 0 : unknown_fields(), output);
10913 : }
10914 : // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueOptions)
10915 0 : }
10916 :
10917 9 : ::google::protobuf::uint8* EnumValueOptions::SerializeWithCachedSizesToArray(
10918 9 : ::google::protobuf::uint8* target) const {
10919 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueOptions)
10920 : // optional bool deprecated = 1 [default = false];
10921 18 : if (has_deprecated()) {
10922 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->deprecated(), target);
10923 : }
10924 :
10925 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10926 21 : for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
10927 : target = ::google::protobuf::internal::WireFormatLite::
10928 : WriteMessageNoVirtualToArray(
10929 9 : 999, this->uninterpreted_option(i), target);
10930 : }
10931 :
10932 : // Extension range [1000, 536870912)
10933 : target = _extensions_.SerializeWithCachedSizesToArray(
10934 9 : 1000, 536870912, target);
10935 :
10936 18 : if (_internal_metadata_.have_unknown_fields()) {
10937 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10938 6 : unknown_fields(), target);
10939 : }
10940 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueOptions)
10941 9 : return target;
10942 : }
10943 :
10944 18 : int EnumValueOptions::ByteSize() const {
10945 9 : int total_size = 0;
10946 :
10947 : // optional bool deprecated = 1 [default = false];
10948 18 : if (has_deprecated()) {
10949 0 : total_size += 1 + 1;
10950 : }
10951 :
10952 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10953 9 : total_size += 2 * this->uninterpreted_option_size();
10954 24 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
10955 : total_size +=
10956 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
10957 3 : this->uninterpreted_option(i));
10958 : }
10959 :
10960 9 : total_size += _extensions_.ByteSize();
10961 :
10962 18 : if (_internal_metadata_.have_unknown_fields()) {
10963 : total_size +=
10964 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10965 6 : unknown_fields());
10966 : }
10967 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10968 9 : _cached_size_ = total_size;
10969 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
10970 9 : return total_size;
10971 : }
10972 :
10973 0 : void EnumValueOptions::MergeFrom(const ::google::protobuf::Message& from) {
10974 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
10975 : const EnumValueOptions* source =
10976 : ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueOptions>(
10977 0 : &from);
10978 0 : if (source == NULL) {
10979 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10980 : } else {
10981 0 : MergeFrom(*source);
10982 : }
10983 0 : }
10984 :
10985 3 : void EnumValueOptions::MergeFrom(const EnumValueOptions& from) {
10986 3 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
10987 3 : uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
10988 3 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
10989 0 : if (from.has_deprecated()) {
10990 0 : set_deprecated(from.deprecated());
10991 : }
10992 : }
10993 3 : _extensions_.MergeFrom(from._extensions_);
10994 6 : if (from._internal_metadata_.have_unknown_fields()) {
10995 3 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
10996 : }
10997 3 : }
10998 :
10999 0 : void EnumValueOptions::CopyFrom(const ::google::protobuf::Message& from) {
11000 0 : if (&from == this) return;
11001 0 : Clear();
11002 0 : MergeFrom(from);
11003 : }
11004 :
11005 3 : void EnumValueOptions::CopyFrom(const EnumValueOptions& from) {
11006 6 : if (&from == this) return;
11007 3 : Clear();
11008 3 : MergeFrom(from);
11009 : }
11010 :
11011 6 : bool EnumValueOptions::IsInitialized() const {
11012 :
11013 12 : if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
11014 :
11015 6 : if (!_extensions_.IsInitialized()) return false; return true;
11016 : }
11017 :
11018 0 : void EnumValueOptions::Swap(EnumValueOptions* other) {
11019 0 : if (other == this) return;
11020 0 : InternalSwap(other);
11021 : }
11022 0 : void EnumValueOptions::InternalSwap(EnumValueOptions* other) {
11023 0 : std::swap(deprecated_, other->deprecated_);
11024 0 : uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
11025 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
11026 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
11027 0 : std::swap(_cached_size_, other->_cached_size_);
11028 0 : _extensions_.Swap(&other->_extensions_);
11029 0 : }
11030 :
11031 33 : ::google::protobuf::Metadata EnumValueOptions::GetMetadata() const {
11032 : protobuf_AssignDescriptorsOnce();
11033 : ::google::protobuf::Metadata metadata;
11034 33 : metadata.descriptor = EnumValueOptions_descriptor_;
11035 33 : metadata.reflection = EnumValueOptions_reflection_;
11036 33 : return metadata;
11037 : }
11038 :
11039 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
11040 : // EnumValueOptions
11041 :
11042 : // optional bool deprecated = 1 [default = false];
11043 : bool EnumValueOptions::has_deprecated() const {
11044 : return (_has_bits_[0] & 0x00000001u) != 0;
11045 : }
11046 : void EnumValueOptions::set_has_deprecated() {
11047 : _has_bits_[0] |= 0x00000001u;
11048 : }
11049 : void EnumValueOptions::clear_has_deprecated() {
11050 : _has_bits_[0] &= ~0x00000001u;
11051 : }
11052 : void EnumValueOptions::clear_deprecated() {
11053 : deprecated_ = false;
11054 : clear_has_deprecated();
11055 : }
11056 : bool EnumValueOptions::deprecated() const {
11057 : // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.deprecated)
11058 : return deprecated_;
11059 : }
11060 : void EnumValueOptions::set_deprecated(bool value) {
11061 : set_has_deprecated();
11062 : deprecated_ = value;
11063 : // @@protoc_insertion_point(field_set:google.protobuf.EnumValueOptions.deprecated)
11064 : }
11065 :
11066 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11067 : int EnumValueOptions::uninterpreted_option_size() const {
11068 : return uninterpreted_option_.size();
11069 : }
11070 : void EnumValueOptions::clear_uninterpreted_option() {
11071 : uninterpreted_option_.Clear();
11072 : }
11073 : const ::google::protobuf::UninterpretedOption& EnumValueOptions::uninterpreted_option(int index) const {
11074 : // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.uninterpreted_option)
11075 : return uninterpreted_option_.Get(index);
11076 : }
11077 : ::google::protobuf::UninterpretedOption* EnumValueOptions::mutable_uninterpreted_option(int index) {
11078 : // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueOptions.uninterpreted_option)
11079 : return uninterpreted_option_.Mutable(index);
11080 : }
11081 : ::google::protobuf::UninterpretedOption* EnumValueOptions::add_uninterpreted_option() {
11082 : // @@protoc_insertion_point(field_add:google.protobuf.EnumValueOptions.uninterpreted_option)
11083 : return uninterpreted_option_.Add();
11084 : }
11085 : ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
11086 : EnumValueOptions::mutable_uninterpreted_option() {
11087 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValueOptions.uninterpreted_option)
11088 : return &uninterpreted_option_;
11089 : }
11090 : const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
11091 : EnumValueOptions::uninterpreted_option() const {
11092 : // @@protoc_insertion_point(field_list:google.protobuf.EnumValueOptions.uninterpreted_option)
11093 : return uninterpreted_option_;
11094 : }
11095 :
11096 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
11097 :
11098 : // ===================================================================
11099 :
11100 : #ifndef _MSC_VER
11101 : const int ServiceOptions::kDeprecatedFieldNumber;
11102 : const int ServiceOptions::kUninterpretedOptionFieldNumber;
11103 : #endif // !_MSC_VER
11104 :
11105 52 : ServiceOptions::ServiceOptions()
11106 156 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11107 52 : SharedCtor();
11108 : // @@protoc_insertion_point(constructor:google.protobuf.ServiceOptions)
11109 52 : }
11110 :
11111 46 : void ServiceOptions::InitAsDefaultInstance() {
11112 46 : }
11113 :
11114 0 : ServiceOptions::ServiceOptions(const ServiceOptions& from)
11115 : : ::google::protobuf::Message(),
11116 0 : _internal_metadata_(NULL) {
11117 0 : SharedCtor();
11118 0 : MergeFrom(from);
11119 : // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceOptions)
11120 0 : }
11121 :
11122 52 : void ServiceOptions::SharedCtor() {
11123 52 : _cached_size_ = 0;
11124 52 : deprecated_ = false;
11125 52 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
11126 52 : }
11127 :
11128 24 : ServiceOptions::~ServiceOptions() {
11129 : // @@protoc_insertion_point(destructor:google.protobuf.ServiceOptions)
11130 6 : SharedDtor();
11131 12 : }
11132 :
11133 6 : void ServiceOptions::SharedDtor() {
11134 : if (this != default_instance_) {
11135 : }
11136 6 : }
11137 :
11138 0 : void ServiceOptions::SetCachedSize(int size) const {
11139 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11140 0 : _cached_size_ = size;
11141 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
11142 0 : }
11143 0 : const ::google::protobuf::Descriptor* ServiceOptions::descriptor() {
11144 : protobuf_AssignDescriptorsOnce();
11145 0 : return ServiceOptions_descriptor_;
11146 : }
11147 :
11148 122 : const ServiceOptions& ServiceOptions::default_instance() {
11149 122 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
11150 122 : return *default_instance_;
11151 : }
11152 :
11153 : ServiceOptions* ServiceOptions::default_instance_ = NULL;
11154 :
11155 0 : ServiceOptions* ServiceOptions::New(::google::protobuf::Arena* arena) const {
11156 0 : ServiceOptions* n = new ServiceOptions;
11157 0 : if (arena != NULL) {
11158 0 : arena->Own(n);
11159 : }
11160 0 : return n;
11161 : }
11162 :
11163 6 : void ServiceOptions::Clear() {
11164 6 : _extensions_.Clear();
11165 6 : deprecated_ = false;
11166 6 : uninterpreted_option_.Clear();
11167 6 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
11168 12 : if (_internal_metadata_.have_unknown_fields()) {
11169 2 : mutable_unknown_fields()->Clear();
11170 : }
11171 6 : }
11172 :
11173 4 : bool ServiceOptions::MergePartialFromCodedStream(
11174 : ::google::protobuf::io::CodedInputStream* input) {
11175 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
11176 : ::google::protobuf::uint32 tag;
11177 : // @@protoc_insertion_point(parse_start:google.protobuf.ServiceOptions)
11178 : for (;;) {
11179 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
11180 6 : tag = p.first;
11181 6 : if (!p.second) goto handle_unusual;
11182 2 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11183 : // optional bool deprecated = 33 [default = false];
11184 : case 33: {
11185 0 : if (tag == 264) {
11186 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11187 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
11188 : input, &deprecated_)));
11189 0 : set_has_deprecated();
11190 : } else {
11191 : goto handle_unusual;
11192 : }
11193 0 : if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
11194 : break;
11195 : }
11196 :
11197 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11198 : case 999: {
11199 2 : if (tag == 7994) {
11200 : parse_uninterpreted_option:
11201 4 : DO_(input->IncrementRecursionDepth());
11202 : parse_loop_uninterpreted_option:
11203 2 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
11204 : input, add_uninterpreted_option()));
11205 : } else {
11206 : goto handle_unusual;
11207 : }
11208 2 : if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
11209 2 : input->UnsafeDecrementRecursionDepth();
11210 2 : if (input->ExpectAtEnd()) goto success;
11211 : break;
11212 : }
11213 :
11214 : default: {
11215 : handle_unusual:
11216 6 : if (tag == 0 ||
11217 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
11218 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
11219 : goto success;
11220 : }
11221 2 : if ((8000u <= tag)) {
11222 2 : DO_(_extensions_.ParseField(tag, input, default_instance_,
11223 : mutable_unknown_fields()));
11224 : continue;
11225 : }
11226 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
11227 : input, tag, mutable_unknown_fields()));
11228 : break;
11229 : }
11230 : }
11231 : }
11232 : success:
11233 : // @@protoc_insertion_point(parse_success:google.protobuf.ServiceOptions)
11234 4 : return true;
11235 : failure:
11236 : // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceOptions)
11237 0 : return false;
11238 : #undef DO_
11239 : }
11240 :
11241 0 : void ServiceOptions::SerializeWithCachedSizes(
11242 0 : ::google::protobuf::io::CodedOutputStream* output) const {
11243 : // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceOptions)
11244 : // optional bool deprecated = 33 [default = false];
11245 0 : if (has_deprecated()) {
11246 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated(), output);
11247 : }
11248 :
11249 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11250 0 : for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
11251 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11252 0 : 999, this->uninterpreted_option(i), output);
11253 : }
11254 :
11255 : // Extension range [1000, 536870912)
11256 : _extensions_.SerializeWithCachedSizes(
11257 0 : 1000, 536870912, output);
11258 :
11259 0 : if (_internal_metadata_.have_unknown_fields()) {
11260 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11261 0 : unknown_fields(), output);
11262 : }
11263 : // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceOptions)
11264 0 : }
11265 :
11266 6 : ::google::protobuf::uint8* ServiceOptions::SerializeWithCachedSizesToArray(
11267 6 : ::google::protobuf::uint8* target) const {
11268 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceOptions)
11269 : // optional bool deprecated = 33 [default = false];
11270 12 : if (has_deprecated()) {
11271 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target);
11272 : }
11273 :
11274 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11275 14 : for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
11276 : target = ::google::protobuf::internal::WireFormatLite::
11277 : WriteMessageNoVirtualToArray(
11278 6 : 999, this->uninterpreted_option(i), target);
11279 : }
11280 :
11281 : // Extension range [1000, 536870912)
11282 : target = _extensions_.SerializeWithCachedSizesToArray(
11283 6 : 1000, 536870912, target);
11284 :
11285 12 : if (_internal_metadata_.have_unknown_fields()) {
11286 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11287 4 : unknown_fields(), target);
11288 : }
11289 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceOptions)
11290 6 : return target;
11291 : }
11292 :
11293 12 : int ServiceOptions::ByteSize() const {
11294 6 : int total_size = 0;
11295 :
11296 : // optional bool deprecated = 33 [default = false];
11297 12 : if (has_deprecated()) {
11298 0 : total_size += 2 + 1;
11299 : }
11300 :
11301 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11302 6 : total_size += 2 * this->uninterpreted_option_size();
11303 16 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
11304 : total_size +=
11305 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
11306 2 : this->uninterpreted_option(i));
11307 : }
11308 :
11309 6 : total_size += _extensions_.ByteSize();
11310 :
11311 12 : if (_internal_metadata_.have_unknown_fields()) {
11312 : total_size +=
11313 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11314 4 : unknown_fields());
11315 : }
11316 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11317 6 : _cached_size_ = total_size;
11318 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
11319 6 : return total_size;
11320 : }
11321 :
11322 0 : void ServiceOptions::MergeFrom(const ::google::protobuf::Message& from) {
11323 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
11324 : const ServiceOptions* source =
11325 : ::google::protobuf::internal::DynamicCastToGenerated<const ServiceOptions>(
11326 0 : &from);
11327 0 : if (source == NULL) {
11328 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11329 : } else {
11330 0 : MergeFrom(*source);
11331 : }
11332 0 : }
11333 :
11334 2 : void ServiceOptions::MergeFrom(const ServiceOptions& from) {
11335 2 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
11336 2 : uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
11337 2 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
11338 0 : if (from.has_deprecated()) {
11339 0 : set_deprecated(from.deprecated());
11340 : }
11341 : }
11342 2 : _extensions_.MergeFrom(from._extensions_);
11343 4 : if (from._internal_metadata_.have_unknown_fields()) {
11344 2 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
11345 : }
11346 2 : }
11347 :
11348 0 : void ServiceOptions::CopyFrom(const ::google::protobuf::Message& from) {
11349 0 : if (&from == this) return;
11350 0 : Clear();
11351 0 : MergeFrom(from);
11352 : }
11353 :
11354 2 : void ServiceOptions::CopyFrom(const ServiceOptions& from) {
11355 4 : if (&from == this) return;
11356 2 : Clear();
11357 2 : MergeFrom(from);
11358 : }
11359 :
11360 4 : bool ServiceOptions::IsInitialized() const {
11361 :
11362 8 : if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
11363 :
11364 4 : if (!_extensions_.IsInitialized()) return false; return true;
11365 : }
11366 :
11367 0 : void ServiceOptions::Swap(ServiceOptions* other) {
11368 0 : if (other == this) return;
11369 0 : InternalSwap(other);
11370 : }
11371 0 : void ServiceOptions::InternalSwap(ServiceOptions* other) {
11372 0 : std::swap(deprecated_, other->deprecated_);
11373 0 : uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
11374 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
11375 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
11376 0 : std::swap(_cached_size_, other->_cached_size_);
11377 0 : _extensions_.Swap(&other->_extensions_);
11378 0 : }
11379 :
11380 22 : ::google::protobuf::Metadata ServiceOptions::GetMetadata() const {
11381 : protobuf_AssignDescriptorsOnce();
11382 : ::google::protobuf::Metadata metadata;
11383 22 : metadata.descriptor = ServiceOptions_descriptor_;
11384 22 : metadata.reflection = ServiceOptions_reflection_;
11385 22 : return metadata;
11386 : }
11387 :
11388 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
11389 : // ServiceOptions
11390 :
11391 : // optional bool deprecated = 33 [default = false];
11392 : bool ServiceOptions::has_deprecated() const {
11393 : return (_has_bits_[0] & 0x00000001u) != 0;
11394 : }
11395 : void ServiceOptions::set_has_deprecated() {
11396 : _has_bits_[0] |= 0x00000001u;
11397 : }
11398 : void ServiceOptions::clear_has_deprecated() {
11399 : _has_bits_[0] &= ~0x00000001u;
11400 : }
11401 : void ServiceOptions::clear_deprecated() {
11402 : deprecated_ = false;
11403 : clear_has_deprecated();
11404 : }
11405 : bool ServiceOptions::deprecated() const {
11406 : // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.deprecated)
11407 : return deprecated_;
11408 : }
11409 : void ServiceOptions::set_deprecated(bool value) {
11410 : set_has_deprecated();
11411 : deprecated_ = value;
11412 : // @@protoc_insertion_point(field_set:google.protobuf.ServiceOptions.deprecated)
11413 : }
11414 :
11415 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11416 : int ServiceOptions::uninterpreted_option_size() const {
11417 : return uninterpreted_option_.size();
11418 : }
11419 : void ServiceOptions::clear_uninterpreted_option() {
11420 : uninterpreted_option_.Clear();
11421 : }
11422 : const ::google::protobuf::UninterpretedOption& ServiceOptions::uninterpreted_option(int index) const {
11423 : // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.uninterpreted_option)
11424 : return uninterpreted_option_.Get(index);
11425 : }
11426 : ::google::protobuf::UninterpretedOption* ServiceOptions::mutable_uninterpreted_option(int index) {
11427 : // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceOptions.uninterpreted_option)
11428 : return uninterpreted_option_.Mutable(index);
11429 : }
11430 : ::google::protobuf::UninterpretedOption* ServiceOptions::add_uninterpreted_option() {
11431 : // @@protoc_insertion_point(field_add:google.protobuf.ServiceOptions.uninterpreted_option)
11432 : return uninterpreted_option_.Add();
11433 : }
11434 : ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
11435 : ServiceOptions::mutable_uninterpreted_option() {
11436 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceOptions.uninterpreted_option)
11437 : return &uninterpreted_option_;
11438 : }
11439 : const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
11440 : ServiceOptions::uninterpreted_option() const {
11441 : // @@protoc_insertion_point(field_list:google.protobuf.ServiceOptions.uninterpreted_option)
11442 : return uninterpreted_option_;
11443 : }
11444 :
11445 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
11446 :
11447 : // ===================================================================
11448 :
11449 : #ifndef _MSC_VER
11450 : const int MethodOptions::kDeprecatedFieldNumber;
11451 : const int MethodOptions::kUninterpretedOptionFieldNumber;
11452 : #endif // !_MSC_VER
11453 :
11454 66 : MethodOptions::MethodOptions()
11455 198 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11456 66 : SharedCtor();
11457 : // @@protoc_insertion_point(constructor:google.protobuf.MethodOptions)
11458 66 : }
11459 :
11460 46 : void MethodOptions::InitAsDefaultInstance() {
11461 46 : }
11462 :
11463 0 : MethodOptions::MethodOptions(const MethodOptions& from)
11464 : : ::google::protobuf::Message(),
11465 0 : _internal_metadata_(NULL) {
11466 0 : SharedCtor();
11467 0 : MergeFrom(from);
11468 : // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodOptions)
11469 0 : }
11470 :
11471 66 : void MethodOptions::SharedCtor() {
11472 66 : _cached_size_ = 0;
11473 66 : deprecated_ = false;
11474 66 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
11475 66 : }
11476 :
11477 80 : MethodOptions::~MethodOptions() {
11478 : // @@protoc_insertion_point(destructor:google.protobuf.MethodOptions)
11479 20 : SharedDtor();
11480 40 : }
11481 :
11482 20 : void MethodOptions::SharedDtor() {
11483 : if (this != default_instance_) {
11484 : }
11485 20 : }
11486 :
11487 0 : void MethodOptions::SetCachedSize(int size) const {
11488 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11489 0 : _cached_size_ = size;
11490 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
11491 0 : }
11492 0 : const ::google::protobuf::Descriptor* MethodOptions::descriptor() {
11493 : protobuf_AssignDescriptorsOnce();
11494 0 : return MethodOptions_descriptor_;
11495 : }
11496 :
11497 191 : const MethodOptions& MethodOptions::default_instance() {
11498 191 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
11499 191 : return *default_instance_;
11500 : }
11501 :
11502 : MethodOptions* MethodOptions::default_instance_ = NULL;
11503 :
11504 0 : MethodOptions* MethodOptions::New(::google::protobuf::Arena* arena) const {
11505 0 : MethodOptions* n = new MethodOptions;
11506 0 : if (arena != NULL) {
11507 0 : arena->Own(n);
11508 : }
11509 0 : return n;
11510 : }
11511 :
11512 11 : void MethodOptions::Clear() {
11513 11 : _extensions_.Clear();
11514 11 : deprecated_ = false;
11515 11 : uninterpreted_option_.Clear();
11516 11 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
11517 22 : if (_internal_metadata_.have_unknown_fields()) {
11518 2 : mutable_unknown_fields()->Clear();
11519 : }
11520 11 : }
11521 :
11522 14 : bool MethodOptions::MergePartialFromCodedStream(
11523 : ::google::protobuf::io::CodedInputStream* input) {
11524 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
11525 : ::google::protobuf::uint32 tag;
11526 : // @@protoc_insertion_point(parse_start:google.protobuf.MethodOptions)
11527 : for (;;) {
11528 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
11529 16 : tag = p.first;
11530 16 : if (!p.second) goto handle_unusual;
11531 2 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11532 : // optional bool deprecated = 33 [default = false];
11533 : case 33: {
11534 0 : if (tag == 264) {
11535 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11536 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
11537 : input, &deprecated_)));
11538 0 : set_has_deprecated();
11539 : } else {
11540 : goto handle_unusual;
11541 : }
11542 0 : if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
11543 : break;
11544 : }
11545 :
11546 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11547 : case 999: {
11548 2 : if (tag == 7994) {
11549 : parse_uninterpreted_option:
11550 4 : DO_(input->IncrementRecursionDepth());
11551 : parse_loop_uninterpreted_option:
11552 2 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
11553 : input, add_uninterpreted_option()));
11554 : } else {
11555 : goto handle_unusual;
11556 : }
11557 2 : if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
11558 2 : input->UnsafeDecrementRecursionDepth();
11559 2 : if (input->ExpectAtEnd()) goto success;
11560 : break;
11561 : }
11562 :
11563 : default: {
11564 : handle_unusual:
11565 16 : if (tag == 0 ||
11566 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
11567 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
11568 : goto success;
11569 : }
11570 2 : if ((8000u <= tag)) {
11571 2 : DO_(_extensions_.ParseField(tag, input, default_instance_,
11572 : mutable_unknown_fields()));
11573 : continue;
11574 : }
11575 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
11576 : input, tag, mutable_unknown_fields()));
11577 : break;
11578 : }
11579 : }
11580 : }
11581 : success:
11582 : // @@protoc_insertion_point(parse_success:google.protobuf.MethodOptions)
11583 14 : return true;
11584 : failure:
11585 : // @@protoc_insertion_point(parse_failure:google.protobuf.MethodOptions)
11586 0 : return false;
11587 : #undef DO_
11588 : }
11589 :
11590 0 : void MethodOptions::SerializeWithCachedSizes(
11591 0 : ::google::protobuf::io::CodedOutputStream* output) const {
11592 : // @@protoc_insertion_point(serialize_start:google.protobuf.MethodOptions)
11593 : // optional bool deprecated = 33 [default = false];
11594 0 : if (has_deprecated()) {
11595 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated(), output);
11596 : }
11597 :
11598 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11599 0 : for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
11600 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11601 0 : 999, this->uninterpreted_option(i), output);
11602 : }
11603 :
11604 : // Extension range [1000, 536870912)
11605 : _extensions_.SerializeWithCachedSizes(
11606 0 : 1000, 536870912, output);
11607 :
11608 0 : if (_internal_metadata_.have_unknown_fields()) {
11609 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11610 0 : unknown_fields(), output);
11611 : }
11612 : // @@protoc_insertion_point(serialize_end:google.protobuf.MethodOptions)
11613 0 : }
11614 :
11615 11 : ::google::protobuf::uint8* MethodOptions::SerializeWithCachedSizesToArray(
11616 11 : ::google::protobuf::uint8* target) const {
11617 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodOptions)
11618 : // optional bool deprecated = 33 [default = false];
11619 22 : if (has_deprecated()) {
11620 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target);
11621 : }
11622 :
11623 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11624 24 : for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
11625 : target = ::google::protobuf::internal::WireFormatLite::
11626 : WriteMessageNoVirtualToArray(
11627 6 : 999, this->uninterpreted_option(i), target);
11628 : }
11629 :
11630 : // Extension range [1000, 536870912)
11631 : target = _extensions_.SerializeWithCachedSizesToArray(
11632 11 : 1000, 536870912, target);
11633 :
11634 22 : if (_internal_metadata_.have_unknown_fields()) {
11635 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11636 4 : unknown_fields(), target);
11637 : }
11638 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodOptions)
11639 11 : return target;
11640 : }
11641 :
11642 22 : int MethodOptions::ByteSize() const {
11643 11 : int total_size = 0;
11644 :
11645 : // optional bool deprecated = 33 [default = false];
11646 22 : if (has_deprecated()) {
11647 0 : total_size += 2 + 1;
11648 : }
11649 :
11650 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11651 11 : total_size += 2 * this->uninterpreted_option_size();
11652 26 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
11653 : total_size +=
11654 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
11655 2 : this->uninterpreted_option(i));
11656 : }
11657 :
11658 11 : total_size += _extensions_.ByteSize();
11659 :
11660 22 : if (_internal_metadata_.have_unknown_fields()) {
11661 : total_size +=
11662 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11663 4 : unknown_fields());
11664 : }
11665 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11666 11 : _cached_size_ = total_size;
11667 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
11668 11 : return total_size;
11669 : }
11670 :
11671 0 : void MethodOptions::MergeFrom(const ::google::protobuf::Message& from) {
11672 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
11673 : const MethodOptions* source =
11674 : ::google::protobuf::internal::DynamicCastToGenerated<const MethodOptions>(
11675 0 : &from);
11676 0 : if (source == NULL) {
11677 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11678 : } else {
11679 0 : MergeFrom(*source);
11680 : }
11681 0 : }
11682 :
11683 4 : void MethodOptions::MergeFrom(const MethodOptions& from) {
11684 4 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
11685 4 : uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
11686 4 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
11687 0 : if (from.has_deprecated()) {
11688 0 : set_deprecated(from.deprecated());
11689 : }
11690 : }
11691 4 : _extensions_.MergeFrom(from._extensions_);
11692 8 : if (from._internal_metadata_.have_unknown_fields()) {
11693 2 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
11694 : }
11695 4 : }
11696 :
11697 0 : void MethodOptions::CopyFrom(const ::google::protobuf::Message& from) {
11698 0 : if (&from == this) return;
11699 0 : Clear();
11700 0 : MergeFrom(from);
11701 : }
11702 :
11703 4 : void MethodOptions::CopyFrom(const MethodOptions& from) {
11704 8 : if (&from == this) return;
11705 4 : Clear();
11706 4 : MergeFrom(from);
11707 : }
11708 :
11709 14 : bool MethodOptions::IsInitialized() const {
11710 :
11711 28 : if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
11712 :
11713 14 : if (!_extensions_.IsInitialized()) return false; return true;
11714 : }
11715 :
11716 0 : void MethodOptions::Swap(MethodOptions* other) {
11717 0 : if (other == this) return;
11718 0 : InternalSwap(other);
11719 : }
11720 0 : void MethodOptions::InternalSwap(MethodOptions* other) {
11721 0 : std::swap(deprecated_, other->deprecated_);
11722 0 : uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
11723 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
11724 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
11725 0 : std::swap(_cached_size_, other->_cached_size_);
11726 0 : _extensions_.Swap(&other->_extensions_);
11727 0 : }
11728 :
11729 22 : ::google::protobuf::Metadata MethodOptions::GetMetadata() const {
11730 : protobuf_AssignDescriptorsOnce();
11731 : ::google::protobuf::Metadata metadata;
11732 22 : metadata.descriptor = MethodOptions_descriptor_;
11733 22 : metadata.reflection = MethodOptions_reflection_;
11734 22 : return metadata;
11735 : }
11736 :
11737 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
11738 : // MethodOptions
11739 :
11740 : // optional bool deprecated = 33 [default = false];
11741 : bool MethodOptions::has_deprecated() const {
11742 : return (_has_bits_[0] & 0x00000001u) != 0;
11743 : }
11744 : void MethodOptions::set_has_deprecated() {
11745 : _has_bits_[0] |= 0x00000001u;
11746 : }
11747 : void MethodOptions::clear_has_deprecated() {
11748 : _has_bits_[0] &= ~0x00000001u;
11749 : }
11750 : void MethodOptions::clear_deprecated() {
11751 : deprecated_ = false;
11752 : clear_has_deprecated();
11753 : }
11754 : bool MethodOptions::deprecated() const {
11755 : // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.deprecated)
11756 : return deprecated_;
11757 : }
11758 : void MethodOptions::set_deprecated(bool value) {
11759 : set_has_deprecated();
11760 : deprecated_ = value;
11761 : // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.deprecated)
11762 : }
11763 :
11764 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11765 : int MethodOptions::uninterpreted_option_size() const {
11766 : return uninterpreted_option_.size();
11767 : }
11768 : void MethodOptions::clear_uninterpreted_option() {
11769 : uninterpreted_option_.Clear();
11770 : }
11771 : const ::google::protobuf::UninterpretedOption& MethodOptions::uninterpreted_option(int index) const {
11772 : // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.uninterpreted_option)
11773 : return uninterpreted_option_.Get(index);
11774 : }
11775 : ::google::protobuf::UninterpretedOption* MethodOptions::mutable_uninterpreted_option(int index) {
11776 : // @@protoc_insertion_point(field_mutable:google.protobuf.MethodOptions.uninterpreted_option)
11777 : return uninterpreted_option_.Mutable(index);
11778 : }
11779 : ::google::protobuf::UninterpretedOption* MethodOptions::add_uninterpreted_option() {
11780 : // @@protoc_insertion_point(field_add:google.protobuf.MethodOptions.uninterpreted_option)
11781 : return uninterpreted_option_.Add();
11782 : }
11783 : ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
11784 : MethodOptions::mutable_uninterpreted_option() {
11785 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.MethodOptions.uninterpreted_option)
11786 : return &uninterpreted_option_;
11787 : }
11788 : const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
11789 : MethodOptions::uninterpreted_option() const {
11790 : // @@protoc_insertion_point(field_list:google.protobuf.MethodOptions.uninterpreted_option)
11791 : return uninterpreted_option_;
11792 : }
11793 :
11794 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
11795 :
11796 : // ===================================================================
11797 :
11798 : #ifndef _MSC_VER
11799 : const int UninterpretedOption_NamePart::kNamePartFieldNumber;
11800 : const int UninterpretedOption_NamePart::kIsExtensionFieldNumber;
11801 : #endif // !_MSC_VER
11802 :
11803 918 : UninterpretedOption_NamePart::UninterpretedOption_NamePart()
11804 1836 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11805 918 : SharedCtor();
11806 : // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption.NamePart)
11807 918 : }
11808 :
11809 46 : void UninterpretedOption_NamePart::InitAsDefaultInstance() {
11810 46 : }
11811 :
11812 0 : UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from)
11813 : : ::google::protobuf::Message(),
11814 0 : _internal_metadata_(NULL) {
11815 0 : SharedCtor();
11816 0 : MergeFrom(from);
11817 : // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOption.NamePart)
11818 0 : }
11819 :
11820 918 : void UninterpretedOption_NamePart::SharedCtor() {
11821 : ::google::protobuf::internal::GetEmptyString();
11822 918 : _cached_size_ = 0;
11823 918 : name_part_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11824 918 : is_extension_ = false;
11825 918 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
11826 918 : }
11827 :
11828 2616 : UninterpretedOption_NamePart::~UninterpretedOption_NamePart() {
11829 : // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption.NamePart)
11830 872 : SharedDtor();
11831 1744 : }
11832 :
11833 872 : void UninterpretedOption_NamePart::SharedDtor() {
11834 872 : name_part_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11835 : if (this != default_instance_) {
11836 : }
11837 872 : }
11838 :
11839 0 : void UninterpretedOption_NamePart::SetCachedSize(int size) const {
11840 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11841 0 : _cached_size_ = size;
11842 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
11843 0 : }
11844 0 : const ::google::protobuf::Descriptor* UninterpretedOption_NamePart::descriptor() {
11845 : protobuf_AssignDescriptorsOnce();
11846 0 : return UninterpretedOption_NamePart_descriptor_;
11847 : }
11848 :
11849 1 : const UninterpretedOption_NamePart& UninterpretedOption_NamePart::default_instance() {
11850 1 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
11851 1 : return *default_instance_;
11852 : }
11853 :
11854 : UninterpretedOption_NamePart* UninterpretedOption_NamePart::default_instance_ = NULL;
11855 :
11856 0 : UninterpretedOption_NamePart* UninterpretedOption_NamePart::New(::google::protobuf::Arena* arena) const {
11857 0 : UninterpretedOption_NamePart* n = new UninterpretedOption_NamePart;
11858 0 : if (arena != NULL) {
11859 0 : arena->Own(n);
11860 : }
11861 0 : return n;
11862 : }
11863 :
11864 436 : void UninterpretedOption_NamePart::Clear() {
11865 436 : if (_has_bits_[0 / 32] & 3u) {
11866 872 : if (has_name_part()) {
11867 436 : name_part_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11868 : }
11869 436 : is_extension_ = false;
11870 : }
11871 436 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
11872 872 : if (_internal_metadata_.have_unknown_fields()) {
11873 0 : mutable_unknown_fields()->Clear();
11874 : }
11875 436 : }
11876 :
11877 436 : bool UninterpretedOption_NamePart::MergePartialFromCodedStream(
11878 : ::google::protobuf::io::CodedInputStream* input) {
11879 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
11880 : ::google::protobuf::uint32 tag;
11881 : // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption.NamePart)
11882 : for (;;) {
11883 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
11884 436 : tag = p.first;
11885 436 : if (!p.second) goto handle_unusual;
11886 436 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11887 : // required string name_part = 1;
11888 : case 1: {
11889 436 : if (tag == 10) {
11890 872 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
11891 : input, this->mutable_name_part()));
11892 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11893 872 : this->name_part().data(), this->name_part().length(),
11894 : ::google::protobuf::internal::WireFormat::PARSE,
11895 872 : "google.protobuf.UninterpretedOption.NamePart.name_part");
11896 : } else {
11897 : goto handle_unusual;
11898 : }
11899 436 : if (input->ExpectTag(16)) goto parse_is_extension;
11900 : break;
11901 : }
11902 :
11903 : // required bool is_extension = 2;
11904 : case 2: {
11905 0 : if (tag == 16) {
11906 : parse_is_extension:
11907 872 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11908 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
11909 : input, &is_extension_)));
11910 436 : set_has_is_extension();
11911 : } else {
11912 : goto handle_unusual;
11913 : }
11914 436 : if (input->ExpectAtEnd()) goto success;
11915 : break;
11916 : }
11917 :
11918 : default: {
11919 : handle_unusual:
11920 0 : if (tag == 0 ||
11921 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
11922 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
11923 : goto success;
11924 : }
11925 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
11926 : input, tag, mutable_unknown_fields()));
11927 : break;
11928 : }
11929 : }
11930 0 : }
11931 : success:
11932 : // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption.NamePart)
11933 436 : return true;
11934 : failure:
11935 : // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption.NamePart)
11936 0 : return false;
11937 : #undef DO_
11938 : }
11939 :
11940 0 : void UninterpretedOption_NamePart::SerializeWithCachedSizes(
11941 0 : ::google::protobuf::io::CodedOutputStream* output) const {
11942 : // @@protoc_insertion_point(serialize_start:google.protobuf.UninterpretedOption.NamePart)
11943 : // required string name_part = 1;
11944 0 : if (has_name_part()) {
11945 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11946 0 : this->name_part().data(), this->name_part().length(),
11947 : ::google::protobuf::internal::WireFormat::SERIALIZE,
11948 0 : "google.protobuf.UninterpretedOption.NamePart.name_part");
11949 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
11950 0 : 1, this->name_part(), output);
11951 : }
11952 :
11953 : // required bool is_extension = 2;
11954 0 : if (has_is_extension()) {
11955 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_extension(), output);
11956 : }
11957 :
11958 0 : if (_internal_metadata_.have_unknown_fields()) {
11959 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11960 0 : unknown_fields(), output);
11961 : }
11962 : // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption.NamePart)
11963 0 : }
11964 :
11965 436 : ::google::protobuf::uint8* UninterpretedOption_NamePart::SerializeWithCachedSizesToArray(
11966 1308 : ::google::protobuf::uint8* target) const {
11967 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption.NamePart)
11968 : // required string name_part = 1;
11969 872 : if (has_name_part()) {
11970 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11971 872 : this->name_part().data(), this->name_part().length(),
11972 : ::google::protobuf::internal::WireFormat::SERIALIZE,
11973 872 : "google.protobuf.UninterpretedOption.NamePart.name_part");
11974 : target =
11975 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
11976 872 : 1, this->name_part(), target);
11977 : }
11978 :
11979 : // required bool is_extension = 2;
11980 872 : if (has_is_extension()) {
11981 872 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_extension(), target);
11982 : }
11983 :
11984 872 : if (_internal_metadata_.have_unknown_fields()) {
11985 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11986 0 : unknown_fields(), target);
11987 : }
11988 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UninterpretedOption.NamePart)
11989 436 : return target;
11990 : }
11991 :
11992 0 : int UninterpretedOption_NamePart::RequiredFieldsByteSizeFallback() const {
11993 0 : int total_size = 0;
11994 :
11995 0 : if (has_name_part()) {
11996 : // required string name_part = 1;
11997 : total_size += 1 +
11998 : ::google::protobuf::internal::WireFormatLite::StringSize(
11999 0 : this->name_part());
12000 : }
12001 :
12002 0 : if (has_is_extension()) {
12003 : // required bool is_extension = 2;
12004 0 : total_size += 1 + 1;
12005 : }
12006 :
12007 0 : return total_size;
12008 : }
12009 436 : int UninterpretedOption_NamePart::ByteSize() const {
12010 436 : int total_size = 0;
12011 :
12012 436 : if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
12013 : // required string name_part = 1;
12014 : total_size += 1 +
12015 : ::google::protobuf::internal::WireFormatLite::StringSize(
12016 436 : this->name_part());
12017 :
12018 : // required bool is_extension = 2;
12019 436 : total_size += 1 + 1;
12020 :
12021 : } else {
12022 0 : total_size += RequiredFieldsByteSizeFallback();
12023 : }
12024 872 : if (_internal_metadata_.have_unknown_fields()) {
12025 : total_size +=
12026 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12027 0 : unknown_fields());
12028 : }
12029 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12030 436 : _cached_size_ = total_size;
12031 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
12032 436 : return total_size;
12033 : }
12034 :
12035 0 : void UninterpretedOption_NamePart::MergeFrom(const ::google::protobuf::Message& from) {
12036 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
12037 : const UninterpretedOption_NamePart* source =
12038 : ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOption_NamePart>(
12039 0 : &from);
12040 0 : if (source == NULL) {
12041 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12042 : } else {
12043 0 : MergeFrom(*source);
12044 : }
12045 0 : }
12046 :
12047 0 : void UninterpretedOption_NamePart::MergeFrom(const UninterpretedOption_NamePart& from) {
12048 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
12049 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
12050 0 : if (from.has_name_part()) {
12051 0 : set_has_name_part();
12052 0 : name_part_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_part_);
12053 : }
12054 0 : if (from.has_is_extension()) {
12055 0 : set_is_extension(from.is_extension());
12056 : }
12057 : }
12058 0 : if (from._internal_metadata_.have_unknown_fields()) {
12059 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
12060 : }
12061 0 : }
12062 :
12063 0 : void UninterpretedOption_NamePart::CopyFrom(const ::google::protobuf::Message& from) {
12064 0 : if (&from == this) return;
12065 0 : Clear();
12066 0 : MergeFrom(from);
12067 : }
12068 :
12069 0 : void UninterpretedOption_NamePart::CopyFrom(const UninterpretedOption_NamePart& from) {
12070 0 : if (&from == this) return;
12071 0 : Clear();
12072 0 : MergeFrom(from);
12073 : }
12074 :
12075 436 : bool UninterpretedOption_NamePart::IsInitialized() const {
12076 436 : if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
12077 :
12078 436 : return true;
12079 : }
12080 :
12081 0 : void UninterpretedOption_NamePart::Swap(UninterpretedOption_NamePart* other) {
12082 0 : if (other == this) return;
12083 0 : InternalSwap(other);
12084 : }
12085 0 : void UninterpretedOption_NamePart::InternalSwap(UninterpretedOption_NamePart* other) {
12086 0 : name_part_.Swap(&other->name_part_);
12087 0 : std::swap(is_extension_, other->is_extension_);
12088 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
12089 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
12090 0 : std::swap(_cached_size_, other->_cached_size_);
12091 0 : }
12092 :
12093 0 : ::google::protobuf::Metadata UninterpretedOption_NamePart::GetMetadata() const {
12094 : protobuf_AssignDescriptorsOnce();
12095 : ::google::protobuf::Metadata metadata;
12096 0 : metadata.descriptor = UninterpretedOption_NamePart_descriptor_;
12097 0 : metadata.reflection = UninterpretedOption_NamePart_reflection_;
12098 0 : return metadata;
12099 : }
12100 :
12101 :
12102 : // -------------------------------------------------------------------
12103 :
12104 : #ifndef _MSC_VER
12105 : const int UninterpretedOption::kNameFieldNumber;
12106 : const int UninterpretedOption::kIdentifierValueFieldNumber;
12107 : const int UninterpretedOption::kPositiveIntValueFieldNumber;
12108 : const int UninterpretedOption::kNegativeIntValueFieldNumber;
12109 : const int UninterpretedOption::kDoubleValueFieldNumber;
12110 : const int UninterpretedOption::kStringValueFieldNumber;
12111 : const int UninterpretedOption::kAggregateValueFieldNumber;
12112 : #endif // !_MSC_VER
12113 :
12114 856 : UninterpretedOption::UninterpretedOption()
12115 2568 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12116 856 : SharedCtor();
12117 : // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption)
12118 856 : }
12119 :
12120 46 : void UninterpretedOption::InitAsDefaultInstance() {
12121 46 : }
12122 :
12123 0 : UninterpretedOption::UninterpretedOption(const UninterpretedOption& from)
12124 : : ::google::protobuf::Message(),
12125 0 : _internal_metadata_(NULL) {
12126 0 : SharedCtor();
12127 0 : MergeFrom(from);
12128 : // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOption)
12129 0 : }
12130 :
12131 856 : void UninterpretedOption::SharedCtor() {
12132 : ::google::protobuf::internal::GetEmptyString();
12133 856 : _cached_size_ = 0;
12134 856 : identifier_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12135 856 : positive_int_value_ = GOOGLE_ULONGLONG(0);
12136 856 : negative_int_value_ = GOOGLE_LONGLONG(0);
12137 856 : double_value_ = 0;
12138 856 : string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12139 856 : aggregate_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12140 856 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
12141 856 : }
12142 :
12143 3240 : UninterpretedOption::~UninterpretedOption() {
12144 : // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption)
12145 810 : SharedDtor();
12146 1620 : }
12147 :
12148 810 : void UninterpretedOption::SharedDtor() {
12149 810 : identifier_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12150 810 : string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12151 810 : aggregate_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12152 : if (this != default_instance_) {
12153 : }
12154 810 : }
12155 :
12156 0 : void UninterpretedOption::SetCachedSize(int size) const {
12157 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12158 0 : _cached_size_ = size;
12159 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
12160 0 : }
12161 0 : const ::google::protobuf::Descriptor* UninterpretedOption::descriptor() {
12162 : protobuf_AssignDescriptorsOnce();
12163 0 : return UninterpretedOption_descriptor_;
12164 : }
12165 :
12166 1 : const UninterpretedOption& UninterpretedOption::default_instance() {
12167 1 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
12168 1 : return *default_instance_;
12169 : }
12170 :
12171 : UninterpretedOption* UninterpretedOption::default_instance_ = NULL;
12172 :
12173 405 : UninterpretedOption* UninterpretedOption::New(::google::protobuf::Arena* arena) const {
12174 405 : UninterpretedOption* n = new UninterpretedOption;
12175 405 : if (arena != NULL) {
12176 0 : arena->Own(n);
12177 : }
12178 405 : return n;
12179 : }
12180 :
12181 1620 : void UninterpretedOption::Clear() {
12182 : #define ZR_HELPER_(f) reinterpret_cast<char*>(\
12183 : &reinterpret_cast<UninterpretedOption*>(16)->f)
12184 :
12185 : #define ZR_(first, last) do {\
12186 : ::memset(&first, 0,\
12187 : ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
12188 : } while (0)
12189 :
12190 405 : if (_has_bits_[0 / 32] & 126u) {
12191 405 : ZR_(positive_int_value_, double_value_);
12192 810 : if (has_identifier_value()) {
12193 273 : identifier_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12194 : }
12195 810 : if (has_string_value()) {
12196 67 : string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12197 : }
12198 810 : if (has_aggregate_value()) {
12199 9 : aggregate_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12200 : }
12201 : }
12202 :
12203 : #undef ZR_HELPER_
12204 : #undef ZR_
12205 :
12206 405 : name_.Clear();
12207 405 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
12208 810 : if (_internal_metadata_.have_unknown_fields()) {
12209 0 : mutable_unknown_fields()->Clear();
12210 : }
12211 405 : }
12212 :
12213 405 : bool UninterpretedOption::MergePartialFromCodedStream(
12214 : ::google::protobuf::io::CodedInputStream* input) {
12215 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
12216 : ::google::protobuf::uint32 tag;
12217 : // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption)
12218 : for (;;) {
12219 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
12220 933 : tag = p.first;
12221 933 : if (!p.second) goto handle_unusual;
12222 537 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12223 : // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
12224 : case 2: {
12225 405 : if (tag == 18) {
12226 810 : DO_(input->IncrementRecursionDepth());
12227 : parse_loop_name:
12228 436 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
12229 : input, add_name()));
12230 : } else {
12231 : goto handle_unusual;
12232 : }
12233 436 : if (input->ExpectTag(18)) goto parse_loop_name;
12234 405 : input->UnsafeDecrementRecursionDepth();
12235 405 : if (input->ExpectTag(26)) goto parse_identifier_value;
12236 : break;
12237 : }
12238 :
12239 : // optional string identifier_value = 3;
12240 : case 3: {
12241 0 : if (tag == 26) {
12242 : parse_identifier_value:
12243 546 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
12244 : input, this->mutable_identifier_value()));
12245 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12246 546 : this->identifier_value().data(), this->identifier_value().length(),
12247 : ::google::protobuf::internal::WireFormat::PARSE,
12248 546 : "google.protobuf.UninterpretedOption.identifier_value");
12249 : } else {
12250 : goto handle_unusual;
12251 : }
12252 273 : if (input->ExpectTag(32)) goto parse_positive_int_value;
12253 : break;
12254 : }
12255 :
12256 : // optional uint64 positive_int_value = 4;
12257 : case 4: {
12258 42 : if (tag == 32) {
12259 : parse_positive_int_value:
12260 84 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12261 : ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
12262 : input, &positive_int_value_)));
12263 42 : set_has_positive_int_value();
12264 : } else {
12265 : goto handle_unusual;
12266 : }
12267 42 : if (input->ExpectTag(40)) goto parse_negative_int_value;
12268 : break;
12269 : }
12270 :
12271 : // optional int64 negative_int_value = 5;
12272 : case 5: {
12273 12 : if (tag == 40) {
12274 : parse_negative_int_value:
12275 24 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12276 : ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
12277 : input, &negative_int_value_)));
12278 12 : set_has_negative_int_value();
12279 : } else {
12280 : goto handle_unusual;
12281 : }
12282 12 : if (input->ExpectTag(49)) goto parse_double_value;
12283 : break;
12284 : }
12285 :
12286 : // optional double double_value = 6;
12287 : case 6: {
12288 2 : if (tag == 49) {
12289 : parse_double_value:
12290 4 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12291 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
12292 : input, &double_value_)));
12293 2 : set_has_double_value();
12294 : } else {
12295 : goto handle_unusual;
12296 : }
12297 2 : if (input->ExpectTag(58)) goto parse_string_value;
12298 : break;
12299 : }
12300 :
12301 : // optional bytes string_value = 7;
12302 : case 7: {
12303 67 : if (tag == 58) {
12304 : parse_string_value:
12305 67 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
12306 : input, this->mutable_string_value()));
12307 : } else {
12308 : goto handle_unusual;
12309 : }
12310 67 : if (input->ExpectTag(66)) goto parse_aggregate_value;
12311 : break;
12312 : }
12313 :
12314 : // optional string aggregate_value = 8;
12315 : case 8: {
12316 9 : if (tag == 66) {
12317 : parse_aggregate_value:
12318 18 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
12319 : input, this->mutable_aggregate_value()));
12320 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12321 18 : this->aggregate_value().data(), this->aggregate_value().length(),
12322 : ::google::protobuf::internal::WireFormat::PARSE,
12323 18 : "google.protobuf.UninterpretedOption.aggregate_value");
12324 : } else {
12325 : goto handle_unusual;
12326 : }
12327 9 : if (input->ExpectAtEnd()) goto success;
12328 : break;
12329 : }
12330 :
12331 : default: {
12332 : handle_unusual:
12333 396 : if (tag == 0 ||
12334 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
12335 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
12336 : goto success;
12337 : }
12338 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
12339 : input, tag, mutable_unknown_fields()));
12340 : break;
12341 : }
12342 : }
12343 528 : }
12344 : success:
12345 : // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption)
12346 405 : return true;
12347 : failure:
12348 : // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption)
12349 0 : return false;
12350 : #undef DO_
12351 : }
12352 :
12353 0 : void UninterpretedOption::SerializeWithCachedSizes(
12354 0 : ::google::protobuf::io::CodedOutputStream* output) const {
12355 : // @@protoc_insertion_point(serialize_start:google.protobuf.UninterpretedOption)
12356 : // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
12357 0 : for (unsigned int i = 0, n = this->name_size(); i < n; i++) {
12358 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12359 0 : 2, this->name(i), output);
12360 : }
12361 :
12362 : // optional string identifier_value = 3;
12363 0 : if (has_identifier_value()) {
12364 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12365 0 : this->identifier_value().data(), this->identifier_value().length(),
12366 : ::google::protobuf::internal::WireFormat::SERIALIZE,
12367 0 : "google.protobuf.UninterpretedOption.identifier_value");
12368 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
12369 0 : 3, this->identifier_value(), output);
12370 : }
12371 :
12372 : // optional uint64 positive_int_value = 4;
12373 0 : if (has_positive_int_value()) {
12374 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->positive_int_value(), output);
12375 : }
12376 :
12377 : // optional int64 negative_int_value = 5;
12378 0 : if (has_negative_int_value()) {
12379 0 : ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->negative_int_value(), output);
12380 : }
12381 :
12382 : // optional double double_value = 6;
12383 0 : if (has_double_value()) {
12384 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->double_value(), output);
12385 : }
12386 :
12387 : // optional bytes string_value = 7;
12388 0 : if (has_string_value()) {
12389 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
12390 0 : 7, this->string_value(), output);
12391 : }
12392 :
12393 : // optional string aggregate_value = 8;
12394 0 : if (has_aggregate_value()) {
12395 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12396 0 : this->aggregate_value().data(), this->aggregate_value().length(),
12397 : ::google::protobuf::internal::WireFormat::SERIALIZE,
12398 0 : "google.protobuf.UninterpretedOption.aggregate_value");
12399 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
12400 0 : 8, this->aggregate_value(), output);
12401 : }
12402 :
12403 0 : if (_internal_metadata_.have_unknown_fields()) {
12404 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12405 0 : unknown_fields(), output);
12406 : }
12407 : // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption)
12408 0 : }
12409 :
12410 405 : ::google::protobuf::uint8* UninterpretedOption::SerializeWithCachedSizesToArray(
12411 2486 : ::google::protobuf::uint8* target) const {
12412 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption)
12413 : // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
12414 1246 : for (unsigned int i = 0, n = this->name_size(); i < n; i++) {
12415 : target = ::google::protobuf::internal::WireFormatLite::
12416 : WriteMessageNoVirtualToArray(
12417 1308 : 2, this->name(i), target);
12418 : }
12419 :
12420 : // optional string identifier_value = 3;
12421 810 : if (has_identifier_value()) {
12422 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12423 546 : this->identifier_value().data(), this->identifier_value().length(),
12424 : ::google::protobuf::internal::WireFormat::SERIALIZE,
12425 546 : "google.protobuf.UninterpretedOption.identifier_value");
12426 : target =
12427 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
12428 546 : 3, this->identifier_value(), target);
12429 : }
12430 :
12431 : // optional uint64 positive_int_value = 4;
12432 810 : if (has_positive_int_value()) {
12433 84 : target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->positive_int_value(), target);
12434 : }
12435 :
12436 : // optional int64 negative_int_value = 5;
12437 810 : if (has_negative_int_value()) {
12438 24 : target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->negative_int_value(), target);
12439 : }
12440 :
12441 : // optional double double_value = 6;
12442 810 : if (has_double_value()) {
12443 4 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->double_value(), target);
12444 : }
12445 :
12446 : // optional bytes string_value = 7;
12447 810 : if (has_string_value()) {
12448 : target =
12449 : ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
12450 134 : 7, this->string_value(), target);
12451 : }
12452 :
12453 : // optional string aggregate_value = 8;
12454 810 : if (has_aggregate_value()) {
12455 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12456 18 : this->aggregate_value().data(), this->aggregate_value().length(),
12457 : ::google::protobuf::internal::WireFormat::SERIALIZE,
12458 18 : "google.protobuf.UninterpretedOption.aggregate_value");
12459 : target =
12460 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
12461 18 : 8, this->aggregate_value(), target);
12462 : }
12463 :
12464 810 : if (_internal_metadata_.have_unknown_fields()) {
12465 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
12466 0 : unknown_fields(), target);
12467 : }
12468 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UninterpretedOption)
12469 405 : return target;
12470 : }
12471 :
12472 2079 : int UninterpretedOption::ByteSize() const {
12473 405 : int total_size = 0;
12474 :
12475 405 : if (_has_bits_[1 / 32] & 126u) {
12476 : // optional string identifier_value = 3;
12477 810 : if (has_identifier_value()) {
12478 : total_size += 1 +
12479 : ::google::protobuf::internal::WireFormatLite::StringSize(
12480 273 : this->identifier_value());
12481 : }
12482 :
12483 : // optional uint64 positive_int_value = 4;
12484 810 : if (has_positive_int_value()) {
12485 : total_size += 1 +
12486 : ::google::protobuf::internal::WireFormatLite::UInt64Size(
12487 84 : this->positive_int_value());
12488 : }
12489 :
12490 : // optional int64 negative_int_value = 5;
12491 810 : if (has_negative_int_value()) {
12492 : total_size += 1 +
12493 : ::google::protobuf::internal::WireFormatLite::Int64Size(
12494 24 : this->negative_int_value());
12495 : }
12496 :
12497 : // optional double double_value = 6;
12498 810 : if (has_double_value()) {
12499 2 : total_size += 1 + 8;
12500 : }
12501 :
12502 : // optional bytes string_value = 7;
12503 810 : if (has_string_value()) {
12504 : total_size += 1 +
12505 : ::google::protobuf::internal::WireFormatLite::BytesSize(
12506 67 : this->string_value());
12507 : }
12508 :
12509 : // optional string aggregate_value = 8;
12510 810 : if (has_aggregate_value()) {
12511 : total_size += 1 +
12512 : ::google::protobuf::internal::WireFormatLite::StringSize(
12513 9 : this->aggregate_value());
12514 : }
12515 :
12516 : }
12517 : // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
12518 405 : total_size += 1 * this->name_size();
12519 1682 : for (int i = 0; i < this->name_size(); i++) {
12520 : total_size +=
12521 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
12522 436 : this->name(i));
12523 : }
12524 :
12525 810 : if (_internal_metadata_.have_unknown_fields()) {
12526 : total_size +=
12527 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12528 0 : unknown_fields());
12529 : }
12530 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12531 405 : _cached_size_ = total_size;
12532 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
12533 405 : return total_size;
12534 : }
12535 :
12536 0 : void UninterpretedOption::MergeFrom(const ::google::protobuf::Message& from) {
12537 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
12538 : const UninterpretedOption* source =
12539 : ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOption>(
12540 0 : &from);
12541 0 : if (source == NULL) {
12542 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12543 : } else {
12544 0 : MergeFrom(*source);
12545 : }
12546 0 : }
12547 :
12548 0 : void UninterpretedOption::MergeFrom(const UninterpretedOption& from) {
12549 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
12550 0 : name_.MergeFrom(from.name_);
12551 0 : if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
12552 0 : if (from.has_identifier_value()) {
12553 0 : set_has_identifier_value();
12554 0 : identifier_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.identifier_value_);
12555 : }
12556 0 : if (from.has_positive_int_value()) {
12557 0 : set_positive_int_value(from.positive_int_value());
12558 : }
12559 0 : if (from.has_negative_int_value()) {
12560 0 : set_negative_int_value(from.negative_int_value());
12561 : }
12562 0 : if (from.has_double_value()) {
12563 0 : set_double_value(from.double_value());
12564 : }
12565 0 : if (from.has_string_value()) {
12566 0 : set_has_string_value();
12567 0 : string_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.string_value_);
12568 : }
12569 0 : if (from.has_aggregate_value()) {
12570 0 : set_has_aggregate_value();
12571 0 : aggregate_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.aggregate_value_);
12572 : }
12573 : }
12574 0 : if (from._internal_metadata_.have_unknown_fields()) {
12575 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
12576 : }
12577 0 : }
12578 :
12579 0 : void UninterpretedOption::CopyFrom(const ::google::protobuf::Message& from) {
12580 0 : if (&from == this) return;
12581 0 : Clear();
12582 0 : MergeFrom(from);
12583 : }
12584 :
12585 0 : void UninterpretedOption::CopyFrom(const UninterpretedOption& from) {
12586 0 : if (&from == this) return;
12587 0 : Clear();
12588 0 : MergeFrom(from);
12589 : }
12590 :
12591 405 : bool UninterpretedOption::IsInitialized() const {
12592 :
12593 810 : if (!::google::protobuf::internal::AllAreInitialized(this->name())) return false;
12594 405 : return true;
12595 : }
12596 :
12597 0 : void UninterpretedOption::Swap(UninterpretedOption* other) {
12598 0 : if (other == this) return;
12599 0 : InternalSwap(other);
12600 : }
12601 0 : void UninterpretedOption::InternalSwap(UninterpretedOption* other) {
12602 0 : name_.UnsafeArenaSwap(&other->name_);
12603 0 : identifier_value_.Swap(&other->identifier_value_);
12604 0 : std::swap(positive_int_value_, other->positive_int_value_);
12605 0 : std::swap(negative_int_value_, other->negative_int_value_);
12606 0 : std::swap(double_value_, other->double_value_);
12607 0 : string_value_.Swap(&other->string_value_);
12608 0 : aggregate_value_.Swap(&other->aggregate_value_);
12609 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
12610 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
12611 0 : std::swap(_cached_size_, other->_cached_size_);
12612 0 : }
12613 :
12614 0 : ::google::protobuf::Metadata UninterpretedOption::GetMetadata() const {
12615 : protobuf_AssignDescriptorsOnce();
12616 : ::google::protobuf::Metadata metadata;
12617 0 : metadata.descriptor = UninterpretedOption_descriptor_;
12618 0 : metadata.reflection = UninterpretedOption_reflection_;
12619 0 : return metadata;
12620 : }
12621 :
12622 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
12623 : // UninterpretedOption_NamePart
12624 :
12625 : // required string name_part = 1;
12626 : bool UninterpretedOption_NamePart::has_name_part() const {
12627 : return (_has_bits_[0] & 0x00000001u) != 0;
12628 : }
12629 : void UninterpretedOption_NamePart::set_has_name_part() {
12630 : _has_bits_[0] |= 0x00000001u;
12631 : }
12632 : void UninterpretedOption_NamePart::clear_has_name_part() {
12633 : _has_bits_[0] &= ~0x00000001u;
12634 : }
12635 : void UninterpretedOption_NamePart::clear_name_part() {
12636 : name_part_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12637 : clear_has_name_part();
12638 : }
12639 : const ::std::string& UninterpretedOption_NamePart::name_part() const {
12640 : // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.name_part)
12641 : return name_part_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12642 : }
12643 : void UninterpretedOption_NamePart::set_name_part(const ::std::string& value) {
12644 : set_has_name_part();
12645 : name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
12646 : // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.name_part)
12647 : }
12648 : void UninterpretedOption_NamePart::set_name_part(const char* value) {
12649 : set_has_name_part();
12650 : name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
12651 : // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.NamePart.name_part)
12652 : }
12653 : void UninterpretedOption_NamePart::set_name_part(const char* value, size_t size) {
12654 : set_has_name_part();
12655 : name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
12656 : ::std::string(reinterpret_cast<const char*>(value), size));
12657 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.NamePart.name_part)
12658 : }
12659 : ::std::string* UninterpretedOption_NamePart::mutable_name_part() {
12660 : set_has_name_part();
12661 : // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.NamePart.name_part)
12662 : return name_part_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12663 : }
12664 : ::std::string* UninterpretedOption_NamePart::release_name_part() {
12665 : clear_has_name_part();
12666 : return name_part_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12667 : }
12668 : void UninterpretedOption_NamePart::set_allocated_name_part(::std::string* name_part) {
12669 : if (name_part != NULL) {
12670 : set_has_name_part();
12671 : } else {
12672 : clear_has_name_part();
12673 : }
12674 : name_part_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name_part);
12675 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.NamePart.name_part)
12676 : }
12677 :
12678 : // required bool is_extension = 2;
12679 : bool UninterpretedOption_NamePart::has_is_extension() const {
12680 : return (_has_bits_[0] & 0x00000002u) != 0;
12681 : }
12682 : void UninterpretedOption_NamePart::set_has_is_extension() {
12683 : _has_bits_[0] |= 0x00000002u;
12684 : }
12685 : void UninterpretedOption_NamePart::clear_has_is_extension() {
12686 : _has_bits_[0] &= ~0x00000002u;
12687 : }
12688 : void UninterpretedOption_NamePart::clear_is_extension() {
12689 : is_extension_ = false;
12690 : clear_has_is_extension();
12691 : }
12692 : bool UninterpretedOption_NamePart::is_extension() const {
12693 : // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.is_extension)
12694 : return is_extension_;
12695 : }
12696 : void UninterpretedOption_NamePart::set_is_extension(bool value) {
12697 : set_has_is_extension();
12698 : is_extension_ = value;
12699 : // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.is_extension)
12700 : }
12701 :
12702 : // -------------------------------------------------------------------
12703 :
12704 : // UninterpretedOption
12705 :
12706 : // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
12707 : int UninterpretedOption::name_size() const {
12708 : return name_.size();
12709 : }
12710 : void UninterpretedOption::clear_name() {
12711 : name_.Clear();
12712 : }
12713 : const ::google::protobuf::UninterpretedOption_NamePart& UninterpretedOption::name(int index) const {
12714 : // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.name)
12715 : return name_.Get(index);
12716 : }
12717 : ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::mutable_name(int index) {
12718 : // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.name)
12719 : return name_.Mutable(index);
12720 : }
12721 : ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::add_name() {
12722 : // @@protoc_insertion_point(field_add:google.protobuf.UninterpretedOption.name)
12723 : return name_.Add();
12724 : }
12725 : ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >*
12726 : UninterpretedOption::mutable_name() {
12727 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.UninterpretedOption.name)
12728 : return &name_;
12729 : }
12730 : const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >&
12731 : UninterpretedOption::name() const {
12732 : // @@protoc_insertion_point(field_list:google.protobuf.UninterpretedOption.name)
12733 : return name_;
12734 : }
12735 :
12736 : // optional string identifier_value = 3;
12737 : bool UninterpretedOption::has_identifier_value() const {
12738 : return (_has_bits_[0] & 0x00000002u) != 0;
12739 : }
12740 : void UninterpretedOption::set_has_identifier_value() {
12741 : _has_bits_[0] |= 0x00000002u;
12742 : }
12743 : void UninterpretedOption::clear_has_identifier_value() {
12744 : _has_bits_[0] &= ~0x00000002u;
12745 : }
12746 : void UninterpretedOption::clear_identifier_value() {
12747 : identifier_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12748 : clear_has_identifier_value();
12749 : }
12750 : const ::std::string& UninterpretedOption::identifier_value() const {
12751 : // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.identifier_value)
12752 : return identifier_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12753 : }
12754 : void UninterpretedOption::set_identifier_value(const ::std::string& value) {
12755 : set_has_identifier_value();
12756 : identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
12757 : // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.identifier_value)
12758 : }
12759 : void UninterpretedOption::set_identifier_value(const char* value) {
12760 : set_has_identifier_value();
12761 : identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
12762 : // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.identifier_value)
12763 : }
12764 : void UninterpretedOption::set_identifier_value(const char* value, size_t size) {
12765 : set_has_identifier_value();
12766 : identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
12767 : ::std::string(reinterpret_cast<const char*>(value), size));
12768 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.identifier_value)
12769 : }
12770 : ::std::string* UninterpretedOption::mutable_identifier_value() {
12771 : set_has_identifier_value();
12772 : // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.identifier_value)
12773 : return identifier_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12774 : }
12775 : ::std::string* UninterpretedOption::release_identifier_value() {
12776 : clear_has_identifier_value();
12777 : return identifier_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12778 : }
12779 : void UninterpretedOption::set_allocated_identifier_value(::std::string* identifier_value) {
12780 : if (identifier_value != NULL) {
12781 : set_has_identifier_value();
12782 : } else {
12783 : clear_has_identifier_value();
12784 : }
12785 : identifier_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), identifier_value);
12786 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.identifier_value)
12787 : }
12788 :
12789 : // optional uint64 positive_int_value = 4;
12790 : bool UninterpretedOption::has_positive_int_value() const {
12791 : return (_has_bits_[0] & 0x00000004u) != 0;
12792 : }
12793 : void UninterpretedOption::set_has_positive_int_value() {
12794 : _has_bits_[0] |= 0x00000004u;
12795 : }
12796 : void UninterpretedOption::clear_has_positive_int_value() {
12797 : _has_bits_[0] &= ~0x00000004u;
12798 : }
12799 : void UninterpretedOption::clear_positive_int_value() {
12800 : positive_int_value_ = GOOGLE_ULONGLONG(0);
12801 : clear_has_positive_int_value();
12802 : }
12803 : ::google::protobuf::uint64 UninterpretedOption::positive_int_value() const {
12804 : // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.positive_int_value)
12805 : return positive_int_value_;
12806 : }
12807 : void UninterpretedOption::set_positive_int_value(::google::protobuf::uint64 value) {
12808 : set_has_positive_int_value();
12809 : positive_int_value_ = value;
12810 : // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.positive_int_value)
12811 : }
12812 :
12813 : // optional int64 negative_int_value = 5;
12814 : bool UninterpretedOption::has_negative_int_value() const {
12815 : return (_has_bits_[0] & 0x00000008u) != 0;
12816 : }
12817 : void UninterpretedOption::set_has_negative_int_value() {
12818 : _has_bits_[0] |= 0x00000008u;
12819 : }
12820 : void UninterpretedOption::clear_has_negative_int_value() {
12821 : _has_bits_[0] &= ~0x00000008u;
12822 : }
12823 : void UninterpretedOption::clear_negative_int_value() {
12824 : negative_int_value_ = GOOGLE_LONGLONG(0);
12825 : clear_has_negative_int_value();
12826 : }
12827 : ::google::protobuf::int64 UninterpretedOption::negative_int_value() const {
12828 : // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.negative_int_value)
12829 : return negative_int_value_;
12830 : }
12831 : void UninterpretedOption::set_negative_int_value(::google::protobuf::int64 value) {
12832 : set_has_negative_int_value();
12833 : negative_int_value_ = value;
12834 : // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.negative_int_value)
12835 : }
12836 :
12837 : // optional double double_value = 6;
12838 : bool UninterpretedOption::has_double_value() const {
12839 : return (_has_bits_[0] & 0x00000010u) != 0;
12840 : }
12841 : void UninterpretedOption::set_has_double_value() {
12842 : _has_bits_[0] |= 0x00000010u;
12843 : }
12844 : void UninterpretedOption::clear_has_double_value() {
12845 : _has_bits_[0] &= ~0x00000010u;
12846 : }
12847 : void UninterpretedOption::clear_double_value() {
12848 : double_value_ = 0;
12849 : clear_has_double_value();
12850 : }
12851 : double UninterpretedOption::double_value() const {
12852 : // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.double_value)
12853 : return double_value_;
12854 : }
12855 : void UninterpretedOption::set_double_value(double value) {
12856 : set_has_double_value();
12857 : double_value_ = value;
12858 : // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.double_value)
12859 : }
12860 :
12861 : // optional bytes string_value = 7;
12862 : bool UninterpretedOption::has_string_value() const {
12863 : return (_has_bits_[0] & 0x00000020u) != 0;
12864 : }
12865 : void UninterpretedOption::set_has_string_value() {
12866 : _has_bits_[0] |= 0x00000020u;
12867 : }
12868 : void UninterpretedOption::clear_has_string_value() {
12869 : _has_bits_[0] &= ~0x00000020u;
12870 : }
12871 : void UninterpretedOption::clear_string_value() {
12872 : string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12873 : clear_has_string_value();
12874 : }
12875 : const ::std::string& UninterpretedOption::string_value() const {
12876 : // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.string_value)
12877 : return string_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12878 : }
12879 : void UninterpretedOption::set_string_value(const ::std::string& value) {
12880 : set_has_string_value();
12881 : string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
12882 : // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.string_value)
12883 : }
12884 : void UninterpretedOption::set_string_value(const char* value) {
12885 : set_has_string_value();
12886 : string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
12887 : // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.string_value)
12888 : }
12889 : void UninterpretedOption::set_string_value(const void* value, size_t size) {
12890 : set_has_string_value();
12891 : string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
12892 : ::std::string(reinterpret_cast<const char*>(value), size));
12893 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.string_value)
12894 : }
12895 : ::std::string* UninterpretedOption::mutable_string_value() {
12896 : set_has_string_value();
12897 : // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.string_value)
12898 : return string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12899 : }
12900 : ::std::string* UninterpretedOption::release_string_value() {
12901 : clear_has_string_value();
12902 : return string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12903 : }
12904 : void UninterpretedOption::set_allocated_string_value(::std::string* string_value) {
12905 : if (string_value != NULL) {
12906 : set_has_string_value();
12907 : } else {
12908 : clear_has_string_value();
12909 : }
12910 : string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string_value);
12911 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.string_value)
12912 : }
12913 :
12914 : // optional string aggregate_value = 8;
12915 : bool UninterpretedOption::has_aggregate_value() const {
12916 : return (_has_bits_[0] & 0x00000040u) != 0;
12917 : }
12918 : void UninterpretedOption::set_has_aggregate_value() {
12919 : _has_bits_[0] |= 0x00000040u;
12920 : }
12921 : void UninterpretedOption::clear_has_aggregate_value() {
12922 : _has_bits_[0] &= ~0x00000040u;
12923 : }
12924 : void UninterpretedOption::clear_aggregate_value() {
12925 : aggregate_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12926 : clear_has_aggregate_value();
12927 : }
12928 : const ::std::string& UninterpretedOption::aggregate_value() const {
12929 : // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.aggregate_value)
12930 : return aggregate_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12931 : }
12932 : void UninterpretedOption::set_aggregate_value(const ::std::string& value) {
12933 : set_has_aggregate_value();
12934 : aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
12935 : // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.aggregate_value)
12936 : }
12937 : void UninterpretedOption::set_aggregate_value(const char* value) {
12938 : set_has_aggregate_value();
12939 : aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
12940 : // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.aggregate_value)
12941 : }
12942 : void UninterpretedOption::set_aggregate_value(const char* value, size_t size) {
12943 : set_has_aggregate_value();
12944 : aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
12945 : ::std::string(reinterpret_cast<const char*>(value), size));
12946 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.aggregate_value)
12947 : }
12948 : ::std::string* UninterpretedOption::mutable_aggregate_value() {
12949 : set_has_aggregate_value();
12950 : // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.aggregate_value)
12951 : return aggregate_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12952 : }
12953 : ::std::string* UninterpretedOption::release_aggregate_value() {
12954 : clear_has_aggregate_value();
12955 : return aggregate_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12956 : }
12957 : void UninterpretedOption::set_allocated_aggregate_value(::std::string* aggregate_value) {
12958 : if (aggregate_value != NULL) {
12959 : set_has_aggregate_value();
12960 : } else {
12961 : clear_has_aggregate_value();
12962 : }
12963 : aggregate_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), aggregate_value);
12964 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.aggregate_value)
12965 : }
12966 :
12967 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
12968 :
12969 : // ===================================================================
12970 :
12971 : #ifndef _MSC_VER
12972 : const int SourceCodeInfo_Location::kPathFieldNumber;
12973 : const int SourceCodeInfo_Location::kSpanFieldNumber;
12974 : const int SourceCodeInfo_Location::kLeadingCommentsFieldNumber;
12975 : const int SourceCodeInfo_Location::kTrailingCommentsFieldNumber;
12976 : const int SourceCodeInfo_Location::kLeadingDetachedCommentsFieldNumber;
12977 : #endif // !_MSC_VER
12978 :
12979 50457 : SourceCodeInfo_Location::SourceCodeInfo_Location()
12980 252285 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12981 50457 : SharedCtor();
12982 : // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo.Location)
12983 50457 : }
12984 :
12985 46 : void SourceCodeInfo_Location::InitAsDefaultInstance() {
12986 46 : }
12987 :
12988 0 : SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location& from)
12989 : : ::google::protobuf::Message(),
12990 0 : _internal_metadata_(NULL) {
12991 0 : SharedCtor();
12992 0 : MergeFrom(from);
12993 : // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo.Location)
12994 0 : }
12995 :
12996 50457 : void SourceCodeInfo_Location::SharedCtor() {
12997 : ::google::protobuf::internal::GetEmptyString();
12998 50457 : _cached_size_ = 0;
12999 50457 : leading_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13000 50457 : trailing_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13001 50457 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
13002 50457 : }
13003 :
13004 201644 : SourceCodeInfo_Location::~SourceCodeInfo_Location() {
13005 : // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo.Location)
13006 50411 : SharedDtor();
13007 100822 : }
13008 :
13009 50411 : void SourceCodeInfo_Location::SharedDtor() {
13010 50411 : leading_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13011 50411 : trailing_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13012 : if (this != default_instance_) {
13013 : }
13014 50411 : }
13015 :
13016 0 : void SourceCodeInfo_Location::SetCachedSize(int size) const {
13017 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13018 0 : _cached_size_ = size;
13019 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
13020 0 : }
13021 0 : const ::google::protobuf::Descriptor* SourceCodeInfo_Location::descriptor() {
13022 : protobuf_AssignDescriptorsOnce();
13023 0 : return SourceCodeInfo_Location_descriptor_;
13024 : }
13025 :
13026 1 : const SourceCodeInfo_Location& SourceCodeInfo_Location::default_instance() {
13027 1 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
13028 1 : return *default_instance_;
13029 : }
13030 :
13031 : SourceCodeInfo_Location* SourceCodeInfo_Location::default_instance_ = NULL;
13032 :
13033 0 : SourceCodeInfo_Location* SourceCodeInfo_Location::New(::google::protobuf::Arena* arena) const {
13034 0 : SourceCodeInfo_Location* n = new SourceCodeInfo_Location;
13035 0 : if (arena != NULL) {
13036 0 : arena->Own(n);
13037 : }
13038 0 : return n;
13039 : }
13040 :
13041 0 : void SourceCodeInfo_Location::Clear() {
13042 0 : if (_has_bits_[0 / 32] & 12u) {
13043 0 : if (has_leading_comments()) {
13044 0 : leading_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13045 : }
13046 0 : if (has_trailing_comments()) {
13047 0 : trailing_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13048 : }
13049 : }
13050 0 : path_.Clear();
13051 0 : span_.Clear();
13052 0 : leading_detached_comments_.Clear();
13053 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
13054 0 : if (_internal_metadata_.have_unknown_fields()) {
13055 0 : mutable_unknown_fields()->Clear();
13056 : }
13057 0 : }
13058 :
13059 1577 : bool SourceCodeInfo_Location::MergePartialFromCodedStream(
13060 : ::google::protobuf::io::CodedInputStream* input) {
13061 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
13062 : ::google::protobuf::uint32 tag;
13063 : // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo.Location)
13064 : for (;;) {
13065 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
13066 3157 : tag = p.first;
13067 3157 : if (!p.second) goto handle_unusual;
13068 1593 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
13069 : // repeated int32 path = 1 [packed = true];
13070 : case 1: {
13071 1564 : if (tag == 10) {
13072 3128 : DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
13073 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
13074 : input, this->mutable_path())));
13075 0 : } else if (tag == 8) {
13076 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
13077 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
13078 : 1, 10, input, this->mutable_path())));
13079 : } else {
13080 : goto handle_unusual;
13081 : }
13082 1564 : if (input->ExpectTag(18)) goto parse_span;
13083 : break;
13084 : }
13085 :
13086 : // repeated int32 span = 2 [packed = true];
13087 : case 2: {
13088 13 : if (tag == 18) {
13089 : parse_span:
13090 3154 : DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
13091 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
13092 : input, this->mutable_span())));
13093 0 : } else if (tag == 16) {
13094 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
13095 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
13096 : 1, 18, input, this->mutable_span())));
13097 : } else {
13098 : goto handle_unusual;
13099 : }
13100 1577 : if (input->ExpectTag(26)) goto parse_leading_comments;
13101 : break;
13102 : }
13103 :
13104 : // optional string leading_comments = 3;
13105 : case 3: {
13106 0 : if (tag == 26) {
13107 : parse_leading_comments:
13108 260 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13109 : input, this->mutable_leading_comments()));
13110 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13111 260 : this->leading_comments().data(), this->leading_comments().length(),
13112 : ::google::protobuf::internal::WireFormat::PARSE,
13113 260 : "google.protobuf.SourceCodeInfo.Location.leading_comments");
13114 : } else {
13115 : goto handle_unusual;
13116 : }
13117 130 : if (input->ExpectTag(34)) goto parse_trailing_comments;
13118 : break;
13119 : }
13120 :
13121 : // optional string trailing_comments = 4;
13122 : case 4: {
13123 3 : if (tag == 34) {
13124 : parse_trailing_comments:
13125 6 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13126 : input, this->mutable_trailing_comments()));
13127 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13128 6 : this->trailing_comments().data(), this->trailing_comments().length(),
13129 : ::google::protobuf::internal::WireFormat::PARSE,
13130 6 : "google.protobuf.SourceCodeInfo.Location.trailing_comments");
13131 : } else {
13132 : goto handle_unusual;
13133 : }
13134 3 : if (input->ExpectTag(50)) goto parse_leading_detached_comments;
13135 : break;
13136 : }
13137 :
13138 : // repeated string leading_detached_comments = 6;
13139 : case 6: {
13140 13 : if (tag == 50) {
13141 : parse_leading_detached_comments:
13142 34 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13143 : input, this->add_leading_detached_comments()));
13144 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13145 34 : this->leading_detached_comments(this->leading_detached_comments_size() - 1).data(),
13146 34 : this->leading_detached_comments(this->leading_detached_comments_size() - 1).length(),
13147 : ::google::protobuf::internal::WireFormat::PARSE,
13148 34 : "google.protobuf.SourceCodeInfo.Location.leading_detached_comments");
13149 : } else {
13150 : goto handle_unusual;
13151 : }
13152 17 : if (input->ExpectTag(50)) goto parse_leading_detached_comments;
13153 13 : if (input->ExpectAtEnd()) goto success;
13154 : break;
13155 : }
13156 :
13157 : default: {
13158 : handle_unusual:
13159 1564 : if (tag == 0 ||
13160 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
13161 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
13162 : goto success;
13163 : }
13164 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
13165 : input, tag, mutable_unknown_fields()));
13166 : break;
13167 : }
13168 : }
13169 1580 : }
13170 : success:
13171 : // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo.Location)
13172 1577 : return true;
13173 : failure:
13174 : // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo.Location)
13175 0 : return false;
13176 : #undef DO_
13177 : }
13178 :
13179 0 : void SourceCodeInfo_Location::SerializeWithCachedSizes(
13180 0 : ::google::protobuf::io::CodedOutputStream* output) const {
13181 : // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo.Location)
13182 : // repeated int32 path = 1 [packed = true];
13183 0 : if (this->path_size() > 0) {
13184 : ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
13185 0 : output->WriteVarint32(_path_cached_byte_size_);
13186 : }
13187 0 : for (int i = 0; i < this->path_size(); i++) {
13188 : ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
13189 0 : this->path(i), output);
13190 : }
13191 :
13192 : // repeated int32 span = 2 [packed = true];
13193 0 : if (this->span_size() > 0) {
13194 : ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
13195 0 : output->WriteVarint32(_span_cached_byte_size_);
13196 : }
13197 0 : for (int i = 0; i < this->span_size(); i++) {
13198 : ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
13199 0 : this->span(i), output);
13200 : }
13201 :
13202 : // optional string leading_comments = 3;
13203 0 : if (has_leading_comments()) {
13204 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13205 0 : this->leading_comments().data(), this->leading_comments().length(),
13206 : ::google::protobuf::internal::WireFormat::SERIALIZE,
13207 0 : "google.protobuf.SourceCodeInfo.Location.leading_comments");
13208 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
13209 0 : 3, this->leading_comments(), output);
13210 : }
13211 :
13212 : // optional string trailing_comments = 4;
13213 0 : if (has_trailing_comments()) {
13214 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13215 0 : this->trailing_comments().data(), this->trailing_comments().length(),
13216 : ::google::protobuf::internal::WireFormat::SERIALIZE,
13217 0 : "google.protobuf.SourceCodeInfo.Location.trailing_comments");
13218 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
13219 0 : 4, this->trailing_comments(), output);
13220 : }
13221 :
13222 : // repeated string leading_detached_comments = 6;
13223 0 : for (int i = 0; i < this->leading_detached_comments_size(); i++) {
13224 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13225 0 : this->leading_detached_comments(i).data(), this->leading_detached_comments(i).length(),
13226 : ::google::protobuf::internal::WireFormat::SERIALIZE,
13227 0 : "google.protobuf.SourceCodeInfo.Location.leading_detached_comments");
13228 : ::google::protobuf::internal::WireFormatLite::WriteString(
13229 0 : 6, this->leading_detached_comments(i), output);
13230 : }
13231 :
13232 0 : if (_internal_metadata_.have_unknown_fields()) {
13233 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
13234 0 : unknown_fields(), output);
13235 : }
13236 : // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo.Location)
13237 0 : }
13238 :
13239 1577 : ::google::protobuf::uint8* SourceCodeInfo_Location::SerializeWithCachedSizesToArray(
13240 3154 : ::google::protobuf::uint8* target) const {
13241 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo.Location)
13242 : // repeated int32 path = 1 [packed = true];
13243 1577 : if (this->path_size() > 0) {
13244 : target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
13245 : 1,
13246 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
13247 1564 : target);
13248 : target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
13249 3128 : _path_cached_byte_size_, target);
13250 : }
13251 15399 : for (int i = 0; i < this->path_size(); i++) {
13252 : target = ::google::protobuf::internal::WireFormatLite::
13253 13822 : WriteInt32NoTagToArray(this->path(i), target);
13254 : }
13255 :
13256 : // repeated int32 span = 2 [packed = true];
13257 1577 : if (this->span_size() > 0) {
13258 : target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
13259 : 2,
13260 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
13261 1577 : target);
13262 : target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
13263 3154 : _span_cached_byte_size_, target);
13264 : }
13265 11675 : for (int i = 0; i < this->span_size(); i++) {
13266 : target = ::google::protobuf::internal::WireFormatLite::
13267 10098 : WriteInt32NoTagToArray(this->span(i), target);
13268 : }
13269 :
13270 : // optional string leading_comments = 3;
13271 3154 : if (has_leading_comments()) {
13272 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13273 260 : this->leading_comments().data(), this->leading_comments().length(),
13274 : ::google::protobuf::internal::WireFormat::SERIALIZE,
13275 260 : "google.protobuf.SourceCodeInfo.Location.leading_comments");
13276 : target =
13277 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
13278 260 : 3, this->leading_comments(), target);
13279 : }
13280 :
13281 : // optional string trailing_comments = 4;
13282 3154 : if (has_trailing_comments()) {
13283 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13284 6 : this->trailing_comments().data(), this->trailing_comments().length(),
13285 : ::google::protobuf::internal::WireFormat::SERIALIZE,
13286 6 : "google.protobuf.SourceCodeInfo.Location.trailing_comments");
13287 : target =
13288 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
13289 6 : 4, this->trailing_comments(), target);
13290 : }
13291 :
13292 : // repeated string leading_detached_comments = 6;
13293 1611 : for (int i = 0; i < this->leading_detached_comments_size(); i++) {
13294 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13295 34 : this->leading_detached_comments(i).data(), this->leading_detached_comments(i).length(),
13296 : ::google::protobuf::internal::WireFormat::SERIALIZE,
13297 34 : "google.protobuf.SourceCodeInfo.Location.leading_detached_comments");
13298 : target = ::google::protobuf::internal::WireFormatLite::
13299 34 : WriteStringToArray(6, this->leading_detached_comments(i), target);
13300 : }
13301 :
13302 3154 : if (_internal_metadata_.have_unknown_fields()) {
13303 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
13304 0 : unknown_fields(), target);
13305 : }
13306 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeInfo.Location)
13307 1577 : return target;
13308 : }
13309 :
13310 1710 : int SourceCodeInfo_Location::ByteSize() const {
13311 1577 : int total_size = 0;
13312 :
13313 1577 : if (_has_bits_[2 / 32] & 12u) {
13314 : // optional string leading_comments = 3;
13315 266 : if (has_leading_comments()) {
13316 : total_size += 1 +
13317 : ::google::protobuf::internal::WireFormatLite::StringSize(
13318 130 : this->leading_comments());
13319 : }
13320 :
13321 : // optional string trailing_comments = 4;
13322 266 : if (has_trailing_comments()) {
13323 : total_size += 1 +
13324 : ::google::protobuf::internal::WireFormatLite::StringSize(
13325 3 : this->trailing_comments());
13326 : }
13327 :
13328 : }
13329 : // repeated int32 path = 1 [packed = true];
13330 : {
13331 1577 : int data_size = 0;
13332 16976 : for (int i = 0; i < this->path_size(); i++) {
13333 : data_size += ::google::protobuf::internal::WireFormatLite::
13334 13822 : Int32Size(this->path(i));
13335 : }
13336 1577 : if (data_size > 0) {
13337 : total_size += 1 +
13338 1564 : ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
13339 : }
13340 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13341 1577 : _path_cached_byte_size_ = data_size;
13342 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
13343 1577 : total_size += data_size;
13344 : }
13345 :
13346 : // repeated int32 span = 2 [packed = true];
13347 : {
13348 1577 : int data_size = 0;
13349 13252 : for (int i = 0; i < this->span_size(); i++) {
13350 : data_size += ::google::protobuf::internal::WireFormatLite::
13351 10098 : Int32Size(this->span(i));
13352 : }
13353 1577 : if (data_size > 0) {
13354 : total_size += 1 +
13355 1577 : ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
13356 : }
13357 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13358 1577 : _span_cached_byte_size_ = data_size;
13359 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
13360 1577 : total_size += data_size;
13361 : }
13362 :
13363 : // repeated string leading_detached_comments = 6;
13364 1577 : total_size += 1 * this->leading_detached_comments_size();
13365 3188 : for (int i = 0; i < this->leading_detached_comments_size(); i++) {
13366 : total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
13367 17 : this->leading_detached_comments(i));
13368 : }
13369 :
13370 3154 : if (_internal_metadata_.have_unknown_fields()) {
13371 : total_size +=
13372 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
13373 0 : unknown_fields());
13374 : }
13375 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13376 1577 : _cached_size_ = total_size;
13377 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
13378 1577 : return total_size;
13379 : }
13380 :
13381 0 : void SourceCodeInfo_Location::MergeFrom(const ::google::protobuf::Message& from) {
13382 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
13383 : const SourceCodeInfo_Location* source =
13384 : ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo_Location>(
13385 0 : &from);
13386 0 : if (source == NULL) {
13387 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
13388 : } else {
13389 0 : MergeFrom(*source);
13390 : }
13391 0 : }
13392 :
13393 26958 : void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) {
13394 25994 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
13395 25994 : path_.MergeFrom(from.path_);
13396 25994 : span_.MergeFrom(from.span_);
13397 25994 : leading_detached_comments_.MergeFrom(from.leading_detached_comments_);
13398 25994 : if (from._has_bits_[2 / 32] & (0xffu << (2 % 32))) {
13399 1928 : if (from.has_leading_comments()) {
13400 907 : set_has_leading_comments();
13401 907 : leading_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.leading_comments_);
13402 : }
13403 1928 : if (from.has_trailing_comments()) {
13404 64 : set_has_trailing_comments();
13405 64 : trailing_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trailing_comments_);
13406 : }
13407 : }
13408 51988 : if (from._internal_metadata_.have_unknown_fields()) {
13409 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
13410 : }
13411 25994 : }
13412 :
13413 0 : void SourceCodeInfo_Location::CopyFrom(const ::google::protobuf::Message& from) {
13414 0 : if (&from == this) return;
13415 0 : Clear();
13416 0 : MergeFrom(from);
13417 : }
13418 :
13419 0 : void SourceCodeInfo_Location::CopyFrom(const SourceCodeInfo_Location& from) {
13420 0 : if (&from == this) return;
13421 0 : Clear();
13422 0 : MergeFrom(from);
13423 : }
13424 :
13425 0 : bool SourceCodeInfo_Location::IsInitialized() const {
13426 :
13427 0 : return true;
13428 : }
13429 :
13430 0 : void SourceCodeInfo_Location::Swap(SourceCodeInfo_Location* other) {
13431 0 : if (other == this) return;
13432 0 : InternalSwap(other);
13433 : }
13434 0 : void SourceCodeInfo_Location::InternalSwap(SourceCodeInfo_Location* other) {
13435 0 : path_.UnsafeArenaSwap(&other->path_);
13436 0 : span_.UnsafeArenaSwap(&other->span_);
13437 0 : leading_comments_.Swap(&other->leading_comments_);
13438 0 : trailing_comments_.Swap(&other->trailing_comments_);
13439 0 : leading_detached_comments_.UnsafeArenaSwap(&other->leading_detached_comments_);
13440 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
13441 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
13442 0 : std::swap(_cached_size_, other->_cached_size_);
13443 0 : }
13444 :
13445 0 : ::google::protobuf::Metadata SourceCodeInfo_Location::GetMetadata() const {
13446 : protobuf_AssignDescriptorsOnce();
13447 : ::google::protobuf::Metadata metadata;
13448 0 : metadata.descriptor = SourceCodeInfo_Location_descriptor_;
13449 0 : metadata.reflection = SourceCodeInfo_Location_reflection_;
13450 0 : return metadata;
13451 : }
13452 :
13453 :
13454 : // -------------------------------------------------------------------
13455 :
13456 : #ifndef _MSC_VER
13457 : const int SourceCodeInfo::kLocationFieldNumber;
13458 : #endif // !_MSC_VER
13459 :
13460 319 : SourceCodeInfo::SourceCodeInfo()
13461 957 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
13462 319 : SharedCtor();
13463 : // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo)
13464 319 : }
13465 :
13466 46 : void SourceCodeInfo::InitAsDefaultInstance() {
13467 46 : }
13468 :
13469 0 : SourceCodeInfo::SourceCodeInfo(const SourceCodeInfo& from)
13470 : : ::google::protobuf::Message(),
13471 0 : _internal_metadata_(NULL) {
13472 0 : SharedCtor();
13473 0 : MergeFrom(from);
13474 : // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo)
13475 0 : }
13476 :
13477 319 : void SourceCodeInfo::SharedCtor() {
13478 319 : _cached_size_ = 0;
13479 319 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
13480 319 : }
13481 :
13482 1014 : SourceCodeInfo::~SourceCodeInfo() {
13483 : // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo)
13484 273 : SharedDtor();
13485 468 : }
13486 :
13487 273 : void SourceCodeInfo::SharedDtor() {
13488 : if (this != default_instance_) {
13489 : }
13490 273 : }
13491 :
13492 0 : void SourceCodeInfo::SetCachedSize(int size) const {
13493 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13494 0 : _cached_size_ = size;
13495 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
13496 0 : }
13497 0 : const ::google::protobuf::Descriptor* SourceCodeInfo::descriptor() {
13498 : protobuf_AssignDescriptorsOnce();
13499 0 : return SourceCodeInfo_descriptor_;
13500 : }
13501 :
13502 65 : const SourceCodeInfo& SourceCodeInfo::default_instance() {
13503 65 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
13504 65 : return *default_instance_;
13505 : }
13506 :
13507 : SourceCodeInfo* SourceCodeInfo::default_instance_ = NULL;
13508 :
13509 0 : SourceCodeInfo* SourceCodeInfo::New(::google::protobuf::Arena* arena) const {
13510 0 : SourceCodeInfo* n = new SourceCodeInfo;
13511 0 : if (arena != NULL) {
13512 0 : arena->Own(n);
13513 : }
13514 0 : return n;
13515 : }
13516 :
13517 104 : void SourceCodeInfo::Clear() {
13518 104 : location_.Clear();
13519 104 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
13520 208 : if (_internal_metadata_.have_unknown_fields()) {
13521 0 : mutable_unknown_fields()->Clear();
13522 : }
13523 104 : }
13524 :
13525 13 : bool SourceCodeInfo::MergePartialFromCodedStream(
13526 : ::google::protobuf::io::CodedInputStream* input) {
13527 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
13528 : ::google::protobuf::uint32 tag;
13529 : // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo)
13530 : for (;;) {
13531 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
13532 13 : tag = p.first;
13533 13 : if (!p.second) goto handle_unusual;
13534 13 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
13535 : // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
13536 : case 1: {
13537 13 : if (tag == 10) {
13538 26 : DO_(input->IncrementRecursionDepth());
13539 : parse_loop_location:
13540 1577 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
13541 : input, add_location()));
13542 : } else {
13543 : goto handle_unusual;
13544 : }
13545 1577 : if (input->ExpectTag(10)) goto parse_loop_location;
13546 13 : input->UnsafeDecrementRecursionDepth();
13547 13 : if (input->ExpectAtEnd()) goto success;
13548 : break;
13549 : }
13550 :
13551 : default: {
13552 : handle_unusual:
13553 0 : if (tag == 0 ||
13554 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
13555 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
13556 : goto success;
13557 : }
13558 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
13559 : input, tag, mutable_unknown_fields()));
13560 : break;
13561 : }
13562 : }
13563 0 : }
13564 : success:
13565 : // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo)
13566 13 : return true;
13567 : failure:
13568 : // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo)
13569 0 : return false;
13570 : #undef DO_
13571 : }
13572 :
13573 0 : void SourceCodeInfo::SerializeWithCachedSizes(
13574 : ::google::protobuf::io::CodedOutputStream* output) const {
13575 : // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo)
13576 : // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
13577 0 : for (unsigned int i = 0, n = this->location_size(); i < n; i++) {
13578 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13579 0 : 1, this->location(i), output);
13580 : }
13581 :
13582 0 : if (_internal_metadata_.have_unknown_fields()) {
13583 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
13584 0 : unknown_fields(), output);
13585 : }
13586 : // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo)
13587 0 : }
13588 :
13589 13 : ::google::protobuf::uint8* SourceCodeInfo::SerializeWithCachedSizesToArray(
13590 : ::google::protobuf::uint8* target) const {
13591 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo)
13592 : // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
13593 1603 : for (unsigned int i = 0, n = this->location_size(); i < n; i++) {
13594 : target = ::google::protobuf::internal::WireFormatLite::
13595 : WriteMessageNoVirtualToArray(
13596 4731 : 1, this->location(i), target);
13597 : }
13598 :
13599 26 : if (_internal_metadata_.have_unknown_fields()) {
13600 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
13601 0 : unknown_fields(), target);
13602 : }
13603 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeInfo)
13604 13 : return target;
13605 : }
13606 :
13607 13 : int SourceCodeInfo::ByteSize() const {
13608 13 : int total_size = 0;
13609 :
13610 : // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
13611 13 : total_size += 1 * this->location_size();
13612 3180 : for (int i = 0; i < this->location_size(); i++) {
13613 : total_size +=
13614 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
13615 1577 : this->location(i));
13616 : }
13617 :
13618 26 : if (_internal_metadata_.have_unknown_fields()) {
13619 : total_size +=
13620 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
13621 0 : unknown_fields());
13622 : }
13623 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13624 13 : _cached_size_ = total_size;
13625 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
13626 13 : return total_size;
13627 : }
13628 :
13629 0 : void SourceCodeInfo::MergeFrom(const ::google::protobuf::Message& from) {
13630 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
13631 : const SourceCodeInfo* source =
13632 : ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo>(
13633 0 : &from);
13634 0 : if (source == NULL) {
13635 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
13636 : } else {
13637 0 : MergeFrom(*source);
13638 : }
13639 0 : }
13640 :
13641 104 : void SourceCodeInfo::MergeFrom(const SourceCodeInfo& from) {
13642 104 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
13643 104 : location_.MergeFrom(from.location_);
13644 208 : if (from._internal_metadata_.have_unknown_fields()) {
13645 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
13646 : }
13647 104 : }
13648 :
13649 0 : void SourceCodeInfo::CopyFrom(const ::google::protobuf::Message& from) {
13650 0 : if (&from == this) return;
13651 0 : Clear();
13652 0 : MergeFrom(from);
13653 : }
13654 :
13655 104 : void SourceCodeInfo::CopyFrom(const SourceCodeInfo& from) {
13656 208 : if (&from == this) return;
13657 104 : Clear();
13658 104 : MergeFrom(from);
13659 : }
13660 :
13661 0 : bool SourceCodeInfo::IsInitialized() const {
13662 :
13663 0 : return true;
13664 : }
13665 :
13666 78 : void SourceCodeInfo::Swap(SourceCodeInfo* other) {
13667 156 : if (other == this) return;
13668 78 : InternalSwap(other);
13669 : }
13670 78 : void SourceCodeInfo::InternalSwap(SourceCodeInfo* other) {
13671 78 : location_.UnsafeArenaSwap(&other->location_);
13672 78 : std::swap(_has_bits_[0], other->_has_bits_[0]);
13673 78 : _internal_metadata_.Swap(&other->_internal_metadata_);
13674 78 : std::swap(_cached_size_, other->_cached_size_);
13675 78 : }
13676 :
13677 0 : ::google::protobuf::Metadata SourceCodeInfo::GetMetadata() const {
13678 : protobuf_AssignDescriptorsOnce();
13679 : ::google::protobuf::Metadata metadata;
13680 0 : metadata.descriptor = SourceCodeInfo_descriptor_;
13681 0 : metadata.reflection = SourceCodeInfo_reflection_;
13682 0 : return metadata;
13683 : }
13684 :
13685 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
13686 : // SourceCodeInfo_Location
13687 :
13688 : // repeated int32 path = 1 [packed = true];
13689 : int SourceCodeInfo_Location::path_size() const {
13690 : return path_.size();
13691 : }
13692 : void SourceCodeInfo_Location::clear_path() {
13693 : path_.Clear();
13694 : }
13695 : ::google::protobuf::int32 SourceCodeInfo_Location::path(int index) const {
13696 : // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.path)
13697 : return path_.Get(index);
13698 : }
13699 : void SourceCodeInfo_Location::set_path(int index, ::google::protobuf::int32 value) {
13700 : path_.Set(index, value);
13701 : // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.path)
13702 : }
13703 : void SourceCodeInfo_Location::add_path(::google::protobuf::int32 value) {
13704 : path_.Add(value);
13705 : // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.path)
13706 : }
13707 : const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
13708 : SourceCodeInfo_Location::path() const {
13709 : // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.path)
13710 : return path_;
13711 : }
13712 : ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
13713 : SourceCodeInfo_Location::mutable_path() {
13714 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.path)
13715 : return &path_;
13716 : }
13717 :
13718 : // repeated int32 span = 2 [packed = true];
13719 : int SourceCodeInfo_Location::span_size() const {
13720 : return span_.size();
13721 : }
13722 : void SourceCodeInfo_Location::clear_span() {
13723 : span_.Clear();
13724 : }
13725 : ::google::protobuf::int32 SourceCodeInfo_Location::span(int index) const {
13726 : // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.span)
13727 : return span_.Get(index);
13728 : }
13729 : void SourceCodeInfo_Location::set_span(int index, ::google::protobuf::int32 value) {
13730 : span_.Set(index, value);
13731 : // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.span)
13732 : }
13733 : void SourceCodeInfo_Location::add_span(::google::protobuf::int32 value) {
13734 : span_.Add(value);
13735 : // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.span)
13736 : }
13737 : const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
13738 : SourceCodeInfo_Location::span() const {
13739 : // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.span)
13740 : return span_;
13741 : }
13742 : ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
13743 : SourceCodeInfo_Location::mutable_span() {
13744 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.span)
13745 : return &span_;
13746 : }
13747 :
13748 : // optional string leading_comments = 3;
13749 : bool SourceCodeInfo_Location::has_leading_comments() const {
13750 : return (_has_bits_[0] & 0x00000004u) != 0;
13751 : }
13752 : void SourceCodeInfo_Location::set_has_leading_comments() {
13753 : _has_bits_[0] |= 0x00000004u;
13754 : }
13755 : void SourceCodeInfo_Location::clear_has_leading_comments() {
13756 : _has_bits_[0] &= ~0x00000004u;
13757 : }
13758 : void SourceCodeInfo_Location::clear_leading_comments() {
13759 : leading_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13760 : clear_has_leading_comments();
13761 : }
13762 : const ::std::string& SourceCodeInfo_Location::leading_comments() const {
13763 : // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_comments)
13764 : return leading_comments_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13765 : }
13766 : void SourceCodeInfo_Location::set_leading_comments(const ::std::string& value) {
13767 : set_has_leading_comments();
13768 : leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
13769 : // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_comments)
13770 : }
13771 : void SourceCodeInfo_Location::set_leading_comments(const char* value) {
13772 : set_has_leading_comments();
13773 : leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
13774 : // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_comments)
13775 : }
13776 : void SourceCodeInfo_Location::set_leading_comments(const char* value, size_t size) {
13777 : set_has_leading_comments();
13778 : leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
13779 : ::std::string(reinterpret_cast<const char*>(value), size));
13780 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_comments)
13781 : }
13782 : ::std::string* SourceCodeInfo_Location::mutable_leading_comments() {
13783 : set_has_leading_comments();
13784 : // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_comments)
13785 : return leading_comments_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13786 : }
13787 : ::std::string* SourceCodeInfo_Location::release_leading_comments() {
13788 : clear_has_leading_comments();
13789 : return leading_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13790 : }
13791 : void SourceCodeInfo_Location::set_allocated_leading_comments(::std::string* leading_comments) {
13792 : if (leading_comments != NULL) {
13793 : set_has_leading_comments();
13794 : } else {
13795 : clear_has_leading_comments();
13796 : }
13797 : leading_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), leading_comments);
13798 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.leading_comments)
13799 : }
13800 :
13801 : // optional string trailing_comments = 4;
13802 : bool SourceCodeInfo_Location::has_trailing_comments() const {
13803 : return (_has_bits_[0] & 0x00000008u) != 0;
13804 : }
13805 : void SourceCodeInfo_Location::set_has_trailing_comments() {
13806 : _has_bits_[0] |= 0x00000008u;
13807 : }
13808 : void SourceCodeInfo_Location::clear_has_trailing_comments() {
13809 : _has_bits_[0] &= ~0x00000008u;
13810 : }
13811 : void SourceCodeInfo_Location::clear_trailing_comments() {
13812 : trailing_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13813 : clear_has_trailing_comments();
13814 : }
13815 : const ::std::string& SourceCodeInfo_Location::trailing_comments() const {
13816 : // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.trailing_comments)
13817 : return trailing_comments_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13818 : }
13819 : void SourceCodeInfo_Location::set_trailing_comments(const ::std::string& value) {
13820 : set_has_trailing_comments();
13821 : trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
13822 : // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.trailing_comments)
13823 : }
13824 : void SourceCodeInfo_Location::set_trailing_comments(const char* value) {
13825 : set_has_trailing_comments();
13826 : trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
13827 : // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.trailing_comments)
13828 : }
13829 : void SourceCodeInfo_Location::set_trailing_comments(const char* value, size_t size) {
13830 : set_has_trailing_comments();
13831 : trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
13832 : ::std::string(reinterpret_cast<const char*>(value), size));
13833 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.trailing_comments)
13834 : }
13835 : ::std::string* SourceCodeInfo_Location::mutable_trailing_comments() {
13836 : set_has_trailing_comments();
13837 : // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.trailing_comments)
13838 : return trailing_comments_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13839 : }
13840 : ::std::string* SourceCodeInfo_Location::release_trailing_comments() {
13841 : clear_has_trailing_comments();
13842 : return trailing_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13843 : }
13844 : void SourceCodeInfo_Location::set_allocated_trailing_comments(::std::string* trailing_comments) {
13845 : if (trailing_comments != NULL) {
13846 : set_has_trailing_comments();
13847 : } else {
13848 : clear_has_trailing_comments();
13849 : }
13850 : trailing_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), trailing_comments);
13851 : // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.trailing_comments)
13852 : }
13853 :
13854 : // repeated string leading_detached_comments = 6;
13855 : int SourceCodeInfo_Location::leading_detached_comments_size() const {
13856 : return leading_detached_comments_.size();
13857 : }
13858 : void SourceCodeInfo_Location::clear_leading_detached_comments() {
13859 : leading_detached_comments_.Clear();
13860 : }
13861 : const ::std::string& SourceCodeInfo_Location::leading_detached_comments(int index) const {
13862 : // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
13863 : return leading_detached_comments_.Get(index);
13864 : }
13865 : ::std::string* SourceCodeInfo_Location::mutable_leading_detached_comments(int index) {
13866 : // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
13867 : return leading_detached_comments_.Mutable(index);
13868 : }
13869 : void SourceCodeInfo_Location::set_leading_detached_comments(int index, const ::std::string& value) {
13870 : // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
13871 : leading_detached_comments_.Mutable(index)->assign(value);
13872 : }
13873 : void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value) {
13874 : leading_detached_comments_.Mutable(index)->assign(value);
13875 : // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
13876 : }
13877 : void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value, size_t size) {
13878 : leading_detached_comments_.Mutable(index)->assign(
13879 : reinterpret_cast<const char*>(value), size);
13880 : // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
13881 : }
13882 : ::std::string* SourceCodeInfo_Location::add_leading_detached_comments() {
13883 : return leading_detached_comments_.Add();
13884 : }
13885 : void SourceCodeInfo_Location::add_leading_detached_comments(const ::std::string& value) {
13886 : leading_detached_comments_.Add()->assign(value);
13887 : // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
13888 : }
13889 : void SourceCodeInfo_Location::add_leading_detached_comments(const char* value) {
13890 : leading_detached_comments_.Add()->assign(value);
13891 : // @@protoc_insertion_point(field_add_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
13892 : }
13893 : void SourceCodeInfo_Location::add_leading_detached_comments(const char* value, size_t size) {
13894 : leading_detached_comments_.Add()->assign(reinterpret_cast<const char*>(value), size);
13895 : // @@protoc_insertion_point(field_add_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
13896 : }
13897 : const ::google::protobuf::RepeatedPtrField< ::std::string>&
13898 : SourceCodeInfo_Location::leading_detached_comments() const {
13899 : // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
13900 : return leading_detached_comments_;
13901 : }
13902 : ::google::protobuf::RepeatedPtrField< ::std::string>*
13903 : SourceCodeInfo_Location::mutable_leading_detached_comments() {
13904 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
13905 : return &leading_detached_comments_;
13906 : }
13907 :
13908 : // -------------------------------------------------------------------
13909 :
13910 : // SourceCodeInfo
13911 :
13912 : // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
13913 : int SourceCodeInfo::location_size() const {
13914 : return location_.size();
13915 : }
13916 : void SourceCodeInfo::clear_location() {
13917 : location_.Clear();
13918 : }
13919 : const ::google::protobuf::SourceCodeInfo_Location& SourceCodeInfo::location(int index) const {
13920 : // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.location)
13921 : return location_.Get(index);
13922 : }
13923 : ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::mutable_location(int index) {
13924 : // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.location)
13925 : return location_.Mutable(index);
13926 : }
13927 : ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::add_location() {
13928 : // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.location)
13929 : return location_.Add();
13930 : }
13931 : ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >*
13932 : SourceCodeInfo::mutable_location() {
13933 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.location)
13934 : return &location_;
13935 : }
13936 : const ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >&
13937 : SourceCodeInfo::location() const {
13938 : // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.location)
13939 : return location_;
13940 : }
13941 :
13942 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
13943 :
13944 : // @@protoc_insertion_point(namespace_scope)
13945 :
13946 : } // namespace protobuf
13947 92 : } // namespace google
13948 :
13949 : // @@protoc_insertion_point(global_scope)
|