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* FieldDescriptorProto_descriptor_ = NULL;
37 : const ::google::protobuf::internal::GeneratedMessageReflection*
38 : FieldDescriptorProto_reflection_ = NULL;
39 : const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor_ = NULL;
40 : const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor_ = NULL;
41 : const ::google::protobuf::Descriptor* OneofDescriptorProto_descriptor_ = NULL;
42 : const ::google::protobuf::internal::GeneratedMessageReflection*
43 : OneofDescriptorProto_reflection_ = NULL;
44 : const ::google::protobuf::Descriptor* EnumDescriptorProto_descriptor_ = NULL;
45 : const ::google::protobuf::internal::GeneratedMessageReflection*
46 : EnumDescriptorProto_reflection_ = NULL;
47 : const ::google::protobuf::Descriptor* EnumValueDescriptorProto_descriptor_ = NULL;
48 : const ::google::protobuf::internal::GeneratedMessageReflection*
49 : EnumValueDescriptorProto_reflection_ = NULL;
50 : const ::google::protobuf::Descriptor* ServiceDescriptorProto_descriptor_ = NULL;
51 : const ::google::protobuf::internal::GeneratedMessageReflection*
52 : ServiceDescriptorProto_reflection_ = NULL;
53 : const ::google::protobuf::Descriptor* MethodDescriptorProto_descriptor_ = NULL;
54 : const ::google::protobuf::internal::GeneratedMessageReflection*
55 : MethodDescriptorProto_reflection_ = NULL;
56 : const ::google::protobuf::Descriptor* FileOptions_descriptor_ = NULL;
57 : const ::google::protobuf::internal::GeneratedMessageReflection*
58 : FileOptions_reflection_ = NULL;
59 : const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor_ = NULL;
60 : const ::google::protobuf::Descriptor* MessageOptions_descriptor_ = NULL;
61 : const ::google::protobuf::internal::GeneratedMessageReflection*
62 : MessageOptions_reflection_ = NULL;
63 : const ::google::protobuf::Descriptor* FieldOptions_descriptor_ = NULL;
64 : const ::google::protobuf::internal::GeneratedMessageReflection*
65 : FieldOptions_reflection_ = NULL;
66 : const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor_ = NULL;
67 : const ::google::protobuf::Descriptor* EnumOptions_descriptor_ = NULL;
68 : const ::google::protobuf::internal::GeneratedMessageReflection*
69 : EnumOptions_reflection_ = NULL;
70 : const ::google::protobuf::Descriptor* EnumValueOptions_descriptor_ = NULL;
71 : const ::google::protobuf::internal::GeneratedMessageReflection*
72 : EnumValueOptions_reflection_ = NULL;
73 : const ::google::protobuf::Descriptor* ServiceOptions_descriptor_ = NULL;
74 : const ::google::protobuf::internal::GeneratedMessageReflection*
75 : ServiceOptions_reflection_ = NULL;
76 : const ::google::protobuf::Descriptor* MethodOptions_descriptor_ = NULL;
77 : const ::google::protobuf::internal::GeneratedMessageReflection*
78 : MethodOptions_reflection_ = NULL;
79 : const ::google::protobuf::Descriptor* UninterpretedOption_descriptor_ = NULL;
80 : const ::google::protobuf::internal::GeneratedMessageReflection*
81 : UninterpretedOption_reflection_ = NULL;
82 : const ::google::protobuf::Descriptor* UninterpretedOption_NamePart_descriptor_ = NULL;
83 : const ::google::protobuf::internal::GeneratedMessageReflection*
84 : UninterpretedOption_NamePart_reflection_ = NULL;
85 : const ::google::protobuf::Descriptor* SourceCodeInfo_descriptor_ = NULL;
86 : const ::google::protobuf::internal::GeneratedMessageReflection*
87 : SourceCodeInfo_reflection_ = NULL;
88 : const ::google::protobuf::Descriptor* SourceCodeInfo_Location_descriptor_ = NULL;
89 : const ::google::protobuf::internal::GeneratedMessageReflection*
90 : SourceCodeInfo_Location_reflection_ = NULL;
91 :
92 : } // namespace
93 :
94 :
95 0 : void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() {
96 0 : protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
97 : const ::google::protobuf::FileDescriptor* file =
98 0 : ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
99 0 : "google/protobuf/descriptor.proto");
100 0 : GOOGLE_CHECK(file != NULL);
101 0 : FileDescriptorSet_descriptor_ = file->message_type(0);
102 : static const int FileDescriptorSet_offsets_[1] = {
103 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, file_),
104 : };
105 0 : FileDescriptorSet_reflection_ =
106 : new ::google::protobuf::internal::GeneratedMessageReflection(
107 : FileDescriptorSet_descriptor_,
108 : FileDescriptorSet::default_instance_,
109 : FileDescriptorSet_offsets_,
110 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _has_bits_[0]),
111 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _unknown_fields_),
112 : -1,
113 0 : ::google::protobuf::DescriptorPool::generated_pool(),
114 0 : ::google::protobuf::MessageFactory::generated_factory(),
115 0 : sizeof(FileDescriptorSet));
116 0 : FileDescriptorProto_descriptor_ = file->message_type(1);
117 : static const int FileDescriptorProto_offsets_[11] = {
118 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, name_),
119 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, package_),
120 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, dependency_),
121 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, public_dependency_),
122 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, weak_dependency_),
123 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, message_type_),
124 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, enum_type_),
125 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, service_),
126 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, extension_),
127 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, options_),
128 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, source_code_info_),
129 : };
130 0 : FileDescriptorProto_reflection_ =
131 : new ::google::protobuf::internal::GeneratedMessageReflection(
132 : FileDescriptorProto_descriptor_,
133 : FileDescriptorProto::default_instance_,
134 : FileDescriptorProto_offsets_,
135 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _has_bits_[0]),
136 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _unknown_fields_),
137 : -1,
138 0 : ::google::protobuf::DescriptorPool::generated_pool(),
139 0 : ::google::protobuf::MessageFactory::generated_factory(),
140 0 : sizeof(FileDescriptorProto));
141 0 : DescriptorProto_descriptor_ = file->message_type(2);
142 : static const int DescriptorProto_offsets_[8] = {
143 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, name_),
144 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, field_),
145 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_),
146 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, nested_type_),
147 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, enum_type_),
148 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_range_),
149 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, oneof_decl_),
150 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, options_),
151 : };
152 0 : DescriptorProto_reflection_ =
153 : new ::google::protobuf::internal::GeneratedMessageReflection(
154 : DescriptorProto_descriptor_,
155 : DescriptorProto::default_instance_,
156 : DescriptorProto_offsets_,
157 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _has_bits_[0]),
158 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _unknown_fields_),
159 : -1,
160 0 : ::google::protobuf::DescriptorPool::generated_pool(),
161 0 : ::google::protobuf::MessageFactory::generated_factory(),
162 0 : sizeof(DescriptorProto));
163 0 : DescriptorProto_ExtensionRange_descriptor_ = DescriptorProto_descriptor_->nested_type(0);
164 : static const int DescriptorProto_ExtensionRange_offsets_[2] = {
165 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, start_),
166 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, end_),
167 : };
168 0 : DescriptorProto_ExtensionRange_reflection_ =
169 : new ::google::protobuf::internal::GeneratedMessageReflection(
170 : DescriptorProto_ExtensionRange_descriptor_,
171 : DescriptorProto_ExtensionRange::default_instance_,
172 : DescriptorProto_ExtensionRange_offsets_,
173 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _has_bits_[0]),
174 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _unknown_fields_),
175 : -1,
176 0 : ::google::protobuf::DescriptorPool::generated_pool(),
177 0 : ::google::protobuf::MessageFactory::generated_factory(),
178 0 : sizeof(DescriptorProto_ExtensionRange));
179 0 : FieldDescriptorProto_descriptor_ = file->message_type(3);
180 : static const int FieldDescriptorProto_offsets_[9] = {
181 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, name_),
182 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, number_),
183 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, label_),
184 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_),
185 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_name_),
186 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, extendee_),
187 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, default_value_),
188 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, oneof_index_),
189 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, options_),
190 : };
191 0 : FieldDescriptorProto_reflection_ =
192 : new ::google::protobuf::internal::GeneratedMessageReflection(
193 : FieldDescriptorProto_descriptor_,
194 : FieldDescriptorProto::default_instance_,
195 : FieldDescriptorProto_offsets_,
196 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _has_bits_[0]),
197 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _unknown_fields_),
198 : -1,
199 0 : ::google::protobuf::DescriptorPool::generated_pool(),
200 0 : ::google::protobuf::MessageFactory::generated_factory(),
201 0 : sizeof(FieldDescriptorProto));
202 0 : FieldDescriptorProto_Type_descriptor_ = FieldDescriptorProto_descriptor_->enum_type(0);
203 0 : FieldDescriptorProto_Label_descriptor_ = FieldDescriptorProto_descriptor_->enum_type(1);
204 0 : OneofDescriptorProto_descriptor_ = file->message_type(4);
205 : static const int OneofDescriptorProto_offsets_[1] = {
206 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, name_),
207 : };
208 0 : OneofDescriptorProto_reflection_ =
209 : new ::google::protobuf::internal::GeneratedMessageReflection(
210 : OneofDescriptorProto_descriptor_,
211 : OneofDescriptorProto::default_instance_,
212 : OneofDescriptorProto_offsets_,
213 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _has_bits_[0]),
214 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _unknown_fields_),
215 : -1,
216 0 : ::google::protobuf::DescriptorPool::generated_pool(),
217 0 : ::google::protobuf::MessageFactory::generated_factory(),
218 0 : sizeof(OneofDescriptorProto));
219 0 : EnumDescriptorProto_descriptor_ = file->message_type(5);
220 : static const int EnumDescriptorProto_offsets_[3] = {
221 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, name_),
222 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, value_),
223 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, options_),
224 : };
225 0 : EnumDescriptorProto_reflection_ =
226 : new ::google::protobuf::internal::GeneratedMessageReflection(
227 : EnumDescriptorProto_descriptor_,
228 : EnumDescriptorProto::default_instance_,
229 : EnumDescriptorProto_offsets_,
230 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _has_bits_[0]),
231 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _unknown_fields_),
232 : -1,
233 0 : ::google::protobuf::DescriptorPool::generated_pool(),
234 0 : ::google::protobuf::MessageFactory::generated_factory(),
235 0 : sizeof(EnumDescriptorProto));
236 0 : EnumValueDescriptorProto_descriptor_ = file->message_type(6);
237 : static const int EnumValueDescriptorProto_offsets_[3] = {
238 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, name_),
239 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, number_),
240 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, options_),
241 : };
242 0 : EnumValueDescriptorProto_reflection_ =
243 : new ::google::protobuf::internal::GeneratedMessageReflection(
244 : EnumValueDescriptorProto_descriptor_,
245 : EnumValueDescriptorProto::default_instance_,
246 : EnumValueDescriptorProto_offsets_,
247 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _has_bits_[0]),
248 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _unknown_fields_),
249 : -1,
250 0 : ::google::protobuf::DescriptorPool::generated_pool(),
251 0 : ::google::protobuf::MessageFactory::generated_factory(),
252 0 : sizeof(EnumValueDescriptorProto));
253 0 : ServiceDescriptorProto_descriptor_ = file->message_type(7);
254 : static const int ServiceDescriptorProto_offsets_[3] = {
255 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, name_),
256 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, method_),
257 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, options_),
258 : };
259 0 : ServiceDescriptorProto_reflection_ =
260 : new ::google::protobuf::internal::GeneratedMessageReflection(
261 : ServiceDescriptorProto_descriptor_,
262 : ServiceDescriptorProto::default_instance_,
263 : ServiceDescriptorProto_offsets_,
264 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _has_bits_[0]),
265 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _unknown_fields_),
266 : -1,
267 0 : ::google::protobuf::DescriptorPool::generated_pool(),
268 0 : ::google::protobuf::MessageFactory::generated_factory(),
269 0 : sizeof(ServiceDescriptorProto));
270 0 : MethodDescriptorProto_descriptor_ = file->message_type(8);
271 : static const int MethodDescriptorProto_offsets_[4] = {
272 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, name_),
273 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, input_type_),
274 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, output_type_),
275 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, options_),
276 : };
277 0 : MethodDescriptorProto_reflection_ =
278 : new ::google::protobuf::internal::GeneratedMessageReflection(
279 : MethodDescriptorProto_descriptor_,
280 : MethodDescriptorProto::default_instance_,
281 : MethodDescriptorProto_offsets_,
282 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _has_bits_[0]),
283 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _unknown_fields_),
284 : -1,
285 0 : ::google::protobuf::DescriptorPool::generated_pool(),
286 0 : ::google::protobuf::MessageFactory::generated_factory(),
287 0 : sizeof(MethodDescriptorProto));
288 0 : FileOptions_descriptor_ = file->message_type(9);
289 : static const int FileOptions_offsets_[12] = {
290 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_package_),
291 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_outer_classname_),
292 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_multiple_files_),
293 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generate_equals_and_hash_),
294 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_string_check_utf8_),
295 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, optimize_for_),
296 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, go_package_),
297 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_generic_services_),
298 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generic_services_),
299 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, py_generic_services_),
300 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, deprecated_),
301 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, uninterpreted_option_),
302 : };
303 0 : FileOptions_reflection_ =
304 : new ::google::protobuf::internal::GeneratedMessageReflection(
305 : FileOptions_descriptor_,
306 : FileOptions::default_instance_,
307 : FileOptions_offsets_,
308 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _has_bits_[0]),
309 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _unknown_fields_),
310 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _extensions_),
311 0 : ::google::protobuf::DescriptorPool::generated_pool(),
312 0 : ::google::protobuf::MessageFactory::generated_factory(),
313 0 : sizeof(FileOptions));
314 0 : FileOptions_OptimizeMode_descriptor_ = FileOptions_descriptor_->enum_type(0);
315 0 : MessageOptions_descriptor_ = file->message_type(10);
316 : static const int MessageOptions_offsets_[4] = {
317 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, message_set_wire_format_),
318 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, no_standard_descriptor_accessor_),
319 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, deprecated_),
320 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, uninterpreted_option_),
321 : };
322 0 : MessageOptions_reflection_ =
323 : new ::google::protobuf::internal::GeneratedMessageReflection(
324 : MessageOptions_descriptor_,
325 : MessageOptions::default_instance_,
326 : MessageOptions_offsets_,
327 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _has_bits_[0]),
328 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _unknown_fields_),
329 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _extensions_),
330 0 : ::google::protobuf::DescriptorPool::generated_pool(),
331 0 : ::google::protobuf::MessageFactory::generated_factory(),
332 0 : sizeof(MessageOptions));
333 0 : FieldOptions_descriptor_ = file->message_type(11);
334 : static const int FieldOptions_offsets_[7] = {
335 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, ctype_),
336 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, packed_),
337 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, lazy_),
338 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, deprecated_),
339 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, experimental_map_key_),
340 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, weak_),
341 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, uninterpreted_option_),
342 : };
343 0 : FieldOptions_reflection_ =
344 : new ::google::protobuf::internal::GeneratedMessageReflection(
345 : FieldOptions_descriptor_,
346 : FieldOptions::default_instance_,
347 : FieldOptions_offsets_,
348 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _has_bits_[0]),
349 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _unknown_fields_),
350 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _extensions_),
351 0 : ::google::protobuf::DescriptorPool::generated_pool(),
352 0 : ::google::protobuf::MessageFactory::generated_factory(),
353 0 : sizeof(FieldOptions));
354 0 : FieldOptions_CType_descriptor_ = FieldOptions_descriptor_->enum_type(0);
355 0 : EnumOptions_descriptor_ = file->message_type(12);
356 : static const int EnumOptions_offsets_[3] = {
357 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, allow_alias_),
358 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, deprecated_),
359 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, uninterpreted_option_),
360 : };
361 0 : EnumOptions_reflection_ =
362 : new ::google::protobuf::internal::GeneratedMessageReflection(
363 : EnumOptions_descriptor_,
364 : EnumOptions::default_instance_,
365 : EnumOptions_offsets_,
366 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _has_bits_[0]),
367 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _unknown_fields_),
368 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _extensions_),
369 0 : ::google::protobuf::DescriptorPool::generated_pool(),
370 0 : ::google::protobuf::MessageFactory::generated_factory(),
371 0 : sizeof(EnumOptions));
372 0 : EnumValueOptions_descriptor_ = file->message_type(13);
373 : static const int EnumValueOptions_offsets_[2] = {
374 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, deprecated_),
375 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, uninterpreted_option_),
376 : };
377 0 : EnumValueOptions_reflection_ =
378 : new ::google::protobuf::internal::GeneratedMessageReflection(
379 : EnumValueOptions_descriptor_,
380 : EnumValueOptions::default_instance_,
381 : EnumValueOptions_offsets_,
382 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _has_bits_[0]),
383 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _unknown_fields_),
384 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _extensions_),
385 0 : ::google::protobuf::DescriptorPool::generated_pool(),
386 0 : ::google::protobuf::MessageFactory::generated_factory(),
387 0 : sizeof(EnumValueOptions));
388 0 : ServiceOptions_descriptor_ = file->message_type(14);
389 : static const int ServiceOptions_offsets_[2] = {
390 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, deprecated_),
391 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, uninterpreted_option_),
392 : };
393 0 : ServiceOptions_reflection_ =
394 : new ::google::protobuf::internal::GeneratedMessageReflection(
395 : ServiceOptions_descriptor_,
396 : ServiceOptions::default_instance_,
397 : ServiceOptions_offsets_,
398 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _has_bits_[0]),
399 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _unknown_fields_),
400 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _extensions_),
401 0 : ::google::protobuf::DescriptorPool::generated_pool(),
402 0 : ::google::protobuf::MessageFactory::generated_factory(),
403 0 : sizeof(ServiceOptions));
404 0 : MethodOptions_descriptor_ = file->message_type(15);
405 : static const int MethodOptions_offsets_[2] = {
406 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, deprecated_),
407 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, uninterpreted_option_),
408 : };
409 0 : MethodOptions_reflection_ =
410 : new ::google::protobuf::internal::GeneratedMessageReflection(
411 : MethodOptions_descriptor_,
412 : MethodOptions::default_instance_,
413 : MethodOptions_offsets_,
414 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _has_bits_[0]),
415 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _unknown_fields_),
416 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _extensions_),
417 0 : ::google::protobuf::DescriptorPool::generated_pool(),
418 0 : ::google::protobuf::MessageFactory::generated_factory(),
419 0 : sizeof(MethodOptions));
420 0 : UninterpretedOption_descriptor_ = file->message_type(16);
421 : static const int UninterpretedOption_offsets_[7] = {
422 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, name_),
423 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, identifier_value_),
424 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, positive_int_value_),
425 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, negative_int_value_),
426 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, double_value_),
427 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, string_value_),
428 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, aggregate_value_),
429 : };
430 0 : UninterpretedOption_reflection_ =
431 : new ::google::protobuf::internal::GeneratedMessageReflection(
432 : UninterpretedOption_descriptor_,
433 : UninterpretedOption::default_instance_,
434 : UninterpretedOption_offsets_,
435 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _has_bits_[0]),
436 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _unknown_fields_),
437 : -1,
438 0 : ::google::protobuf::DescriptorPool::generated_pool(),
439 0 : ::google::protobuf::MessageFactory::generated_factory(),
440 0 : sizeof(UninterpretedOption));
441 0 : UninterpretedOption_NamePart_descriptor_ = UninterpretedOption_descriptor_->nested_type(0);
442 : static const int UninterpretedOption_NamePart_offsets_[2] = {
443 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, name_part_),
444 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, is_extension_),
445 : };
446 0 : UninterpretedOption_NamePart_reflection_ =
447 : new ::google::protobuf::internal::GeneratedMessageReflection(
448 : UninterpretedOption_NamePart_descriptor_,
449 : UninterpretedOption_NamePart::default_instance_,
450 : UninterpretedOption_NamePart_offsets_,
451 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _has_bits_[0]),
452 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _unknown_fields_),
453 : -1,
454 0 : ::google::protobuf::DescriptorPool::generated_pool(),
455 0 : ::google::protobuf::MessageFactory::generated_factory(),
456 0 : sizeof(UninterpretedOption_NamePart));
457 0 : SourceCodeInfo_descriptor_ = file->message_type(17);
458 : static const int SourceCodeInfo_offsets_[1] = {
459 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, location_),
460 : };
461 0 : SourceCodeInfo_reflection_ =
462 : new ::google::protobuf::internal::GeneratedMessageReflection(
463 : SourceCodeInfo_descriptor_,
464 : SourceCodeInfo::default_instance_,
465 : SourceCodeInfo_offsets_,
466 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _has_bits_[0]),
467 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _unknown_fields_),
468 : -1,
469 0 : ::google::protobuf::DescriptorPool::generated_pool(),
470 0 : ::google::protobuf::MessageFactory::generated_factory(),
471 0 : sizeof(SourceCodeInfo));
472 0 : SourceCodeInfo_Location_descriptor_ = SourceCodeInfo_descriptor_->nested_type(0);
473 : static const int SourceCodeInfo_Location_offsets_[4] = {
474 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, path_),
475 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, span_),
476 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, leading_comments_),
477 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, trailing_comments_),
478 : };
479 0 : SourceCodeInfo_Location_reflection_ =
480 : new ::google::protobuf::internal::GeneratedMessageReflection(
481 : SourceCodeInfo_Location_descriptor_,
482 : SourceCodeInfo_Location::default_instance_,
483 : SourceCodeInfo_Location_offsets_,
484 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _has_bits_[0]),
485 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _unknown_fields_),
486 : -1,
487 0 : ::google::protobuf::DescriptorPool::generated_pool(),
488 0 : ::google::protobuf::MessageFactory::generated_factory(),
489 0 : sizeof(SourceCodeInfo_Location));
490 0 : }
491 :
492 : namespace {
493 :
494 : GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
495 0 : inline void protobuf_AssignDescriptorsOnce() {
496 : ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
497 0 : &protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto);
498 0 : }
499 :
500 0 : void protobuf_RegisterTypes(const ::std::string&) {
501 0 : protobuf_AssignDescriptorsOnce();
502 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
503 0 : FileDescriptorSet_descriptor_, &FileDescriptorSet::default_instance());
504 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
505 0 : FileDescriptorProto_descriptor_, &FileDescriptorProto::default_instance());
506 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
507 0 : DescriptorProto_descriptor_, &DescriptorProto::default_instance());
508 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
509 0 : DescriptorProto_ExtensionRange_descriptor_, &DescriptorProto_ExtensionRange::default_instance());
510 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
511 0 : FieldDescriptorProto_descriptor_, &FieldDescriptorProto::default_instance());
512 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
513 0 : OneofDescriptorProto_descriptor_, &OneofDescriptorProto::default_instance());
514 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
515 0 : EnumDescriptorProto_descriptor_, &EnumDescriptorProto::default_instance());
516 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
517 0 : EnumValueDescriptorProto_descriptor_, &EnumValueDescriptorProto::default_instance());
518 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
519 0 : ServiceDescriptorProto_descriptor_, &ServiceDescriptorProto::default_instance());
520 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
521 0 : MethodDescriptorProto_descriptor_, &MethodDescriptorProto::default_instance());
522 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
523 0 : FileOptions_descriptor_, &FileOptions::default_instance());
524 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
525 0 : MessageOptions_descriptor_, &MessageOptions::default_instance());
526 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
527 0 : FieldOptions_descriptor_, &FieldOptions::default_instance());
528 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
529 0 : EnumOptions_descriptor_, &EnumOptions::default_instance());
530 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
531 0 : EnumValueOptions_descriptor_, &EnumValueOptions::default_instance());
532 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
533 0 : ServiceOptions_descriptor_, &ServiceOptions::default_instance());
534 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
535 0 : MethodOptions_descriptor_, &MethodOptions::default_instance());
536 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
537 0 : UninterpretedOption_descriptor_, &UninterpretedOption::default_instance());
538 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
539 0 : UninterpretedOption_NamePart_descriptor_, &UninterpretedOption_NamePart::default_instance());
540 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
541 0 : SourceCodeInfo_descriptor_, &SourceCodeInfo::default_instance());
542 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
543 0 : SourceCodeInfo_Location_descriptor_, &SourceCodeInfo_Location::default_instance());
544 0 : }
545 :
546 : } // namespace
547 :
548 0 : void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto() {
549 0 : delete FileDescriptorSet::default_instance_;
550 0 : delete FileDescriptorSet_reflection_;
551 0 : delete FileDescriptorProto::default_instance_;
552 0 : delete FileDescriptorProto_reflection_;
553 0 : delete DescriptorProto::default_instance_;
554 0 : delete DescriptorProto_reflection_;
555 0 : delete DescriptorProto_ExtensionRange::default_instance_;
556 0 : delete DescriptorProto_ExtensionRange_reflection_;
557 0 : delete FieldDescriptorProto::default_instance_;
558 0 : delete FieldDescriptorProto_reflection_;
559 0 : delete OneofDescriptorProto::default_instance_;
560 0 : delete OneofDescriptorProto_reflection_;
561 0 : delete EnumDescriptorProto::default_instance_;
562 0 : delete EnumDescriptorProto_reflection_;
563 0 : delete EnumValueDescriptorProto::default_instance_;
564 0 : delete EnumValueDescriptorProto_reflection_;
565 0 : delete ServiceDescriptorProto::default_instance_;
566 0 : delete ServiceDescriptorProto_reflection_;
567 0 : delete MethodDescriptorProto::default_instance_;
568 0 : delete MethodDescriptorProto_reflection_;
569 0 : delete FileOptions::default_instance_;
570 0 : delete FileOptions_reflection_;
571 0 : delete MessageOptions::default_instance_;
572 0 : delete MessageOptions_reflection_;
573 0 : delete FieldOptions::default_instance_;
574 0 : delete FieldOptions_reflection_;
575 0 : delete EnumOptions::default_instance_;
576 0 : delete EnumOptions_reflection_;
577 0 : delete EnumValueOptions::default_instance_;
578 0 : delete EnumValueOptions_reflection_;
579 0 : delete ServiceOptions::default_instance_;
580 0 : delete ServiceOptions_reflection_;
581 0 : delete MethodOptions::default_instance_;
582 0 : delete MethodOptions_reflection_;
583 0 : delete UninterpretedOption::default_instance_;
584 0 : delete UninterpretedOption_reflection_;
585 0 : delete UninterpretedOption_NamePart::default_instance_;
586 0 : delete UninterpretedOption_NamePart_reflection_;
587 0 : delete SourceCodeInfo::default_instance_;
588 0 : delete SourceCodeInfo_reflection_;
589 0 : delete SourceCodeInfo_Location::default_instance_;
590 0 : delete SourceCodeInfo_Location_reflection_;
591 0 : }
592 :
593 3 : void protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto() {
594 : static bool already_here = false;
595 3 : if (already_here) return;
596 3 : already_here = true;
597 3 : GOOGLE_PROTOBUF_VERIFY_VERSION;
598 :
599 : ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
600 : "\n google/protobuf/descriptor.proto\022\017goog"
601 : "le.protobuf\"G\n\021FileDescriptorSet\0222\n\004file"
602 : "\030\001 \003(\0132$.google.protobuf.FileDescriptorP"
603 : "roto\"\313\003\n\023FileDescriptorProto\022\014\n\004name\030\001 \001"
604 : "(\t\022\017\n\007package\030\002 \001(\t\022\022\n\ndependency\030\003 \003(\t\022"
605 : "\031\n\021public_dependency\030\n \003(\005\022\027\n\017weak_depen"
606 : "dency\030\013 \003(\005\0226\n\014message_type\030\004 \003(\0132 .goog"
607 : "le.protobuf.DescriptorProto\0227\n\tenum_type"
608 : "\030\005 \003(\0132$.google.protobuf.EnumDescriptorP"
609 : "roto\0228\n\007service\030\006 \003(\0132\'.google.protobuf."
610 : "ServiceDescriptorProto\0228\n\textension\030\007 \003("
611 : "\0132%.google.protobuf.FieldDescriptorProto"
612 : "\022-\n\007options\030\010 \001(\0132\034.google.protobuf.File"
613 : "Options\0229\n\020source_code_info\030\t \001(\0132\037.goog"
614 : "le.protobuf.SourceCodeInfo\"\344\003\n\017Descripto"
615 : "rProto\022\014\n\004name\030\001 \001(\t\0224\n\005field\030\002 \003(\0132%.go"
616 : "ogle.protobuf.FieldDescriptorProto\0228\n\tex"
617 : "tension\030\006 \003(\0132%.google.protobuf.FieldDes"
618 : "criptorProto\0225\n\013nested_type\030\003 \003(\0132 .goog"
619 : "le.protobuf.DescriptorProto\0227\n\tenum_type"
620 : "\030\004 \003(\0132$.google.protobuf.EnumDescriptorP"
621 : "roto\022H\n\017extension_range\030\005 \003(\0132/.google.p"
622 : "rotobuf.DescriptorProto.ExtensionRange\0229"
623 : "\n\noneof_decl\030\010 \003(\0132%.google.protobuf.One"
624 : "ofDescriptorProto\0220\n\007options\030\007 \001(\0132\037.goo"
625 : "gle.protobuf.MessageOptions\032,\n\016Extension"
626 : "Range\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"\251\005\n\024Fi"
627 : "eldDescriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n\006numb"
628 : "er\030\003 \001(\005\022:\n\005label\030\004 \001(\0162+.google.protobu"
629 : "f.FieldDescriptorProto.Label\0228\n\004type\030\005 \001"
630 : "(\0162*.google.protobuf.FieldDescriptorProt"
631 : "o.Type\022\021\n\ttype_name\030\006 \001(\t\022\020\n\010extendee\030\002 "
632 : "\001(\t\022\025\n\rdefault_value\030\007 \001(\t\022\023\n\013oneof_inde"
633 : "x\030\t \001(\005\022.\n\007options\030\010 \001(\0132\035.google.protob"
634 : "uf.FieldOptions\"\266\002\n\004Type\022\017\n\013TYPE_DOUBLE\020"
635 : "\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTYPE_INT64\020\003\022\017\n\013TYP"
636 : "E_UINT64\020\004\022\016\n\nTYPE_INT32\020\005\022\020\n\014TYPE_FIXED"
637 : "64\020\006\022\020\n\014TYPE_FIXED32\020\007\022\r\n\tTYPE_BOOL\020\010\022\017\n"
638 : "\013TYPE_STRING\020\t\022\016\n\nTYPE_GROUP\020\n\022\020\n\014TYPE_M"
639 : "ESSAGE\020\013\022\016\n\nTYPE_BYTES\020\014\022\017\n\013TYPE_UINT32\020"
640 : "\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_SFIXED32\020\017\022\021\n\rT"
641 : "YPE_SFIXED64\020\020\022\017\n\013TYPE_SINT32\020\021\022\017\n\013TYPE_"
642 : "SINT64\020\022\"C\n\005Label\022\022\n\016LABEL_OPTIONAL\020\001\022\022\n"
643 : "\016LABEL_REQUIRED\020\002\022\022\n\016LABEL_REPEATED\020\003\"$\n"
644 : "\024OneofDescriptorProto\022\014\n\004name\030\001 \001(\t\"\214\001\n\023"
645 : "EnumDescriptorProto\022\014\n\004name\030\001 \001(\t\0228\n\005val"
646 : "ue\030\002 \003(\0132).google.protobuf.EnumValueDesc"
647 : "riptorProto\022-\n\007options\030\003 \001(\0132\034.google.pr"
648 : "otobuf.EnumOptions\"l\n\030EnumValueDescripto"
649 : "rProto\022\014\n\004name\030\001 \001(\t\022\016\n\006number\030\002 \001(\005\0222\n\007"
650 : "options\030\003 \001(\0132!.google.protobuf.EnumValu"
651 : "eOptions\"\220\001\n\026ServiceDescriptorProto\022\014\n\004n"
652 : "ame\030\001 \001(\t\0226\n\006method\030\002 \003(\0132&.google.proto"
653 : "buf.MethodDescriptorProto\0220\n\007options\030\003 \001"
654 : "(\0132\037.google.protobuf.ServiceOptions\"\177\n\025M"
655 : "ethodDescriptorProto\022\014\n\004name\030\001 \001(\t\022\022\n\nin"
656 : "put_type\030\002 \001(\t\022\023\n\013output_type\030\003 \001(\t\022/\n\007o"
657 : "ptions\030\004 \001(\0132\036.google.protobuf.MethodOpt"
658 : "ions\"\253\004\n\013FileOptions\022\024\n\014java_package\030\001 \001"
659 : "(\t\022\034\n\024java_outer_classname\030\010 \001(\t\022\"\n\023java"
660 : "_multiple_files\030\n \001(\010:\005false\022,\n\035java_gen"
661 : "erate_equals_and_hash\030\024 \001(\010:\005false\022%\n\026ja"
662 : "va_string_check_utf8\030\033 \001(\010:\005false\022F\n\014opt"
663 : "imize_for\030\t \001(\0162).google.protobuf.FileOp"
664 : "tions.OptimizeMode:\005SPEED\022\022\n\ngo_package\030"
665 : "\013 \001(\t\022\"\n\023cc_generic_services\030\020 \001(\010:\005fals"
666 : "e\022$\n\025java_generic_services\030\021 \001(\010:\005false\022"
667 : "\"\n\023py_generic_services\030\022 \001(\010:\005false\022\031\n\nd"
668 : "eprecated\030\027 \001(\010:\005false\022C\n\024uninterpreted_"
669 : "option\030\347\007 \003(\0132$.google.protobuf.Uninterp"
670 : "retedOption\":\n\014OptimizeMode\022\t\n\005SPEED\020\001\022\r"
671 : "\n\tCODE_SIZE\020\002\022\020\n\014LITE_RUNTIME\020\003*\t\010\350\007\020\200\200\200"
672 : "\200\002\"\323\001\n\016MessageOptions\022&\n\027message_set_wir"
673 : "e_format\030\001 \001(\010:\005false\022.\n\037no_standard_des"
674 : "criptor_accessor\030\002 \001(\010:\005false\022\031\n\ndepreca"
675 : "ted\030\003 \001(\010:\005false\022C\n\024uninterpreted_option"
676 : "\030\347\007 \003(\0132$.google.protobuf.UninterpretedO"
677 : "ption*\t\010\350\007\020\200\200\200\200\002\"\276\002\n\014FieldOptions\022:\n\005cty"
678 : "pe\030\001 \001(\0162#.google.protobuf.FieldOptions."
679 : "CType:\006STRING\022\016\n\006packed\030\002 \001(\010\022\023\n\004lazy\030\005 "
680 : "\001(\010:\005false\022\031\n\ndeprecated\030\003 \001(\010:\005false\022\034\n"
681 : "\024experimental_map_key\030\t \001(\t\022\023\n\004weak\030\n \001("
682 : "\010:\005false\022C\n\024uninterpreted_option\030\347\007 \003(\0132"
683 : "$.google.protobuf.UninterpretedOption\"/\n"
684 : "\005CType\022\n\n\006STRING\020\000\022\010\n\004CORD\020\001\022\020\n\014STRING_P"
685 : "IECE\020\002*\t\010\350\007\020\200\200\200\200\002\"\215\001\n\013EnumOptions\022\023\n\013all"
686 : "ow_alias\030\002 \001(\010\022\031\n\ndeprecated\030\003 \001(\010:\005fals"
687 : "e\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.googl"
688 : "e.protobuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200"
689 : "\002\"}\n\020EnumValueOptions\022\031\n\ndeprecated\030\001 \001("
690 : "\010:\005false\022C\n\024uninterpreted_option\030\347\007 \003(\0132"
691 : "$.google.protobuf.UninterpretedOption*\t\010"
692 : "\350\007\020\200\200\200\200\002\"{\n\016ServiceOptions\022\031\n\ndeprecated"
693 : "\030! \001(\010:\005false\022C\n\024uninterpreted_option\030\347\007"
694 : " \003(\0132$.google.protobuf.UninterpretedOpti"
695 : "on*\t\010\350\007\020\200\200\200\200\002\"z\n\rMethodOptions\022\031\n\ndeprec"
696 : "ated\030! \001(\010:\005false\022C\n\024uninterpreted_optio"
697 : "n\030\347\007 \003(\0132$.google.protobuf.Uninterpreted"
698 : "Option*\t\010\350\007\020\200\200\200\200\002\"\236\002\n\023UninterpretedOptio"
699 : "n\022;\n\004name\030\002 \003(\0132-.google.protobuf.Uninte"
700 : "rpretedOption.NamePart\022\030\n\020identifier_val"
701 : "ue\030\003 \001(\t\022\032\n\022positive_int_value\030\004 \001(\004\022\032\n\022"
702 : "negative_int_value\030\005 \001(\003\022\024\n\014double_value"
703 : "\030\006 \001(\001\022\024\n\014string_value\030\007 \001(\014\022\027\n\017aggregat"
704 : "e_value\030\010 \001(\t\0323\n\010NamePart\022\021\n\tname_part\030\001"
705 : " \002(\t\022\024\n\014is_extension\030\002 \002(\010\"\261\001\n\016SourceCod"
706 : "eInfo\022:\n\010location\030\001 \003(\0132(.google.protobu"
707 : "f.SourceCodeInfo.Location\032c\n\010Location\022\020\n"
708 : "\004path\030\001 \003(\005B\002\020\001\022\020\n\004span\030\002 \003(\005B\002\020\001\022\030\n\020lea"
709 : "ding_comments\030\003 \001(\t\022\031\n\021trailing_comments"
710 : "\030\004 \001(\tB)\n\023com.google.protobufB\020Descripto"
711 3 : "rProtosH\001", 4449);
712 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
713 3 : "google/protobuf/descriptor.proto", &protobuf_RegisterTypes);
714 3 : FileDescriptorSet::default_instance_ = new FileDescriptorSet();
715 3 : FileDescriptorProto::default_instance_ = new FileDescriptorProto();
716 3 : DescriptorProto::default_instance_ = new DescriptorProto();
717 3 : DescriptorProto_ExtensionRange::default_instance_ = new DescriptorProto_ExtensionRange();
718 3 : FieldDescriptorProto::default_instance_ = new FieldDescriptorProto();
719 3 : OneofDescriptorProto::default_instance_ = new OneofDescriptorProto();
720 3 : EnumDescriptorProto::default_instance_ = new EnumDescriptorProto();
721 3 : EnumValueDescriptorProto::default_instance_ = new EnumValueDescriptorProto();
722 3 : ServiceDescriptorProto::default_instance_ = new ServiceDescriptorProto();
723 3 : MethodDescriptorProto::default_instance_ = new MethodDescriptorProto();
724 3 : FileOptions::default_instance_ = new FileOptions();
725 3 : MessageOptions::default_instance_ = new MessageOptions();
726 3 : FieldOptions::default_instance_ = new FieldOptions();
727 3 : EnumOptions::default_instance_ = new EnumOptions();
728 3 : EnumValueOptions::default_instance_ = new EnumValueOptions();
729 3 : ServiceOptions::default_instance_ = new ServiceOptions();
730 3 : MethodOptions::default_instance_ = new MethodOptions();
731 3 : UninterpretedOption::default_instance_ = new UninterpretedOption();
732 3 : UninterpretedOption_NamePart::default_instance_ = new UninterpretedOption_NamePart();
733 3 : SourceCodeInfo::default_instance_ = new SourceCodeInfo();
734 3 : SourceCodeInfo_Location::default_instance_ = new SourceCodeInfo_Location();
735 3 : FileDescriptorSet::default_instance_->InitAsDefaultInstance();
736 3 : FileDescriptorProto::default_instance_->InitAsDefaultInstance();
737 3 : DescriptorProto::default_instance_->InitAsDefaultInstance();
738 3 : DescriptorProto_ExtensionRange::default_instance_->InitAsDefaultInstance();
739 3 : FieldDescriptorProto::default_instance_->InitAsDefaultInstance();
740 3 : OneofDescriptorProto::default_instance_->InitAsDefaultInstance();
741 3 : EnumDescriptorProto::default_instance_->InitAsDefaultInstance();
742 3 : EnumValueDescriptorProto::default_instance_->InitAsDefaultInstance();
743 3 : ServiceDescriptorProto::default_instance_->InitAsDefaultInstance();
744 3 : MethodDescriptorProto::default_instance_->InitAsDefaultInstance();
745 3 : FileOptions::default_instance_->InitAsDefaultInstance();
746 3 : MessageOptions::default_instance_->InitAsDefaultInstance();
747 3 : FieldOptions::default_instance_->InitAsDefaultInstance();
748 3 : EnumOptions::default_instance_->InitAsDefaultInstance();
749 3 : EnumValueOptions::default_instance_->InitAsDefaultInstance();
750 3 : ServiceOptions::default_instance_->InitAsDefaultInstance();
751 3 : MethodOptions::default_instance_->InitAsDefaultInstance();
752 3 : UninterpretedOption::default_instance_->InitAsDefaultInstance();
753 3 : UninterpretedOption_NamePart::default_instance_->InitAsDefaultInstance();
754 3 : SourceCodeInfo::default_instance_->InitAsDefaultInstance();
755 3 : SourceCodeInfo_Location::default_instance_->InitAsDefaultInstance();
756 3 : ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto);
757 : }
758 :
759 : // Force AddDescriptors() to be called at static initialization time.
760 : struct StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto {
761 3 : StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto() {
762 3 : protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
763 3 : }
764 3 : } static_descriptor_initializer_google_2fprotobuf_2fdescriptor_2eproto_;
765 :
766 : // ===================================================================
767 :
768 : #ifndef _MSC_VER
769 : const int FileDescriptorSet::kFileFieldNumber;
770 : #endif // !_MSC_VER
771 :
772 3 : FileDescriptorSet::FileDescriptorSet()
773 3 : : ::google::protobuf::Message() {
774 3 : SharedCtor();
775 : // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorSet)
776 3 : }
777 :
778 3 : void FileDescriptorSet::InitAsDefaultInstance() {
779 3 : }
780 :
781 0 : FileDescriptorSet::FileDescriptorSet(const FileDescriptorSet& from)
782 0 : : ::google::protobuf::Message() {
783 0 : SharedCtor();
784 0 : MergeFrom(from);
785 : // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorSet)
786 0 : }
787 :
788 3 : void FileDescriptorSet::SharedCtor() {
789 3 : _cached_size_ = 0;
790 3 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
791 3 : }
792 :
793 0 : FileDescriptorSet::~FileDescriptorSet() {
794 : // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorSet)
795 0 : SharedDtor();
796 0 : }
797 :
798 0 : void FileDescriptorSet::SharedDtor() {
799 0 : if (this != default_instance_) {
800 : }
801 0 : }
802 :
803 0 : void FileDescriptorSet::SetCachedSize(int size) const {
804 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
805 0 : _cached_size_ = size;
806 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
807 0 : }
808 0 : const ::google::protobuf::Descriptor* FileDescriptorSet::descriptor() {
809 0 : protobuf_AssignDescriptorsOnce();
810 0 : return FileDescriptorSet_descriptor_;
811 : }
812 :
813 0 : const FileDescriptorSet& FileDescriptorSet::default_instance() {
814 0 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
815 0 : return *default_instance_;
816 : }
817 :
818 : FileDescriptorSet* FileDescriptorSet::default_instance_ = NULL;
819 :
820 0 : FileDescriptorSet* FileDescriptorSet::New() const {
821 0 : return new FileDescriptorSet;
822 : }
823 :
824 0 : void FileDescriptorSet::Clear() {
825 0 : file_.Clear();
826 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
827 0 : mutable_unknown_fields()->Clear();
828 0 : }
829 :
830 0 : bool FileDescriptorSet::MergePartialFromCodedStream(
831 : ::google::protobuf::io::CodedInputStream* input) {
832 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
833 : ::google::protobuf::uint32 tag;
834 : // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorSet)
835 : for (;;) {
836 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
837 0 : tag = p.first;
838 0 : if (!p.second) goto handle_unusual;
839 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
840 : // repeated .google.protobuf.FileDescriptorProto file = 1;
841 : case 1: {
842 0 : if (tag == 10) {
843 : parse_file:
844 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
845 : input, add_file()));
846 : } else {
847 0 : goto handle_unusual;
848 : }
849 0 : if (input->ExpectTag(10)) goto parse_file;
850 0 : if (input->ExpectAtEnd()) goto success;
851 0 : break;
852 : }
853 :
854 : default: {
855 : handle_unusual:
856 0 : if (tag == 0 ||
857 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
858 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
859 0 : goto success;
860 : }
861 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
862 : input, tag, mutable_unknown_fields()));
863 0 : break;
864 : }
865 : }
866 0 : }
867 : success:
868 : // @@protoc_insertion_point(parse_success:google.protobuf.FileDescriptorSet)
869 0 : return true;
870 : failure:
871 : // @@protoc_insertion_point(parse_failure:google.protobuf.FileDescriptorSet)
872 0 : return false;
873 : #undef DO_
874 : }
875 :
876 0 : void FileDescriptorSet::SerializeWithCachedSizes(
877 : ::google::protobuf::io::CodedOutputStream* output) const {
878 : // @@protoc_insertion_point(serialize_start:google.protobuf.FileDescriptorSet)
879 : // repeated .google.protobuf.FileDescriptorProto file = 1;
880 0 : for (int i = 0; i < this->file_size(); i++) {
881 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
882 0 : 1, this->file(i), output);
883 : }
884 :
885 0 : if (!unknown_fields().empty()) {
886 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
887 0 : unknown_fields(), output);
888 : }
889 : // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorSet)
890 0 : }
891 :
892 0 : ::google::protobuf::uint8* FileDescriptorSet::SerializeWithCachedSizesToArray(
893 : ::google::protobuf::uint8* target) const {
894 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorSet)
895 : // repeated .google.protobuf.FileDescriptorProto file = 1;
896 0 : for (int i = 0; i < this->file_size(); i++) {
897 : target = ::google::protobuf::internal::WireFormatLite::
898 0 : WriteMessageNoVirtualToArray(
899 0 : 1, this->file(i), target);
900 : }
901 :
902 0 : if (!unknown_fields().empty()) {
903 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
904 0 : unknown_fields(), target);
905 : }
906 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescriptorSet)
907 0 : return target;
908 : }
909 :
910 0 : int FileDescriptorSet::ByteSize() const {
911 0 : int total_size = 0;
912 :
913 : // repeated .google.protobuf.FileDescriptorProto file = 1;
914 0 : total_size += 1 * this->file_size();
915 0 : for (int i = 0; i < this->file_size(); i++) {
916 0 : total_size +=
917 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
918 : this->file(i));
919 : }
920 :
921 0 : if (!unknown_fields().empty()) {
922 0 : total_size +=
923 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
924 : unknown_fields());
925 : }
926 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
927 0 : _cached_size_ = total_size;
928 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
929 0 : return total_size;
930 : }
931 :
932 0 : void FileDescriptorSet::MergeFrom(const ::google::protobuf::Message& from) {
933 0 : GOOGLE_CHECK_NE(&from, this);
934 : const FileDescriptorSet* source =
935 : ::google::protobuf::internal::dynamic_cast_if_available<const FileDescriptorSet*>(
936 0 : &from);
937 0 : if (source == NULL) {
938 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
939 : } else {
940 0 : MergeFrom(*source);
941 : }
942 0 : }
943 :
944 0 : void FileDescriptorSet::MergeFrom(const FileDescriptorSet& from) {
945 0 : GOOGLE_CHECK_NE(&from, this);
946 0 : file_.MergeFrom(from.file_);
947 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
948 0 : }
949 :
950 0 : void FileDescriptorSet::CopyFrom(const ::google::protobuf::Message& from) {
951 0 : if (&from == this) return;
952 0 : Clear();
953 0 : MergeFrom(from);
954 : }
955 :
956 0 : void FileDescriptorSet::CopyFrom(const FileDescriptorSet& from) {
957 0 : if (&from == this) return;
958 0 : Clear();
959 0 : MergeFrom(from);
960 : }
961 :
962 0 : bool FileDescriptorSet::IsInitialized() const {
963 :
964 0 : if (!::google::protobuf::internal::AllAreInitialized(this->file())) return false;
965 0 : return true;
966 : }
967 :
968 0 : void FileDescriptorSet::Swap(FileDescriptorSet* other) {
969 0 : if (other != this) {
970 0 : file_.Swap(&other->file_);
971 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
972 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
973 0 : std::swap(_cached_size_, other->_cached_size_);
974 : }
975 0 : }
976 :
977 0 : ::google::protobuf::Metadata FileDescriptorSet::GetMetadata() const {
978 0 : protobuf_AssignDescriptorsOnce();
979 : ::google::protobuf::Metadata metadata;
980 0 : metadata.descriptor = FileDescriptorSet_descriptor_;
981 0 : metadata.reflection = FileDescriptorSet_reflection_;
982 0 : return metadata;
983 : }
984 :
985 :
986 : // ===================================================================
987 :
988 : #ifndef _MSC_VER
989 : const int FileDescriptorProto::kNameFieldNumber;
990 : const int FileDescriptorProto::kPackageFieldNumber;
991 : const int FileDescriptorProto::kDependencyFieldNumber;
992 : const int FileDescriptorProto::kPublicDependencyFieldNumber;
993 : const int FileDescriptorProto::kWeakDependencyFieldNumber;
994 : const int FileDescriptorProto::kMessageTypeFieldNumber;
995 : const int FileDescriptorProto::kEnumTypeFieldNumber;
996 : const int FileDescriptorProto::kServiceFieldNumber;
997 : const int FileDescriptorProto::kExtensionFieldNumber;
998 : const int FileDescriptorProto::kOptionsFieldNumber;
999 : const int FileDescriptorProto::kSourceCodeInfoFieldNumber;
1000 : #endif // !_MSC_VER
1001 :
1002 9 : FileDescriptorProto::FileDescriptorProto()
1003 9 : : ::google::protobuf::Message() {
1004 9 : SharedCtor();
1005 : // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorProto)
1006 9 : }
1007 :
1008 3 : void FileDescriptorProto::InitAsDefaultInstance() {
1009 3 : options_ = const_cast< ::google::protobuf::FileOptions*>(&::google::protobuf::FileOptions::default_instance());
1010 3 : source_code_info_ = const_cast< ::google::protobuf::SourceCodeInfo*>(&::google::protobuf::SourceCodeInfo::default_instance());
1011 3 : }
1012 :
1013 0 : FileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from)
1014 0 : : ::google::protobuf::Message() {
1015 0 : SharedCtor();
1016 0 : MergeFrom(from);
1017 : // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorProto)
1018 0 : }
1019 :
1020 9 : void FileDescriptorProto::SharedCtor() {
1021 9 : ::google::protobuf::internal::GetEmptyString();
1022 9 : _cached_size_ = 0;
1023 9 : name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1024 9 : package_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1025 9 : options_ = NULL;
1026 9 : source_code_info_ = NULL;
1027 9 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
1028 9 : }
1029 :
1030 12 : FileDescriptorProto::~FileDescriptorProto() {
1031 : // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorProto)
1032 6 : SharedDtor();
1033 6 : }
1034 :
1035 6 : void FileDescriptorProto::SharedDtor() {
1036 6 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1037 6 : delete name_;
1038 : }
1039 6 : if (package_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1040 6 : delete package_;
1041 : }
1042 6 : if (this != default_instance_) {
1043 6 : delete options_;
1044 6 : delete source_code_info_;
1045 : }
1046 6 : }
1047 :
1048 0 : void FileDescriptorProto::SetCachedSize(int size) const {
1049 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1050 0 : _cached_size_ = size;
1051 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1052 0 : }
1053 0 : const ::google::protobuf::Descriptor* FileDescriptorProto::descriptor() {
1054 0 : protobuf_AssignDescriptorsOnce();
1055 0 : return FileDescriptorProto_descriptor_;
1056 : }
1057 :
1058 0 : const FileDescriptorProto& FileDescriptorProto::default_instance() {
1059 0 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
1060 0 : return *default_instance_;
1061 : }
1062 :
1063 : FileDescriptorProto* FileDescriptorProto::default_instance_ = NULL;
1064 :
1065 0 : FileDescriptorProto* FileDescriptorProto::New() const {
1066 0 : return new FileDescriptorProto;
1067 : }
1068 :
1069 6 : void FileDescriptorProto::Clear() {
1070 6 : if (_has_bits_[0 / 32] & 3) {
1071 0 : if (has_name()) {
1072 0 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1073 0 : name_->clear();
1074 : }
1075 : }
1076 0 : if (has_package()) {
1077 0 : if (package_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1078 0 : package_->clear();
1079 : }
1080 : }
1081 : }
1082 6 : if (_has_bits_[8 / 32] & 1536) {
1083 0 : if (has_options()) {
1084 0 : if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear();
1085 : }
1086 0 : if (has_source_code_info()) {
1087 0 : if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCodeInfo::Clear();
1088 : }
1089 : }
1090 6 : dependency_.Clear();
1091 6 : public_dependency_.Clear();
1092 6 : weak_dependency_.Clear();
1093 6 : message_type_.Clear();
1094 6 : enum_type_.Clear();
1095 6 : service_.Clear();
1096 6 : extension_.Clear();
1097 6 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
1098 6 : mutable_unknown_fields()->Clear();
1099 6 : }
1100 :
1101 21 : bool FileDescriptorProto::MergePartialFromCodedStream(
1102 : ::google::protobuf::io::CodedInputStream* input) {
1103 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1104 : ::google::protobuf::uint32 tag;
1105 : // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorProto)
1106 : for (;;) {
1107 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1108 21 : tag = p.first;
1109 21 : if (!p.second) goto handle_unusual;
1110 15 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1111 : // optional string name = 1;
1112 : case 1: {
1113 6 : if (tag == 10) {
1114 6 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1115 : input, this->mutable_name()));
1116 12 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1117 12 : this->name().data(), this->name().length(),
1118 : ::google::protobuf::internal::WireFormat::PARSE,
1119 6 : "name");
1120 : } else {
1121 0 : goto handle_unusual;
1122 : }
1123 6 : if (input->ExpectTag(18)) goto parse_package;
1124 0 : break;
1125 : }
1126 :
1127 : // optional string package = 2;
1128 : case 2: {
1129 0 : if (tag == 18) {
1130 : parse_package:
1131 6 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1132 : input, this->mutable_package()));
1133 12 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1134 12 : this->package().data(), this->package().length(),
1135 : ::google::protobuf::internal::WireFormat::PARSE,
1136 6 : "package");
1137 : } else {
1138 0 : goto handle_unusual;
1139 : }
1140 6 : if (input->ExpectTag(26)) goto parse_dependency;
1141 6 : break;
1142 : }
1143 :
1144 : // repeated string dependency = 3;
1145 : case 3: {
1146 0 : if (tag == 26) {
1147 : parse_dependency:
1148 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1149 : input, this->add_dependency()));
1150 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1151 0 : this->dependency(this->dependency_size() - 1).data(),
1152 0 : this->dependency(this->dependency_size() - 1).length(),
1153 : ::google::protobuf::internal::WireFormat::PARSE,
1154 0 : "dependency");
1155 : } else {
1156 0 : goto handle_unusual;
1157 : }
1158 0 : if (input->ExpectTag(26)) goto parse_dependency;
1159 0 : if (input->ExpectTag(34)) goto parse_message_type;
1160 0 : break;
1161 : }
1162 :
1163 : // repeated .google.protobuf.DescriptorProto message_type = 4;
1164 : case 4: {
1165 6 : if (tag == 34) {
1166 : parse_message_type:
1167 66 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1168 : input, add_message_type()));
1169 : } else {
1170 0 : goto handle_unusual;
1171 : }
1172 66 : if (input->ExpectTag(34)) goto parse_message_type;
1173 6 : if (input->ExpectTag(42)) goto parse_enum_type;
1174 6 : break;
1175 : }
1176 :
1177 : // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1178 : case 5: {
1179 0 : if (tag == 42) {
1180 : parse_enum_type:
1181 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1182 : input, add_enum_type()));
1183 : } else {
1184 0 : goto handle_unusual;
1185 : }
1186 0 : if (input->ExpectTag(42)) goto parse_enum_type;
1187 0 : if (input->ExpectTag(50)) goto parse_service;
1188 0 : break;
1189 : }
1190 :
1191 : // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1192 : case 6: {
1193 0 : if (tag == 50) {
1194 : parse_service:
1195 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1196 : input, add_service()));
1197 : } else {
1198 0 : goto handle_unusual;
1199 : }
1200 0 : if (input->ExpectTag(50)) goto parse_service;
1201 0 : if (input->ExpectTag(58)) goto parse_extension;
1202 0 : break;
1203 : }
1204 :
1205 : // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1206 : case 7: {
1207 0 : if (tag == 58) {
1208 : parse_extension:
1209 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1210 : input, add_extension()));
1211 : } else {
1212 0 : goto handle_unusual;
1213 : }
1214 0 : if (input->ExpectTag(58)) goto parse_extension;
1215 0 : if (input->ExpectTag(66)) goto parse_options;
1216 0 : break;
1217 : }
1218 :
1219 : // optional .google.protobuf.FileOptions options = 8;
1220 : case 8: {
1221 3 : if (tag == 66) {
1222 : parse_options:
1223 3 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1224 : input, mutable_options()));
1225 : } else {
1226 0 : goto handle_unusual;
1227 : }
1228 3 : if (input->ExpectTag(74)) goto parse_source_code_info;
1229 3 : break;
1230 : }
1231 :
1232 : // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1233 : case 9: {
1234 0 : if (tag == 74) {
1235 : parse_source_code_info:
1236 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1237 : input, mutable_source_code_info()));
1238 : } else {
1239 0 : goto handle_unusual;
1240 : }
1241 0 : if (input->ExpectTag(80)) goto parse_public_dependency;
1242 0 : break;
1243 : }
1244 :
1245 : // repeated int32 public_dependency = 10;
1246 : case 10: {
1247 0 : if (tag == 80) {
1248 : parse_public_dependency:
1249 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
1250 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1251 : 1, 80, input, this->mutable_public_dependency())));
1252 0 : } else if (tag == 82) {
1253 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
1254 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1255 : input, this->mutable_public_dependency())));
1256 : } else {
1257 0 : goto handle_unusual;
1258 : }
1259 0 : if (input->ExpectTag(80)) goto parse_public_dependency;
1260 0 : if (input->ExpectTag(88)) goto parse_weak_dependency;
1261 0 : break;
1262 : }
1263 :
1264 : // repeated int32 weak_dependency = 11;
1265 : case 11: {
1266 0 : if (tag == 88) {
1267 : parse_weak_dependency:
1268 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
1269 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1270 : 1, 88, input, this->mutable_weak_dependency())));
1271 0 : } else if (tag == 90) {
1272 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
1273 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1274 : input, this->mutable_weak_dependency())));
1275 : } else {
1276 0 : goto handle_unusual;
1277 : }
1278 0 : if (input->ExpectTag(88)) goto parse_weak_dependency;
1279 6 : if (input->ExpectAtEnd()) goto success;
1280 0 : break;
1281 : }
1282 :
1283 : default: {
1284 : handle_unusual:
1285 6 : if (tag == 0 ||
1286 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1287 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1288 6 : goto success;
1289 : }
1290 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
1291 : input, tag, mutable_unknown_fields()));
1292 0 : break;
1293 : }
1294 : }
1295 15 : }
1296 : success:
1297 : // @@protoc_insertion_point(parse_success:google.protobuf.FileDescriptorProto)
1298 6 : return true;
1299 : failure:
1300 : // @@protoc_insertion_point(parse_failure:google.protobuf.FileDescriptorProto)
1301 0 : return false;
1302 : #undef DO_
1303 : }
1304 :
1305 0 : void FileDescriptorProto::SerializeWithCachedSizes(
1306 : ::google::protobuf::io::CodedOutputStream* output) const {
1307 : // @@protoc_insertion_point(serialize_start:google.protobuf.FileDescriptorProto)
1308 : // optional string name = 1;
1309 0 : if (has_name()) {
1310 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1311 0 : this->name().data(), this->name().length(),
1312 : ::google::protobuf::internal::WireFormat::SERIALIZE,
1313 0 : "name");
1314 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1315 0 : 1, this->name(), output);
1316 : }
1317 :
1318 : // optional string package = 2;
1319 0 : if (has_package()) {
1320 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1321 0 : this->package().data(), this->package().length(),
1322 : ::google::protobuf::internal::WireFormat::SERIALIZE,
1323 0 : "package");
1324 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1325 0 : 2, this->package(), output);
1326 : }
1327 :
1328 : // repeated string dependency = 3;
1329 0 : for (int i = 0; i < this->dependency_size(); i++) {
1330 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1331 0 : this->dependency(i).data(), this->dependency(i).length(),
1332 : ::google::protobuf::internal::WireFormat::SERIALIZE,
1333 0 : "dependency");
1334 0 : ::google::protobuf::internal::WireFormatLite::WriteString(
1335 0 : 3, this->dependency(i), output);
1336 : }
1337 :
1338 : // repeated .google.protobuf.DescriptorProto message_type = 4;
1339 0 : for (int i = 0; i < this->message_type_size(); i++) {
1340 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1341 0 : 4, this->message_type(i), output);
1342 : }
1343 :
1344 : // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1345 0 : for (int i = 0; i < this->enum_type_size(); i++) {
1346 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1347 0 : 5, this->enum_type(i), output);
1348 : }
1349 :
1350 : // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1351 0 : for (int i = 0; i < this->service_size(); i++) {
1352 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1353 0 : 6, this->service(i), output);
1354 : }
1355 :
1356 : // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1357 0 : for (int i = 0; i < this->extension_size(); i++) {
1358 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1359 0 : 7, this->extension(i), output);
1360 : }
1361 :
1362 : // optional .google.protobuf.FileOptions options = 8;
1363 0 : if (has_options()) {
1364 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1365 0 : 8, this->options(), output);
1366 : }
1367 :
1368 : // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1369 0 : if (has_source_code_info()) {
1370 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1371 0 : 9, this->source_code_info(), output);
1372 : }
1373 :
1374 : // repeated int32 public_dependency = 10;
1375 0 : for (int i = 0; i < this->public_dependency_size(); i++) {
1376 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(
1377 0 : 10, this->public_dependency(i), output);
1378 : }
1379 :
1380 : // repeated int32 weak_dependency = 11;
1381 0 : for (int i = 0; i < this->weak_dependency_size(); i++) {
1382 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(
1383 0 : 11, this->weak_dependency(i), output);
1384 : }
1385 :
1386 0 : if (!unknown_fields().empty()) {
1387 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1388 0 : unknown_fields(), output);
1389 : }
1390 : // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorProto)
1391 0 : }
1392 :
1393 0 : ::google::protobuf::uint8* FileDescriptorProto::SerializeWithCachedSizesToArray(
1394 : ::google::protobuf::uint8* target) const {
1395 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorProto)
1396 : // optional string name = 1;
1397 0 : if (has_name()) {
1398 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1399 0 : this->name().data(), this->name().length(),
1400 : ::google::protobuf::internal::WireFormat::SERIALIZE,
1401 0 : "name");
1402 : target =
1403 0 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1404 0 : 1, this->name(), target);
1405 : }
1406 :
1407 : // optional string package = 2;
1408 0 : if (has_package()) {
1409 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1410 0 : this->package().data(), this->package().length(),
1411 : ::google::protobuf::internal::WireFormat::SERIALIZE,
1412 0 : "package");
1413 : target =
1414 0 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1415 0 : 2, this->package(), target);
1416 : }
1417 :
1418 : // repeated string dependency = 3;
1419 0 : for (int i = 0; i < this->dependency_size(); i++) {
1420 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1421 0 : this->dependency(i).data(), this->dependency(i).length(),
1422 : ::google::protobuf::internal::WireFormat::SERIALIZE,
1423 0 : "dependency");
1424 : target = ::google::protobuf::internal::WireFormatLite::
1425 0 : WriteStringToArray(3, this->dependency(i), target);
1426 : }
1427 :
1428 : // repeated .google.protobuf.DescriptorProto message_type = 4;
1429 0 : for (int i = 0; i < this->message_type_size(); i++) {
1430 : target = ::google::protobuf::internal::WireFormatLite::
1431 0 : WriteMessageNoVirtualToArray(
1432 0 : 4, this->message_type(i), target);
1433 : }
1434 :
1435 : // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1436 0 : for (int i = 0; i < this->enum_type_size(); i++) {
1437 : target = ::google::protobuf::internal::WireFormatLite::
1438 0 : WriteMessageNoVirtualToArray(
1439 0 : 5, this->enum_type(i), target);
1440 : }
1441 :
1442 : // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1443 0 : for (int i = 0; i < this->service_size(); i++) {
1444 : target = ::google::protobuf::internal::WireFormatLite::
1445 0 : WriteMessageNoVirtualToArray(
1446 0 : 6, this->service(i), target);
1447 : }
1448 :
1449 : // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1450 0 : for (int i = 0; i < this->extension_size(); i++) {
1451 : target = ::google::protobuf::internal::WireFormatLite::
1452 0 : WriteMessageNoVirtualToArray(
1453 0 : 7, this->extension(i), target);
1454 : }
1455 :
1456 : // optional .google.protobuf.FileOptions options = 8;
1457 0 : if (has_options()) {
1458 : target = ::google::protobuf::internal::WireFormatLite::
1459 0 : WriteMessageNoVirtualToArray(
1460 0 : 8, this->options(), target);
1461 : }
1462 :
1463 : // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1464 0 : if (has_source_code_info()) {
1465 : target = ::google::protobuf::internal::WireFormatLite::
1466 0 : WriteMessageNoVirtualToArray(
1467 0 : 9, this->source_code_info(), target);
1468 : }
1469 :
1470 : // repeated int32 public_dependency = 10;
1471 0 : for (int i = 0; i < this->public_dependency_size(); i++) {
1472 : target = ::google::protobuf::internal::WireFormatLite::
1473 0 : WriteInt32ToArray(10, this->public_dependency(i), target);
1474 : }
1475 :
1476 : // repeated int32 weak_dependency = 11;
1477 0 : for (int i = 0; i < this->weak_dependency_size(); i++) {
1478 : target = ::google::protobuf::internal::WireFormatLite::
1479 0 : WriteInt32ToArray(11, this->weak_dependency(i), target);
1480 : }
1481 :
1482 0 : if (!unknown_fields().empty()) {
1483 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1484 0 : unknown_fields(), target);
1485 : }
1486 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescriptorProto)
1487 0 : return target;
1488 : }
1489 :
1490 0 : int FileDescriptorProto::ByteSize() const {
1491 0 : int total_size = 0;
1492 :
1493 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1494 : // optional string name = 1;
1495 0 : if (has_name()) {
1496 0 : total_size += 1 +
1497 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
1498 : this->name());
1499 : }
1500 :
1501 : // optional string package = 2;
1502 0 : if (has_package()) {
1503 0 : total_size += 1 +
1504 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
1505 : this->package());
1506 : }
1507 :
1508 : }
1509 0 : if (_has_bits_[9 / 32] & (0xffu << (9 % 32))) {
1510 : // optional .google.protobuf.FileOptions options = 8;
1511 0 : if (has_options()) {
1512 0 : total_size += 1 +
1513 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1514 : this->options());
1515 : }
1516 :
1517 : // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1518 0 : if (has_source_code_info()) {
1519 0 : total_size += 1 +
1520 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1521 : this->source_code_info());
1522 : }
1523 :
1524 : }
1525 : // repeated string dependency = 3;
1526 0 : total_size += 1 * this->dependency_size();
1527 0 : for (int i = 0; i < this->dependency_size(); i++) {
1528 0 : total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
1529 : this->dependency(i));
1530 : }
1531 :
1532 : // repeated int32 public_dependency = 10;
1533 : {
1534 0 : int data_size = 0;
1535 0 : for (int i = 0; i < this->public_dependency_size(); i++) {
1536 0 : data_size += ::google::protobuf::internal::WireFormatLite::
1537 0 : Int32Size(this->public_dependency(i));
1538 : }
1539 0 : total_size += 1 * this->public_dependency_size() + data_size;
1540 : }
1541 :
1542 : // repeated int32 weak_dependency = 11;
1543 : {
1544 0 : int data_size = 0;
1545 0 : for (int i = 0; i < this->weak_dependency_size(); i++) {
1546 0 : data_size += ::google::protobuf::internal::WireFormatLite::
1547 0 : Int32Size(this->weak_dependency(i));
1548 : }
1549 0 : total_size += 1 * this->weak_dependency_size() + data_size;
1550 : }
1551 :
1552 : // repeated .google.protobuf.DescriptorProto message_type = 4;
1553 0 : total_size += 1 * this->message_type_size();
1554 0 : for (int i = 0; i < this->message_type_size(); i++) {
1555 0 : total_size +=
1556 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1557 : this->message_type(i));
1558 : }
1559 :
1560 : // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1561 0 : total_size += 1 * this->enum_type_size();
1562 0 : for (int i = 0; i < this->enum_type_size(); i++) {
1563 0 : total_size +=
1564 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1565 : this->enum_type(i));
1566 : }
1567 :
1568 : // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1569 0 : total_size += 1 * this->service_size();
1570 0 : for (int i = 0; i < this->service_size(); i++) {
1571 0 : total_size +=
1572 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1573 : this->service(i));
1574 : }
1575 :
1576 : // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1577 0 : total_size += 1 * this->extension_size();
1578 0 : for (int i = 0; i < this->extension_size(); i++) {
1579 0 : total_size +=
1580 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1581 : this->extension(i));
1582 : }
1583 :
1584 0 : if (!unknown_fields().empty()) {
1585 0 : total_size +=
1586 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1587 : unknown_fields());
1588 : }
1589 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1590 0 : _cached_size_ = total_size;
1591 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1592 0 : return total_size;
1593 : }
1594 :
1595 0 : void FileDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
1596 0 : GOOGLE_CHECK_NE(&from, this);
1597 : const FileDescriptorProto* source =
1598 : ::google::protobuf::internal::dynamic_cast_if_available<const FileDescriptorProto*>(
1599 0 : &from);
1600 0 : if (source == NULL) {
1601 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1602 : } else {
1603 0 : MergeFrom(*source);
1604 : }
1605 0 : }
1606 :
1607 0 : void FileDescriptorProto::MergeFrom(const FileDescriptorProto& from) {
1608 0 : GOOGLE_CHECK_NE(&from, this);
1609 0 : dependency_.MergeFrom(from.dependency_);
1610 0 : public_dependency_.MergeFrom(from.public_dependency_);
1611 0 : weak_dependency_.MergeFrom(from.weak_dependency_);
1612 0 : message_type_.MergeFrom(from.message_type_);
1613 0 : enum_type_.MergeFrom(from.enum_type_);
1614 0 : service_.MergeFrom(from.service_);
1615 0 : extension_.MergeFrom(from.extension_);
1616 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1617 0 : if (from.has_name()) {
1618 0 : set_name(from.name());
1619 : }
1620 0 : if (from.has_package()) {
1621 0 : set_package(from.package());
1622 : }
1623 : }
1624 0 : if (from._has_bits_[9 / 32] & (0xffu << (9 % 32))) {
1625 0 : if (from.has_options()) {
1626 0 : mutable_options()->::google::protobuf::FileOptions::MergeFrom(from.options());
1627 : }
1628 0 : if (from.has_source_code_info()) {
1629 0 : mutable_source_code_info()->::google::protobuf::SourceCodeInfo::MergeFrom(from.source_code_info());
1630 : }
1631 : }
1632 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1633 0 : }
1634 :
1635 0 : void FileDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
1636 0 : if (&from == this) return;
1637 0 : Clear();
1638 0 : MergeFrom(from);
1639 : }
1640 :
1641 0 : void FileDescriptorProto::CopyFrom(const FileDescriptorProto& from) {
1642 0 : if (&from == this) return;
1643 0 : Clear();
1644 0 : MergeFrom(from);
1645 : }
1646 :
1647 6 : bool FileDescriptorProto::IsInitialized() const {
1648 :
1649 6 : if (!::google::protobuf::internal::AllAreInitialized(this->message_type())) return false;
1650 6 : if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) return false;
1651 6 : if (!::google::protobuf::internal::AllAreInitialized(this->service())) return false;
1652 6 : if (!::google::protobuf::internal::AllAreInitialized(this->extension())) return false;
1653 6 : if (has_options()) {
1654 3 : if (!this->options().IsInitialized()) return false;
1655 : }
1656 6 : return true;
1657 : }
1658 :
1659 0 : void FileDescriptorProto::Swap(FileDescriptorProto* other) {
1660 0 : if (other != this) {
1661 0 : std::swap(name_, other->name_);
1662 0 : std::swap(package_, other->package_);
1663 0 : dependency_.Swap(&other->dependency_);
1664 0 : public_dependency_.Swap(&other->public_dependency_);
1665 0 : weak_dependency_.Swap(&other->weak_dependency_);
1666 0 : message_type_.Swap(&other->message_type_);
1667 0 : enum_type_.Swap(&other->enum_type_);
1668 0 : service_.Swap(&other->service_);
1669 0 : extension_.Swap(&other->extension_);
1670 0 : std::swap(options_, other->options_);
1671 0 : std::swap(source_code_info_, other->source_code_info_);
1672 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
1673 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
1674 0 : std::swap(_cached_size_, other->_cached_size_);
1675 : }
1676 0 : }
1677 :
1678 0 : ::google::protobuf::Metadata FileDescriptorProto::GetMetadata() const {
1679 0 : protobuf_AssignDescriptorsOnce();
1680 : ::google::protobuf::Metadata metadata;
1681 0 : metadata.descriptor = FileDescriptorProto_descriptor_;
1682 0 : metadata.reflection = FileDescriptorProto_reflection_;
1683 0 : return metadata;
1684 : }
1685 :
1686 :
1687 : // ===================================================================
1688 :
1689 : #ifndef _MSC_VER
1690 : const int DescriptorProto_ExtensionRange::kStartFieldNumber;
1691 : const int DescriptorProto_ExtensionRange::kEndFieldNumber;
1692 : #endif // !_MSC_VER
1693 :
1694 24 : DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange()
1695 24 : : ::google::protobuf::Message() {
1696 24 : SharedCtor();
1697 : // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.ExtensionRange)
1698 24 : }
1699 :
1700 3 : void DescriptorProto_ExtensionRange::InitAsDefaultInstance() {
1701 3 : }
1702 :
1703 0 : DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from)
1704 0 : : ::google::protobuf::Message() {
1705 0 : SharedCtor();
1706 0 : MergeFrom(from);
1707 : // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ExtensionRange)
1708 0 : }
1709 :
1710 24 : void DescriptorProto_ExtensionRange::SharedCtor() {
1711 24 : _cached_size_ = 0;
1712 24 : start_ = 0;
1713 24 : end_ = 0;
1714 24 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
1715 24 : }
1716 :
1717 63 : DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() {
1718 : // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.ExtensionRange)
1719 21 : SharedDtor();
1720 63 : }
1721 :
1722 21 : void DescriptorProto_ExtensionRange::SharedDtor() {
1723 21 : if (this != default_instance_) {
1724 : }
1725 21 : }
1726 :
1727 0 : void DescriptorProto_ExtensionRange::SetCachedSize(int size) const {
1728 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1729 0 : _cached_size_ = size;
1730 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1731 0 : }
1732 0 : const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange::descriptor() {
1733 0 : protobuf_AssignDescriptorsOnce();
1734 0 : return DescriptorProto_ExtensionRange_descriptor_;
1735 : }
1736 :
1737 0 : const DescriptorProto_ExtensionRange& DescriptorProto_ExtensionRange::default_instance() {
1738 0 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
1739 0 : return *default_instance_;
1740 : }
1741 :
1742 : DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::default_instance_ = NULL;
1743 :
1744 0 : DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::New() const {
1745 0 : return new DescriptorProto_ExtensionRange;
1746 : }
1747 :
1748 0 : void DescriptorProto_ExtensionRange::Clear() {
1749 : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
1750 : &reinterpret_cast<DescriptorProto_ExtensionRange*>(16)->f) - \
1751 : reinterpret_cast<char*>(16))
1752 :
1753 : #define ZR_(first, last) do { \
1754 : size_t f = OFFSET_OF_FIELD_(first); \
1755 : size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
1756 : ::memset(&first, 0, n); \
1757 : } while (0)
1758 :
1759 0 : ZR_(start_, end_);
1760 :
1761 : #undef OFFSET_OF_FIELD_
1762 : #undef ZR_
1763 :
1764 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
1765 0 : mutable_unknown_fields()->Clear();
1766 0 : }
1767 :
1768 21 : bool DescriptorProto_ExtensionRange::MergePartialFromCodedStream(
1769 : ::google::protobuf::io::CodedInputStream* input) {
1770 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1771 : ::google::protobuf::uint32 tag;
1772 : // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.ExtensionRange)
1773 : for (;;) {
1774 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1775 21 : tag = p.first;
1776 21 : if (!p.second) goto handle_unusual;
1777 21 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1778 : // optional int32 start = 1;
1779 : case 1: {
1780 21 : if (tag == 8) {
1781 42 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1782 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1783 : input, &start_)));
1784 21 : set_has_start();
1785 : } else {
1786 0 : goto handle_unusual;
1787 : }
1788 21 : if (input->ExpectTag(16)) goto parse_end;
1789 0 : break;
1790 : }
1791 :
1792 : // optional int32 end = 2;
1793 : case 2: {
1794 0 : if (tag == 16) {
1795 : parse_end:
1796 42 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1797 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1798 : input, &end_)));
1799 21 : set_has_end();
1800 : } else {
1801 0 : goto handle_unusual;
1802 : }
1803 42 : if (input->ExpectAtEnd()) goto success;
1804 0 : break;
1805 : }
1806 :
1807 : default: {
1808 : handle_unusual:
1809 0 : if (tag == 0 ||
1810 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1811 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1812 0 : goto success;
1813 : }
1814 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
1815 : input, tag, mutable_unknown_fields()));
1816 0 : break;
1817 : }
1818 : }
1819 0 : }
1820 : success:
1821 : // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto.ExtensionRange)
1822 21 : return true;
1823 : failure:
1824 : // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto.ExtensionRange)
1825 0 : return false;
1826 : #undef DO_
1827 : }
1828 :
1829 0 : void DescriptorProto_ExtensionRange::SerializeWithCachedSizes(
1830 : ::google::protobuf::io::CodedOutputStream* output) const {
1831 : // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto.ExtensionRange)
1832 : // optional int32 start = 1;
1833 0 : if (has_start()) {
1834 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->start(), output);
1835 : }
1836 :
1837 : // optional int32 end = 2;
1838 0 : if (has_end()) {
1839 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), output);
1840 : }
1841 :
1842 0 : if (!unknown_fields().empty()) {
1843 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1844 0 : unknown_fields(), output);
1845 : }
1846 : // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.ExtensionRange)
1847 0 : }
1848 :
1849 0 : ::google::protobuf::uint8* DescriptorProto_ExtensionRange::SerializeWithCachedSizesToArray(
1850 : ::google::protobuf::uint8* target) const {
1851 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ExtensionRange)
1852 : // optional int32 start = 1;
1853 0 : if (has_start()) {
1854 0 : target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target);
1855 : }
1856 :
1857 : // optional int32 end = 2;
1858 0 : if (has_end()) {
1859 0 : target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target);
1860 : }
1861 :
1862 0 : if (!unknown_fields().empty()) {
1863 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1864 0 : unknown_fields(), target);
1865 : }
1866 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto.ExtensionRange)
1867 0 : return target;
1868 : }
1869 :
1870 0 : int DescriptorProto_ExtensionRange::ByteSize() const {
1871 0 : int total_size = 0;
1872 :
1873 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1874 : // optional int32 start = 1;
1875 0 : if (has_start()) {
1876 0 : total_size += 1 +
1877 0 : ::google::protobuf::internal::WireFormatLite::Int32Size(
1878 : this->start());
1879 : }
1880 :
1881 : // optional int32 end = 2;
1882 0 : if (has_end()) {
1883 0 : total_size += 1 +
1884 0 : ::google::protobuf::internal::WireFormatLite::Int32Size(
1885 : this->end());
1886 : }
1887 :
1888 : }
1889 0 : if (!unknown_fields().empty()) {
1890 0 : total_size +=
1891 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1892 : unknown_fields());
1893 : }
1894 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1895 0 : _cached_size_ = total_size;
1896 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1897 0 : return total_size;
1898 : }
1899 :
1900 0 : void DescriptorProto_ExtensionRange::MergeFrom(const ::google::protobuf::Message& from) {
1901 0 : GOOGLE_CHECK_NE(&from, this);
1902 : const DescriptorProto_ExtensionRange* source =
1903 : ::google::protobuf::internal::dynamic_cast_if_available<const DescriptorProto_ExtensionRange*>(
1904 0 : &from);
1905 0 : if (source == NULL) {
1906 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1907 : } else {
1908 0 : MergeFrom(*source);
1909 : }
1910 0 : }
1911 :
1912 0 : void DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRange& from) {
1913 0 : GOOGLE_CHECK_NE(&from, this);
1914 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1915 0 : if (from.has_start()) {
1916 0 : set_start(from.start());
1917 : }
1918 0 : if (from.has_end()) {
1919 0 : set_end(from.end());
1920 : }
1921 : }
1922 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1923 0 : }
1924 :
1925 0 : void DescriptorProto_ExtensionRange::CopyFrom(const ::google::protobuf::Message& from) {
1926 0 : if (&from == this) return;
1927 0 : Clear();
1928 0 : MergeFrom(from);
1929 : }
1930 :
1931 0 : void DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRange& from) {
1932 0 : if (&from == this) return;
1933 0 : Clear();
1934 0 : MergeFrom(from);
1935 : }
1936 :
1937 0 : bool DescriptorProto_ExtensionRange::IsInitialized() const {
1938 :
1939 0 : return true;
1940 : }
1941 :
1942 0 : void DescriptorProto_ExtensionRange::Swap(DescriptorProto_ExtensionRange* other) {
1943 0 : if (other != this) {
1944 0 : std::swap(start_, other->start_);
1945 0 : std::swap(end_, other->end_);
1946 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
1947 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
1948 0 : std::swap(_cached_size_, other->_cached_size_);
1949 : }
1950 0 : }
1951 :
1952 0 : ::google::protobuf::Metadata DescriptorProto_ExtensionRange::GetMetadata() const {
1953 0 : protobuf_AssignDescriptorsOnce();
1954 : ::google::protobuf::Metadata metadata;
1955 0 : metadata.descriptor = DescriptorProto_ExtensionRange_descriptor_;
1956 0 : metadata.reflection = DescriptorProto_ExtensionRange_reflection_;
1957 0 : return metadata;
1958 : }
1959 :
1960 :
1961 : // -------------------------------------------------------------------
1962 :
1963 : #ifndef _MSC_VER
1964 : const int DescriptorProto::kNameFieldNumber;
1965 : const int DescriptorProto::kFieldFieldNumber;
1966 : const int DescriptorProto::kExtensionFieldNumber;
1967 : const int DescriptorProto::kNestedTypeFieldNumber;
1968 : const int DescriptorProto::kEnumTypeFieldNumber;
1969 : const int DescriptorProto::kExtensionRangeFieldNumber;
1970 : const int DescriptorProto::kOneofDeclFieldNumber;
1971 : const int DescriptorProto::kOptionsFieldNumber;
1972 : #endif // !_MSC_VER
1973 :
1974 81 : DescriptorProto::DescriptorProto()
1975 81 : : ::google::protobuf::Message() {
1976 81 : SharedCtor();
1977 : // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto)
1978 81 : }
1979 :
1980 3 : void DescriptorProto::InitAsDefaultInstance() {
1981 3 : options_ = const_cast< ::google::protobuf::MessageOptions*>(&::google::protobuf::MessageOptions::default_instance());
1982 3 : }
1983 :
1984 0 : DescriptorProto::DescriptorProto(const DescriptorProto& from)
1985 0 : : ::google::protobuf::Message() {
1986 0 : SharedCtor();
1987 0 : MergeFrom(from);
1988 : // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto)
1989 0 : }
1990 :
1991 81 : void DescriptorProto::SharedCtor() {
1992 81 : ::google::protobuf::internal::GetEmptyString();
1993 81 : _cached_size_ = 0;
1994 81 : name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1995 81 : options_ = NULL;
1996 81 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
1997 81 : }
1998 :
1999 234 : DescriptorProto::~DescriptorProto() {
2000 : // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto)
2001 78 : SharedDtor();
2002 234 : }
2003 :
2004 78 : void DescriptorProto::SharedDtor() {
2005 78 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2006 78 : delete name_;
2007 : }
2008 78 : if (this != default_instance_) {
2009 78 : delete options_;
2010 : }
2011 78 : }
2012 :
2013 0 : void DescriptorProto::SetCachedSize(int size) const {
2014 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2015 0 : _cached_size_ = size;
2016 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2017 0 : }
2018 0 : const ::google::protobuf::Descriptor* DescriptorProto::descriptor() {
2019 0 : protobuf_AssignDescriptorsOnce();
2020 0 : return DescriptorProto_descriptor_;
2021 : }
2022 :
2023 0 : const DescriptorProto& DescriptorProto::default_instance() {
2024 0 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2025 0 : return *default_instance_;
2026 : }
2027 :
2028 : DescriptorProto* DescriptorProto::default_instance_ = NULL;
2029 :
2030 0 : DescriptorProto* DescriptorProto::New() const {
2031 0 : return new DescriptorProto;
2032 : }
2033 :
2034 0 : void DescriptorProto::Clear() {
2035 0 : if (_has_bits_[0 / 32] & 129) {
2036 0 : if (has_name()) {
2037 0 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2038 0 : name_->clear();
2039 : }
2040 : }
2041 0 : if (has_options()) {
2042 0 : if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear();
2043 : }
2044 : }
2045 0 : field_.Clear();
2046 0 : extension_.Clear();
2047 0 : nested_type_.Clear();
2048 0 : enum_type_.Clear();
2049 0 : extension_range_.Clear();
2050 0 : oneof_decl_.Clear();
2051 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
2052 0 : mutable_unknown_fields()->Clear();
2053 0 : }
2054 :
2055 180 : bool DescriptorProto::MergePartialFromCodedStream(
2056 : ::google::protobuf::io::CodedInputStream* input) {
2057 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
2058 : ::google::protobuf::uint32 tag;
2059 : // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto)
2060 : for (;;) {
2061 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2062 180 : tag = p.first;
2063 180 : if (!p.second) goto handle_unusual;
2064 114 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2065 : // optional string name = 1;
2066 : case 1: {
2067 78 : if (tag == 10) {
2068 78 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2069 : input, this->mutable_name()));
2070 156 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2071 156 : this->name().data(), this->name().length(),
2072 : ::google::protobuf::internal::WireFormat::PARSE,
2073 78 : "name");
2074 : } else {
2075 0 : goto handle_unusual;
2076 : }
2077 78 : if (input->ExpectTag(18)) goto parse_field;
2078 0 : break;
2079 : }
2080 :
2081 : // repeated .google.protobuf.FieldDescriptorProto field = 2;
2082 : case 2: {
2083 0 : if (tag == 18) {
2084 : parse_field:
2085 354 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2086 : input, add_field()));
2087 : } else {
2088 0 : goto handle_unusual;
2089 : }
2090 354 : if (input->ExpectTag(18)) goto parse_field;
2091 78 : if (input->ExpectTag(26)) goto parse_nested_type;
2092 66 : break;
2093 : }
2094 :
2095 : // repeated .google.protobuf.DescriptorProto nested_type = 3;
2096 : case 3: {
2097 0 : if (tag == 26) {
2098 : parse_nested_type:
2099 12 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2100 : input, add_nested_type()));
2101 : } else {
2102 0 : goto handle_unusual;
2103 : }
2104 12 : if (input->ExpectTag(26)) goto parse_nested_type;
2105 12 : if (input->ExpectTag(34)) goto parse_enum_type;
2106 12 : break;
2107 : }
2108 :
2109 : // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
2110 : case 4: {
2111 9 : if (tag == 34) {
2112 : parse_enum_type:
2113 12 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2114 : input, add_enum_type()));
2115 : } else {
2116 0 : goto handle_unusual;
2117 : }
2118 12 : if (input->ExpectTag(34)) goto parse_enum_type;
2119 9 : if (input->ExpectTag(42)) goto parse_extension_range;
2120 3 : break;
2121 : }
2122 :
2123 : // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
2124 : case 5: {
2125 15 : if (tag == 42) {
2126 : parse_extension_range:
2127 21 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2128 : input, add_extension_range()));
2129 : } else {
2130 0 : goto handle_unusual;
2131 : }
2132 21 : if (input->ExpectTag(42)) goto parse_extension_range;
2133 21 : if (input->ExpectTag(50)) goto parse_extension;
2134 21 : break;
2135 : }
2136 :
2137 : // repeated .google.protobuf.FieldDescriptorProto extension = 6;
2138 : case 6: {
2139 0 : if (tag == 50) {
2140 : parse_extension:
2141 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2142 : input, add_extension()));
2143 : } else {
2144 0 : goto handle_unusual;
2145 : }
2146 0 : if (input->ExpectTag(50)) goto parse_extension;
2147 0 : if (input->ExpectTag(58)) goto parse_options;
2148 0 : break;
2149 : }
2150 :
2151 : // optional .google.protobuf.MessageOptions options = 7;
2152 : case 7: {
2153 0 : if (tag == 58) {
2154 : parse_options:
2155 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2156 : input, mutable_options()));
2157 : } else {
2158 0 : goto handle_unusual;
2159 : }
2160 0 : if (input->ExpectTag(66)) goto parse_oneof_decl;
2161 0 : break;
2162 : }
2163 :
2164 : // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
2165 : case 8: {
2166 12 : if (tag == 66) {
2167 : parse_oneof_decl:
2168 21 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2169 : input, add_oneof_decl()));
2170 : } else {
2171 0 : goto handle_unusual;
2172 : }
2173 21 : if (input->ExpectTag(66)) goto parse_oneof_decl;
2174 90 : if (input->ExpectAtEnd()) goto success;
2175 0 : break;
2176 : }
2177 :
2178 : default: {
2179 : handle_unusual:
2180 66 : if (tag == 0 ||
2181 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2182 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2183 66 : goto success;
2184 : }
2185 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
2186 : input, tag, mutable_unknown_fields()));
2187 0 : break;
2188 : }
2189 : }
2190 102 : }
2191 : success:
2192 : // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto)
2193 78 : return true;
2194 : failure:
2195 : // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto)
2196 0 : return false;
2197 : #undef DO_
2198 : }
2199 :
2200 0 : void DescriptorProto::SerializeWithCachedSizes(
2201 : ::google::protobuf::io::CodedOutputStream* output) const {
2202 : // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto)
2203 : // optional string name = 1;
2204 0 : if (has_name()) {
2205 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2206 0 : this->name().data(), this->name().length(),
2207 : ::google::protobuf::internal::WireFormat::SERIALIZE,
2208 0 : "name");
2209 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2210 0 : 1, this->name(), output);
2211 : }
2212 :
2213 : // repeated .google.protobuf.FieldDescriptorProto field = 2;
2214 0 : for (int i = 0; i < this->field_size(); i++) {
2215 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2216 0 : 2, this->field(i), output);
2217 : }
2218 :
2219 : // repeated .google.protobuf.DescriptorProto nested_type = 3;
2220 0 : for (int i = 0; i < this->nested_type_size(); i++) {
2221 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2222 0 : 3, this->nested_type(i), output);
2223 : }
2224 :
2225 : // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
2226 0 : for (int i = 0; i < this->enum_type_size(); i++) {
2227 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2228 0 : 4, this->enum_type(i), output);
2229 : }
2230 :
2231 : // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
2232 0 : for (int i = 0; i < this->extension_range_size(); i++) {
2233 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2234 0 : 5, this->extension_range(i), output);
2235 : }
2236 :
2237 : // repeated .google.protobuf.FieldDescriptorProto extension = 6;
2238 0 : for (int i = 0; i < this->extension_size(); i++) {
2239 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2240 0 : 6, this->extension(i), output);
2241 : }
2242 :
2243 : // optional .google.protobuf.MessageOptions options = 7;
2244 0 : if (has_options()) {
2245 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2246 0 : 7, this->options(), output);
2247 : }
2248 :
2249 : // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
2250 0 : for (int i = 0; i < this->oneof_decl_size(); i++) {
2251 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2252 0 : 8, this->oneof_decl(i), output);
2253 : }
2254 :
2255 0 : if (!unknown_fields().empty()) {
2256 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2257 0 : unknown_fields(), output);
2258 : }
2259 : // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto)
2260 0 : }
2261 :
2262 0 : ::google::protobuf::uint8* DescriptorProto::SerializeWithCachedSizesToArray(
2263 : ::google::protobuf::uint8* target) const {
2264 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto)
2265 : // optional string name = 1;
2266 0 : if (has_name()) {
2267 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2268 0 : this->name().data(), this->name().length(),
2269 : ::google::protobuf::internal::WireFormat::SERIALIZE,
2270 0 : "name");
2271 : target =
2272 0 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2273 0 : 1, this->name(), target);
2274 : }
2275 :
2276 : // repeated .google.protobuf.FieldDescriptorProto field = 2;
2277 0 : for (int i = 0; i < this->field_size(); i++) {
2278 : target = ::google::protobuf::internal::WireFormatLite::
2279 0 : WriteMessageNoVirtualToArray(
2280 0 : 2, this->field(i), target);
2281 : }
2282 :
2283 : // repeated .google.protobuf.DescriptorProto nested_type = 3;
2284 0 : for (int i = 0; i < this->nested_type_size(); i++) {
2285 : target = ::google::protobuf::internal::WireFormatLite::
2286 0 : WriteMessageNoVirtualToArray(
2287 0 : 3, this->nested_type(i), target);
2288 : }
2289 :
2290 : // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
2291 0 : for (int i = 0; i < this->enum_type_size(); i++) {
2292 : target = ::google::protobuf::internal::WireFormatLite::
2293 0 : WriteMessageNoVirtualToArray(
2294 0 : 4, this->enum_type(i), target);
2295 : }
2296 :
2297 : // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
2298 0 : for (int i = 0; i < this->extension_range_size(); i++) {
2299 : target = ::google::protobuf::internal::WireFormatLite::
2300 0 : WriteMessageNoVirtualToArray(
2301 0 : 5, this->extension_range(i), target);
2302 : }
2303 :
2304 : // repeated .google.protobuf.FieldDescriptorProto extension = 6;
2305 0 : for (int i = 0; i < this->extension_size(); i++) {
2306 : target = ::google::protobuf::internal::WireFormatLite::
2307 0 : WriteMessageNoVirtualToArray(
2308 0 : 6, this->extension(i), target);
2309 : }
2310 :
2311 : // optional .google.protobuf.MessageOptions options = 7;
2312 0 : if (has_options()) {
2313 : target = ::google::protobuf::internal::WireFormatLite::
2314 0 : WriteMessageNoVirtualToArray(
2315 0 : 7, this->options(), target);
2316 : }
2317 :
2318 : // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
2319 0 : for (int i = 0; i < this->oneof_decl_size(); i++) {
2320 : target = ::google::protobuf::internal::WireFormatLite::
2321 0 : WriteMessageNoVirtualToArray(
2322 0 : 8, this->oneof_decl(i), target);
2323 : }
2324 :
2325 0 : if (!unknown_fields().empty()) {
2326 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2327 0 : unknown_fields(), target);
2328 : }
2329 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto)
2330 0 : return target;
2331 : }
2332 :
2333 0 : int DescriptorProto::ByteSize() const {
2334 0 : int total_size = 0;
2335 :
2336 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2337 : // optional string name = 1;
2338 0 : if (has_name()) {
2339 0 : total_size += 1 +
2340 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
2341 : this->name());
2342 : }
2343 :
2344 : // optional .google.protobuf.MessageOptions options = 7;
2345 0 : if (has_options()) {
2346 0 : total_size += 1 +
2347 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2348 : this->options());
2349 : }
2350 :
2351 : }
2352 : // repeated .google.protobuf.FieldDescriptorProto field = 2;
2353 0 : total_size += 1 * this->field_size();
2354 0 : for (int i = 0; i < this->field_size(); i++) {
2355 0 : total_size +=
2356 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2357 : this->field(i));
2358 : }
2359 :
2360 : // repeated .google.protobuf.FieldDescriptorProto extension = 6;
2361 0 : total_size += 1 * this->extension_size();
2362 0 : for (int i = 0; i < this->extension_size(); i++) {
2363 0 : total_size +=
2364 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2365 : this->extension(i));
2366 : }
2367 :
2368 : // repeated .google.protobuf.DescriptorProto nested_type = 3;
2369 0 : total_size += 1 * this->nested_type_size();
2370 0 : for (int i = 0; i < this->nested_type_size(); i++) {
2371 0 : total_size +=
2372 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2373 : this->nested_type(i));
2374 : }
2375 :
2376 : // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
2377 0 : total_size += 1 * this->enum_type_size();
2378 0 : for (int i = 0; i < this->enum_type_size(); i++) {
2379 0 : total_size +=
2380 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2381 : this->enum_type(i));
2382 : }
2383 :
2384 : // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
2385 0 : total_size += 1 * this->extension_range_size();
2386 0 : for (int i = 0; i < this->extension_range_size(); i++) {
2387 0 : total_size +=
2388 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2389 : this->extension_range(i));
2390 : }
2391 :
2392 : // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
2393 0 : total_size += 1 * this->oneof_decl_size();
2394 0 : for (int i = 0; i < this->oneof_decl_size(); i++) {
2395 0 : total_size +=
2396 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2397 : this->oneof_decl(i));
2398 : }
2399 :
2400 0 : if (!unknown_fields().empty()) {
2401 0 : total_size +=
2402 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2403 : unknown_fields());
2404 : }
2405 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2406 0 : _cached_size_ = total_size;
2407 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2408 0 : return total_size;
2409 : }
2410 :
2411 0 : void DescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
2412 0 : GOOGLE_CHECK_NE(&from, this);
2413 : const DescriptorProto* source =
2414 : ::google::protobuf::internal::dynamic_cast_if_available<const DescriptorProto*>(
2415 0 : &from);
2416 0 : if (source == NULL) {
2417 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2418 : } else {
2419 0 : MergeFrom(*source);
2420 : }
2421 0 : }
2422 :
2423 0 : void DescriptorProto::MergeFrom(const DescriptorProto& from) {
2424 0 : GOOGLE_CHECK_NE(&from, this);
2425 0 : field_.MergeFrom(from.field_);
2426 0 : extension_.MergeFrom(from.extension_);
2427 0 : nested_type_.MergeFrom(from.nested_type_);
2428 0 : enum_type_.MergeFrom(from.enum_type_);
2429 0 : extension_range_.MergeFrom(from.extension_range_);
2430 0 : oneof_decl_.MergeFrom(from.oneof_decl_);
2431 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2432 0 : if (from.has_name()) {
2433 0 : set_name(from.name());
2434 : }
2435 0 : if (from.has_options()) {
2436 0 : mutable_options()->::google::protobuf::MessageOptions::MergeFrom(from.options());
2437 : }
2438 : }
2439 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2440 0 : }
2441 :
2442 0 : void DescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
2443 0 : if (&from == this) return;
2444 0 : Clear();
2445 0 : MergeFrom(from);
2446 : }
2447 :
2448 0 : void DescriptorProto::CopyFrom(const DescriptorProto& from) {
2449 0 : if (&from == this) return;
2450 0 : Clear();
2451 0 : MergeFrom(from);
2452 : }
2453 :
2454 78 : bool DescriptorProto::IsInitialized() const {
2455 :
2456 78 : if (!::google::protobuf::internal::AllAreInitialized(this->field())) return false;
2457 78 : if (!::google::protobuf::internal::AllAreInitialized(this->extension())) return false;
2458 78 : if (!::google::protobuf::internal::AllAreInitialized(this->nested_type())) return false;
2459 78 : if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) return false;
2460 78 : if (has_options()) {
2461 0 : if (!this->options().IsInitialized()) return false;
2462 : }
2463 78 : return true;
2464 : }
2465 :
2466 0 : void DescriptorProto::Swap(DescriptorProto* other) {
2467 0 : if (other != this) {
2468 0 : std::swap(name_, other->name_);
2469 0 : field_.Swap(&other->field_);
2470 0 : extension_.Swap(&other->extension_);
2471 0 : nested_type_.Swap(&other->nested_type_);
2472 0 : enum_type_.Swap(&other->enum_type_);
2473 0 : extension_range_.Swap(&other->extension_range_);
2474 0 : oneof_decl_.Swap(&other->oneof_decl_);
2475 0 : std::swap(options_, other->options_);
2476 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
2477 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
2478 0 : std::swap(_cached_size_, other->_cached_size_);
2479 : }
2480 0 : }
2481 :
2482 0 : ::google::protobuf::Metadata DescriptorProto::GetMetadata() const {
2483 0 : protobuf_AssignDescriptorsOnce();
2484 : ::google::protobuf::Metadata metadata;
2485 0 : metadata.descriptor = DescriptorProto_descriptor_;
2486 0 : metadata.reflection = DescriptorProto_reflection_;
2487 0 : return metadata;
2488 : }
2489 :
2490 :
2491 : // ===================================================================
2492 :
2493 0 : const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor() {
2494 0 : protobuf_AssignDescriptorsOnce();
2495 0 : return FieldDescriptorProto_Type_descriptor_;
2496 : }
2497 708 : bool FieldDescriptorProto_Type_IsValid(int value) {
2498 708 : switch(value) {
2499 : case 1:
2500 : case 2:
2501 : case 3:
2502 : case 4:
2503 : case 5:
2504 : case 6:
2505 : case 7:
2506 : case 8:
2507 : case 9:
2508 : case 10:
2509 : case 11:
2510 : case 12:
2511 : case 13:
2512 : case 14:
2513 : case 15:
2514 : case 16:
2515 : case 17:
2516 : case 18:
2517 708 : return true;
2518 : default:
2519 0 : return false;
2520 : }
2521 : }
2522 :
2523 : #ifndef _MSC_VER
2524 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_DOUBLE;
2525 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FLOAT;
2526 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT64;
2527 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT64;
2528 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT32;
2529 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED64;
2530 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED32;
2531 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BOOL;
2532 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_STRING;
2533 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_GROUP;
2534 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_MESSAGE;
2535 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BYTES;
2536 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT32;
2537 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_ENUM;
2538 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED32;
2539 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED64;
2540 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT32;
2541 : const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT64;
2542 : const FieldDescriptorProto_Type FieldDescriptorProto::Type_MIN;
2543 : const FieldDescriptorProto_Type FieldDescriptorProto::Type_MAX;
2544 : const int FieldDescriptorProto::Type_ARRAYSIZE;
2545 : #endif // _MSC_VER
2546 0 : const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor() {
2547 0 : protobuf_AssignDescriptorsOnce();
2548 0 : return FieldDescriptorProto_Label_descriptor_;
2549 : }
2550 708 : bool FieldDescriptorProto_Label_IsValid(int value) {
2551 708 : switch(value) {
2552 : case 1:
2553 : case 2:
2554 : case 3:
2555 708 : return true;
2556 : default:
2557 0 : return false;
2558 : }
2559 : }
2560 :
2561 : #ifndef _MSC_VER
2562 : const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_OPTIONAL;
2563 : const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REQUIRED;
2564 : const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REPEATED;
2565 : const FieldDescriptorProto_Label FieldDescriptorProto::Label_MIN;
2566 : const FieldDescriptorProto_Label FieldDescriptorProto::Label_MAX;
2567 : const int FieldDescriptorProto::Label_ARRAYSIZE;
2568 : #endif // _MSC_VER
2569 : #ifndef _MSC_VER
2570 : const int FieldDescriptorProto::kNameFieldNumber;
2571 : const int FieldDescriptorProto::kNumberFieldNumber;
2572 : const int FieldDescriptorProto::kLabelFieldNumber;
2573 : const int FieldDescriptorProto::kTypeFieldNumber;
2574 : const int FieldDescriptorProto::kTypeNameFieldNumber;
2575 : const int FieldDescriptorProto::kExtendeeFieldNumber;
2576 : const int FieldDescriptorProto::kDefaultValueFieldNumber;
2577 : const int FieldDescriptorProto::kOneofIndexFieldNumber;
2578 : const int FieldDescriptorProto::kOptionsFieldNumber;
2579 : #endif // !_MSC_VER
2580 :
2581 357 : FieldDescriptorProto::FieldDescriptorProto()
2582 357 : : ::google::protobuf::Message() {
2583 357 : SharedCtor();
2584 : // @@protoc_insertion_point(constructor:google.protobuf.FieldDescriptorProto)
2585 357 : }
2586 :
2587 3 : void FieldDescriptorProto::InitAsDefaultInstance() {
2588 3 : options_ = const_cast< ::google::protobuf::FieldOptions*>(&::google::protobuf::FieldOptions::default_instance());
2589 3 : }
2590 :
2591 0 : FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from)
2592 0 : : ::google::protobuf::Message() {
2593 0 : SharedCtor();
2594 0 : MergeFrom(from);
2595 : // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldDescriptorProto)
2596 0 : }
2597 :
2598 357 : void FieldDescriptorProto::SharedCtor() {
2599 357 : ::google::protobuf::internal::GetEmptyString();
2600 357 : _cached_size_ = 0;
2601 357 : name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2602 357 : number_ = 0;
2603 357 : label_ = 1;
2604 357 : type_ = 1;
2605 357 : type_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2606 357 : extendee_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2607 357 : default_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2608 357 : oneof_index_ = 0;
2609 357 : options_ = NULL;
2610 357 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
2611 357 : }
2612 :
2613 1062 : FieldDescriptorProto::~FieldDescriptorProto() {
2614 : // @@protoc_insertion_point(destructor:google.protobuf.FieldDescriptorProto)
2615 354 : SharedDtor();
2616 1062 : }
2617 :
2618 354 : void FieldDescriptorProto::SharedDtor() {
2619 354 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2620 354 : delete name_;
2621 : }
2622 354 : if (type_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2623 114 : delete type_name_;
2624 : }
2625 354 : if (extendee_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2626 0 : delete extendee_;
2627 : }
2628 354 : if (default_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2629 60 : delete default_value_;
2630 : }
2631 354 : if (this != default_instance_) {
2632 354 : delete options_;
2633 : }
2634 354 : }
2635 :
2636 0 : void FieldDescriptorProto::SetCachedSize(int size) const {
2637 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2638 0 : _cached_size_ = size;
2639 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2640 0 : }
2641 0 : const ::google::protobuf::Descriptor* FieldDescriptorProto::descriptor() {
2642 0 : protobuf_AssignDescriptorsOnce();
2643 0 : return FieldDescriptorProto_descriptor_;
2644 : }
2645 :
2646 0 : const FieldDescriptorProto& FieldDescriptorProto::default_instance() {
2647 0 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2648 0 : return *default_instance_;
2649 : }
2650 :
2651 : FieldDescriptorProto* FieldDescriptorProto::default_instance_ = NULL;
2652 :
2653 0 : FieldDescriptorProto* FieldDescriptorProto::New() const {
2654 0 : return new FieldDescriptorProto;
2655 : }
2656 :
2657 0 : void FieldDescriptorProto::Clear() {
2658 0 : if (_has_bits_[0 / 32] & 255) {
2659 0 : if (has_name()) {
2660 0 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2661 0 : name_->clear();
2662 : }
2663 : }
2664 0 : number_ = 0;
2665 0 : label_ = 1;
2666 0 : type_ = 1;
2667 0 : if (has_type_name()) {
2668 0 : if (type_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2669 0 : type_name_->clear();
2670 : }
2671 : }
2672 0 : if (has_extendee()) {
2673 0 : if (extendee_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2674 0 : extendee_->clear();
2675 : }
2676 : }
2677 0 : if (has_default_value()) {
2678 0 : if (default_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2679 0 : default_value_->clear();
2680 : }
2681 : }
2682 0 : oneof_index_ = 0;
2683 : }
2684 0 : if (has_options()) {
2685 0 : if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear();
2686 : }
2687 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
2688 0 : mutable_unknown_fields()->Clear();
2689 0 : }
2690 :
2691 1122 : bool FieldDescriptorProto::MergePartialFromCodedStream(
2692 : ::google::protobuf::io::CodedInputStream* input) {
2693 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
2694 : ::google::protobuf::uint32 tag;
2695 : // @@protoc_insertion_point(parse_start:google.protobuf.FieldDescriptorProto)
2696 : for (;;) {
2697 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2698 1122 : tag = p.first;
2699 1122 : if (!p.second) goto handle_unusual;
2700 810 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2701 : // optional string name = 1;
2702 : case 1: {
2703 354 : if (tag == 10) {
2704 354 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2705 : input, this->mutable_name()));
2706 708 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2707 708 : this->name().data(), this->name().length(),
2708 : ::google::protobuf::internal::WireFormat::PARSE,
2709 354 : "name");
2710 : } else {
2711 0 : goto handle_unusual;
2712 : }
2713 354 : if (input->ExpectTag(18)) goto parse_extendee;
2714 354 : break;
2715 : }
2716 :
2717 : // optional string extendee = 2;
2718 : case 2: {
2719 0 : if (tag == 18) {
2720 : parse_extendee:
2721 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2722 : input, this->mutable_extendee()));
2723 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2724 0 : this->extendee().data(), this->extendee().length(),
2725 : ::google::protobuf::internal::WireFormat::PARSE,
2726 0 : "extendee");
2727 : } else {
2728 0 : goto handle_unusual;
2729 : }
2730 0 : if (input->ExpectTag(24)) goto parse_number;
2731 0 : break;
2732 : }
2733 :
2734 : // optional int32 number = 3;
2735 : case 3: {
2736 354 : if (tag == 24) {
2737 : parse_number:
2738 708 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2739 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2740 : input, &number_)));
2741 354 : set_has_number();
2742 : } else {
2743 0 : goto handle_unusual;
2744 : }
2745 354 : if (input->ExpectTag(32)) goto parse_label;
2746 0 : break;
2747 : }
2748 :
2749 : // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
2750 : case 4: {
2751 0 : if (tag == 32) {
2752 : parse_label:
2753 : int value;
2754 354 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2755 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2756 : input, &value)));
2757 354 : if (::google::protobuf::FieldDescriptorProto_Label_IsValid(value)) {
2758 354 : set_label(static_cast< ::google::protobuf::FieldDescriptorProto_Label >(value));
2759 : } else {
2760 0 : mutable_unknown_fields()->AddVarint(4, value);
2761 : }
2762 : } else {
2763 0 : goto handle_unusual;
2764 : }
2765 354 : if (input->ExpectTag(40)) goto parse_type;
2766 0 : break;
2767 : }
2768 :
2769 : // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
2770 : case 5: {
2771 0 : if (tag == 40) {
2772 : parse_type:
2773 : int value;
2774 354 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2775 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2776 : input, &value)));
2777 354 : if (::google::protobuf::FieldDescriptorProto_Type_IsValid(value)) {
2778 354 : set_type(static_cast< ::google::protobuf::FieldDescriptorProto_Type >(value));
2779 : } else {
2780 0 : mutable_unknown_fields()->AddVarint(5, value);
2781 : }
2782 : } else {
2783 0 : goto handle_unusual;
2784 : }
2785 354 : if (input->ExpectTag(50)) goto parse_type_name;
2786 240 : break;
2787 : }
2788 :
2789 : // optional string type_name = 6;
2790 : case 6: {
2791 0 : if (tag == 50) {
2792 : parse_type_name:
2793 114 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2794 : input, this->mutable_type_name()));
2795 228 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2796 228 : this->type_name().data(), this->type_name().length(),
2797 : ::google::protobuf::internal::WireFormat::PARSE,
2798 114 : "type_name");
2799 : } else {
2800 0 : goto handle_unusual;
2801 : }
2802 114 : if (input->ExpectTag(58)) goto parse_default_value;
2803 108 : break;
2804 : }
2805 :
2806 : // optional string default_value = 7;
2807 : case 7: {
2808 54 : if (tag == 58) {
2809 : parse_default_value:
2810 60 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2811 : input, this->mutable_default_value()));
2812 120 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2813 120 : this->default_value().data(), this->default_value().length(),
2814 : ::google::protobuf::internal::WireFormat::PARSE,
2815 60 : "default_value");
2816 : } else {
2817 0 : goto handle_unusual;
2818 : }
2819 60 : if (input->ExpectTag(66)) goto parse_options;
2820 60 : break;
2821 : }
2822 :
2823 : // optional .google.protobuf.FieldOptions options = 8;
2824 : case 8: {
2825 6 : if (tag == 66) {
2826 : parse_options:
2827 6 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2828 : input, mutable_options()));
2829 : } else {
2830 0 : goto handle_unusual;
2831 : }
2832 6 : if (input->ExpectTag(72)) goto parse_oneof_index;
2833 6 : break;
2834 : }
2835 :
2836 : // optional int32 oneof_index = 9;
2837 : case 9: {
2838 42 : if (tag == 72) {
2839 : parse_oneof_index:
2840 84 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2841 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2842 : input, &oneof_index_)));
2843 42 : set_has_oneof_index();
2844 : } else {
2845 0 : goto handle_unusual;
2846 : }
2847 396 : if (input->ExpectAtEnd()) goto success;
2848 0 : break;
2849 : }
2850 :
2851 : default: {
2852 : handle_unusual:
2853 312 : if (tag == 0 ||
2854 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2855 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2856 312 : goto success;
2857 : }
2858 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
2859 : input, tag, mutable_unknown_fields()));
2860 0 : break;
2861 : }
2862 : }
2863 768 : }
2864 : success:
2865 : // @@protoc_insertion_point(parse_success:google.protobuf.FieldDescriptorProto)
2866 354 : return true;
2867 : failure:
2868 : // @@protoc_insertion_point(parse_failure:google.protobuf.FieldDescriptorProto)
2869 0 : return false;
2870 : #undef DO_
2871 : }
2872 :
2873 0 : void FieldDescriptorProto::SerializeWithCachedSizes(
2874 : ::google::protobuf::io::CodedOutputStream* output) const {
2875 : // @@protoc_insertion_point(serialize_start:google.protobuf.FieldDescriptorProto)
2876 : // optional string name = 1;
2877 0 : if (has_name()) {
2878 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2879 0 : this->name().data(), this->name().length(),
2880 : ::google::protobuf::internal::WireFormat::SERIALIZE,
2881 0 : "name");
2882 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2883 0 : 1, this->name(), output);
2884 : }
2885 :
2886 : // optional string extendee = 2;
2887 0 : if (has_extendee()) {
2888 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2889 0 : this->extendee().data(), this->extendee().length(),
2890 : ::google::protobuf::internal::WireFormat::SERIALIZE,
2891 0 : "extendee");
2892 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2893 0 : 2, this->extendee(), output);
2894 : }
2895 :
2896 : // optional int32 number = 3;
2897 0 : if (has_number()) {
2898 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->number(), output);
2899 : }
2900 :
2901 : // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
2902 0 : if (has_label()) {
2903 0 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
2904 0 : 4, this->label(), output);
2905 : }
2906 :
2907 : // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
2908 0 : if (has_type()) {
2909 0 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
2910 0 : 5, this->type(), output);
2911 : }
2912 :
2913 : // optional string type_name = 6;
2914 0 : if (has_type_name()) {
2915 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2916 0 : this->type_name().data(), this->type_name().length(),
2917 : ::google::protobuf::internal::WireFormat::SERIALIZE,
2918 0 : "type_name");
2919 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2920 0 : 6, this->type_name(), output);
2921 : }
2922 :
2923 : // optional string default_value = 7;
2924 0 : if (has_default_value()) {
2925 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2926 0 : this->default_value().data(), this->default_value().length(),
2927 : ::google::protobuf::internal::WireFormat::SERIALIZE,
2928 0 : "default_value");
2929 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2930 0 : 7, this->default_value(), output);
2931 : }
2932 :
2933 : // optional .google.protobuf.FieldOptions options = 8;
2934 0 : if (has_options()) {
2935 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2936 0 : 8, this->options(), output);
2937 : }
2938 :
2939 : // optional int32 oneof_index = 9;
2940 0 : if (has_oneof_index()) {
2941 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->oneof_index(), output);
2942 : }
2943 :
2944 0 : if (!unknown_fields().empty()) {
2945 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2946 0 : unknown_fields(), output);
2947 : }
2948 : // @@protoc_insertion_point(serialize_end:google.protobuf.FieldDescriptorProto)
2949 0 : }
2950 :
2951 0 : ::google::protobuf::uint8* FieldDescriptorProto::SerializeWithCachedSizesToArray(
2952 : ::google::protobuf::uint8* target) const {
2953 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldDescriptorProto)
2954 : // optional string name = 1;
2955 0 : if (has_name()) {
2956 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2957 0 : this->name().data(), this->name().length(),
2958 : ::google::protobuf::internal::WireFormat::SERIALIZE,
2959 0 : "name");
2960 : target =
2961 0 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2962 0 : 1, this->name(), target);
2963 : }
2964 :
2965 : // optional string extendee = 2;
2966 0 : if (has_extendee()) {
2967 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2968 0 : this->extendee().data(), this->extendee().length(),
2969 : ::google::protobuf::internal::WireFormat::SERIALIZE,
2970 0 : "extendee");
2971 : target =
2972 0 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2973 0 : 2, this->extendee(), target);
2974 : }
2975 :
2976 : // optional int32 number = 3;
2977 0 : if (has_number()) {
2978 0 : target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->number(), target);
2979 : }
2980 :
2981 : // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
2982 0 : if (has_label()) {
2983 0 : target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2984 0 : 4, this->label(), target);
2985 : }
2986 :
2987 : // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
2988 0 : if (has_type()) {
2989 0 : target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2990 0 : 5, this->type(), target);
2991 : }
2992 :
2993 : // optional string type_name = 6;
2994 0 : if (has_type_name()) {
2995 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2996 0 : this->type_name().data(), this->type_name().length(),
2997 : ::google::protobuf::internal::WireFormat::SERIALIZE,
2998 0 : "type_name");
2999 : target =
3000 0 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3001 0 : 6, this->type_name(), target);
3002 : }
3003 :
3004 : // optional string default_value = 7;
3005 0 : if (has_default_value()) {
3006 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3007 0 : this->default_value().data(), this->default_value().length(),
3008 : ::google::protobuf::internal::WireFormat::SERIALIZE,
3009 0 : "default_value");
3010 : target =
3011 0 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3012 0 : 7, this->default_value(), target);
3013 : }
3014 :
3015 : // optional .google.protobuf.FieldOptions options = 8;
3016 0 : if (has_options()) {
3017 : target = ::google::protobuf::internal::WireFormatLite::
3018 0 : WriteMessageNoVirtualToArray(
3019 0 : 8, this->options(), target);
3020 : }
3021 :
3022 : // optional int32 oneof_index = 9;
3023 0 : if (has_oneof_index()) {
3024 0 : target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->oneof_index(), target);
3025 : }
3026 :
3027 0 : if (!unknown_fields().empty()) {
3028 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3029 0 : unknown_fields(), target);
3030 : }
3031 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldDescriptorProto)
3032 0 : return target;
3033 : }
3034 :
3035 0 : int FieldDescriptorProto::ByteSize() const {
3036 0 : int total_size = 0;
3037 :
3038 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3039 : // optional string name = 1;
3040 0 : if (has_name()) {
3041 0 : total_size += 1 +
3042 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
3043 : this->name());
3044 : }
3045 :
3046 : // optional int32 number = 3;
3047 0 : if (has_number()) {
3048 0 : total_size += 1 +
3049 0 : ::google::protobuf::internal::WireFormatLite::Int32Size(
3050 : this->number());
3051 : }
3052 :
3053 : // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
3054 0 : if (has_label()) {
3055 0 : total_size += 1 +
3056 0 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->label());
3057 : }
3058 :
3059 : // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
3060 0 : if (has_type()) {
3061 0 : total_size += 1 +
3062 0 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
3063 : }
3064 :
3065 : // optional string type_name = 6;
3066 0 : if (has_type_name()) {
3067 0 : total_size += 1 +
3068 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
3069 : this->type_name());
3070 : }
3071 :
3072 : // optional string extendee = 2;
3073 0 : if (has_extendee()) {
3074 0 : total_size += 1 +
3075 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
3076 : this->extendee());
3077 : }
3078 :
3079 : // optional string default_value = 7;
3080 0 : if (has_default_value()) {
3081 0 : total_size += 1 +
3082 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
3083 : this->default_value());
3084 : }
3085 :
3086 : // optional int32 oneof_index = 9;
3087 0 : if (has_oneof_index()) {
3088 0 : total_size += 1 +
3089 0 : ::google::protobuf::internal::WireFormatLite::Int32Size(
3090 : this->oneof_index());
3091 : }
3092 :
3093 : }
3094 0 : if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
3095 : // optional .google.protobuf.FieldOptions options = 8;
3096 0 : if (has_options()) {
3097 0 : total_size += 1 +
3098 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3099 : this->options());
3100 : }
3101 :
3102 : }
3103 0 : if (!unknown_fields().empty()) {
3104 0 : total_size +=
3105 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3106 : unknown_fields());
3107 : }
3108 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3109 0 : _cached_size_ = total_size;
3110 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
3111 0 : return total_size;
3112 : }
3113 :
3114 0 : void FieldDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
3115 0 : GOOGLE_CHECK_NE(&from, this);
3116 : const FieldDescriptorProto* source =
3117 : ::google::protobuf::internal::dynamic_cast_if_available<const FieldDescriptorProto*>(
3118 0 : &from);
3119 0 : if (source == NULL) {
3120 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3121 : } else {
3122 0 : MergeFrom(*source);
3123 : }
3124 0 : }
3125 :
3126 0 : void FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) {
3127 0 : GOOGLE_CHECK_NE(&from, this);
3128 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3129 0 : if (from.has_name()) {
3130 0 : set_name(from.name());
3131 : }
3132 0 : if (from.has_number()) {
3133 0 : set_number(from.number());
3134 : }
3135 0 : if (from.has_label()) {
3136 0 : set_label(from.label());
3137 : }
3138 0 : if (from.has_type()) {
3139 0 : set_type(from.type());
3140 : }
3141 0 : if (from.has_type_name()) {
3142 0 : set_type_name(from.type_name());
3143 : }
3144 0 : if (from.has_extendee()) {
3145 0 : set_extendee(from.extendee());
3146 : }
3147 0 : if (from.has_default_value()) {
3148 0 : set_default_value(from.default_value());
3149 : }
3150 0 : if (from.has_oneof_index()) {
3151 0 : set_oneof_index(from.oneof_index());
3152 : }
3153 : }
3154 0 : if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
3155 0 : if (from.has_options()) {
3156 0 : mutable_options()->::google::protobuf::FieldOptions::MergeFrom(from.options());
3157 : }
3158 : }
3159 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3160 0 : }
3161 :
3162 0 : void FieldDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
3163 0 : if (&from == this) return;
3164 0 : Clear();
3165 0 : MergeFrom(from);
3166 : }
3167 :
3168 0 : void FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) {
3169 0 : if (&from == this) return;
3170 0 : Clear();
3171 0 : MergeFrom(from);
3172 : }
3173 :
3174 354 : bool FieldDescriptorProto::IsInitialized() const {
3175 :
3176 354 : if (has_options()) {
3177 6 : if (!this->options().IsInitialized()) return false;
3178 : }
3179 354 : return true;
3180 : }
3181 :
3182 0 : void FieldDescriptorProto::Swap(FieldDescriptorProto* other) {
3183 0 : if (other != this) {
3184 0 : std::swap(name_, other->name_);
3185 0 : std::swap(number_, other->number_);
3186 0 : std::swap(label_, other->label_);
3187 0 : std::swap(type_, other->type_);
3188 0 : std::swap(type_name_, other->type_name_);
3189 0 : std::swap(extendee_, other->extendee_);
3190 0 : std::swap(default_value_, other->default_value_);
3191 0 : std::swap(oneof_index_, other->oneof_index_);
3192 0 : std::swap(options_, other->options_);
3193 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
3194 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
3195 0 : std::swap(_cached_size_, other->_cached_size_);
3196 : }
3197 0 : }
3198 :
3199 0 : ::google::protobuf::Metadata FieldDescriptorProto::GetMetadata() const {
3200 0 : protobuf_AssignDescriptorsOnce();
3201 : ::google::protobuf::Metadata metadata;
3202 0 : metadata.descriptor = FieldDescriptorProto_descriptor_;
3203 0 : metadata.reflection = FieldDescriptorProto_reflection_;
3204 0 : return metadata;
3205 : }
3206 :
3207 :
3208 : // ===================================================================
3209 :
3210 : #ifndef _MSC_VER
3211 : const int OneofDescriptorProto::kNameFieldNumber;
3212 : #endif // !_MSC_VER
3213 :
3214 24 : OneofDescriptorProto::OneofDescriptorProto()
3215 24 : : ::google::protobuf::Message() {
3216 24 : SharedCtor();
3217 : // @@protoc_insertion_point(constructor:google.protobuf.OneofDescriptorProto)
3218 24 : }
3219 :
3220 3 : void OneofDescriptorProto::InitAsDefaultInstance() {
3221 3 : }
3222 :
3223 0 : OneofDescriptorProto::OneofDescriptorProto(const OneofDescriptorProto& from)
3224 0 : : ::google::protobuf::Message() {
3225 0 : SharedCtor();
3226 0 : MergeFrom(from);
3227 : // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofDescriptorProto)
3228 0 : }
3229 :
3230 24 : void OneofDescriptorProto::SharedCtor() {
3231 24 : ::google::protobuf::internal::GetEmptyString();
3232 24 : _cached_size_ = 0;
3233 24 : name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3234 24 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
3235 24 : }
3236 :
3237 63 : OneofDescriptorProto::~OneofDescriptorProto() {
3238 : // @@protoc_insertion_point(destructor:google.protobuf.OneofDescriptorProto)
3239 21 : SharedDtor();
3240 63 : }
3241 :
3242 21 : void OneofDescriptorProto::SharedDtor() {
3243 21 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3244 21 : delete name_;
3245 : }
3246 21 : if (this != default_instance_) {
3247 : }
3248 21 : }
3249 :
3250 0 : void OneofDescriptorProto::SetCachedSize(int size) const {
3251 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3252 0 : _cached_size_ = size;
3253 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
3254 0 : }
3255 0 : const ::google::protobuf::Descriptor* OneofDescriptorProto::descriptor() {
3256 0 : protobuf_AssignDescriptorsOnce();
3257 0 : return OneofDescriptorProto_descriptor_;
3258 : }
3259 :
3260 0 : const OneofDescriptorProto& OneofDescriptorProto::default_instance() {
3261 0 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
3262 0 : return *default_instance_;
3263 : }
3264 :
3265 : OneofDescriptorProto* OneofDescriptorProto::default_instance_ = NULL;
3266 :
3267 0 : OneofDescriptorProto* OneofDescriptorProto::New() const {
3268 0 : return new OneofDescriptorProto;
3269 : }
3270 :
3271 0 : void OneofDescriptorProto::Clear() {
3272 0 : if (has_name()) {
3273 0 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3274 0 : name_->clear();
3275 : }
3276 : }
3277 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
3278 0 : mutable_unknown_fields()->Clear();
3279 0 : }
3280 :
3281 21 : bool OneofDescriptorProto::MergePartialFromCodedStream(
3282 : ::google::protobuf::io::CodedInputStream* input) {
3283 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
3284 : ::google::protobuf::uint32 tag;
3285 : // @@protoc_insertion_point(parse_start:google.protobuf.OneofDescriptorProto)
3286 : for (;;) {
3287 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
3288 21 : tag = p.first;
3289 21 : if (!p.second) goto handle_unusual;
3290 21 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3291 : // optional string name = 1;
3292 : case 1: {
3293 21 : if (tag == 10) {
3294 21 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3295 : input, this->mutable_name()));
3296 42 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3297 42 : this->name().data(), this->name().length(),
3298 : ::google::protobuf::internal::WireFormat::PARSE,
3299 21 : "name");
3300 : } else {
3301 0 : goto handle_unusual;
3302 : }
3303 42 : if (input->ExpectAtEnd()) goto success;
3304 0 : break;
3305 : }
3306 :
3307 : default: {
3308 : handle_unusual:
3309 0 : if (tag == 0 ||
3310 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3311 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3312 0 : goto success;
3313 : }
3314 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
3315 : input, tag, mutable_unknown_fields()));
3316 0 : break;
3317 : }
3318 : }
3319 0 : }
3320 : success:
3321 : // @@protoc_insertion_point(parse_success:google.protobuf.OneofDescriptorProto)
3322 21 : return true;
3323 : failure:
3324 : // @@protoc_insertion_point(parse_failure:google.protobuf.OneofDescriptorProto)
3325 0 : return false;
3326 : #undef DO_
3327 : }
3328 :
3329 0 : void OneofDescriptorProto::SerializeWithCachedSizes(
3330 : ::google::protobuf::io::CodedOutputStream* output) const {
3331 : // @@protoc_insertion_point(serialize_start:google.protobuf.OneofDescriptorProto)
3332 : // optional string name = 1;
3333 0 : if (has_name()) {
3334 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3335 0 : this->name().data(), this->name().length(),
3336 : ::google::protobuf::internal::WireFormat::SERIALIZE,
3337 0 : "name");
3338 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3339 0 : 1, this->name(), output);
3340 : }
3341 :
3342 0 : if (!unknown_fields().empty()) {
3343 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3344 0 : unknown_fields(), output);
3345 : }
3346 : // @@protoc_insertion_point(serialize_end:google.protobuf.OneofDescriptorProto)
3347 0 : }
3348 :
3349 0 : ::google::protobuf::uint8* OneofDescriptorProto::SerializeWithCachedSizesToArray(
3350 : ::google::protobuf::uint8* target) const {
3351 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofDescriptorProto)
3352 : // optional string name = 1;
3353 0 : if (has_name()) {
3354 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3355 0 : this->name().data(), this->name().length(),
3356 : ::google::protobuf::internal::WireFormat::SERIALIZE,
3357 0 : "name");
3358 : target =
3359 0 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3360 0 : 1, this->name(), target);
3361 : }
3362 :
3363 0 : if (!unknown_fields().empty()) {
3364 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3365 0 : unknown_fields(), target);
3366 : }
3367 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofDescriptorProto)
3368 0 : return target;
3369 : }
3370 :
3371 0 : int OneofDescriptorProto::ByteSize() const {
3372 0 : int total_size = 0;
3373 :
3374 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3375 : // optional string name = 1;
3376 0 : if (has_name()) {
3377 0 : total_size += 1 +
3378 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
3379 : this->name());
3380 : }
3381 :
3382 : }
3383 0 : if (!unknown_fields().empty()) {
3384 0 : total_size +=
3385 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3386 : unknown_fields());
3387 : }
3388 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3389 0 : _cached_size_ = total_size;
3390 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
3391 0 : return total_size;
3392 : }
3393 :
3394 0 : void OneofDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
3395 0 : GOOGLE_CHECK_NE(&from, this);
3396 : const OneofDescriptorProto* source =
3397 : ::google::protobuf::internal::dynamic_cast_if_available<const OneofDescriptorProto*>(
3398 0 : &from);
3399 0 : if (source == NULL) {
3400 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3401 : } else {
3402 0 : MergeFrom(*source);
3403 : }
3404 0 : }
3405 :
3406 0 : void OneofDescriptorProto::MergeFrom(const OneofDescriptorProto& from) {
3407 0 : GOOGLE_CHECK_NE(&from, this);
3408 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3409 0 : if (from.has_name()) {
3410 0 : set_name(from.name());
3411 : }
3412 : }
3413 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3414 0 : }
3415 :
3416 0 : void OneofDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
3417 0 : if (&from == this) return;
3418 0 : Clear();
3419 0 : MergeFrom(from);
3420 : }
3421 :
3422 0 : void OneofDescriptorProto::CopyFrom(const OneofDescriptorProto& from) {
3423 0 : if (&from == this) return;
3424 0 : Clear();
3425 0 : MergeFrom(from);
3426 : }
3427 :
3428 0 : bool OneofDescriptorProto::IsInitialized() const {
3429 :
3430 0 : return true;
3431 : }
3432 :
3433 0 : void OneofDescriptorProto::Swap(OneofDescriptorProto* other) {
3434 0 : if (other != this) {
3435 0 : std::swap(name_, other->name_);
3436 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
3437 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
3438 0 : std::swap(_cached_size_, other->_cached_size_);
3439 : }
3440 0 : }
3441 :
3442 0 : ::google::protobuf::Metadata OneofDescriptorProto::GetMetadata() const {
3443 0 : protobuf_AssignDescriptorsOnce();
3444 : ::google::protobuf::Metadata metadata;
3445 0 : metadata.descriptor = OneofDescriptorProto_descriptor_;
3446 0 : metadata.reflection = OneofDescriptorProto_reflection_;
3447 0 : return metadata;
3448 : }
3449 :
3450 :
3451 : // ===================================================================
3452 :
3453 : #ifndef _MSC_VER
3454 : const int EnumDescriptorProto::kNameFieldNumber;
3455 : const int EnumDescriptorProto::kValueFieldNumber;
3456 : const int EnumDescriptorProto::kOptionsFieldNumber;
3457 : #endif // !_MSC_VER
3458 :
3459 15 : EnumDescriptorProto::EnumDescriptorProto()
3460 15 : : ::google::protobuf::Message() {
3461 15 : SharedCtor();
3462 : // @@protoc_insertion_point(constructor:google.protobuf.EnumDescriptorProto)
3463 15 : }
3464 :
3465 3 : void EnumDescriptorProto::InitAsDefaultInstance() {
3466 3 : options_ = const_cast< ::google::protobuf::EnumOptions*>(&::google::protobuf::EnumOptions::default_instance());
3467 3 : }
3468 :
3469 0 : EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from)
3470 0 : : ::google::protobuf::Message() {
3471 0 : SharedCtor();
3472 0 : MergeFrom(from);
3473 : // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumDescriptorProto)
3474 0 : }
3475 :
3476 15 : void EnumDescriptorProto::SharedCtor() {
3477 15 : ::google::protobuf::internal::GetEmptyString();
3478 15 : _cached_size_ = 0;
3479 15 : name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3480 15 : options_ = NULL;
3481 15 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
3482 15 : }
3483 :
3484 36 : EnumDescriptorProto::~EnumDescriptorProto() {
3485 : // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto)
3486 12 : SharedDtor();
3487 36 : }
3488 :
3489 12 : void EnumDescriptorProto::SharedDtor() {
3490 12 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3491 12 : delete name_;
3492 : }
3493 12 : if (this != default_instance_) {
3494 12 : delete options_;
3495 : }
3496 12 : }
3497 :
3498 0 : void EnumDescriptorProto::SetCachedSize(int size) const {
3499 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3500 0 : _cached_size_ = size;
3501 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
3502 0 : }
3503 0 : const ::google::protobuf::Descriptor* EnumDescriptorProto::descriptor() {
3504 0 : protobuf_AssignDescriptorsOnce();
3505 0 : return EnumDescriptorProto_descriptor_;
3506 : }
3507 :
3508 0 : const EnumDescriptorProto& EnumDescriptorProto::default_instance() {
3509 0 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
3510 0 : return *default_instance_;
3511 : }
3512 :
3513 : EnumDescriptorProto* EnumDescriptorProto::default_instance_ = NULL;
3514 :
3515 0 : EnumDescriptorProto* EnumDescriptorProto::New() const {
3516 0 : return new EnumDescriptorProto;
3517 : }
3518 :
3519 0 : void EnumDescriptorProto::Clear() {
3520 0 : if (_has_bits_[0 / 32] & 5) {
3521 0 : if (has_name()) {
3522 0 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3523 0 : name_->clear();
3524 : }
3525 : }
3526 0 : if (has_options()) {
3527 0 : if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear();
3528 : }
3529 : }
3530 0 : value_.Clear();
3531 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
3532 0 : mutable_unknown_fields()->Clear();
3533 0 : }
3534 :
3535 24 : bool EnumDescriptorProto::MergePartialFromCodedStream(
3536 : ::google::protobuf::io::CodedInputStream* input) {
3537 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
3538 : ::google::protobuf::uint32 tag;
3539 : // @@protoc_insertion_point(parse_start:google.protobuf.EnumDescriptorProto)
3540 : for (;;) {
3541 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
3542 24 : tag = p.first;
3543 24 : if (!p.second) goto handle_unusual;
3544 12 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3545 : // optional string name = 1;
3546 : case 1: {
3547 12 : if (tag == 10) {
3548 12 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3549 : input, this->mutable_name()));
3550 24 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3551 24 : this->name().data(), this->name().length(),
3552 : ::google::protobuf::internal::WireFormat::PARSE,
3553 12 : "name");
3554 : } else {
3555 0 : goto handle_unusual;
3556 : }
3557 12 : if (input->ExpectTag(18)) goto parse_value;
3558 0 : break;
3559 : }
3560 :
3561 : // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
3562 : case 2: {
3563 0 : if (tag == 18) {
3564 : parse_value:
3565 81 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3566 : input, add_value()));
3567 : } else {
3568 0 : goto handle_unusual;
3569 : }
3570 81 : if (input->ExpectTag(18)) goto parse_value;
3571 12 : if (input->ExpectTag(26)) goto parse_options;
3572 12 : break;
3573 : }
3574 :
3575 : // optional .google.protobuf.EnumOptions options = 3;
3576 : case 3: {
3577 0 : if (tag == 26) {
3578 : parse_options:
3579 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3580 : input, mutable_options()));
3581 : } else {
3582 0 : goto handle_unusual;
3583 : }
3584 12 : if (input->ExpectAtEnd()) goto success;
3585 0 : break;
3586 : }
3587 :
3588 : default: {
3589 : handle_unusual:
3590 12 : if (tag == 0 ||
3591 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3592 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3593 12 : goto success;
3594 : }
3595 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
3596 : input, tag, mutable_unknown_fields()));
3597 0 : break;
3598 : }
3599 : }
3600 12 : }
3601 : success:
3602 : // @@protoc_insertion_point(parse_success:google.protobuf.EnumDescriptorProto)
3603 12 : return true;
3604 : failure:
3605 : // @@protoc_insertion_point(parse_failure:google.protobuf.EnumDescriptorProto)
3606 0 : return false;
3607 : #undef DO_
3608 : }
3609 :
3610 0 : void EnumDescriptorProto::SerializeWithCachedSizes(
3611 : ::google::protobuf::io::CodedOutputStream* output) const {
3612 : // @@protoc_insertion_point(serialize_start:google.protobuf.EnumDescriptorProto)
3613 : // optional string name = 1;
3614 0 : if (has_name()) {
3615 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3616 0 : this->name().data(), this->name().length(),
3617 : ::google::protobuf::internal::WireFormat::SERIALIZE,
3618 0 : "name");
3619 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3620 0 : 1, this->name(), output);
3621 : }
3622 :
3623 : // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
3624 0 : for (int i = 0; i < this->value_size(); i++) {
3625 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3626 0 : 2, this->value(i), output);
3627 : }
3628 :
3629 : // optional .google.protobuf.EnumOptions options = 3;
3630 0 : if (has_options()) {
3631 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3632 0 : 3, this->options(), output);
3633 : }
3634 :
3635 0 : if (!unknown_fields().empty()) {
3636 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3637 0 : unknown_fields(), output);
3638 : }
3639 : // @@protoc_insertion_point(serialize_end:google.protobuf.EnumDescriptorProto)
3640 0 : }
3641 :
3642 0 : ::google::protobuf::uint8* EnumDescriptorProto::SerializeWithCachedSizesToArray(
3643 : ::google::protobuf::uint8* target) const {
3644 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescriptorProto)
3645 : // optional string name = 1;
3646 0 : if (has_name()) {
3647 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3648 0 : this->name().data(), this->name().length(),
3649 : ::google::protobuf::internal::WireFormat::SERIALIZE,
3650 0 : "name");
3651 : target =
3652 0 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3653 0 : 1, this->name(), target);
3654 : }
3655 :
3656 : // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
3657 0 : for (int i = 0; i < this->value_size(); i++) {
3658 : target = ::google::protobuf::internal::WireFormatLite::
3659 0 : WriteMessageNoVirtualToArray(
3660 0 : 2, this->value(i), target);
3661 : }
3662 :
3663 : // optional .google.protobuf.EnumOptions options = 3;
3664 0 : if (has_options()) {
3665 : target = ::google::protobuf::internal::WireFormatLite::
3666 0 : WriteMessageNoVirtualToArray(
3667 0 : 3, this->options(), target);
3668 : }
3669 :
3670 0 : if (!unknown_fields().empty()) {
3671 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3672 0 : unknown_fields(), target);
3673 : }
3674 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumDescriptorProto)
3675 0 : return target;
3676 : }
3677 :
3678 0 : int EnumDescriptorProto::ByteSize() const {
3679 0 : int total_size = 0;
3680 :
3681 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3682 : // optional string name = 1;
3683 0 : if (has_name()) {
3684 0 : total_size += 1 +
3685 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
3686 : this->name());
3687 : }
3688 :
3689 : // optional .google.protobuf.EnumOptions options = 3;
3690 0 : if (has_options()) {
3691 0 : total_size += 1 +
3692 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3693 : this->options());
3694 : }
3695 :
3696 : }
3697 : // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
3698 0 : total_size += 1 * this->value_size();
3699 0 : for (int i = 0; i < this->value_size(); i++) {
3700 0 : total_size +=
3701 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3702 : this->value(i));
3703 : }
3704 :
3705 0 : if (!unknown_fields().empty()) {
3706 0 : total_size +=
3707 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3708 : unknown_fields());
3709 : }
3710 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3711 0 : _cached_size_ = total_size;
3712 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
3713 0 : return total_size;
3714 : }
3715 :
3716 0 : void EnumDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
3717 0 : GOOGLE_CHECK_NE(&from, this);
3718 : const EnumDescriptorProto* source =
3719 : ::google::protobuf::internal::dynamic_cast_if_available<const EnumDescriptorProto*>(
3720 0 : &from);
3721 0 : if (source == NULL) {
3722 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3723 : } else {
3724 0 : MergeFrom(*source);
3725 : }
3726 0 : }
3727 :
3728 0 : void EnumDescriptorProto::MergeFrom(const EnumDescriptorProto& from) {
3729 0 : GOOGLE_CHECK_NE(&from, this);
3730 0 : value_.MergeFrom(from.value_);
3731 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3732 0 : if (from.has_name()) {
3733 0 : set_name(from.name());
3734 : }
3735 0 : if (from.has_options()) {
3736 0 : mutable_options()->::google::protobuf::EnumOptions::MergeFrom(from.options());
3737 : }
3738 : }
3739 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3740 0 : }
3741 :
3742 0 : void EnumDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
3743 0 : if (&from == this) return;
3744 0 : Clear();
3745 0 : MergeFrom(from);
3746 : }
3747 :
3748 0 : void EnumDescriptorProto::CopyFrom(const EnumDescriptorProto& from) {
3749 0 : if (&from == this) return;
3750 0 : Clear();
3751 0 : MergeFrom(from);
3752 : }
3753 :
3754 12 : bool EnumDescriptorProto::IsInitialized() const {
3755 :
3756 12 : if (!::google::protobuf::internal::AllAreInitialized(this->value())) return false;
3757 12 : if (has_options()) {
3758 0 : if (!this->options().IsInitialized()) return false;
3759 : }
3760 12 : return true;
3761 : }
3762 :
3763 0 : void EnumDescriptorProto::Swap(EnumDescriptorProto* other) {
3764 0 : if (other != this) {
3765 0 : std::swap(name_, other->name_);
3766 0 : value_.Swap(&other->value_);
3767 0 : std::swap(options_, other->options_);
3768 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
3769 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
3770 0 : std::swap(_cached_size_, other->_cached_size_);
3771 : }
3772 0 : }
3773 :
3774 0 : ::google::protobuf::Metadata EnumDescriptorProto::GetMetadata() const {
3775 0 : protobuf_AssignDescriptorsOnce();
3776 : ::google::protobuf::Metadata metadata;
3777 0 : metadata.descriptor = EnumDescriptorProto_descriptor_;
3778 0 : metadata.reflection = EnumDescriptorProto_reflection_;
3779 0 : return metadata;
3780 : }
3781 :
3782 :
3783 : // ===================================================================
3784 :
3785 : #ifndef _MSC_VER
3786 : const int EnumValueDescriptorProto::kNameFieldNumber;
3787 : const int EnumValueDescriptorProto::kNumberFieldNumber;
3788 : const int EnumValueDescriptorProto::kOptionsFieldNumber;
3789 : #endif // !_MSC_VER
3790 :
3791 84 : EnumValueDescriptorProto::EnumValueDescriptorProto()
3792 84 : : ::google::protobuf::Message() {
3793 84 : SharedCtor();
3794 : // @@protoc_insertion_point(constructor:google.protobuf.EnumValueDescriptorProto)
3795 84 : }
3796 :
3797 3 : void EnumValueDescriptorProto::InitAsDefaultInstance() {
3798 3 : options_ = const_cast< ::google::protobuf::EnumValueOptions*>(&::google::protobuf::EnumValueOptions::default_instance());
3799 3 : }
3800 :
3801 0 : EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProto& from)
3802 0 : : ::google::protobuf::Message() {
3803 0 : SharedCtor();
3804 0 : MergeFrom(from);
3805 : // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueDescriptorProto)
3806 0 : }
3807 :
3808 84 : void EnumValueDescriptorProto::SharedCtor() {
3809 84 : ::google::protobuf::internal::GetEmptyString();
3810 84 : _cached_size_ = 0;
3811 84 : name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3812 84 : number_ = 0;
3813 84 : options_ = NULL;
3814 84 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
3815 84 : }
3816 :
3817 243 : EnumValueDescriptorProto::~EnumValueDescriptorProto() {
3818 : // @@protoc_insertion_point(destructor:google.protobuf.EnumValueDescriptorProto)
3819 81 : SharedDtor();
3820 243 : }
3821 :
3822 81 : void EnumValueDescriptorProto::SharedDtor() {
3823 81 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3824 81 : delete name_;
3825 : }
3826 81 : if (this != default_instance_) {
3827 81 : delete options_;
3828 : }
3829 81 : }
3830 :
3831 0 : void EnumValueDescriptorProto::SetCachedSize(int size) const {
3832 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3833 0 : _cached_size_ = size;
3834 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
3835 0 : }
3836 0 : const ::google::protobuf::Descriptor* EnumValueDescriptorProto::descriptor() {
3837 0 : protobuf_AssignDescriptorsOnce();
3838 0 : return EnumValueDescriptorProto_descriptor_;
3839 : }
3840 :
3841 0 : const EnumValueDescriptorProto& EnumValueDescriptorProto::default_instance() {
3842 0 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
3843 0 : return *default_instance_;
3844 : }
3845 :
3846 : EnumValueDescriptorProto* EnumValueDescriptorProto::default_instance_ = NULL;
3847 :
3848 0 : EnumValueDescriptorProto* EnumValueDescriptorProto::New() const {
3849 0 : return new EnumValueDescriptorProto;
3850 : }
3851 :
3852 0 : void EnumValueDescriptorProto::Clear() {
3853 0 : if (_has_bits_[0 / 32] & 7) {
3854 0 : if (has_name()) {
3855 0 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3856 0 : name_->clear();
3857 : }
3858 : }
3859 0 : number_ = 0;
3860 0 : if (has_options()) {
3861 0 : if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear();
3862 : }
3863 : }
3864 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
3865 0 : mutable_unknown_fields()->Clear();
3866 0 : }
3867 :
3868 162 : bool EnumValueDescriptorProto::MergePartialFromCodedStream(
3869 : ::google::protobuf::io::CodedInputStream* input) {
3870 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
3871 : ::google::protobuf::uint32 tag;
3872 : // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueDescriptorProto)
3873 : for (;;) {
3874 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
3875 162 : tag = p.first;
3876 162 : if (!p.second) goto handle_unusual;
3877 81 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3878 : // optional string name = 1;
3879 : case 1: {
3880 81 : if (tag == 10) {
3881 81 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3882 : input, this->mutable_name()));
3883 162 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3884 162 : this->name().data(), this->name().length(),
3885 : ::google::protobuf::internal::WireFormat::PARSE,
3886 81 : "name");
3887 : } else {
3888 0 : goto handle_unusual;
3889 : }
3890 81 : if (input->ExpectTag(16)) goto parse_number;
3891 0 : break;
3892 : }
3893 :
3894 : // optional int32 number = 2;
3895 : case 2: {
3896 0 : if (tag == 16) {
3897 : parse_number:
3898 162 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3899 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3900 : input, &number_)));
3901 81 : set_has_number();
3902 : } else {
3903 0 : goto handle_unusual;
3904 : }
3905 81 : if (input->ExpectTag(26)) goto parse_options;
3906 81 : break;
3907 : }
3908 :
3909 : // optional .google.protobuf.EnumValueOptions options = 3;
3910 : case 3: {
3911 0 : if (tag == 26) {
3912 : parse_options:
3913 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3914 : input, mutable_options()));
3915 : } else {
3916 0 : goto handle_unusual;
3917 : }
3918 81 : if (input->ExpectAtEnd()) goto success;
3919 0 : break;
3920 : }
3921 :
3922 : default: {
3923 : handle_unusual:
3924 81 : if (tag == 0 ||
3925 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3926 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3927 81 : goto success;
3928 : }
3929 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
3930 : input, tag, mutable_unknown_fields()));
3931 0 : break;
3932 : }
3933 : }
3934 81 : }
3935 : success:
3936 : // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueDescriptorProto)
3937 81 : return true;
3938 : failure:
3939 : // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueDescriptorProto)
3940 0 : return false;
3941 : #undef DO_
3942 : }
3943 :
3944 0 : void EnumValueDescriptorProto::SerializeWithCachedSizes(
3945 : ::google::protobuf::io::CodedOutputStream* output) const {
3946 : // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueDescriptorProto)
3947 : // optional string name = 1;
3948 0 : if (has_name()) {
3949 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3950 0 : this->name().data(), this->name().length(),
3951 : ::google::protobuf::internal::WireFormat::SERIALIZE,
3952 0 : "name");
3953 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3954 0 : 1, this->name(), output);
3955 : }
3956 :
3957 : // optional int32 number = 2;
3958 0 : if (has_number()) {
3959 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->number(), output);
3960 : }
3961 :
3962 : // optional .google.protobuf.EnumValueOptions options = 3;
3963 0 : if (has_options()) {
3964 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3965 0 : 3, this->options(), output);
3966 : }
3967 :
3968 0 : if (!unknown_fields().empty()) {
3969 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3970 0 : unknown_fields(), output);
3971 : }
3972 : // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueDescriptorProto)
3973 0 : }
3974 :
3975 0 : ::google::protobuf::uint8* EnumValueDescriptorProto::SerializeWithCachedSizesToArray(
3976 : ::google::protobuf::uint8* target) const {
3977 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueDescriptorProto)
3978 : // optional string name = 1;
3979 0 : if (has_name()) {
3980 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3981 0 : this->name().data(), this->name().length(),
3982 : ::google::protobuf::internal::WireFormat::SERIALIZE,
3983 0 : "name");
3984 : target =
3985 0 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3986 0 : 1, this->name(), target);
3987 : }
3988 :
3989 : // optional int32 number = 2;
3990 0 : if (has_number()) {
3991 0 : target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->number(), target);
3992 : }
3993 :
3994 : // optional .google.protobuf.EnumValueOptions options = 3;
3995 0 : if (has_options()) {
3996 : target = ::google::protobuf::internal::WireFormatLite::
3997 0 : WriteMessageNoVirtualToArray(
3998 0 : 3, this->options(), target);
3999 : }
4000 :
4001 0 : if (!unknown_fields().empty()) {
4002 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4003 0 : unknown_fields(), target);
4004 : }
4005 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueDescriptorProto)
4006 0 : return target;
4007 : }
4008 :
4009 0 : int EnumValueDescriptorProto::ByteSize() const {
4010 0 : int total_size = 0;
4011 :
4012 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4013 : // optional string name = 1;
4014 0 : if (has_name()) {
4015 0 : total_size += 1 +
4016 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
4017 : this->name());
4018 : }
4019 :
4020 : // optional int32 number = 2;
4021 0 : if (has_number()) {
4022 0 : total_size += 1 +
4023 0 : ::google::protobuf::internal::WireFormatLite::Int32Size(
4024 : this->number());
4025 : }
4026 :
4027 : // optional .google.protobuf.EnumValueOptions options = 3;
4028 0 : if (has_options()) {
4029 0 : total_size += 1 +
4030 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4031 : this->options());
4032 : }
4033 :
4034 : }
4035 0 : if (!unknown_fields().empty()) {
4036 0 : total_size +=
4037 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4038 : unknown_fields());
4039 : }
4040 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4041 0 : _cached_size_ = total_size;
4042 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
4043 0 : return total_size;
4044 : }
4045 :
4046 0 : void EnumValueDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
4047 0 : GOOGLE_CHECK_NE(&from, this);
4048 : const EnumValueDescriptorProto* source =
4049 : ::google::protobuf::internal::dynamic_cast_if_available<const EnumValueDescriptorProto*>(
4050 0 : &from);
4051 0 : if (source == NULL) {
4052 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4053 : } else {
4054 0 : MergeFrom(*source);
4055 : }
4056 0 : }
4057 :
4058 0 : void EnumValueDescriptorProto::MergeFrom(const EnumValueDescriptorProto& from) {
4059 0 : GOOGLE_CHECK_NE(&from, this);
4060 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4061 0 : if (from.has_name()) {
4062 0 : set_name(from.name());
4063 : }
4064 0 : if (from.has_number()) {
4065 0 : set_number(from.number());
4066 : }
4067 0 : if (from.has_options()) {
4068 0 : mutable_options()->::google::protobuf::EnumValueOptions::MergeFrom(from.options());
4069 : }
4070 : }
4071 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4072 0 : }
4073 :
4074 0 : void EnumValueDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
4075 0 : if (&from == this) return;
4076 0 : Clear();
4077 0 : MergeFrom(from);
4078 : }
4079 :
4080 0 : void EnumValueDescriptorProto::CopyFrom(const EnumValueDescriptorProto& from) {
4081 0 : if (&from == this) return;
4082 0 : Clear();
4083 0 : MergeFrom(from);
4084 : }
4085 :
4086 81 : bool EnumValueDescriptorProto::IsInitialized() const {
4087 :
4088 81 : if (has_options()) {
4089 0 : if (!this->options().IsInitialized()) return false;
4090 : }
4091 81 : return true;
4092 : }
4093 :
4094 0 : void EnumValueDescriptorProto::Swap(EnumValueDescriptorProto* other) {
4095 0 : if (other != this) {
4096 0 : std::swap(name_, other->name_);
4097 0 : std::swap(number_, other->number_);
4098 0 : std::swap(options_, other->options_);
4099 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
4100 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
4101 0 : std::swap(_cached_size_, other->_cached_size_);
4102 : }
4103 0 : }
4104 :
4105 0 : ::google::protobuf::Metadata EnumValueDescriptorProto::GetMetadata() const {
4106 0 : protobuf_AssignDescriptorsOnce();
4107 : ::google::protobuf::Metadata metadata;
4108 0 : metadata.descriptor = EnumValueDescriptorProto_descriptor_;
4109 0 : metadata.reflection = EnumValueDescriptorProto_reflection_;
4110 0 : return metadata;
4111 : }
4112 :
4113 :
4114 : // ===================================================================
4115 :
4116 : #ifndef _MSC_VER
4117 : const int ServiceDescriptorProto::kNameFieldNumber;
4118 : const int ServiceDescriptorProto::kMethodFieldNumber;
4119 : const int ServiceDescriptorProto::kOptionsFieldNumber;
4120 : #endif // !_MSC_VER
4121 :
4122 3 : ServiceDescriptorProto::ServiceDescriptorProto()
4123 3 : : ::google::protobuf::Message() {
4124 3 : SharedCtor();
4125 : // @@protoc_insertion_point(constructor:google.protobuf.ServiceDescriptorProto)
4126 3 : }
4127 :
4128 3 : void ServiceDescriptorProto::InitAsDefaultInstance() {
4129 3 : options_ = const_cast< ::google::protobuf::ServiceOptions*>(&::google::protobuf::ServiceOptions::default_instance());
4130 3 : }
4131 :
4132 0 : ServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& from)
4133 0 : : ::google::protobuf::Message() {
4134 0 : SharedCtor();
4135 0 : MergeFrom(from);
4136 : // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceDescriptorProto)
4137 0 : }
4138 :
4139 3 : void ServiceDescriptorProto::SharedCtor() {
4140 3 : ::google::protobuf::internal::GetEmptyString();
4141 3 : _cached_size_ = 0;
4142 3 : name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4143 3 : options_ = NULL;
4144 3 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
4145 3 : }
4146 :
4147 0 : ServiceDescriptorProto::~ServiceDescriptorProto() {
4148 : // @@protoc_insertion_point(destructor:google.protobuf.ServiceDescriptorProto)
4149 0 : SharedDtor();
4150 0 : }
4151 :
4152 0 : void ServiceDescriptorProto::SharedDtor() {
4153 0 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4154 0 : delete name_;
4155 : }
4156 0 : if (this != default_instance_) {
4157 0 : delete options_;
4158 : }
4159 0 : }
4160 :
4161 0 : void ServiceDescriptorProto::SetCachedSize(int size) const {
4162 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4163 0 : _cached_size_ = size;
4164 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
4165 0 : }
4166 0 : const ::google::protobuf::Descriptor* ServiceDescriptorProto::descriptor() {
4167 0 : protobuf_AssignDescriptorsOnce();
4168 0 : return ServiceDescriptorProto_descriptor_;
4169 : }
4170 :
4171 0 : const ServiceDescriptorProto& ServiceDescriptorProto::default_instance() {
4172 0 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
4173 0 : return *default_instance_;
4174 : }
4175 :
4176 : ServiceDescriptorProto* ServiceDescriptorProto::default_instance_ = NULL;
4177 :
4178 0 : ServiceDescriptorProto* ServiceDescriptorProto::New() const {
4179 0 : return new ServiceDescriptorProto;
4180 : }
4181 :
4182 0 : void ServiceDescriptorProto::Clear() {
4183 0 : if (_has_bits_[0 / 32] & 5) {
4184 0 : if (has_name()) {
4185 0 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4186 0 : name_->clear();
4187 : }
4188 : }
4189 0 : if (has_options()) {
4190 0 : if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear();
4191 : }
4192 : }
4193 0 : method_.Clear();
4194 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
4195 0 : mutable_unknown_fields()->Clear();
4196 0 : }
4197 :
4198 0 : bool ServiceDescriptorProto::MergePartialFromCodedStream(
4199 : ::google::protobuf::io::CodedInputStream* input) {
4200 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
4201 : ::google::protobuf::uint32 tag;
4202 : // @@protoc_insertion_point(parse_start:google.protobuf.ServiceDescriptorProto)
4203 : for (;;) {
4204 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
4205 0 : tag = p.first;
4206 0 : if (!p.second) goto handle_unusual;
4207 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4208 : // optional string name = 1;
4209 : case 1: {
4210 0 : if (tag == 10) {
4211 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4212 : input, this->mutable_name()));
4213 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4214 0 : this->name().data(), this->name().length(),
4215 : ::google::protobuf::internal::WireFormat::PARSE,
4216 0 : "name");
4217 : } else {
4218 0 : goto handle_unusual;
4219 : }
4220 0 : if (input->ExpectTag(18)) goto parse_method;
4221 0 : break;
4222 : }
4223 :
4224 : // repeated .google.protobuf.MethodDescriptorProto method = 2;
4225 : case 2: {
4226 0 : if (tag == 18) {
4227 : parse_method:
4228 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4229 : input, add_method()));
4230 : } else {
4231 0 : goto handle_unusual;
4232 : }
4233 0 : if (input->ExpectTag(18)) goto parse_method;
4234 0 : if (input->ExpectTag(26)) goto parse_options;
4235 0 : break;
4236 : }
4237 :
4238 : // optional .google.protobuf.ServiceOptions options = 3;
4239 : case 3: {
4240 0 : if (tag == 26) {
4241 : parse_options:
4242 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4243 : input, mutable_options()));
4244 : } else {
4245 0 : goto handle_unusual;
4246 : }
4247 0 : if (input->ExpectAtEnd()) goto success;
4248 0 : break;
4249 : }
4250 :
4251 : default: {
4252 : handle_unusual:
4253 0 : if (tag == 0 ||
4254 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4255 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4256 0 : goto success;
4257 : }
4258 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
4259 : input, tag, mutable_unknown_fields()));
4260 0 : break;
4261 : }
4262 : }
4263 0 : }
4264 : success:
4265 : // @@protoc_insertion_point(parse_success:google.protobuf.ServiceDescriptorProto)
4266 0 : return true;
4267 : failure:
4268 : // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceDescriptorProto)
4269 0 : return false;
4270 : #undef DO_
4271 : }
4272 :
4273 0 : void ServiceDescriptorProto::SerializeWithCachedSizes(
4274 : ::google::protobuf::io::CodedOutputStream* output) const {
4275 : // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceDescriptorProto)
4276 : // optional string name = 1;
4277 0 : if (has_name()) {
4278 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4279 0 : this->name().data(), this->name().length(),
4280 : ::google::protobuf::internal::WireFormat::SERIALIZE,
4281 0 : "name");
4282 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4283 0 : 1, this->name(), output);
4284 : }
4285 :
4286 : // repeated .google.protobuf.MethodDescriptorProto method = 2;
4287 0 : for (int i = 0; i < this->method_size(); i++) {
4288 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4289 0 : 2, this->method(i), output);
4290 : }
4291 :
4292 : // optional .google.protobuf.ServiceOptions options = 3;
4293 0 : if (has_options()) {
4294 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4295 0 : 3, this->options(), output);
4296 : }
4297 :
4298 0 : if (!unknown_fields().empty()) {
4299 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4300 0 : unknown_fields(), output);
4301 : }
4302 : // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceDescriptorProto)
4303 0 : }
4304 :
4305 0 : ::google::protobuf::uint8* ServiceDescriptorProto::SerializeWithCachedSizesToArray(
4306 : ::google::protobuf::uint8* target) const {
4307 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceDescriptorProto)
4308 : // optional string name = 1;
4309 0 : if (has_name()) {
4310 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4311 0 : this->name().data(), this->name().length(),
4312 : ::google::protobuf::internal::WireFormat::SERIALIZE,
4313 0 : "name");
4314 : target =
4315 0 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4316 0 : 1, this->name(), target);
4317 : }
4318 :
4319 : // repeated .google.protobuf.MethodDescriptorProto method = 2;
4320 0 : for (int i = 0; i < this->method_size(); i++) {
4321 : target = ::google::protobuf::internal::WireFormatLite::
4322 0 : WriteMessageNoVirtualToArray(
4323 0 : 2, this->method(i), target);
4324 : }
4325 :
4326 : // optional .google.protobuf.ServiceOptions options = 3;
4327 0 : if (has_options()) {
4328 : target = ::google::protobuf::internal::WireFormatLite::
4329 0 : WriteMessageNoVirtualToArray(
4330 0 : 3, this->options(), target);
4331 : }
4332 :
4333 0 : if (!unknown_fields().empty()) {
4334 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4335 0 : unknown_fields(), target);
4336 : }
4337 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceDescriptorProto)
4338 0 : return target;
4339 : }
4340 :
4341 0 : int ServiceDescriptorProto::ByteSize() const {
4342 0 : int total_size = 0;
4343 :
4344 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4345 : // optional string name = 1;
4346 0 : if (has_name()) {
4347 0 : total_size += 1 +
4348 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
4349 : this->name());
4350 : }
4351 :
4352 : // optional .google.protobuf.ServiceOptions options = 3;
4353 0 : if (has_options()) {
4354 0 : total_size += 1 +
4355 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4356 : this->options());
4357 : }
4358 :
4359 : }
4360 : // repeated .google.protobuf.MethodDescriptorProto method = 2;
4361 0 : total_size += 1 * this->method_size();
4362 0 : for (int i = 0; i < this->method_size(); i++) {
4363 0 : total_size +=
4364 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4365 : this->method(i));
4366 : }
4367 :
4368 0 : if (!unknown_fields().empty()) {
4369 0 : total_size +=
4370 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4371 : unknown_fields());
4372 : }
4373 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4374 0 : _cached_size_ = total_size;
4375 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
4376 0 : return total_size;
4377 : }
4378 :
4379 0 : void ServiceDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
4380 0 : GOOGLE_CHECK_NE(&from, this);
4381 : const ServiceDescriptorProto* source =
4382 : ::google::protobuf::internal::dynamic_cast_if_available<const ServiceDescriptorProto*>(
4383 0 : &from);
4384 0 : if (source == NULL) {
4385 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4386 : } else {
4387 0 : MergeFrom(*source);
4388 : }
4389 0 : }
4390 :
4391 0 : void ServiceDescriptorProto::MergeFrom(const ServiceDescriptorProto& from) {
4392 0 : GOOGLE_CHECK_NE(&from, this);
4393 0 : method_.MergeFrom(from.method_);
4394 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4395 0 : if (from.has_name()) {
4396 0 : set_name(from.name());
4397 : }
4398 0 : if (from.has_options()) {
4399 0 : mutable_options()->::google::protobuf::ServiceOptions::MergeFrom(from.options());
4400 : }
4401 : }
4402 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4403 0 : }
4404 :
4405 0 : void ServiceDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
4406 0 : if (&from == this) return;
4407 0 : Clear();
4408 0 : MergeFrom(from);
4409 : }
4410 :
4411 0 : void ServiceDescriptorProto::CopyFrom(const ServiceDescriptorProto& from) {
4412 0 : if (&from == this) return;
4413 0 : Clear();
4414 0 : MergeFrom(from);
4415 : }
4416 :
4417 0 : bool ServiceDescriptorProto::IsInitialized() const {
4418 :
4419 0 : if (!::google::protobuf::internal::AllAreInitialized(this->method())) return false;
4420 0 : if (has_options()) {
4421 0 : if (!this->options().IsInitialized()) return false;
4422 : }
4423 0 : return true;
4424 : }
4425 :
4426 0 : void ServiceDescriptorProto::Swap(ServiceDescriptorProto* other) {
4427 0 : if (other != this) {
4428 0 : std::swap(name_, other->name_);
4429 0 : method_.Swap(&other->method_);
4430 0 : std::swap(options_, other->options_);
4431 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
4432 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
4433 0 : std::swap(_cached_size_, other->_cached_size_);
4434 : }
4435 0 : }
4436 :
4437 0 : ::google::protobuf::Metadata ServiceDescriptorProto::GetMetadata() const {
4438 0 : protobuf_AssignDescriptorsOnce();
4439 : ::google::protobuf::Metadata metadata;
4440 0 : metadata.descriptor = ServiceDescriptorProto_descriptor_;
4441 0 : metadata.reflection = ServiceDescriptorProto_reflection_;
4442 0 : return metadata;
4443 : }
4444 :
4445 :
4446 : // ===================================================================
4447 :
4448 : #ifndef _MSC_VER
4449 : const int MethodDescriptorProto::kNameFieldNumber;
4450 : const int MethodDescriptorProto::kInputTypeFieldNumber;
4451 : const int MethodDescriptorProto::kOutputTypeFieldNumber;
4452 : const int MethodDescriptorProto::kOptionsFieldNumber;
4453 : #endif // !_MSC_VER
4454 :
4455 3 : MethodDescriptorProto::MethodDescriptorProto()
4456 3 : : ::google::protobuf::Message() {
4457 3 : SharedCtor();
4458 : // @@protoc_insertion_point(constructor:google.protobuf.MethodDescriptorProto)
4459 3 : }
4460 :
4461 3 : void MethodDescriptorProto::InitAsDefaultInstance() {
4462 3 : options_ = const_cast< ::google::protobuf::MethodOptions*>(&::google::protobuf::MethodOptions::default_instance());
4463 3 : }
4464 :
4465 0 : MethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from)
4466 0 : : ::google::protobuf::Message() {
4467 0 : SharedCtor();
4468 0 : MergeFrom(from);
4469 : // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodDescriptorProto)
4470 0 : }
4471 :
4472 3 : void MethodDescriptorProto::SharedCtor() {
4473 3 : ::google::protobuf::internal::GetEmptyString();
4474 3 : _cached_size_ = 0;
4475 3 : name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4476 3 : input_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4477 3 : output_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4478 3 : options_ = NULL;
4479 3 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
4480 3 : }
4481 :
4482 0 : MethodDescriptorProto::~MethodDescriptorProto() {
4483 : // @@protoc_insertion_point(destructor:google.protobuf.MethodDescriptorProto)
4484 0 : SharedDtor();
4485 0 : }
4486 :
4487 0 : void MethodDescriptorProto::SharedDtor() {
4488 0 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4489 0 : delete name_;
4490 : }
4491 0 : if (input_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4492 0 : delete input_type_;
4493 : }
4494 0 : if (output_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4495 0 : delete output_type_;
4496 : }
4497 0 : if (this != default_instance_) {
4498 0 : delete options_;
4499 : }
4500 0 : }
4501 :
4502 0 : void MethodDescriptorProto::SetCachedSize(int size) const {
4503 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4504 0 : _cached_size_ = size;
4505 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
4506 0 : }
4507 0 : const ::google::protobuf::Descriptor* MethodDescriptorProto::descriptor() {
4508 0 : protobuf_AssignDescriptorsOnce();
4509 0 : return MethodDescriptorProto_descriptor_;
4510 : }
4511 :
4512 0 : const MethodDescriptorProto& MethodDescriptorProto::default_instance() {
4513 0 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
4514 0 : return *default_instance_;
4515 : }
4516 :
4517 : MethodDescriptorProto* MethodDescriptorProto::default_instance_ = NULL;
4518 :
4519 0 : MethodDescriptorProto* MethodDescriptorProto::New() const {
4520 0 : return new MethodDescriptorProto;
4521 : }
4522 :
4523 0 : void MethodDescriptorProto::Clear() {
4524 0 : if (_has_bits_[0 / 32] & 15) {
4525 0 : if (has_name()) {
4526 0 : if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4527 0 : name_->clear();
4528 : }
4529 : }
4530 0 : if (has_input_type()) {
4531 0 : if (input_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4532 0 : input_type_->clear();
4533 : }
4534 : }
4535 0 : if (has_output_type()) {
4536 0 : if (output_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4537 0 : output_type_->clear();
4538 : }
4539 : }
4540 0 : if (has_options()) {
4541 0 : if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear();
4542 : }
4543 : }
4544 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
4545 0 : mutable_unknown_fields()->Clear();
4546 0 : }
4547 :
4548 0 : bool MethodDescriptorProto::MergePartialFromCodedStream(
4549 : ::google::protobuf::io::CodedInputStream* input) {
4550 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
4551 : ::google::protobuf::uint32 tag;
4552 : // @@protoc_insertion_point(parse_start:google.protobuf.MethodDescriptorProto)
4553 : for (;;) {
4554 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
4555 0 : tag = p.first;
4556 0 : if (!p.second) goto handle_unusual;
4557 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4558 : // optional string name = 1;
4559 : case 1: {
4560 0 : if (tag == 10) {
4561 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4562 : input, this->mutable_name()));
4563 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4564 0 : this->name().data(), this->name().length(),
4565 : ::google::protobuf::internal::WireFormat::PARSE,
4566 0 : "name");
4567 : } else {
4568 0 : goto handle_unusual;
4569 : }
4570 0 : if (input->ExpectTag(18)) goto parse_input_type;
4571 0 : break;
4572 : }
4573 :
4574 : // optional string input_type = 2;
4575 : case 2: {
4576 0 : if (tag == 18) {
4577 : parse_input_type:
4578 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4579 : input, this->mutable_input_type()));
4580 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4581 0 : this->input_type().data(), this->input_type().length(),
4582 : ::google::protobuf::internal::WireFormat::PARSE,
4583 0 : "input_type");
4584 : } else {
4585 0 : goto handle_unusual;
4586 : }
4587 0 : if (input->ExpectTag(26)) goto parse_output_type;
4588 0 : break;
4589 : }
4590 :
4591 : // optional string output_type = 3;
4592 : case 3: {
4593 0 : if (tag == 26) {
4594 : parse_output_type:
4595 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4596 : input, this->mutable_output_type()));
4597 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4598 0 : this->output_type().data(), this->output_type().length(),
4599 : ::google::protobuf::internal::WireFormat::PARSE,
4600 0 : "output_type");
4601 : } else {
4602 0 : goto handle_unusual;
4603 : }
4604 0 : if (input->ExpectTag(34)) goto parse_options;
4605 0 : break;
4606 : }
4607 :
4608 : // optional .google.protobuf.MethodOptions options = 4;
4609 : case 4: {
4610 0 : if (tag == 34) {
4611 : parse_options:
4612 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4613 : input, mutable_options()));
4614 : } else {
4615 0 : goto handle_unusual;
4616 : }
4617 0 : if (input->ExpectAtEnd()) goto success;
4618 0 : break;
4619 : }
4620 :
4621 : default: {
4622 : handle_unusual:
4623 0 : if (tag == 0 ||
4624 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4625 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4626 0 : goto success;
4627 : }
4628 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
4629 : input, tag, mutable_unknown_fields()));
4630 0 : break;
4631 : }
4632 : }
4633 0 : }
4634 : success:
4635 : // @@protoc_insertion_point(parse_success:google.protobuf.MethodDescriptorProto)
4636 0 : return true;
4637 : failure:
4638 : // @@protoc_insertion_point(parse_failure:google.protobuf.MethodDescriptorProto)
4639 0 : return false;
4640 : #undef DO_
4641 : }
4642 :
4643 0 : void MethodDescriptorProto::SerializeWithCachedSizes(
4644 : ::google::protobuf::io::CodedOutputStream* output) const {
4645 : // @@protoc_insertion_point(serialize_start:google.protobuf.MethodDescriptorProto)
4646 : // optional string name = 1;
4647 0 : if (has_name()) {
4648 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4649 0 : this->name().data(), this->name().length(),
4650 : ::google::protobuf::internal::WireFormat::SERIALIZE,
4651 0 : "name");
4652 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4653 0 : 1, this->name(), output);
4654 : }
4655 :
4656 : // optional string input_type = 2;
4657 0 : if (has_input_type()) {
4658 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4659 0 : this->input_type().data(), this->input_type().length(),
4660 : ::google::protobuf::internal::WireFormat::SERIALIZE,
4661 0 : "input_type");
4662 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4663 0 : 2, this->input_type(), output);
4664 : }
4665 :
4666 : // optional string output_type = 3;
4667 0 : if (has_output_type()) {
4668 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4669 0 : this->output_type().data(), this->output_type().length(),
4670 : ::google::protobuf::internal::WireFormat::SERIALIZE,
4671 0 : "output_type");
4672 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4673 0 : 3, this->output_type(), output);
4674 : }
4675 :
4676 : // optional .google.protobuf.MethodOptions options = 4;
4677 0 : if (has_options()) {
4678 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4679 0 : 4, this->options(), output);
4680 : }
4681 :
4682 0 : if (!unknown_fields().empty()) {
4683 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4684 0 : unknown_fields(), output);
4685 : }
4686 : // @@protoc_insertion_point(serialize_end:google.protobuf.MethodDescriptorProto)
4687 0 : }
4688 :
4689 0 : ::google::protobuf::uint8* MethodDescriptorProto::SerializeWithCachedSizesToArray(
4690 : ::google::protobuf::uint8* target) const {
4691 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodDescriptorProto)
4692 : // optional string name = 1;
4693 0 : if (has_name()) {
4694 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4695 0 : this->name().data(), this->name().length(),
4696 : ::google::protobuf::internal::WireFormat::SERIALIZE,
4697 0 : "name");
4698 : target =
4699 0 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4700 0 : 1, this->name(), target);
4701 : }
4702 :
4703 : // optional string input_type = 2;
4704 0 : if (has_input_type()) {
4705 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4706 0 : this->input_type().data(), this->input_type().length(),
4707 : ::google::protobuf::internal::WireFormat::SERIALIZE,
4708 0 : "input_type");
4709 : target =
4710 0 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4711 0 : 2, this->input_type(), target);
4712 : }
4713 :
4714 : // optional string output_type = 3;
4715 0 : if (has_output_type()) {
4716 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4717 0 : this->output_type().data(), this->output_type().length(),
4718 : ::google::protobuf::internal::WireFormat::SERIALIZE,
4719 0 : "output_type");
4720 : target =
4721 0 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4722 0 : 3, this->output_type(), target);
4723 : }
4724 :
4725 : // optional .google.protobuf.MethodOptions options = 4;
4726 0 : if (has_options()) {
4727 : target = ::google::protobuf::internal::WireFormatLite::
4728 0 : WriteMessageNoVirtualToArray(
4729 0 : 4, this->options(), target);
4730 : }
4731 :
4732 0 : if (!unknown_fields().empty()) {
4733 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4734 0 : unknown_fields(), target);
4735 : }
4736 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodDescriptorProto)
4737 0 : return target;
4738 : }
4739 :
4740 0 : int MethodDescriptorProto::ByteSize() const {
4741 0 : int total_size = 0;
4742 :
4743 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4744 : // optional string name = 1;
4745 0 : if (has_name()) {
4746 0 : total_size += 1 +
4747 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
4748 : this->name());
4749 : }
4750 :
4751 : // optional string input_type = 2;
4752 0 : if (has_input_type()) {
4753 0 : total_size += 1 +
4754 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
4755 : this->input_type());
4756 : }
4757 :
4758 : // optional string output_type = 3;
4759 0 : if (has_output_type()) {
4760 0 : total_size += 1 +
4761 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
4762 : this->output_type());
4763 : }
4764 :
4765 : // optional .google.protobuf.MethodOptions options = 4;
4766 0 : if (has_options()) {
4767 0 : total_size += 1 +
4768 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4769 : this->options());
4770 : }
4771 :
4772 : }
4773 0 : if (!unknown_fields().empty()) {
4774 0 : total_size +=
4775 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4776 : unknown_fields());
4777 : }
4778 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4779 0 : _cached_size_ = total_size;
4780 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
4781 0 : return total_size;
4782 : }
4783 :
4784 0 : void MethodDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
4785 0 : GOOGLE_CHECK_NE(&from, this);
4786 : const MethodDescriptorProto* source =
4787 : ::google::protobuf::internal::dynamic_cast_if_available<const MethodDescriptorProto*>(
4788 0 : &from);
4789 0 : if (source == NULL) {
4790 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4791 : } else {
4792 0 : MergeFrom(*source);
4793 : }
4794 0 : }
4795 :
4796 0 : void MethodDescriptorProto::MergeFrom(const MethodDescriptorProto& from) {
4797 0 : GOOGLE_CHECK_NE(&from, this);
4798 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4799 0 : if (from.has_name()) {
4800 0 : set_name(from.name());
4801 : }
4802 0 : if (from.has_input_type()) {
4803 0 : set_input_type(from.input_type());
4804 : }
4805 0 : if (from.has_output_type()) {
4806 0 : set_output_type(from.output_type());
4807 : }
4808 0 : if (from.has_options()) {
4809 0 : mutable_options()->::google::protobuf::MethodOptions::MergeFrom(from.options());
4810 : }
4811 : }
4812 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4813 0 : }
4814 :
4815 0 : void MethodDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
4816 0 : if (&from == this) return;
4817 0 : Clear();
4818 0 : MergeFrom(from);
4819 : }
4820 :
4821 0 : void MethodDescriptorProto::CopyFrom(const MethodDescriptorProto& from) {
4822 0 : if (&from == this) return;
4823 0 : Clear();
4824 0 : MergeFrom(from);
4825 : }
4826 :
4827 0 : bool MethodDescriptorProto::IsInitialized() const {
4828 :
4829 0 : if (has_options()) {
4830 0 : if (!this->options().IsInitialized()) return false;
4831 : }
4832 0 : return true;
4833 : }
4834 :
4835 0 : void MethodDescriptorProto::Swap(MethodDescriptorProto* other) {
4836 0 : if (other != this) {
4837 0 : std::swap(name_, other->name_);
4838 0 : std::swap(input_type_, other->input_type_);
4839 0 : std::swap(output_type_, other->output_type_);
4840 0 : std::swap(options_, other->options_);
4841 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
4842 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
4843 0 : std::swap(_cached_size_, other->_cached_size_);
4844 : }
4845 0 : }
4846 :
4847 0 : ::google::protobuf::Metadata MethodDescriptorProto::GetMetadata() const {
4848 0 : protobuf_AssignDescriptorsOnce();
4849 : ::google::protobuf::Metadata metadata;
4850 0 : metadata.descriptor = MethodDescriptorProto_descriptor_;
4851 0 : metadata.reflection = MethodDescriptorProto_reflection_;
4852 0 : return metadata;
4853 : }
4854 :
4855 :
4856 : // ===================================================================
4857 :
4858 0 : const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor() {
4859 0 : protobuf_AssignDescriptorsOnce();
4860 0 : return FileOptions_OptimizeMode_descriptor_;
4861 : }
4862 6 : bool FileOptions_OptimizeMode_IsValid(int value) {
4863 6 : switch(value) {
4864 : case 1:
4865 : case 2:
4866 : case 3:
4867 6 : return true;
4868 : default:
4869 0 : return false;
4870 : }
4871 : }
4872 :
4873 : #ifndef _MSC_VER
4874 : const FileOptions_OptimizeMode FileOptions::SPEED;
4875 : const FileOptions_OptimizeMode FileOptions::CODE_SIZE;
4876 : const FileOptions_OptimizeMode FileOptions::LITE_RUNTIME;
4877 : const FileOptions_OptimizeMode FileOptions::OptimizeMode_MIN;
4878 : const FileOptions_OptimizeMode FileOptions::OptimizeMode_MAX;
4879 : const int FileOptions::OptimizeMode_ARRAYSIZE;
4880 : #endif // _MSC_VER
4881 : #ifndef _MSC_VER
4882 : const int FileOptions::kJavaPackageFieldNumber;
4883 : const int FileOptions::kJavaOuterClassnameFieldNumber;
4884 : const int FileOptions::kJavaMultipleFilesFieldNumber;
4885 : const int FileOptions::kJavaGenerateEqualsAndHashFieldNumber;
4886 : const int FileOptions::kJavaStringCheckUtf8FieldNumber;
4887 : const int FileOptions::kOptimizeForFieldNumber;
4888 : const int FileOptions::kGoPackageFieldNumber;
4889 : const int FileOptions::kCcGenericServicesFieldNumber;
4890 : const int FileOptions::kJavaGenericServicesFieldNumber;
4891 : const int FileOptions::kPyGenericServicesFieldNumber;
4892 : const int FileOptions::kDeprecatedFieldNumber;
4893 : const int FileOptions::kUninterpretedOptionFieldNumber;
4894 : #endif // !_MSC_VER
4895 :
4896 6 : FileOptions::FileOptions()
4897 6 : : ::google::protobuf::Message() {
4898 6 : SharedCtor();
4899 : // @@protoc_insertion_point(constructor:google.protobuf.FileOptions)
4900 6 : }
4901 :
4902 3 : void FileOptions::InitAsDefaultInstance() {
4903 3 : }
4904 :
4905 0 : FileOptions::FileOptions(const FileOptions& from)
4906 0 : : ::google::protobuf::Message() {
4907 0 : SharedCtor();
4908 0 : MergeFrom(from);
4909 : // @@protoc_insertion_point(copy_constructor:google.protobuf.FileOptions)
4910 0 : }
4911 :
4912 6 : void FileOptions::SharedCtor() {
4913 6 : ::google::protobuf::internal::GetEmptyString();
4914 6 : _cached_size_ = 0;
4915 6 : java_package_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4916 6 : java_outer_classname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4917 6 : java_multiple_files_ = false;
4918 6 : java_generate_equals_and_hash_ = false;
4919 6 : java_string_check_utf8_ = false;
4920 6 : optimize_for_ = 1;
4921 6 : go_package_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4922 6 : cc_generic_services_ = false;
4923 6 : java_generic_services_ = false;
4924 6 : py_generic_services_ = false;
4925 6 : deprecated_ = false;
4926 6 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
4927 6 : }
4928 :
4929 9 : FileOptions::~FileOptions() {
4930 : // @@protoc_insertion_point(destructor:google.protobuf.FileOptions)
4931 3 : SharedDtor();
4932 9 : }
4933 :
4934 3 : void FileOptions::SharedDtor() {
4935 3 : if (java_package_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4936 3 : delete java_package_;
4937 : }
4938 3 : if (java_outer_classname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4939 3 : delete java_outer_classname_;
4940 : }
4941 3 : if (go_package_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4942 0 : delete go_package_;
4943 : }
4944 3 : if (this != default_instance_) {
4945 : }
4946 3 : }
4947 :
4948 0 : void FileOptions::SetCachedSize(int size) const {
4949 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4950 0 : _cached_size_ = size;
4951 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
4952 0 : }
4953 0 : const ::google::protobuf::Descriptor* FileOptions::descriptor() {
4954 0 : protobuf_AssignDescriptorsOnce();
4955 0 : return FileOptions_descriptor_;
4956 : }
4957 :
4958 3 : const FileOptions& FileOptions::default_instance() {
4959 3 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
4960 3 : return *default_instance_;
4961 : }
4962 :
4963 : FileOptions* FileOptions::default_instance_ = NULL;
4964 :
4965 0 : FileOptions* FileOptions::New() const {
4966 0 : return new FileOptions;
4967 : }
4968 :
4969 0 : void FileOptions::Clear() {
4970 0 : _extensions_.Clear();
4971 : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
4972 : &reinterpret_cast<FileOptions*>(16)->f) - \
4973 : reinterpret_cast<char*>(16))
4974 :
4975 : #define ZR_(first, last) do { \
4976 : size_t f = OFFSET_OF_FIELD_(first); \
4977 : size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
4978 : ::memset(&first, 0, n); \
4979 : } while (0)
4980 :
4981 0 : if (_has_bits_[0 / 32] & 255) {
4982 0 : ZR_(java_multiple_files_, cc_generic_services_);
4983 0 : if (has_java_package()) {
4984 0 : if (java_package_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4985 0 : java_package_->clear();
4986 : }
4987 : }
4988 0 : if (has_java_outer_classname()) {
4989 0 : if (java_outer_classname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4990 0 : java_outer_classname_->clear();
4991 : }
4992 : }
4993 0 : optimize_for_ = 1;
4994 0 : if (has_go_package()) {
4995 0 : if (go_package_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4996 0 : go_package_->clear();
4997 : }
4998 : }
4999 : }
5000 0 : ZR_(java_generic_services_, deprecated_);
5001 :
5002 : #undef OFFSET_OF_FIELD_
5003 : #undef ZR_
5004 :
5005 0 : uninterpreted_option_.Clear();
5006 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
5007 0 : mutable_unknown_fields()->Clear();
5008 0 : }
5009 :
5010 6 : bool FileOptions::MergePartialFromCodedStream(
5011 : ::google::protobuf::io::CodedInputStream* input) {
5012 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
5013 : ::google::protobuf::uint32 tag;
5014 : // @@protoc_insertion_point(parse_start:google.protobuf.FileOptions)
5015 : for (;;) {
5016 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
5017 6 : tag = p.first;
5018 6 : if (!p.second) goto handle_unusual;
5019 3 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5020 : // optional string java_package = 1;
5021 : case 1: {
5022 3 : if (tag == 10) {
5023 3 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5024 : input, this->mutable_java_package()));
5025 6 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5026 6 : this->java_package().data(), this->java_package().length(),
5027 : ::google::protobuf::internal::WireFormat::PARSE,
5028 3 : "java_package");
5029 : } else {
5030 0 : goto handle_unusual;
5031 : }
5032 3 : if (input->ExpectTag(66)) goto parse_java_outer_classname;
5033 0 : break;
5034 : }
5035 :
5036 : // optional string java_outer_classname = 8;
5037 : case 8: {
5038 0 : if (tag == 66) {
5039 : parse_java_outer_classname:
5040 3 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5041 : input, this->mutable_java_outer_classname()));
5042 6 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5043 6 : this->java_outer_classname().data(), this->java_outer_classname().length(),
5044 : ::google::protobuf::internal::WireFormat::PARSE,
5045 3 : "java_outer_classname");
5046 : } else {
5047 0 : goto handle_unusual;
5048 : }
5049 3 : if (input->ExpectTag(72)) goto parse_optimize_for;
5050 0 : break;
5051 : }
5052 :
5053 : // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
5054 : case 9: {
5055 0 : if (tag == 72) {
5056 : parse_optimize_for:
5057 : int value;
5058 3 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5059 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5060 : input, &value)));
5061 3 : if (::google::protobuf::FileOptions_OptimizeMode_IsValid(value)) {
5062 3 : set_optimize_for(static_cast< ::google::protobuf::FileOptions_OptimizeMode >(value));
5063 : } else {
5064 0 : mutable_unknown_fields()->AddVarint(9, value);
5065 : }
5066 : } else {
5067 0 : goto handle_unusual;
5068 : }
5069 3 : if (input->ExpectTag(80)) goto parse_java_multiple_files;
5070 3 : break;
5071 : }
5072 :
5073 : // optional bool java_multiple_files = 10 [default = false];
5074 : case 10: {
5075 0 : if (tag == 80) {
5076 : parse_java_multiple_files:
5077 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5078 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5079 : input, &java_multiple_files_)));
5080 0 : set_has_java_multiple_files();
5081 : } else {
5082 0 : goto handle_unusual;
5083 : }
5084 0 : if (input->ExpectTag(90)) goto parse_go_package;
5085 0 : break;
5086 : }
5087 :
5088 : // optional string go_package = 11;
5089 : case 11: {
5090 0 : if (tag == 90) {
5091 : parse_go_package:
5092 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5093 : input, this->mutable_go_package()));
5094 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5095 0 : this->go_package().data(), this->go_package().length(),
5096 : ::google::protobuf::internal::WireFormat::PARSE,
5097 0 : "go_package");
5098 : } else {
5099 0 : goto handle_unusual;
5100 : }
5101 0 : if (input->ExpectTag(128)) goto parse_cc_generic_services;
5102 0 : break;
5103 : }
5104 :
5105 : // optional bool cc_generic_services = 16 [default = false];
5106 : case 16: {
5107 0 : if (tag == 128) {
5108 : parse_cc_generic_services:
5109 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5110 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5111 : input, &cc_generic_services_)));
5112 0 : set_has_cc_generic_services();
5113 : } else {
5114 0 : goto handle_unusual;
5115 : }
5116 0 : if (input->ExpectTag(136)) goto parse_java_generic_services;
5117 0 : break;
5118 : }
5119 :
5120 : // optional bool java_generic_services = 17 [default = false];
5121 : case 17: {
5122 0 : if (tag == 136) {
5123 : parse_java_generic_services:
5124 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5125 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5126 : input, &java_generic_services_)));
5127 0 : set_has_java_generic_services();
5128 : } else {
5129 0 : goto handle_unusual;
5130 : }
5131 0 : if (input->ExpectTag(144)) goto parse_py_generic_services;
5132 0 : break;
5133 : }
5134 :
5135 : // optional bool py_generic_services = 18 [default = false];
5136 : case 18: {
5137 0 : if (tag == 144) {
5138 : parse_py_generic_services:
5139 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5140 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5141 : input, &py_generic_services_)));
5142 0 : set_has_py_generic_services();
5143 : } else {
5144 0 : goto handle_unusual;
5145 : }
5146 0 : if (input->ExpectTag(160)) goto parse_java_generate_equals_and_hash;
5147 0 : break;
5148 : }
5149 :
5150 : // optional bool java_generate_equals_and_hash = 20 [default = false];
5151 : case 20: {
5152 0 : if (tag == 160) {
5153 : parse_java_generate_equals_and_hash:
5154 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5155 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5156 : input, &java_generate_equals_and_hash_)));
5157 0 : set_has_java_generate_equals_and_hash();
5158 : } else {
5159 0 : goto handle_unusual;
5160 : }
5161 0 : if (input->ExpectTag(184)) goto parse_deprecated;
5162 0 : break;
5163 : }
5164 :
5165 : // optional bool deprecated = 23 [default = false];
5166 : case 23: {
5167 0 : if (tag == 184) {
5168 : parse_deprecated:
5169 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5170 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5171 : input, &deprecated_)));
5172 0 : set_has_deprecated();
5173 : } else {
5174 0 : goto handle_unusual;
5175 : }
5176 0 : if (input->ExpectTag(216)) goto parse_java_string_check_utf8;
5177 0 : break;
5178 : }
5179 :
5180 : // optional bool java_string_check_utf8 = 27 [default = false];
5181 : case 27: {
5182 0 : if (tag == 216) {
5183 : parse_java_string_check_utf8:
5184 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5185 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5186 : input, &java_string_check_utf8_)));
5187 0 : set_has_java_string_check_utf8();
5188 : } else {
5189 0 : goto handle_unusual;
5190 : }
5191 0 : if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
5192 0 : break;
5193 : }
5194 :
5195 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5196 : case 999: {
5197 0 : if (tag == 7994) {
5198 : parse_uninterpreted_option:
5199 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5200 : input, add_uninterpreted_option()));
5201 : } else {
5202 0 : goto handle_unusual;
5203 : }
5204 0 : if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
5205 3 : if (input->ExpectAtEnd()) goto success;
5206 0 : break;
5207 : }
5208 :
5209 : default: {
5210 : handle_unusual:
5211 3 : if (tag == 0 ||
5212 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5213 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5214 3 : goto success;
5215 : }
5216 0 : if ((8000u <= tag)) {
5217 0 : DO_(_extensions_.ParseField(tag, input, default_instance_,
5218 : mutable_unknown_fields()));
5219 0 : continue;
5220 : }
5221 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
5222 : input, tag, mutable_unknown_fields()));
5223 0 : break;
5224 : }
5225 : }
5226 3 : }
5227 : success:
5228 : // @@protoc_insertion_point(parse_success:google.protobuf.FileOptions)
5229 3 : return true;
5230 : failure:
5231 : // @@protoc_insertion_point(parse_failure:google.protobuf.FileOptions)
5232 0 : return false;
5233 : #undef DO_
5234 : }
5235 :
5236 0 : void FileOptions::SerializeWithCachedSizes(
5237 : ::google::protobuf::io::CodedOutputStream* output) const {
5238 : // @@protoc_insertion_point(serialize_start:google.protobuf.FileOptions)
5239 : // optional string java_package = 1;
5240 0 : if (has_java_package()) {
5241 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5242 0 : this->java_package().data(), this->java_package().length(),
5243 : ::google::protobuf::internal::WireFormat::SERIALIZE,
5244 0 : "java_package");
5245 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5246 0 : 1, this->java_package(), output);
5247 : }
5248 :
5249 : // optional string java_outer_classname = 8;
5250 0 : if (has_java_outer_classname()) {
5251 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5252 0 : this->java_outer_classname().data(), this->java_outer_classname().length(),
5253 : ::google::protobuf::internal::WireFormat::SERIALIZE,
5254 0 : "java_outer_classname");
5255 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5256 0 : 8, this->java_outer_classname(), output);
5257 : }
5258 :
5259 : // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
5260 0 : if (has_optimize_for()) {
5261 0 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
5262 0 : 9, this->optimize_for(), output);
5263 : }
5264 :
5265 : // optional bool java_multiple_files = 10 [default = false];
5266 0 : if (has_java_multiple_files()) {
5267 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->java_multiple_files(), output);
5268 : }
5269 :
5270 : // optional string go_package = 11;
5271 0 : if (has_go_package()) {
5272 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5273 0 : this->go_package().data(), this->go_package().length(),
5274 : ::google::protobuf::internal::WireFormat::SERIALIZE,
5275 0 : "go_package");
5276 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5277 0 : 11, this->go_package(), output);
5278 : }
5279 :
5280 : // optional bool cc_generic_services = 16 [default = false];
5281 0 : if (has_cc_generic_services()) {
5282 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->cc_generic_services(), output);
5283 : }
5284 :
5285 : // optional bool java_generic_services = 17 [default = false];
5286 0 : if (has_java_generic_services()) {
5287 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->java_generic_services(), output);
5288 : }
5289 :
5290 : // optional bool py_generic_services = 18 [default = false];
5291 0 : if (has_py_generic_services()) {
5292 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic_services(), output);
5293 : }
5294 :
5295 : // optional bool java_generate_equals_and_hash = 20 [default = false];
5296 0 : if (has_java_generate_equals_and_hash()) {
5297 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->java_generate_equals_and_hash(), output);
5298 : }
5299 :
5300 : // optional bool deprecated = 23 [default = false];
5301 0 : if (has_deprecated()) {
5302 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(23, this->deprecated(), output);
5303 : }
5304 :
5305 : // optional bool java_string_check_utf8 = 27 [default = false];
5306 0 : if (has_java_string_check_utf8()) {
5307 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(27, this->java_string_check_utf8(), output);
5308 : }
5309 :
5310 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5311 0 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
5312 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5313 0 : 999, this->uninterpreted_option(i), output);
5314 : }
5315 :
5316 : // Extension range [1000, 536870912)
5317 0 : _extensions_.SerializeWithCachedSizes(
5318 0 : 1000, 536870912, output);
5319 :
5320 0 : if (!unknown_fields().empty()) {
5321 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5322 0 : unknown_fields(), output);
5323 : }
5324 : // @@protoc_insertion_point(serialize_end:google.protobuf.FileOptions)
5325 0 : }
5326 :
5327 0 : ::google::protobuf::uint8* FileOptions::SerializeWithCachedSizesToArray(
5328 : ::google::protobuf::uint8* target) const {
5329 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileOptions)
5330 : // optional string java_package = 1;
5331 0 : if (has_java_package()) {
5332 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5333 0 : this->java_package().data(), this->java_package().length(),
5334 : ::google::protobuf::internal::WireFormat::SERIALIZE,
5335 0 : "java_package");
5336 : target =
5337 0 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5338 0 : 1, this->java_package(), target);
5339 : }
5340 :
5341 : // optional string java_outer_classname = 8;
5342 0 : if (has_java_outer_classname()) {
5343 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5344 0 : this->java_outer_classname().data(), this->java_outer_classname().length(),
5345 : ::google::protobuf::internal::WireFormat::SERIALIZE,
5346 0 : "java_outer_classname");
5347 : target =
5348 0 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5349 0 : 8, this->java_outer_classname(), target);
5350 : }
5351 :
5352 : // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
5353 0 : if (has_optimize_for()) {
5354 0 : target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5355 0 : 9, this->optimize_for(), target);
5356 : }
5357 :
5358 : // optional bool java_multiple_files = 10 [default = false];
5359 0 : if (has_java_multiple_files()) {
5360 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->java_multiple_files(), target);
5361 : }
5362 :
5363 : // optional string go_package = 11;
5364 0 : if (has_go_package()) {
5365 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5366 0 : this->go_package().data(), this->go_package().length(),
5367 : ::google::protobuf::internal::WireFormat::SERIALIZE,
5368 0 : "go_package");
5369 : target =
5370 0 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5371 0 : 11, this->go_package(), target);
5372 : }
5373 :
5374 : // optional bool cc_generic_services = 16 [default = false];
5375 0 : if (has_cc_generic_services()) {
5376 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->cc_generic_services(), target);
5377 : }
5378 :
5379 : // optional bool java_generic_services = 17 [default = false];
5380 0 : if (has_java_generic_services()) {
5381 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->java_generic_services(), target);
5382 : }
5383 :
5384 : // optional bool py_generic_services = 18 [default = false];
5385 0 : if (has_py_generic_services()) {
5386 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->py_generic_services(), target);
5387 : }
5388 :
5389 : // optional bool java_generate_equals_and_hash = 20 [default = false];
5390 0 : if (has_java_generate_equals_and_hash()) {
5391 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->java_generate_equals_and_hash(), target);
5392 : }
5393 :
5394 : // optional bool deprecated = 23 [default = false];
5395 0 : if (has_deprecated()) {
5396 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(23, this->deprecated(), target);
5397 : }
5398 :
5399 : // optional bool java_string_check_utf8 = 27 [default = false];
5400 0 : if (has_java_string_check_utf8()) {
5401 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(27, this->java_string_check_utf8(), target);
5402 : }
5403 :
5404 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5405 0 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
5406 : target = ::google::protobuf::internal::WireFormatLite::
5407 0 : WriteMessageNoVirtualToArray(
5408 0 : 999, this->uninterpreted_option(i), target);
5409 : }
5410 :
5411 : // Extension range [1000, 536870912)
5412 0 : target = _extensions_.SerializeWithCachedSizesToArray(
5413 0 : 1000, 536870912, target);
5414 :
5415 0 : if (!unknown_fields().empty()) {
5416 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5417 0 : unknown_fields(), target);
5418 : }
5419 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileOptions)
5420 0 : return target;
5421 : }
5422 :
5423 0 : int FileOptions::ByteSize() const {
5424 0 : int total_size = 0;
5425 :
5426 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5427 : // optional string java_package = 1;
5428 0 : if (has_java_package()) {
5429 0 : total_size += 1 +
5430 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
5431 : this->java_package());
5432 : }
5433 :
5434 : // optional string java_outer_classname = 8;
5435 0 : if (has_java_outer_classname()) {
5436 0 : total_size += 1 +
5437 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
5438 : this->java_outer_classname());
5439 : }
5440 :
5441 : // optional bool java_multiple_files = 10 [default = false];
5442 0 : if (has_java_multiple_files()) {
5443 0 : total_size += 1 + 1;
5444 : }
5445 :
5446 : // optional bool java_generate_equals_and_hash = 20 [default = false];
5447 0 : if (has_java_generate_equals_and_hash()) {
5448 0 : total_size += 2 + 1;
5449 : }
5450 :
5451 : // optional bool java_string_check_utf8 = 27 [default = false];
5452 0 : if (has_java_string_check_utf8()) {
5453 0 : total_size += 2 + 1;
5454 : }
5455 :
5456 : // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
5457 0 : if (has_optimize_for()) {
5458 0 : total_size += 1 +
5459 0 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->optimize_for());
5460 : }
5461 :
5462 : // optional string go_package = 11;
5463 0 : if (has_go_package()) {
5464 0 : total_size += 1 +
5465 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
5466 : this->go_package());
5467 : }
5468 :
5469 : // optional bool cc_generic_services = 16 [default = false];
5470 0 : if (has_cc_generic_services()) {
5471 0 : total_size += 2 + 1;
5472 : }
5473 :
5474 : }
5475 0 : if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
5476 : // optional bool java_generic_services = 17 [default = false];
5477 0 : if (has_java_generic_services()) {
5478 0 : total_size += 2 + 1;
5479 : }
5480 :
5481 : // optional bool py_generic_services = 18 [default = false];
5482 0 : if (has_py_generic_services()) {
5483 0 : total_size += 2 + 1;
5484 : }
5485 :
5486 : // optional bool deprecated = 23 [default = false];
5487 0 : if (has_deprecated()) {
5488 0 : total_size += 2 + 1;
5489 : }
5490 :
5491 : }
5492 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5493 0 : total_size += 2 * this->uninterpreted_option_size();
5494 0 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
5495 0 : total_size +=
5496 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5497 : this->uninterpreted_option(i));
5498 : }
5499 :
5500 0 : total_size += _extensions_.ByteSize();
5501 :
5502 0 : if (!unknown_fields().empty()) {
5503 0 : total_size +=
5504 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5505 : unknown_fields());
5506 : }
5507 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5508 0 : _cached_size_ = total_size;
5509 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
5510 0 : return total_size;
5511 : }
5512 :
5513 0 : void FileOptions::MergeFrom(const ::google::protobuf::Message& from) {
5514 0 : GOOGLE_CHECK_NE(&from, this);
5515 : const FileOptions* source =
5516 : ::google::protobuf::internal::dynamic_cast_if_available<const FileOptions*>(
5517 0 : &from);
5518 0 : if (source == NULL) {
5519 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5520 : } else {
5521 0 : MergeFrom(*source);
5522 : }
5523 0 : }
5524 :
5525 0 : void FileOptions::MergeFrom(const FileOptions& from) {
5526 0 : GOOGLE_CHECK_NE(&from, this);
5527 0 : uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
5528 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5529 0 : if (from.has_java_package()) {
5530 0 : set_java_package(from.java_package());
5531 : }
5532 0 : if (from.has_java_outer_classname()) {
5533 0 : set_java_outer_classname(from.java_outer_classname());
5534 : }
5535 0 : if (from.has_java_multiple_files()) {
5536 0 : set_java_multiple_files(from.java_multiple_files());
5537 : }
5538 0 : if (from.has_java_generate_equals_and_hash()) {
5539 0 : set_java_generate_equals_and_hash(from.java_generate_equals_and_hash());
5540 : }
5541 0 : if (from.has_java_string_check_utf8()) {
5542 0 : set_java_string_check_utf8(from.java_string_check_utf8());
5543 : }
5544 0 : if (from.has_optimize_for()) {
5545 0 : set_optimize_for(from.optimize_for());
5546 : }
5547 0 : if (from.has_go_package()) {
5548 0 : set_go_package(from.go_package());
5549 : }
5550 0 : if (from.has_cc_generic_services()) {
5551 0 : set_cc_generic_services(from.cc_generic_services());
5552 : }
5553 : }
5554 0 : if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
5555 0 : if (from.has_java_generic_services()) {
5556 0 : set_java_generic_services(from.java_generic_services());
5557 : }
5558 0 : if (from.has_py_generic_services()) {
5559 0 : set_py_generic_services(from.py_generic_services());
5560 : }
5561 0 : if (from.has_deprecated()) {
5562 0 : set_deprecated(from.deprecated());
5563 : }
5564 : }
5565 0 : _extensions_.MergeFrom(from._extensions_);
5566 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5567 0 : }
5568 :
5569 0 : void FileOptions::CopyFrom(const ::google::protobuf::Message& from) {
5570 0 : if (&from == this) return;
5571 0 : Clear();
5572 0 : MergeFrom(from);
5573 : }
5574 :
5575 0 : void FileOptions::CopyFrom(const FileOptions& from) {
5576 0 : if (&from == this) return;
5577 0 : Clear();
5578 0 : MergeFrom(from);
5579 : }
5580 :
5581 3 : bool FileOptions::IsInitialized() const {
5582 :
5583 3 : if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
5584 :
5585 3 : if (!_extensions_.IsInitialized()) return false; return true;
5586 : }
5587 :
5588 0 : void FileOptions::Swap(FileOptions* other) {
5589 0 : if (other != this) {
5590 0 : std::swap(java_package_, other->java_package_);
5591 0 : std::swap(java_outer_classname_, other->java_outer_classname_);
5592 0 : std::swap(java_multiple_files_, other->java_multiple_files_);
5593 0 : std::swap(java_generate_equals_and_hash_, other->java_generate_equals_and_hash_);
5594 0 : std::swap(java_string_check_utf8_, other->java_string_check_utf8_);
5595 0 : std::swap(optimize_for_, other->optimize_for_);
5596 0 : std::swap(go_package_, other->go_package_);
5597 0 : std::swap(cc_generic_services_, other->cc_generic_services_);
5598 0 : std::swap(java_generic_services_, other->java_generic_services_);
5599 0 : std::swap(py_generic_services_, other->py_generic_services_);
5600 0 : std::swap(deprecated_, other->deprecated_);
5601 0 : uninterpreted_option_.Swap(&other->uninterpreted_option_);
5602 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
5603 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
5604 0 : std::swap(_cached_size_, other->_cached_size_);
5605 0 : _extensions_.Swap(&other->_extensions_);
5606 : }
5607 0 : }
5608 :
5609 0 : ::google::protobuf::Metadata FileOptions::GetMetadata() const {
5610 0 : protobuf_AssignDescriptorsOnce();
5611 : ::google::protobuf::Metadata metadata;
5612 0 : metadata.descriptor = FileOptions_descriptor_;
5613 0 : metadata.reflection = FileOptions_reflection_;
5614 0 : return metadata;
5615 : }
5616 :
5617 :
5618 : // ===================================================================
5619 :
5620 : #ifndef _MSC_VER
5621 : const int MessageOptions::kMessageSetWireFormatFieldNumber;
5622 : const int MessageOptions::kNoStandardDescriptorAccessorFieldNumber;
5623 : const int MessageOptions::kDeprecatedFieldNumber;
5624 : const int MessageOptions::kUninterpretedOptionFieldNumber;
5625 : #endif // !_MSC_VER
5626 :
5627 3 : MessageOptions::MessageOptions()
5628 3 : : ::google::protobuf::Message() {
5629 3 : SharedCtor();
5630 : // @@protoc_insertion_point(constructor:google.protobuf.MessageOptions)
5631 3 : }
5632 :
5633 3 : void MessageOptions::InitAsDefaultInstance() {
5634 3 : }
5635 :
5636 0 : MessageOptions::MessageOptions(const MessageOptions& from)
5637 0 : : ::google::protobuf::Message() {
5638 0 : SharedCtor();
5639 0 : MergeFrom(from);
5640 : // @@protoc_insertion_point(copy_constructor:google.protobuf.MessageOptions)
5641 0 : }
5642 :
5643 3 : void MessageOptions::SharedCtor() {
5644 3 : _cached_size_ = 0;
5645 3 : message_set_wire_format_ = false;
5646 3 : no_standard_descriptor_accessor_ = false;
5647 3 : deprecated_ = false;
5648 3 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
5649 3 : }
5650 :
5651 0 : MessageOptions::~MessageOptions() {
5652 : // @@protoc_insertion_point(destructor:google.protobuf.MessageOptions)
5653 0 : SharedDtor();
5654 0 : }
5655 :
5656 0 : void MessageOptions::SharedDtor() {
5657 0 : if (this != default_instance_) {
5658 : }
5659 0 : }
5660 :
5661 0 : void MessageOptions::SetCachedSize(int size) const {
5662 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5663 0 : _cached_size_ = size;
5664 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
5665 0 : }
5666 0 : const ::google::protobuf::Descriptor* MessageOptions::descriptor() {
5667 0 : protobuf_AssignDescriptorsOnce();
5668 0 : return MessageOptions_descriptor_;
5669 : }
5670 :
5671 3 : const MessageOptions& MessageOptions::default_instance() {
5672 3 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
5673 3 : return *default_instance_;
5674 : }
5675 :
5676 : MessageOptions* MessageOptions::default_instance_ = NULL;
5677 :
5678 0 : MessageOptions* MessageOptions::New() const {
5679 0 : return new MessageOptions;
5680 : }
5681 :
5682 0 : void MessageOptions::Clear() {
5683 0 : _extensions_.Clear();
5684 : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
5685 : &reinterpret_cast<MessageOptions*>(16)->f) - \
5686 : reinterpret_cast<char*>(16))
5687 :
5688 : #define ZR_(first, last) do { \
5689 : size_t f = OFFSET_OF_FIELD_(first); \
5690 : size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
5691 : ::memset(&first, 0, n); \
5692 : } while (0)
5693 :
5694 0 : ZR_(message_set_wire_format_, deprecated_);
5695 :
5696 : #undef OFFSET_OF_FIELD_
5697 : #undef ZR_
5698 :
5699 0 : uninterpreted_option_.Clear();
5700 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
5701 0 : mutable_unknown_fields()->Clear();
5702 0 : }
5703 :
5704 0 : bool MessageOptions::MergePartialFromCodedStream(
5705 : ::google::protobuf::io::CodedInputStream* input) {
5706 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
5707 : ::google::protobuf::uint32 tag;
5708 : // @@protoc_insertion_point(parse_start:google.protobuf.MessageOptions)
5709 : for (;;) {
5710 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
5711 0 : tag = p.first;
5712 0 : if (!p.second) goto handle_unusual;
5713 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5714 : // optional bool message_set_wire_format = 1 [default = false];
5715 : case 1: {
5716 0 : if (tag == 8) {
5717 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5718 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5719 : input, &message_set_wire_format_)));
5720 0 : set_has_message_set_wire_format();
5721 : } else {
5722 0 : goto handle_unusual;
5723 : }
5724 0 : if (input->ExpectTag(16)) goto parse_no_standard_descriptor_accessor;
5725 0 : break;
5726 : }
5727 :
5728 : // optional bool no_standard_descriptor_accessor = 2 [default = false];
5729 : case 2: {
5730 0 : if (tag == 16) {
5731 : parse_no_standard_descriptor_accessor:
5732 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5733 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5734 : input, &no_standard_descriptor_accessor_)));
5735 0 : set_has_no_standard_descriptor_accessor();
5736 : } else {
5737 0 : goto handle_unusual;
5738 : }
5739 0 : if (input->ExpectTag(24)) goto parse_deprecated;
5740 0 : break;
5741 : }
5742 :
5743 : // optional bool deprecated = 3 [default = false];
5744 : case 3: {
5745 0 : if (tag == 24) {
5746 : parse_deprecated:
5747 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5748 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5749 : input, &deprecated_)));
5750 0 : set_has_deprecated();
5751 : } else {
5752 0 : goto handle_unusual;
5753 : }
5754 0 : if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
5755 0 : break;
5756 : }
5757 :
5758 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5759 : case 999: {
5760 0 : if (tag == 7994) {
5761 : parse_uninterpreted_option:
5762 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5763 : input, add_uninterpreted_option()));
5764 : } else {
5765 0 : goto handle_unusual;
5766 : }
5767 0 : if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
5768 0 : if (input->ExpectAtEnd()) goto success;
5769 0 : break;
5770 : }
5771 :
5772 : default: {
5773 : handle_unusual:
5774 0 : if (tag == 0 ||
5775 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5776 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5777 0 : goto success;
5778 : }
5779 0 : if ((8000u <= tag)) {
5780 0 : DO_(_extensions_.ParseField(tag, input, default_instance_,
5781 : mutable_unknown_fields()));
5782 0 : continue;
5783 : }
5784 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
5785 : input, tag, mutable_unknown_fields()));
5786 0 : break;
5787 : }
5788 : }
5789 0 : }
5790 : success:
5791 : // @@protoc_insertion_point(parse_success:google.protobuf.MessageOptions)
5792 0 : return true;
5793 : failure:
5794 : // @@protoc_insertion_point(parse_failure:google.protobuf.MessageOptions)
5795 0 : return false;
5796 : #undef DO_
5797 : }
5798 :
5799 0 : void MessageOptions::SerializeWithCachedSizes(
5800 : ::google::protobuf::io::CodedOutputStream* output) const {
5801 : // @@protoc_insertion_point(serialize_start:google.protobuf.MessageOptions)
5802 : // optional bool message_set_wire_format = 1 [default = false];
5803 0 : if (has_message_set_wire_format()) {
5804 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->message_set_wire_format(), output);
5805 : }
5806 :
5807 : // optional bool no_standard_descriptor_accessor = 2 [default = false];
5808 0 : if (has_no_standard_descriptor_accessor()) {
5809 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->no_standard_descriptor_accessor(), output);
5810 : }
5811 :
5812 : // optional bool deprecated = 3 [default = false];
5813 0 : if (has_deprecated()) {
5814 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output);
5815 : }
5816 :
5817 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5818 0 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
5819 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5820 0 : 999, this->uninterpreted_option(i), output);
5821 : }
5822 :
5823 : // Extension range [1000, 536870912)
5824 0 : _extensions_.SerializeWithCachedSizes(
5825 0 : 1000, 536870912, output);
5826 :
5827 0 : if (!unknown_fields().empty()) {
5828 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5829 0 : unknown_fields(), output);
5830 : }
5831 : // @@protoc_insertion_point(serialize_end:google.protobuf.MessageOptions)
5832 0 : }
5833 :
5834 0 : ::google::protobuf::uint8* MessageOptions::SerializeWithCachedSizesToArray(
5835 : ::google::protobuf::uint8* target) const {
5836 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MessageOptions)
5837 : // optional bool message_set_wire_format = 1 [default = false];
5838 0 : if (has_message_set_wire_format()) {
5839 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->message_set_wire_format(), target);
5840 : }
5841 :
5842 : // optional bool no_standard_descriptor_accessor = 2 [default = false];
5843 0 : if (has_no_standard_descriptor_accessor()) {
5844 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->no_standard_descriptor_accessor(), target);
5845 : }
5846 :
5847 : // optional bool deprecated = 3 [default = false];
5848 0 : if (has_deprecated()) {
5849 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target);
5850 : }
5851 :
5852 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5853 0 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
5854 : target = ::google::protobuf::internal::WireFormatLite::
5855 0 : WriteMessageNoVirtualToArray(
5856 0 : 999, this->uninterpreted_option(i), target);
5857 : }
5858 :
5859 : // Extension range [1000, 536870912)
5860 0 : target = _extensions_.SerializeWithCachedSizesToArray(
5861 0 : 1000, 536870912, target);
5862 :
5863 0 : if (!unknown_fields().empty()) {
5864 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5865 0 : unknown_fields(), target);
5866 : }
5867 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MessageOptions)
5868 0 : return target;
5869 : }
5870 :
5871 0 : int MessageOptions::ByteSize() const {
5872 0 : int total_size = 0;
5873 :
5874 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5875 : // optional bool message_set_wire_format = 1 [default = false];
5876 0 : if (has_message_set_wire_format()) {
5877 0 : total_size += 1 + 1;
5878 : }
5879 :
5880 : // optional bool no_standard_descriptor_accessor = 2 [default = false];
5881 0 : if (has_no_standard_descriptor_accessor()) {
5882 0 : total_size += 1 + 1;
5883 : }
5884 :
5885 : // optional bool deprecated = 3 [default = false];
5886 0 : if (has_deprecated()) {
5887 0 : total_size += 1 + 1;
5888 : }
5889 :
5890 : }
5891 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5892 0 : total_size += 2 * this->uninterpreted_option_size();
5893 0 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
5894 0 : total_size +=
5895 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5896 : this->uninterpreted_option(i));
5897 : }
5898 :
5899 0 : total_size += _extensions_.ByteSize();
5900 :
5901 0 : if (!unknown_fields().empty()) {
5902 0 : total_size +=
5903 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5904 : unknown_fields());
5905 : }
5906 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5907 0 : _cached_size_ = total_size;
5908 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
5909 0 : return total_size;
5910 : }
5911 :
5912 0 : void MessageOptions::MergeFrom(const ::google::protobuf::Message& from) {
5913 0 : GOOGLE_CHECK_NE(&from, this);
5914 : const MessageOptions* source =
5915 : ::google::protobuf::internal::dynamic_cast_if_available<const MessageOptions*>(
5916 0 : &from);
5917 0 : if (source == NULL) {
5918 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5919 : } else {
5920 0 : MergeFrom(*source);
5921 : }
5922 0 : }
5923 :
5924 0 : void MessageOptions::MergeFrom(const MessageOptions& from) {
5925 0 : GOOGLE_CHECK_NE(&from, this);
5926 0 : uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
5927 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5928 0 : if (from.has_message_set_wire_format()) {
5929 0 : set_message_set_wire_format(from.message_set_wire_format());
5930 : }
5931 0 : if (from.has_no_standard_descriptor_accessor()) {
5932 0 : set_no_standard_descriptor_accessor(from.no_standard_descriptor_accessor());
5933 : }
5934 0 : if (from.has_deprecated()) {
5935 0 : set_deprecated(from.deprecated());
5936 : }
5937 : }
5938 0 : _extensions_.MergeFrom(from._extensions_);
5939 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5940 0 : }
5941 :
5942 0 : void MessageOptions::CopyFrom(const ::google::protobuf::Message& from) {
5943 0 : if (&from == this) return;
5944 0 : Clear();
5945 0 : MergeFrom(from);
5946 : }
5947 :
5948 0 : void MessageOptions::CopyFrom(const MessageOptions& from) {
5949 0 : if (&from == this) return;
5950 0 : Clear();
5951 0 : MergeFrom(from);
5952 : }
5953 :
5954 0 : bool MessageOptions::IsInitialized() const {
5955 :
5956 0 : if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
5957 :
5958 0 : if (!_extensions_.IsInitialized()) return false; return true;
5959 : }
5960 :
5961 0 : void MessageOptions::Swap(MessageOptions* other) {
5962 0 : if (other != this) {
5963 0 : std::swap(message_set_wire_format_, other->message_set_wire_format_);
5964 0 : std::swap(no_standard_descriptor_accessor_, other->no_standard_descriptor_accessor_);
5965 0 : std::swap(deprecated_, other->deprecated_);
5966 0 : uninterpreted_option_.Swap(&other->uninterpreted_option_);
5967 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
5968 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
5969 0 : std::swap(_cached_size_, other->_cached_size_);
5970 0 : _extensions_.Swap(&other->_extensions_);
5971 : }
5972 0 : }
5973 :
5974 0 : ::google::protobuf::Metadata MessageOptions::GetMetadata() const {
5975 0 : protobuf_AssignDescriptorsOnce();
5976 : ::google::protobuf::Metadata metadata;
5977 0 : metadata.descriptor = MessageOptions_descriptor_;
5978 0 : metadata.reflection = MessageOptions_reflection_;
5979 0 : return metadata;
5980 : }
5981 :
5982 :
5983 : // ===================================================================
5984 :
5985 0 : const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor() {
5986 0 : protobuf_AssignDescriptorsOnce();
5987 0 : return FieldOptions_CType_descriptor_;
5988 : }
5989 0 : bool FieldOptions_CType_IsValid(int value) {
5990 0 : switch(value) {
5991 : case 0:
5992 : case 1:
5993 : case 2:
5994 0 : return true;
5995 : default:
5996 0 : return false;
5997 : }
5998 : }
5999 :
6000 : #ifndef _MSC_VER
6001 : const FieldOptions_CType FieldOptions::STRING;
6002 : const FieldOptions_CType FieldOptions::CORD;
6003 : const FieldOptions_CType FieldOptions::STRING_PIECE;
6004 : const FieldOptions_CType FieldOptions::CType_MIN;
6005 : const FieldOptions_CType FieldOptions::CType_MAX;
6006 : const int FieldOptions::CType_ARRAYSIZE;
6007 : #endif // _MSC_VER
6008 : #ifndef _MSC_VER
6009 : const int FieldOptions::kCtypeFieldNumber;
6010 : const int FieldOptions::kPackedFieldNumber;
6011 : const int FieldOptions::kLazyFieldNumber;
6012 : const int FieldOptions::kDeprecatedFieldNumber;
6013 : const int FieldOptions::kExperimentalMapKeyFieldNumber;
6014 : const int FieldOptions::kWeakFieldNumber;
6015 : const int FieldOptions::kUninterpretedOptionFieldNumber;
6016 : #endif // !_MSC_VER
6017 :
6018 9 : FieldOptions::FieldOptions()
6019 9 : : ::google::protobuf::Message() {
6020 9 : SharedCtor();
6021 : // @@protoc_insertion_point(constructor:google.protobuf.FieldOptions)
6022 9 : }
6023 :
6024 3 : void FieldOptions::InitAsDefaultInstance() {
6025 3 : }
6026 :
6027 0 : FieldOptions::FieldOptions(const FieldOptions& from)
6028 0 : : ::google::protobuf::Message() {
6029 0 : SharedCtor();
6030 0 : MergeFrom(from);
6031 : // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldOptions)
6032 0 : }
6033 :
6034 9 : void FieldOptions::SharedCtor() {
6035 9 : ::google::protobuf::internal::GetEmptyString();
6036 9 : _cached_size_ = 0;
6037 9 : ctype_ = 0;
6038 9 : packed_ = false;
6039 9 : lazy_ = false;
6040 9 : deprecated_ = false;
6041 9 : experimental_map_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6042 9 : weak_ = false;
6043 9 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
6044 9 : }
6045 :
6046 18 : FieldOptions::~FieldOptions() {
6047 : // @@protoc_insertion_point(destructor:google.protobuf.FieldOptions)
6048 6 : SharedDtor();
6049 18 : }
6050 :
6051 6 : void FieldOptions::SharedDtor() {
6052 6 : if (experimental_map_key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6053 0 : delete experimental_map_key_;
6054 : }
6055 6 : if (this != default_instance_) {
6056 : }
6057 6 : }
6058 :
6059 0 : void FieldOptions::SetCachedSize(int size) const {
6060 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6061 0 : _cached_size_ = size;
6062 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
6063 0 : }
6064 0 : const ::google::protobuf::Descriptor* FieldOptions::descriptor() {
6065 0 : protobuf_AssignDescriptorsOnce();
6066 0 : return FieldOptions_descriptor_;
6067 : }
6068 :
6069 3 : const FieldOptions& FieldOptions::default_instance() {
6070 3 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
6071 3 : return *default_instance_;
6072 : }
6073 :
6074 : FieldOptions* FieldOptions::default_instance_ = NULL;
6075 :
6076 0 : FieldOptions* FieldOptions::New() const {
6077 0 : return new FieldOptions;
6078 : }
6079 :
6080 0 : void FieldOptions::Clear() {
6081 0 : _extensions_.Clear();
6082 : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
6083 : &reinterpret_cast<FieldOptions*>(16)->f) - \
6084 : reinterpret_cast<char*>(16))
6085 :
6086 : #define ZR_(first, last) do { \
6087 : size_t f = OFFSET_OF_FIELD_(first); \
6088 : size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
6089 : ::memset(&first, 0, n); \
6090 : } while (0)
6091 :
6092 0 : if (_has_bits_[0 / 32] & 63) {
6093 0 : ZR_(ctype_, weak_);
6094 0 : if (has_experimental_map_key()) {
6095 0 : if (experimental_map_key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6096 0 : experimental_map_key_->clear();
6097 : }
6098 : }
6099 : }
6100 :
6101 : #undef OFFSET_OF_FIELD_
6102 : #undef ZR_
6103 :
6104 0 : uninterpreted_option_.Clear();
6105 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
6106 0 : mutable_unknown_fields()->Clear();
6107 0 : }
6108 :
6109 12 : bool FieldOptions::MergePartialFromCodedStream(
6110 : ::google::protobuf::io::CodedInputStream* input) {
6111 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
6112 : ::google::protobuf::uint32 tag;
6113 : // @@protoc_insertion_point(parse_start:google.protobuf.FieldOptions)
6114 : for (;;) {
6115 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
6116 12 : tag = p.first;
6117 12 : if (!p.second) goto handle_unusual;
6118 6 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6119 : // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
6120 : case 1: {
6121 0 : if (tag == 8) {
6122 : int value;
6123 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6124 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6125 : input, &value)));
6126 0 : if (::google::protobuf::FieldOptions_CType_IsValid(value)) {
6127 0 : set_ctype(static_cast< ::google::protobuf::FieldOptions_CType >(value));
6128 : } else {
6129 0 : mutable_unknown_fields()->AddVarint(1, value);
6130 : }
6131 : } else {
6132 0 : goto handle_unusual;
6133 : }
6134 0 : if (input->ExpectTag(16)) goto parse_packed;
6135 0 : break;
6136 : }
6137 :
6138 : // optional bool packed = 2;
6139 : case 2: {
6140 6 : if (tag == 16) {
6141 : parse_packed:
6142 12 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6143 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6144 : input, &packed_)));
6145 6 : set_has_packed();
6146 : } else {
6147 0 : goto handle_unusual;
6148 : }
6149 6 : if (input->ExpectTag(24)) goto parse_deprecated;
6150 6 : break;
6151 : }
6152 :
6153 : // optional bool deprecated = 3 [default = false];
6154 : case 3: {
6155 0 : if (tag == 24) {
6156 : parse_deprecated:
6157 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6158 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6159 : input, &deprecated_)));
6160 0 : set_has_deprecated();
6161 : } else {
6162 0 : goto handle_unusual;
6163 : }
6164 0 : if (input->ExpectTag(40)) goto parse_lazy;
6165 0 : break;
6166 : }
6167 :
6168 : // optional bool lazy = 5 [default = false];
6169 : case 5: {
6170 0 : if (tag == 40) {
6171 : parse_lazy:
6172 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6173 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6174 : input, &lazy_)));
6175 0 : set_has_lazy();
6176 : } else {
6177 0 : goto handle_unusual;
6178 : }
6179 0 : if (input->ExpectTag(74)) goto parse_experimental_map_key;
6180 0 : break;
6181 : }
6182 :
6183 : // optional string experimental_map_key = 9;
6184 : case 9: {
6185 0 : if (tag == 74) {
6186 : parse_experimental_map_key:
6187 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6188 : input, this->mutable_experimental_map_key()));
6189 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6190 0 : this->experimental_map_key().data(), this->experimental_map_key().length(),
6191 : ::google::protobuf::internal::WireFormat::PARSE,
6192 0 : "experimental_map_key");
6193 : } else {
6194 0 : goto handle_unusual;
6195 : }
6196 0 : if (input->ExpectTag(80)) goto parse_weak;
6197 0 : break;
6198 : }
6199 :
6200 : // optional bool weak = 10 [default = false];
6201 : case 10: {
6202 0 : if (tag == 80) {
6203 : parse_weak:
6204 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6205 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6206 : input, &weak_)));
6207 0 : set_has_weak();
6208 : } else {
6209 0 : goto handle_unusual;
6210 : }
6211 0 : if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
6212 0 : break;
6213 : }
6214 :
6215 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6216 : case 999: {
6217 0 : if (tag == 7994) {
6218 : parse_uninterpreted_option:
6219 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6220 : input, add_uninterpreted_option()));
6221 : } else {
6222 0 : goto handle_unusual;
6223 : }
6224 0 : if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
6225 6 : if (input->ExpectAtEnd()) goto success;
6226 0 : break;
6227 : }
6228 :
6229 : default: {
6230 : handle_unusual:
6231 6 : if (tag == 0 ||
6232 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6233 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6234 6 : goto success;
6235 : }
6236 0 : if ((8000u <= tag)) {
6237 0 : DO_(_extensions_.ParseField(tag, input, default_instance_,
6238 : mutable_unknown_fields()));
6239 0 : continue;
6240 : }
6241 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
6242 : input, tag, mutable_unknown_fields()));
6243 0 : break;
6244 : }
6245 : }
6246 6 : }
6247 : success:
6248 : // @@protoc_insertion_point(parse_success:google.protobuf.FieldOptions)
6249 6 : return true;
6250 : failure:
6251 : // @@protoc_insertion_point(parse_failure:google.protobuf.FieldOptions)
6252 0 : return false;
6253 : #undef DO_
6254 : }
6255 :
6256 0 : void FieldOptions::SerializeWithCachedSizes(
6257 : ::google::protobuf::io::CodedOutputStream* output) const {
6258 : // @@protoc_insertion_point(serialize_start:google.protobuf.FieldOptions)
6259 : // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
6260 0 : if (has_ctype()) {
6261 0 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
6262 0 : 1, this->ctype(), output);
6263 : }
6264 :
6265 : // optional bool packed = 2;
6266 0 : if (has_packed()) {
6267 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->packed(), output);
6268 : }
6269 :
6270 : // optional bool deprecated = 3 [default = false];
6271 0 : if (has_deprecated()) {
6272 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output);
6273 : }
6274 :
6275 : // optional bool lazy = 5 [default = false];
6276 0 : if (has_lazy()) {
6277 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->lazy(), output);
6278 : }
6279 :
6280 : // optional string experimental_map_key = 9;
6281 0 : if (has_experimental_map_key()) {
6282 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6283 0 : this->experimental_map_key().data(), this->experimental_map_key().length(),
6284 : ::google::protobuf::internal::WireFormat::SERIALIZE,
6285 0 : "experimental_map_key");
6286 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6287 0 : 9, this->experimental_map_key(), output);
6288 : }
6289 :
6290 : // optional bool weak = 10 [default = false];
6291 0 : if (has_weak()) {
6292 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->weak(), output);
6293 : }
6294 :
6295 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6296 0 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
6297 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6298 0 : 999, this->uninterpreted_option(i), output);
6299 : }
6300 :
6301 : // Extension range [1000, 536870912)
6302 0 : _extensions_.SerializeWithCachedSizes(
6303 0 : 1000, 536870912, output);
6304 :
6305 0 : if (!unknown_fields().empty()) {
6306 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6307 0 : unknown_fields(), output);
6308 : }
6309 : // @@protoc_insertion_point(serialize_end:google.protobuf.FieldOptions)
6310 0 : }
6311 :
6312 0 : ::google::protobuf::uint8* FieldOptions::SerializeWithCachedSizesToArray(
6313 : ::google::protobuf::uint8* target) const {
6314 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldOptions)
6315 : // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
6316 0 : if (has_ctype()) {
6317 0 : target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6318 0 : 1, this->ctype(), target);
6319 : }
6320 :
6321 : // optional bool packed = 2;
6322 0 : if (has_packed()) {
6323 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->packed(), target);
6324 : }
6325 :
6326 : // optional bool deprecated = 3 [default = false];
6327 0 : if (has_deprecated()) {
6328 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target);
6329 : }
6330 :
6331 : // optional bool lazy = 5 [default = false];
6332 0 : if (has_lazy()) {
6333 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->lazy(), target);
6334 : }
6335 :
6336 : // optional string experimental_map_key = 9;
6337 0 : if (has_experimental_map_key()) {
6338 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6339 0 : this->experimental_map_key().data(), this->experimental_map_key().length(),
6340 : ::google::protobuf::internal::WireFormat::SERIALIZE,
6341 0 : "experimental_map_key");
6342 : target =
6343 0 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6344 0 : 9, this->experimental_map_key(), target);
6345 : }
6346 :
6347 : // optional bool weak = 10 [default = false];
6348 0 : if (has_weak()) {
6349 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->weak(), target);
6350 : }
6351 :
6352 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6353 0 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
6354 : target = ::google::protobuf::internal::WireFormatLite::
6355 0 : WriteMessageNoVirtualToArray(
6356 0 : 999, this->uninterpreted_option(i), target);
6357 : }
6358 :
6359 : // Extension range [1000, 536870912)
6360 0 : target = _extensions_.SerializeWithCachedSizesToArray(
6361 0 : 1000, 536870912, target);
6362 :
6363 0 : if (!unknown_fields().empty()) {
6364 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6365 0 : unknown_fields(), target);
6366 : }
6367 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldOptions)
6368 0 : return target;
6369 : }
6370 :
6371 0 : int FieldOptions::ByteSize() const {
6372 0 : int total_size = 0;
6373 :
6374 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6375 : // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
6376 0 : if (has_ctype()) {
6377 0 : total_size += 1 +
6378 0 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->ctype());
6379 : }
6380 :
6381 : // optional bool packed = 2;
6382 0 : if (has_packed()) {
6383 0 : total_size += 1 + 1;
6384 : }
6385 :
6386 : // optional bool lazy = 5 [default = false];
6387 0 : if (has_lazy()) {
6388 0 : total_size += 1 + 1;
6389 : }
6390 :
6391 : // optional bool deprecated = 3 [default = false];
6392 0 : if (has_deprecated()) {
6393 0 : total_size += 1 + 1;
6394 : }
6395 :
6396 : // optional string experimental_map_key = 9;
6397 0 : if (has_experimental_map_key()) {
6398 0 : total_size += 1 +
6399 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
6400 : this->experimental_map_key());
6401 : }
6402 :
6403 : // optional bool weak = 10 [default = false];
6404 0 : if (has_weak()) {
6405 0 : total_size += 1 + 1;
6406 : }
6407 :
6408 : }
6409 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6410 0 : total_size += 2 * this->uninterpreted_option_size();
6411 0 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
6412 0 : total_size +=
6413 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6414 : this->uninterpreted_option(i));
6415 : }
6416 :
6417 0 : total_size += _extensions_.ByteSize();
6418 :
6419 0 : if (!unknown_fields().empty()) {
6420 0 : total_size +=
6421 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6422 : unknown_fields());
6423 : }
6424 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6425 0 : _cached_size_ = total_size;
6426 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
6427 0 : return total_size;
6428 : }
6429 :
6430 0 : void FieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
6431 0 : GOOGLE_CHECK_NE(&from, this);
6432 : const FieldOptions* source =
6433 : ::google::protobuf::internal::dynamic_cast_if_available<const FieldOptions*>(
6434 0 : &from);
6435 0 : if (source == NULL) {
6436 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6437 : } else {
6438 0 : MergeFrom(*source);
6439 : }
6440 0 : }
6441 :
6442 0 : void FieldOptions::MergeFrom(const FieldOptions& from) {
6443 0 : GOOGLE_CHECK_NE(&from, this);
6444 0 : uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
6445 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6446 0 : if (from.has_ctype()) {
6447 0 : set_ctype(from.ctype());
6448 : }
6449 0 : if (from.has_packed()) {
6450 0 : set_packed(from.packed());
6451 : }
6452 0 : if (from.has_lazy()) {
6453 0 : set_lazy(from.lazy());
6454 : }
6455 0 : if (from.has_deprecated()) {
6456 0 : set_deprecated(from.deprecated());
6457 : }
6458 0 : if (from.has_experimental_map_key()) {
6459 0 : set_experimental_map_key(from.experimental_map_key());
6460 : }
6461 0 : if (from.has_weak()) {
6462 0 : set_weak(from.weak());
6463 : }
6464 : }
6465 0 : _extensions_.MergeFrom(from._extensions_);
6466 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6467 0 : }
6468 :
6469 0 : void FieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
6470 0 : if (&from == this) return;
6471 0 : Clear();
6472 0 : MergeFrom(from);
6473 : }
6474 :
6475 0 : void FieldOptions::CopyFrom(const FieldOptions& from) {
6476 0 : if (&from == this) return;
6477 0 : Clear();
6478 0 : MergeFrom(from);
6479 : }
6480 :
6481 6 : bool FieldOptions::IsInitialized() const {
6482 :
6483 6 : if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
6484 :
6485 6 : if (!_extensions_.IsInitialized()) return false; return true;
6486 : }
6487 :
6488 0 : void FieldOptions::Swap(FieldOptions* other) {
6489 0 : if (other != this) {
6490 0 : std::swap(ctype_, other->ctype_);
6491 0 : std::swap(packed_, other->packed_);
6492 0 : std::swap(lazy_, other->lazy_);
6493 0 : std::swap(deprecated_, other->deprecated_);
6494 0 : std::swap(experimental_map_key_, other->experimental_map_key_);
6495 0 : std::swap(weak_, other->weak_);
6496 0 : uninterpreted_option_.Swap(&other->uninterpreted_option_);
6497 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
6498 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
6499 0 : std::swap(_cached_size_, other->_cached_size_);
6500 0 : _extensions_.Swap(&other->_extensions_);
6501 : }
6502 0 : }
6503 :
6504 0 : ::google::protobuf::Metadata FieldOptions::GetMetadata() const {
6505 0 : protobuf_AssignDescriptorsOnce();
6506 : ::google::protobuf::Metadata metadata;
6507 0 : metadata.descriptor = FieldOptions_descriptor_;
6508 0 : metadata.reflection = FieldOptions_reflection_;
6509 0 : return metadata;
6510 : }
6511 :
6512 :
6513 : // ===================================================================
6514 :
6515 : #ifndef _MSC_VER
6516 : const int EnumOptions::kAllowAliasFieldNumber;
6517 : const int EnumOptions::kDeprecatedFieldNumber;
6518 : const int EnumOptions::kUninterpretedOptionFieldNumber;
6519 : #endif // !_MSC_VER
6520 :
6521 3 : EnumOptions::EnumOptions()
6522 3 : : ::google::protobuf::Message() {
6523 3 : SharedCtor();
6524 : // @@protoc_insertion_point(constructor:google.protobuf.EnumOptions)
6525 3 : }
6526 :
6527 3 : void EnumOptions::InitAsDefaultInstance() {
6528 3 : }
6529 :
6530 0 : EnumOptions::EnumOptions(const EnumOptions& from)
6531 0 : : ::google::protobuf::Message() {
6532 0 : SharedCtor();
6533 0 : MergeFrom(from);
6534 : // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumOptions)
6535 0 : }
6536 :
6537 3 : void EnumOptions::SharedCtor() {
6538 3 : _cached_size_ = 0;
6539 3 : allow_alias_ = false;
6540 3 : deprecated_ = false;
6541 3 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
6542 3 : }
6543 :
6544 0 : EnumOptions::~EnumOptions() {
6545 : // @@protoc_insertion_point(destructor:google.protobuf.EnumOptions)
6546 0 : SharedDtor();
6547 0 : }
6548 :
6549 0 : void EnumOptions::SharedDtor() {
6550 0 : if (this != default_instance_) {
6551 : }
6552 0 : }
6553 :
6554 0 : void EnumOptions::SetCachedSize(int size) const {
6555 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6556 0 : _cached_size_ = size;
6557 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
6558 0 : }
6559 0 : const ::google::protobuf::Descriptor* EnumOptions::descriptor() {
6560 0 : protobuf_AssignDescriptorsOnce();
6561 0 : return EnumOptions_descriptor_;
6562 : }
6563 :
6564 3 : const EnumOptions& EnumOptions::default_instance() {
6565 3 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
6566 3 : return *default_instance_;
6567 : }
6568 :
6569 : EnumOptions* EnumOptions::default_instance_ = NULL;
6570 :
6571 0 : EnumOptions* EnumOptions::New() const {
6572 0 : return new EnumOptions;
6573 : }
6574 :
6575 0 : void EnumOptions::Clear() {
6576 0 : _extensions_.Clear();
6577 : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
6578 : &reinterpret_cast<EnumOptions*>(16)->f) - \
6579 : reinterpret_cast<char*>(16))
6580 :
6581 : #define ZR_(first, last) do { \
6582 : size_t f = OFFSET_OF_FIELD_(first); \
6583 : size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
6584 : ::memset(&first, 0, n); \
6585 : } while (0)
6586 :
6587 0 : ZR_(allow_alias_, deprecated_);
6588 :
6589 : #undef OFFSET_OF_FIELD_
6590 : #undef ZR_
6591 :
6592 0 : uninterpreted_option_.Clear();
6593 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
6594 0 : mutable_unknown_fields()->Clear();
6595 0 : }
6596 :
6597 0 : bool EnumOptions::MergePartialFromCodedStream(
6598 : ::google::protobuf::io::CodedInputStream* input) {
6599 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
6600 : ::google::protobuf::uint32 tag;
6601 : // @@protoc_insertion_point(parse_start:google.protobuf.EnumOptions)
6602 : for (;;) {
6603 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
6604 0 : tag = p.first;
6605 0 : if (!p.second) goto handle_unusual;
6606 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6607 : // optional bool allow_alias = 2;
6608 : case 2: {
6609 0 : if (tag == 16) {
6610 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6611 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6612 : input, &allow_alias_)));
6613 0 : set_has_allow_alias();
6614 : } else {
6615 0 : goto handle_unusual;
6616 : }
6617 0 : if (input->ExpectTag(24)) goto parse_deprecated;
6618 0 : break;
6619 : }
6620 :
6621 : // optional bool deprecated = 3 [default = false];
6622 : case 3: {
6623 0 : if (tag == 24) {
6624 : parse_deprecated:
6625 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6626 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6627 : input, &deprecated_)));
6628 0 : set_has_deprecated();
6629 : } else {
6630 0 : goto handle_unusual;
6631 : }
6632 0 : if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
6633 0 : break;
6634 : }
6635 :
6636 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6637 : case 999: {
6638 0 : if (tag == 7994) {
6639 : parse_uninterpreted_option:
6640 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6641 : input, add_uninterpreted_option()));
6642 : } else {
6643 0 : goto handle_unusual;
6644 : }
6645 0 : if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
6646 0 : if (input->ExpectAtEnd()) goto success;
6647 0 : break;
6648 : }
6649 :
6650 : default: {
6651 : handle_unusual:
6652 0 : if (tag == 0 ||
6653 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6654 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6655 0 : goto success;
6656 : }
6657 0 : if ((8000u <= tag)) {
6658 0 : DO_(_extensions_.ParseField(tag, input, default_instance_,
6659 : mutable_unknown_fields()));
6660 0 : continue;
6661 : }
6662 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
6663 : input, tag, mutable_unknown_fields()));
6664 0 : break;
6665 : }
6666 : }
6667 0 : }
6668 : success:
6669 : // @@protoc_insertion_point(parse_success:google.protobuf.EnumOptions)
6670 0 : return true;
6671 : failure:
6672 : // @@protoc_insertion_point(parse_failure:google.protobuf.EnumOptions)
6673 0 : return false;
6674 : #undef DO_
6675 : }
6676 :
6677 0 : void EnumOptions::SerializeWithCachedSizes(
6678 : ::google::protobuf::io::CodedOutputStream* output) const {
6679 : // @@protoc_insertion_point(serialize_start:google.protobuf.EnumOptions)
6680 : // optional bool allow_alias = 2;
6681 0 : if (has_allow_alias()) {
6682 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->allow_alias(), output);
6683 : }
6684 :
6685 : // optional bool deprecated = 3 [default = false];
6686 0 : if (has_deprecated()) {
6687 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output);
6688 : }
6689 :
6690 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6691 0 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
6692 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6693 0 : 999, this->uninterpreted_option(i), output);
6694 : }
6695 :
6696 : // Extension range [1000, 536870912)
6697 0 : _extensions_.SerializeWithCachedSizes(
6698 0 : 1000, 536870912, output);
6699 :
6700 0 : if (!unknown_fields().empty()) {
6701 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6702 0 : unknown_fields(), output);
6703 : }
6704 : // @@protoc_insertion_point(serialize_end:google.protobuf.EnumOptions)
6705 0 : }
6706 :
6707 0 : ::google::protobuf::uint8* EnumOptions::SerializeWithCachedSizesToArray(
6708 : ::google::protobuf::uint8* target) const {
6709 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumOptions)
6710 : // optional bool allow_alias = 2;
6711 0 : if (has_allow_alias()) {
6712 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->allow_alias(), target);
6713 : }
6714 :
6715 : // optional bool deprecated = 3 [default = false];
6716 0 : if (has_deprecated()) {
6717 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target);
6718 : }
6719 :
6720 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6721 0 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
6722 : target = ::google::protobuf::internal::WireFormatLite::
6723 0 : WriteMessageNoVirtualToArray(
6724 0 : 999, this->uninterpreted_option(i), target);
6725 : }
6726 :
6727 : // Extension range [1000, 536870912)
6728 0 : target = _extensions_.SerializeWithCachedSizesToArray(
6729 0 : 1000, 536870912, target);
6730 :
6731 0 : if (!unknown_fields().empty()) {
6732 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6733 0 : unknown_fields(), target);
6734 : }
6735 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumOptions)
6736 0 : return target;
6737 : }
6738 :
6739 0 : int EnumOptions::ByteSize() const {
6740 0 : int total_size = 0;
6741 :
6742 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6743 : // optional bool allow_alias = 2;
6744 0 : if (has_allow_alias()) {
6745 0 : total_size += 1 + 1;
6746 : }
6747 :
6748 : // optional bool deprecated = 3 [default = false];
6749 0 : if (has_deprecated()) {
6750 0 : total_size += 1 + 1;
6751 : }
6752 :
6753 : }
6754 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6755 0 : total_size += 2 * this->uninterpreted_option_size();
6756 0 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
6757 0 : total_size +=
6758 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6759 : this->uninterpreted_option(i));
6760 : }
6761 :
6762 0 : total_size += _extensions_.ByteSize();
6763 :
6764 0 : if (!unknown_fields().empty()) {
6765 0 : total_size +=
6766 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6767 : unknown_fields());
6768 : }
6769 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6770 0 : _cached_size_ = total_size;
6771 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
6772 0 : return total_size;
6773 : }
6774 :
6775 0 : void EnumOptions::MergeFrom(const ::google::protobuf::Message& from) {
6776 0 : GOOGLE_CHECK_NE(&from, this);
6777 : const EnumOptions* source =
6778 : ::google::protobuf::internal::dynamic_cast_if_available<const EnumOptions*>(
6779 0 : &from);
6780 0 : if (source == NULL) {
6781 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6782 : } else {
6783 0 : MergeFrom(*source);
6784 : }
6785 0 : }
6786 :
6787 0 : void EnumOptions::MergeFrom(const EnumOptions& from) {
6788 0 : GOOGLE_CHECK_NE(&from, this);
6789 0 : uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
6790 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6791 0 : if (from.has_allow_alias()) {
6792 0 : set_allow_alias(from.allow_alias());
6793 : }
6794 0 : if (from.has_deprecated()) {
6795 0 : set_deprecated(from.deprecated());
6796 : }
6797 : }
6798 0 : _extensions_.MergeFrom(from._extensions_);
6799 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6800 0 : }
6801 :
6802 0 : void EnumOptions::CopyFrom(const ::google::protobuf::Message& from) {
6803 0 : if (&from == this) return;
6804 0 : Clear();
6805 0 : MergeFrom(from);
6806 : }
6807 :
6808 0 : void EnumOptions::CopyFrom(const EnumOptions& from) {
6809 0 : if (&from == this) return;
6810 0 : Clear();
6811 0 : MergeFrom(from);
6812 : }
6813 :
6814 0 : bool EnumOptions::IsInitialized() const {
6815 :
6816 0 : if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
6817 :
6818 0 : if (!_extensions_.IsInitialized()) return false; return true;
6819 : }
6820 :
6821 0 : void EnumOptions::Swap(EnumOptions* other) {
6822 0 : if (other != this) {
6823 0 : std::swap(allow_alias_, other->allow_alias_);
6824 0 : std::swap(deprecated_, other->deprecated_);
6825 0 : uninterpreted_option_.Swap(&other->uninterpreted_option_);
6826 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
6827 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
6828 0 : std::swap(_cached_size_, other->_cached_size_);
6829 0 : _extensions_.Swap(&other->_extensions_);
6830 : }
6831 0 : }
6832 :
6833 0 : ::google::protobuf::Metadata EnumOptions::GetMetadata() const {
6834 0 : protobuf_AssignDescriptorsOnce();
6835 : ::google::protobuf::Metadata metadata;
6836 0 : metadata.descriptor = EnumOptions_descriptor_;
6837 0 : metadata.reflection = EnumOptions_reflection_;
6838 0 : return metadata;
6839 : }
6840 :
6841 :
6842 : // ===================================================================
6843 :
6844 : #ifndef _MSC_VER
6845 : const int EnumValueOptions::kDeprecatedFieldNumber;
6846 : const int EnumValueOptions::kUninterpretedOptionFieldNumber;
6847 : #endif // !_MSC_VER
6848 :
6849 3 : EnumValueOptions::EnumValueOptions()
6850 3 : : ::google::protobuf::Message() {
6851 3 : SharedCtor();
6852 : // @@protoc_insertion_point(constructor:google.protobuf.EnumValueOptions)
6853 3 : }
6854 :
6855 3 : void EnumValueOptions::InitAsDefaultInstance() {
6856 3 : }
6857 :
6858 0 : EnumValueOptions::EnumValueOptions(const EnumValueOptions& from)
6859 0 : : ::google::protobuf::Message() {
6860 0 : SharedCtor();
6861 0 : MergeFrom(from);
6862 : // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueOptions)
6863 0 : }
6864 :
6865 3 : void EnumValueOptions::SharedCtor() {
6866 3 : _cached_size_ = 0;
6867 3 : deprecated_ = false;
6868 3 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
6869 3 : }
6870 :
6871 0 : EnumValueOptions::~EnumValueOptions() {
6872 : // @@protoc_insertion_point(destructor:google.protobuf.EnumValueOptions)
6873 0 : SharedDtor();
6874 0 : }
6875 :
6876 0 : void EnumValueOptions::SharedDtor() {
6877 0 : if (this != default_instance_) {
6878 : }
6879 0 : }
6880 :
6881 0 : void EnumValueOptions::SetCachedSize(int size) const {
6882 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6883 0 : _cached_size_ = size;
6884 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
6885 0 : }
6886 0 : const ::google::protobuf::Descriptor* EnumValueOptions::descriptor() {
6887 0 : protobuf_AssignDescriptorsOnce();
6888 0 : return EnumValueOptions_descriptor_;
6889 : }
6890 :
6891 3 : const EnumValueOptions& EnumValueOptions::default_instance() {
6892 3 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
6893 3 : return *default_instance_;
6894 : }
6895 :
6896 : EnumValueOptions* EnumValueOptions::default_instance_ = NULL;
6897 :
6898 0 : EnumValueOptions* EnumValueOptions::New() const {
6899 0 : return new EnumValueOptions;
6900 : }
6901 :
6902 0 : void EnumValueOptions::Clear() {
6903 0 : _extensions_.Clear();
6904 0 : deprecated_ = false;
6905 0 : uninterpreted_option_.Clear();
6906 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
6907 0 : mutable_unknown_fields()->Clear();
6908 0 : }
6909 :
6910 0 : bool EnumValueOptions::MergePartialFromCodedStream(
6911 : ::google::protobuf::io::CodedInputStream* input) {
6912 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
6913 : ::google::protobuf::uint32 tag;
6914 : // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueOptions)
6915 : for (;;) {
6916 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
6917 0 : tag = p.first;
6918 0 : if (!p.second) goto handle_unusual;
6919 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6920 : // optional bool deprecated = 1 [default = false];
6921 : case 1: {
6922 0 : if (tag == 8) {
6923 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6924 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6925 : input, &deprecated_)));
6926 0 : set_has_deprecated();
6927 : } else {
6928 0 : goto handle_unusual;
6929 : }
6930 0 : if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
6931 0 : break;
6932 : }
6933 :
6934 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6935 : case 999: {
6936 0 : if (tag == 7994) {
6937 : parse_uninterpreted_option:
6938 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6939 : input, add_uninterpreted_option()));
6940 : } else {
6941 0 : goto handle_unusual;
6942 : }
6943 0 : if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
6944 0 : if (input->ExpectAtEnd()) goto success;
6945 0 : break;
6946 : }
6947 :
6948 : default: {
6949 : handle_unusual:
6950 0 : if (tag == 0 ||
6951 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6952 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6953 0 : goto success;
6954 : }
6955 0 : if ((8000u <= tag)) {
6956 0 : DO_(_extensions_.ParseField(tag, input, default_instance_,
6957 : mutable_unknown_fields()));
6958 0 : continue;
6959 : }
6960 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
6961 : input, tag, mutable_unknown_fields()));
6962 0 : break;
6963 : }
6964 : }
6965 0 : }
6966 : success:
6967 : // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueOptions)
6968 0 : return true;
6969 : failure:
6970 : // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueOptions)
6971 0 : return false;
6972 : #undef DO_
6973 : }
6974 :
6975 0 : void EnumValueOptions::SerializeWithCachedSizes(
6976 : ::google::protobuf::io::CodedOutputStream* output) const {
6977 : // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueOptions)
6978 : // optional bool deprecated = 1 [default = false];
6979 0 : if (has_deprecated()) {
6980 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->deprecated(), output);
6981 : }
6982 :
6983 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6984 0 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
6985 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6986 0 : 999, this->uninterpreted_option(i), output);
6987 : }
6988 :
6989 : // Extension range [1000, 536870912)
6990 0 : _extensions_.SerializeWithCachedSizes(
6991 0 : 1000, 536870912, output);
6992 :
6993 0 : if (!unknown_fields().empty()) {
6994 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6995 0 : unknown_fields(), output);
6996 : }
6997 : // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueOptions)
6998 0 : }
6999 :
7000 0 : ::google::protobuf::uint8* EnumValueOptions::SerializeWithCachedSizesToArray(
7001 : ::google::protobuf::uint8* target) const {
7002 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueOptions)
7003 : // optional bool deprecated = 1 [default = false];
7004 0 : if (has_deprecated()) {
7005 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->deprecated(), target);
7006 : }
7007 :
7008 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
7009 0 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
7010 : target = ::google::protobuf::internal::WireFormatLite::
7011 0 : WriteMessageNoVirtualToArray(
7012 0 : 999, this->uninterpreted_option(i), target);
7013 : }
7014 :
7015 : // Extension range [1000, 536870912)
7016 0 : target = _extensions_.SerializeWithCachedSizesToArray(
7017 0 : 1000, 536870912, target);
7018 :
7019 0 : if (!unknown_fields().empty()) {
7020 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7021 0 : unknown_fields(), target);
7022 : }
7023 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueOptions)
7024 0 : return target;
7025 : }
7026 :
7027 0 : int EnumValueOptions::ByteSize() const {
7028 0 : int total_size = 0;
7029 :
7030 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
7031 : // optional bool deprecated = 1 [default = false];
7032 0 : if (has_deprecated()) {
7033 0 : total_size += 1 + 1;
7034 : }
7035 :
7036 : }
7037 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
7038 0 : total_size += 2 * this->uninterpreted_option_size();
7039 0 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
7040 0 : total_size +=
7041 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7042 : this->uninterpreted_option(i));
7043 : }
7044 :
7045 0 : total_size += _extensions_.ByteSize();
7046 :
7047 0 : if (!unknown_fields().empty()) {
7048 0 : total_size +=
7049 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7050 : unknown_fields());
7051 : }
7052 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7053 0 : _cached_size_ = total_size;
7054 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
7055 0 : return total_size;
7056 : }
7057 :
7058 0 : void EnumValueOptions::MergeFrom(const ::google::protobuf::Message& from) {
7059 0 : GOOGLE_CHECK_NE(&from, this);
7060 : const EnumValueOptions* source =
7061 : ::google::protobuf::internal::dynamic_cast_if_available<const EnumValueOptions*>(
7062 0 : &from);
7063 0 : if (source == NULL) {
7064 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7065 : } else {
7066 0 : MergeFrom(*source);
7067 : }
7068 0 : }
7069 :
7070 0 : void EnumValueOptions::MergeFrom(const EnumValueOptions& from) {
7071 0 : GOOGLE_CHECK_NE(&from, this);
7072 0 : uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
7073 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
7074 0 : if (from.has_deprecated()) {
7075 0 : set_deprecated(from.deprecated());
7076 : }
7077 : }
7078 0 : _extensions_.MergeFrom(from._extensions_);
7079 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
7080 0 : }
7081 :
7082 0 : void EnumValueOptions::CopyFrom(const ::google::protobuf::Message& from) {
7083 0 : if (&from == this) return;
7084 0 : Clear();
7085 0 : MergeFrom(from);
7086 : }
7087 :
7088 0 : void EnumValueOptions::CopyFrom(const EnumValueOptions& from) {
7089 0 : if (&from == this) return;
7090 0 : Clear();
7091 0 : MergeFrom(from);
7092 : }
7093 :
7094 0 : bool EnumValueOptions::IsInitialized() const {
7095 :
7096 0 : if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
7097 :
7098 0 : if (!_extensions_.IsInitialized()) return false; return true;
7099 : }
7100 :
7101 0 : void EnumValueOptions::Swap(EnumValueOptions* other) {
7102 0 : if (other != this) {
7103 0 : std::swap(deprecated_, other->deprecated_);
7104 0 : uninterpreted_option_.Swap(&other->uninterpreted_option_);
7105 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
7106 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
7107 0 : std::swap(_cached_size_, other->_cached_size_);
7108 0 : _extensions_.Swap(&other->_extensions_);
7109 : }
7110 0 : }
7111 :
7112 0 : ::google::protobuf::Metadata EnumValueOptions::GetMetadata() const {
7113 0 : protobuf_AssignDescriptorsOnce();
7114 : ::google::protobuf::Metadata metadata;
7115 0 : metadata.descriptor = EnumValueOptions_descriptor_;
7116 0 : metadata.reflection = EnumValueOptions_reflection_;
7117 0 : return metadata;
7118 : }
7119 :
7120 :
7121 : // ===================================================================
7122 :
7123 : #ifndef _MSC_VER
7124 : const int ServiceOptions::kDeprecatedFieldNumber;
7125 : const int ServiceOptions::kUninterpretedOptionFieldNumber;
7126 : #endif // !_MSC_VER
7127 :
7128 3 : ServiceOptions::ServiceOptions()
7129 3 : : ::google::protobuf::Message() {
7130 3 : SharedCtor();
7131 : // @@protoc_insertion_point(constructor:google.protobuf.ServiceOptions)
7132 3 : }
7133 :
7134 3 : void ServiceOptions::InitAsDefaultInstance() {
7135 3 : }
7136 :
7137 0 : ServiceOptions::ServiceOptions(const ServiceOptions& from)
7138 0 : : ::google::protobuf::Message() {
7139 0 : SharedCtor();
7140 0 : MergeFrom(from);
7141 : // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceOptions)
7142 0 : }
7143 :
7144 3 : void ServiceOptions::SharedCtor() {
7145 3 : _cached_size_ = 0;
7146 3 : deprecated_ = false;
7147 3 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
7148 3 : }
7149 :
7150 0 : ServiceOptions::~ServiceOptions() {
7151 : // @@protoc_insertion_point(destructor:google.protobuf.ServiceOptions)
7152 0 : SharedDtor();
7153 0 : }
7154 :
7155 0 : void ServiceOptions::SharedDtor() {
7156 0 : if (this != default_instance_) {
7157 : }
7158 0 : }
7159 :
7160 0 : void ServiceOptions::SetCachedSize(int size) const {
7161 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7162 0 : _cached_size_ = size;
7163 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
7164 0 : }
7165 0 : const ::google::protobuf::Descriptor* ServiceOptions::descriptor() {
7166 0 : protobuf_AssignDescriptorsOnce();
7167 0 : return ServiceOptions_descriptor_;
7168 : }
7169 :
7170 3 : const ServiceOptions& ServiceOptions::default_instance() {
7171 3 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
7172 3 : return *default_instance_;
7173 : }
7174 :
7175 : ServiceOptions* ServiceOptions::default_instance_ = NULL;
7176 :
7177 0 : ServiceOptions* ServiceOptions::New() const {
7178 0 : return new ServiceOptions;
7179 : }
7180 :
7181 0 : void ServiceOptions::Clear() {
7182 0 : _extensions_.Clear();
7183 0 : deprecated_ = false;
7184 0 : uninterpreted_option_.Clear();
7185 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
7186 0 : mutable_unknown_fields()->Clear();
7187 0 : }
7188 :
7189 0 : bool ServiceOptions::MergePartialFromCodedStream(
7190 : ::google::protobuf::io::CodedInputStream* input) {
7191 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
7192 : ::google::protobuf::uint32 tag;
7193 : // @@protoc_insertion_point(parse_start:google.protobuf.ServiceOptions)
7194 : for (;;) {
7195 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
7196 0 : tag = p.first;
7197 0 : if (!p.second) goto handle_unusual;
7198 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7199 : // optional bool deprecated = 33 [default = false];
7200 : case 33: {
7201 0 : if (tag == 264) {
7202 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7203 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7204 : input, &deprecated_)));
7205 0 : set_has_deprecated();
7206 : } else {
7207 0 : goto handle_unusual;
7208 : }
7209 0 : if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
7210 0 : break;
7211 : }
7212 :
7213 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
7214 : case 999: {
7215 0 : if (tag == 7994) {
7216 : parse_uninterpreted_option:
7217 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7218 : input, add_uninterpreted_option()));
7219 : } else {
7220 0 : goto handle_unusual;
7221 : }
7222 0 : if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
7223 0 : if (input->ExpectAtEnd()) goto success;
7224 0 : break;
7225 : }
7226 :
7227 : default: {
7228 : handle_unusual:
7229 0 : if (tag == 0 ||
7230 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7231 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
7232 0 : goto success;
7233 : }
7234 0 : if ((8000u <= tag)) {
7235 0 : DO_(_extensions_.ParseField(tag, input, default_instance_,
7236 : mutable_unknown_fields()));
7237 0 : continue;
7238 : }
7239 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
7240 : input, tag, mutable_unknown_fields()));
7241 0 : break;
7242 : }
7243 : }
7244 0 : }
7245 : success:
7246 : // @@protoc_insertion_point(parse_success:google.protobuf.ServiceOptions)
7247 0 : return true;
7248 : failure:
7249 : // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceOptions)
7250 0 : return false;
7251 : #undef DO_
7252 : }
7253 :
7254 0 : void ServiceOptions::SerializeWithCachedSizes(
7255 : ::google::protobuf::io::CodedOutputStream* output) const {
7256 : // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceOptions)
7257 : // optional bool deprecated = 33 [default = false];
7258 0 : if (has_deprecated()) {
7259 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated(), output);
7260 : }
7261 :
7262 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
7263 0 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
7264 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7265 0 : 999, this->uninterpreted_option(i), output);
7266 : }
7267 :
7268 : // Extension range [1000, 536870912)
7269 0 : _extensions_.SerializeWithCachedSizes(
7270 0 : 1000, 536870912, output);
7271 :
7272 0 : if (!unknown_fields().empty()) {
7273 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7274 0 : unknown_fields(), output);
7275 : }
7276 : // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceOptions)
7277 0 : }
7278 :
7279 0 : ::google::protobuf::uint8* ServiceOptions::SerializeWithCachedSizesToArray(
7280 : ::google::protobuf::uint8* target) const {
7281 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceOptions)
7282 : // optional bool deprecated = 33 [default = false];
7283 0 : if (has_deprecated()) {
7284 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target);
7285 : }
7286 :
7287 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
7288 0 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
7289 : target = ::google::protobuf::internal::WireFormatLite::
7290 0 : WriteMessageNoVirtualToArray(
7291 0 : 999, this->uninterpreted_option(i), target);
7292 : }
7293 :
7294 : // Extension range [1000, 536870912)
7295 0 : target = _extensions_.SerializeWithCachedSizesToArray(
7296 0 : 1000, 536870912, target);
7297 :
7298 0 : if (!unknown_fields().empty()) {
7299 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7300 0 : unknown_fields(), target);
7301 : }
7302 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceOptions)
7303 0 : return target;
7304 : }
7305 :
7306 0 : int ServiceOptions::ByteSize() const {
7307 0 : int total_size = 0;
7308 :
7309 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
7310 : // optional bool deprecated = 33 [default = false];
7311 0 : if (has_deprecated()) {
7312 0 : total_size += 2 + 1;
7313 : }
7314 :
7315 : }
7316 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
7317 0 : total_size += 2 * this->uninterpreted_option_size();
7318 0 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
7319 0 : total_size +=
7320 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7321 : this->uninterpreted_option(i));
7322 : }
7323 :
7324 0 : total_size += _extensions_.ByteSize();
7325 :
7326 0 : if (!unknown_fields().empty()) {
7327 0 : total_size +=
7328 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7329 : unknown_fields());
7330 : }
7331 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7332 0 : _cached_size_ = total_size;
7333 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
7334 0 : return total_size;
7335 : }
7336 :
7337 0 : void ServiceOptions::MergeFrom(const ::google::protobuf::Message& from) {
7338 0 : GOOGLE_CHECK_NE(&from, this);
7339 : const ServiceOptions* source =
7340 : ::google::protobuf::internal::dynamic_cast_if_available<const ServiceOptions*>(
7341 0 : &from);
7342 0 : if (source == NULL) {
7343 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7344 : } else {
7345 0 : MergeFrom(*source);
7346 : }
7347 0 : }
7348 :
7349 0 : void ServiceOptions::MergeFrom(const ServiceOptions& from) {
7350 0 : GOOGLE_CHECK_NE(&from, this);
7351 0 : uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
7352 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
7353 0 : if (from.has_deprecated()) {
7354 0 : set_deprecated(from.deprecated());
7355 : }
7356 : }
7357 0 : _extensions_.MergeFrom(from._extensions_);
7358 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
7359 0 : }
7360 :
7361 0 : void ServiceOptions::CopyFrom(const ::google::protobuf::Message& from) {
7362 0 : if (&from == this) return;
7363 0 : Clear();
7364 0 : MergeFrom(from);
7365 : }
7366 :
7367 0 : void ServiceOptions::CopyFrom(const ServiceOptions& from) {
7368 0 : if (&from == this) return;
7369 0 : Clear();
7370 0 : MergeFrom(from);
7371 : }
7372 :
7373 0 : bool ServiceOptions::IsInitialized() const {
7374 :
7375 0 : if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
7376 :
7377 0 : if (!_extensions_.IsInitialized()) return false; return true;
7378 : }
7379 :
7380 0 : void ServiceOptions::Swap(ServiceOptions* other) {
7381 0 : if (other != this) {
7382 0 : std::swap(deprecated_, other->deprecated_);
7383 0 : uninterpreted_option_.Swap(&other->uninterpreted_option_);
7384 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
7385 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
7386 0 : std::swap(_cached_size_, other->_cached_size_);
7387 0 : _extensions_.Swap(&other->_extensions_);
7388 : }
7389 0 : }
7390 :
7391 0 : ::google::protobuf::Metadata ServiceOptions::GetMetadata() const {
7392 0 : protobuf_AssignDescriptorsOnce();
7393 : ::google::protobuf::Metadata metadata;
7394 0 : metadata.descriptor = ServiceOptions_descriptor_;
7395 0 : metadata.reflection = ServiceOptions_reflection_;
7396 0 : return metadata;
7397 : }
7398 :
7399 :
7400 : // ===================================================================
7401 :
7402 : #ifndef _MSC_VER
7403 : const int MethodOptions::kDeprecatedFieldNumber;
7404 : const int MethodOptions::kUninterpretedOptionFieldNumber;
7405 : #endif // !_MSC_VER
7406 :
7407 3 : MethodOptions::MethodOptions()
7408 3 : : ::google::protobuf::Message() {
7409 3 : SharedCtor();
7410 : // @@protoc_insertion_point(constructor:google.protobuf.MethodOptions)
7411 3 : }
7412 :
7413 3 : void MethodOptions::InitAsDefaultInstance() {
7414 3 : }
7415 :
7416 0 : MethodOptions::MethodOptions(const MethodOptions& from)
7417 0 : : ::google::protobuf::Message() {
7418 0 : SharedCtor();
7419 0 : MergeFrom(from);
7420 : // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodOptions)
7421 0 : }
7422 :
7423 3 : void MethodOptions::SharedCtor() {
7424 3 : _cached_size_ = 0;
7425 3 : deprecated_ = false;
7426 3 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
7427 3 : }
7428 :
7429 0 : MethodOptions::~MethodOptions() {
7430 : // @@protoc_insertion_point(destructor:google.protobuf.MethodOptions)
7431 0 : SharedDtor();
7432 0 : }
7433 :
7434 0 : void MethodOptions::SharedDtor() {
7435 0 : if (this != default_instance_) {
7436 : }
7437 0 : }
7438 :
7439 0 : void MethodOptions::SetCachedSize(int size) const {
7440 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7441 0 : _cached_size_ = size;
7442 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
7443 0 : }
7444 0 : const ::google::protobuf::Descriptor* MethodOptions::descriptor() {
7445 0 : protobuf_AssignDescriptorsOnce();
7446 0 : return MethodOptions_descriptor_;
7447 : }
7448 :
7449 3 : const MethodOptions& MethodOptions::default_instance() {
7450 3 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
7451 3 : return *default_instance_;
7452 : }
7453 :
7454 : MethodOptions* MethodOptions::default_instance_ = NULL;
7455 :
7456 0 : MethodOptions* MethodOptions::New() const {
7457 0 : return new MethodOptions;
7458 : }
7459 :
7460 0 : void MethodOptions::Clear() {
7461 0 : _extensions_.Clear();
7462 0 : deprecated_ = false;
7463 0 : uninterpreted_option_.Clear();
7464 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
7465 0 : mutable_unknown_fields()->Clear();
7466 0 : }
7467 :
7468 0 : bool MethodOptions::MergePartialFromCodedStream(
7469 : ::google::protobuf::io::CodedInputStream* input) {
7470 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
7471 : ::google::protobuf::uint32 tag;
7472 : // @@protoc_insertion_point(parse_start:google.protobuf.MethodOptions)
7473 : for (;;) {
7474 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
7475 0 : tag = p.first;
7476 0 : if (!p.second) goto handle_unusual;
7477 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7478 : // optional bool deprecated = 33 [default = false];
7479 : case 33: {
7480 0 : if (tag == 264) {
7481 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7482 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7483 : input, &deprecated_)));
7484 0 : set_has_deprecated();
7485 : } else {
7486 0 : goto handle_unusual;
7487 : }
7488 0 : if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
7489 0 : break;
7490 : }
7491 :
7492 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
7493 : case 999: {
7494 0 : if (tag == 7994) {
7495 : parse_uninterpreted_option:
7496 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7497 : input, add_uninterpreted_option()));
7498 : } else {
7499 0 : goto handle_unusual;
7500 : }
7501 0 : if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
7502 0 : if (input->ExpectAtEnd()) goto success;
7503 0 : break;
7504 : }
7505 :
7506 : default: {
7507 : handle_unusual:
7508 0 : if (tag == 0 ||
7509 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7510 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
7511 0 : goto success;
7512 : }
7513 0 : if ((8000u <= tag)) {
7514 0 : DO_(_extensions_.ParseField(tag, input, default_instance_,
7515 : mutable_unknown_fields()));
7516 0 : continue;
7517 : }
7518 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
7519 : input, tag, mutable_unknown_fields()));
7520 0 : break;
7521 : }
7522 : }
7523 0 : }
7524 : success:
7525 : // @@protoc_insertion_point(parse_success:google.protobuf.MethodOptions)
7526 0 : return true;
7527 : failure:
7528 : // @@protoc_insertion_point(parse_failure:google.protobuf.MethodOptions)
7529 0 : return false;
7530 : #undef DO_
7531 : }
7532 :
7533 0 : void MethodOptions::SerializeWithCachedSizes(
7534 : ::google::protobuf::io::CodedOutputStream* output) const {
7535 : // @@protoc_insertion_point(serialize_start:google.protobuf.MethodOptions)
7536 : // optional bool deprecated = 33 [default = false];
7537 0 : if (has_deprecated()) {
7538 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated(), output);
7539 : }
7540 :
7541 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
7542 0 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
7543 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7544 0 : 999, this->uninterpreted_option(i), output);
7545 : }
7546 :
7547 : // Extension range [1000, 536870912)
7548 0 : _extensions_.SerializeWithCachedSizes(
7549 0 : 1000, 536870912, output);
7550 :
7551 0 : if (!unknown_fields().empty()) {
7552 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7553 0 : unknown_fields(), output);
7554 : }
7555 : // @@protoc_insertion_point(serialize_end:google.protobuf.MethodOptions)
7556 0 : }
7557 :
7558 0 : ::google::protobuf::uint8* MethodOptions::SerializeWithCachedSizesToArray(
7559 : ::google::protobuf::uint8* target) const {
7560 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodOptions)
7561 : // optional bool deprecated = 33 [default = false];
7562 0 : if (has_deprecated()) {
7563 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target);
7564 : }
7565 :
7566 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
7567 0 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
7568 : target = ::google::protobuf::internal::WireFormatLite::
7569 0 : WriteMessageNoVirtualToArray(
7570 0 : 999, this->uninterpreted_option(i), target);
7571 : }
7572 :
7573 : // Extension range [1000, 536870912)
7574 0 : target = _extensions_.SerializeWithCachedSizesToArray(
7575 0 : 1000, 536870912, target);
7576 :
7577 0 : if (!unknown_fields().empty()) {
7578 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7579 0 : unknown_fields(), target);
7580 : }
7581 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodOptions)
7582 0 : return target;
7583 : }
7584 :
7585 0 : int MethodOptions::ByteSize() const {
7586 0 : int total_size = 0;
7587 :
7588 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
7589 : // optional bool deprecated = 33 [default = false];
7590 0 : if (has_deprecated()) {
7591 0 : total_size += 2 + 1;
7592 : }
7593 :
7594 : }
7595 : // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
7596 0 : total_size += 2 * this->uninterpreted_option_size();
7597 0 : for (int i = 0; i < this->uninterpreted_option_size(); i++) {
7598 0 : total_size +=
7599 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7600 : this->uninterpreted_option(i));
7601 : }
7602 :
7603 0 : total_size += _extensions_.ByteSize();
7604 :
7605 0 : if (!unknown_fields().empty()) {
7606 0 : total_size +=
7607 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7608 : unknown_fields());
7609 : }
7610 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7611 0 : _cached_size_ = total_size;
7612 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
7613 0 : return total_size;
7614 : }
7615 :
7616 0 : void MethodOptions::MergeFrom(const ::google::protobuf::Message& from) {
7617 0 : GOOGLE_CHECK_NE(&from, this);
7618 : const MethodOptions* source =
7619 : ::google::protobuf::internal::dynamic_cast_if_available<const MethodOptions*>(
7620 0 : &from);
7621 0 : if (source == NULL) {
7622 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7623 : } else {
7624 0 : MergeFrom(*source);
7625 : }
7626 0 : }
7627 :
7628 0 : void MethodOptions::MergeFrom(const MethodOptions& from) {
7629 0 : GOOGLE_CHECK_NE(&from, this);
7630 0 : uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
7631 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
7632 0 : if (from.has_deprecated()) {
7633 0 : set_deprecated(from.deprecated());
7634 : }
7635 : }
7636 0 : _extensions_.MergeFrom(from._extensions_);
7637 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
7638 0 : }
7639 :
7640 0 : void MethodOptions::CopyFrom(const ::google::protobuf::Message& from) {
7641 0 : if (&from == this) return;
7642 0 : Clear();
7643 0 : MergeFrom(from);
7644 : }
7645 :
7646 0 : void MethodOptions::CopyFrom(const MethodOptions& from) {
7647 0 : if (&from == this) return;
7648 0 : Clear();
7649 0 : MergeFrom(from);
7650 : }
7651 :
7652 0 : bool MethodOptions::IsInitialized() const {
7653 :
7654 0 : if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
7655 :
7656 0 : if (!_extensions_.IsInitialized()) return false; return true;
7657 : }
7658 :
7659 0 : void MethodOptions::Swap(MethodOptions* other) {
7660 0 : if (other != this) {
7661 0 : std::swap(deprecated_, other->deprecated_);
7662 0 : uninterpreted_option_.Swap(&other->uninterpreted_option_);
7663 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
7664 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
7665 0 : std::swap(_cached_size_, other->_cached_size_);
7666 0 : _extensions_.Swap(&other->_extensions_);
7667 : }
7668 0 : }
7669 :
7670 0 : ::google::protobuf::Metadata MethodOptions::GetMetadata() const {
7671 0 : protobuf_AssignDescriptorsOnce();
7672 : ::google::protobuf::Metadata metadata;
7673 0 : metadata.descriptor = MethodOptions_descriptor_;
7674 0 : metadata.reflection = MethodOptions_reflection_;
7675 0 : return metadata;
7676 : }
7677 :
7678 :
7679 : // ===================================================================
7680 :
7681 : #ifndef _MSC_VER
7682 : const int UninterpretedOption_NamePart::kNamePartFieldNumber;
7683 : const int UninterpretedOption_NamePart::kIsExtensionFieldNumber;
7684 : #endif // !_MSC_VER
7685 :
7686 3 : UninterpretedOption_NamePart::UninterpretedOption_NamePart()
7687 3 : : ::google::protobuf::Message() {
7688 3 : SharedCtor();
7689 : // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption.NamePart)
7690 3 : }
7691 :
7692 3 : void UninterpretedOption_NamePart::InitAsDefaultInstance() {
7693 3 : }
7694 :
7695 0 : UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from)
7696 0 : : ::google::protobuf::Message() {
7697 0 : SharedCtor();
7698 0 : MergeFrom(from);
7699 : // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOption.NamePart)
7700 0 : }
7701 :
7702 3 : void UninterpretedOption_NamePart::SharedCtor() {
7703 3 : ::google::protobuf::internal::GetEmptyString();
7704 3 : _cached_size_ = 0;
7705 3 : name_part_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7706 3 : is_extension_ = false;
7707 3 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
7708 3 : }
7709 :
7710 0 : UninterpretedOption_NamePart::~UninterpretedOption_NamePart() {
7711 : // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption.NamePart)
7712 0 : SharedDtor();
7713 0 : }
7714 :
7715 0 : void UninterpretedOption_NamePart::SharedDtor() {
7716 0 : if (name_part_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
7717 0 : delete name_part_;
7718 : }
7719 0 : if (this != default_instance_) {
7720 : }
7721 0 : }
7722 :
7723 0 : void UninterpretedOption_NamePart::SetCachedSize(int size) const {
7724 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7725 0 : _cached_size_ = size;
7726 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
7727 0 : }
7728 0 : const ::google::protobuf::Descriptor* UninterpretedOption_NamePart::descriptor() {
7729 0 : protobuf_AssignDescriptorsOnce();
7730 0 : return UninterpretedOption_NamePart_descriptor_;
7731 : }
7732 :
7733 0 : const UninterpretedOption_NamePart& UninterpretedOption_NamePart::default_instance() {
7734 0 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
7735 0 : return *default_instance_;
7736 : }
7737 :
7738 : UninterpretedOption_NamePart* UninterpretedOption_NamePart::default_instance_ = NULL;
7739 :
7740 0 : UninterpretedOption_NamePart* UninterpretedOption_NamePart::New() const {
7741 0 : return new UninterpretedOption_NamePart;
7742 : }
7743 :
7744 0 : void UninterpretedOption_NamePart::Clear() {
7745 0 : if (_has_bits_[0 / 32] & 3) {
7746 0 : if (has_name_part()) {
7747 0 : if (name_part_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
7748 0 : name_part_->clear();
7749 : }
7750 : }
7751 0 : is_extension_ = false;
7752 : }
7753 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
7754 0 : mutable_unknown_fields()->Clear();
7755 0 : }
7756 :
7757 0 : bool UninterpretedOption_NamePart::MergePartialFromCodedStream(
7758 : ::google::protobuf::io::CodedInputStream* input) {
7759 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
7760 : ::google::protobuf::uint32 tag;
7761 : // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption.NamePart)
7762 : for (;;) {
7763 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
7764 0 : tag = p.first;
7765 0 : if (!p.second) goto handle_unusual;
7766 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7767 : // required string name_part = 1;
7768 : case 1: {
7769 0 : if (tag == 10) {
7770 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7771 : input, this->mutable_name_part()));
7772 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7773 0 : this->name_part().data(), this->name_part().length(),
7774 : ::google::protobuf::internal::WireFormat::PARSE,
7775 0 : "name_part");
7776 : } else {
7777 0 : goto handle_unusual;
7778 : }
7779 0 : if (input->ExpectTag(16)) goto parse_is_extension;
7780 0 : break;
7781 : }
7782 :
7783 : // required bool is_extension = 2;
7784 : case 2: {
7785 0 : if (tag == 16) {
7786 : parse_is_extension:
7787 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7788 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7789 : input, &is_extension_)));
7790 0 : set_has_is_extension();
7791 : } else {
7792 0 : goto handle_unusual;
7793 : }
7794 0 : if (input->ExpectAtEnd()) goto success;
7795 0 : break;
7796 : }
7797 :
7798 : default: {
7799 : handle_unusual:
7800 0 : if (tag == 0 ||
7801 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7802 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
7803 0 : goto success;
7804 : }
7805 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
7806 : input, tag, mutable_unknown_fields()));
7807 0 : break;
7808 : }
7809 : }
7810 0 : }
7811 : success:
7812 : // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption.NamePart)
7813 0 : return true;
7814 : failure:
7815 : // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption.NamePart)
7816 0 : return false;
7817 : #undef DO_
7818 : }
7819 :
7820 0 : void UninterpretedOption_NamePart::SerializeWithCachedSizes(
7821 : ::google::protobuf::io::CodedOutputStream* output) const {
7822 : // @@protoc_insertion_point(serialize_start:google.protobuf.UninterpretedOption.NamePart)
7823 : // required string name_part = 1;
7824 0 : if (has_name_part()) {
7825 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7826 0 : this->name_part().data(), this->name_part().length(),
7827 : ::google::protobuf::internal::WireFormat::SERIALIZE,
7828 0 : "name_part");
7829 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7830 0 : 1, this->name_part(), output);
7831 : }
7832 :
7833 : // required bool is_extension = 2;
7834 0 : if (has_is_extension()) {
7835 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_extension(), output);
7836 : }
7837 :
7838 0 : if (!unknown_fields().empty()) {
7839 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7840 0 : unknown_fields(), output);
7841 : }
7842 : // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption.NamePart)
7843 0 : }
7844 :
7845 0 : ::google::protobuf::uint8* UninterpretedOption_NamePart::SerializeWithCachedSizesToArray(
7846 : ::google::protobuf::uint8* target) const {
7847 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption.NamePart)
7848 : // required string name_part = 1;
7849 0 : if (has_name_part()) {
7850 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7851 0 : this->name_part().data(), this->name_part().length(),
7852 : ::google::protobuf::internal::WireFormat::SERIALIZE,
7853 0 : "name_part");
7854 : target =
7855 0 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7856 0 : 1, this->name_part(), target);
7857 : }
7858 :
7859 : // required bool is_extension = 2;
7860 0 : if (has_is_extension()) {
7861 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_extension(), target);
7862 : }
7863 :
7864 0 : if (!unknown_fields().empty()) {
7865 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7866 0 : unknown_fields(), target);
7867 : }
7868 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UninterpretedOption.NamePart)
7869 0 : return target;
7870 : }
7871 :
7872 0 : int UninterpretedOption_NamePart::ByteSize() const {
7873 0 : int total_size = 0;
7874 :
7875 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
7876 : // required string name_part = 1;
7877 0 : if (has_name_part()) {
7878 0 : total_size += 1 +
7879 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
7880 : this->name_part());
7881 : }
7882 :
7883 : // required bool is_extension = 2;
7884 0 : if (has_is_extension()) {
7885 0 : total_size += 1 + 1;
7886 : }
7887 :
7888 : }
7889 0 : if (!unknown_fields().empty()) {
7890 0 : total_size +=
7891 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7892 : unknown_fields());
7893 : }
7894 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7895 0 : _cached_size_ = total_size;
7896 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
7897 0 : return total_size;
7898 : }
7899 :
7900 0 : void UninterpretedOption_NamePart::MergeFrom(const ::google::protobuf::Message& from) {
7901 0 : GOOGLE_CHECK_NE(&from, this);
7902 : const UninterpretedOption_NamePart* source =
7903 : ::google::protobuf::internal::dynamic_cast_if_available<const UninterpretedOption_NamePart*>(
7904 0 : &from);
7905 0 : if (source == NULL) {
7906 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7907 : } else {
7908 0 : MergeFrom(*source);
7909 : }
7910 0 : }
7911 :
7912 0 : void UninterpretedOption_NamePart::MergeFrom(const UninterpretedOption_NamePart& from) {
7913 0 : GOOGLE_CHECK_NE(&from, this);
7914 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
7915 0 : if (from.has_name_part()) {
7916 0 : set_name_part(from.name_part());
7917 : }
7918 0 : if (from.has_is_extension()) {
7919 0 : set_is_extension(from.is_extension());
7920 : }
7921 : }
7922 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
7923 0 : }
7924 :
7925 0 : void UninterpretedOption_NamePart::CopyFrom(const ::google::protobuf::Message& from) {
7926 0 : if (&from == this) return;
7927 0 : Clear();
7928 0 : MergeFrom(from);
7929 : }
7930 :
7931 0 : void UninterpretedOption_NamePart::CopyFrom(const UninterpretedOption_NamePart& from) {
7932 0 : if (&from == this) return;
7933 0 : Clear();
7934 0 : MergeFrom(from);
7935 : }
7936 :
7937 0 : bool UninterpretedOption_NamePart::IsInitialized() const {
7938 0 : if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
7939 :
7940 0 : return true;
7941 : }
7942 :
7943 0 : void UninterpretedOption_NamePart::Swap(UninterpretedOption_NamePart* other) {
7944 0 : if (other != this) {
7945 0 : std::swap(name_part_, other->name_part_);
7946 0 : std::swap(is_extension_, other->is_extension_);
7947 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
7948 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
7949 0 : std::swap(_cached_size_, other->_cached_size_);
7950 : }
7951 0 : }
7952 :
7953 0 : ::google::protobuf::Metadata UninterpretedOption_NamePart::GetMetadata() const {
7954 0 : protobuf_AssignDescriptorsOnce();
7955 : ::google::protobuf::Metadata metadata;
7956 0 : metadata.descriptor = UninterpretedOption_NamePart_descriptor_;
7957 0 : metadata.reflection = UninterpretedOption_NamePart_reflection_;
7958 0 : return metadata;
7959 : }
7960 :
7961 :
7962 : // -------------------------------------------------------------------
7963 :
7964 : #ifndef _MSC_VER
7965 : const int UninterpretedOption::kNameFieldNumber;
7966 : const int UninterpretedOption::kIdentifierValueFieldNumber;
7967 : const int UninterpretedOption::kPositiveIntValueFieldNumber;
7968 : const int UninterpretedOption::kNegativeIntValueFieldNumber;
7969 : const int UninterpretedOption::kDoubleValueFieldNumber;
7970 : const int UninterpretedOption::kStringValueFieldNumber;
7971 : const int UninterpretedOption::kAggregateValueFieldNumber;
7972 : #endif // !_MSC_VER
7973 :
7974 3 : UninterpretedOption::UninterpretedOption()
7975 3 : : ::google::protobuf::Message() {
7976 3 : SharedCtor();
7977 : // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption)
7978 3 : }
7979 :
7980 3 : void UninterpretedOption::InitAsDefaultInstance() {
7981 3 : }
7982 :
7983 0 : UninterpretedOption::UninterpretedOption(const UninterpretedOption& from)
7984 0 : : ::google::protobuf::Message() {
7985 0 : SharedCtor();
7986 0 : MergeFrom(from);
7987 : // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOption)
7988 0 : }
7989 :
7990 3 : void UninterpretedOption::SharedCtor() {
7991 3 : ::google::protobuf::internal::GetEmptyString();
7992 3 : _cached_size_ = 0;
7993 3 : identifier_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7994 3 : positive_int_value_ = GOOGLE_ULONGLONG(0);
7995 3 : negative_int_value_ = GOOGLE_LONGLONG(0);
7996 3 : double_value_ = 0;
7997 3 : string_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7998 3 : aggregate_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7999 3 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
8000 3 : }
8001 :
8002 0 : UninterpretedOption::~UninterpretedOption() {
8003 : // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption)
8004 0 : SharedDtor();
8005 0 : }
8006 :
8007 0 : void UninterpretedOption::SharedDtor() {
8008 0 : if (identifier_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
8009 0 : delete identifier_value_;
8010 : }
8011 0 : if (string_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
8012 0 : delete string_value_;
8013 : }
8014 0 : if (aggregate_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
8015 0 : delete aggregate_value_;
8016 : }
8017 0 : if (this != default_instance_) {
8018 : }
8019 0 : }
8020 :
8021 0 : void UninterpretedOption::SetCachedSize(int size) const {
8022 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8023 0 : _cached_size_ = size;
8024 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
8025 0 : }
8026 0 : const ::google::protobuf::Descriptor* UninterpretedOption::descriptor() {
8027 0 : protobuf_AssignDescriptorsOnce();
8028 0 : return UninterpretedOption_descriptor_;
8029 : }
8030 :
8031 0 : const UninterpretedOption& UninterpretedOption::default_instance() {
8032 0 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
8033 0 : return *default_instance_;
8034 : }
8035 :
8036 : UninterpretedOption* UninterpretedOption::default_instance_ = NULL;
8037 :
8038 0 : UninterpretedOption* UninterpretedOption::New() const {
8039 0 : return new UninterpretedOption;
8040 : }
8041 :
8042 0 : void UninterpretedOption::Clear() {
8043 : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
8044 : &reinterpret_cast<UninterpretedOption*>(16)->f) - \
8045 : reinterpret_cast<char*>(16))
8046 :
8047 : #define ZR_(first, last) do { \
8048 : size_t f = OFFSET_OF_FIELD_(first); \
8049 : size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
8050 : ::memset(&first, 0, n); \
8051 : } while (0)
8052 :
8053 0 : if (_has_bits_[0 / 32] & 126) {
8054 0 : ZR_(positive_int_value_, double_value_);
8055 0 : if (has_identifier_value()) {
8056 0 : if (identifier_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
8057 0 : identifier_value_->clear();
8058 : }
8059 : }
8060 0 : if (has_string_value()) {
8061 0 : if (string_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
8062 0 : string_value_->clear();
8063 : }
8064 : }
8065 0 : if (has_aggregate_value()) {
8066 0 : if (aggregate_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
8067 0 : aggregate_value_->clear();
8068 : }
8069 : }
8070 : }
8071 :
8072 : #undef OFFSET_OF_FIELD_
8073 : #undef ZR_
8074 :
8075 0 : name_.Clear();
8076 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
8077 0 : mutable_unknown_fields()->Clear();
8078 0 : }
8079 :
8080 0 : bool UninterpretedOption::MergePartialFromCodedStream(
8081 : ::google::protobuf::io::CodedInputStream* input) {
8082 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
8083 : ::google::protobuf::uint32 tag;
8084 : // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption)
8085 : for (;;) {
8086 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
8087 0 : tag = p.first;
8088 0 : if (!p.second) goto handle_unusual;
8089 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8090 : // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
8091 : case 2: {
8092 0 : if (tag == 18) {
8093 : parse_name:
8094 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
8095 : input, add_name()));
8096 : } else {
8097 0 : goto handle_unusual;
8098 : }
8099 0 : if (input->ExpectTag(18)) goto parse_name;
8100 0 : if (input->ExpectTag(26)) goto parse_identifier_value;
8101 0 : break;
8102 : }
8103 :
8104 : // optional string identifier_value = 3;
8105 : case 3: {
8106 0 : if (tag == 26) {
8107 : parse_identifier_value:
8108 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8109 : input, this->mutable_identifier_value()));
8110 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8111 0 : this->identifier_value().data(), this->identifier_value().length(),
8112 : ::google::protobuf::internal::WireFormat::PARSE,
8113 0 : "identifier_value");
8114 : } else {
8115 0 : goto handle_unusual;
8116 : }
8117 0 : if (input->ExpectTag(32)) goto parse_positive_int_value;
8118 0 : break;
8119 : }
8120 :
8121 : // optional uint64 positive_int_value = 4;
8122 : case 4: {
8123 0 : if (tag == 32) {
8124 : parse_positive_int_value:
8125 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8126 : ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
8127 : input, &positive_int_value_)));
8128 0 : set_has_positive_int_value();
8129 : } else {
8130 0 : goto handle_unusual;
8131 : }
8132 0 : if (input->ExpectTag(40)) goto parse_negative_int_value;
8133 0 : break;
8134 : }
8135 :
8136 : // optional int64 negative_int_value = 5;
8137 : case 5: {
8138 0 : if (tag == 40) {
8139 : parse_negative_int_value:
8140 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8141 : ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
8142 : input, &negative_int_value_)));
8143 0 : set_has_negative_int_value();
8144 : } else {
8145 0 : goto handle_unusual;
8146 : }
8147 0 : if (input->ExpectTag(49)) goto parse_double_value;
8148 0 : break;
8149 : }
8150 :
8151 : // optional double double_value = 6;
8152 : case 6: {
8153 0 : if (tag == 49) {
8154 : parse_double_value:
8155 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8156 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
8157 : input, &double_value_)));
8158 0 : set_has_double_value();
8159 : } else {
8160 0 : goto handle_unusual;
8161 : }
8162 0 : if (input->ExpectTag(58)) goto parse_string_value;
8163 0 : break;
8164 : }
8165 :
8166 : // optional bytes string_value = 7;
8167 : case 7: {
8168 0 : if (tag == 58) {
8169 : parse_string_value:
8170 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
8171 : input, this->mutable_string_value()));
8172 : } else {
8173 0 : goto handle_unusual;
8174 : }
8175 0 : if (input->ExpectTag(66)) goto parse_aggregate_value;
8176 0 : break;
8177 : }
8178 :
8179 : // optional string aggregate_value = 8;
8180 : case 8: {
8181 0 : if (tag == 66) {
8182 : parse_aggregate_value:
8183 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8184 : input, this->mutable_aggregate_value()));
8185 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8186 0 : this->aggregate_value().data(), this->aggregate_value().length(),
8187 : ::google::protobuf::internal::WireFormat::PARSE,
8188 0 : "aggregate_value");
8189 : } else {
8190 0 : goto handle_unusual;
8191 : }
8192 0 : if (input->ExpectAtEnd()) goto success;
8193 0 : break;
8194 : }
8195 :
8196 : default: {
8197 : handle_unusual:
8198 0 : if (tag == 0 ||
8199 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
8200 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
8201 0 : goto success;
8202 : }
8203 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
8204 : input, tag, mutable_unknown_fields()));
8205 0 : break;
8206 : }
8207 : }
8208 0 : }
8209 : success:
8210 : // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption)
8211 0 : return true;
8212 : failure:
8213 : // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption)
8214 0 : return false;
8215 : #undef DO_
8216 : }
8217 :
8218 0 : void UninterpretedOption::SerializeWithCachedSizes(
8219 : ::google::protobuf::io::CodedOutputStream* output) const {
8220 : // @@protoc_insertion_point(serialize_start:google.protobuf.UninterpretedOption)
8221 : // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
8222 0 : for (int i = 0; i < this->name_size(); i++) {
8223 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8224 0 : 2, this->name(i), output);
8225 : }
8226 :
8227 : // optional string identifier_value = 3;
8228 0 : if (has_identifier_value()) {
8229 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8230 0 : this->identifier_value().data(), this->identifier_value().length(),
8231 : ::google::protobuf::internal::WireFormat::SERIALIZE,
8232 0 : "identifier_value");
8233 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8234 0 : 3, this->identifier_value(), output);
8235 : }
8236 :
8237 : // optional uint64 positive_int_value = 4;
8238 0 : if (has_positive_int_value()) {
8239 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->positive_int_value(), output);
8240 : }
8241 :
8242 : // optional int64 negative_int_value = 5;
8243 0 : if (has_negative_int_value()) {
8244 0 : ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->negative_int_value(), output);
8245 : }
8246 :
8247 : // optional double double_value = 6;
8248 0 : if (has_double_value()) {
8249 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->double_value(), output);
8250 : }
8251 :
8252 : // optional bytes string_value = 7;
8253 0 : if (has_string_value()) {
8254 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
8255 0 : 7, this->string_value(), output);
8256 : }
8257 :
8258 : // optional string aggregate_value = 8;
8259 0 : if (has_aggregate_value()) {
8260 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8261 0 : this->aggregate_value().data(), this->aggregate_value().length(),
8262 : ::google::protobuf::internal::WireFormat::SERIALIZE,
8263 0 : "aggregate_value");
8264 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8265 0 : 8, this->aggregate_value(), output);
8266 : }
8267 :
8268 0 : if (!unknown_fields().empty()) {
8269 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8270 0 : unknown_fields(), output);
8271 : }
8272 : // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption)
8273 0 : }
8274 :
8275 0 : ::google::protobuf::uint8* UninterpretedOption::SerializeWithCachedSizesToArray(
8276 : ::google::protobuf::uint8* target) const {
8277 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption)
8278 : // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
8279 0 : for (int i = 0; i < this->name_size(); i++) {
8280 : target = ::google::protobuf::internal::WireFormatLite::
8281 0 : WriteMessageNoVirtualToArray(
8282 0 : 2, this->name(i), target);
8283 : }
8284 :
8285 : // optional string identifier_value = 3;
8286 0 : if (has_identifier_value()) {
8287 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8288 0 : this->identifier_value().data(), this->identifier_value().length(),
8289 : ::google::protobuf::internal::WireFormat::SERIALIZE,
8290 0 : "identifier_value");
8291 : target =
8292 0 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8293 0 : 3, this->identifier_value(), target);
8294 : }
8295 :
8296 : // optional uint64 positive_int_value = 4;
8297 0 : if (has_positive_int_value()) {
8298 0 : target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->positive_int_value(), target);
8299 : }
8300 :
8301 : // optional int64 negative_int_value = 5;
8302 0 : if (has_negative_int_value()) {
8303 0 : target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->negative_int_value(), target);
8304 : }
8305 :
8306 : // optional double double_value = 6;
8307 0 : if (has_double_value()) {
8308 0 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->double_value(), target);
8309 : }
8310 :
8311 : // optional bytes string_value = 7;
8312 0 : if (has_string_value()) {
8313 : target =
8314 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
8315 0 : 7, this->string_value(), target);
8316 : }
8317 :
8318 : // optional string aggregate_value = 8;
8319 0 : if (has_aggregate_value()) {
8320 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8321 0 : this->aggregate_value().data(), this->aggregate_value().length(),
8322 : ::google::protobuf::internal::WireFormat::SERIALIZE,
8323 0 : "aggregate_value");
8324 : target =
8325 0 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8326 0 : 8, this->aggregate_value(), target);
8327 : }
8328 :
8329 0 : if (!unknown_fields().empty()) {
8330 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8331 0 : unknown_fields(), target);
8332 : }
8333 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UninterpretedOption)
8334 0 : return target;
8335 : }
8336 :
8337 0 : int UninterpretedOption::ByteSize() const {
8338 0 : int total_size = 0;
8339 :
8340 0 : if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
8341 : // optional string identifier_value = 3;
8342 0 : if (has_identifier_value()) {
8343 0 : total_size += 1 +
8344 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
8345 : this->identifier_value());
8346 : }
8347 :
8348 : // optional uint64 positive_int_value = 4;
8349 0 : if (has_positive_int_value()) {
8350 0 : total_size += 1 +
8351 0 : ::google::protobuf::internal::WireFormatLite::UInt64Size(
8352 : this->positive_int_value());
8353 : }
8354 :
8355 : // optional int64 negative_int_value = 5;
8356 0 : if (has_negative_int_value()) {
8357 0 : total_size += 1 +
8358 0 : ::google::protobuf::internal::WireFormatLite::Int64Size(
8359 : this->negative_int_value());
8360 : }
8361 :
8362 : // optional double double_value = 6;
8363 0 : if (has_double_value()) {
8364 0 : total_size += 1 + 8;
8365 : }
8366 :
8367 : // optional bytes string_value = 7;
8368 0 : if (has_string_value()) {
8369 0 : total_size += 1 +
8370 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
8371 : this->string_value());
8372 : }
8373 :
8374 : // optional string aggregate_value = 8;
8375 0 : if (has_aggregate_value()) {
8376 0 : total_size += 1 +
8377 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
8378 : this->aggregate_value());
8379 : }
8380 :
8381 : }
8382 : // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
8383 0 : total_size += 1 * this->name_size();
8384 0 : for (int i = 0; i < this->name_size(); i++) {
8385 0 : total_size +=
8386 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
8387 : this->name(i));
8388 : }
8389 :
8390 0 : if (!unknown_fields().empty()) {
8391 0 : total_size +=
8392 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8393 : unknown_fields());
8394 : }
8395 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8396 0 : _cached_size_ = total_size;
8397 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
8398 0 : return total_size;
8399 : }
8400 :
8401 0 : void UninterpretedOption::MergeFrom(const ::google::protobuf::Message& from) {
8402 0 : GOOGLE_CHECK_NE(&from, this);
8403 : const UninterpretedOption* source =
8404 : ::google::protobuf::internal::dynamic_cast_if_available<const UninterpretedOption*>(
8405 0 : &from);
8406 0 : if (source == NULL) {
8407 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8408 : } else {
8409 0 : MergeFrom(*source);
8410 : }
8411 0 : }
8412 :
8413 0 : void UninterpretedOption::MergeFrom(const UninterpretedOption& from) {
8414 0 : GOOGLE_CHECK_NE(&from, this);
8415 0 : name_.MergeFrom(from.name_);
8416 0 : if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
8417 0 : if (from.has_identifier_value()) {
8418 0 : set_identifier_value(from.identifier_value());
8419 : }
8420 0 : if (from.has_positive_int_value()) {
8421 0 : set_positive_int_value(from.positive_int_value());
8422 : }
8423 0 : if (from.has_negative_int_value()) {
8424 0 : set_negative_int_value(from.negative_int_value());
8425 : }
8426 0 : if (from.has_double_value()) {
8427 0 : set_double_value(from.double_value());
8428 : }
8429 0 : if (from.has_string_value()) {
8430 0 : set_string_value(from.string_value());
8431 : }
8432 0 : if (from.has_aggregate_value()) {
8433 0 : set_aggregate_value(from.aggregate_value());
8434 : }
8435 : }
8436 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
8437 0 : }
8438 :
8439 0 : void UninterpretedOption::CopyFrom(const ::google::protobuf::Message& from) {
8440 0 : if (&from == this) return;
8441 0 : Clear();
8442 0 : MergeFrom(from);
8443 : }
8444 :
8445 0 : void UninterpretedOption::CopyFrom(const UninterpretedOption& from) {
8446 0 : if (&from == this) return;
8447 0 : Clear();
8448 0 : MergeFrom(from);
8449 : }
8450 :
8451 0 : bool UninterpretedOption::IsInitialized() const {
8452 :
8453 0 : if (!::google::protobuf::internal::AllAreInitialized(this->name())) return false;
8454 0 : return true;
8455 : }
8456 :
8457 0 : void UninterpretedOption::Swap(UninterpretedOption* other) {
8458 0 : if (other != this) {
8459 0 : name_.Swap(&other->name_);
8460 0 : std::swap(identifier_value_, other->identifier_value_);
8461 0 : std::swap(positive_int_value_, other->positive_int_value_);
8462 0 : std::swap(negative_int_value_, other->negative_int_value_);
8463 0 : std::swap(double_value_, other->double_value_);
8464 0 : std::swap(string_value_, other->string_value_);
8465 0 : std::swap(aggregate_value_, other->aggregate_value_);
8466 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
8467 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
8468 0 : std::swap(_cached_size_, other->_cached_size_);
8469 : }
8470 0 : }
8471 :
8472 0 : ::google::protobuf::Metadata UninterpretedOption::GetMetadata() const {
8473 0 : protobuf_AssignDescriptorsOnce();
8474 : ::google::protobuf::Metadata metadata;
8475 0 : metadata.descriptor = UninterpretedOption_descriptor_;
8476 0 : metadata.reflection = UninterpretedOption_reflection_;
8477 0 : return metadata;
8478 : }
8479 :
8480 :
8481 : // ===================================================================
8482 :
8483 : #ifndef _MSC_VER
8484 : const int SourceCodeInfo_Location::kPathFieldNumber;
8485 : const int SourceCodeInfo_Location::kSpanFieldNumber;
8486 : const int SourceCodeInfo_Location::kLeadingCommentsFieldNumber;
8487 : const int SourceCodeInfo_Location::kTrailingCommentsFieldNumber;
8488 : #endif // !_MSC_VER
8489 :
8490 3 : SourceCodeInfo_Location::SourceCodeInfo_Location()
8491 3 : : ::google::protobuf::Message() {
8492 3 : SharedCtor();
8493 : // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo.Location)
8494 3 : }
8495 :
8496 3 : void SourceCodeInfo_Location::InitAsDefaultInstance() {
8497 3 : }
8498 :
8499 0 : SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location& from)
8500 0 : : ::google::protobuf::Message() {
8501 0 : SharedCtor();
8502 0 : MergeFrom(from);
8503 : // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo.Location)
8504 0 : }
8505 :
8506 3 : void SourceCodeInfo_Location::SharedCtor() {
8507 3 : ::google::protobuf::internal::GetEmptyString();
8508 3 : _cached_size_ = 0;
8509 3 : leading_comments_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8510 3 : trailing_comments_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8511 3 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
8512 3 : }
8513 :
8514 0 : SourceCodeInfo_Location::~SourceCodeInfo_Location() {
8515 : // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo.Location)
8516 0 : SharedDtor();
8517 0 : }
8518 :
8519 0 : void SourceCodeInfo_Location::SharedDtor() {
8520 0 : if (leading_comments_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
8521 0 : delete leading_comments_;
8522 : }
8523 0 : if (trailing_comments_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
8524 0 : delete trailing_comments_;
8525 : }
8526 0 : if (this != default_instance_) {
8527 : }
8528 0 : }
8529 :
8530 0 : void SourceCodeInfo_Location::SetCachedSize(int size) const {
8531 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8532 0 : _cached_size_ = size;
8533 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
8534 0 : }
8535 0 : const ::google::protobuf::Descriptor* SourceCodeInfo_Location::descriptor() {
8536 0 : protobuf_AssignDescriptorsOnce();
8537 0 : return SourceCodeInfo_Location_descriptor_;
8538 : }
8539 :
8540 0 : const SourceCodeInfo_Location& SourceCodeInfo_Location::default_instance() {
8541 0 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
8542 0 : return *default_instance_;
8543 : }
8544 :
8545 : SourceCodeInfo_Location* SourceCodeInfo_Location::default_instance_ = NULL;
8546 :
8547 0 : SourceCodeInfo_Location* SourceCodeInfo_Location::New() const {
8548 0 : return new SourceCodeInfo_Location;
8549 : }
8550 :
8551 0 : void SourceCodeInfo_Location::Clear() {
8552 0 : if (_has_bits_[0 / 32] & 12) {
8553 0 : if (has_leading_comments()) {
8554 0 : if (leading_comments_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
8555 0 : leading_comments_->clear();
8556 : }
8557 : }
8558 0 : if (has_trailing_comments()) {
8559 0 : if (trailing_comments_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
8560 0 : trailing_comments_->clear();
8561 : }
8562 : }
8563 : }
8564 0 : path_.Clear();
8565 0 : span_.Clear();
8566 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
8567 0 : mutable_unknown_fields()->Clear();
8568 0 : }
8569 :
8570 0 : bool SourceCodeInfo_Location::MergePartialFromCodedStream(
8571 : ::google::protobuf::io::CodedInputStream* input) {
8572 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
8573 : ::google::protobuf::uint32 tag;
8574 : // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo.Location)
8575 : for (;;) {
8576 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
8577 0 : tag = p.first;
8578 0 : if (!p.second) goto handle_unusual;
8579 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8580 : // repeated int32 path = 1 [packed = true];
8581 : case 1: {
8582 0 : if (tag == 10) {
8583 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
8584 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
8585 : input, this->mutable_path())));
8586 0 : } else if (tag == 8) {
8587 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
8588 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
8589 : 1, 10, input, this->mutable_path())));
8590 : } else {
8591 0 : goto handle_unusual;
8592 : }
8593 0 : if (input->ExpectTag(18)) goto parse_span;
8594 0 : break;
8595 : }
8596 :
8597 : // repeated int32 span = 2 [packed = true];
8598 : case 2: {
8599 0 : if (tag == 18) {
8600 : parse_span:
8601 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
8602 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
8603 : input, this->mutable_span())));
8604 0 : } else if (tag == 16) {
8605 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
8606 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
8607 : 1, 18, input, this->mutable_span())));
8608 : } else {
8609 0 : goto handle_unusual;
8610 : }
8611 0 : if (input->ExpectTag(26)) goto parse_leading_comments;
8612 0 : break;
8613 : }
8614 :
8615 : // optional string leading_comments = 3;
8616 : case 3: {
8617 0 : if (tag == 26) {
8618 : parse_leading_comments:
8619 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8620 : input, this->mutable_leading_comments()));
8621 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8622 0 : this->leading_comments().data(), this->leading_comments().length(),
8623 : ::google::protobuf::internal::WireFormat::PARSE,
8624 0 : "leading_comments");
8625 : } else {
8626 0 : goto handle_unusual;
8627 : }
8628 0 : if (input->ExpectTag(34)) goto parse_trailing_comments;
8629 0 : break;
8630 : }
8631 :
8632 : // optional string trailing_comments = 4;
8633 : case 4: {
8634 0 : if (tag == 34) {
8635 : parse_trailing_comments:
8636 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8637 : input, this->mutable_trailing_comments()));
8638 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8639 0 : this->trailing_comments().data(), this->trailing_comments().length(),
8640 : ::google::protobuf::internal::WireFormat::PARSE,
8641 0 : "trailing_comments");
8642 : } else {
8643 0 : goto handle_unusual;
8644 : }
8645 0 : if (input->ExpectAtEnd()) goto success;
8646 0 : break;
8647 : }
8648 :
8649 : default: {
8650 : handle_unusual:
8651 0 : if (tag == 0 ||
8652 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
8653 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
8654 0 : goto success;
8655 : }
8656 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
8657 : input, tag, mutable_unknown_fields()));
8658 0 : break;
8659 : }
8660 : }
8661 0 : }
8662 : success:
8663 : // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo.Location)
8664 0 : return true;
8665 : failure:
8666 : // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo.Location)
8667 0 : return false;
8668 : #undef DO_
8669 : }
8670 :
8671 0 : void SourceCodeInfo_Location::SerializeWithCachedSizes(
8672 : ::google::protobuf::io::CodedOutputStream* output) const {
8673 : // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo.Location)
8674 : // repeated int32 path = 1 [packed = true];
8675 0 : if (this->path_size() > 0) {
8676 : ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
8677 0 : output->WriteVarint32(_path_cached_byte_size_);
8678 : }
8679 0 : for (int i = 0; i < this->path_size(); i++) {
8680 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
8681 : this->path(i), output);
8682 : }
8683 :
8684 : // repeated int32 span = 2 [packed = true];
8685 0 : if (this->span_size() > 0) {
8686 : ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
8687 0 : output->WriteVarint32(_span_cached_byte_size_);
8688 : }
8689 0 : for (int i = 0; i < this->span_size(); i++) {
8690 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
8691 : this->span(i), output);
8692 : }
8693 :
8694 : // optional string leading_comments = 3;
8695 0 : if (has_leading_comments()) {
8696 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8697 0 : this->leading_comments().data(), this->leading_comments().length(),
8698 : ::google::protobuf::internal::WireFormat::SERIALIZE,
8699 0 : "leading_comments");
8700 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8701 0 : 3, this->leading_comments(), output);
8702 : }
8703 :
8704 : // optional string trailing_comments = 4;
8705 0 : if (has_trailing_comments()) {
8706 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8707 0 : this->trailing_comments().data(), this->trailing_comments().length(),
8708 : ::google::protobuf::internal::WireFormat::SERIALIZE,
8709 0 : "trailing_comments");
8710 0 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8711 0 : 4, this->trailing_comments(), output);
8712 : }
8713 :
8714 0 : if (!unknown_fields().empty()) {
8715 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8716 0 : unknown_fields(), output);
8717 : }
8718 : // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo.Location)
8719 0 : }
8720 :
8721 0 : ::google::protobuf::uint8* SourceCodeInfo_Location::SerializeWithCachedSizesToArray(
8722 : ::google::protobuf::uint8* target) const {
8723 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo.Location)
8724 : // repeated int32 path = 1 [packed = true];
8725 0 : if (this->path_size() > 0) {
8726 : target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
8727 : 1,
8728 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
8729 0 : target);
8730 0 : target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
8731 0 : _path_cached_byte_size_, target);
8732 : }
8733 0 : for (int i = 0; i < this->path_size(); i++) {
8734 : target = ::google::protobuf::internal::WireFormatLite::
8735 0 : WriteInt32NoTagToArray(this->path(i), target);
8736 : }
8737 :
8738 : // repeated int32 span = 2 [packed = true];
8739 0 : if (this->span_size() > 0) {
8740 : target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
8741 : 2,
8742 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
8743 0 : target);
8744 0 : target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
8745 0 : _span_cached_byte_size_, target);
8746 : }
8747 0 : for (int i = 0; i < this->span_size(); i++) {
8748 : target = ::google::protobuf::internal::WireFormatLite::
8749 0 : WriteInt32NoTagToArray(this->span(i), target);
8750 : }
8751 :
8752 : // optional string leading_comments = 3;
8753 0 : if (has_leading_comments()) {
8754 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8755 0 : this->leading_comments().data(), this->leading_comments().length(),
8756 : ::google::protobuf::internal::WireFormat::SERIALIZE,
8757 0 : "leading_comments");
8758 : target =
8759 0 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8760 0 : 3, this->leading_comments(), target);
8761 : }
8762 :
8763 : // optional string trailing_comments = 4;
8764 0 : if (has_trailing_comments()) {
8765 0 : ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8766 0 : this->trailing_comments().data(), this->trailing_comments().length(),
8767 : ::google::protobuf::internal::WireFormat::SERIALIZE,
8768 0 : "trailing_comments");
8769 : target =
8770 0 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8771 0 : 4, this->trailing_comments(), target);
8772 : }
8773 :
8774 0 : if (!unknown_fields().empty()) {
8775 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8776 0 : unknown_fields(), target);
8777 : }
8778 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeInfo.Location)
8779 0 : return target;
8780 : }
8781 :
8782 0 : int SourceCodeInfo_Location::ByteSize() const {
8783 0 : int total_size = 0;
8784 :
8785 0 : if (_has_bits_[2 / 32] & (0xffu << (2 % 32))) {
8786 : // optional string leading_comments = 3;
8787 0 : if (has_leading_comments()) {
8788 0 : total_size += 1 +
8789 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
8790 : this->leading_comments());
8791 : }
8792 :
8793 : // optional string trailing_comments = 4;
8794 0 : if (has_trailing_comments()) {
8795 0 : total_size += 1 +
8796 0 : ::google::protobuf::internal::WireFormatLite::StringSize(
8797 : this->trailing_comments());
8798 : }
8799 :
8800 : }
8801 : // repeated int32 path = 1 [packed = true];
8802 : {
8803 0 : int data_size = 0;
8804 0 : for (int i = 0; i < this->path_size(); i++) {
8805 0 : data_size += ::google::protobuf::internal::WireFormatLite::
8806 0 : Int32Size(this->path(i));
8807 : }
8808 0 : if (data_size > 0) {
8809 0 : total_size += 1 +
8810 0 : ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
8811 : }
8812 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8813 0 : _path_cached_byte_size_ = data_size;
8814 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
8815 0 : total_size += data_size;
8816 : }
8817 :
8818 : // repeated int32 span = 2 [packed = true];
8819 : {
8820 0 : int data_size = 0;
8821 0 : for (int i = 0; i < this->span_size(); i++) {
8822 0 : data_size += ::google::protobuf::internal::WireFormatLite::
8823 0 : Int32Size(this->span(i));
8824 : }
8825 0 : if (data_size > 0) {
8826 0 : total_size += 1 +
8827 0 : ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
8828 : }
8829 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8830 0 : _span_cached_byte_size_ = data_size;
8831 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
8832 0 : total_size += data_size;
8833 : }
8834 :
8835 0 : if (!unknown_fields().empty()) {
8836 0 : total_size +=
8837 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8838 : unknown_fields());
8839 : }
8840 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8841 0 : _cached_size_ = total_size;
8842 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
8843 0 : return total_size;
8844 : }
8845 :
8846 0 : void SourceCodeInfo_Location::MergeFrom(const ::google::protobuf::Message& from) {
8847 0 : GOOGLE_CHECK_NE(&from, this);
8848 : const SourceCodeInfo_Location* source =
8849 : ::google::protobuf::internal::dynamic_cast_if_available<const SourceCodeInfo_Location*>(
8850 0 : &from);
8851 0 : if (source == NULL) {
8852 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8853 : } else {
8854 0 : MergeFrom(*source);
8855 : }
8856 0 : }
8857 :
8858 0 : void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) {
8859 0 : GOOGLE_CHECK_NE(&from, this);
8860 0 : path_.MergeFrom(from.path_);
8861 0 : span_.MergeFrom(from.span_);
8862 0 : if (from._has_bits_[2 / 32] & (0xffu << (2 % 32))) {
8863 0 : if (from.has_leading_comments()) {
8864 0 : set_leading_comments(from.leading_comments());
8865 : }
8866 0 : if (from.has_trailing_comments()) {
8867 0 : set_trailing_comments(from.trailing_comments());
8868 : }
8869 : }
8870 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
8871 0 : }
8872 :
8873 0 : void SourceCodeInfo_Location::CopyFrom(const ::google::protobuf::Message& from) {
8874 0 : if (&from == this) return;
8875 0 : Clear();
8876 0 : MergeFrom(from);
8877 : }
8878 :
8879 0 : void SourceCodeInfo_Location::CopyFrom(const SourceCodeInfo_Location& from) {
8880 0 : if (&from == this) return;
8881 0 : Clear();
8882 0 : MergeFrom(from);
8883 : }
8884 :
8885 0 : bool SourceCodeInfo_Location::IsInitialized() const {
8886 :
8887 0 : return true;
8888 : }
8889 :
8890 0 : void SourceCodeInfo_Location::Swap(SourceCodeInfo_Location* other) {
8891 0 : if (other != this) {
8892 0 : path_.Swap(&other->path_);
8893 0 : span_.Swap(&other->span_);
8894 0 : std::swap(leading_comments_, other->leading_comments_);
8895 0 : std::swap(trailing_comments_, other->trailing_comments_);
8896 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
8897 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
8898 0 : std::swap(_cached_size_, other->_cached_size_);
8899 : }
8900 0 : }
8901 :
8902 0 : ::google::protobuf::Metadata SourceCodeInfo_Location::GetMetadata() const {
8903 0 : protobuf_AssignDescriptorsOnce();
8904 : ::google::protobuf::Metadata metadata;
8905 0 : metadata.descriptor = SourceCodeInfo_Location_descriptor_;
8906 0 : metadata.reflection = SourceCodeInfo_Location_reflection_;
8907 0 : return metadata;
8908 : }
8909 :
8910 :
8911 : // -------------------------------------------------------------------
8912 :
8913 : #ifndef _MSC_VER
8914 : const int SourceCodeInfo::kLocationFieldNumber;
8915 : #endif // !_MSC_VER
8916 :
8917 3 : SourceCodeInfo::SourceCodeInfo()
8918 3 : : ::google::protobuf::Message() {
8919 3 : SharedCtor();
8920 : // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo)
8921 3 : }
8922 :
8923 3 : void SourceCodeInfo::InitAsDefaultInstance() {
8924 3 : }
8925 :
8926 0 : SourceCodeInfo::SourceCodeInfo(const SourceCodeInfo& from)
8927 0 : : ::google::protobuf::Message() {
8928 0 : SharedCtor();
8929 0 : MergeFrom(from);
8930 : // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo)
8931 0 : }
8932 :
8933 3 : void SourceCodeInfo::SharedCtor() {
8934 3 : _cached_size_ = 0;
8935 3 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
8936 3 : }
8937 :
8938 0 : SourceCodeInfo::~SourceCodeInfo() {
8939 : // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo)
8940 0 : SharedDtor();
8941 0 : }
8942 :
8943 0 : void SourceCodeInfo::SharedDtor() {
8944 0 : if (this != default_instance_) {
8945 : }
8946 0 : }
8947 :
8948 0 : void SourceCodeInfo::SetCachedSize(int size) const {
8949 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8950 0 : _cached_size_ = size;
8951 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
8952 0 : }
8953 0 : const ::google::protobuf::Descriptor* SourceCodeInfo::descriptor() {
8954 0 : protobuf_AssignDescriptorsOnce();
8955 0 : return SourceCodeInfo_descriptor_;
8956 : }
8957 :
8958 3 : const SourceCodeInfo& SourceCodeInfo::default_instance() {
8959 3 : if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
8960 3 : return *default_instance_;
8961 : }
8962 :
8963 : SourceCodeInfo* SourceCodeInfo::default_instance_ = NULL;
8964 :
8965 0 : SourceCodeInfo* SourceCodeInfo::New() const {
8966 0 : return new SourceCodeInfo;
8967 : }
8968 :
8969 0 : void SourceCodeInfo::Clear() {
8970 0 : location_.Clear();
8971 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
8972 0 : mutable_unknown_fields()->Clear();
8973 0 : }
8974 :
8975 0 : bool SourceCodeInfo::MergePartialFromCodedStream(
8976 : ::google::protobuf::io::CodedInputStream* input) {
8977 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
8978 : ::google::protobuf::uint32 tag;
8979 : // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo)
8980 : for (;;) {
8981 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
8982 0 : tag = p.first;
8983 0 : if (!p.second) goto handle_unusual;
8984 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8985 : // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
8986 : case 1: {
8987 0 : if (tag == 10) {
8988 : parse_location:
8989 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
8990 : input, add_location()));
8991 : } else {
8992 0 : goto handle_unusual;
8993 : }
8994 0 : if (input->ExpectTag(10)) goto parse_location;
8995 0 : if (input->ExpectAtEnd()) goto success;
8996 0 : break;
8997 : }
8998 :
8999 : default: {
9000 : handle_unusual:
9001 0 : if (tag == 0 ||
9002 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
9003 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
9004 0 : goto success;
9005 : }
9006 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
9007 : input, tag, mutable_unknown_fields()));
9008 0 : break;
9009 : }
9010 : }
9011 0 : }
9012 : success:
9013 : // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo)
9014 0 : return true;
9015 : failure:
9016 : // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo)
9017 0 : return false;
9018 : #undef DO_
9019 : }
9020 :
9021 0 : void SourceCodeInfo::SerializeWithCachedSizes(
9022 : ::google::protobuf::io::CodedOutputStream* output) const {
9023 : // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo)
9024 : // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
9025 0 : for (int i = 0; i < this->location_size(); i++) {
9026 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9027 0 : 1, this->location(i), output);
9028 : }
9029 :
9030 0 : if (!unknown_fields().empty()) {
9031 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9032 0 : unknown_fields(), output);
9033 : }
9034 : // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo)
9035 0 : }
9036 :
9037 0 : ::google::protobuf::uint8* SourceCodeInfo::SerializeWithCachedSizesToArray(
9038 : ::google::protobuf::uint8* target) const {
9039 : // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo)
9040 : // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
9041 0 : for (int i = 0; i < this->location_size(); i++) {
9042 : target = ::google::protobuf::internal::WireFormatLite::
9043 0 : WriteMessageNoVirtualToArray(
9044 0 : 1, this->location(i), target);
9045 : }
9046 :
9047 0 : if (!unknown_fields().empty()) {
9048 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9049 0 : unknown_fields(), target);
9050 : }
9051 : // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeInfo)
9052 0 : return target;
9053 : }
9054 :
9055 0 : int SourceCodeInfo::ByteSize() const {
9056 0 : int total_size = 0;
9057 :
9058 : // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
9059 0 : total_size += 1 * this->location_size();
9060 0 : for (int i = 0; i < this->location_size(); i++) {
9061 0 : total_size +=
9062 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
9063 : this->location(i));
9064 : }
9065 :
9066 0 : if (!unknown_fields().empty()) {
9067 0 : total_size +=
9068 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9069 : unknown_fields());
9070 : }
9071 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9072 0 : _cached_size_ = total_size;
9073 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
9074 0 : return total_size;
9075 : }
9076 :
9077 0 : void SourceCodeInfo::MergeFrom(const ::google::protobuf::Message& from) {
9078 0 : GOOGLE_CHECK_NE(&from, this);
9079 : const SourceCodeInfo* source =
9080 : ::google::protobuf::internal::dynamic_cast_if_available<const SourceCodeInfo*>(
9081 0 : &from);
9082 0 : if (source == NULL) {
9083 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9084 : } else {
9085 0 : MergeFrom(*source);
9086 : }
9087 0 : }
9088 :
9089 0 : void SourceCodeInfo::MergeFrom(const SourceCodeInfo& from) {
9090 0 : GOOGLE_CHECK_NE(&from, this);
9091 0 : location_.MergeFrom(from.location_);
9092 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
9093 0 : }
9094 :
9095 0 : void SourceCodeInfo::CopyFrom(const ::google::protobuf::Message& from) {
9096 0 : if (&from == this) return;
9097 0 : Clear();
9098 0 : MergeFrom(from);
9099 : }
9100 :
9101 0 : void SourceCodeInfo::CopyFrom(const SourceCodeInfo& from) {
9102 0 : if (&from == this) return;
9103 0 : Clear();
9104 0 : MergeFrom(from);
9105 : }
9106 :
9107 0 : bool SourceCodeInfo::IsInitialized() const {
9108 :
9109 0 : return true;
9110 : }
9111 :
9112 0 : void SourceCodeInfo::Swap(SourceCodeInfo* other) {
9113 0 : if (other != this) {
9114 0 : location_.Swap(&other->location_);
9115 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
9116 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
9117 0 : std::swap(_cached_size_, other->_cached_size_);
9118 : }
9119 0 : }
9120 :
9121 0 : ::google::protobuf::Metadata SourceCodeInfo::GetMetadata() const {
9122 0 : protobuf_AssignDescriptorsOnce();
9123 : ::google::protobuf::Metadata metadata;
9124 0 : metadata.descriptor = SourceCodeInfo_descriptor_;
9125 0 : metadata.reflection = SourceCodeInfo_reflection_;
9126 0 : return metadata;
9127 : }
9128 :
9129 :
9130 : // @@protoc_insertion_point(namespace_scope)
9131 :
9132 : } // namespace protobuf
9133 : } // namespace google
9134 :
9135 : // @@protoc_insertion_point(global_scope)
|