1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: google/protobuf/descriptor.proto
3 
4 #include <google/protobuf/descriptor.pb.h>
5 
6 #include <algorithm>
7 
8 #include <google/protobuf/io/coded_stream.h>
9 #include <google/protobuf/extension_set.h>
10 #include <google/protobuf/wire_format_lite.h>
11 #include <google/protobuf/descriptor.h>
12 #include <google/protobuf/generated_message_reflection.h>
13 #include <google/protobuf/reflection_ops.h>
14 #include <google/protobuf/wire_format.h>
15 // @@protoc_insertion_point(includes)
16 #include <google/protobuf/port_def.inc>
17 
18 PROTOBUF_PRAGMA_INIT_SEG
19 
20 namespace _pb = ::PROTOBUF_NAMESPACE_ID;
21 namespace _pbi = _pb::internal;
22 
23 PROTOBUF_NAMESPACE_OPEN
FileDescriptorSet(::_pbi::ConstantInitialized)24 PROTOBUF_CONSTEXPR FileDescriptorSet::FileDescriptorSet(
25     ::_pbi::ConstantInitialized)
26   : file_(){}
27 struct FileDescriptorSetDefaultTypeInternal {
FileDescriptorSetDefaultTypeInternalFileDescriptorSetDefaultTypeInternal28   PROTOBUF_CONSTEXPR FileDescriptorSetDefaultTypeInternal()
29       : _instance(::_pbi::ConstantInitialized{}) {}
~FileDescriptorSetDefaultTypeInternalFileDescriptorSetDefaultTypeInternal30   ~FileDescriptorSetDefaultTypeInternal() {}
31   union {
32     FileDescriptorSet _instance;
33   };
34 };
35 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FileDescriptorSetDefaultTypeInternal _FileDescriptorSet_default_instance_;
FileDescriptorProto(::_pbi::ConstantInitialized)36 PROTOBUF_CONSTEXPR FileDescriptorProto::FileDescriptorProto(
37     ::_pbi::ConstantInitialized)
38   : dependency_()
39   , message_type_()
40   , enum_type_()
41   , service_()
42   , extension_()
43   , public_dependency_()
44   , weak_dependency_()
45   , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
46   , package_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
47   , syntax_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
48   , options_(nullptr)
49   , source_code_info_(nullptr){}
50 struct FileDescriptorProtoDefaultTypeInternal {
FileDescriptorProtoDefaultTypeInternalFileDescriptorProtoDefaultTypeInternal51   PROTOBUF_CONSTEXPR FileDescriptorProtoDefaultTypeInternal()
52       : _instance(::_pbi::ConstantInitialized{}) {}
~FileDescriptorProtoDefaultTypeInternalFileDescriptorProtoDefaultTypeInternal53   ~FileDescriptorProtoDefaultTypeInternal() {}
54   union {
55     FileDescriptorProto _instance;
56   };
57 };
58 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FileDescriptorProtoDefaultTypeInternal _FileDescriptorProto_default_instance_;
DescriptorProto_ExtensionRange(::_pbi::ConstantInitialized)59 PROTOBUF_CONSTEXPR DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(
60     ::_pbi::ConstantInitialized)
61   : options_(nullptr)
62   , start_(0)
63   , end_(0){}
64 struct DescriptorProto_ExtensionRangeDefaultTypeInternal {
DescriptorProto_ExtensionRangeDefaultTypeInternalDescriptorProto_ExtensionRangeDefaultTypeInternal65   PROTOBUF_CONSTEXPR DescriptorProto_ExtensionRangeDefaultTypeInternal()
66       : _instance(::_pbi::ConstantInitialized{}) {}
~DescriptorProto_ExtensionRangeDefaultTypeInternalDescriptorProto_ExtensionRangeDefaultTypeInternal67   ~DescriptorProto_ExtensionRangeDefaultTypeInternal() {}
68   union {
69     DescriptorProto_ExtensionRange _instance;
70   };
71 };
72 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DescriptorProto_ExtensionRangeDefaultTypeInternal _DescriptorProto_ExtensionRange_default_instance_;
DescriptorProto_ReservedRange(::_pbi::ConstantInitialized)73 PROTOBUF_CONSTEXPR DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(
74     ::_pbi::ConstantInitialized)
75   : start_(0)
76   , end_(0){}
77 struct DescriptorProto_ReservedRangeDefaultTypeInternal {
DescriptorProto_ReservedRangeDefaultTypeInternalDescriptorProto_ReservedRangeDefaultTypeInternal78   PROTOBUF_CONSTEXPR DescriptorProto_ReservedRangeDefaultTypeInternal()
79       : _instance(::_pbi::ConstantInitialized{}) {}
~DescriptorProto_ReservedRangeDefaultTypeInternalDescriptorProto_ReservedRangeDefaultTypeInternal80   ~DescriptorProto_ReservedRangeDefaultTypeInternal() {}
81   union {
82     DescriptorProto_ReservedRange _instance;
83   };
84 };
85 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DescriptorProto_ReservedRangeDefaultTypeInternal _DescriptorProto_ReservedRange_default_instance_;
DescriptorProto(::_pbi::ConstantInitialized)86 PROTOBUF_CONSTEXPR DescriptorProto::DescriptorProto(
87     ::_pbi::ConstantInitialized)
88   : field_()
89   , nested_type_()
90   , enum_type_()
91   , extension_range_()
92   , extension_()
93   , oneof_decl_()
94   , reserved_range_()
95   , reserved_name_()
96   , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
97   , options_(nullptr){}
98 struct DescriptorProtoDefaultTypeInternal {
DescriptorProtoDefaultTypeInternalDescriptorProtoDefaultTypeInternal99   PROTOBUF_CONSTEXPR DescriptorProtoDefaultTypeInternal()
100       : _instance(::_pbi::ConstantInitialized{}) {}
~DescriptorProtoDefaultTypeInternalDescriptorProtoDefaultTypeInternal101   ~DescriptorProtoDefaultTypeInternal() {}
102   union {
103     DescriptorProto _instance;
104   };
105 };
106 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DescriptorProtoDefaultTypeInternal _DescriptorProto_default_instance_;
ExtensionRangeOptions(::_pbi::ConstantInitialized)107 PROTOBUF_CONSTEXPR ExtensionRangeOptions::ExtensionRangeOptions(
108     ::_pbi::ConstantInitialized)
109   : uninterpreted_option_(){}
110 struct ExtensionRangeOptionsDefaultTypeInternal {
ExtensionRangeOptionsDefaultTypeInternalExtensionRangeOptionsDefaultTypeInternal111   PROTOBUF_CONSTEXPR ExtensionRangeOptionsDefaultTypeInternal()
112       : _instance(::_pbi::ConstantInitialized{}) {}
~ExtensionRangeOptionsDefaultTypeInternalExtensionRangeOptionsDefaultTypeInternal113   ~ExtensionRangeOptionsDefaultTypeInternal() {}
114   union {
115     ExtensionRangeOptions _instance;
116   };
117 };
118 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExtensionRangeOptionsDefaultTypeInternal _ExtensionRangeOptions_default_instance_;
FieldDescriptorProto(::_pbi::ConstantInitialized)119 PROTOBUF_CONSTEXPR FieldDescriptorProto::FieldDescriptorProto(
120     ::_pbi::ConstantInitialized)
121   : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
122   , extendee_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
123   , type_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
124   , default_value_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
125   , json_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
126   , options_(nullptr)
127   , number_(0)
128   , oneof_index_(0)
129   , proto3_optional_(false)
130   , label_(1)
131 
132   , type_(1)
133 {}
134 struct FieldDescriptorProtoDefaultTypeInternal {
FieldDescriptorProtoDefaultTypeInternalFieldDescriptorProtoDefaultTypeInternal135   PROTOBUF_CONSTEXPR FieldDescriptorProtoDefaultTypeInternal()
136       : _instance(::_pbi::ConstantInitialized{}) {}
~FieldDescriptorProtoDefaultTypeInternalFieldDescriptorProtoDefaultTypeInternal137   ~FieldDescriptorProtoDefaultTypeInternal() {}
138   union {
139     FieldDescriptorProto _instance;
140   };
141 };
142 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FieldDescriptorProtoDefaultTypeInternal _FieldDescriptorProto_default_instance_;
OneofDescriptorProto(::_pbi::ConstantInitialized)143 PROTOBUF_CONSTEXPR OneofDescriptorProto::OneofDescriptorProto(
144     ::_pbi::ConstantInitialized)
145   : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
146   , options_(nullptr){}
147 struct OneofDescriptorProtoDefaultTypeInternal {
OneofDescriptorProtoDefaultTypeInternalOneofDescriptorProtoDefaultTypeInternal148   PROTOBUF_CONSTEXPR OneofDescriptorProtoDefaultTypeInternal()
149       : _instance(::_pbi::ConstantInitialized{}) {}
~OneofDescriptorProtoDefaultTypeInternalOneofDescriptorProtoDefaultTypeInternal150   ~OneofDescriptorProtoDefaultTypeInternal() {}
151   union {
152     OneofDescriptorProto _instance;
153   };
154 };
155 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OneofDescriptorProtoDefaultTypeInternal _OneofDescriptorProto_default_instance_;
EnumDescriptorProto_EnumReservedRange(::_pbi::ConstantInitialized)156 PROTOBUF_CONSTEXPR EnumDescriptorProto_EnumReservedRange::EnumDescriptorProto_EnumReservedRange(
157     ::_pbi::ConstantInitialized)
158   : start_(0)
159   , end_(0){}
160 struct EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal {
EnumDescriptorProto_EnumReservedRangeDefaultTypeInternalEnumDescriptorProto_EnumReservedRangeDefaultTypeInternal161   PROTOBUF_CONSTEXPR EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal()
162       : _instance(::_pbi::ConstantInitialized{}) {}
~EnumDescriptorProto_EnumReservedRangeDefaultTypeInternalEnumDescriptorProto_EnumReservedRangeDefaultTypeInternal163   ~EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal() {}
164   union {
165     EnumDescriptorProto_EnumReservedRange _instance;
166   };
167 };
168 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal _EnumDescriptorProto_EnumReservedRange_default_instance_;
EnumDescriptorProto(::_pbi::ConstantInitialized)169 PROTOBUF_CONSTEXPR EnumDescriptorProto::EnumDescriptorProto(
170     ::_pbi::ConstantInitialized)
171   : value_()
172   , reserved_range_()
173   , reserved_name_()
174   , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
175   , options_(nullptr){}
176 struct EnumDescriptorProtoDefaultTypeInternal {
EnumDescriptorProtoDefaultTypeInternalEnumDescriptorProtoDefaultTypeInternal177   PROTOBUF_CONSTEXPR EnumDescriptorProtoDefaultTypeInternal()
178       : _instance(::_pbi::ConstantInitialized{}) {}
~EnumDescriptorProtoDefaultTypeInternalEnumDescriptorProtoDefaultTypeInternal179   ~EnumDescriptorProtoDefaultTypeInternal() {}
180   union {
181     EnumDescriptorProto _instance;
182   };
183 };
184 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnumDescriptorProtoDefaultTypeInternal _EnumDescriptorProto_default_instance_;
EnumValueDescriptorProto(::_pbi::ConstantInitialized)185 PROTOBUF_CONSTEXPR EnumValueDescriptorProto::EnumValueDescriptorProto(
186     ::_pbi::ConstantInitialized)
187   : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
188   , options_(nullptr)
189   , number_(0){}
190 struct EnumValueDescriptorProtoDefaultTypeInternal {
EnumValueDescriptorProtoDefaultTypeInternalEnumValueDescriptorProtoDefaultTypeInternal191   PROTOBUF_CONSTEXPR EnumValueDescriptorProtoDefaultTypeInternal()
192       : _instance(::_pbi::ConstantInitialized{}) {}
~EnumValueDescriptorProtoDefaultTypeInternalEnumValueDescriptorProtoDefaultTypeInternal193   ~EnumValueDescriptorProtoDefaultTypeInternal() {}
194   union {
195     EnumValueDescriptorProto _instance;
196   };
197 };
198 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnumValueDescriptorProtoDefaultTypeInternal _EnumValueDescriptorProto_default_instance_;
ServiceDescriptorProto(::_pbi::ConstantInitialized)199 PROTOBUF_CONSTEXPR ServiceDescriptorProto::ServiceDescriptorProto(
200     ::_pbi::ConstantInitialized)
201   : method_()
202   , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
203   , options_(nullptr){}
204 struct ServiceDescriptorProtoDefaultTypeInternal {
ServiceDescriptorProtoDefaultTypeInternalServiceDescriptorProtoDefaultTypeInternal205   PROTOBUF_CONSTEXPR ServiceDescriptorProtoDefaultTypeInternal()
206       : _instance(::_pbi::ConstantInitialized{}) {}
~ServiceDescriptorProtoDefaultTypeInternalServiceDescriptorProtoDefaultTypeInternal207   ~ServiceDescriptorProtoDefaultTypeInternal() {}
208   union {
209     ServiceDescriptorProto _instance;
210   };
211 };
212 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ServiceDescriptorProtoDefaultTypeInternal _ServiceDescriptorProto_default_instance_;
MethodDescriptorProto(::_pbi::ConstantInitialized)213 PROTOBUF_CONSTEXPR MethodDescriptorProto::MethodDescriptorProto(
214     ::_pbi::ConstantInitialized)
215   : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
216   , input_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
217   , output_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
218   , options_(nullptr)
219   , client_streaming_(false)
220   , server_streaming_(false){}
221 struct MethodDescriptorProtoDefaultTypeInternal {
MethodDescriptorProtoDefaultTypeInternalMethodDescriptorProtoDefaultTypeInternal222   PROTOBUF_CONSTEXPR MethodDescriptorProtoDefaultTypeInternal()
223       : _instance(::_pbi::ConstantInitialized{}) {}
~MethodDescriptorProtoDefaultTypeInternalMethodDescriptorProtoDefaultTypeInternal224   ~MethodDescriptorProtoDefaultTypeInternal() {}
225   union {
226     MethodDescriptorProto _instance;
227   };
228 };
229 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MethodDescriptorProtoDefaultTypeInternal _MethodDescriptorProto_default_instance_;
FileOptions(::_pbi::ConstantInitialized)230 PROTOBUF_CONSTEXPR FileOptions::FileOptions(
231     ::_pbi::ConstantInitialized)
232   : uninterpreted_option_()
233   , java_package_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
234   , java_outer_classname_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
235   , go_package_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
236   , objc_class_prefix_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
237   , csharp_namespace_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
238   , swift_prefix_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
239   , php_class_prefix_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
240   , php_namespace_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
241   , php_metadata_namespace_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
242   , ruby_package_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
243   , java_multiple_files_(false)
244   , java_generate_equals_and_hash_(false)
245   , java_string_check_utf8_(false)
246   , cc_generic_services_(false)
247   , java_generic_services_(false)
248   , py_generic_services_(false)
249   , php_generic_services_(false)
250   , deprecated_(false)
251   , optimize_for_(1)
252 
253   , cc_enable_arenas_(true){}
254 struct FileOptionsDefaultTypeInternal {
FileOptionsDefaultTypeInternalFileOptionsDefaultTypeInternal255   PROTOBUF_CONSTEXPR FileOptionsDefaultTypeInternal()
256       : _instance(::_pbi::ConstantInitialized{}) {}
~FileOptionsDefaultTypeInternalFileOptionsDefaultTypeInternal257   ~FileOptionsDefaultTypeInternal() {}
258   union {
259     FileOptions _instance;
260   };
261 };
262 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FileOptionsDefaultTypeInternal _FileOptions_default_instance_;
MessageOptions(::_pbi::ConstantInitialized)263 PROTOBUF_CONSTEXPR MessageOptions::MessageOptions(
264     ::_pbi::ConstantInitialized)
265   : uninterpreted_option_()
266   , message_set_wire_format_(false)
267   , no_standard_descriptor_accessor_(false)
268   , deprecated_(false)
269   , map_entry_(false){}
270 struct MessageOptionsDefaultTypeInternal {
MessageOptionsDefaultTypeInternalMessageOptionsDefaultTypeInternal271   PROTOBUF_CONSTEXPR MessageOptionsDefaultTypeInternal()
272       : _instance(::_pbi::ConstantInitialized{}) {}
~MessageOptionsDefaultTypeInternalMessageOptionsDefaultTypeInternal273   ~MessageOptionsDefaultTypeInternal() {}
274   union {
275     MessageOptions _instance;
276   };
277 };
278 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOptionsDefaultTypeInternal _MessageOptions_default_instance_;
FieldOptions(::_pbi::ConstantInitialized)279 PROTOBUF_CONSTEXPR FieldOptions::FieldOptions(
280     ::_pbi::ConstantInitialized)
281   : uninterpreted_option_()
282   , ctype_(0)
283 
284   , jstype_(0)
285 
286   , packed_(false)
287   , lazy_(false)
288   , unverified_lazy_(false)
289   , deprecated_(false)
290   , weak_(false){}
291 struct FieldOptionsDefaultTypeInternal {
FieldOptionsDefaultTypeInternalFieldOptionsDefaultTypeInternal292   PROTOBUF_CONSTEXPR FieldOptionsDefaultTypeInternal()
293       : _instance(::_pbi::ConstantInitialized{}) {}
~FieldOptionsDefaultTypeInternalFieldOptionsDefaultTypeInternal294   ~FieldOptionsDefaultTypeInternal() {}
295   union {
296     FieldOptions _instance;
297   };
298 };
299 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FieldOptionsDefaultTypeInternal _FieldOptions_default_instance_;
OneofOptions(::_pbi::ConstantInitialized)300 PROTOBUF_CONSTEXPR OneofOptions::OneofOptions(
301     ::_pbi::ConstantInitialized)
302   : uninterpreted_option_(){}
303 struct OneofOptionsDefaultTypeInternal {
OneofOptionsDefaultTypeInternalOneofOptionsDefaultTypeInternal304   PROTOBUF_CONSTEXPR OneofOptionsDefaultTypeInternal()
305       : _instance(::_pbi::ConstantInitialized{}) {}
~OneofOptionsDefaultTypeInternalOneofOptionsDefaultTypeInternal306   ~OneofOptionsDefaultTypeInternal() {}
307   union {
308     OneofOptions _instance;
309   };
310 };
311 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OneofOptionsDefaultTypeInternal _OneofOptions_default_instance_;
EnumOptions(::_pbi::ConstantInitialized)312 PROTOBUF_CONSTEXPR EnumOptions::EnumOptions(
313     ::_pbi::ConstantInitialized)
314   : uninterpreted_option_()
315   , allow_alias_(false)
316   , deprecated_(false){}
317 struct EnumOptionsDefaultTypeInternal {
EnumOptionsDefaultTypeInternalEnumOptionsDefaultTypeInternal318   PROTOBUF_CONSTEXPR EnumOptionsDefaultTypeInternal()
319       : _instance(::_pbi::ConstantInitialized{}) {}
~EnumOptionsDefaultTypeInternalEnumOptionsDefaultTypeInternal320   ~EnumOptionsDefaultTypeInternal() {}
321   union {
322     EnumOptions _instance;
323   };
324 };
325 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnumOptionsDefaultTypeInternal _EnumOptions_default_instance_;
EnumValueOptions(::_pbi::ConstantInitialized)326 PROTOBUF_CONSTEXPR EnumValueOptions::EnumValueOptions(
327     ::_pbi::ConstantInitialized)
328   : uninterpreted_option_()
329   , deprecated_(false){}
330 struct EnumValueOptionsDefaultTypeInternal {
EnumValueOptionsDefaultTypeInternalEnumValueOptionsDefaultTypeInternal331   PROTOBUF_CONSTEXPR EnumValueOptionsDefaultTypeInternal()
332       : _instance(::_pbi::ConstantInitialized{}) {}
~EnumValueOptionsDefaultTypeInternalEnumValueOptionsDefaultTypeInternal333   ~EnumValueOptionsDefaultTypeInternal() {}
334   union {
335     EnumValueOptions _instance;
336   };
337 };
338 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnumValueOptionsDefaultTypeInternal _EnumValueOptions_default_instance_;
ServiceOptions(::_pbi::ConstantInitialized)339 PROTOBUF_CONSTEXPR ServiceOptions::ServiceOptions(
340     ::_pbi::ConstantInitialized)
341   : uninterpreted_option_()
342   , deprecated_(false){}
343 struct ServiceOptionsDefaultTypeInternal {
ServiceOptionsDefaultTypeInternalServiceOptionsDefaultTypeInternal344   PROTOBUF_CONSTEXPR ServiceOptionsDefaultTypeInternal()
345       : _instance(::_pbi::ConstantInitialized{}) {}
~ServiceOptionsDefaultTypeInternalServiceOptionsDefaultTypeInternal346   ~ServiceOptionsDefaultTypeInternal() {}
347   union {
348     ServiceOptions _instance;
349   };
350 };
351 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ServiceOptionsDefaultTypeInternal _ServiceOptions_default_instance_;
MethodOptions(::_pbi::ConstantInitialized)352 PROTOBUF_CONSTEXPR MethodOptions::MethodOptions(
353     ::_pbi::ConstantInitialized)
354   : uninterpreted_option_()
355   , deprecated_(false)
356   , idempotency_level_(0)
357 {}
358 struct MethodOptionsDefaultTypeInternal {
MethodOptionsDefaultTypeInternalMethodOptionsDefaultTypeInternal359   PROTOBUF_CONSTEXPR MethodOptionsDefaultTypeInternal()
360       : _instance(::_pbi::ConstantInitialized{}) {}
~MethodOptionsDefaultTypeInternalMethodOptionsDefaultTypeInternal361   ~MethodOptionsDefaultTypeInternal() {}
362   union {
363     MethodOptions _instance;
364   };
365 };
366 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MethodOptionsDefaultTypeInternal _MethodOptions_default_instance_;
UninterpretedOption_NamePart(::_pbi::ConstantInitialized)367 PROTOBUF_CONSTEXPR UninterpretedOption_NamePart::UninterpretedOption_NamePart(
368     ::_pbi::ConstantInitialized)
369   : name_part_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
370   , is_extension_(false){}
371 struct UninterpretedOption_NamePartDefaultTypeInternal {
UninterpretedOption_NamePartDefaultTypeInternalUninterpretedOption_NamePartDefaultTypeInternal372   PROTOBUF_CONSTEXPR UninterpretedOption_NamePartDefaultTypeInternal()
373       : _instance(::_pbi::ConstantInitialized{}) {}
~UninterpretedOption_NamePartDefaultTypeInternalUninterpretedOption_NamePartDefaultTypeInternal374   ~UninterpretedOption_NamePartDefaultTypeInternal() {}
375   union {
376     UninterpretedOption_NamePart _instance;
377   };
378 };
379 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UninterpretedOption_NamePartDefaultTypeInternal _UninterpretedOption_NamePart_default_instance_;
UninterpretedOption(::_pbi::ConstantInitialized)380 PROTOBUF_CONSTEXPR UninterpretedOption::UninterpretedOption(
381     ::_pbi::ConstantInitialized)
382   : name_()
383   , identifier_value_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
384   , string_value_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
385   , aggregate_value_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
386   , positive_int_value_(uint64_t{0u})
387   , negative_int_value_(int64_t{0})
388   , double_value_(0){}
389 struct UninterpretedOptionDefaultTypeInternal {
UninterpretedOptionDefaultTypeInternalUninterpretedOptionDefaultTypeInternal390   PROTOBUF_CONSTEXPR UninterpretedOptionDefaultTypeInternal()
391       : _instance(::_pbi::ConstantInitialized{}) {}
~UninterpretedOptionDefaultTypeInternalUninterpretedOptionDefaultTypeInternal392   ~UninterpretedOptionDefaultTypeInternal() {}
393   union {
394     UninterpretedOption _instance;
395   };
396 };
397 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UninterpretedOptionDefaultTypeInternal _UninterpretedOption_default_instance_;
SourceCodeInfo_Location(::_pbi::ConstantInitialized)398 PROTOBUF_CONSTEXPR SourceCodeInfo_Location::SourceCodeInfo_Location(
399     ::_pbi::ConstantInitialized)
400   : path_()
401   , _path_cached_byte_size_(0)
402   , span_()
403   , _span_cached_byte_size_(0)
404   , leading_detached_comments_()
405   , leading_comments_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
406   , trailing_comments_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){}
407 struct SourceCodeInfo_LocationDefaultTypeInternal {
SourceCodeInfo_LocationDefaultTypeInternalSourceCodeInfo_LocationDefaultTypeInternal408   PROTOBUF_CONSTEXPR SourceCodeInfo_LocationDefaultTypeInternal()
409       : _instance(::_pbi::ConstantInitialized{}) {}
~SourceCodeInfo_LocationDefaultTypeInternalSourceCodeInfo_LocationDefaultTypeInternal410   ~SourceCodeInfo_LocationDefaultTypeInternal() {}
411   union {
412     SourceCodeInfo_Location _instance;
413   };
414 };
415 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceCodeInfo_LocationDefaultTypeInternal _SourceCodeInfo_Location_default_instance_;
SourceCodeInfo(::_pbi::ConstantInitialized)416 PROTOBUF_CONSTEXPR SourceCodeInfo::SourceCodeInfo(
417     ::_pbi::ConstantInitialized)
418   : location_(){}
419 struct SourceCodeInfoDefaultTypeInternal {
SourceCodeInfoDefaultTypeInternalSourceCodeInfoDefaultTypeInternal420   PROTOBUF_CONSTEXPR SourceCodeInfoDefaultTypeInternal()
421       : _instance(::_pbi::ConstantInitialized{}) {}
~SourceCodeInfoDefaultTypeInternalSourceCodeInfoDefaultTypeInternal422   ~SourceCodeInfoDefaultTypeInternal() {}
423   union {
424     SourceCodeInfo _instance;
425   };
426 };
427 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceCodeInfoDefaultTypeInternal _SourceCodeInfo_default_instance_;
GeneratedCodeInfo_Annotation(::_pbi::ConstantInitialized)428 PROTOBUF_CONSTEXPR GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(
429     ::_pbi::ConstantInitialized)
430   : path_()
431   , _path_cached_byte_size_(0)
432   , source_file_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
433   , begin_(0)
434   , end_(0){}
435 struct GeneratedCodeInfo_AnnotationDefaultTypeInternal {
GeneratedCodeInfo_AnnotationDefaultTypeInternalGeneratedCodeInfo_AnnotationDefaultTypeInternal436   PROTOBUF_CONSTEXPR GeneratedCodeInfo_AnnotationDefaultTypeInternal()
437       : _instance(::_pbi::ConstantInitialized{}) {}
~GeneratedCodeInfo_AnnotationDefaultTypeInternalGeneratedCodeInfo_AnnotationDefaultTypeInternal438   ~GeneratedCodeInfo_AnnotationDefaultTypeInternal() {}
439   union {
440     GeneratedCodeInfo_Annotation _instance;
441   };
442 };
443 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GeneratedCodeInfo_AnnotationDefaultTypeInternal _GeneratedCodeInfo_Annotation_default_instance_;
GeneratedCodeInfo(::_pbi::ConstantInitialized)444 PROTOBUF_CONSTEXPR GeneratedCodeInfo::GeneratedCodeInfo(
445     ::_pbi::ConstantInitialized)
446   : annotation_(){}
447 struct GeneratedCodeInfoDefaultTypeInternal {
GeneratedCodeInfoDefaultTypeInternalGeneratedCodeInfoDefaultTypeInternal448   PROTOBUF_CONSTEXPR GeneratedCodeInfoDefaultTypeInternal()
449       : _instance(::_pbi::ConstantInitialized{}) {}
~GeneratedCodeInfoDefaultTypeInternalGeneratedCodeInfoDefaultTypeInternal450   ~GeneratedCodeInfoDefaultTypeInternal() {}
451   union {
452     GeneratedCodeInfo _instance;
453   };
454 };
455 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GeneratedCodeInfoDefaultTypeInternal _GeneratedCodeInfo_default_instance_;
456 PROTOBUF_NAMESPACE_CLOSE
457 static ::_pb::Metadata file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[27];
458 static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2fprotobuf_2fdescriptor_2eproto[6];
459 static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fprotobuf_2fdescriptor_2eproto = nullptr;
460 
461 const uint32_t TableStruct_google_2fprotobuf_2fdescriptor_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
462   ~0u,  // no _has_bits_
463   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileDescriptorSet, _internal_metadata_),
464   ~0u,  // no _extensions_
465   ~0u,  // no _oneof_case_
466   ~0u,  // no _weak_field_map_
467   ~0u,  // no _inlined_string_donated_
468   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileDescriptorSet, file_),
469   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileDescriptorProto, _has_bits_),
470   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileDescriptorProto, _internal_metadata_),
471   ~0u,  // no _extensions_
472   ~0u,  // no _oneof_case_
473   ~0u,  // no _weak_field_map_
474   ~0u,  // no _inlined_string_donated_
475   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileDescriptorProto, name_),
476   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileDescriptorProto, package_),
477   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileDescriptorProto, dependency_),
478   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileDescriptorProto, public_dependency_),
479   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileDescriptorProto, weak_dependency_),
480   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileDescriptorProto, message_type_),
481   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileDescriptorProto, enum_type_),
482   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileDescriptorProto, service_),
483   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileDescriptorProto, extension_),
484   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileDescriptorProto, options_),
485   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileDescriptorProto, source_code_info_),
486   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileDescriptorProto, syntax_),
487   0,
488   1,
489   ~0u,
490   ~0u,
491   ~0u,
492   ~0u,
493   ~0u,
494   ~0u,
495   ~0u,
496   3,
497   4,
498   2,
499   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange, _has_bits_),
500   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange, _internal_metadata_),
501   ~0u,  // no _extensions_
502   ~0u,  // no _oneof_case_
503   ~0u,  // no _weak_field_map_
504   ~0u,  // no _inlined_string_donated_
505   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange, start_),
506   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange, end_),
507   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange, options_),
508   1,
509   2,
510   0,
511   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange, _has_bits_),
512   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange, _internal_metadata_),
513   ~0u,  // no _extensions_
514   ~0u,  // no _oneof_case_
515   ~0u,  // no _weak_field_map_
516   ~0u,  // no _inlined_string_donated_
517   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange, start_),
518   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange, end_),
519   0,
520   1,
521   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::DescriptorProto, _has_bits_),
522   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::DescriptorProto, _internal_metadata_),
523   ~0u,  // no _extensions_
524   ~0u,  // no _oneof_case_
525   ~0u,  // no _weak_field_map_
526   ~0u,  // no _inlined_string_donated_
527   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::DescriptorProto, name_),
528   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::DescriptorProto, field_),
529   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::DescriptorProto, extension_),
530   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::DescriptorProto, nested_type_),
531   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::DescriptorProto, enum_type_),
532   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::DescriptorProto, extension_range_),
533   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::DescriptorProto, oneof_decl_),
534   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::DescriptorProto, options_),
535   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::DescriptorProto, reserved_range_),
536   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::DescriptorProto, reserved_name_),
537   0,
538   ~0u,
539   ~0u,
540   ~0u,
541   ~0u,
542   ~0u,
543   ~0u,
544   1,
545   ~0u,
546   ~0u,
547   ~0u,  // no _has_bits_
548   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions, _internal_metadata_),
549   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions, _extensions_),
550   ~0u,  // no _oneof_case_
551   ~0u,  // no _weak_field_map_
552   ~0u,  // no _inlined_string_donated_
553   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions, uninterpreted_option_),
554   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, _has_bits_),
555   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, _internal_metadata_),
556   ~0u,  // no _extensions_
557   ~0u,  // no _oneof_case_
558   ~0u,  // no _weak_field_map_
559   ~0u,  // no _inlined_string_donated_
560   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, name_),
561   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, number_),
562   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, label_),
563   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, type_),
564   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, type_name_),
565   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, extendee_),
566   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, default_value_),
567   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, oneof_index_),
568   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, json_name_),
569   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, options_),
570   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, proto3_optional_),
571   0,
572   6,
573   9,
574   10,
575   2,
576   1,
577   3,
578   7,
579   4,
580   5,
581   8,
582   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto, _has_bits_),
583   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto, _internal_metadata_),
584   ~0u,  // no _extensions_
585   ~0u,  // no _oneof_case_
586   ~0u,  // no _weak_field_map_
587   ~0u,  // no _inlined_string_donated_
588   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto, name_),
589   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto, options_),
590   0,
591   1,
592   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange, _has_bits_),
593   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange, _internal_metadata_),
594   ~0u,  // no _extensions_
595   ~0u,  // no _oneof_case_
596   ~0u,  // no _weak_field_map_
597   ~0u,  // no _inlined_string_donated_
598   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange, start_),
599   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange, end_),
600   0,
601   1,
602   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto, _has_bits_),
603   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto, _internal_metadata_),
604   ~0u,  // no _extensions_
605   ~0u,  // no _oneof_case_
606   ~0u,  // no _weak_field_map_
607   ~0u,  // no _inlined_string_donated_
608   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto, name_),
609   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto, value_),
610   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto, options_),
611   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto, reserved_range_),
612   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto, reserved_name_),
613   0,
614   ~0u,
615   1,
616   ~0u,
617   ~0u,
618   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto, _has_bits_),
619   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto, _internal_metadata_),
620   ~0u,  // no _extensions_
621   ~0u,  // no _oneof_case_
622   ~0u,  // no _weak_field_map_
623   ~0u,  // no _inlined_string_donated_
624   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto, name_),
625   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto, number_),
626   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto, options_),
627   0,
628   2,
629   1,
630   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto, _has_bits_),
631   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto, _internal_metadata_),
632   ~0u,  // no _extensions_
633   ~0u,  // no _oneof_case_
634   ~0u,  // no _weak_field_map_
635   ~0u,  // no _inlined_string_donated_
636   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto, name_),
637   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto, method_),
638   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto, options_),
639   0,
640   ~0u,
641   1,
642   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto, _has_bits_),
643   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto, _internal_metadata_),
644   ~0u,  // no _extensions_
645   ~0u,  // no _oneof_case_
646   ~0u,  // no _weak_field_map_
647   ~0u,  // no _inlined_string_donated_
648   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto, name_),
649   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto, input_type_),
650   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto, output_type_),
651   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto, options_),
652   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto, client_streaming_),
653   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto, server_streaming_),
654   0,
655   1,
656   2,
657   3,
658   4,
659   5,
660   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, _has_bits_),
661   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, _internal_metadata_),
662   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, _extensions_),
663   ~0u,  // no _oneof_case_
664   ~0u,  // no _weak_field_map_
665   ~0u,  // no _inlined_string_donated_
666   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, java_package_),
667   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, java_outer_classname_),
668   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, java_multiple_files_),
669   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, java_generate_equals_and_hash_),
670   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, java_string_check_utf8_),
671   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, optimize_for_),
672   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, go_package_),
673   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, cc_generic_services_),
674   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, java_generic_services_),
675   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, py_generic_services_),
676   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, php_generic_services_),
677   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, deprecated_),
678   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, cc_enable_arenas_),
679   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, objc_class_prefix_),
680   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, csharp_namespace_),
681   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, swift_prefix_),
682   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, php_class_prefix_),
683   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, php_namespace_),
684   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, php_metadata_namespace_),
685   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, ruby_package_),
686   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FileOptions, uninterpreted_option_),
687   0,
688   1,
689   10,
690   11,
691   12,
692   18,
693   2,
694   13,
695   14,
696   15,
697   16,
698   17,
699   19,
700   3,
701   4,
702   5,
703   6,
704   7,
705   8,
706   9,
707   ~0u,
708   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::MessageOptions, _has_bits_),
709   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::MessageOptions, _internal_metadata_),
710   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::MessageOptions, _extensions_),
711   ~0u,  // no _oneof_case_
712   ~0u,  // no _weak_field_map_
713   ~0u,  // no _inlined_string_donated_
714   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::MessageOptions, message_set_wire_format_),
715   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::MessageOptions, no_standard_descriptor_accessor_),
716   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::MessageOptions, deprecated_),
717   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::MessageOptions, map_entry_),
718   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::MessageOptions, uninterpreted_option_),
719   0,
720   1,
721   2,
722   3,
723   ~0u,
724   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldOptions, _has_bits_),
725   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldOptions, _internal_metadata_),
726   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldOptions, _extensions_),
727   ~0u,  // no _oneof_case_
728   ~0u,  // no _weak_field_map_
729   ~0u,  // no _inlined_string_donated_
730   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldOptions, ctype_),
731   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldOptions, packed_),
732   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldOptions, jstype_),
733   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldOptions, lazy_),
734   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldOptions, unverified_lazy_),
735   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldOptions, deprecated_),
736   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldOptions, weak_),
737   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FieldOptions, uninterpreted_option_),
738   0,
739   2,
740   1,
741   3,
742   4,
743   5,
744   6,
745   ~0u,
746   ~0u,  // no _has_bits_
747   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::OneofOptions, _internal_metadata_),
748   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::OneofOptions, _extensions_),
749   ~0u,  // no _oneof_case_
750   ~0u,  // no _weak_field_map_
751   ~0u,  // no _inlined_string_donated_
752   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::OneofOptions, uninterpreted_option_),
753   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumOptions, _has_bits_),
754   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumOptions, _internal_metadata_),
755   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumOptions, _extensions_),
756   ~0u,  // no _oneof_case_
757   ~0u,  // no _weak_field_map_
758   ~0u,  // no _inlined_string_donated_
759   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumOptions, allow_alias_),
760   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumOptions, deprecated_),
761   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumOptions, uninterpreted_option_),
762   0,
763   1,
764   ~0u,
765   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumValueOptions, _has_bits_),
766   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumValueOptions, _internal_metadata_),
767   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumValueOptions, _extensions_),
768   ~0u,  // no _oneof_case_
769   ~0u,  // no _weak_field_map_
770   ~0u,  // no _inlined_string_donated_
771   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumValueOptions, deprecated_),
772   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::EnumValueOptions, uninterpreted_option_),
773   0,
774   ~0u,
775   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::ServiceOptions, _has_bits_),
776   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::ServiceOptions, _internal_metadata_),
777   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::ServiceOptions, _extensions_),
778   ~0u,  // no _oneof_case_
779   ~0u,  // no _weak_field_map_
780   ~0u,  // no _inlined_string_donated_
781   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::ServiceOptions, deprecated_),
782   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::ServiceOptions, uninterpreted_option_),
783   0,
784   ~0u,
785   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::MethodOptions, _has_bits_),
786   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::MethodOptions, _internal_metadata_),
787   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::MethodOptions, _extensions_),
788   ~0u,  // no _oneof_case_
789   ~0u,  // no _weak_field_map_
790   ~0u,  // no _inlined_string_donated_
791   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::MethodOptions, deprecated_),
792   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::MethodOptions, idempotency_level_),
793   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::MethodOptions, uninterpreted_option_),
794   0,
795   1,
796   ~0u,
797   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart, _has_bits_),
798   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart, _internal_metadata_),
799   ~0u,  // no _extensions_
800   ~0u,  // no _oneof_case_
801   ~0u,  // no _weak_field_map_
802   ~0u,  // no _inlined_string_donated_
803   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart, name_part_),
804   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart, is_extension_),
805   0,
806   1,
807   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::UninterpretedOption, _has_bits_),
808   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::UninterpretedOption, _internal_metadata_),
809   ~0u,  // no _extensions_
810   ~0u,  // no _oneof_case_
811   ~0u,  // no _weak_field_map_
812   ~0u,  // no _inlined_string_donated_
813   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::UninterpretedOption, name_),
814   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::UninterpretedOption, identifier_value_),
815   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::UninterpretedOption, positive_int_value_),
816   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::UninterpretedOption, negative_int_value_),
817   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::UninterpretedOption, double_value_),
818   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::UninterpretedOption, string_value_),
819   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::UninterpretedOption, aggregate_value_),
820   ~0u,
821   0,
822   3,
823   4,
824   5,
825   1,
826   2,
827   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location, _has_bits_),
828   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location, _internal_metadata_),
829   ~0u,  // no _extensions_
830   ~0u,  // no _oneof_case_
831   ~0u,  // no _weak_field_map_
832   ~0u,  // no _inlined_string_donated_
833   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location, path_),
834   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location, span_),
835   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location, leading_comments_),
836   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location, trailing_comments_),
837   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location, leading_detached_comments_),
838   ~0u,
839   ~0u,
840   0,
841   1,
842   ~0u,
843   ~0u,  // no _has_bits_
844   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::SourceCodeInfo, _internal_metadata_),
845   ~0u,  // no _extensions_
846   ~0u,  // no _oneof_case_
847   ~0u,  // no _weak_field_map_
848   ~0u,  // no _inlined_string_donated_
849   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::SourceCodeInfo, location_),
850   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation, _has_bits_),
851   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation, _internal_metadata_),
852   ~0u,  // no _extensions_
853   ~0u,  // no _oneof_case_
854   ~0u,  // no _weak_field_map_
855   ~0u,  // no _inlined_string_donated_
856   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation, path_),
857   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation, source_file_),
858   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation, begin_),
859   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation, end_),
860   ~0u,
861   0,
862   1,
863   2,
864   ~0u,  // no _has_bits_
865   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo, _internal_metadata_),
866   ~0u,  // no _extensions_
867   ~0u,  // no _oneof_case_
868   ~0u,  // no _weak_field_map_
869   ~0u,  // no _inlined_string_donated_
870   PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo, annotation_),
871 };
872 static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
873   { 0, -1, -1, sizeof(::PROTOBUF_NAMESPACE_ID::FileDescriptorSet)},
874   { 7, 25, -1, sizeof(::PROTOBUF_NAMESPACE_ID::FileDescriptorProto)},
875   { 37, 46, -1, sizeof(::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange)},
876   { 49, 57, -1, sizeof(::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange)},
877   { 59, 75, -1, sizeof(::PROTOBUF_NAMESPACE_ID::DescriptorProto)},
878   { 85, -1, -1, sizeof(::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions)},
879   { 92, 109, -1, sizeof(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto)},
880   { 120, 128, -1, sizeof(::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto)},
881   { 130, 138, -1, sizeof(::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange)},
882   { 140, 151, -1, sizeof(::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto)},
883   { 156, 165, -1, sizeof(::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto)},
884   { 168, 177, -1, sizeof(::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto)},
885   { 180, 192, -1, sizeof(::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto)},
886   { 198, 225, -1, sizeof(::PROTOBUF_NAMESPACE_ID::FileOptions)},
887   { 246, 257, -1, sizeof(::PROTOBUF_NAMESPACE_ID::MessageOptions)},
888   { 262, 276, -1, sizeof(::PROTOBUF_NAMESPACE_ID::FieldOptions)},
889   { 284, -1, -1, sizeof(::PROTOBUF_NAMESPACE_ID::OneofOptions)},
890   { 291, 300, -1, sizeof(::PROTOBUF_NAMESPACE_ID::EnumOptions)},
891   { 303, 311, -1, sizeof(::PROTOBUF_NAMESPACE_ID::EnumValueOptions)},
892   { 313, 321, -1, sizeof(::PROTOBUF_NAMESPACE_ID::ServiceOptions)},
893   { 323, 332, -1, sizeof(::PROTOBUF_NAMESPACE_ID::MethodOptions)},
894   { 335, 343, -1, sizeof(::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart)},
895   { 345, 358, -1, sizeof(::PROTOBUF_NAMESPACE_ID::UninterpretedOption)},
896   { 365, 376, -1, sizeof(::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location)},
897   { 381, -1, -1, sizeof(::PROTOBUF_NAMESPACE_ID::SourceCodeInfo)},
898   { 388, 398, -1, sizeof(::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation)},
899   { 402, -1, -1, sizeof(::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo)},
900 };
901 
902 static const ::_pb::Message* const file_default_instances[] = {
903   &::PROTOBUF_NAMESPACE_ID::_FileDescriptorSet_default_instance_._instance,
904   &::PROTOBUF_NAMESPACE_ID::_FileDescriptorProto_default_instance_._instance,
905   &::PROTOBUF_NAMESPACE_ID::_DescriptorProto_ExtensionRange_default_instance_._instance,
906   &::PROTOBUF_NAMESPACE_ID::_DescriptorProto_ReservedRange_default_instance_._instance,
907   &::PROTOBUF_NAMESPACE_ID::_DescriptorProto_default_instance_._instance,
908   &::PROTOBUF_NAMESPACE_ID::_ExtensionRangeOptions_default_instance_._instance,
909   &::PROTOBUF_NAMESPACE_ID::_FieldDescriptorProto_default_instance_._instance,
910   &::PROTOBUF_NAMESPACE_ID::_OneofDescriptorProto_default_instance_._instance,
911   &::PROTOBUF_NAMESPACE_ID::_EnumDescriptorProto_EnumReservedRange_default_instance_._instance,
912   &::PROTOBUF_NAMESPACE_ID::_EnumDescriptorProto_default_instance_._instance,
913   &::PROTOBUF_NAMESPACE_ID::_EnumValueDescriptorProto_default_instance_._instance,
914   &::PROTOBUF_NAMESPACE_ID::_ServiceDescriptorProto_default_instance_._instance,
915   &::PROTOBUF_NAMESPACE_ID::_MethodDescriptorProto_default_instance_._instance,
916   &::PROTOBUF_NAMESPACE_ID::_FileOptions_default_instance_._instance,
917   &::PROTOBUF_NAMESPACE_ID::_MessageOptions_default_instance_._instance,
918   &::PROTOBUF_NAMESPACE_ID::_FieldOptions_default_instance_._instance,
919   &::PROTOBUF_NAMESPACE_ID::_OneofOptions_default_instance_._instance,
920   &::PROTOBUF_NAMESPACE_ID::_EnumOptions_default_instance_._instance,
921   &::PROTOBUF_NAMESPACE_ID::_EnumValueOptions_default_instance_._instance,
922   &::PROTOBUF_NAMESPACE_ID::_ServiceOptions_default_instance_._instance,
923   &::PROTOBUF_NAMESPACE_ID::_MethodOptions_default_instance_._instance,
924   &::PROTOBUF_NAMESPACE_ID::_UninterpretedOption_NamePart_default_instance_._instance,
925   &::PROTOBUF_NAMESPACE_ID::_UninterpretedOption_default_instance_._instance,
926   &::PROTOBUF_NAMESPACE_ID::_SourceCodeInfo_Location_default_instance_._instance,
927   &::PROTOBUF_NAMESPACE_ID::_SourceCodeInfo_default_instance_._instance,
928   &::PROTOBUF_NAMESPACE_ID::_GeneratedCodeInfo_Annotation_default_instance_._instance,
929   &::PROTOBUF_NAMESPACE_ID::_GeneratedCodeInfo_default_instance_._instance,
930 };
931 
932 const char descriptor_table_protodef_google_2fprotobuf_2fdescriptor_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
933   "\n google/protobuf/descriptor.proto\022\017goog"
934   "le.protobuf\"G\n\021FileDescriptorSet\0222\n\004file"
935   "\030\001 \003(\0132$.google.protobuf.FileDescriptorP"
936   "roto\"\333\003\n\023FileDescriptorProto\022\014\n\004name\030\001 \001"
937   "(\t\022\017\n\007package\030\002 \001(\t\022\022\n\ndependency\030\003 \003(\t\022"
938   "\031\n\021public_dependency\030\n \003(\005\022\027\n\017weak_depen"
939   "dency\030\013 \003(\005\0226\n\014message_type\030\004 \003(\0132 .goog"
940   "le.protobuf.DescriptorProto\0227\n\tenum_type"
941   "\030\005 \003(\0132$.google.protobuf.EnumDescriptorP"
942   "roto\0228\n\007service\030\006 \003(\0132\'.google.protobuf."
943   "ServiceDescriptorProto\0228\n\textension\030\007 \003("
944   "\0132%.google.protobuf.FieldDescriptorProto"
945   "\022-\n\007options\030\010 \001(\0132\034.google.protobuf.File"
946   "Options\0229\n\020source_code_info\030\t \001(\0132\037.goog"
947   "le.protobuf.SourceCodeInfo\022\016\n\006syntax\030\014 \001"
948   "(\t\"\251\005\n\017DescriptorProto\022\014\n\004name\030\001 \001(\t\0224\n\005"
949   "field\030\002 \003(\0132%.google.protobuf.FieldDescr"
950   "iptorProto\0228\n\textension\030\006 \003(\0132%.google.p"
951   "rotobuf.FieldDescriptorProto\0225\n\013nested_t"
952   "ype\030\003 \003(\0132 .google.protobuf.DescriptorPr"
953   "oto\0227\n\tenum_type\030\004 \003(\0132$.google.protobuf"
954   ".EnumDescriptorProto\022H\n\017extension_range\030"
955   "\005 \003(\0132/.google.protobuf.DescriptorProto."
956   "ExtensionRange\0229\n\noneof_decl\030\010 \003(\0132%.goo"
957   "gle.protobuf.OneofDescriptorProto\0220\n\007opt"
958   "ions\030\007 \001(\0132\037.google.protobuf.MessageOpti"
959   "ons\022F\n\016reserved_range\030\t \003(\0132..google.pro"
960   "tobuf.DescriptorProto.ReservedRange\022\025\n\rr"
961   "eserved_name\030\n \003(\t\032e\n\016ExtensionRange\022\r\n\005"
962   "start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\0227\n\007options\030\003 \001("
963   "\0132&.google.protobuf.ExtensionRangeOption"
964   "s\032+\n\rReservedRange\022\r\n\005start\030\001 \001(\005\022\013\n\003end"
965   "\030\002 \001(\005\"g\n\025ExtensionRangeOptions\022C\n\024unint"
966   "erpreted_option\030\347\007 \003(\0132$.google.protobuf"
967   ".UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\"\325\005\n\024Fiel"
968   "dDescriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n\006number"
969   "\030\003 \001(\005\022:\n\005label\030\004 \001(\0162+.google.protobuf."
970   "FieldDescriptorProto.Label\0228\n\004type\030\005 \001(\016"
971   "2*.google.protobuf.FieldDescriptorProto."
972   "Type\022\021\n\ttype_name\030\006 \001(\t\022\020\n\010extendee\030\002 \001("
973   "\t\022\025\n\rdefault_value\030\007 \001(\t\022\023\n\013oneof_index\030"
974   "\t \001(\005\022\021\n\tjson_name\030\n \001(\t\022.\n\007options\030\010 \001("
975   "\0132\035.google.protobuf.FieldOptions\022\027\n\017prot"
976   "o3_optional\030\021 \001(\010\"\266\002\n\004Type\022\017\n\013TYPE_DOUBL"
977   "E\020\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTYPE_INT64\020\003\022\017\n\013T"
978   "YPE_UINT64\020\004\022\016\n\nTYPE_INT32\020\005\022\020\n\014TYPE_FIX"
979   "ED64\020\006\022\020\n\014TYPE_FIXED32\020\007\022\r\n\tTYPE_BOOL\020\010\022"
980   "\017\n\013TYPE_STRING\020\t\022\016\n\nTYPE_GROUP\020\n\022\020\n\014TYPE"
981   "_MESSAGE\020\013\022\016\n\nTYPE_BYTES\020\014\022\017\n\013TYPE_UINT3"
982   "2\020\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_SFIXED32\020\017\022\021\n"
983   "\rTYPE_SFIXED64\020\020\022\017\n\013TYPE_SINT32\020\021\022\017\n\013TYP"
984   "E_SINT64\020\022\"C\n\005Label\022\022\n\016LABEL_OPTIONAL\020\001\022"
985   "\022\n\016LABEL_REQUIRED\020\002\022\022\n\016LABEL_REPEATED\020\003\""
986   "T\n\024OneofDescriptorProto\022\014\n\004name\030\001 \001(\t\022.\n"
987   "\007options\030\002 \001(\0132\035.google.protobuf.OneofOp"
988   "tions\"\244\002\n\023EnumDescriptorProto\022\014\n\004name\030\001 "
989   "\001(\t\0228\n\005value\030\002 \003(\0132).google.protobuf.Enu"
990   "mValueDescriptorProto\022-\n\007options\030\003 \001(\0132\034"
991   ".google.protobuf.EnumOptions\022N\n\016reserved"
992   "_range\030\004 \003(\01326.google.protobuf.EnumDescr"
993   "iptorProto.EnumReservedRange\022\025\n\rreserved"
994   "_name\030\005 \003(\t\032/\n\021EnumReservedRange\022\r\n\005star"
995   "t\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"l\n\030EnumValueDescrip"
996   "torProto\022\014\n\004name\030\001 \001(\t\022\016\n\006number\030\002 \001(\005\0222"
997   "\n\007options\030\003 \001(\0132!.google.protobuf.EnumVa"
998   "lueOptions\"\220\001\n\026ServiceDescriptorProto\022\014\n"
999   "\004name\030\001 \001(\t\0226\n\006method\030\002 \003(\0132&.google.pro"
1000   "tobuf.MethodDescriptorProto\0220\n\007options\030\003"
1001   " \001(\0132\037.google.protobuf.ServiceOptions\"\301\001"
1002   "\n\025MethodDescriptorProto\022\014\n\004name\030\001 \001(\t\022\022\n"
1003   "\ninput_type\030\002 \001(\t\022\023\n\013output_type\030\003 \001(\t\022/"
1004   "\n\007options\030\004 \001(\0132\036.google.protobuf.Method"
1005   "Options\022\037\n\020client_streaming\030\005 \001(\010:\005false"
1006   "\022\037\n\020server_streaming\030\006 \001(\010:\005false\"\245\006\n\013Fi"
1007   "leOptions\022\024\n\014java_package\030\001 \001(\t\022\034\n\024java_"
1008   "outer_classname\030\010 \001(\t\022\"\n\023java_multiple_f"
1009   "iles\030\n \001(\010:\005false\022)\n\035java_generate_equal"
1010   "s_and_hash\030\024 \001(\010B\002\030\001\022%\n\026java_string_chec"
1011   "k_utf8\030\033 \001(\010:\005false\022F\n\014optimize_for\030\t \001("
1012   "\0162).google.protobuf.FileOptions.Optimize"
1013   "Mode:\005SPEED\022\022\n\ngo_package\030\013 \001(\t\022\"\n\023cc_ge"
1014   "neric_services\030\020 \001(\010:\005false\022$\n\025java_gene"
1015   "ric_services\030\021 \001(\010:\005false\022\"\n\023py_generic_"
1016   "services\030\022 \001(\010:\005false\022#\n\024php_generic_ser"
1017   "vices\030* \001(\010:\005false\022\031\n\ndeprecated\030\027 \001(\010:\005"
1018   "false\022\036\n\020cc_enable_arenas\030\037 \001(\010:\004true\022\031\n"
1019   "\021objc_class_prefix\030$ \001(\t\022\030\n\020csharp_names"
1020   "pace\030% \001(\t\022\024\n\014swift_prefix\030\' \001(\t\022\030\n\020php_"
1021   "class_prefix\030( \001(\t\022\025\n\rphp_namespace\030) \001("
1022   "\t\022\036\n\026php_metadata_namespace\030, \001(\t\022\024\n\014rub"
1023   "y_package\030- \001(\t\022C\n\024uninterpreted_option\030"
1024   "\347\007 \003(\0132$.google.protobuf.UninterpretedOp"
1025   "tion\":\n\014OptimizeMode\022\t\n\005SPEED\020\001\022\r\n\tCODE_"
1026   "SIZE\020\002\022\020\n\014LITE_RUNTIME\020\003*\t\010\350\007\020\200\200\200\200\002J\004\010&\020"
1027   "\'\"\204\002\n\016MessageOptions\022&\n\027message_set_wire"
1028   "_format\030\001 \001(\010:\005false\022.\n\037no_standard_desc"
1029   "riptor_accessor\030\002 \001(\010:\005false\022\031\n\ndeprecat"
1030   "ed\030\003 \001(\010:\005false\022\021\n\tmap_entry\030\007 \001(\010\022C\n\024un"
1031   "interpreted_option\030\347\007 \003(\0132$.google.proto"
1032   "buf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002J\004\010\004\020\005"
1033   "J\004\010\005\020\006J\004\010\006\020\007J\004\010\010\020\tJ\004\010\t\020\n\"\276\003\n\014FieldOption"
1034   "s\022:\n\005ctype\030\001 \001(\0162#.google.protobuf.Field"
1035   "Options.CType:\006STRING\022\016\n\006packed\030\002 \001(\010\022\?\n"
1036   "\006jstype\030\006 \001(\0162$.google.protobuf.FieldOpt"
1037   "ions.JSType:\tJS_NORMAL\022\023\n\004lazy\030\005 \001(\010:\005fa"
1038   "lse\022\036\n\017unverified_lazy\030\017 \001(\010:\005false\022\031\n\nd"
1039   "eprecated\030\003 \001(\010:\005false\022\023\n\004weak\030\n \001(\010:\005fa"
1040   "lse\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.goo"
1041   "gle.protobuf.UninterpretedOption\"/\n\005CTyp"
1042   "e\022\n\n\006STRING\020\000\022\010\n\004CORD\020\001\022\020\n\014STRING_PIECE\020"
1043   "\002\"5\n\006JSType\022\r\n\tJS_NORMAL\020\000\022\r\n\tJS_STRING\020"
1044   "\001\022\r\n\tJS_NUMBER\020\002*\t\010\350\007\020\200\200\200\200\002J\004\010\004\020\005\"^\n\014One"
1045   "ofOptions\022C\n\024uninterpreted_option\030\347\007 \003(\013"
1046   "2$.google.protobuf.UninterpretedOption*\t"
1047   "\010\350\007\020\200\200\200\200\002\"\223\001\n\013EnumOptions\022\023\n\013allow_alias"
1048   "\030\002 \001(\010\022\031\n\ndeprecated\030\003 \001(\010:\005false\022C\n\024uni"
1049   "nterpreted_option\030\347\007 \003(\0132$.google.protob"
1050   "uf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002J\004\010\005\020\006\""
1051   "}\n\020EnumValueOptions\022\031\n\ndeprecated\030\001 \001(\010:"
1052   "\005false\022C\n\024uninterpreted_option\030\347\007 \003(\0132$."
1053   "google.protobuf.UninterpretedOption*\t\010\350\007"
1054   "\020\200\200\200\200\002\"{\n\016ServiceOptions\022\031\n\ndeprecated\030!"
1055   " \001(\010:\005false\022C\n\024uninterpreted_option\030\347\007 \003"
1056   "(\0132$.google.protobuf.UninterpretedOption"
1057   "*\t\010\350\007\020\200\200\200\200\002\"\255\002\n\rMethodOptions\022\031\n\ndepreca"
1058   "ted\030! \001(\010:\005false\022_\n\021idempotency_level\030\" "
1059   "\001(\0162/.google.protobuf.MethodOptions.Idem"
1060   "potencyLevel:\023IDEMPOTENCY_UNKNOWN\022C\n\024uni"
1061   "nterpreted_option\030\347\007 \003(\0132$.google.protob"
1062   "uf.UninterpretedOption\"P\n\020IdempotencyLev"
1063   "el\022\027\n\023IDEMPOTENCY_UNKNOWN\020\000\022\023\n\017NO_SIDE_E"
1064   "FFECTS\020\001\022\016\n\nIDEMPOTENT\020\002*\t\010\350\007\020\200\200\200\200\002\"\236\002\n\023"
1065   "UninterpretedOption\022;\n\004name\030\002 \003(\0132-.goog"
1066   "le.protobuf.UninterpretedOption.NamePart"
1067   "\022\030\n\020identifier_value\030\003 \001(\t\022\032\n\022positive_i"
1068   "nt_value\030\004 \001(\004\022\032\n\022negative_int_value\030\005 \001"
1069   "(\003\022\024\n\014double_value\030\006 \001(\001\022\024\n\014string_value"
1070   "\030\007 \001(\014\022\027\n\017aggregate_value\030\010 \001(\t\0323\n\010NameP"
1071   "art\022\021\n\tname_part\030\001 \002(\t\022\024\n\014is_extension\030\002"
1072   " \002(\010\"\325\001\n\016SourceCodeInfo\022:\n\010location\030\001 \003("
1073   "\0132(.google.protobuf.SourceCodeInfo.Locat"
1074   "ion\032\206\001\n\010Location\022\020\n\004path\030\001 \003(\005B\002\020\001\022\020\n\004sp"
1075   "an\030\002 \003(\005B\002\020\001\022\030\n\020leading_comments\030\003 \001(\t\022\031"
1076   "\n\021trailing_comments\030\004 \001(\t\022!\n\031leading_det"
1077   "ached_comments\030\006 \003(\t\"\247\001\n\021GeneratedCodeIn"
1078   "fo\022A\n\nannotation\030\001 \003(\0132-.google.protobuf"
1079   ".GeneratedCodeInfo.Annotation\032O\n\nAnnotat"
1080   "ion\022\020\n\004path\030\001 \003(\005B\002\020\001\022\023\n\013source_file\030\002 \001"
1081   "(\t\022\r\n\005begin\030\003 \001(\005\022\013\n\003end\030\004 \001(\005B~\n\023com.go"
1082   "ogle.protobufB\020DescriptorProtosH\001Z-googl"
1083   "e.golang.org/protobuf/types/descriptorpb"
1084   "\370\001\001\242\002\003GPB\252\002\032Google.Protobuf.Reflection"
1085   ;
1086 static ::_pbi::once_flag descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once;
1087 const ::_pbi::DescriptorTable descriptor_table_google_2fprotobuf_2fdescriptor_2eproto = {
1088     false, false, 6078, descriptor_table_protodef_google_2fprotobuf_2fdescriptor_2eproto,
1089     "google/protobuf/descriptor.proto",
1090     &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once, nullptr, 0, 27,
1091     schemas, file_default_instances, TableStruct_google_2fprotobuf_2fdescriptor_2eproto::offsets,
1092     file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto, file_level_enum_descriptors_google_2fprotobuf_2fdescriptor_2eproto,
1093     file_level_service_descriptors_google_2fprotobuf_2fdescriptor_2eproto,
1094 };
descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter()1095 PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter() {
1096   return &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto;
1097 }
1098 
1099 // Force running AddDescriptors() at dynamic initialization time.
1100 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fprotobuf_2fdescriptor_2eproto(&descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
1101 PROTOBUF_NAMESPACE_OPEN
FieldDescriptorProto_Type_descriptor()1102 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldDescriptorProto_Type_descriptor() {
1103   ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
1104   return file_level_enum_descriptors_google_2fprotobuf_2fdescriptor_2eproto[0];
1105 }
FieldDescriptorProto_Type_IsValid(int value)1106 bool FieldDescriptorProto_Type_IsValid(int value) {
1107   switch (value) {
1108     case 1:
1109     case 2:
1110     case 3:
1111     case 4:
1112     case 5:
1113     case 6:
1114     case 7:
1115     case 8:
1116     case 9:
1117     case 10:
1118     case 11:
1119     case 12:
1120     case 13:
1121     case 14:
1122     case 15:
1123     case 16:
1124     case 17:
1125     case 18:
1126       return true;
1127     default:
1128       return false;
1129   }
1130 }
1131 
1132 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1133 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_DOUBLE;
1134 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FLOAT;
1135 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT64;
1136 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT64;
1137 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT32;
1138 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED64;
1139 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED32;
1140 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BOOL;
1141 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_STRING;
1142 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_GROUP;
1143 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_MESSAGE;
1144 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BYTES;
1145 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT32;
1146 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_ENUM;
1147 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED32;
1148 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED64;
1149 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT32;
1150 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT64;
1151 constexpr FieldDescriptorProto_Type FieldDescriptorProto::Type_MIN;
1152 constexpr FieldDescriptorProto_Type FieldDescriptorProto::Type_MAX;
1153 constexpr int FieldDescriptorProto::Type_ARRAYSIZE;
1154 #endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
FieldDescriptorProto_Label_descriptor()1155 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldDescriptorProto_Label_descriptor() {
1156   ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
1157   return file_level_enum_descriptors_google_2fprotobuf_2fdescriptor_2eproto[1];
1158 }
FieldDescriptorProto_Label_IsValid(int value)1159 bool FieldDescriptorProto_Label_IsValid(int value) {
1160   switch (value) {
1161     case 1:
1162     case 2:
1163     case 3:
1164       return true;
1165     default:
1166       return false;
1167   }
1168 }
1169 
1170 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1171 constexpr FieldDescriptorProto_Label FieldDescriptorProto::LABEL_OPTIONAL;
1172 constexpr FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REQUIRED;
1173 constexpr FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REPEATED;
1174 constexpr FieldDescriptorProto_Label FieldDescriptorProto::Label_MIN;
1175 constexpr FieldDescriptorProto_Label FieldDescriptorProto::Label_MAX;
1176 constexpr int FieldDescriptorProto::Label_ARRAYSIZE;
1177 #endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
FileOptions_OptimizeMode_descriptor()1178 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FileOptions_OptimizeMode_descriptor() {
1179   ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
1180   return file_level_enum_descriptors_google_2fprotobuf_2fdescriptor_2eproto[2];
1181 }
FileOptions_OptimizeMode_IsValid(int value)1182 bool FileOptions_OptimizeMode_IsValid(int value) {
1183   switch (value) {
1184     case 1:
1185     case 2:
1186     case 3:
1187       return true;
1188     default:
1189       return false;
1190   }
1191 }
1192 
1193 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1194 constexpr FileOptions_OptimizeMode FileOptions::SPEED;
1195 constexpr FileOptions_OptimizeMode FileOptions::CODE_SIZE;
1196 constexpr FileOptions_OptimizeMode FileOptions::LITE_RUNTIME;
1197 constexpr FileOptions_OptimizeMode FileOptions::OptimizeMode_MIN;
1198 constexpr FileOptions_OptimizeMode FileOptions::OptimizeMode_MAX;
1199 constexpr int FileOptions::OptimizeMode_ARRAYSIZE;
1200 #endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
FieldOptions_CType_descriptor()1201 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldOptions_CType_descriptor() {
1202   ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
1203   return file_level_enum_descriptors_google_2fprotobuf_2fdescriptor_2eproto[3];
1204 }
FieldOptions_CType_IsValid(int value)1205 bool FieldOptions_CType_IsValid(int value) {
1206   switch (value) {
1207     case 0:
1208     case 1:
1209     case 2:
1210       return true;
1211     default:
1212       return false;
1213   }
1214 }
1215 
1216 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1217 constexpr FieldOptions_CType FieldOptions::STRING;
1218 constexpr FieldOptions_CType FieldOptions::CORD;
1219 constexpr FieldOptions_CType FieldOptions::STRING_PIECE;
1220 constexpr FieldOptions_CType FieldOptions::CType_MIN;
1221 constexpr FieldOptions_CType FieldOptions::CType_MAX;
1222 constexpr int FieldOptions::CType_ARRAYSIZE;
1223 #endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
FieldOptions_JSType_descriptor()1224 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldOptions_JSType_descriptor() {
1225   ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
1226   return file_level_enum_descriptors_google_2fprotobuf_2fdescriptor_2eproto[4];
1227 }
FieldOptions_JSType_IsValid(int value)1228 bool FieldOptions_JSType_IsValid(int value) {
1229   switch (value) {
1230     case 0:
1231     case 1:
1232     case 2:
1233       return true;
1234     default:
1235       return false;
1236   }
1237 }
1238 
1239 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1240 constexpr FieldOptions_JSType FieldOptions::JS_NORMAL;
1241 constexpr FieldOptions_JSType FieldOptions::JS_STRING;
1242 constexpr FieldOptions_JSType FieldOptions::JS_NUMBER;
1243 constexpr FieldOptions_JSType FieldOptions::JSType_MIN;
1244 constexpr FieldOptions_JSType FieldOptions::JSType_MAX;
1245 constexpr int FieldOptions::JSType_ARRAYSIZE;
1246 #endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
MethodOptions_IdempotencyLevel_descriptor()1247 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MethodOptions_IdempotencyLevel_descriptor() {
1248   ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
1249   return file_level_enum_descriptors_google_2fprotobuf_2fdescriptor_2eproto[5];
1250 }
MethodOptions_IdempotencyLevel_IsValid(int value)1251 bool MethodOptions_IdempotencyLevel_IsValid(int value) {
1252   switch (value) {
1253     case 0:
1254     case 1:
1255     case 2:
1256       return true;
1257     default:
1258       return false;
1259   }
1260 }
1261 
1262 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1263 constexpr MethodOptions_IdempotencyLevel MethodOptions::IDEMPOTENCY_UNKNOWN;
1264 constexpr MethodOptions_IdempotencyLevel MethodOptions::NO_SIDE_EFFECTS;
1265 constexpr MethodOptions_IdempotencyLevel MethodOptions::IDEMPOTENT;
1266 constexpr MethodOptions_IdempotencyLevel MethodOptions::IdempotencyLevel_MIN;
1267 constexpr MethodOptions_IdempotencyLevel MethodOptions::IdempotencyLevel_MAX;
1268 constexpr int MethodOptions::IdempotencyLevel_ARRAYSIZE;
1269 #endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1270 
1271 // ===================================================================
1272 
1273 class FileDescriptorSet::_Internal {
1274  public:
1275 };
1276 
FileDescriptorSet(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1277 FileDescriptorSet::FileDescriptorSet(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1278                          bool is_message_owned)
1279   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
1280   file_(arena) {
1281   SharedCtor();
1282   // @@protoc_insertion_point(arena_constructor:google.protobuf.FileDescriptorSet)
1283 }
FileDescriptorSet(const FileDescriptorSet & from)1284 FileDescriptorSet::FileDescriptorSet(const FileDescriptorSet& from)
1285   : ::PROTOBUF_NAMESPACE_ID::Message(),
1286       file_(from.file_) {
1287   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1288   // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorSet)
1289 }
1290 
SharedCtor()1291 inline void FileDescriptorSet::SharedCtor() {
1292 }
1293 
~FileDescriptorSet()1294 FileDescriptorSet::~FileDescriptorSet() {
1295   // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorSet)
1296   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1297   (void)arena;
1298     return;
1299   }
1300   SharedDtor();
1301 }
1302 
SharedDtor()1303 inline void FileDescriptorSet::SharedDtor() {
1304   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1305 }
1306 
SetCachedSize(int size) const1307 void FileDescriptorSet::SetCachedSize(int size) const {
1308   _cached_size_.Set(size);
1309 }
1310 
Clear()1311 void FileDescriptorSet::Clear() {
1312 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileDescriptorSet)
1313   uint32_t cached_has_bits = 0;
1314   // Prevent compiler warnings about cached_has_bits being unused
1315   (void) cached_has_bits;
1316 
1317   file_.Clear();
1318   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1319 }
1320 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1321 const char* FileDescriptorSet::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1322 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1323   while (!ctx->Done(&ptr)) {
1324     uint32_t tag;
1325     ptr = ::_pbi::ReadTag(ptr, &tag);
1326     switch (tag >> 3) {
1327       // repeated .google.protobuf.FileDescriptorProto file = 1;
1328       case 1:
1329         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
1330           ptr -= 1;
1331           do {
1332             ptr += 1;
1333             ptr = ctx->ParseMessage(_internal_add_file(), ptr);
1334             CHK_(ptr);
1335             if (!ctx->DataAvailable(ptr)) break;
1336           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
1337         } else
1338           goto handle_unusual;
1339         continue;
1340       default:
1341         goto handle_unusual;
1342     }  // switch
1343   handle_unusual:
1344     if ((tag == 0) || ((tag & 7) == 4)) {
1345       CHK_(ptr);
1346       ctx->SetLastTag(tag);
1347       goto message_done;
1348     }
1349     ptr = UnknownFieldParse(
1350         tag,
1351         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1352         ptr, ctx);
1353     CHK_(ptr != nullptr);
1354   }  // while
1355 message_done:
1356   return ptr;
1357 failure:
1358   ptr = nullptr;
1359   goto message_done;
1360 #undef CHK_
1361 }
1362 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1363 uint8_t* FileDescriptorSet::_InternalSerialize(
1364     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1365   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorSet)
1366   uint32_t cached_has_bits = 0;
1367   (void) cached_has_bits;
1368 
1369   // repeated .google.protobuf.FileDescriptorProto file = 1;
1370   for (unsigned i = 0,
1371       n = static_cast<unsigned>(this->_internal_file_size()); i < n; i++) {
1372     const auto& repfield = this->_internal_file(i);
1373     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1374         InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
1375   }
1376 
1377   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1378     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1379         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1380   }
1381   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescriptorSet)
1382   return target;
1383 }
1384 
ByteSizeLong() const1385 size_t FileDescriptorSet::ByteSizeLong() const {
1386 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileDescriptorSet)
1387   size_t total_size = 0;
1388 
1389   uint32_t cached_has_bits = 0;
1390   // Prevent compiler warnings about cached_has_bits being unused
1391   (void) cached_has_bits;
1392 
1393   // repeated .google.protobuf.FileDescriptorProto file = 1;
1394   total_size += 1UL * this->_internal_file_size();
1395   for (const auto& msg : this->file_) {
1396     total_size +=
1397       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1398   }
1399 
1400   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
1401 }
1402 
1403 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FileDescriptorSet::_class_data_ = {
1404     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
1405     FileDescriptorSet::MergeImpl
1406 };
GetClassData() const1407 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FileDescriptorSet::GetClassData() const { return &_class_data_; }
1408 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)1409 void FileDescriptorSet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
1410                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1411   static_cast<FileDescriptorSet *>(to)->MergeFrom(
1412       static_cast<const FileDescriptorSet &>(from));
1413 }
1414 
1415 
MergeFrom(const FileDescriptorSet & from)1416 void FileDescriptorSet::MergeFrom(const FileDescriptorSet& from) {
1417 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FileDescriptorSet)
1418   GOOGLE_DCHECK_NE(&from, this);
1419   uint32_t cached_has_bits = 0;
1420   (void) cached_has_bits;
1421 
1422   file_.MergeFrom(from.file_);
1423   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1424 }
1425 
CopyFrom(const FileDescriptorSet & from)1426 void FileDescriptorSet::CopyFrom(const FileDescriptorSet& from) {
1427 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileDescriptorSet)
1428   if (&from == this) return;
1429   Clear();
1430   MergeFrom(from);
1431 }
1432 
IsInitialized() const1433 bool FileDescriptorSet::IsInitialized() const {
1434   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(file_))
1435     return false;
1436   return true;
1437 }
1438 
InternalSwap(FileDescriptorSet * other)1439 void FileDescriptorSet::InternalSwap(FileDescriptorSet* other) {
1440   using std::swap;
1441   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1442   file_.InternalSwap(&other->file_);
1443 }
1444 
GetMetadata() const1445 ::PROTOBUF_NAMESPACE_ID::Metadata FileDescriptorSet::GetMetadata() const {
1446   return ::_pbi::AssignDescriptors(
1447       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
1448       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[0]);
1449 }
1450 
1451 // ===================================================================
1452 
1453 class FileDescriptorProto::_Internal {
1454  public:
1455   using HasBits = decltype(std::declval<FileDescriptorProto>()._has_bits_);
set_has_name(HasBits * has_bits)1456   static void set_has_name(HasBits* has_bits) {
1457     (*has_bits)[0] |= 1u;
1458   }
set_has_package(HasBits * has_bits)1459   static void set_has_package(HasBits* has_bits) {
1460     (*has_bits)[0] |= 2u;
1461   }
1462   static const ::PROTOBUF_NAMESPACE_ID::FileOptions& options(const FileDescriptorProto* msg);
set_has_options(HasBits * has_bits)1463   static void set_has_options(HasBits* has_bits) {
1464     (*has_bits)[0] |= 8u;
1465   }
1466   static const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo& source_code_info(const FileDescriptorProto* msg);
set_has_source_code_info(HasBits * has_bits)1467   static void set_has_source_code_info(HasBits* has_bits) {
1468     (*has_bits)[0] |= 16u;
1469   }
set_has_syntax(HasBits * has_bits)1470   static void set_has_syntax(HasBits* has_bits) {
1471     (*has_bits)[0] |= 4u;
1472   }
1473 };
1474 
1475 const ::PROTOBUF_NAMESPACE_ID::FileOptions&
options(const FileDescriptorProto * msg)1476 FileDescriptorProto::_Internal::options(const FileDescriptorProto* msg) {
1477   return *msg->options_;
1478 }
1479 const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo&
source_code_info(const FileDescriptorProto * msg)1480 FileDescriptorProto::_Internal::source_code_info(const FileDescriptorProto* msg) {
1481   return *msg->source_code_info_;
1482 }
FileDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1483 FileDescriptorProto::FileDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1484                          bool is_message_owned)
1485   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
1486   dependency_(arena),
1487   message_type_(arena),
1488   enum_type_(arena),
1489   service_(arena),
1490   extension_(arena),
1491   public_dependency_(arena),
1492   weak_dependency_(arena) {
1493   SharedCtor();
1494   // @@protoc_insertion_point(arena_constructor:google.protobuf.FileDescriptorProto)
1495 }
FileDescriptorProto(const FileDescriptorProto & from)1496 FileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from)
1497   : ::PROTOBUF_NAMESPACE_ID::Message(),
1498       _has_bits_(from._has_bits_),
1499       dependency_(from.dependency_),
1500       message_type_(from.message_type_),
1501       enum_type_(from.enum_type_),
1502       service_(from.service_),
1503       extension_(from.extension_),
1504       public_dependency_(from.public_dependency_),
1505       weak_dependency_(from.weak_dependency_) {
1506   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1507   name_.InitDefault();
1508   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1509     name_.Set("", GetArenaForAllocation());
1510   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1511   if (from._internal_has_name()) {
1512     name_.Set(from._internal_name(),
1513       GetArenaForAllocation());
1514   }
1515   package_.InitDefault();
1516   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1517     package_.Set("", GetArenaForAllocation());
1518   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1519   if (from._internal_has_package()) {
1520     package_.Set(from._internal_package(),
1521       GetArenaForAllocation());
1522   }
1523   syntax_.InitDefault();
1524   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1525     syntax_.Set("", GetArenaForAllocation());
1526   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1527   if (from._internal_has_syntax()) {
1528     syntax_.Set(from._internal_syntax(),
1529       GetArenaForAllocation());
1530   }
1531   if (from._internal_has_options()) {
1532     options_ = new ::PROTOBUF_NAMESPACE_ID::FileOptions(*from.options_);
1533   } else {
1534     options_ = nullptr;
1535   }
1536   if (from._internal_has_source_code_info()) {
1537     source_code_info_ = new ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo(*from.source_code_info_);
1538   } else {
1539     source_code_info_ = nullptr;
1540   }
1541   // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorProto)
1542 }
1543 
SharedCtor()1544 inline void FileDescriptorProto::SharedCtor() {
1545 name_.InitDefault();
1546 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1547   name_.Set("", GetArenaForAllocation());
1548 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1549 package_.InitDefault();
1550 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1551   package_.Set("", GetArenaForAllocation());
1552 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1553 syntax_.InitDefault();
1554 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1555   syntax_.Set("", GetArenaForAllocation());
1556 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1557 ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
1558     reinterpret_cast<char*>(&options_) - reinterpret_cast<char*>(this)),
1559     0, static_cast<size_t>(reinterpret_cast<char*>(&source_code_info_) -
1560     reinterpret_cast<char*>(&options_)) + sizeof(source_code_info_));
1561 }
1562 
~FileDescriptorProto()1563 FileDescriptorProto::~FileDescriptorProto() {
1564   // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorProto)
1565   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1566   (void)arena;
1567     return;
1568   }
1569   SharedDtor();
1570 }
1571 
SharedDtor()1572 inline void FileDescriptorProto::SharedDtor() {
1573   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1574   name_.Destroy();
1575   package_.Destroy();
1576   syntax_.Destroy();
1577   if (this != internal_default_instance()) delete options_;
1578   if (this != internal_default_instance()) delete source_code_info_;
1579 }
1580 
SetCachedSize(int size) const1581 void FileDescriptorProto::SetCachedSize(int size) const {
1582   _cached_size_.Set(size);
1583 }
1584 
Clear()1585 void FileDescriptorProto::Clear() {
1586 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileDescriptorProto)
1587   uint32_t cached_has_bits = 0;
1588   // Prevent compiler warnings about cached_has_bits being unused
1589   (void) cached_has_bits;
1590 
1591   dependency_.Clear();
1592   message_type_.Clear();
1593   enum_type_.Clear();
1594   service_.Clear();
1595   extension_.Clear();
1596   public_dependency_.Clear();
1597   weak_dependency_.Clear();
1598   cached_has_bits = _has_bits_[0];
1599   if (cached_has_bits & 0x0000001fu) {
1600     if (cached_has_bits & 0x00000001u) {
1601       name_.ClearNonDefaultToEmpty();
1602     }
1603     if (cached_has_bits & 0x00000002u) {
1604       package_.ClearNonDefaultToEmpty();
1605     }
1606     if (cached_has_bits & 0x00000004u) {
1607       syntax_.ClearNonDefaultToEmpty();
1608     }
1609     if (cached_has_bits & 0x00000008u) {
1610       GOOGLE_DCHECK(options_ != nullptr);
1611       options_->Clear();
1612     }
1613     if (cached_has_bits & 0x00000010u) {
1614       GOOGLE_DCHECK(source_code_info_ != nullptr);
1615       source_code_info_->Clear();
1616     }
1617   }
1618   _has_bits_.Clear();
1619   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1620 }
1621 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1622 const char* FileDescriptorProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1623 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1624   _Internal::HasBits has_bits{};
1625   while (!ctx->Done(&ptr)) {
1626     uint32_t tag;
1627     ptr = ::_pbi::ReadTag(ptr, &tag);
1628     switch (tag >> 3) {
1629       // optional string name = 1;
1630       case 1:
1631         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
1632           auto str = _internal_mutable_name();
1633           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1634           CHK_(ptr);
1635           #ifndef NDEBUG
1636           ::_pbi::VerifyUTF8(str, "google.protobuf.FileDescriptorProto.name");
1637           #endif  // !NDEBUG
1638         } else
1639           goto handle_unusual;
1640         continue;
1641       // optional string package = 2;
1642       case 2:
1643         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
1644           auto str = _internal_mutable_package();
1645           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1646           CHK_(ptr);
1647           #ifndef NDEBUG
1648           ::_pbi::VerifyUTF8(str, "google.protobuf.FileDescriptorProto.package");
1649           #endif  // !NDEBUG
1650         } else
1651           goto handle_unusual;
1652         continue;
1653       // repeated string dependency = 3;
1654       case 3:
1655         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
1656           ptr -= 1;
1657           do {
1658             ptr += 1;
1659             auto str = _internal_add_dependency();
1660             ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1661             CHK_(ptr);
1662             #ifndef NDEBUG
1663             ::_pbi::VerifyUTF8(str, "google.protobuf.FileDescriptorProto.dependency");
1664             #endif  // !NDEBUG
1665             if (!ctx->DataAvailable(ptr)) break;
1666           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
1667         } else
1668           goto handle_unusual;
1669         continue;
1670       // repeated .google.protobuf.DescriptorProto message_type = 4;
1671       case 4:
1672         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
1673           ptr -= 1;
1674           do {
1675             ptr += 1;
1676             ptr = ctx->ParseMessage(_internal_add_message_type(), ptr);
1677             CHK_(ptr);
1678             if (!ctx->DataAvailable(ptr)) break;
1679           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
1680         } else
1681           goto handle_unusual;
1682         continue;
1683       // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1684       case 5:
1685         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
1686           ptr -= 1;
1687           do {
1688             ptr += 1;
1689             ptr = ctx->ParseMessage(_internal_add_enum_type(), ptr);
1690             CHK_(ptr);
1691             if (!ctx->DataAvailable(ptr)) break;
1692           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
1693         } else
1694           goto handle_unusual;
1695         continue;
1696       // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1697       case 6:
1698         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
1699           ptr -= 1;
1700           do {
1701             ptr += 1;
1702             ptr = ctx->ParseMessage(_internal_add_service(), ptr);
1703             CHK_(ptr);
1704             if (!ctx->DataAvailable(ptr)) break;
1705           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr));
1706         } else
1707           goto handle_unusual;
1708         continue;
1709       // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1710       case 7:
1711         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
1712           ptr -= 1;
1713           do {
1714             ptr += 1;
1715             ptr = ctx->ParseMessage(_internal_add_extension(), ptr);
1716             CHK_(ptr);
1717             if (!ctx->DataAvailable(ptr)) break;
1718           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr));
1719         } else
1720           goto handle_unusual;
1721         continue;
1722       // optional .google.protobuf.FileOptions options = 8;
1723       case 8:
1724         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
1725           ptr = ctx->ParseMessage(_internal_mutable_options(), ptr);
1726           CHK_(ptr);
1727         } else
1728           goto handle_unusual;
1729         continue;
1730       // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1731       case 9:
1732         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) {
1733           ptr = ctx->ParseMessage(_internal_mutable_source_code_info(), ptr);
1734           CHK_(ptr);
1735         } else
1736           goto handle_unusual;
1737         continue;
1738       // repeated int32 public_dependency = 10;
1739       case 10:
1740         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
1741           ptr -= 1;
1742           do {
1743             ptr += 1;
1744             _internal_add_public_dependency(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
1745             CHK_(ptr);
1746             if (!ctx->DataAvailable(ptr)) break;
1747           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<80>(ptr));
1748         } else if (static_cast<uint8_t>(tag) == 82) {
1749           ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_public_dependency(), ptr, ctx);
1750           CHK_(ptr);
1751         } else
1752           goto handle_unusual;
1753         continue;
1754       // repeated int32 weak_dependency = 11;
1755       case 11:
1756         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88)) {
1757           ptr -= 1;
1758           do {
1759             ptr += 1;
1760             _internal_add_weak_dependency(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
1761             CHK_(ptr);
1762             if (!ctx->DataAvailable(ptr)) break;
1763           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<88>(ptr));
1764         } else if (static_cast<uint8_t>(tag) == 90) {
1765           ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_weak_dependency(), ptr, ctx);
1766           CHK_(ptr);
1767         } else
1768           goto handle_unusual;
1769         continue;
1770       // optional string syntax = 12;
1771       case 12:
1772         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 98)) {
1773           auto str = _internal_mutable_syntax();
1774           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1775           CHK_(ptr);
1776           #ifndef NDEBUG
1777           ::_pbi::VerifyUTF8(str, "google.protobuf.FileDescriptorProto.syntax");
1778           #endif  // !NDEBUG
1779         } else
1780           goto handle_unusual;
1781         continue;
1782       default:
1783         goto handle_unusual;
1784     }  // switch
1785   handle_unusual:
1786     if ((tag == 0) || ((tag & 7) == 4)) {
1787       CHK_(ptr);
1788       ctx->SetLastTag(tag);
1789       goto message_done;
1790     }
1791     ptr = UnknownFieldParse(
1792         tag,
1793         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1794         ptr, ctx);
1795     CHK_(ptr != nullptr);
1796   }  // while
1797 message_done:
1798   _has_bits_.Or(has_bits);
1799   return ptr;
1800 failure:
1801   ptr = nullptr;
1802   goto message_done;
1803 #undef CHK_
1804 }
1805 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1806 uint8_t* FileDescriptorProto::_InternalSerialize(
1807     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1808   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorProto)
1809   uint32_t cached_has_bits = 0;
1810   (void) cached_has_bits;
1811 
1812   cached_has_bits = _has_bits_[0];
1813   // optional string name = 1;
1814   if (cached_has_bits & 0x00000001u) {
1815     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1816       this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
1817       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1818       "google.protobuf.FileDescriptorProto.name");
1819     target = stream->WriteStringMaybeAliased(
1820         1, this->_internal_name(), target);
1821   }
1822 
1823   // optional string package = 2;
1824   if (cached_has_bits & 0x00000002u) {
1825     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1826       this->_internal_package().data(), static_cast<int>(this->_internal_package().length()),
1827       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1828       "google.protobuf.FileDescriptorProto.package");
1829     target = stream->WriteStringMaybeAliased(
1830         2, this->_internal_package(), target);
1831   }
1832 
1833   // repeated string dependency = 3;
1834   for (int i = 0, n = this->_internal_dependency_size(); i < n; i++) {
1835     const auto& s = this->_internal_dependency(i);
1836     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1837       s.data(), static_cast<int>(s.length()),
1838       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1839       "google.protobuf.FileDescriptorProto.dependency");
1840     target = stream->WriteString(3, s, target);
1841   }
1842 
1843   // repeated .google.protobuf.DescriptorProto message_type = 4;
1844   for (unsigned i = 0,
1845       n = static_cast<unsigned>(this->_internal_message_type_size()); i < n; i++) {
1846     const auto& repfield = this->_internal_message_type(i);
1847     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1848         InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream);
1849   }
1850 
1851   // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1852   for (unsigned i = 0,
1853       n = static_cast<unsigned>(this->_internal_enum_type_size()); i < n; i++) {
1854     const auto& repfield = this->_internal_enum_type(i);
1855     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1856         InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream);
1857   }
1858 
1859   // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1860   for (unsigned i = 0,
1861       n = static_cast<unsigned>(this->_internal_service_size()); i < n; i++) {
1862     const auto& repfield = this->_internal_service(i);
1863     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1864         InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream);
1865   }
1866 
1867   // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1868   for (unsigned i = 0,
1869       n = static_cast<unsigned>(this->_internal_extension_size()); i < n; i++) {
1870     const auto& repfield = this->_internal_extension(i);
1871     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1872         InternalWriteMessage(7, repfield, repfield.GetCachedSize(), target, stream);
1873   }
1874 
1875   // optional .google.protobuf.FileOptions options = 8;
1876   if (cached_has_bits & 0x00000008u) {
1877     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1878       InternalWriteMessage(8, _Internal::options(this),
1879         _Internal::options(this).GetCachedSize(), target, stream);
1880   }
1881 
1882   // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1883   if (cached_has_bits & 0x00000010u) {
1884     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1885       InternalWriteMessage(9, _Internal::source_code_info(this),
1886         _Internal::source_code_info(this).GetCachedSize(), target, stream);
1887   }
1888 
1889   // repeated int32 public_dependency = 10;
1890   for (int i = 0, n = this->_internal_public_dependency_size(); i < n; i++) {
1891     target = stream->EnsureSpace(target);
1892     target = ::_pbi::WireFormatLite::WriteInt32ToArray(10, this->_internal_public_dependency(i), target);
1893   }
1894 
1895   // repeated int32 weak_dependency = 11;
1896   for (int i = 0, n = this->_internal_weak_dependency_size(); i < n; i++) {
1897     target = stream->EnsureSpace(target);
1898     target = ::_pbi::WireFormatLite::WriteInt32ToArray(11, this->_internal_weak_dependency(i), target);
1899   }
1900 
1901   // optional string syntax = 12;
1902   if (cached_has_bits & 0x00000004u) {
1903     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1904       this->_internal_syntax().data(), static_cast<int>(this->_internal_syntax().length()),
1905       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1906       "google.protobuf.FileDescriptorProto.syntax");
1907     target = stream->WriteStringMaybeAliased(
1908         12, this->_internal_syntax(), target);
1909   }
1910 
1911   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1912     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1913         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1914   }
1915   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescriptorProto)
1916   return target;
1917 }
1918 
ByteSizeLong() const1919 size_t FileDescriptorProto::ByteSizeLong() const {
1920 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileDescriptorProto)
1921   size_t total_size = 0;
1922 
1923   uint32_t cached_has_bits = 0;
1924   // Prevent compiler warnings about cached_has_bits being unused
1925   (void) cached_has_bits;
1926 
1927   // repeated string dependency = 3;
1928   total_size += 1 *
1929       ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(dependency_.size());
1930   for (int i = 0, n = dependency_.size(); i < n; i++) {
1931     total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1932       dependency_.Get(i));
1933   }
1934 
1935   // repeated .google.protobuf.DescriptorProto message_type = 4;
1936   total_size += 1UL * this->_internal_message_type_size();
1937   for (const auto& msg : this->message_type_) {
1938     total_size +=
1939       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1940   }
1941 
1942   // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1943   total_size += 1UL * this->_internal_enum_type_size();
1944   for (const auto& msg : this->enum_type_) {
1945     total_size +=
1946       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1947   }
1948 
1949   // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1950   total_size += 1UL * this->_internal_service_size();
1951   for (const auto& msg : this->service_) {
1952     total_size +=
1953       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1954   }
1955 
1956   // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1957   total_size += 1UL * this->_internal_extension_size();
1958   for (const auto& msg : this->extension_) {
1959     total_size +=
1960       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1961   }
1962 
1963   // repeated int32 public_dependency = 10;
1964   {
1965     size_t data_size = ::_pbi::WireFormatLite::
1966       Int32Size(this->public_dependency_);
1967     total_size += 1 *
1968                   ::_pbi::FromIntSize(this->_internal_public_dependency_size());
1969     total_size += data_size;
1970   }
1971 
1972   // repeated int32 weak_dependency = 11;
1973   {
1974     size_t data_size = ::_pbi::WireFormatLite::
1975       Int32Size(this->weak_dependency_);
1976     total_size += 1 *
1977                   ::_pbi::FromIntSize(this->_internal_weak_dependency_size());
1978     total_size += data_size;
1979   }
1980 
1981   cached_has_bits = _has_bits_[0];
1982   if (cached_has_bits & 0x0000001fu) {
1983     // optional string name = 1;
1984     if (cached_has_bits & 0x00000001u) {
1985       total_size += 1 +
1986         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1987           this->_internal_name());
1988     }
1989 
1990     // optional string package = 2;
1991     if (cached_has_bits & 0x00000002u) {
1992       total_size += 1 +
1993         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1994           this->_internal_package());
1995     }
1996 
1997     // optional string syntax = 12;
1998     if (cached_has_bits & 0x00000004u) {
1999       total_size += 1 +
2000         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2001           this->_internal_syntax());
2002     }
2003 
2004     // optional .google.protobuf.FileOptions options = 8;
2005     if (cached_has_bits & 0x00000008u) {
2006       total_size += 1 +
2007         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2008           *options_);
2009     }
2010 
2011     // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
2012     if (cached_has_bits & 0x00000010u) {
2013       total_size += 1 +
2014         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2015           *source_code_info_);
2016     }
2017 
2018   }
2019   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
2020 }
2021 
2022 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FileDescriptorProto::_class_data_ = {
2023     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
2024     FileDescriptorProto::MergeImpl
2025 };
GetClassData() const2026 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FileDescriptorProto::GetClassData() const { return &_class_data_; }
2027 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)2028 void FileDescriptorProto::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
2029                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2030   static_cast<FileDescriptorProto *>(to)->MergeFrom(
2031       static_cast<const FileDescriptorProto &>(from));
2032 }
2033 
2034 
MergeFrom(const FileDescriptorProto & from)2035 void FileDescriptorProto::MergeFrom(const FileDescriptorProto& from) {
2036 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FileDescriptorProto)
2037   GOOGLE_DCHECK_NE(&from, this);
2038   uint32_t cached_has_bits = 0;
2039   (void) cached_has_bits;
2040 
2041   dependency_.MergeFrom(from.dependency_);
2042   message_type_.MergeFrom(from.message_type_);
2043   enum_type_.MergeFrom(from.enum_type_);
2044   service_.MergeFrom(from.service_);
2045   extension_.MergeFrom(from.extension_);
2046   public_dependency_.MergeFrom(from.public_dependency_);
2047   weak_dependency_.MergeFrom(from.weak_dependency_);
2048   cached_has_bits = from._has_bits_[0];
2049   if (cached_has_bits & 0x0000001fu) {
2050     if (cached_has_bits & 0x00000001u) {
2051       _internal_set_name(from._internal_name());
2052     }
2053     if (cached_has_bits & 0x00000002u) {
2054       _internal_set_package(from._internal_package());
2055     }
2056     if (cached_has_bits & 0x00000004u) {
2057       _internal_set_syntax(from._internal_syntax());
2058     }
2059     if (cached_has_bits & 0x00000008u) {
2060       _internal_mutable_options()->::PROTOBUF_NAMESPACE_ID::FileOptions::MergeFrom(from._internal_options());
2061     }
2062     if (cached_has_bits & 0x00000010u) {
2063       _internal_mutable_source_code_info()->::PROTOBUF_NAMESPACE_ID::SourceCodeInfo::MergeFrom(from._internal_source_code_info());
2064     }
2065   }
2066   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2067 }
2068 
CopyFrom(const FileDescriptorProto & from)2069 void FileDescriptorProto::CopyFrom(const FileDescriptorProto& from) {
2070 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileDescriptorProto)
2071   if (&from == this) return;
2072   Clear();
2073   MergeFrom(from);
2074 }
2075 
IsInitialized() const2076 bool FileDescriptorProto::IsInitialized() const {
2077   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(message_type_))
2078     return false;
2079   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(enum_type_))
2080     return false;
2081   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(service_))
2082     return false;
2083   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(extension_))
2084     return false;
2085   if (_internal_has_options()) {
2086     if (!options_->IsInitialized()) return false;
2087   }
2088   return true;
2089 }
2090 
InternalSwap(FileDescriptorProto * other)2091 void FileDescriptorProto::InternalSwap(FileDescriptorProto* other) {
2092   using std::swap;
2093   auto* lhs_arena = GetArenaForAllocation();
2094   auto* rhs_arena = other->GetArenaForAllocation();
2095   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2096   swap(_has_bits_[0], other->_has_bits_[0]);
2097   dependency_.InternalSwap(&other->dependency_);
2098   message_type_.InternalSwap(&other->message_type_);
2099   enum_type_.InternalSwap(&other->enum_type_);
2100   service_.InternalSwap(&other->service_);
2101   extension_.InternalSwap(&other->extension_);
2102   public_dependency_.InternalSwap(&other->public_dependency_);
2103   weak_dependency_.InternalSwap(&other->weak_dependency_);
2104   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2105       &name_, lhs_arena,
2106       &other->name_, rhs_arena
2107   );
2108   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2109       &package_, lhs_arena,
2110       &other->package_, rhs_arena
2111   );
2112   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2113       &syntax_, lhs_arena,
2114       &other->syntax_, rhs_arena
2115   );
2116   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2117       PROTOBUF_FIELD_OFFSET(FileDescriptorProto, source_code_info_)
2118       + sizeof(FileDescriptorProto::source_code_info_)
2119       - PROTOBUF_FIELD_OFFSET(FileDescriptorProto, options_)>(
2120           reinterpret_cast<char*>(&options_),
2121           reinterpret_cast<char*>(&other->options_));
2122 }
2123 
GetMetadata() const2124 ::PROTOBUF_NAMESPACE_ID::Metadata FileDescriptorProto::GetMetadata() const {
2125   return ::_pbi::AssignDescriptors(
2126       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
2127       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[1]);
2128 }
2129 
2130 // ===================================================================
2131 
2132 class DescriptorProto_ExtensionRange::_Internal {
2133  public:
2134   using HasBits = decltype(std::declval<DescriptorProto_ExtensionRange>()._has_bits_);
set_has_start(HasBits * has_bits)2135   static void set_has_start(HasBits* has_bits) {
2136     (*has_bits)[0] |= 2u;
2137   }
set_has_end(HasBits * has_bits)2138   static void set_has_end(HasBits* has_bits) {
2139     (*has_bits)[0] |= 4u;
2140   }
2141   static const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions& options(const DescriptorProto_ExtensionRange* msg);
set_has_options(HasBits * has_bits)2142   static void set_has_options(HasBits* has_bits) {
2143     (*has_bits)[0] |= 1u;
2144   }
2145 };
2146 
2147 const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions&
options(const DescriptorProto_ExtensionRange * msg)2148 DescriptorProto_ExtensionRange::_Internal::options(const DescriptorProto_ExtensionRange* msg) {
2149   return *msg->options_;
2150 }
DescriptorProto_ExtensionRange(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2151 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2152                          bool is_message_owned)
2153   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
2154   SharedCtor();
2155   // @@protoc_insertion_point(arena_constructor:google.protobuf.DescriptorProto.ExtensionRange)
2156 }
DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange & from)2157 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from)
2158   : ::PROTOBUF_NAMESPACE_ID::Message(),
2159       _has_bits_(from._has_bits_) {
2160   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2161   if (from._internal_has_options()) {
2162     options_ = new ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions(*from.options_);
2163   } else {
2164     options_ = nullptr;
2165   }
2166   ::memcpy(&start_, &from.start_,
2167     static_cast<size_t>(reinterpret_cast<char*>(&end_) -
2168     reinterpret_cast<char*>(&start_)) + sizeof(end_));
2169   // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ExtensionRange)
2170 }
2171 
SharedCtor()2172 inline void DescriptorProto_ExtensionRange::SharedCtor() {
2173 ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
2174     reinterpret_cast<char*>(&options_) - reinterpret_cast<char*>(this)),
2175     0, static_cast<size_t>(reinterpret_cast<char*>(&end_) -
2176     reinterpret_cast<char*>(&options_)) + sizeof(end_));
2177 }
2178 
~DescriptorProto_ExtensionRange()2179 DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() {
2180   // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.ExtensionRange)
2181   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
2182   (void)arena;
2183     return;
2184   }
2185   SharedDtor();
2186 }
2187 
SharedDtor()2188 inline void DescriptorProto_ExtensionRange::SharedDtor() {
2189   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2190   if (this != internal_default_instance()) delete options_;
2191 }
2192 
SetCachedSize(int size) const2193 void DescriptorProto_ExtensionRange::SetCachedSize(int size) const {
2194   _cached_size_.Set(size);
2195 }
2196 
Clear()2197 void DescriptorProto_ExtensionRange::Clear() {
2198 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto.ExtensionRange)
2199   uint32_t cached_has_bits = 0;
2200   // Prevent compiler warnings about cached_has_bits being unused
2201   (void) cached_has_bits;
2202 
2203   cached_has_bits = _has_bits_[0];
2204   if (cached_has_bits & 0x00000001u) {
2205     GOOGLE_DCHECK(options_ != nullptr);
2206     options_->Clear();
2207   }
2208   if (cached_has_bits & 0x00000006u) {
2209     ::memset(&start_, 0, static_cast<size_t>(
2210         reinterpret_cast<char*>(&end_) -
2211         reinterpret_cast<char*>(&start_)) + sizeof(end_));
2212   }
2213   _has_bits_.Clear();
2214   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2215 }
2216 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2217 const char* DescriptorProto_ExtensionRange::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2218 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2219   _Internal::HasBits has_bits{};
2220   while (!ctx->Done(&ptr)) {
2221     uint32_t tag;
2222     ptr = ::_pbi::ReadTag(ptr, &tag);
2223     switch (tag >> 3) {
2224       // optional int32 start = 1;
2225       case 1:
2226         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
2227           _Internal::set_has_start(&has_bits);
2228           start_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2229           CHK_(ptr);
2230         } else
2231           goto handle_unusual;
2232         continue;
2233       // optional int32 end = 2;
2234       case 2:
2235         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
2236           _Internal::set_has_end(&has_bits);
2237           end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2238           CHK_(ptr);
2239         } else
2240           goto handle_unusual;
2241         continue;
2242       // optional .google.protobuf.ExtensionRangeOptions options = 3;
2243       case 3:
2244         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
2245           ptr = ctx->ParseMessage(_internal_mutable_options(), ptr);
2246           CHK_(ptr);
2247         } else
2248           goto handle_unusual;
2249         continue;
2250       default:
2251         goto handle_unusual;
2252     }  // switch
2253   handle_unusual:
2254     if ((tag == 0) || ((tag & 7) == 4)) {
2255       CHK_(ptr);
2256       ctx->SetLastTag(tag);
2257       goto message_done;
2258     }
2259     ptr = UnknownFieldParse(
2260         tag,
2261         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
2262         ptr, ctx);
2263     CHK_(ptr != nullptr);
2264   }  // while
2265 message_done:
2266   _has_bits_.Or(has_bits);
2267   return ptr;
2268 failure:
2269   ptr = nullptr;
2270   goto message_done;
2271 #undef CHK_
2272 }
2273 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2274 uint8_t* DescriptorProto_ExtensionRange::_InternalSerialize(
2275     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2276   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ExtensionRange)
2277   uint32_t cached_has_bits = 0;
2278   (void) cached_has_bits;
2279 
2280   cached_has_bits = _has_bits_[0];
2281   // optional int32 start = 1;
2282   if (cached_has_bits & 0x00000002u) {
2283     target = stream->EnsureSpace(target);
2284     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_start(), target);
2285   }
2286 
2287   // optional int32 end = 2;
2288   if (cached_has_bits & 0x00000004u) {
2289     target = stream->EnsureSpace(target);
2290     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_end(), target);
2291   }
2292 
2293   // optional .google.protobuf.ExtensionRangeOptions options = 3;
2294   if (cached_has_bits & 0x00000001u) {
2295     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2296       InternalWriteMessage(3, _Internal::options(this),
2297         _Internal::options(this).GetCachedSize(), target, stream);
2298   }
2299 
2300   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2301     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2302         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
2303   }
2304   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto.ExtensionRange)
2305   return target;
2306 }
2307 
ByteSizeLong() const2308 size_t DescriptorProto_ExtensionRange::ByteSizeLong() const {
2309 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorProto.ExtensionRange)
2310   size_t total_size = 0;
2311 
2312   uint32_t cached_has_bits = 0;
2313   // Prevent compiler warnings about cached_has_bits being unused
2314   (void) cached_has_bits;
2315 
2316   cached_has_bits = _has_bits_[0];
2317   if (cached_has_bits & 0x00000007u) {
2318     // optional .google.protobuf.ExtensionRangeOptions options = 3;
2319     if (cached_has_bits & 0x00000001u) {
2320       total_size += 1 +
2321         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2322           *options_);
2323     }
2324 
2325     // optional int32 start = 1;
2326     if (cached_has_bits & 0x00000002u) {
2327       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_start());
2328     }
2329 
2330     // optional int32 end = 2;
2331     if (cached_has_bits & 0x00000004u) {
2332       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_end());
2333     }
2334 
2335   }
2336   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
2337 }
2338 
2339 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DescriptorProto_ExtensionRange::_class_data_ = {
2340     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
2341     DescriptorProto_ExtensionRange::MergeImpl
2342 };
GetClassData() const2343 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DescriptorProto_ExtensionRange::GetClassData() const { return &_class_data_; }
2344 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)2345 void DescriptorProto_ExtensionRange::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
2346                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2347   static_cast<DescriptorProto_ExtensionRange *>(to)->MergeFrom(
2348       static_cast<const DescriptorProto_ExtensionRange &>(from));
2349 }
2350 
2351 
MergeFrom(const DescriptorProto_ExtensionRange & from)2352 void DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRange& from) {
2353 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DescriptorProto.ExtensionRange)
2354   GOOGLE_DCHECK_NE(&from, this);
2355   uint32_t cached_has_bits = 0;
2356   (void) cached_has_bits;
2357 
2358   cached_has_bits = from._has_bits_[0];
2359   if (cached_has_bits & 0x00000007u) {
2360     if (cached_has_bits & 0x00000001u) {
2361       _internal_mutable_options()->::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions::MergeFrom(from._internal_options());
2362     }
2363     if (cached_has_bits & 0x00000002u) {
2364       start_ = from.start_;
2365     }
2366     if (cached_has_bits & 0x00000004u) {
2367       end_ = from.end_;
2368     }
2369     _has_bits_[0] |= cached_has_bits;
2370   }
2371   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2372 }
2373 
CopyFrom(const DescriptorProto_ExtensionRange & from)2374 void DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRange& from) {
2375 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DescriptorProto.ExtensionRange)
2376   if (&from == this) return;
2377   Clear();
2378   MergeFrom(from);
2379 }
2380 
IsInitialized() const2381 bool DescriptorProto_ExtensionRange::IsInitialized() const {
2382   if (_internal_has_options()) {
2383     if (!options_->IsInitialized()) return false;
2384   }
2385   return true;
2386 }
2387 
InternalSwap(DescriptorProto_ExtensionRange * other)2388 void DescriptorProto_ExtensionRange::InternalSwap(DescriptorProto_ExtensionRange* other) {
2389   using std::swap;
2390   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2391   swap(_has_bits_[0], other->_has_bits_[0]);
2392   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2393       PROTOBUF_FIELD_OFFSET(DescriptorProto_ExtensionRange, end_)
2394       + sizeof(DescriptorProto_ExtensionRange::end_)
2395       - PROTOBUF_FIELD_OFFSET(DescriptorProto_ExtensionRange, options_)>(
2396           reinterpret_cast<char*>(&options_),
2397           reinterpret_cast<char*>(&other->options_));
2398 }
2399 
GetMetadata() const2400 ::PROTOBUF_NAMESPACE_ID::Metadata DescriptorProto_ExtensionRange::GetMetadata() const {
2401   return ::_pbi::AssignDescriptors(
2402       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
2403       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[2]);
2404 }
2405 
2406 // ===================================================================
2407 
2408 class DescriptorProto_ReservedRange::_Internal {
2409  public:
2410   using HasBits = decltype(std::declval<DescriptorProto_ReservedRange>()._has_bits_);
set_has_start(HasBits * has_bits)2411   static void set_has_start(HasBits* has_bits) {
2412     (*has_bits)[0] |= 1u;
2413   }
set_has_end(HasBits * has_bits)2414   static void set_has_end(HasBits* has_bits) {
2415     (*has_bits)[0] |= 2u;
2416   }
2417 };
2418 
DescriptorProto_ReservedRange(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2419 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2420                          bool is_message_owned)
2421   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
2422   SharedCtor();
2423   // @@protoc_insertion_point(arena_constructor:google.protobuf.DescriptorProto.ReservedRange)
2424 }
DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange & from)2425 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange& from)
2426   : ::PROTOBUF_NAMESPACE_ID::Message(),
2427       _has_bits_(from._has_bits_) {
2428   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2429   ::memcpy(&start_, &from.start_,
2430     static_cast<size_t>(reinterpret_cast<char*>(&end_) -
2431     reinterpret_cast<char*>(&start_)) + sizeof(end_));
2432   // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ReservedRange)
2433 }
2434 
SharedCtor()2435 inline void DescriptorProto_ReservedRange::SharedCtor() {
2436 ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
2437     reinterpret_cast<char*>(&start_) - reinterpret_cast<char*>(this)),
2438     0, static_cast<size_t>(reinterpret_cast<char*>(&end_) -
2439     reinterpret_cast<char*>(&start_)) + sizeof(end_));
2440 }
2441 
~DescriptorProto_ReservedRange()2442 DescriptorProto_ReservedRange::~DescriptorProto_ReservedRange() {
2443   // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.ReservedRange)
2444   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
2445   (void)arena;
2446     return;
2447   }
2448   SharedDtor();
2449 }
2450 
SharedDtor()2451 inline void DescriptorProto_ReservedRange::SharedDtor() {
2452   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2453 }
2454 
SetCachedSize(int size) const2455 void DescriptorProto_ReservedRange::SetCachedSize(int size) const {
2456   _cached_size_.Set(size);
2457 }
2458 
Clear()2459 void DescriptorProto_ReservedRange::Clear() {
2460 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto.ReservedRange)
2461   uint32_t cached_has_bits = 0;
2462   // Prevent compiler warnings about cached_has_bits being unused
2463   (void) cached_has_bits;
2464 
2465   cached_has_bits = _has_bits_[0];
2466   if (cached_has_bits & 0x00000003u) {
2467     ::memset(&start_, 0, static_cast<size_t>(
2468         reinterpret_cast<char*>(&end_) -
2469         reinterpret_cast<char*>(&start_)) + sizeof(end_));
2470   }
2471   _has_bits_.Clear();
2472   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2473 }
2474 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2475 const char* DescriptorProto_ReservedRange::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2476 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2477   _Internal::HasBits has_bits{};
2478   while (!ctx->Done(&ptr)) {
2479     uint32_t tag;
2480     ptr = ::_pbi::ReadTag(ptr, &tag);
2481     switch (tag >> 3) {
2482       // optional int32 start = 1;
2483       case 1:
2484         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
2485           _Internal::set_has_start(&has_bits);
2486           start_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2487           CHK_(ptr);
2488         } else
2489           goto handle_unusual;
2490         continue;
2491       // optional int32 end = 2;
2492       case 2:
2493         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
2494           _Internal::set_has_end(&has_bits);
2495           end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2496           CHK_(ptr);
2497         } else
2498           goto handle_unusual;
2499         continue;
2500       default:
2501         goto handle_unusual;
2502     }  // switch
2503   handle_unusual:
2504     if ((tag == 0) || ((tag & 7) == 4)) {
2505       CHK_(ptr);
2506       ctx->SetLastTag(tag);
2507       goto message_done;
2508     }
2509     ptr = UnknownFieldParse(
2510         tag,
2511         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
2512         ptr, ctx);
2513     CHK_(ptr != nullptr);
2514   }  // while
2515 message_done:
2516   _has_bits_.Or(has_bits);
2517   return ptr;
2518 failure:
2519   ptr = nullptr;
2520   goto message_done;
2521 #undef CHK_
2522 }
2523 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2524 uint8_t* DescriptorProto_ReservedRange::_InternalSerialize(
2525     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2526   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ReservedRange)
2527   uint32_t cached_has_bits = 0;
2528   (void) cached_has_bits;
2529 
2530   cached_has_bits = _has_bits_[0];
2531   // optional int32 start = 1;
2532   if (cached_has_bits & 0x00000001u) {
2533     target = stream->EnsureSpace(target);
2534     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_start(), target);
2535   }
2536 
2537   // optional int32 end = 2;
2538   if (cached_has_bits & 0x00000002u) {
2539     target = stream->EnsureSpace(target);
2540     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_end(), target);
2541   }
2542 
2543   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2544     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2545         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
2546   }
2547   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto.ReservedRange)
2548   return target;
2549 }
2550 
ByteSizeLong() const2551 size_t DescriptorProto_ReservedRange::ByteSizeLong() const {
2552 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorProto.ReservedRange)
2553   size_t total_size = 0;
2554 
2555   uint32_t cached_has_bits = 0;
2556   // Prevent compiler warnings about cached_has_bits being unused
2557   (void) cached_has_bits;
2558 
2559   cached_has_bits = _has_bits_[0];
2560   if (cached_has_bits & 0x00000003u) {
2561     // optional int32 start = 1;
2562     if (cached_has_bits & 0x00000001u) {
2563       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_start());
2564     }
2565 
2566     // optional int32 end = 2;
2567     if (cached_has_bits & 0x00000002u) {
2568       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_end());
2569     }
2570 
2571   }
2572   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
2573 }
2574 
2575 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DescriptorProto_ReservedRange::_class_data_ = {
2576     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
2577     DescriptorProto_ReservedRange::MergeImpl
2578 };
GetClassData() const2579 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DescriptorProto_ReservedRange::GetClassData() const { return &_class_data_; }
2580 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)2581 void DescriptorProto_ReservedRange::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
2582                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2583   static_cast<DescriptorProto_ReservedRange *>(to)->MergeFrom(
2584       static_cast<const DescriptorProto_ReservedRange &>(from));
2585 }
2586 
2587 
MergeFrom(const DescriptorProto_ReservedRange & from)2588 void DescriptorProto_ReservedRange::MergeFrom(const DescriptorProto_ReservedRange& from) {
2589 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DescriptorProto.ReservedRange)
2590   GOOGLE_DCHECK_NE(&from, this);
2591   uint32_t cached_has_bits = 0;
2592   (void) cached_has_bits;
2593 
2594   cached_has_bits = from._has_bits_[0];
2595   if (cached_has_bits & 0x00000003u) {
2596     if (cached_has_bits & 0x00000001u) {
2597       start_ = from.start_;
2598     }
2599     if (cached_has_bits & 0x00000002u) {
2600       end_ = from.end_;
2601     }
2602     _has_bits_[0] |= cached_has_bits;
2603   }
2604   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2605 }
2606 
CopyFrom(const DescriptorProto_ReservedRange & from)2607 void DescriptorProto_ReservedRange::CopyFrom(const DescriptorProto_ReservedRange& from) {
2608 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DescriptorProto.ReservedRange)
2609   if (&from == this) return;
2610   Clear();
2611   MergeFrom(from);
2612 }
2613 
IsInitialized() const2614 bool DescriptorProto_ReservedRange::IsInitialized() const {
2615   return true;
2616 }
2617 
InternalSwap(DescriptorProto_ReservedRange * other)2618 void DescriptorProto_ReservedRange::InternalSwap(DescriptorProto_ReservedRange* other) {
2619   using std::swap;
2620   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2621   swap(_has_bits_[0], other->_has_bits_[0]);
2622   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2623       PROTOBUF_FIELD_OFFSET(DescriptorProto_ReservedRange, end_)
2624       + sizeof(DescriptorProto_ReservedRange::end_)
2625       - PROTOBUF_FIELD_OFFSET(DescriptorProto_ReservedRange, start_)>(
2626           reinterpret_cast<char*>(&start_),
2627           reinterpret_cast<char*>(&other->start_));
2628 }
2629 
GetMetadata() const2630 ::PROTOBUF_NAMESPACE_ID::Metadata DescriptorProto_ReservedRange::GetMetadata() const {
2631   return ::_pbi::AssignDescriptors(
2632       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
2633       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[3]);
2634 }
2635 
2636 // ===================================================================
2637 
2638 class DescriptorProto::_Internal {
2639  public:
2640   using HasBits = decltype(std::declval<DescriptorProto>()._has_bits_);
set_has_name(HasBits * has_bits)2641   static void set_has_name(HasBits* has_bits) {
2642     (*has_bits)[0] |= 1u;
2643   }
2644   static const ::PROTOBUF_NAMESPACE_ID::MessageOptions& options(const DescriptorProto* msg);
set_has_options(HasBits * has_bits)2645   static void set_has_options(HasBits* has_bits) {
2646     (*has_bits)[0] |= 2u;
2647   }
2648 };
2649 
2650 const ::PROTOBUF_NAMESPACE_ID::MessageOptions&
options(const DescriptorProto * msg)2651 DescriptorProto::_Internal::options(const DescriptorProto* msg) {
2652   return *msg->options_;
2653 }
DescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2654 DescriptorProto::DescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2655                          bool is_message_owned)
2656   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
2657   field_(arena),
2658   nested_type_(arena),
2659   enum_type_(arena),
2660   extension_range_(arena),
2661   extension_(arena),
2662   oneof_decl_(arena),
2663   reserved_range_(arena),
2664   reserved_name_(arena) {
2665   SharedCtor();
2666   // @@protoc_insertion_point(arena_constructor:google.protobuf.DescriptorProto)
2667 }
DescriptorProto(const DescriptorProto & from)2668 DescriptorProto::DescriptorProto(const DescriptorProto& from)
2669   : ::PROTOBUF_NAMESPACE_ID::Message(),
2670       _has_bits_(from._has_bits_),
2671       field_(from.field_),
2672       nested_type_(from.nested_type_),
2673       enum_type_(from.enum_type_),
2674       extension_range_(from.extension_range_),
2675       extension_(from.extension_),
2676       oneof_decl_(from.oneof_decl_),
2677       reserved_range_(from.reserved_range_),
2678       reserved_name_(from.reserved_name_) {
2679   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2680   name_.InitDefault();
2681   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2682     name_.Set("", GetArenaForAllocation());
2683   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2684   if (from._internal_has_name()) {
2685     name_.Set(from._internal_name(),
2686       GetArenaForAllocation());
2687   }
2688   if (from._internal_has_options()) {
2689     options_ = new ::PROTOBUF_NAMESPACE_ID::MessageOptions(*from.options_);
2690   } else {
2691     options_ = nullptr;
2692   }
2693   // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto)
2694 }
2695 
SharedCtor()2696 inline void DescriptorProto::SharedCtor() {
2697 name_.InitDefault();
2698 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2699   name_.Set("", GetArenaForAllocation());
2700 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2701 options_ = nullptr;
2702 }
2703 
~DescriptorProto()2704 DescriptorProto::~DescriptorProto() {
2705   // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto)
2706   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
2707   (void)arena;
2708     return;
2709   }
2710   SharedDtor();
2711 }
2712 
SharedDtor()2713 inline void DescriptorProto::SharedDtor() {
2714   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2715   name_.Destroy();
2716   if (this != internal_default_instance()) delete options_;
2717 }
2718 
SetCachedSize(int size) const2719 void DescriptorProto::SetCachedSize(int size) const {
2720   _cached_size_.Set(size);
2721 }
2722 
Clear()2723 void DescriptorProto::Clear() {
2724 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto)
2725   uint32_t cached_has_bits = 0;
2726   // Prevent compiler warnings about cached_has_bits being unused
2727   (void) cached_has_bits;
2728 
2729   field_.Clear();
2730   nested_type_.Clear();
2731   enum_type_.Clear();
2732   extension_range_.Clear();
2733   extension_.Clear();
2734   oneof_decl_.Clear();
2735   reserved_range_.Clear();
2736   reserved_name_.Clear();
2737   cached_has_bits = _has_bits_[0];
2738   if (cached_has_bits & 0x00000003u) {
2739     if (cached_has_bits & 0x00000001u) {
2740       name_.ClearNonDefaultToEmpty();
2741     }
2742     if (cached_has_bits & 0x00000002u) {
2743       GOOGLE_DCHECK(options_ != nullptr);
2744       options_->Clear();
2745     }
2746   }
2747   _has_bits_.Clear();
2748   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2749 }
2750 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2751 const char* DescriptorProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2752 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2753   _Internal::HasBits has_bits{};
2754   while (!ctx->Done(&ptr)) {
2755     uint32_t tag;
2756     ptr = ::_pbi::ReadTag(ptr, &tag);
2757     switch (tag >> 3) {
2758       // optional string name = 1;
2759       case 1:
2760         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
2761           auto str = _internal_mutable_name();
2762           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
2763           CHK_(ptr);
2764           #ifndef NDEBUG
2765           ::_pbi::VerifyUTF8(str, "google.protobuf.DescriptorProto.name");
2766           #endif  // !NDEBUG
2767         } else
2768           goto handle_unusual;
2769         continue;
2770       // repeated .google.protobuf.FieldDescriptorProto field = 2;
2771       case 2:
2772         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
2773           ptr -= 1;
2774           do {
2775             ptr += 1;
2776             ptr = ctx->ParseMessage(_internal_add_field(), ptr);
2777             CHK_(ptr);
2778             if (!ctx->DataAvailable(ptr)) break;
2779           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
2780         } else
2781           goto handle_unusual;
2782         continue;
2783       // repeated .google.protobuf.DescriptorProto nested_type = 3;
2784       case 3:
2785         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
2786           ptr -= 1;
2787           do {
2788             ptr += 1;
2789             ptr = ctx->ParseMessage(_internal_add_nested_type(), ptr);
2790             CHK_(ptr);
2791             if (!ctx->DataAvailable(ptr)) break;
2792           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
2793         } else
2794           goto handle_unusual;
2795         continue;
2796       // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
2797       case 4:
2798         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
2799           ptr -= 1;
2800           do {
2801             ptr += 1;
2802             ptr = ctx->ParseMessage(_internal_add_enum_type(), ptr);
2803             CHK_(ptr);
2804             if (!ctx->DataAvailable(ptr)) break;
2805           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
2806         } else
2807           goto handle_unusual;
2808         continue;
2809       // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
2810       case 5:
2811         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
2812           ptr -= 1;
2813           do {
2814             ptr += 1;
2815             ptr = ctx->ParseMessage(_internal_add_extension_range(), ptr);
2816             CHK_(ptr);
2817             if (!ctx->DataAvailable(ptr)) break;
2818           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
2819         } else
2820           goto handle_unusual;
2821         continue;
2822       // repeated .google.protobuf.FieldDescriptorProto extension = 6;
2823       case 6:
2824         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
2825           ptr -= 1;
2826           do {
2827             ptr += 1;
2828             ptr = ctx->ParseMessage(_internal_add_extension(), ptr);
2829             CHK_(ptr);
2830             if (!ctx->DataAvailable(ptr)) break;
2831           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr));
2832         } else
2833           goto handle_unusual;
2834         continue;
2835       // optional .google.protobuf.MessageOptions options = 7;
2836       case 7:
2837         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
2838           ptr = ctx->ParseMessage(_internal_mutable_options(), ptr);
2839           CHK_(ptr);
2840         } else
2841           goto handle_unusual;
2842         continue;
2843       // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
2844       case 8:
2845         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
2846           ptr -= 1;
2847           do {
2848             ptr += 1;
2849             ptr = ctx->ParseMessage(_internal_add_oneof_decl(), ptr);
2850             CHK_(ptr);
2851             if (!ctx->DataAvailable(ptr)) break;
2852           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr));
2853         } else
2854           goto handle_unusual;
2855         continue;
2856       // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
2857       case 9:
2858         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) {
2859           ptr -= 1;
2860           do {
2861             ptr += 1;
2862             ptr = ctx->ParseMessage(_internal_add_reserved_range(), ptr);
2863             CHK_(ptr);
2864             if (!ctx->DataAvailable(ptr)) break;
2865           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr));
2866         } else
2867           goto handle_unusual;
2868         continue;
2869       // repeated string reserved_name = 10;
2870       case 10:
2871         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 82)) {
2872           ptr -= 1;
2873           do {
2874             ptr += 1;
2875             auto str = _internal_add_reserved_name();
2876             ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
2877             CHK_(ptr);
2878             #ifndef NDEBUG
2879             ::_pbi::VerifyUTF8(str, "google.protobuf.DescriptorProto.reserved_name");
2880             #endif  // !NDEBUG
2881             if (!ctx->DataAvailable(ptr)) break;
2882           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<82>(ptr));
2883         } else
2884           goto handle_unusual;
2885         continue;
2886       default:
2887         goto handle_unusual;
2888     }  // switch
2889   handle_unusual:
2890     if ((tag == 0) || ((tag & 7) == 4)) {
2891       CHK_(ptr);
2892       ctx->SetLastTag(tag);
2893       goto message_done;
2894     }
2895     ptr = UnknownFieldParse(
2896         tag,
2897         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
2898         ptr, ctx);
2899     CHK_(ptr != nullptr);
2900   }  // while
2901 message_done:
2902   _has_bits_.Or(has_bits);
2903   return ptr;
2904 failure:
2905   ptr = nullptr;
2906   goto message_done;
2907 #undef CHK_
2908 }
2909 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2910 uint8_t* DescriptorProto::_InternalSerialize(
2911     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2912   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto)
2913   uint32_t cached_has_bits = 0;
2914   (void) cached_has_bits;
2915 
2916   cached_has_bits = _has_bits_[0];
2917   // optional string name = 1;
2918   if (cached_has_bits & 0x00000001u) {
2919     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
2920       this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
2921       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
2922       "google.protobuf.DescriptorProto.name");
2923     target = stream->WriteStringMaybeAliased(
2924         1, this->_internal_name(), target);
2925   }
2926 
2927   // repeated .google.protobuf.FieldDescriptorProto field = 2;
2928   for (unsigned i = 0,
2929       n = static_cast<unsigned>(this->_internal_field_size()); i < n; i++) {
2930     const auto& repfield = this->_internal_field(i);
2931     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2932         InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
2933   }
2934 
2935   // repeated .google.protobuf.DescriptorProto nested_type = 3;
2936   for (unsigned i = 0,
2937       n = static_cast<unsigned>(this->_internal_nested_type_size()); i < n; i++) {
2938     const auto& repfield = this->_internal_nested_type(i);
2939     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2940         InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
2941   }
2942 
2943   // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
2944   for (unsigned i = 0,
2945       n = static_cast<unsigned>(this->_internal_enum_type_size()); i < n; i++) {
2946     const auto& repfield = this->_internal_enum_type(i);
2947     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2948         InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream);
2949   }
2950 
2951   // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
2952   for (unsigned i = 0,
2953       n = static_cast<unsigned>(this->_internal_extension_range_size()); i < n; i++) {
2954     const auto& repfield = this->_internal_extension_range(i);
2955     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2956         InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream);
2957   }
2958 
2959   // repeated .google.protobuf.FieldDescriptorProto extension = 6;
2960   for (unsigned i = 0,
2961       n = static_cast<unsigned>(this->_internal_extension_size()); i < n; i++) {
2962     const auto& repfield = this->_internal_extension(i);
2963     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2964         InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream);
2965   }
2966 
2967   // optional .google.protobuf.MessageOptions options = 7;
2968   if (cached_has_bits & 0x00000002u) {
2969     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2970       InternalWriteMessage(7, _Internal::options(this),
2971         _Internal::options(this).GetCachedSize(), target, stream);
2972   }
2973 
2974   // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
2975   for (unsigned i = 0,
2976       n = static_cast<unsigned>(this->_internal_oneof_decl_size()); i < n; i++) {
2977     const auto& repfield = this->_internal_oneof_decl(i);
2978     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2979         InternalWriteMessage(8, repfield, repfield.GetCachedSize(), target, stream);
2980   }
2981 
2982   // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
2983   for (unsigned i = 0,
2984       n = static_cast<unsigned>(this->_internal_reserved_range_size()); i < n; i++) {
2985     const auto& repfield = this->_internal_reserved_range(i);
2986     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2987         InternalWriteMessage(9, repfield, repfield.GetCachedSize(), target, stream);
2988   }
2989 
2990   // repeated string reserved_name = 10;
2991   for (int i = 0, n = this->_internal_reserved_name_size(); i < n; i++) {
2992     const auto& s = this->_internal_reserved_name(i);
2993     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
2994       s.data(), static_cast<int>(s.length()),
2995       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
2996       "google.protobuf.DescriptorProto.reserved_name");
2997     target = stream->WriteString(10, s, target);
2998   }
2999 
3000   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3001     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3002         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
3003   }
3004   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto)
3005   return target;
3006 }
3007 
ByteSizeLong() const3008 size_t DescriptorProto::ByteSizeLong() const {
3009 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorProto)
3010   size_t total_size = 0;
3011 
3012   uint32_t cached_has_bits = 0;
3013   // Prevent compiler warnings about cached_has_bits being unused
3014   (void) cached_has_bits;
3015 
3016   // repeated .google.protobuf.FieldDescriptorProto field = 2;
3017   total_size += 1UL * this->_internal_field_size();
3018   for (const auto& msg : this->field_) {
3019     total_size +=
3020       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
3021   }
3022 
3023   // repeated .google.protobuf.DescriptorProto nested_type = 3;
3024   total_size += 1UL * this->_internal_nested_type_size();
3025   for (const auto& msg : this->nested_type_) {
3026     total_size +=
3027       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
3028   }
3029 
3030   // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3031   total_size += 1UL * this->_internal_enum_type_size();
3032   for (const auto& msg : this->enum_type_) {
3033     total_size +=
3034       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
3035   }
3036 
3037   // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
3038   total_size += 1UL * this->_internal_extension_range_size();
3039   for (const auto& msg : this->extension_range_) {
3040     total_size +=
3041       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
3042   }
3043 
3044   // repeated .google.protobuf.FieldDescriptorProto extension = 6;
3045   total_size += 1UL * this->_internal_extension_size();
3046   for (const auto& msg : this->extension_) {
3047     total_size +=
3048       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
3049   }
3050 
3051   // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
3052   total_size += 1UL * this->_internal_oneof_decl_size();
3053   for (const auto& msg : this->oneof_decl_) {
3054     total_size +=
3055       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
3056   }
3057 
3058   // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
3059   total_size += 1UL * this->_internal_reserved_range_size();
3060   for (const auto& msg : this->reserved_range_) {
3061     total_size +=
3062       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
3063   }
3064 
3065   // repeated string reserved_name = 10;
3066   total_size += 1 *
3067       ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(reserved_name_.size());
3068   for (int i = 0, n = reserved_name_.size(); i < n; i++) {
3069     total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3070       reserved_name_.Get(i));
3071   }
3072 
3073   cached_has_bits = _has_bits_[0];
3074   if (cached_has_bits & 0x00000003u) {
3075     // optional string name = 1;
3076     if (cached_has_bits & 0x00000001u) {
3077       total_size += 1 +
3078         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3079           this->_internal_name());
3080     }
3081 
3082     // optional .google.protobuf.MessageOptions options = 7;
3083     if (cached_has_bits & 0x00000002u) {
3084       total_size += 1 +
3085         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3086           *options_);
3087     }
3088 
3089   }
3090   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
3091 }
3092 
3093 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DescriptorProto::_class_data_ = {
3094     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
3095     DescriptorProto::MergeImpl
3096 };
GetClassData() const3097 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DescriptorProto::GetClassData() const { return &_class_data_; }
3098 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)3099 void DescriptorProto::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
3100                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3101   static_cast<DescriptorProto *>(to)->MergeFrom(
3102       static_cast<const DescriptorProto &>(from));
3103 }
3104 
3105 
MergeFrom(const DescriptorProto & from)3106 void DescriptorProto::MergeFrom(const DescriptorProto& from) {
3107 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DescriptorProto)
3108   GOOGLE_DCHECK_NE(&from, this);
3109   uint32_t cached_has_bits = 0;
3110   (void) cached_has_bits;
3111 
3112   field_.MergeFrom(from.field_);
3113   nested_type_.MergeFrom(from.nested_type_);
3114   enum_type_.MergeFrom(from.enum_type_);
3115   extension_range_.MergeFrom(from.extension_range_);
3116   extension_.MergeFrom(from.extension_);
3117   oneof_decl_.MergeFrom(from.oneof_decl_);
3118   reserved_range_.MergeFrom(from.reserved_range_);
3119   reserved_name_.MergeFrom(from.reserved_name_);
3120   cached_has_bits = from._has_bits_[0];
3121   if (cached_has_bits & 0x00000003u) {
3122     if (cached_has_bits & 0x00000001u) {
3123       _internal_set_name(from._internal_name());
3124     }
3125     if (cached_has_bits & 0x00000002u) {
3126       _internal_mutable_options()->::PROTOBUF_NAMESPACE_ID::MessageOptions::MergeFrom(from._internal_options());
3127     }
3128   }
3129   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3130 }
3131 
CopyFrom(const DescriptorProto & from)3132 void DescriptorProto::CopyFrom(const DescriptorProto& from) {
3133 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DescriptorProto)
3134   if (&from == this) return;
3135   Clear();
3136   MergeFrom(from);
3137 }
3138 
IsInitialized() const3139 bool DescriptorProto::IsInitialized() const {
3140   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(field_))
3141     return false;
3142   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(nested_type_))
3143     return false;
3144   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(enum_type_))
3145     return false;
3146   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(extension_range_))
3147     return false;
3148   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(extension_))
3149     return false;
3150   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(oneof_decl_))
3151     return false;
3152   if (_internal_has_options()) {
3153     if (!options_->IsInitialized()) return false;
3154   }
3155   return true;
3156 }
3157 
InternalSwap(DescriptorProto * other)3158 void DescriptorProto::InternalSwap(DescriptorProto* other) {
3159   using std::swap;
3160   auto* lhs_arena = GetArenaForAllocation();
3161   auto* rhs_arena = other->GetArenaForAllocation();
3162   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3163   swap(_has_bits_[0], other->_has_bits_[0]);
3164   field_.InternalSwap(&other->field_);
3165   nested_type_.InternalSwap(&other->nested_type_);
3166   enum_type_.InternalSwap(&other->enum_type_);
3167   extension_range_.InternalSwap(&other->extension_range_);
3168   extension_.InternalSwap(&other->extension_);
3169   oneof_decl_.InternalSwap(&other->oneof_decl_);
3170   reserved_range_.InternalSwap(&other->reserved_range_);
3171   reserved_name_.InternalSwap(&other->reserved_name_);
3172   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
3173       &name_, lhs_arena,
3174       &other->name_, rhs_arena
3175   );
3176   swap(options_, other->options_);
3177 }
3178 
GetMetadata() const3179 ::PROTOBUF_NAMESPACE_ID::Metadata DescriptorProto::GetMetadata() const {
3180   return ::_pbi::AssignDescriptors(
3181       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
3182       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[4]);
3183 }
3184 
3185 // ===================================================================
3186 
3187 class ExtensionRangeOptions::_Internal {
3188  public:
3189 };
3190 
ExtensionRangeOptions(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3191 ExtensionRangeOptions::ExtensionRangeOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3192                          bool is_message_owned)
3193   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
3194   _extensions_(arena),
3195   uninterpreted_option_(arena) {
3196   SharedCtor();
3197   // @@protoc_insertion_point(arena_constructor:google.protobuf.ExtensionRangeOptions)
3198 }
ExtensionRangeOptions(const ExtensionRangeOptions & from)3199 ExtensionRangeOptions::ExtensionRangeOptions(const ExtensionRangeOptions& from)
3200   : ::PROTOBUF_NAMESPACE_ID::Message(),
3201       uninterpreted_option_(from.uninterpreted_option_) {
3202   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3203   _extensions_.MergeFrom(internal_default_instance(), from._extensions_);
3204   // @@protoc_insertion_point(copy_constructor:google.protobuf.ExtensionRangeOptions)
3205 }
3206 
SharedCtor()3207 inline void ExtensionRangeOptions::SharedCtor() {
3208 }
3209 
~ExtensionRangeOptions()3210 ExtensionRangeOptions::~ExtensionRangeOptions() {
3211   // @@protoc_insertion_point(destructor:google.protobuf.ExtensionRangeOptions)
3212   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
3213   (void)arena;
3214     return;
3215   }
3216   SharedDtor();
3217 }
3218 
SharedDtor()3219 inline void ExtensionRangeOptions::SharedDtor() {
3220   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3221 }
3222 
SetCachedSize(int size) const3223 void ExtensionRangeOptions::SetCachedSize(int size) const {
3224   _cached_size_.Set(size);
3225 }
3226 
Clear()3227 void ExtensionRangeOptions::Clear() {
3228 // @@protoc_insertion_point(message_clear_start:google.protobuf.ExtensionRangeOptions)
3229   uint32_t cached_has_bits = 0;
3230   // Prevent compiler warnings about cached_has_bits being unused
3231   (void) cached_has_bits;
3232 
3233   _extensions_.Clear();
3234   uninterpreted_option_.Clear();
3235   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
3236 }
3237 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3238 const char* ExtensionRangeOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3239 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3240   while (!ctx->Done(&ptr)) {
3241     uint32_t tag;
3242     ptr = ::_pbi::ReadTag(ptr, &tag);
3243     switch (tag >> 3) {
3244       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
3245       case 999:
3246         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
3247           ptr -= 2;
3248           do {
3249             ptr += 2;
3250             ptr = ctx->ParseMessage(_internal_add_uninterpreted_option(), ptr);
3251             CHK_(ptr);
3252             if (!ctx->DataAvailable(ptr)) break;
3253           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<7994>(ptr));
3254         } else
3255           goto handle_unusual;
3256         continue;
3257       default:
3258         goto handle_unusual;
3259     }  // switch
3260   handle_unusual:
3261     if ((tag == 0) || ((tag & 7) == 4)) {
3262       CHK_(ptr);
3263       ctx->SetLastTag(tag);
3264       goto message_done;
3265     }
3266     if ((8000u <= tag)) {
3267       ptr = _extensions_.ParseField(tag, ptr, internal_default_instance(), &_internal_metadata_, ctx);
3268       CHK_(ptr != nullptr);
3269       continue;
3270     }
3271     ptr = UnknownFieldParse(
3272         tag,
3273         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
3274         ptr, ctx);
3275     CHK_(ptr != nullptr);
3276   }  // while
3277 message_done:
3278   return ptr;
3279 failure:
3280   ptr = nullptr;
3281   goto message_done;
3282 #undef CHK_
3283 }
3284 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3285 uint8_t* ExtensionRangeOptions::_InternalSerialize(
3286     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3287   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ExtensionRangeOptions)
3288   uint32_t cached_has_bits = 0;
3289   (void) cached_has_bits;
3290 
3291   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
3292   for (unsigned i = 0,
3293       n = static_cast<unsigned>(this->_internal_uninterpreted_option_size()); i < n; i++) {
3294     const auto& repfield = this->_internal_uninterpreted_option(i);
3295     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3296         InternalWriteMessage(999, repfield, repfield.GetCachedSize(), target, stream);
3297   }
3298 
3299   // Extension range [1000, 536870912)
3300   target = _extensions_._InternalSerialize(
3301   internal_default_instance(), 1000, 536870912, target, stream);
3302 
3303   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3304     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3305         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
3306   }
3307   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ExtensionRangeOptions)
3308   return target;
3309 }
3310 
ByteSizeLong() const3311 size_t ExtensionRangeOptions::ByteSizeLong() const {
3312 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ExtensionRangeOptions)
3313   size_t total_size = 0;
3314 
3315   total_size += _extensions_.ByteSize();
3316 
3317   uint32_t cached_has_bits = 0;
3318   // Prevent compiler warnings about cached_has_bits being unused
3319   (void) cached_has_bits;
3320 
3321   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
3322   total_size += 2UL * this->_internal_uninterpreted_option_size();
3323   for (const auto& msg : this->uninterpreted_option_) {
3324     total_size +=
3325       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
3326   }
3327 
3328   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
3329 }
3330 
3331 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ExtensionRangeOptions::_class_data_ = {
3332     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
3333     ExtensionRangeOptions::MergeImpl
3334 };
GetClassData() const3335 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ExtensionRangeOptions::GetClassData() const { return &_class_data_; }
3336 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)3337 void ExtensionRangeOptions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
3338                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3339   static_cast<ExtensionRangeOptions *>(to)->MergeFrom(
3340       static_cast<const ExtensionRangeOptions &>(from));
3341 }
3342 
3343 
MergeFrom(const ExtensionRangeOptions & from)3344 void ExtensionRangeOptions::MergeFrom(const ExtensionRangeOptions& from) {
3345 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.ExtensionRangeOptions)
3346   GOOGLE_DCHECK_NE(&from, this);
3347   uint32_t cached_has_bits = 0;
3348   (void) cached_has_bits;
3349 
3350   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
3351   _extensions_.MergeFrom(internal_default_instance(), from._extensions_);
3352   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3353 }
3354 
CopyFrom(const ExtensionRangeOptions & from)3355 void ExtensionRangeOptions::CopyFrom(const ExtensionRangeOptions& from) {
3356 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.ExtensionRangeOptions)
3357   if (&from == this) return;
3358   Clear();
3359   MergeFrom(from);
3360 }
3361 
IsInitialized() const3362 bool ExtensionRangeOptions::IsInitialized() const {
3363   if (!_extensions_.IsInitialized()) {
3364     return false;
3365   }
3366 
3367   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(uninterpreted_option_))
3368     return false;
3369   return true;
3370 }
3371 
InternalSwap(ExtensionRangeOptions * other)3372 void ExtensionRangeOptions::InternalSwap(ExtensionRangeOptions* other) {
3373   using std::swap;
3374   _extensions_.InternalSwap(&other->_extensions_);
3375   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3376   uninterpreted_option_.InternalSwap(&other->uninterpreted_option_);
3377 }
3378 
GetMetadata() const3379 ::PROTOBUF_NAMESPACE_ID::Metadata ExtensionRangeOptions::GetMetadata() const {
3380   return ::_pbi::AssignDescriptors(
3381       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
3382       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[5]);
3383 }
3384 
3385 // ===================================================================
3386 
3387 class FieldDescriptorProto::_Internal {
3388  public:
3389   using HasBits = decltype(std::declval<FieldDescriptorProto>()._has_bits_);
set_has_name(HasBits * has_bits)3390   static void set_has_name(HasBits* has_bits) {
3391     (*has_bits)[0] |= 1u;
3392   }
set_has_number(HasBits * has_bits)3393   static void set_has_number(HasBits* has_bits) {
3394     (*has_bits)[0] |= 64u;
3395   }
set_has_label(HasBits * has_bits)3396   static void set_has_label(HasBits* has_bits) {
3397     (*has_bits)[0] |= 512u;
3398   }
set_has_type(HasBits * has_bits)3399   static void set_has_type(HasBits* has_bits) {
3400     (*has_bits)[0] |= 1024u;
3401   }
set_has_type_name(HasBits * has_bits)3402   static void set_has_type_name(HasBits* has_bits) {
3403     (*has_bits)[0] |= 4u;
3404   }
set_has_extendee(HasBits * has_bits)3405   static void set_has_extendee(HasBits* has_bits) {
3406     (*has_bits)[0] |= 2u;
3407   }
set_has_default_value(HasBits * has_bits)3408   static void set_has_default_value(HasBits* has_bits) {
3409     (*has_bits)[0] |= 8u;
3410   }
set_has_oneof_index(HasBits * has_bits)3411   static void set_has_oneof_index(HasBits* has_bits) {
3412     (*has_bits)[0] |= 128u;
3413   }
set_has_json_name(HasBits * has_bits)3414   static void set_has_json_name(HasBits* has_bits) {
3415     (*has_bits)[0] |= 16u;
3416   }
3417   static const ::PROTOBUF_NAMESPACE_ID::FieldOptions& options(const FieldDescriptorProto* msg);
set_has_options(HasBits * has_bits)3418   static void set_has_options(HasBits* has_bits) {
3419     (*has_bits)[0] |= 32u;
3420   }
set_has_proto3_optional(HasBits * has_bits)3421   static void set_has_proto3_optional(HasBits* has_bits) {
3422     (*has_bits)[0] |= 256u;
3423   }
3424 };
3425 
3426 const ::PROTOBUF_NAMESPACE_ID::FieldOptions&
options(const FieldDescriptorProto * msg)3427 FieldDescriptorProto::_Internal::options(const FieldDescriptorProto* msg) {
3428   return *msg->options_;
3429 }
FieldDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3430 FieldDescriptorProto::FieldDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3431                          bool is_message_owned)
3432   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
3433   SharedCtor();
3434   // @@protoc_insertion_point(arena_constructor:google.protobuf.FieldDescriptorProto)
3435 }
FieldDescriptorProto(const FieldDescriptorProto & from)3436 FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from)
3437   : ::PROTOBUF_NAMESPACE_ID::Message(),
3438       _has_bits_(from._has_bits_) {
3439   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3440   name_.InitDefault();
3441   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3442     name_.Set("", GetArenaForAllocation());
3443   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3444   if (from._internal_has_name()) {
3445     name_.Set(from._internal_name(),
3446       GetArenaForAllocation());
3447   }
3448   extendee_.InitDefault();
3449   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3450     extendee_.Set("", GetArenaForAllocation());
3451   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3452   if (from._internal_has_extendee()) {
3453     extendee_.Set(from._internal_extendee(),
3454       GetArenaForAllocation());
3455   }
3456   type_name_.InitDefault();
3457   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3458     type_name_.Set("", GetArenaForAllocation());
3459   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3460   if (from._internal_has_type_name()) {
3461     type_name_.Set(from._internal_type_name(),
3462       GetArenaForAllocation());
3463   }
3464   default_value_.InitDefault();
3465   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3466     default_value_.Set("", GetArenaForAllocation());
3467   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3468   if (from._internal_has_default_value()) {
3469     default_value_.Set(from._internal_default_value(),
3470       GetArenaForAllocation());
3471   }
3472   json_name_.InitDefault();
3473   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3474     json_name_.Set("", GetArenaForAllocation());
3475   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3476   if (from._internal_has_json_name()) {
3477     json_name_.Set(from._internal_json_name(),
3478       GetArenaForAllocation());
3479   }
3480   if (from._internal_has_options()) {
3481     options_ = new ::PROTOBUF_NAMESPACE_ID::FieldOptions(*from.options_);
3482   } else {
3483     options_ = nullptr;
3484   }
3485   ::memcpy(&number_, &from.number_,
3486     static_cast<size_t>(reinterpret_cast<char*>(&type_) -
3487     reinterpret_cast<char*>(&number_)) + sizeof(type_));
3488   // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldDescriptorProto)
3489 }
3490 
SharedCtor()3491 inline void FieldDescriptorProto::SharedCtor() {
3492 name_.InitDefault();
3493 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3494   name_.Set("", GetArenaForAllocation());
3495 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3496 extendee_.InitDefault();
3497 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3498   extendee_.Set("", GetArenaForAllocation());
3499 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3500 type_name_.InitDefault();
3501 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3502   type_name_.Set("", GetArenaForAllocation());
3503 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3504 default_value_.InitDefault();
3505 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3506   default_value_.Set("", GetArenaForAllocation());
3507 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3508 json_name_.InitDefault();
3509 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3510   json_name_.Set("", GetArenaForAllocation());
3511 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3512 ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
3513     reinterpret_cast<char*>(&options_) - reinterpret_cast<char*>(this)),
3514     0, static_cast<size_t>(reinterpret_cast<char*>(&proto3_optional_) -
3515     reinterpret_cast<char*>(&options_)) + sizeof(proto3_optional_));
3516 label_ = 1;
3517 type_ = 1;
3518 }
3519 
~FieldDescriptorProto()3520 FieldDescriptorProto::~FieldDescriptorProto() {
3521   // @@protoc_insertion_point(destructor:google.protobuf.FieldDescriptorProto)
3522   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
3523   (void)arena;
3524     return;
3525   }
3526   SharedDtor();
3527 }
3528 
SharedDtor()3529 inline void FieldDescriptorProto::SharedDtor() {
3530   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3531   name_.Destroy();
3532   extendee_.Destroy();
3533   type_name_.Destroy();
3534   default_value_.Destroy();
3535   json_name_.Destroy();
3536   if (this != internal_default_instance()) delete options_;
3537 }
3538 
SetCachedSize(int size) const3539 void FieldDescriptorProto::SetCachedSize(int size) const {
3540   _cached_size_.Set(size);
3541 }
3542 
Clear()3543 void FieldDescriptorProto::Clear() {
3544 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldDescriptorProto)
3545   uint32_t cached_has_bits = 0;
3546   // Prevent compiler warnings about cached_has_bits being unused
3547   (void) cached_has_bits;
3548 
3549   cached_has_bits = _has_bits_[0];
3550   if (cached_has_bits & 0x0000003fu) {
3551     if (cached_has_bits & 0x00000001u) {
3552       name_.ClearNonDefaultToEmpty();
3553     }
3554     if (cached_has_bits & 0x00000002u) {
3555       extendee_.ClearNonDefaultToEmpty();
3556     }
3557     if (cached_has_bits & 0x00000004u) {
3558       type_name_.ClearNonDefaultToEmpty();
3559     }
3560     if (cached_has_bits & 0x00000008u) {
3561       default_value_.ClearNonDefaultToEmpty();
3562     }
3563     if (cached_has_bits & 0x00000010u) {
3564       json_name_.ClearNonDefaultToEmpty();
3565     }
3566     if (cached_has_bits & 0x00000020u) {
3567       GOOGLE_DCHECK(options_ != nullptr);
3568       options_->Clear();
3569     }
3570   }
3571   if (cached_has_bits & 0x000000c0u) {
3572     ::memset(&number_, 0, static_cast<size_t>(
3573         reinterpret_cast<char*>(&oneof_index_) -
3574         reinterpret_cast<char*>(&number_)) + sizeof(oneof_index_));
3575   }
3576   if (cached_has_bits & 0x00000700u) {
3577     proto3_optional_ = false;
3578     label_ = 1;
3579     type_ = 1;
3580   }
3581   _has_bits_.Clear();
3582   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
3583 }
3584 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3585 const char* FieldDescriptorProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3586 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3587   _Internal::HasBits has_bits{};
3588   while (!ctx->Done(&ptr)) {
3589     uint32_t tag;
3590     ptr = ::_pbi::ReadTag(ptr, &tag);
3591     switch (tag >> 3) {
3592       // optional string name = 1;
3593       case 1:
3594         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
3595           auto str = _internal_mutable_name();
3596           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3597           CHK_(ptr);
3598           #ifndef NDEBUG
3599           ::_pbi::VerifyUTF8(str, "google.protobuf.FieldDescriptorProto.name");
3600           #endif  // !NDEBUG
3601         } else
3602           goto handle_unusual;
3603         continue;
3604       // optional string extendee = 2;
3605       case 2:
3606         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
3607           auto str = _internal_mutable_extendee();
3608           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3609           CHK_(ptr);
3610           #ifndef NDEBUG
3611           ::_pbi::VerifyUTF8(str, "google.protobuf.FieldDescriptorProto.extendee");
3612           #endif  // !NDEBUG
3613         } else
3614           goto handle_unusual;
3615         continue;
3616       // optional int32 number = 3;
3617       case 3:
3618         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
3619           _Internal::set_has_number(&has_bits);
3620           number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3621           CHK_(ptr);
3622         } else
3623           goto handle_unusual;
3624         continue;
3625       // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
3626       case 4:
3627         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
3628           uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3629           CHK_(ptr);
3630           if (PROTOBUF_PREDICT_TRUE(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label_IsValid(val))) {
3631             _internal_set_label(static_cast<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label>(val));
3632           } else {
3633             ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields());
3634           }
3635         } else
3636           goto handle_unusual;
3637         continue;
3638       // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
3639       case 5:
3640         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
3641           uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3642           CHK_(ptr);
3643           if (PROTOBUF_PREDICT_TRUE(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type_IsValid(val))) {
3644             _internal_set_type(static_cast<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type>(val));
3645           } else {
3646             ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields());
3647           }
3648         } else
3649           goto handle_unusual;
3650         continue;
3651       // optional string type_name = 6;
3652       case 6:
3653         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
3654           auto str = _internal_mutable_type_name();
3655           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3656           CHK_(ptr);
3657           #ifndef NDEBUG
3658           ::_pbi::VerifyUTF8(str, "google.protobuf.FieldDescriptorProto.type_name");
3659           #endif  // !NDEBUG
3660         } else
3661           goto handle_unusual;
3662         continue;
3663       // optional string default_value = 7;
3664       case 7:
3665         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
3666           auto str = _internal_mutable_default_value();
3667           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3668           CHK_(ptr);
3669           #ifndef NDEBUG
3670           ::_pbi::VerifyUTF8(str, "google.protobuf.FieldDescriptorProto.default_value");
3671           #endif  // !NDEBUG
3672         } else
3673           goto handle_unusual;
3674         continue;
3675       // optional .google.protobuf.FieldOptions options = 8;
3676       case 8:
3677         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
3678           ptr = ctx->ParseMessage(_internal_mutable_options(), ptr);
3679           CHK_(ptr);
3680         } else
3681           goto handle_unusual;
3682         continue;
3683       // optional int32 oneof_index = 9;
3684       case 9:
3685         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
3686           _Internal::set_has_oneof_index(&has_bits);
3687           oneof_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3688           CHK_(ptr);
3689         } else
3690           goto handle_unusual;
3691         continue;
3692       // optional string json_name = 10;
3693       case 10:
3694         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 82)) {
3695           auto str = _internal_mutable_json_name();
3696           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3697           CHK_(ptr);
3698           #ifndef NDEBUG
3699           ::_pbi::VerifyUTF8(str, "google.protobuf.FieldDescriptorProto.json_name");
3700           #endif  // !NDEBUG
3701         } else
3702           goto handle_unusual;
3703         continue;
3704       // optional bool proto3_optional = 17;
3705       case 17:
3706         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 136)) {
3707           _Internal::set_has_proto3_optional(&has_bits);
3708           proto3_optional_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3709           CHK_(ptr);
3710         } else
3711           goto handle_unusual;
3712         continue;
3713       default:
3714         goto handle_unusual;
3715     }  // switch
3716   handle_unusual:
3717     if ((tag == 0) || ((tag & 7) == 4)) {
3718       CHK_(ptr);
3719       ctx->SetLastTag(tag);
3720       goto message_done;
3721     }
3722     ptr = UnknownFieldParse(
3723         tag,
3724         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
3725         ptr, ctx);
3726     CHK_(ptr != nullptr);
3727   }  // while
3728 message_done:
3729   _has_bits_.Or(has_bits);
3730   return ptr;
3731 failure:
3732   ptr = nullptr;
3733   goto message_done;
3734 #undef CHK_
3735 }
3736 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3737 uint8_t* FieldDescriptorProto::_InternalSerialize(
3738     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3739   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldDescriptorProto)
3740   uint32_t cached_has_bits = 0;
3741   (void) cached_has_bits;
3742 
3743   cached_has_bits = _has_bits_[0];
3744   // optional string name = 1;
3745   if (cached_has_bits & 0x00000001u) {
3746     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
3747       this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
3748       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
3749       "google.protobuf.FieldDescriptorProto.name");
3750     target = stream->WriteStringMaybeAliased(
3751         1, this->_internal_name(), target);
3752   }
3753 
3754   // optional string extendee = 2;
3755   if (cached_has_bits & 0x00000002u) {
3756     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
3757       this->_internal_extendee().data(), static_cast<int>(this->_internal_extendee().length()),
3758       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
3759       "google.protobuf.FieldDescriptorProto.extendee");
3760     target = stream->WriteStringMaybeAliased(
3761         2, this->_internal_extendee(), target);
3762   }
3763 
3764   // optional int32 number = 3;
3765   if (cached_has_bits & 0x00000040u) {
3766     target = stream->EnsureSpace(target);
3767     target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_number(), target);
3768   }
3769 
3770   // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
3771   if (cached_has_bits & 0x00000200u) {
3772     target = stream->EnsureSpace(target);
3773     target = ::_pbi::WireFormatLite::WriteEnumToArray(
3774       4, this->_internal_label(), target);
3775   }
3776 
3777   // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
3778   if (cached_has_bits & 0x00000400u) {
3779     target = stream->EnsureSpace(target);
3780     target = ::_pbi::WireFormatLite::WriteEnumToArray(
3781       5, this->_internal_type(), target);
3782   }
3783 
3784   // optional string type_name = 6;
3785   if (cached_has_bits & 0x00000004u) {
3786     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
3787       this->_internal_type_name().data(), static_cast<int>(this->_internal_type_name().length()),
3788       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
3789       "google.protobuf.FieldDescriptorProto.type_name");
3790     target = stream->WriteStringMaybeAliased(
3791         6, this->_internal_type_name(), target);
3792   }
3793 
3794   // optional string default_value = 7;
3795   if (cached_has_bits & 0x00000008u) {
3796     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
3797       this->_internal_default_value().data(), static_cast<int>(this->_internal_default_value().length()),
3798       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
3799       "google.protobuf.FieldDescriptorProto.default_value");
3800     target = stream->WriteStringMaybeAliased(
3801         7, this->_internal_default_value(), target);
3802   }
3803 
3804   // optional .google.protobuf.FieldOptions options = 8;
3805   if (cached_has_bits & 0x00000020u) {
3806     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3807       InternalWriteMessage(8, _Internal::options(this),
3808         _Internal::options(this).GetCachedSize(), target, stream);
3809   }
3810 
3811   // optional int32 oneof_index = 9;
3812   if (cached_has_bits & 0x00000080u) {
3813     target = stream->EnsureSpace(target);
3814     target = ::_pbi::WireFormatLite::WriteInt32ToArray(9, this->_internal_oneof_index(), target);
3815   }
3816 
3817   // optional string json_name = 10;
3818   if (cached_has_bits & 0x00000010u) {
3819     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
3820       this->_internal_json_name().data(), static_cast<int>(this->_internal_json_name().length()),
3821       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
3822       "google.protobuf.FieldDescriptorProto.json_name");
3823     target = stream->WriteStringMaybeAliased(
3824         10, this->_internal_json_name(), target);
3825   }
3826 
3827   // optional bool proto3_optional = 17;
3828   if (cached_has_bits & 0x00000100u) {
3829     target = stream->EnsureSpace(target);
3830     target = ::_pbi::WireFormatLite::WriteBoolToArray(17, this->_internal_proto3_optional(), target);
3831   }
3832 
3833   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3834     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3835         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
3836   }
3837   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldDescriptorProto)
3838   return target;
3839 }
3840 
ByteSizeLong() const3841 size_t FieldDescriptorProto::ByteSizeLong() const {
3842 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldDescriptorProto)
3843   size_t total_size = 0;
3844 
3845   uint32_t cached_has_bits = 0;
3846   // Prevent compiler warnings about cached_has_bits being unused
3847   (void) cached_has_bits;
3848 
3849   cached_has_bits = _has_bits_[0];
3850   if (cached_has_bits & 0x000000ffu) {
3851     // optional string name = 1;
3852     if (cached_has_bits & 0x00000001u) {
3853       total_size += 1 +
3854         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3855           this->_internal_name());
3856     }
3857 
3858     // optional string extendee = 2;
3859     if (cached_has_bits & 0x00000002u) {
3860       total_size += 1 +
3861         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3862           this->_internal_extendee());
3863     }
3864 
3865     // optional string type_name = 6;
3866     if (cached_has_bits & 0x00000004u) {
3867       total_size += 1 +
3868         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3869           this->_internal_type_name());
3870     }
3871 
3872     // optional string default_value = 7;
3873     if (cached_has_bits & 0x00000008u) {
3874       total_size += 1 +
3875         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3876           this->_internal_default_value());
3877     }
3878 
3879     // optional string json_name = 10;
3880     if (cached_has_bits & 0x00000010u) {
3881       total_size += 1 +
3882         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3883           this->_internal_json_name());
3884     }
3885 
3886     // optional .google.protobuf.FieldOptions options = 8;
3887     if (cached_has_bits & 0x00000020u) {
3888       total_size += 1 +
3889         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3890           *options_);
3891     }
3892 
3893     // optional int32 number = 3;
3894     if (cached_has_bits & 0x00000040u) {
3895       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_number());
3896     }
3897 
3898     // optional int32 oneof_index = 9;
3899     if (cached_has_bits & 0x00000080u) {
3900       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_oneof_index());
3901     }
3902 
3903   }
3904   if (cached_has_bits & 0x00000700u) {
3905     // optional bool proto3_optional = 17;
3906     if (cached_has_bits & 0x00000100u) {
3907       total_size += 2 + 1;
3908     }
3909 
3910     // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
3911     if (cached_has_bits & 0x00000200u) {
3912       total_size += 1 +
3913         ::_pbi::WireFormatLite::EnumSize(this->_internal_label());
3914     }
3915 
3916     // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
3917     if (cached_has_bits & 0x00000400u) {
3918       total_size += 1 +
3919         ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
3920     }
3921 
3922   }
3923   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
3924 }
3925 
3926 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FieldDescriptorProto::_class_data_ = {
3927     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
3928     FieldDescriptorProto::MergeImpl
3929 };
GetClassData() const3930 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FieldDescriptorProto::GetClassData() const { return &_class_data_; }
3931 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)3932 void FieldDescriptorProto::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
3933                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3934   static_cast<FieldDescriptorProto *>(to)->MergeFrom(
3935       static_cast<const FieldDescriptorProto &>(from));
3936 }
3937 
3938 
MergeFrom(const FieldDescriptorProto & from)3939 void FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) {
3940 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FieldDescriptorProto)
3941   GOOGLE_DCHECK_NE(&from, this);
3942   uint32_t cached_has_bits = 0;
3943   (void) cached_has_bits;
3944 
3945   cached_has_bits = from._has_bits_[0];
3946   if (cached_has_bits & 0x000000ffu) {
3947     if (cached_has_bits & 0x00000001u) {
3948       _internal_set_name(from._internal_name());
3949     }
3950     if (cached_has_bits & 0x00000002u) {
3951       _internal_set_extendee(from._internal_extendee());
3952     }
3953     if (cached_has_bits & 0x00000004u) {
3954       _internal_set_type_name(from._internal_type_name());
3955     }
3956     if (cached_has_bits & 0x00000008u) {
3957       _internal_set_default_value(from._internal_default_value());
3958     }
3959     if (cached_has_bits & 0x00000010u) {
3960       _internal_set_json_name(from._internal_json_name());
3961     }
3962     if (cached_has_bits & 0x00000020u) {
3963       _internal_mutable_options()->::PROTOBUF_NAMESPACE_ID::FieldOptions::MergeFrom(from._internal_options());
3964     }
3965     if (cached_has_bits & 0x00000040u) {
3966       number_ = from.number_;
3967     }
3968     if (cached_has_bits & 0x00000080u) {
3969       oneof_index_ = from.oneof_index_;
3970     }
3971     _has_bits_[0] |= cached_has_bits;
3972   }
3973   if (cached_has_bits & 0x00000700u) {
3974     if (cached_has_bits & 0x00000100u) {
3975       proto3_optional_ = from.proto3_optional_;
3976     }
3977     if (cached_has_bits & 0x00000200u) {
3978       label_ = from.label_;
3979     }
3980     if (cached_has_bits & 0x00000400u) {
3981       type_ = from.type_;
3982     }
3983     _has_bits_[0] |= cached_has_bits;
3984   }
3985   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3986 }
3987 
CopyFrom(const FieldDescriptorProto & from)3988 void FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) {
3989 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FieldDescriptorProto)
3990   if (&from == this) return;
3991   Clear();
3992   MergeFrom(from);
3993 }
3994 
IsInitialized() const3995 bool FieldDescriptorProto::IsInitialized() const {
3996   if (_internal_has_options()) {
3997     if (!options_->IsInitialized()) return false;
3998   }
3999   return true;
4000 }
4001 
InternalSwap(FieldDescriptorProto * other)4002 void FieldDescriptorProto::InternalSwap(FieldDescriptorProto* other) {
4003   using std::swap;
4004   auto* lhs_arena = GetArenaForAllocation();
4005   auto* rhs_arena = other->GetArenaForAllocation();
4006   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4007   swap(_has_bits_[0], other->_has_bits_[0]);
4008   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4009       &name_, lhs_arena,
4010       &other->name_, rhs_arena
4011   );
4012   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4013       &extendee_, lhs_arena,
4014       &other->extendee_, rhs_arena
4015   );
4016   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4017       &type_name_, lhs_arena,
4018       &other->type_name_, rhs_arena
4019   );
4020   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4021       &default_value_, lhs_arena,
4022       &other->default_value_, rhs_arena
4023   );
4024   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4025       &json_name_, lhs_arena,
4026       &other->json_name_, rhs_arena
4027   );
4028   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
4029       PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, proto3_optional_)
4030       + sizeof(FieldDescriptorProto::proto3_optional_)
4031       - PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, options_)>(
4032           reinterpret_cast<char*>(&options_),
4033           reinterpret_cast<char*>(&other->options_));
4034   swap(label_, other->label_);
4035   swap(type_, other->type_);
4036 }
4037 
GetMetadata() const4038 ::PROTOBUF_NAMESPACE_ID::Metadata FieldDescriptorProto::GetMetadata() const {
4039   return ::_pbi::AssignDescriptors(
4040       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
4041       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[6]);
4042 }
4043 
4044 // ===================================================================
4045 
4046 class OneofDescriptorProto::_Internal {
4047  public:
4048   using HasBits = decltype(std::declval<OneofDescriptorProto>()._has_bits_);
set_has_name(HasBits * has_bits)4049   static void set_has_name(HasBits* has_bits) {
4050     (*has_bits)[0] |= 1u;
4051   }
4052   static const ::PROTOBUF_NAMESPACE_ID::OneofOptions& options(const OneofDescriptorProto* msg);
set_has_options(HasBits * has_bits)4053   static void set_has_options(HasBits* has_bits) {
4054     (*has_bits)[0] |= 2u;
4055   }
4056 };
4057 
4058 const ::PROTOBUF_NAMESPACE_ID::OneofOptions&
options(const OneofDescriptorProto * msg)4059 OneofDescriptorProto::_Internal::options(const OneofDescriptorProto* msg) {
4060   return *msg->options_;
4061 }
OneofDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4062 OneofDescriptorProto::OneofDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4063                          bool is_message_owned)
4064   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
4065   SharedCtor();
4066   // @@protoc_insertion_point(arena_constructor:google.protobuf.OneofDescriptorProto)
4067 }
OneofDescriptorProto(const OneofDescriptorProto & from)4068 OneofDescriptorProto::OneofDescriptorProto(const OneofDescriptorProto& from)
4069   : ::PROTOBUF_NAMESPACE_ID::Message(),
4070       _has_bits_(from._has_bits_) {
4071   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
4072   name_.InitDefault();
4073   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4074     name_.Set("", GetArenaForAllocation());
4075   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4076   if (from._internal_has_name()) {
4077     name_.Set(from._internal_name(),
4078       GetArenaForAllocation());
4079   }
4080   if (from._internal_has_options()) {
4081     options_ = new ::PROTOBUF_NAMESPACE_ID::OneofOptions(*from.options_);
4082   } else {
4083     options_ = nullptr;
4084   }
4085   // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofDescriptorProto)
4086 }
4087 
SharedCtor()4088 inline void OneofDescriptorProto::SharedCtor() {
4089 name_.InitDefault();
4090 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4091   name_.Set("", GetArenaForAllocation());
4092 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4093 options_ = nullptr;
4094 }
4095 
~OneofDescriptorProto()4096 OneofDescriptorProto::~OneofDescriptorProto() {
4097   // @@protoc_insertion_point(destructor:google.protobuf.OneofDescriptorProto)
4098   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
4099   (void)arena;
4100     return;
4101   }
4102   SharedDtor();
4103 }
4104 
SharedDtor()4105 inline void OneofDescriptorProto::SharedDtor() {
4106   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4107   name_.Destroy();
4108   if (this != internal_default_instance()) delete options_;
4109 }
4110 
SetCachedSize(int size) const4111 void OneofDescriptorProto::SetCachedSize(int size) const {
4112   _cached_size_.Set(size);
4113 }
4114 
Clear()4115 void OneofDescriptorProto::Clear() {
4116 // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofDescriptorProto)
4117   uint32_t cached_has_bits = 0;
4118   // Prevent compiler warnings about cached_has_bits being unused
4119   (void) cached_has_bits;
4120 
4121   cached_has_bits = _has_bits_[0];
4122   if (cached_has_bits & 0x00000003u) {
4123     if (cached_has_bits & 0x00000001u) {
4124       name_.ClearNonDefaultToEmpty();
4125     }
4126     if (cached_has_bits & 0x00000002u) {
4127       GOOGLE_DCHECK(options_ != nullptr);
4128       options_->Clear();
4129     }
4130   }
4131   _has_bits_.Clear();
4132   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
4133 }
4134 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4135 const char* OneofDescriptorProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4136 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4137   _Internal::HasBits has_bits{};
4138   while (!ctx->Done(&ptr)) {
4139     uint32_t tag;
4140     ptr = ::_pbi::ReadTag(ptr, &tag);
4141     switch (tag >> 3) {
4142       // optional string name = 1;
4143       case 1:
4144         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
4145           auto str = _internal_mutable_name();
4146           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4147           CHK_(ptr);
4148           #ifndef NDEBUG
4149           ::_pbi::VerifyUTF8(str, "google.protobuf.OneofDescriptorProto.name");
4150           #endif  // !NDEBUG
4151         } else
4152           goto handle_unusual;
4153         continue;
4154       // optional .google.protobuf.OneofOptions options = 2;
4155       case 2:
4156         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
4157           ptr = ctx->ParseMessage(_internal_mutable_options(), ptr);
4158           CHK_(ptr);
4159         } else
4160           goto handle_unusual;
4161         continue;
4162       default:
4163         goto handle_unusual;
4164     }  // switch
4165   handle_unusual:
4166     if ((tag == 0) || ((tag & 7) == 4)) {
4167       CHK_(ptr);
4168       ctx->SetLastTag(tag);
4169       goto message_done;
4170     }
4171     ptr = UnknownFieldParse(
4172         tag,
4173         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
4174         ptr, ctx);
4175     CHK_(ptr != nullptr);
4176   }  // while
4177 message_done:
4178   _has_bits_.Or(has_bits);
4179   return ptr;
4180 failure:
4181   ptr = nullptr;
4182   goto message_done;
4183 #undef CHK_
4184 }
4185 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4186 uint8_t* OneofDescriptorProto::_InternalSerialize(
4187     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4188   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofDescriptorProto)
4189   uint32_t cached_has_bits = 0;
4190   (void) cached_has_bits;
4191 
4192   cached_has_bits = _has_bits_[0];
4193   // optional string name = 1;
4194   if (cached_has_bits & 0x00000001u) {
4195     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
4196       this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
4197       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
4198       "google.protobuf.OneofDescriptorProto.name");
4199     target = stream->WriteStringMaybeAliased(
4200         1, this->_internal_name(), target);
4201   }
4202 
4203   // optional .google.protobuf.OneofOptions options = 2;
4204   if (cached_has_bits & 0x00000002u) {
4205     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4206       InternalWriteMessage(2, _Internal::options(this),
4207         _Internal::options(this).GetCachedSize(), target, stream);
4208   }
4209 
4210   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4211     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
4212         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
4213   }
4214   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofDescriptorProto)
4215   return target;
4216 }
4217 
ByteSizeLong() const4218 size_t OneofDescriptorProto::ByteSizeLong() const {
4219 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofDescriptorProto)
4220   size_t total_size = 0;
4221 
4222   uint32_t cached_has_bits = 0;
4223   // Prevent compiler warnings about cached_has_bits being unused
4224   (void) cached_has_bits;
4225 
4226   cached_has_bits = _has_bits_[0];
4227   if (cached_has_bits & 0x00000003u) {
4228     // optional string name = 1;
4229     if (cached_has_bits & 0x00000001u) {
4230       total_size += 1 +
4231         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4232           this->_internal_name());
4233     }
4234 
4235     // optional .google.protobuf.OneofOptions options = 2;
4236     if (cached_has_bits & 0x00000002u) {
4237       total_size += 1 +
4238         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4239           *options_);
4240     }
4241 
4242   }
4243   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
4244 }
4245 
4246 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OneofDescriptorProto::_class_data_ = {
4247     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
4248     OneofDescriptorProto::MergeImpl
4249 };
GetClassData() const4250 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OneofDescriptorProto::GetClassData() const { return &_class_data_; }
4251 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)4252 void OneofDescriptorProto::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
4253                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4254   static_cast<OneofDescriptorProto *>(to)->MergeFrom(
4255       static_cast<const OneofDescriptorProto &>(from));
4256 }
4257 
4258 
MergeFrom(const OneofDescriptorProto & from)4259 void OneofDescriptorProto::MergeFrom(const OneofDescriptorProto& from) {
4260 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.OneofDescriptorProto)
4261   GOOGLE_DCHECK_NE(&from, this);
4262   uint32_t cached_has_bits = 0;
4263   (void) cached_has_bits;
4264 
4265   cached_has_bits = from._has_bits_[0];
4266   if (cached_has_bits & 0x00000003u) {
4267     if (cached_has_bits & 0x00000001u) {
4268       _internal_set_name(from._internal_name());
4269     }
4270     if (cached_has_bits & 0x00000002u) {
4271       _internal_mutable_options()->::PROTOBUF_NAMESPACE_ID::OneofOptions::MergeFrom(from._internal_options());
4272     }
4273   }
4274   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
4275 }
4276 
CopyFrom(const OneofDescriptorProto & from)4277 void OneofDescriptorProto::CopyFrom(const OneofDescriptorProto& from) {
4278 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.OneofDescriptorProto)
4279   if (&from == this) return;
4280   Clear();
4281   MergeFrom(from);
4282 }
4283 
IsInitialized() const4284 bool OneofDescriptorProto::IsInitialized() const {
4285   if (_internal_has_options()) {
4286     if (!options_->IsInitialized()) return false;
4287   }
4288   return true;
4289 }
4290 
InternalSwap(OneofDescriptorProto * other)4291 void OneofDescriptorProto::InternalSwap(OneofDescriptorProto* other) {
4292   using std::swap;
4293   auto* lhs_arena = GetArenaForAllocation();
4294   auto* rhs_arena = other->GetArenaForAllocation();
4295   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4296   swap(_has_bits_[0], other->_has_bits_[0]);
4297   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4298       &name_, lhs_arena,
4299       &other->name_, rhs_arena
4300   );
4301   swap(options_, other->options_);
4302 }
4303 
GetMetadata() const4304 ::PROTOBUF_NAMESPACE_ID::Metadata OneofDescriptorProto::GetMetadata() const {
4305   return ::_pbi::AssignDescriptors(
4306       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
4307       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[7]);
4308 }
4309 
4310 // ===================================================================
4311 
4312 class EnumDescriptorProto_EnumReservedRange::_Internal {
4313  public:
4314   using HasBits = decltype(std::declval<EnumDescriptorProto_EnumReservedRange>()._has_bits_);
set_has_start(HasBits * has_bits)4315   static void set_has_start(HasBits* has_bits) {
4316     (*has_bits)[0] |= 1u;
4317   }
set_has_end(HasBits * has_bits)4318   static void set_has_end(HasBits* has_bits) {
4319     (*has_bits)[0] |= 2u;
4320   }
4321 };
4322 
EnumDescriptorProto_EnumReservedRange(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4323 EnumDescriptorProto_EnumReservedRange::EnumDescriptorProto_EnumReservedRange(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4324                          bool is_message_owned)
4325   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
4326   SharedCtor();
4327   // @@protoc_insertion_point(arena_constructor:google.protobuf.EnumDescriptorProto.EnumReservedRange)
4328 }
EnumDescriptorProto_EnumReservedRange(const EnumDescriptorProto_EnumReservedRange & from)4329 EnumDescriptorProto_EnumReservedRange::EnumDescriptorProto_EnumReservedRange(const EnumDescriptorProto_EnumReservedRange& from)
4330   : ::PROTOBUF_NAMESPACE_ID::Message(),
4331       _has_bits_(from._has_bits_) {
4332   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
4333   ::memcpy(&start_, &from.start_,
4334     static_cast<size_t>(reinterpret_cast<char*>(&end_) -
4335     reinterpret_cast<char*>(&start_)) + sizeof(end_));
4336   // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumDescriptorProto.EnumReservedRange)
4337 }
4338 
SharedCtor()4339 inline void EnumDescriptorProto_EnumReservedRange::SharedCtor() {
4340 ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
4341     reinterpret_cast<char*>(&start_) - reinterpret_cast<char*>(this)),
4342     0, static_cast<size_t>(reinterpret_cast<char*>(&end_) -
4343     reinterpret_cast<char*>(&start_)) + sizeof(end_));
4344 }
4345 
~EnumDescriptorProto_EnumReservedRange()4346 EnumDescriptorProto_EnumReservedRange::~EnumDescriptorProto_EnumReservedRange() {
4347   // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto.EnumReservedRange)
4348   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
4349   (void)arena;
4350     return;
4351   }
4352   SharedDtor();
4353 }
4354 
SharedDtor()4355 inline void EnumDescriptorProto_EnumReservedRange::SharedDtor() {
4356   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4357 }
4358 
SetCachedSize(int size) const4359 void EnumDescriptorProto_EnumReservedRange::SetCachedSize(int size) const {
4360   _cached_size_.Set(size);
4361 }
4362 
Clear()4363 void EnumDescriptorProto_EnumReservedRange::Clear() {
4364 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumDescriptorProto.EnumReservedRange)
4365   uint32_t cached_has_bits = 0;
4366   // Prevent compiler warnings about cached_has_bits being unused
4367   (void) cached_has_bits;
4368 
4369   cached_has_bits = _has_bits_[0];
4370   if (cached_has_bits & 0x00000003u) {
4371     ::memset(&start_, 0, static_cast<size_t>(
4372         reinterpret_cast<char*>(&end_) -
4373         reinterpret_cast<char*>(&start_)) + sizeof(end_));
4374   }
4375   _has_bits_.Clear();
4376   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
4377 }
4378 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4379 const char* EnumDescriptorProto_EnumReservedRange::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4380 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4381   _Internal::HasBits has_bits{};
4382   while (!ctx->Done(&ptr)) {
4383     uint32_t tag;
4384     ptr = ::_pbi::ReadTag(ptr, &tag);
4385     switch (tag >> 3) {
4386       // optional int32 start = 1;
4387       case 1:
4388         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
4389           _Internal::set_has_start(&has_bits);
4390           start_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4391           CHK_(ptr);
4392         } else
4393           goto handle_unusual;
4394         continue;
4395       // optional int32 end = 2;
4396       case 2:
4397         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
4398           _Internal::set_has_end(&has_bits);
4399           end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4400           CHK_(ptr);
4401         } else
4402           goto handle_unusual;
4403         continue;
4404       default:
4405         goto handle_unusual;
4406     }  // switch
4407   handle_unusual:
4408     if ((tag == 0) || ((tag & 7) == 4)) {
4409       CHK_(ptr);
4410       ctx->SetLastTag(tag);
4411       goto message_done;
4412     }
4413     ptr = UnknownFieldParse(
4414         tag,
4415         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
4416         ptr, ctx);
4417     CHK_(ptr != nullptr);
4418   }  // while
4419 message_done:
4420   _has_bits_.Or(has_bits);
4421   return ptr;
4422 failure:
4423   ptr = nullptr;
4424   goto message_done;
4425 #undef CHK_
4426 }
4427 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4428 uint8_t* EnumDescriptorProto_EnumReservedRange::_InternalSerialize(
4429     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4430   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescriptorProto.EnumReservedRange)
4431   uint32_t cached_has_bits = 0;
4432   (void) cached_has_bits;
4433 
4434   cached_has_bits = _has_bits_[0];
4435   // optional int32 start = 1;
4436   if (cached_has_bits & 0x00000001u) {
4437     target = stream->EnsureSpace(target);
4438     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_start(), target);
4439   }
4440 
4441   // optional int32 end = 2;
4442   if (cached_has_bits & 0x00000002u) {
4443     target = stream->EnsureSpace(target);
4444     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_end(), target);
4445   }
4446 
4447   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4448     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
4449         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
4450   }
4451   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumDescriptorProto.EnumReservedRange)
4452   return target;
4453 }
4454 
ByteSizeLong() const4455 size_t EnumDescriptorProto_EnumReservedRange::ByteSizeLong() const {
4456 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumDescriptorProto.EnumReservedRange)
4457   size_t total_size = 0;
4458 
4459   uint32_t cached_has_bits = 0;
4460   // Prevent compiler warnings about cached_has_bits being unused
4461   (void) cached_has_bits;
4462 
4463   cached_has_bits = _has_bits_[0];
4464   if (cached_has_bits & 0x00000003u) {
4465     // optional int32 start = 1;
4466     if (cached_has_bits & 0x00000001u) {
4467       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_start());
4468     }
4469 
4470     // optional int32 end = 2;
4471     if (cached_has_bits & 0x00000002u) {
4472       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_end());
4473     }
4474 
4475   }
4476   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
4477 }
4478 
4479 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EnumDescriptorProto_EnumReservedRange::_class_data_ = {
4480     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
4481     EnumDescriptorProto_EnumReservedRange::MergeImpl
4482 };
GetClassData() const4483 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EnumDescriptorProto_EnumReservedRange::GetClassData() const { return &_class_data_; }
4484 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)4485 void EnumDescriptorProto_EnumReservedRange::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
4486                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4487   static_cast<EnumDescriptorProto_EnumReservedRange *>(to)->MergeFrom(
4488       static_cast<const EnumDescriptorProto_EnumReservedRange &>(from));
4489 }
4490 
4491 
MergeFrom(const EnumDescriptorProto_EnumReservedRange & from)4492 void EnumDescriptorProto_EnumReservedRange::MergeFrom(const EnumDescriptorProto_EnumReservedRange& from) {
4493 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumDescriptorProto.EnumReservedRange)
4494   GOOGLE_DCHECK_NE(&from, this);
4495   uint32_t cached_has_bits = 0;
4496   (void) cached_has_bits;
4497 
4498   cached_has_bits = from._has_bits_[0];
4499   if (cached_has_bits & 0x00000003u) {
4500     if (cached_has_bits & 0x00000001u) {
4501       start_ = from.start_;
4502     }
4503     if (cached_has_bits & 0x00000002u) {
4504       end_ = from.end_;
4505     }
4506     _has_bits_[0] |= cached_has_bits;
4507   }
4508   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
4509 }
4510 
CopyFrom(const EnumDescriptorProto_EnumReservedRange & from)4511 void EnumDescriptorProto_EnumReservedRange::CopyFrom(const EnumDescriptorProto_EnumReservedRange& from) {
4512 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumDescriptorProto.EnumReservedRange)
4513   if (&from == this) return;
4514   Clear();
4515   MergeFrom(from);
4516 }
4517 
IsInitialized() const4518 bool EnumDescriptorProto_EnumReservedRange::IsInitialized() const {
4519   return true;
4520 }
4521 
InternalSwap(EnumDescriptorProto_EnumReservedRange * other)4522 void EnumDescriptorProto_EnumReservedRange::InternalSwap(EnumDescriptorProto_EnumReservedRange* other) {
4523   using std::swap;
4524   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4525   swap(_has_bits_[0], other->_has_bits_[0]);
4526   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
4527       PROTOBUF_FIELD_OFFSET(EnumDescriptorProto_EnumReservedRange, end_)
4528       + sizeof(EnumDescriptorProto_EnumReservedRange::end_)
4529       - PROTOBUF_FIELD_OFFSET(EnumDescriptorProto_EnumReservedRange, start_)>(
4530           reinterpret_cast<char*>(&start_),
4531           reinterpret_cast<char*>(&other->start_));
4532 }
4533 
GetMetadata() const4534 ::PROTOBUF_NAMESPACE_ID::Metadata EnumDescriptorProto_EnumReservedRange::GetMetadata() const {
4535   return ::_pbi::AssignDescriptors(
4536       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
4537       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[8]);
4538 }
4539 
4540 // ===================================================================
4541 
4542 class EnumDescriptorProto::_Internal {
4543  public:
4544   using HasBits = decltype(std::declval<EnumDescriptorProto>()._has_bits_);
set_has_name(HasBits * has_bits)4545   static void set_has_name(HasBits* has_bits) {
4546     (*has_bits)[0] |= 1u;
4547   }
4548   static const ::PROTOBUF_NAMESPACE_ID::EnumOptions& options(const EnumDescriptorProto* msg);
set_has_options(HasBits * has_bits)4549   static void set_has_options(HasBits* has_bits) {
4550     (*has_bits)[0] |= 2u;
4551   }
4552 };
4553 
4554 const ::PROTOBUF_NAMESPACE_ID::EnumOptions&
options(const EnumDescriptorProto * msg)4555 EnumDescriptorProto::_Internal::options(const EnumDescriptorProto* msg) {
4556   return *msg->options_;
4557 }
EnumDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4558 EnumDescriptorProto::EnumDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4559                          bool is_message_owned)
4560   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
4561   value_(arena),
4562   reserved_range_(arena),
4563   reserved_name_(arena) {
4564   SharedCtor();
4565   // @@protoc_insertion_point(arena_constructor:google.protobuf.EnumDescriptorProto)
4566 }
EnumDescriptorProto(const EnumDescriptorProto & from)4567 EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from)
4568   : ::PROTOBUF_NAMESPACE_ID::Message(),
4569       _has_bits_(from._has_bits_),
4570       value_(from.value_),
4571       reserved_range_(from.reserved_range_),
4572       reserved_name_(from.reserved_name_) {
4573   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
4574   name_.InitDefault();
4575   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4576     name_.Set("", GetArenaForAllocation());
4577   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4578   if (from._internal_has_name()) {
4579     name_.Set(from._internal_name(),
4580       GetArenaForAllocation());
4581   }
4582   if (from._internal_has_options()) {
4583     options_ = new ::PROTOBUF_NAMESPACE_ID::EnumOptions(*from.options_);
4584   } else {
4585     options_ = nullptr;
4586   }
4587   // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumDescriptorProto)
4588 }
4589 
SharedCtor()4590 inline void EnumDescriptorProto::SharedCtor() {
4591 name_.InitDefault();
4592 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4593   name_.Set("", GetArenaForAllocation());
4594 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4595 options_ = nullptr;
4596 }
4597 
~EnumDescriptorProto()4598 EnumDescriptorProto::~EnumDescriptorProto() {
4599   // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto)
4600   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
4601   (void)arena;
4602     return;
4603   }
4604   SharedDtor();
4605 }
4606 
SharedDtor()4607 inline void EnumDescriptorProto::SharedDtor() {
4608   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4609   name_.Destroy();
4610   if (this != internal_default_instance()) delete options_;
4611 }
4612 
SetCachedSize(int size) const4613 void EnumDescriptorProto::SetCachedSize(int size) const {
4614   _cached_size_.Set(size);
4615 }
4616 
Clear()4617 void EnumDescriptorProto::Clear() {
4618 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumDescriptorProto)
4619   uint32_t cached_has_bits = 0;
4620   // Prevent compiler warnings about cached_has_bits being unused
4621   (void) cached_has_bits;
4622 
4623   value_.Clear();
4624   reserved_range_.Clear();
4625   reserved_name_.Clear();
4626   cached_has_bits = _has_bits_[0];
4627   if (cached_has_bits & 0x00000003u) {
4628     if (cached_has_bits & 0x00000001u) {
4629       name_.ClearNonDefaultToEmpty();
4630     }
4631     if (cached_has_bits & 0x00000002u) {
4632       GOOGLE_DCHECK(options_ != nullptr);
4633       options_->Clear();
4634     }
4635   }
4636   _has_bits_.Clear();
4637   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
4638 }
4639 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4640 const char* EnumDescriptorProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4641 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4642   _Internal::HasBits has_bits{};
4643   while (!ctx->Done(&ptr)) {
4644     uint32_t tag;
4645     ptr = ::_pbi::ReadTag(ptr, &tag);
4646     switch (tag >> 3) {
4647       // optional string name = 1;
4648       case 1:
4649         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
4650           auto str = _internal_mutable_name();
4651           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4652           CHK_(ptr);
4653           #ifndef NDEBUG
4654           ::_pbi::VerifyUTF8(str, "google.protobuf.EnumDescriptorProto.name");
4655           #endif  // !NDEBUG
4656         } else
4657           goto handle_unusual;
4658         continue;
4659       // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
4660       case 2:
4661         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
4662           ptr -= 1;
4663           do {
4664             ptr += 1;
4665             ptr = ctx->ParseMessage(_internal_add_value(), ptr);
4666             CHK_(ptr);
4667             if (!ctx->DataAvailable(ptr)) break;
4668           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
4669         } else
4670           goto handle_unusual;
4671         continue;
4672       // optional .google.protobuf.EnumOptions options = 3;
4673       case 3:
4674         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
4675           ptr = ctx->ParseMessage(_internal_mutable_options(), ptr);
4676           CHK_(ptr);
4677         } else
4678           goto handle_unusual;
4679         continue;
4680       // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
4681       case 4:
4682         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
4683           ptr -= 1;
4684           do {
4685             ptr += 1;
4686             ptr = ctx->ParseMessage(_internal_add_reserved_range(), ptr);
4687             CHK_(ptr);
4688             if (!ctx->DataAvailable(ptr)) break;
4689           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
4690         } else
4691           goto handle_unusual;
4692         continue;
4693       // repeated string reserved_name = 5;
4694       case 5:
4695         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
4696           ptr -= 1;
4697           do {
4698             ptr += 1;
4699             auto str = _internal_add_reserved_name();
4700             ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4701             CHK_(ptr);
4702             #ifndef NDEBUG
4703             ::_pbi::VerifyUTF8(str, "google.protobuf.EnumDescriptorProto.reserved_name");
4704             #endif  // !NDEBUG
4705             if (!ctx->DataAvailable(ptr)) break;
4706           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
4707         } else
4708           goto handle_unusual;
4709         continue;
4710       default:
4711         goto handle_unusual;
4712     }  // switch
4713   handle_unusual:
4714     if ((tag == 0) || ((tag & 7) == 4)) {
4715       CHK_(ptr);
4716       ctx->SetLastTag(tag);
4717       goto message_done;
4718     }
4719     ptr = UnknownFieldParse(
4720         tag,
4721         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
4722         ptr, ctx);
4723     CHK_(ptr != nullptr);
4724   }  // while
4725 message_done:
4726   _has_bits_.Or(has_bits);
4727   return ptr;
4728 failure:
4729   ptr = nullptr;
4730   goto message_done;
4731 #undef CHK_
4732 }
4733 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4734 uint8_t* EnumDescriptorProto::_InternalSerialize(
4735     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4736   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescriptorProto)
4737   uint32_t cached_has_bits = 0;
4738   (void) cached_has_bits;
4739 
4740   cached_has_bits = _has_bits_[0];
4741   // optional string name = 1;
4742   if (cached_has_bits & 0x00000001u) {
4743     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
4744       this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
4745       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
4746       "google.protobuf.EnumDescriptorProto.name");
4747     target = stream->WriteStringMaybeAliased(
4748         1, this->_internal_name(), target);
4749   }
4750 
4751   // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
4752   for (unsigned i = 0,
4753       n = static_cast<unsigned>(this->_internal_value_size()); i < n; i++) {
4754     const auto& repfield = this->_internal_value(i);
4755     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4756         InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
4757   }
4758 
4759   // optional .google.protobuf.EnumOptions options = 3;
4760   if (cached_has_bits & 0x00000002u) {
4761     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4762       InternalWriteMessage(3, _Internal::options(this),
4763         _Internal::options(this).GetCachedSize(), target, stream);
4764   }
4765 
4766   // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
4767   for (unsigned i = 0,
4768       n = static_cast<unsigned>(this->_internal_reserved_range_size()); i < n; i++) {
4769     const auto& repfield = this->_internal_reserved_range(i);
4770     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4771         InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream);
4772   }
4773 
4774   // repeated string reserved_name = 5;
4775   for (int i = 0, n = this->_internal_reserved_name_size(); i < n; i++) {
4776     const auto& s = this->_internal_reserved_name(i);
4777     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
4778       s.data(), static_cast<int>(s.length()),
4779       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
4780       "google.protobuf.EnumDescriptorProto.reserved_name");
4781     target = stream->WriteString(5, s, target);
4782   }
4783 
4784   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4785     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
4786         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
4787   }
4788   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumDescriptorProto)
4789   return target;
4790 }
4791 
ByteSizeLong() const4792 size_t EnumDescriptorProto::ByteSizeLong() const {
4793 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumDescriptorProto)
4794   size_t total_size = 0;
4795 
4796   uint32_t cached_has_bits = 0;
4797   // Prevent compiler warnings about cached_has_bits being unused
4798   (void) cached_has_bits;
4799 
4800   // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
4801   total_size += 1UL * this->_internal_value_size();
4802   for (const auto& msg : this->value_) {
4803     total_size +=
4804       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
4805   }
4806 
4807   // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
4808   total_size += 1UL * this->_internal_reserved_range_size();
4809   for (const auto& msg : this->reserved_range_) {
4810     total_size +=
4811       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
4812   }
4813 
4814   // repeated string reserved_name = 5;
4815   total_size += 1 *
4816       ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(reserved_name_.size());
4817   for (int i = 0, n = reserved_name_.size(); i < n; i++) {
4818     total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4819       reserved_name_.Get(i));
4820   }
4821 
4822   cached_has_bits = _has_bits_[0];
4823   if (cached_has_bits & 0x00000003u) {
4824     // optional string name = 1;
4825     if (cached_has_bits & 0x00000001u) {
4826       total_size += 1 +
4827         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4828           this->_internal_name());
4829     }
4830 
4831     // optional .google.protobuf.EnumOptions options = 3;
4832     if (cached_has_bits & 0x00000002u) {
4833       total_size += 1 +
4834         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4835           *options_);
4836     }
4837 
4838   }
4839   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
4840 }
4841 
4842 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EnumDescriptorProto::_class_data_ = {
4843     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
4844     EnumDescriptorProto::MergeImpl
4845 };
GetClassData() const4846 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EnumDescriptorProto::GetClassData() const { return &_class_data_; }
4847 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)4848 void EnumDescriptorProto::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
4849                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4850   static_cast<EnumDescriptorProto *>(to)->MergeFrom(
4851       static_cast<const EnumDescriptorProto &>(from));
4852 }
4853 
4854 
MergeFrom(const EnumDescriptorProto & from)4855 void EnumDescriptorProto::MergeFrom(const EnumDescriptorProto& from) {
4856 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumDescriptorProto)
4857   GOOGLE_DCHECK_NE(&from, this);
4858   uint32_t cached_has_bits = 0;
4859   (void) cached_has_bits;
4860 
4861   value_.MergeFrom(from.value_);
4862   reserved_range_.MergeFrom(from.reserved_range_);
4863   reserved_name_.MergeFrom(from.reserved_name_);
4864   cached_has_bits = from._has_bits_[0];
4865   if (cached_has_bits & 0x00000003u) {
4866     if (cached_has_bits & 0x00000001u) {
4867       _internal_set_name(from._internal_name());
4868     }
4869     if (cached_has_bits & 0x00000002u) {
4870       _internal_mutable_options()->::PROTOBUF_NAMESPACE_ID::EnumOptions::MergeFrom(from._internal_options());
4871     }
4872   }
4873   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
4874 }
4875 
CopyFrom(const EnumDescriptorProto & from)4876 void EnumDescriptorProto::CopyFrom(const EnumDescriptorProto& from) {
4877 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumDescriptorProto)
4878   if (&from == this) return;
4879   Clear();
4880   MergeFrom(from);
4881 }
4882 
IsInitialized() const4883 bool EnumDescriptorProto::IsInitialized() const {
4884   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(value_))
4885     return false;
4886   if (_internal_has_options()) {
4887     if (!options_->IsInitialized()) return false;
4888   }
4889   return true;
4890 }
4891 
InternalSwap(EnumDescriptorProto * other)4892 void EnumDescriptorProto::InternalSwap(EnumDescriptorProto* other) {
4893   using std::swap;
4894   auto* lhs_arena = GetArenaForAllocation();
4895   auto* rhs_arena = other->GetArenaForAllocation();
4896   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4897   swap(_has_bits_[0], other->_has_bits_[0]);
4898   value_.InternalSwap(&other->value_);
4899   reserved_range_.InternalSwap(&other->reserved_range_);
4900   reserved_name_.InternalSwap(&other->reserved_name_);
4901   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4902       &name_, lhs_arena,
4903       &other->name_, rhs_arena
4904   );
4905   swap(options_, other->options_);
4906 }
4907 
GetMetadata() const4908 ::PROTOBUF_NAMESPACE_ID::Metadata EnumDescriptorProto::GetMetadata() const {
4909   return ::_pbi::AssignDescriptors(
4910       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
4911       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[9]);
4912 }
4913 
4914 // ===================================================================
4915 
4916 class EnumValueDescriptorProto::_Internal {
4917  public:
4918   using HasBits = decltype(std::declval<EnumValueDescriptorProto>()._has_bits_);
set_has_name(HasBits * has_bits)4919   static void set_has_name(HasBits* has_bits) {
4920     (*has_bits)[0] |= 1u;
4921   }
set_has_number(HasBits * has_bits)4922   static void set_has_number(HasBits* has_bits) {
4923     (*has_bits)[0] |= 4u;
4924   }
4925   static const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions& options(const EnumValueDescriptorProto* msg);
set_has_options(HasBits * has_bits)4926   static void set_has_options(HasBits* has_bits) {
4927     (*has_bits)[0] |= 2u;
4928   }
4929 };
4930 
4931 const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions&
options(const EnumValueDescriptorProto * msg)4932 EnumValueDescriptorProto::_Internal::options(const EnumValueDescriptorProto* msg) {
4933   return *msg->options_;
4934 }
EnumValueDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4935 EnumValueDescriptorProto::EnumValueDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4936                          bool is_message_owned)
4937   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
4938   SharedCtor();
4939   // @@protoc_insertion_point(arena_constructor:google.protobuf.EnumValueDescriptorProto)
4940 }
EnumValueDescriptorProto(const EnumValueDescriptorProto & from)4941 EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProto& from)
4942   : ::PROTOBUF_NAMESPACE_ID::Message(),
4943       _has_bits_(from._has_bits_) {
4944   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
4945   name_.InitDefault();
4946   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4947     name_.Set("", GetArenaForAllocation());
4948   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4949   if (from._internal_has_name()) {
4950     name_.Set(from._internal_name(),
4951       GetArenaForAllocation());
4952   }
4953   if (from._internal_has_options()) {
4954     options_ = new ::PROTOBUF_NAMESPACE_ID::EnumValueOptions(*from.options_);
4955   } else {
4956     options_ = nullptr;
4957   }
4958   number_ = from.number_;
4959   // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueDescriptorProto)
4960 }
4961 
SharedCtor()4962 inline void EnumValueDescriptorProto::SharedCtor() {
4963 name_.InitDefault();
4964 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4965   name_.Set("", GetArenaForAllocation());
4966 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4967 ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
4968     reinterpret_cast<char*>(&options_) - reinterpret_cast<char*>(this)),
4969     0, static_cast<size_t>(reinterpret_cast<char*>(&number_) -
4970     reinterpret_cast<char*>(&options_)) + sizeof(number_));
4971 }
4972 
~EnumValueDescriptorProto()4973 EnumValueDescriptorProto::~EnumValueDescriptorProto() {
4974   // @@protoc_insertion_point(destructor:google.protobuf.EnumValueDescriptorProto)
4975   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
4976   (void)arena;
4977     return;
4978   }
4979   SharedDtor();
4980 }
4981 
SharedDtor()4982 inline void EnumValueDescriptorProto::SharedDtor() {
4983   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4984   name_.Destroy();
4985   if (this != internal_default_instance()) delete options_;
4986 }
4987 
SetCachedSize(int size) const4988 void EnumValueDescriptorProto::SetCachedSize(int size) const {
4989   _cached_size_.Set(size);
4990 }
4991 
Clear()4992 void EnumValueDescriptorProto::Clear() {
4993 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueDescriptorProto)
4994   uint32_t cached_has_bits = 0;
4995   // Prevent compiler warnings about cached_has_bits being unused
4996   (void) cached_has_bits;
4997 
4998   cached_has_bits = _has_bits_[0];
4999   if (cached_has_bits & 0x00000003u) {
5000     if (cached_has_bits & 0x00000001u) {
5001       name_.ClearNonDefaultToEmpty();
5002     }
5003     if (cached_has_bits & 0x00000002u) {
5004       GOOGLE_DCHECK(options_ != nullptr);
5005       options_->Clear();
5006     }
5007   }
5008   number_ = 0;
5009   _has_bits_.Clear();
5010   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
5011 }
5012 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5013 const char* EnumValueDescriptorProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5014 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5015   _Internal::HasBits has_bits{};
5016   while (!ctx->Done(&ptr)) {
5017     uint32_t tag;
5018     ptr = ::_pbi::ReadTag(ptr, &tag);
5019     switch (tag >> 3) {
5020       // optional string name = 1;
5021       case 1:
5022         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
5023           auto str = _internal_mutable_name();
5024           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
5025           CHK_(ptr);
5026           #ifndef NDEBUG
5027           ::_pbi::VerifyUTF8(str, "google.protobuf.EnumValueDescriptorProto.name");
5028           #endif  // !NDEBUG
5029         } else
5030           goto handle_unusual;
5031         continue;
5032       // optional int32 number = 2;
5033       case 2:
5034         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
5035           _Internal::set_has_number(&has_bits);
5036           number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
5037           CHK_(ptr);
5038         } else
5039           goto handle_unusual;
5040         continue;
5041       // optional .google.protobuf.EnumValueOptions options = 3;
5042       case 3:
5043         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
5044           ptr = ctx->ParseMessage(_internal_mutable_options(), ptr);
5045           CHK_(ptr);
5046         } else
5047           goto handle_unusual;
5048         continue;
5049       default:
5050         goto handle_unusual;
5051     }  // switch
5052   handle_unusual:
5053     if ((tag == 0) || ((tag & 7) == 4)) {
5054       CHK_(ptr);
5055       ctx->SetLastTag(tag);
5056       goto message_done;
5057     }
5058     ptr = UnknownFieldParse(
5059         tag,
5060         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
5061         ptr, ctx);
5062     CHK_(ptr != nullptr);
5063   }  // while
5064 message_done:
5065   _has_bits_.Or(has_bits);
5066   return ptr;
5067 failure:
5068   ptr = nullptr;
5069   goto message_done;
5070 #undef CHK_
5071 }
5072 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5073 uint8_t* EnumValueDescriptorProto::_InternalSerialize(
5074     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5075   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueDescriptorProto)
5076   uint32_t cached_has_bits = 0;
5077   (void) cached_has_bits;
5078 
5079   cached_has_bits = _has_bits_[0];
5080   // optional string name = 1;
5081   if (cached_has_bits & 0x00000001u) {
5082     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
5083       this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
5084       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
5085       "google.protobuf.EnumValueDescriptorProto.name");
5086     target = stream->WriteStringMaybeAliased(
5087         1, this->_internal_name(), target);
5088   }
5089 
5090   // optional int32 number = 2;
5091   if (cached_has_bits & 0x00000004u) {
5092     target = stream->EnsureSpace(target);
5093     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_number(), target);
5094   }
5095 
5096   // optional .google.protobuf.EnumValueOptions options = 3;
5097   if (cached_has_bits & 0x00000002u) {
5098     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5099       InternalWriteMessage(3, _Internal::options(this),
5100         _Internal::options(this).GetCachedSize(), target, stream);
5101   }
5102 
5103   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5104     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
5105         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
5106   }
5107   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueDescriptorProto)
5108   return target;
5109 }
5110 
ByteSizeLong() const5111 size_t EnumValueDescriptorProto::ByteSizeLong() const {
5112 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueDescriptorProto)
5113   size_t total_size = 0;
5114 
5115   uint32_t cached_has_bits = 0;
5116   // Prevent compiler warnings about cached_has_bits being unused
5117   (void) cached_has_bits;
5118 
5119   cached_has_bits = _has_bits_[0];
5120   if (cached_has_bits & 0x00000007u) {
5121     // optional string name = 1;
5122     if (cached_has_bits & 0x00000001u) {
5123       total_size += 1 +
5124         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5125           this->_internal_name());
5126     }
5127 
5128     // optional .google.protobuf.EnumValueOptions options = 3;
5129     if (cached_has_bits & 0x00000002u) {
5130       total_size += 1 +
5131         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5132           *options_);
5133     }
5134 
5135     // optional int32 number = 2;
5136     if (cached_has_bits & 0x00000004u) {
5137       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_number());
5138     }
5139 
5140   }
5141   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
5142 }
5143 
5144 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EnumValueDescriptorProto::_class_data_ = {
5145     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
5146     EnumValueDescriptorProto::MergeImpl
5147 };
GetClassData() const5148 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EnumValueDescriptorProto::GetClassData() const { return &_class_data_; }
5149 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)5150 void EnumValueDescriptorProto::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
5151                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5152   static_cast<EnumValueDescriptorProto *>(to)->MergeFrom(
5153       static_cast<const EnumValueDescriptorProto &>(from));
5154 }
5155 
5156 
MergeFrom(const EnumValueDescriptorProto & from)5157 void EnumValueDescriptorProto::MergeFrom(const EnumValueDescriptorProto& from) {
5158 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumValueDescriptorProto)
5159   GOOGLE_DCHECK_NE(&from, this);
5160   uint32_t cached_has_bits = 0;
5161   (void) cached_has_bits;
5162 
5163   cached_has_bits = from._has_bits_[0];
5164   if (cached_has_bits & 0x00000007u) {
5165     if (cached_has_bits & 0x00000001u) {
5166       _internal_set_name(from._internal_name());
5167     }
5168     if (cached_has_bits & 0x00000002u) {
5169       _internal_mutable_options()->::PROTOBUF_NAMESPACE_ID::EnumValueOptions::MergeFrom(from._internal_options());
5170     }
5171     if (cached_has_bits & 0x00000004u) {
5172       number_ = from.number_;
5173     }
5174     _has_bits_[0] |= cached_has_bits;
5175   }
5176   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
5177 }
5178 
CopyFrom(const EnumValueDescriptorProto & from)5179 void EnumValueDescriptorProto::CopyFrom(const EnumValueDescriptorProto& from) {
5180 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumValueDescriptorProto)
5181   if (&from == this) return;
5182   Clear();
5183   MergeFrom(from);
5184 }
5185 
IsInitialized() const5186 bool EnumValueDescriptorProto::IsInitialized() const {
5187   if (_internal_has_options()) {
5188     if (!options_->IsInitialized()) return false;
5189   }
5190   return true;
5191 }
5192 
InternalSwap(EnumValueDescriptorProto * other)5193 void EnumValueDescriptorProto::InternalSwap(EnumValueDescriptorProto* other) {
5194   using std::swap;
5195   auto* lhs_arena = GetArenaForAllocation();
5196   auto* rhs_arena = other->GetArenaForAllocation();
5197   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5198   swap(_has_bits_[0], other->_has_bits_[0]);
5199   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
5200       &name_, lhs_arena,
5201       &other->name_, rhs_arena
5202   );
5203   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
5204       PROTOBUF_FIELD_OFFSET(EnumValueDescriptorProto, number_)
5205       + sizeof(EnumValueDescriptorProto::number_)
5206       - PROTOBUF_FIELD_OFFSET(EnumValueDescriptorProto, options_)>(
5207           reinterpret_cast<char*>(&options_),
5208           reinterpret_cast<char*>(&other->options_));
5209 }
5210 
GetMetadata() const5211 ::PROTOBUF_NAMESPACE_ID::Metadata EnumValueDescriptorProto::GetMetadata() const {
5212   return ::_pbi::AssignDescriptors(
5213       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
5214       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[10]);
5215 }
5216 
5217 // ===================================================================
5218 
5219 class ServiceDescriptorProto::_Internal {
5220  public:
5221   using HasBits = decltype(std::declval<ServiceDescriptorProto>()._has_bits_);
set_has_name(HasBits * has_bits)5222   static void set_has_name(HasBits* has_bits) {
5223     (*has_bits)[0] |= 1u;
5224   }
5225   static const ::PROTOBUF_NAMESPACE_ID::ServiceOptions& options(const ServiceDescriptorProto* msg);
set_has_options(HasBits * has_bits)5226   static void set_has_options(HasBits* has_bits) {
5227     (*has_bits)[0] |= 2u;
5228   }
5229 };
5230 
5231 const ::PROTOBUF_NAMESPACE_ID::ServiceOptions&
options(const ServiceDescriptorProto * msg)5232 ServiceDescriptorProto::_Internal::options(const ServiceDescriptorProto* msg) {
5233   return *msg->options_;
5234 }
ServiceDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5235 ServiceDescriptorProto::ServiceDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5236                          bool is_message_owned)
5237   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
5238   method_(arena) {
5239   SharedCtor();
5240   // @@protoc_insertion_point(arena_constructor:google.protobuf.ServiceDescriptorProto)
5241 }
ServiceDescriptorProto(const ServiceDescriptorProto & from)5242 ServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& from)
5243   : ::PROTOBUF_NAMESPACE_ID::Message(),
5244       _has_bits_(from._has_bits_),
5245       method_(from.method_) {
5246   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
5247   name_.InitDefault();
5248   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5249     name_.Set("", GetArenaForAllocation());
5250   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5251   if (from._internal_has_name()) {
5252     name_.Set(from._internal_name(),
5253       GetArenaForAllocation());
5254   }
5255   if (from._internal_has_options()) {
5256     options_ = new ::PROTOBUF_NAMESPACE_ID::ServiceOptions(*from.options_);
5257   } else {
5258     options_ = nullptr;
5259   }
5260   // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceDescriptorProto)
5261 }
5262 
SharedCtor()5263 inline void ServiceDescriptorProto::SharedCtor() {
5264 name_.InitDefault();
5265 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5266   name_.Set("", GetArenaForAllocation());
5267 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5268 options_ = nullptr;
5269 }
5270 
~ServiceDescriptorProto()5271 ServiceDescriptorProto::~ServiceDescriptorProto() {
5272   // @@protoc_insertion_point(destructor:google.protobuf.ServiceDescriptorProto)
5273   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
5274   (void)arena;
5275     return;
5276   }
5277   SharedDtor();
5278 }
5279 
SharedDtor()5280 inline void ServiceDescriptorProto::SharedDtor() {
5281   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5282   name_.Destroy();
5283   if (this != internal_default_instance()) delete options_;
5284 }
5285 
SetCachedSize(int size) const5286 void ServiceDescriptorProto::SetCachedSize(int size) const {
5287   _cached_size_.Set(size);
5288 }
5289 
Clear()5290 void ServiceDescriptorProto::Clear() {
5291 // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceDescriptorProto)
5292   uint32_t cached_has_bits = 0;
5293   // Prevent compiler warnings about cached_has_bits being unused
5294   (void) cached_has_bits;
5295 
5296   method_.Clear();
5297   cached_has_bits = _has_bits_[0];
5298   if (cached_has_bits & 0x00000003u) {
5299     if (cached_has_bits & 0x00000001u) {
5300       name_.ClearNonDefaultToEmpty();
5301     }
5302     if (cached_has_bits & 0x00000002u) {
5303       GOOGLE_DCHECK(options_ != nullptr);
5304       options_->Clear();
5305     }
5306   }
5307   _has_bits_.Clear();
5308   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
5309 }
5310 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5311 const char* ServiceDescriptorProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5312 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5313   _Internal::HasBits has_bits{};
5314   while (!ctx->Done(&ptr)) {
5315     uint32_t tag;
5316     ptr = ::_pbi::ReadTag(ptr, &tag);
5317     switch (tag >> 3) {
5318       // optional string name = 1;
5319       case 1:
5320         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
5321           auto str = _internal_mutable_name();
5322           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
5323           CHK_(ptr);
5324           #ifndef NDEBUG
5325           ::_pbi::VerifyUTF8(str, "google.protobuf.ServiceDescriptorProto.name");
5326           #endif  // !NDEBUG
5327         } else
5328           goto handle_unusual;
5329         continue;
5330       // repeated .google.protobuf.MethodDescriptorProto method = 2;
5331       case 2:
5332         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
5333           ptr -= 1;
5334           do {
5335             ptr += 1;
5336             ptr = ctx->ParseMessage(_internal_add_method(), ptr);
5337             CHK_(ptr);
5338             if (!ctx->DataAvailable(ptr)) break;
5339           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
5340         } else
5341           goto handle_unusual;
5342         continue;
5343       // optional .google.protobuf.ServiceOptions options = 3;
5344       case 3:
5345         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
5346           ptr = ctx->ParseMessage(_internal_mutable_options(), ptr);
5347           CHK_(ptr);
5348         } else
5349           goto handle_unusual;
5350         continue;
5351       default:
5352         goto handle_unusual;
5353     }  // switch
5354   handle_unusual:
5355     if ((tag == 0) || ((tag & 7) == 4)) {
5356       CHK_(ptr);
5357       ctx->SetLastTag(tag);
5358       goto message_done;
5359     }
5360     ptr = UnknownFieldParse(
5361         tag,
5362         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
5363         ptr, ctx);
5364     CHK_(ptr != nullptr);
5365   }  // while
5366 message_done:
5367   _has_bits_.Or(has_bits);
5368   return ptr;
5369 failure:
5370   ptr = nullptr;
5371   goto message_done;
5372 #undef CHK_
5373 }
5374 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5375 uint8_t* ServiceDescriptorProto::_InternalSerialize(
5376     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5377   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceDescriptorProto)
5378   uint32_t cached_has_bits = 0;
5379   (void) cached_has_bits;
5380 
5381   cached_has_bits = _has_bits_[0];
5382   // optional string name = 1;
5383   if (cached_has_bits & 0x00000001u) {
5384     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
5385       this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
5386       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
5387       "google.protobuf.ServiceDescriptorProto.name");
5388     target = stream->WriteStringMaybeAliased(
5389         1, this->_internal_name(), target);
5390   }
5391 
5392   // repeated .google.protobuf.MethodDescriptorProto method = 2;
5393   for (unsigned i = 0,
5394       n = static_cast<unsigned>(this->_internal_method_size()); i < n; i++) {
5395     const auto& repfield = this->_internal_method(i);
5396     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5397         InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
5398   }
5399 
5400   // optional .google.protobuf.ServiceOptions options = 3;
5401   if (cached_has_bits & 0x00000002u) {
5402     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5403       InternalWriteMessage(3, _Internal::options(this),
5404         _Internal::options(this).GetCachedSize(), target, stream);
5405   }
5406 
5407   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5408     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
5409         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
5410   }
5411   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceDescriptorProto)
5412   return target;
5413 }
5414 
ByteSizeLong() const5415 size_t ServiceDescriptorProto::ByteSizeLong() const {
5416 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceDescriptorProto)
5417   size_t total_size = 0;
5418 
5419   uint32_t cached_has_bits = 0;
5420   // Prevent compiler warnings about cached_has_bits being unused
5421   (void) cached_has_bits;
5422 
5423   // repeated .google.protobuf.MethodDescriptorProto method = 2;
5424   total_size += 1UL * this->_internal_method_size();
5425   for (const auto& msg : this->method_) {
5426     total_size +=
5427       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
5428   }
5429 
5430   cached_has_bits = _has_bits_[0];
5431   if (cached_has_bits & 0x00000003u) {
5432     // optional string name = 1;
5433     if (cached_has_bits & 0x00000001u) {
5434       total_size += 1 +
5435         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5436           this->_internal_name());
5437     }
5438 
5439     // optional .google.protobuf.ServiceOptions options = 3;
5440     if (cached_has_bits & 0x00000002u) {
5441       total_size += 1 +
5442         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5443           *options_);
5444     }
5445 
5446   }
5447   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
5448 }
5449 
5450 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ServiceDescriptorProto::_class_data_ = {
5451     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
5452     ServiceDescriptorProto::MergeImpl
5453 };
GetClassData() const5454 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ServiceDescriptorProto::GetClassData() const { return &_class_data_; }
5455 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)5456 void ServiceDescriptorProto::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
5457                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5458   static_cast<ServiceDescriptorProto *>(to)->MergeFrom(
5459       static_cast<const ServiceDescriptorProto &>(from));
5460 }
5461 
5462 
MergeFrom(const ServiceDescriptorProto & from)5463 void ServiceDescriptorProto::MergeFrom(const ServiceDescriptorProto& from) {
5464 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.ServiceDescriptorProto)
5465   GOOGLE_DCHECK_NE(&from, this);
5466   uint32_t cached_has_bits = 0;
5467   (void) cached_has_bits;
5468 
5469   method_.MergeFrom(from.method_);
5470   cached_has_bits = from._has_bits_[0];
5471   if (cached_has_bits & 0x00000003u) {
5472     if (cached_has_bits & 0x00000001u) {
5473       _internal_set_name(from._internal_name());
5474     }
5475     if (cached_has_bits & 0x00000002u) {
5476       _internal_mutable_options()->::PROTOBUF_NAMESPACE_ID::ServiceOptions::MergeFrom(from._internal_options());
5477     }
5478   }
5479   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
5480 }
5481 
CopyFrom(const ServiceDescriptorProto & from)5482 void ServiceDescriptorProto::CopyFrom(const ServiceDescriptorProto& from) {
5483 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.ServiceDescriptorProto)
5484   if (&from == this) return;
5485   Clear();
5486   MergeFrom(from);
5487 }
5488 
IsInitialized() const5489 bool ServiceDescriptorProto::IsInitialized() const {
5490   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(method_))
5491     return false;
5492   if (_internal_has_options()) {
5493     if (!options_->IsInitialized()) return false;
5494   }
5495   return true;
5496 }
5497 
InternalSwap(ServiceDescriptorProto * other)5498 void ServiceDescriptorProto::InternalSwap(ServiceDescriptorProto* other) {
5499   using std::swap;
5500   auto* lhs_arena = GetArenaForAllocation();
5501   auto* rhs_arena = other->GetArenaForAllocation();
5502   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5503   swap(_has_bits_[0], other->_has_bits_[0]);
5504   method_.InternalSwap(&other->method_);
5505   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
5506       &name_, lhs_arena,
5507       &other->name_, rhs_arena
5508   );
5509   swap(options_, other->options_);
5510 }
5511 
GetMetadata() const5512 ::PROTOBUF_NAMESPACE_ID::Metadata ServiceDescriptorProto::GetMetadata() const {
5513   return ::_pbi::AssignDescriptors(
5514       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
5515       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[11]);
5516 }
5517 
5518 // ===================================================================
5519 
5520 class MethodDescriptorProto::_Internal {
5521  public:
5522   using HasBits = decltype(std::declval<MethodDescriptorProto>()._has_bits_);
set_has_name(HasBits * has_bits)5523   static void set_has_name(HasBits* has_bits) {
5524     (*has_bits)[0] |= 1u;
5525   }
set_has_input_type(HasBits * has_bits)5526   static void set_has_input_type(HasBits* has_bits) {
5527     (*has_bits)[0] |= 2u;
5528   }
set_has_output_type(HasBits * has_bits)5529   static void set_has_output_type(HasBits* has_bits) {
5530     (*has_bits)[0] |= 4u;
5531   }
5532   static const ::PROTOBUF_NAMESPACE_ID::MethodOptions& options(const MethodDescriptorProto* msg);
set_has_options(HasBits * has_bits)5533   static void set_has_options(HasBits* has_bits) {
5534     (*has_bits)[0] |= 8u;
5535   }
set_has_client_streaming(HasBits * has_bits)5536   static void set_has_client_streaming(HasBits* has_bits) {
5537     (*has_bits)[0] |= 16u;
5538   }
set_has_server_streaming(HasBits * has_bits)5539   static void set_has_server_streaming(HasBits* has_bits) {
5540     (*has_bits)[0] |= 32u;
5541   }
5542 };
5543 
5544 const ::PROTOBUF_NAMESPACE_ID::MethodOptions&
options(const MethodDescriptorProto * msg)5545 MethodDescriptorProto::_Internal::options(const MethodDescriptorProto* msg) {
5546   return *msg->options_;
5547 }
MethodDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5548 MethodDescriptorProto::MethodDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5549                          bool is_message_owned)
5550   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
5551   SharedCtor();
5552   // @@protoc_insertion_point(arena_constructor:google.protobuf.MethodDescriptorProto)
5553 }
MethodDescriptorProto(const MethodDescriptorProto & from)5554 MethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from)
5555   : ::PROTOBUF_NAMESPACE_ID::Message(),
5556       _has_bits_(from._has_bits_) {
5557   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
5558   name_.InitDefault();
5559   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5560     name_.Set("", GetArenaForAllocation());
5561   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5562   if (from._internal_has_name()) {
5563     name_.Set(from._internal_name(),
5564       GetArenaForAllocation());
5565   }
5566   input_type_.InitDefault();
5567   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5568     input_type_.Set("", GetArenaForAllocation());
5569   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5570   if (from._internal_has_input_type()) {
5571     input_type_.Set(from._internal_input_type(),
5572       GetArenaForAllocation());
5573   }
5574   output_type_.InitDefault();
5575   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5576     output_type_.Set("", GetArenaForAllocation());
5577   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5578   if (from._internal_has_output_type()) {
5579     output_type_.Set(from._internal_output_type(),
5580       GetArenaForAllocation());
5581   }
5582   if (from._internal_has_options()) {
5583     options_ = new ::PROTOBUF_NAMESPACE_ID::MethodOptions(*from.options_);
5584   } else {
5585     options_ = nullptr;
5586   }
5587   ::memcpy(&client_streaming_, &from.client_streaming_,
5588     static_cast<size_t>(reinterpret_cast<char*>(&server_streaming_) -
5589     reinterpret_cast<char*>(&client_streaming_)) + sizeof(server_streaming_));
5590   // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodDescriptorProto)
5591 }
5592 
SharedCtor()5593 inline void MethodDescriptorProto::SharedCtor() {
5594 name_.InitDefault();
5595 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5596   name_.Set("", GetArenaForAllocation());
5597 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5598 input_type_.InitDefault();
5599 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5600   input_type_.Set("", GetArenaForAllocation());
5601 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5602 output_type_.InitDefault();
5603 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5604   output_type_.Set("", GetArenaForAllocation());
5605 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5606 ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
5607     reinterpret_cast<char*>(&options_) - reinterpret_cast<char*>(this)),
5608     0, static_cast<size_t>(reinterpret_cast<char*>(&server_streaming_) -
5609     reinterpret_cast<char*>(&options_)) + sizeof(server_streaming_));
5610 }
5611 
~MethodDescriptorProto()5612 MethodDescriptorProto::~MethodDescriptorProto() {
5613   // @@protoc_insertion_point(destructor:google.protobuf.MethodDescriptorProto)
5614   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
5615   (void)arena;
5616     return;
5617   }
5618   SharedDtor();
5619 }
5620 
SharedDtor()5621 inline void MethodDescriptorProto::SharedDtor() {
5622   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5623   name_.Destroy();
5624   input_type_.Destroy();
5625   output_type_.Destroy();
5626   if (this != internal_default_instance()) delete options_;
5627 }
5628 
SetCachedSize(int size) const5629 void MethodDescriptorProto::SetCachedSize(int size) const {
5630   _cached_size_.Set(size);
5631 }
5632 
Clear()5633 void MethodDescriptorProto::Clear() {
5634 // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodDescriptorProto)
5635   uint32_t cached_has_bits = 0;
5636   // Prevent compiler warnings about cached_has_bits being unused
5637   (void) cached_has_bits;
5638 
5639   cached_has_bits = _has_bits_[0];
5640   if (cached_has_bits & 0x0000000fu) {
5641     if (cached_has_bits & 0x00000001u) {
5642       name_.ClearNonDefaultToEmpty();
5643     }
5644     if (cached_has_bits & 0x00000002u) {
5645       input_type_.ClearNonDefaultToEmpty();
5646     }
5647     if (cached_has_bits & 0x00000004u) {
5648       output_type_.ClearNonDefaultToEmpty();
5649     }
5650     if (cached_has_bits & 0x00000008u) {
5651       GOOGLE_DCHECK(options_ != nullptr);
5652       options_->Clear();
5653     }
5654   }
5655   ::memset(&client_streaming_, 0, static_cast<size_t>(
5656       reinterpret_cast<char*>(&server_streaming_) -
5657       reinterpret_cast<char*>(&client_streaming_)) + sizeof(server_streaming_));
5658   _has_bits_.Clear();
5659   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
5660 }
5661 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5662 const char* MethodDescriptorProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5663 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5664   _Internal::HasBits has_bits{};
5665   while (!ctx->Done(&ptr)) {
5666     uint32_t tag;
5667     ptr = ::_pbi::ReadTag(ptr, &tag);
5668     switch (tag >> 3) {
5669       // optional string name = 1;
5670       case 1:
5671         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
5672           auto str = _internal_mutable_name();
5673           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
5674           CHK_(ptr);
5675           #ifndef NDEBUG
5676           ::_pbi::VerifyUTF8(str, "google.protobuf.MethodDescriptorProto.name");
5677           #endif  // !NDEBUG
5678         } else
5679           goto handle_unusual;
5680         continue;
5681       // optional string input_type = 2;
5682       case 2:
5683         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
5684           auto str = _internal_mutable_input_type();
5685           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
5686           CHK_(ptr);
5687           #ifndef NDEBUG
5688           ::_pbi::VerifyUTF8(str, "google.protobuf.MethodDescriptorProto.input_type");
5689           #endif  // !NDEBUG
5690         } else
5691           goto handle_unusual;
5692         continue;
5693       // optional string output_type = 3;
5694       case 3:
5695         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
5696           auto str = _internal_mutable_output_type();
5697           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
5698           CHK_(ptr);
5699           #ifndef NDEBUG
5700           ::_pbi::VerifyUTF8(str, "google.protobuf.MethodDescriptorProto.output_type");
5701           #endif  // !NDEBUG
5702         } else
5703           goto handle_unusual;
5704         continue;
5705       // optional .google.protobuf.MethodOptions options = 4;
5706       case 4:
5707         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
5708           ptr = ctx->ParseMessage(_internal_mutable_options(), ptr);
5709           CHK_(ptr);
5710         } else
5711           goto handle_unusual;
5712         continue;
5713       // optional bool client_streaming = 5 [default = false];
5714       case 5:
5715         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
5716           _Internal::set_has_client_streaming(&has_bits);
5717           client_streaming_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5718           CHK_(ptr);
5719         } else
5720           goto handle_unusual;
5721         continue;
5722       // optional bool server_streaming = 6 [default = false];
5723       case 6:
5724         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
5725           _Internal::set_has_server_streaming(&has_bits);
5726           server_streaming_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5727           CHK_(ptr);
5728         } else
5729           goto handle_unusual;
5730         continue;
5731       default:
5732         goto handle_unusual;
5733     }  // switch
5734   handle_unusual:
5735     if ((tag == 0) || ((tag & 7) == 4)) {
5736       CHK_(ptr);
5737       ctx->SetLastTag(tag);
5738       goto message_done;
5739     }
5740     ptr = UnknownFieldParse(
5741         tag,
5742         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
5743         ptr, ctx);
5744     CHK_(ptr != nullptr);
5745   }  // while
5746 message_done:
5747   _has_bits_.Or(has_bits);
5748   return ptr;
5749 failure:
5750   ptr = nullptr;
5751   goto message_done;
5752 #undef CHK_
5753 }
5754 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5755 uint8_t* MethodDescriptorProto::_InternalSerialize(
5756     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5757   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodDescriptorProto)
5758   uint32_t cached_has_bits = 0;
5759   (void) cached_has_bits;
5760 
5761   cached_has_bits = _has_bits_[0];
5762   // optional string name = 1;
5763   if (cached_has_bits & 0x00000001u) {
5764     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
5765       this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
5766       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
5767       "google.protobuf.MethodDescriptorProto.name");
5768     target = stream->WriteStringMaybeAliased(
5769         1, this->_internal_name(), target);
5770   }
5771 
5772   // optional string input_type = 2;
5773   if (cached_has_bits & 0x00000002u) {
5774     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
5775       this->_internal_input_type().data(), static_cast<int>(this->_internal_input_type().length()),
5776       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
5777       "google.protobuf.MethodDescriptorProto.input_type");
5778     target = stream->WriteStringMaybeAliased(
5779         2, this->_internal_input_type(), target);
5780   }
5781 
5782   // optional string output_type = 3;
5783   if (cached_has_bits & 0x00000004u) {
5784     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
5785       this->_internal_output_type().data(), static_cast<int>(this->_internal_output_type().length()),
5786       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
5787       "google.protobuf.MethodDescriptorProto.output_type");
5788     target = stream->WriteStringMaybeAliased(
5789         3, this->_internal_output_type(), target);
5790   }
5791 
5792   // optional .google.protobuf.MethodOptions options = 4;
5793   if (cached_has_bits & 0x00000008u) {
5794     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5795       InternalWriteMessage(4, _Internal::options(this),
5796         _Internal::options(this).GetCachedSize(), target, stream);
5797   }
5798 
5799   // optional bool client_streaming = 5 [default = false];
5800   if (cached_has_bits & 0x00000010u) {
5801     target = stream->EnsureSpace(target);
5802     target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_client_streaming(), target);
5803   }
5804 
5805   // optional bool server_streaming = 6 [default = false];
5806   if (cached_has_bits & 0x00000020u) {
5807     target = stream->EnsureSpace(target);
5808     target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_server_streaming(), target);
5809   }
5810 
5811   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5812     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
5813         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
5814   }
5815   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodDescriptorProto)
5816   return target;
5817 }
5818 
ByteSizeLong() const5819 size_t MethodDescriptorProto::ByteSizeLong() const {
5820 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodDescriptorProto)
5821   size_t total_size = 0;
5822 
5823   uint32_t cached_has_bits = 0;
5824   // Prevent compiler warnings about cached_has_bits being unused
5825   (void) cached_has_bits;
5826 
5827   cached_has_bits = _has_bits_[0];
5828   if (cached_has_bits & 0x0000003fu) {
5829     // optional string name = 1;
5830     if (cached_has_bits & 0x00000001u) {
5831       total_size += 1 +
5832         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5833           this->_internal_name());
5834     }
5835 
5836     // optional string input_type = 2;
5837     if (cached_has_bits & 0x00000002u) {
5838       total_size += 1 +
5839         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5840           this->_internal_input_type());
5841     }
5842 
5843     // optional string output_type = 3;
5844     if (cached_has_bits & 0x00000004u) {
5845       total_size += 1 +
5846         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5847           this->_internal_output_type());
5848     }
5849 
5850     // optional .google.protobuf.MethodOptions options = 4;
5851     if (cached_has_bits & 0x00000008u) {
5852       total_size += 1 +
5853         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5854           *options_);
5855     }
5856 
5857     // optional bool client_streaming = 5 [default = false];
5858     if (cached_has_bits & 0x00000010u) {
5859       total_size += 1 + 1;
5860     }
5861 
5862     // optional bool server_streaming = 6 [default = false];
5863     if (cached_has_bits & 0x00000020u) {
5864       total_size += 1 + 1;
5865     }
5866 
5867   }
5868   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
5869 }
5870 
5871 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MethodDescriptorProto::_class_data_ = {
5872     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
5873     MethodDescriptorProto::MergeImpl
5874 };
GetClassData() const5875 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MethodDescriptorProto::GetClassData() const { return &_class_data_; }
5876 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)5877 void MethodDescriptorProto::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
5878                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5879   static_cast<MethodDescriptorProto *>(to)->MergeFrom(
5880       static_cast<const MethodDescriptorProto &>(from));
5881 }
5882 
5883 
MergeFrom(const MethodDescriptorProto & from)5884 void MethodDescriptorProto::MergeFrom(const MethodDescriptorProto& from) {
5885 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.MethodDescriptorProto)
5886   GOOGLE_DCHECK_NE(&from, this);
5887   uint32_t cached_has_bits = 0;
5888   (void) cached_has_bits;
5889 
5890   cached_has_bits = from._has_bits_[0];
5891   if (cached_has_bits & 0x0000003fu) {
5892     if (cached_has_bits & 0x00000001u) {
5893       _internal_set_name(from._internal_name());
5894     }
5895     if (cached_has_bits & 0x00000002u) {
5896       _internal_set_input_type(from._internal_input_type());
5897     }
5898     if (cached_has_bits & 0x00000004u) {
5899       _internal_set_output_type(from._internal_output_type());
5900     }
5901     if (cached_has_bits & 0x00000008u) {
5902       _internal_mutable_options()->::PROTOBUF_NAMESPACE_ID::MethodOptions::MergeFrom(from._internal_options());
5903     }
5904     if (cached_has_bits & 0x00000010u) {
5905       client_streaming_ = from.client_streaming_;
5906     }
5907     if (cached_has_bits & 0x00000020u) {
5908       server_streaming_ = from.server_streaming_;
5909     }
5910     _has_bits_[0] |= cached_has_bits;
5911   }
5912   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
5913 }
5914 
CopyFrom(const MethodDescriptorProto & from)5915 void MethodDescriptorProto::CopyFrom(const MethodDescriptorProto& from) {
5916 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.MethodDescriptorProto)
5917   if (&from == this) return;
5918   Clear();
5919   MergeFrom(from);
5920 }
5921 
IsInitialized() const5922 bool MethodDescriptorProto::IsInitialized() const {
5923   if (_internal_has_options()) {
5924     if (!options_->IsInitialized()) return false;
5925   }
5926   return true;
5927 }
5928 
InternalSwap(MethodDescriptorProto * other)5929 void MethodDescriptorProto::InternalSwap(MethodDescriptorProto* other) {
5930   using std::swap;
5931   auto* lhs_arena = GetArenaForAllocation();
5932   auto* rhs_arena = other->GetArenaForAllocation();
5933   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5934   swap(_has_bits_[0], other->_has_bits_[0]);
5935   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
5936       &name_, lhs_arena,
5937       &other->name_, rhs_arena
5938   );
5939   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
5940       &input_type_, lhs_arena,
5941       &other->input_type_, rhs_arena
5942   );
5943   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
5944       &output_type_, lhs_arena,
5945       &other->output_type_, rhs_arena
5946   );
5947   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
5948       PROTOBUF_FIELD_OFFSET(MethodDescriptorProto, server_streaming_)
5949       + sizeof(MethodDescriptorProto::server_streaming_)
5950       - PROTOBUF_FIELD_OFFSET(MethodDescriptorProto, options_)>(
5951           reinterpret_cast<char*>(&options_),
5952           reinterpret_cast<char*>(&other->options_));
5953 }
5954 
GetMetadata() const5955 ::PROTOBUF_NAMESPACE_ID::Metadata MethodDescriptorProto::GetMetadata() const {
5956   return ::_pbi::AssignDescriptors(
5957       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
5958       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[12]);
5959 }
5960 
5961 // ===================================================================
5962 
5963 class FileOptions::_Internal {
5964  public:
5965   using HasBits = decltype(std::declval<FileOptions>()._has_bits_);
set_has_java_package(HasBits * has_bits)5966   static void set_has_java_package(HasBits* has_bits) {
5967     (*has_bits)[0] |= 1u;
5968   }
set_has_java_outer_classname(HasBits * has_bits)5969   static void set_has_java_outer_classname(HasBits* has_bits) {
5970     (*has_bits)[0] |= 2u;
5971   }
set_has_java_multiple_files(HasBits * has_bits)5972   static void set_has_java_multiple_files(HasBits* has_bits) {
5973     (*has_bits)[0] |= 1024u;
5974   }
set_has_java_generate_equals_and_hash(HasBits * has_bits)5975   static void set_has_java_generate_equals_and_hash(HasBits* has_bits) {
5976     (*has_bits)[0] |= 2048u;
5977   }
set_has_java_string_check_utf8(HasBits * has_bits)5978   static void set_has_java_string_check_utf8(HasBits* has_bits) {
5979     (*has_bits)[0] |= 4096u;
5980   }
set_has_optimize_for(HasBits * has_bits)5981   static void set_has_optimize_for(HasBits* has_bits) {
5982     (*has_bits)[0] |= 262144u;
5983   }
set_has_go_package(HasBits * has_bits)5984   static void set_has_go_package(HasBits* has_bits) {
5985     (*has_bits)[0] |= 4u;
5986   }
set_has_cc_generic_services(HasBits * has_bits)5987   static void set_has_cc_generic_services(HasBits* has_bits) {
5988     (*has_bits)[0] |= 8192u;
5989   }
set_has_java_generic_services(HasBits * has_bits)5990   static void set_has_java_generic_services(HasBits* has_bits) {
5991     (*has_bits)[0] |= 16384u;
5992   }
set_has_py_generic_services(HasBits * has_bits)5993   static void set_has_py_generic_services(HasBits* has_bits) {
5994     (*has_bits)[0] |= 32768u;
5995   }
set_has_php_generic_services(HasBits * has_bits)5996   static void set_has_php_generic_services(HasBits* has_bits) {
5997     (*has_bits)[0] |= 65536u;
5998   }
set_has_deprecated(HasBits * has_bits)5999   static void set_has_deprecated(HasBits* has_bits) {
6000     (*has_bits)[0] |= 131072u;
6001   }
set_has_cc_enable_arenas(HasBits * has_bits)6002   static void set_has_cc_enable_arenas(HasBits* has_bits) {
6003     (*has_bits)[0] |= 524288u;
6004   }
set_has_objc_class_prefix(HasBits * has_bits)6005   static void set_has_objc_class_prefix(HasBits* has_bits) {
6006     (*has_bits)[0] |= 8u;
6007   }
set_has_csharp_namespace(HasBits * has_bits)6008   static void set_has_csharp_namespace(HasBits* has_bits) {
6009     (*has_bits)[0] |= 16u;
6010   }
set_has_swift_prefix(HasBits * has_bits)6011   static void set_has_swift_prefix(HasBits* has_bits) {
6012     (*has_bits)[0] |= 32u;
6013   }
set_has_php_class_prefix(HasBits * has_bits)6014   static void set_has_php_class_prefix(HasBits* has_bits) {
6015     (*has_bits)[0] |= 64u;
6016   }
set_has_php_namespace(HasBits * has_bits)6017   static void set_has_php_namespace(HasBits* has_bits) {
6018     (*has_bits)[0] |= 128u;
6019   }
set_has_php_metadata_namespace(HasBits * has_bits)6020   static void set_has_php_metadata_namespace(HasBits* has_bits) {
6021     (*has_bits)[0] |= 256u;
6022   }
set_has_ruby_package(HasBits * has_bits)6023   static void set_has_ruby_package(HasBits* has_bits) {
6024     (*has_bits)[0] |= 512u;
6025   }
6026 };
6027 
FileOptions(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)6028 FileOptions::FileOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6029                          bool is_message_owned)
6030   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
6031   _extensions_(arena),
6032   uninterpreted_option_(arena) {
6033   SharedCtor();
6034   // @@protoc_insertion_point(arena_constructor:google.protobuf.FileOptions)
6035 }
FileOptions(const FileOptions & from)6036 FileOptions::FileOptions(const FileOptions& from)
6037   : ::PROTOBUF_NAMESPACE_ID::Message(),
6038       _has_bits_(from._has_bits_),
6039       uninterpreted_option_(from.uninterpreted_option_) {
6040   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
6041   _extensions_.MergeFrom(internal_default_instance(), from._extensions_);
6042   java_package_.InitDefault();
6043   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6044     java_package_.Set("", GetArenaForAllocation());
6045   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6046   if (from._internal_has_java_package()) {
6047     java_package_.Set(from._internal_java_package(),
6048       GetArenaForAllocation());
6049   }
6050   java_outer_classname_.InitDefault();
6051   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6052     java_outer_classname_.Set("", GetArenaForAllocation());
6053   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6054   if (from._internal_has_java_outer_classname()) {
6055     java_outer_classname_.Set(from._internal_java_outer_classname(),
6056       GetArenaForAllocation());
6057   }
6058   go_package_.InitDefault();
6059   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6060     go_package_.Set("", GetArenaForAllocation());
6061   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6062   if (from._internal_has_go_package()) {
6063     go_package_.Set(from._internal_go_package(),
6064       GetArenaForAllocation());
6065   }
6066   objc_class_prefix_.InitDefault();
6067   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6068     objc_class_prefix_.Set("", GetArenaForAllocation());
6069   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6070   if (from._internal_has_objc_class_prefix()) {
6071     objc_class_prefix_.Set(from._internal_objc_class_prefix(),
6072       GetArenaForAllocation());
6073   }
6074   csharp_namespace_.InitDefault();
6075   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6076     csharp_namespace_.Set("", GetArenaForAllocation());
6077   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6078   if (from._internal_has_csharp_namespace()) {
6079     csharp_namespace_.Set(from._internal_csharp_namespace(),
6080       GetArenaForAllocation());
6081   }
6082   swift_prefix_.InitDefault();
6083   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6084     swift_prefix_.Set("", GetArenaForAllocation());
6085   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6086   if (from._internal_has_swift_prefix()) {
6087     swift_prefix_.Set(from._internal_swift_prefix(),
6088       GetArenaForAllocation());
6089   }
6090   php_class_prefix_.InitDefault();
6091   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6092     php_class_prefix_.Set("", GetArenaForAllocation());
6093   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6094   if (from._internal_has_php_class_prefix()) {
6095     php_class_prefix_.Set(from._internal_php_class_prefix(),
6096       GetArenaForAllocation());
6097   }
6098   php_namespace_.InitDefault();
6099   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6100     php_namespace_.Set("", GetArenaForAllocation());
6101   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6102   if (from._internal_has_php_namespace()) {
6103     php_namespace_.Set(from._internal_php_namespace(),
6104       GetArenaForAllocation());
6105   }
6106   php_metadata_namespace_.InitDefault();
6107   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6108     php_metadata_namespace_.Set("", GetArenaForAllocation());
6109   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6110   if (from._internal_has_php_metadata_namespace()) {
6111     php_metadata_namespace_.Set(from._internal_php_metadata_namespace(),
6112       GetArenaForAllocation());
6113   }
6114   ruby_package_.InitDefault();
6115   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6116     ruby_package_.Set("", GetArenaForAllocation());
6117   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6118   if (from._internal_has_ruby_package()) {
6119     ruby_package_.Set(from._internal_ruby_package(),
6120       GetArenaForAllocation());
6121   }
6122   ::memcpy(&java_multiple_files_, &from.java_multiple_files_,
6123     static_cast<size_t>(reinterpret_cast<char*>(&cc_enable_arenas_) -
6124     reinterpret_cast<char*>(&java_multiple_files_)) + sizeof(cc_enable_arenas_));
6125   // @@protoc_insertion_point(copy_constructor:google.protobuf.FileOptions)
6126 }
6127 
SharedCtor()6128 inline void FileOptions::SharedCtor() {
6129 java_package_.InitDefault();
6130 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6131   java_package_.Set("", GetArenaForAllocation());
6132 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6133 java_outer_classname_.InitDefault();
6134 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6135   java_outer_classname_.Set("", GetArenaForAllocation());
6136 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6137 go_package_.InitDefault();
6138 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6139   go_package_.Set("", GetArenaForAllocation());
6140 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6141 objc_class_prefix_.InitDefault();
6142 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6143   objc_class_prefix_.Set("", GetArenaForAllocation());
6144 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6145 csharp_namespace_.InitDefault();
6146 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6147   csharp_namespace_.Set("", GetArenaForAllocation());
6148 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6149 swift_prefix_.InitDefault();
6150 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6151   swift_prefix_.Set("", GetArenaForAllocation());
6152 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6153 php_class_prefix_.InitDefault();
6154 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6155   php_class_prefix_.Set("", GetArenaForAllocation());
6156 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6157 php_namespace_.InitDefault();
6158 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6159   php_namespace_.Set("", GetArenaForAllocation());
6160 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6161 php_metadata_namespace_.InitDefault();
6162 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6163   php_metadata_namespace_.Set("", GetArenaForAllocation());
6164 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6165 ruby_package_.InitDefault();
6166 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6167   ruby_package_.Set("", GetArenaForAllocation());
6168 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6169 ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
6170     reinterpret_cast<char*>(&java_multiple_files_) - reinterpret_cast<char*>(this)),
6171     0, static_cast<size_t>(reinterpret_cast<char*>(&deprecated_) -
6172     reinterpret_cast<char*>(&java_multiple_files_)) + sizeof(deprecated_));
6173 optimize_for_ = 1;
6174 cc_enable_arenas_ = true;
6175 }
6176 
~FileOptions()6177 FileOptions::~FileOptions() {
6178   // @@protoc_insertion_point(destructor:google.protobuf.FileOptions)
6179   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
6180   (void)arena;
6181     return;
6182   }
6183   SharedDtor();
6184 }
6185 
SharedDtor()6186 inline void FileOptions::SharedDtor() {
6187   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
6188   java_package_.Destroy();
6189   java_outer_classname_.Destroy();
6190   go_package_.Destroy();
6191   objc_class_prefix_.Destroy();
6192   csharp_namespace_.Destroy();
6193   swift_prefix_.Destroy();
6194   php_class_prefix_.Destroy();
6195   php_namespace_.Destroy();
6196   php_metadata_namespace_.Destroy();
6197   ruby_package_.Destroy();
6198 }
6199 
SetCachedSize(int size) const6200 void FileOptions::SetCachedSize(int size) const {
6201   _cached_size_.Set(size);
6202 }
6203 
Clear()6204 void FileOptions::Clear() {
6205 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileOptions)
6206   uint32_t cached_has_bits = 0;
6207   // Prevent compiler warnings about cached_has_bits being unused
6208   (void) cached_has_bits;
6209 
6210   _extensions_.Clear();
6211   uninterpreted_option_.Clear();
6212   cached_has_bits = _has_bits_[0];
6213   if (cached_has_bits & 0x000000ffu) {
6214     if (cached_has_bits & 0x00000001u) {
6215       java_package_.ClearNonDefaultToEmpty();
6216     }
6217     if (cached_has_bits & 0x00000002u) {
6218       java_outer_classname_.ClearNonDefaultToEmpty();
6219     }
6220     if (cached_has_bits & 0x00000004u) {
6221       go_package_.ClearNonDefaultToEmpty();
6222     }
6223     if (cached_has_bits & 0x00000008u) {
6224       objc_class_prefix_.ClearNonDefaultToEmpty();
6225     }
6226     if (cached_has_bits & 0x00000010u) {
6227       csharp_namespace_.ClearNonDefaultToEmpty();
6228     }
6229     if (cached_has_bits & 0x00000020u) {
6230       swift_prefix_.ClearNonDefaultToEmpty();
6231     }
6232     if (cached_has_bits & 0x00000040u) {
6233       php_class_prefix_.ClearNonDefaultToEmpty();
6234     }
6235     if (cached_has_bits & 0x00000080u) {
6236       php_namespace_.ClearNonDefaultToEmpty();
6237     }
6238   }
6239   if (cached_has_bits & 0x00000300u) {
6240     if (cached_has_bits & 0x00000100u) {
6241       php_metadata_namespace_.ClearNonDefaultToEmpty();
6242     }
6243     if (cached_has_bits & 0x00000200u) {
6244       ruby_package_.ClearNonDefaultToEmpty();
6245     }
6246   }
6247   if (cached_has_bits & 0x0000fc00u) {
6248     ::memset(&java_multiple_files_, 0, static_cast<size_t>(
6249         reinterpret_cast<char*>(&py_generic_services_) -
6250         reinterpret_cast<char*>(&java_multiple_files_)) + sizeof(py_generic_services_));
6251   }
6252   if (cached_has_bits & 0x000f0000u) {
6253     ::memset(&php_generic_services_, 0, static_cast<size_t>(
6254         reinterpret_cast<char*>(&deprecated_) -
6255         reinterpret_cast<char*>(&php_generic_services_)) + sizeof(deprecated_));
6256     optimize_for_ = 1;
6257     cc_enable_arenas_ = true;
6258   }
6259   _has_bits_.Clear();
6260   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
6261 }
6262 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)6263 const char* FileOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
6264 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6265   _Internal::HasBits has_bits{};
6266   while (!ctx->Done(&ptr)) {
6267     uint32_t tag;
6268     ptr = ::_pbi::ReadTag(ptr, &tag);
6269     switch (tag >> 3) {
6270       // optional string java_package = 1;
6271       case 1:
6272         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
6273           auto str = _internal_mutable_java_package();
6274           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
6275           CHK_(ptr);
6276           #ifndef NDEBUG
6277           ::_pbi::VerifyUTF8(str, "google.protobuf.FileOptions.java_package");
6278           #endif  // !NDEBUG
6279         } else
6280           goto handle_unusual;
6281         continue;
6282       // optional string java_outer_classname = 8;
6283       case 8:
6284         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
6285           auto str = _internal_mutable_java_outer_classname();
6286           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
6287           CHK_(ptr);
6288           #ifndef NDEBUG
6289           ::_pbi::VerifyUTF8(str, "google.protobuf.FileOptions.java_outer_classname");
6290           #endif  // !NDEBUG
6291         } else
6292           goto handle_unusual;
6293         continue;
6294       // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
6295       case 9:
6296         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
6297           uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6298           CHK_(ptr);
6299           if (PROTOBUF_PREDICT_TRUE(::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode_IsValid(val))) {
6300             _internal_set_optimize_for(static_cast<::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode>(val));
6301           } else {
6302             ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(9, val, mutable_unknown_fields());
6303           }
6304         } else
6305           goto handle_unusual;
6306         continue;
6307       // optional bool java_multiple_files = 10 [default = false];
6308       case 10:
6309         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
6310           _Internal::set_has_java_multiple_files(&has_bits);
6311           java_multiple_files_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6312           CHK_(ptr);
6313         } else
6314           goto handle_unusual;
6315         continue;
6316       // optional string go_package = 11;
6317       case 11:
6318         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90)) {
6319           auto str = _internal_mutable_go_package();
6320           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
6321           CHK_(ptr);
6322           #ifndef NDEBUG
6323           ::_pbi::VerifyUTF8(str, "google.protobuf.FileOptions.go_package");
6324           #endif  // !NDEBUG
6325         } else
6326           goto handle_unusual;
6327         continue;
6328       // optional bool cc_generic_services = 16 [default = false];
6329       case 16:
6330         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128)) {
6331           _Internal::set_has_cc_generic_services(&has_bits);
6332           cc_generic_services_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6333           CHK_(ptr);
6334         } else
6335           goto handle_unusual;
6336         continue;
6337       // optional bool java_generic_services = 17 [default = false];
6338       case 17:
6339         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 136)) {
6340           _Internal::set_has_java_generic_services(&has_bits);
6341           java_generic_services_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6342           CHK_(ptr);
6343         } else
6344           goto handle_unusual;
6345         continue;
6346       // optional bool py_generic_services = 18 [default = false];
6347       case 18:
6348         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144)) {
6349           _Internal::set_has_py_generic_services(&has_bits);
6350           py_generic_services_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6351           CHK_(ptr);
6352         } else
6353           goto handle_unusual;
6354         continue;
6355       // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
6356       case 20:
6357         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 160)) {
6358           _Internal::set_has_java_generate_equals_and_hash(&has_bits);
6359           java_generate_equals_and_hash_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6360           CHK_(ptr);
6361         } else
6362           goto handle_unusual;
6363         continue;
6364       // optional bool deprecated = 23 [default = false];
6365       case 23:
6366         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 184)) {
6367           _Internal::set_has_deprecated(&has_bits);
6368           deprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6369           CHK_(ptr);
6370         } else
6371           goto handle_unusual;
6372         continue;
6373       // optional bool java_string_check_utf8 = 27 [default = false];
6374       case 27:
6375         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 216)) {
6376           _Internal::set_has_java_string_check_utf8(&has_bits);
6377           java_string_check_utf8_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6378           CHK_(ptr);
6379         } else
6380           goto handle_unusual;
6381         continue;
6382       // optional bool cc_enable_arenas = 31 [default = true];
6383       case 31:
6384         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 248)) {
6385           _Internal::set_has_cc_enable_arenas(&has_bits);
6386           cc_enable_arenas_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6387           CHK_(ptr);
6388         } else
6389           goto handle_unusual;
6390         continue;
6391       // optional string objc_class_prefix = 36;
6392       case 36:
6393         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
6394           auto str = _internal_mutable_objc_class_prefix();
6395           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
6396           CHK_(ptr);
6397           #ifndef NDEBUG
6398           ::_pbi::VerifyUTF8(str, "google.protobuf.FileOptions.objc_class_prefix");
6399           #endif  // !NDEBUG
6400         } else
6401           goto handle_unusual;
6402         continue;
6403       // optional string csharp_namespace = 37;
6404       case 37:
6405         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
6406           auto str = _internal_mutable_csharp_namespace();
6407           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
6408           CHK_(ptr);
6409           #ifndef NDEBUG
6410           ::_pbi::VerifyUTF8(str, "google.protobuf.FileOptions.csharp_namespace");
6411           #endif  // !NDEBUG
6412         } else
6413           goto handle_unusual;
6414         continue;
6415       // optional string swift_prefix = 39;
6416       case 39:
6417         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
6418           auto str = _internal_mutable_swift_prefix();
6419           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
6420           CHK_(ptr);
6421           #ifndef NDEBUG
6422           ::_pbi::VerifyUTF8(str, "google.protobuf.FileOptions.swift_prefix");
6423           #endif  // !NDEBUG
6424         } else
6425           goto handle_unusual;
6426         continue;
6427       // optional string php_class_prefix = 40;
6428       case 40:
6429         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
6430           auto str = _internal_mutable_php_class_prefix();
6431           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
6432           CHK_(ptr);
6433           #ifndef NDEBUG
6434           ::_pbi::VerifyUTF8(str, "google.protobuf.FileOptions.php_class_prefix");
6435           #endif  // !NDEBUG
6436         } else
6437           goto handle_unusual;
6438         continue;
6439       // optional string php_namespace = 41;
6440       case 41:
6441         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) {
6442           auto str = _internal_mutable_php_namespace();
6443           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
6444           CHK_(ptr);
6445           #ifndef NDEBUG
6446           ::_pbi::VerifyUTF8(str, "google.protobuf.FileOptions.php_namespace");
6447           #endif  // !NDEBUG
6448         } else
6449           goto handle_unusual;
6450         continue;
6451       // optional bool php_generic_services = 42 [default = false];
6452       case 42:
6453         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
6454           _Internal::set_has_php_generic_services(&has_bits);
6455           php_generic_services_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6456           CHK_(ptr);
6457         } else
6458           goto handle_unusual;
6459         continue;
6460       // optional string php_metadata_namespace = 44;
6461       case 44:
6462         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 98)) {
6463           auto str = _internal_mutable_php_metadata_namespace();
6464           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
6465           CHK_(ptr);
6466           #ifndef NDEBUG
6467           ::_pbi::VerifyUTF8(str, "google.protobuf.FileOptions.php_metadata_namespace");
6468           #endif  // !NDEBUG
6469         } else
6470           goto handle_unusual;
6471         continue;
6472       // optional string ruby_package = 45;
6473       case 45:
6474         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 106)) {
6475           auto str = _internal_mutable_ruby_package();
6476           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
6477           CHK_(ptr);
6478           #ifndef NDEBUG
6479           ::_pbi::VerifyUTF8(str, "google.protobuf.FileOptions.ruby_package");
6480           #endif  // !NDEBUG
6481         } else
6482           goto handle_unusual;
6483         continue;
6484       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6485       case 999:
6486         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
6487           ptr -= 2;
6488           do {
6489             ptr += 2;
6490             ptr = ctx->ParseMessage(_internal_add_uninterpreted_option(), ptr);
6491             CHK_(ptr);
6492             if (!ctx->DataAvailable(ptr)) break;
6493           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<7994>(ptr));
6494         } else
6495           goto handle_unusual;
6496         continue;
6497       default:
6498         goto handle_unusual;
6499     }  // switch
6500   handle_unusual:
6501     if ((tag == 0) || ((tag & 7) == 4)) {
6502       CHK_(ptr);
6503       ctx->SetLastTag(tag);
6504       goto message_done;
6505     }
6506     if ((8000u <= tag)) {
6507       ptr = _extensions_.ParseField(tag, ptr, internal_default_instance(), &_internal_metadata_, ctx);
6508       CHK_(ptr != nullptr);
6509       continue;
6510     }
6511     ptr = UnknownFieldParse(
6512         tag,
6513         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
6514         ptr, ctx);
6515     CHK_(ptr != nullptr);
6516   }  // while
6517 message_done:
6518   _has_bits_.Or(has_bits);
6519   return ptr;
6520 failure:
6521   ptr = nullptr;
6522   goto message_done;
6523 #undef CHK_
6524 }
6525 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const6526 uint8_t* FileOptions::_InternalSerialize(
6527     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
6528   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileOptions)
6529   uint32_t cached_has_bits = 0;
6530   (void) cached_has_bits;
6531 
6532   cached_has_bits = _has_bits_[0];
6533   // optional string java_package = 1;
6534   if (cached_has_bits & 0x00000001u) {
6535     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
6536       this->_internal_java_package().data(), static_cast<int>(this->_internal_java_package().length()),
6537       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
6538       "google.protobuf.FileOptions.java_package");
6539     target = stream->WriteStringMaybeAliased(
6540         1, this->_internal_java_package(), target);
6541   }
6542 
6543   // optional string java_outer_classname = 8;
6544   if (cached_has_bits & 0x00000002u) {
6545     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
6546       this->_internal_java_outer_classname().data(), static_cast<int>(this->_internal_java_outer_classname().length()),
6547       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
6548       "google.protobuf.FileOptions.java_outer_classname");
6549     target = stream->WriteStringMaybeAliased(
6550         8, this->_internal_java_outer_classname(), target);
6551   }
6552 
6553   // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
6554   if (cached_has_bits & 0x00040000u) {
6555     target = stream->EnsureSpace(target);
6556     target = ::_pbi::WireFormatLite::WriteEnumToArray(
6557       9, this->_internal_optimize_for(), target);
6558   }
6559 
6560   // optional bool java_multiple_files = 10 [default = false];
6561   if (cached_has_bits & 0x00000400u) {
6562     target = stream->EnsureSpace(target);
6563     target = ::_pbi::WireFormatLite::WriteBoolToArray(10, this->_internal_java_multiple_files(), target);
6564   }
6565 
6566   // optional string go_package = 11;
6567   if (cached_has_bits & 0x00000004u) {
6568     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
6569       this->_internal_go_package().data(), static_cast<int>(this->_internal_go_package().length()),
6570       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
6571       "google.protobuf.FileOptions.go_package");
6572     target = stream->WriteStringMaybeAliased(
6573         11, this->_internal_go_package(), target);
6574   }
6575 
6576   // optional bool cc_generic_services = 16 [default = false];
6577   if (cached_has_bits & 0x00002000u) {
6578     target = stream->EnsureSpace(target);
6579     target = ::_pbi::WireFormatLite::WriteBoolToArray(16, this->_internal_cc_generic_services(), target);
6580   }
6581 
6582   // optional bool java_generic_services = 17 [default = false];
6583   if (cached_has_bits & 0x00004000u) {
6584     target = stream->EnsureSpace(target);
6585     target = ::_pbi::WireFormatLite::WriteBoolToArray(17, this->_internal_java_generic_services(), target);
6586   }
6587 
6588   // optional bool py_generic_services = 18 [default = false];
6589   if (cached_has_bits & 0x00008000u) {
6590     target = stream->EnsureSpace(target);
6591     target = ::_pbi::WireFormatLite::WriteBoolToArray(18, this->_internal_py_generic_services(), target);
6592   }
6593 
6594   // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
6595   if (cached_has_bits & 0x00000800u) {
6596     target = stream->EnsureSpace(target);
6597     target = ::_pbi::WireFormatLite::WriteBoolToArray(20, this->_internal_java_generate_equals_and_hash(), target);
6598   }
6599 
6600   // optional bool deprecated = 23 [default = false];
6601   if (cached_has_bits & 0x00020000u) {
6602     target = stream->EnsureSpace(target);
6603     target = ::_pbi::WireFormatLite::WriteBoolToArray(23, this->_internal_deprecated(), target);
6604   }
6605 
6606   // optional bool java_string_check_utf8 = 27 [default = false];
6607   if (cached_has_bits & 0x00001000u) {
6608     target = stream->EnsureSpace(target);
6609     target = ::_pbi::WireFormatLite::WriteBoolToArray(27, this->_internal_java_string_check_utf8(), target);
6610   }
6611 
6612   // optional bool cc_enable_arenas = 31 [default = true];
6613   if (cached_has_bits & 0x00080000u) {
6614     target = stream->EnsureSpace(target);
6615     target = ::_pbi::WireFormatLite::WriteBoolToArray(31, this->_internal_cc_enable_arenas(), target);
6616   }
6617 
6618   // optional string objc_class_prefix = 36;
6619   if (cached_has_bits & 0x00000008u) {
6620     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
6621       this->_internal_objc_class_prefix().data(), static_cast<int>(this->_internal_objc_class_prefix().length()),
6622       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
6623       "google.protobuf.FileOptions.objc_class_prefix");
6624     target = stream->WriteStringMaybeAliased(
6625         36, this->_internal_objc_class_prefix(), target);
6626   }
6627 
6628   // optional string csharp_namespace = 37;
6629   if (cached_has_bits & 0x00000010u) {
6630     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
6631       this->_internal_csharp_namespace().data(), static_cast<int>(this->_internal_csharp_namespace().length()),
6632       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
6633       "google.protobuf.FileOptions.csharp_namespace");
6634     target = stream->WriteStringMaybeAliased(
6635         37, this->_internal_csharp_namespace(), target);
6636   }
6637 
6638   // optional string swift_prefix = 39;
6639   if (cached_has_bits & 0x00000020u) {
6640     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
6641       this->_internal_swift_prefix().data(), static_cast<int>(this->_internal_swift_prefix().length()),
6642       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
6643       "google.protobuf.FileOptions.swift_prefix");
6644     target = stream->WriteStringMaybeAliased(
6645         39, this->_internal_swift_prefix(), target);
6646   }
6647 
6648   // optional string php_class_prefix = 40;
6649   if (cached_has_bits & 0x00000040u) {
6650     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
6651       this->_internal_php_class_prefix().data(), static_cast<int>(this->_internal_php_class_prefix().length()),
6652       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
6653       "google.protobuf.FileOptions.php_class_prefix");
6654     target = stream->WriteStringMaybeAliased(
6655         40, this->_internal_php_class_prefix(), target);
6656   }
6657 
6658   // optional string php_namespace = 41;
6659   if (cached_has_bits & 0x00000080u) {
6660     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
6661       this->_internal_php_namespace().data(), static_cast<int>(this->_internal_php_namespace().length()),
6662       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
6663       "google.protobuf.FileOptions.php_namespace");
6664     target = stream->WriteStringMaybeAliased(
6665         41, this->_internal_php_namespace(), target);
6666   }
6667 
6668   // optional bool php_generic_services = 42 [default = false];
6669   if (cached_has_bits & 0x00010000u) {
6670     target = stream->EnsureSpace(target);
6671     target = ::_pbi::WireFormatLite::WriteBoolToArray(42, this->_internal_php_generic_services(), target);
6672   }
6673 
6674   // optional string php_metadata_namespace = 44;
6675   if (cached_has_bits & 0x00000100u) {
6676     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
6677       this->_internal_php_metadata_namespace().data(), static_cast<int>(this->_internal_php_metadata_namespace().length()),
6678       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
6679       "google.protobuf.FileOptions.php_metadata_namespace");
6680     target = stream->WriteStringMaybeAliased(
6681         44, this->_internal_php_metadata_namespace(), target);
6682   }
6683 
6684   // optional string ruby_package = 45;
6685   if (cached_has_bits & 0x00000200u) {
6686     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
6687       this->_internal_ruby_package().data(), static_cast<int>(this->_internal_ruby_package().length()),
6688       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
6689       "google.protobuf.FileOptions.ruby_package");
6690     target = stream->WriteStringMaybeAliased(
6691         45, this->_internal_ruby_package(), target);
6692   }
6693 
6694   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6695   for (unsigned i = 0,
6696       n = static_cast<unsigned>(this->_internal_uninterpreted_option_size()); i < n; i++) {
6697     const auto& repfield = this->_internal_uninterpreted_option(i);
6698     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6699         InternalWriteMessage(999, repfield, repfield.GetCachedSize(), target, stream);
6700   }
6701 
6702   // Extension range [1000, 536870912)
6703   target = _extensions_._InternalSerialize(
6704   internal_default_instance(), 1000, 536870912, target, stream);
6705 
6706   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6707     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
6708         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
6709   }
6710   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileOptions)
6711   return target;
6712 }
6713 
ByteSizeLong() const6714 size_t FileOptions::ByteSizeLong() const {
6715 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileOptions)
6716   size_t total_size = 0;
6717 
6718   total_size += _extensions_.ByteSize();
6719 
6720   uint32_t cached_has_bits = 0;
6721   // Prevent compiler warnings about cached_has_bits being unused
6722   (void) cached_has_bits;
6723 
6724   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6725   total_size += 2UL * this->_internal_uninterpreted_option_size();
6726   for (const auto& msg : this->uninterpreted_option_) {
6727     total_size +=
6728       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
6729   }
6730 
6731   cached_has_bits = _has_bits_[0];
6732   if (cached_has_bits & 0x000000ffu) {
6733     // optional string java_package = 1;
6734     if (cached_has_bits & 0x00000001u) {
6735       total_size += 1 +
6736         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6737           this->_internal_java_package());
6738     }
6739 
6740     // optional string java_outer_classname = 8;
6741     if (cached_has_bits & 0x00000002u) {
6742       total_size += 1 +
6743         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6744           this->_internal_java_outer_classname());
6745     }
6746 
6747     // optional string go_package = 11;
6748     if (cached_has_bits & 0x00000004u) {
6749       total_size += 1 +
6750         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6751           this->_internal_go_package());
6752     }
6753 
6754     // optional string objc_class_prefix = 36;
6755     if (cached_has_bits & 0x00000008u) {
6756       total_size += 2 +
6757         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6758           this->_internal_objc_class_prefix());
6759     }
6760 
6761     // optional string csharp_namespace = 37;
6762     if (cached_has_bits & 0x00000010u) {
6763       total_size += 2 +
6764         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6765           this->_internal_csharp_namespace());
6766     }
6767 
6768     // optional string swift_prefix = 39;
6769     if (cached_has_bits & 0x00000020u) {
6770       total_size += 2 +
6771         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6772           this->_internal_swift_prefix());
6773     }
6774 
6775     // optional string php_class_prefix = 40;
6776     if (cached_has_bits & 0x00000040u) {
6777       total_size += 2 +
6778         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6779           this->_internal_php_class_prefix());
6780     }
6781 
6782     // optional string php_namespace = 41;
6783     if (cached_has_bits & 0x00000080u) {
6784       total_size += 2 +
6785         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6786           this->_internal_php_namespace());
6787     }
6788 
6789   }
6790   if (cached_has_bits & 0x0000ff00u) {
6791     // optional string php_metadata_namespace = 44;
6792     if (cached_has_bits & 0x00000100u) {
6793       total_size += 2 +
6794         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6795           this->_internal_php_metadata_namespace());
6796     }
6797 
6798     // optional string ruby_package = 45;
6799     if (cached_has_bits & 0x00000200u) {
6800       total_size += 2 +
6801         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6802           this->_internal_ruby_package());
6803     }
6804 
6805     // optional bool java_multiple_files = 10 [default = false];
6806     if (cached_has_bits & 0x00000400u) {
6807       total_size += 1 + 1;
6808     }
6809 
6810     // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
6811     if (cached_has_bits & 0x00000800u) {
6812       total_size += 2 + 1;
6813     }
6814 
6815     // optional bool java_string_check_utf8 = 27 [default = false];
6816     if (cached_has_bits & 0x00001000u) {
6817       total_size += 2 + 1;
6818     }
6819 
6820     // optional bool cc_generic_services = 16 [default = false];
6821     if (cached_has_bits & 0x00002000u) {
6822       total_size += 2 + 1;
6823     }
6824 
6825     // optional bool java_generic_services = 17 [default = false];
6826     if (cached_has_bits & 0x00004000u) {
6827       total_size += 2 + 1;
6828     }
6829 
6830     // optional bool py_generic_services = 18 [default = false];
6831     if (cached_has_bits & 0x00008000u) {
6832       total_size += 2 + 1;
6833     }
6834 
6835   }
6836   if (cached_has_bits & 0x000f0000u) {
6837     // optional bool php_generic_services = 42 [default = false];
6838     if (cached_has_bits & 0x00010000u) {
6839       total_size += 2 + 1;
6840     }
6841 
6842     // optional bool deprecated = 23 [default = false];
6843     if (cached_has_bits & 0x00020000u) {
6844       total_size += 2 + 1;
6845     }
6846 
6847     // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
6848     if (cached_has_bits & 0x00040000u) {
6849       total_size += 1 +
6850         ::_pbi::WireFormatLite::EnumSize(this->_internal_optimize_for());
6851     }
6852 
6853     // optional bool cc_enable_arenas = 31 [default = true];
6854     if (cached_has_bits & 0x00080000u) {
6855       total_size += 2 + 1;
6856     }
6857 
6858   }
6859   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
6860 }
6861 
6862 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FileOptions::_class_data_ = {
6863     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
6864     FileOptions::MergeImpl
6865 };
GetClassData() const6866 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FileOptions::GetClassData() const { return &_class_data_; }
6867 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)6868 void FileOptions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
6869                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6870   static_cast<FileOptions *>(to)->MergeFrom(
6871       static_cast<const FileOptions &>(from));
6872 }
6873 
6874 
MergeFrom(const FileOptions & from)6875 void FileOptions::MergeFrom(const FileOptions& from) {
6876 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FileOptions)
6877   GOOGLE_DCHECK_NE(&from, this);
6878   uint32_t cached_has_bits = 0;
6879   (void) cached_has_bits;
6880 
6881   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
6882   cached_has_bits = from._has_bits_[0];
6883   if (cached_has_bits & 0x000000ffu) {
6884     if (cached_has_bits & 0x00000001u) {
6885       _internal_set_java_package(from._internal_java_package());
6886     }
6887     if (cached_has_bits & 0x00000002u) {
6888       _internal_set_java_outer_classname(from._internal_java_outer_classname());
6889     }
6890     if (cached_has_bits & 0x00000004u) {
6891       _internal_set_go_package(from._internal_go_package());
6892     }
6893     if (cached_has_bits & 0x00000008u) {
6894       _internal_set_objc_class_prefix(from._internal_objc_class_prefix());
6895     }
6896     if (cached_has_bits & 0x00000010u) {
6897       _internal_set_csharp_namespace(from._internal_csharp_namespace());
6898     }
6899     if (cached_has_bits & 0x00000020u) {
6900       _internal_set_swift_prefix(from._internal_swift_prefix());
6901     }
6902     if (cached_has_bits & 0x00000040u) {
6903       _internal_set_php_class_prefix(from._internal_php_class_prefix());
6904     }
6905     if (cached_has_bits & 0x00000080u) {
6906       _internal_set_php_namespace(from._internal_php_namespace());
6907     }
6908   }
6909   if (cached_has_bits & 0x0000ff00u) {
6910     if (cached_has_bits & 0x00000100u) {
6911       _internal_set_php_metadata_namespace(from._internal_php_metadata_namespace());
6912     }
6913     if (cached_has_bits & 0x00000200u) {
6914       _internal_set_ruby_package(from._internal_ruby_package());
6915     }
6916     if (cached_has_bits & 0x00000400u) {
6917       java_multiple_files_ = from.java_multiple_files_;
6918     }
6919     if (cached_has_bits & 0x00000800u) {
6920       java_generate_equals_and_hash_ = from.java_generate_equals_and_hash_;
6921     }
6922     if (cached_has_bits & 0x00001000u) {
6923       java_string_check_utf8_ = from.java_string_check_utf8_;
6924     }
6925     if (cached_has_bits & 0x00002000u) {
6926       cc_generic_services_ = from.cc_generic_services_;
6927     }
6928     if (cached_has_bits & 0x00004000u) {
6929       java_generic_services_ = from.java_generic_services_;
6930     }
6931     if (cached_has_bits & 0x00008000u) {
6932       py_generic_services_ = from.py_generic_services_;
6933     }
6934     _has_bits_[0] |= cached_has_bits;
6935   }
6936   if (cached_has_bits & 0x000f0000u) {
6937     if (cached_has_bits & 0x00010000u) {
6938       php_generic_services_ = from.php_generic_services_;
6939     }
6940     if (cached_has_bits & 0x00020000u) {
6941       deprecated_ = from.deprecated_;
6942     }
6943     if (cached_has_bits & 0x00040000u) {
6944       optimize_for_ = from.optimize_for_;
6945     }
6946     if (cached_has_bits & 0x00080000u) {
6947       cc_enable_arenas_ = from.cc_enable_arenas_;
6948     }
6949     _has_bits_[0] |= cached_has_bits;
6950   }
6951   _extensions_.MergeFrom(internal_default_instance(), from._extensions_);
6952   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
6953 }
6954 
CopyFrom(const FileOptions & from)6955 void FileOptions::CopyFrom(const FileOptions& from) {
6956 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileOptions)
6957   if (&from == this) return;
6958   Clear();
6959   MergeFrom(from);
6960 }
6961 
IsInitialized() const6962 bool FileOptions::IsInitialized() const {
6963   if (!_extensions_.IsInitialized()) {
6964     return false;
6965   }
6966 
6967   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(uninterpreted_option_))
6968     return false;
6969   return true;
6970 }
6971 
InternalSwap(FileOptions * other)6972 void FileOptions::InternalSwap(FileOptions* other) {
6973   using std::swap;
6974   _extensions_.InternalSwap(&other->_extensions_);
6975   auto* lhs_arena = GetArenaForAllocation();
6976   auto* rhs_arena = other->GetArenaForAllocation();
6977   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6978   swap(_has_bits_[0], other->_has_bits_[0]);
6979   uninterpreted_option_.InternalSwap(&other->uninterpreted_option_);
6980   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
6981       &java_package_, lhs_arena,
6982       &other->java_package_, rhs_arena
6983   );
6984   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
6985       &java_outer_classname_, lhs_arena,
6986       &other->java_outer_classname_, rhs_arena
6987   );
6988   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
6989       &go_package_, lhs_arena,
6990       &other->go_package_, rhs_arena
6991   );
6992   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
6993       &objc_class_prefix_, lhs_arena,
6994       &other->objc_class_prefix_, rhs_arena
6995   );
6996   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
6997       &csharp_namespace_, lhs_arena,
6998       &other->csharp_namespace_, rhs_arena
6999   );
7000   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
7001       &swift_prefix_, lhs_arena,
7002       &other->swift_prefix_, rhs_arena
7003   );
7004   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
7005       &php_class_prefix_, lhs_arena,
7006       &other->php_class_prefix_, rhs_arena
7007   );
7008   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
7009       &php_namespace_, lhs_arena,
7010       &other->php_namespace_, rhs_arena
7011   );
7012   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
7013       &php_metadata_namespace_, lhs_arena,
7014       &other->php_metadata_namespace_, rhs_arena
7015   );
7016   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
7017       &ruby_package_, lhs_arena,
7018       &other->ruby_package_, rhs_arena
7019   );
7020   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
7021       PROTOBUF_FIELD_OFFSET(FileOptions, deprecated_)
7022       + sizeof(FileOptions::deprecated_)
7023       - PROTOBUF_FIELD_OFFSET(FileOptions, java_multiple_files_)>(
7024           reinterpret_cast<char*>(&java_multiple_files_),
7025           reinterpret_cast<char*>(&other->java_multiple_files_));
7026   swap(optimize_for_, other->optimize_for_);
7027   swap(cc_enable_arenas_, other->cc_enable_arenas_);
7028 }
7029 
GetMetadata() const7030 ::PROTOBUF_NAMESPACE_ID::Metadata FileOptions::GetMetadata() const {
7031   return ::_pbi::AssignDescriptors(
7032       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
7033       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[13]);
7034 }
7035 
7036 // ===================================================================
7037 
7038 class MessageOptions::_Internal {
7039  public:
7040   using HasBits = decltype(std::declval<MessageOptions>()._has_bits_);
set_has_message_set_wire_format(HasBits * has_bits)7041   static void set_has_message_set_wire_format(HasBits* has_bits) {
7042     (*has_bits)[0] |= 1u;
7043   }
set_has_no_standard_descriptor_accessor(HasBits * has_bits)7044   static void set_has_no_standard_descriptor_accessor(HasBits* has_bits) {
7045     (*has_bits)[0] |= 2u;
7046   }
set_has_deprecated(HasBits * has_bits)7047   static void set_has_deprecated(HasBits* has_bits) {
7048     (*has_bits)[0] |= 4u;
7049   }
set_has_map_entry(HasBits * has_bits)7050   static void set_has_map_entry(HasBits* has_bits) {
7051     (*has_bits)[0] |= 8u;
7052   }
7053 };
7054 
MessageOptions(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)7055 MessageOptions::MessageOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7056                          bool is_message_owned)
7057   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
7058   _extensions_(arena),
7059   uninterpreted_option_(arena) {
7060   SharedCtor();
7061   // @@protoc_insertion_point(arena_constructor:google.protobuf.MessageOptions)
7062 }
MessageOptions(const MessageOptions & from)7063 MessageOptions::MessageOptions(const MessageOptions& from)
7064   : ::PROTOBUF_NAMESPACE_ID::Message(),
7065       _has_bits_(from._has_bits_),
7066       uninterpreted_option_(from.uninterpreted_option_) {
7067   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
7068   _extensions_.MergeFrom(internal_default_instance(), from._extensions_);
7069   ::memcpy(&message_set_wire_format_, &from.message_set_wire_format_,
7070     static_cast<size_t>(reinterpret_cast<char*>(&map_entry_) -
7071     reinterpret_cast<char*>(&message_set_wire_format_)) + sizeof(map_entry_));
7072   // @@protoc_insertion_point(copy_constructor:google.protobuf.MessageOptions)
7073 }
7074 
SharedCtor()7075 inline void MessageOptions::SharedCtor() {
7076 ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
7077     reinterpret_cast<char*>(&message_set_wire_format_) - reinterpret_cast<char*>(this)),
7078     0, static_cast<size_t>(reinterpret_cast<char*>(&map_entry_) -
7079     reinterpret_cast<char*>(&message_set_wire_format_)) + sizeof(map_entry_));
7080 }
7081 
~MessageOptions()7082 MessageOptions::~MessageOptions() {
7083   // @@protoc_insertion_point(destructor:google.protobuf.MessageOptions)
7084   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
7085   (void)arena;
7086     return;
7087   }
7088   SharedDtor();
7089 }
7090 
SharedDtor()7091 inline void MessageOptions::SharedDtor() {
7092   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
7093 }
7094 
SetCachedSize(int size) const7095 void MessageOptions::SetCachedSize(int size) const {
7096   _cached_size_.Set(size);
7097 }
7098 
Clear()7099 void MessageOptions::Clear() {
7100 // @@protoc_insertion_point(message_clear_start:google.protobuf.MessageOptions)
7101   uint32_t cached_has_bits = 0;
7102   // Prevent compiler warnings about cached_has_bits being unused
7103   (void) cached_has_bits;
7104 
7105   _extensions_.Clear();
7106   uninterpreted_option_.Clear();
7107   ::memset(&message_set_wire_format_, 0, static_cast<size_t>(
7108       reinterpret_cast<char*>(&map_entry_) -
7109       reinterpret_cast<char*>(&message_set_wire_format_)) + sizeof(map_entry_));
7110   _has_bits_.Clear();
7111   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
7112 }
7113 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)7114 const char* MessageOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
7115 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7116   _Internal::HasBits has_bits{};
7117   while (!ctx->Done(&ptr)) {
7118     uint32_t tag;
7119     ptr = ::_pbi::ReadTag(ptr, &tag);
7120     switch (tag >> 3) {
7121       // optional bool message_set_wire_format = 1 [default = false];
7122       case 1:
7123         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
7124           _Internal::set_has_message_set_wire_format(&has_bits);
7125           message_set_wire_format_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7126           CHK_(ptr);
7127         } else
7128           goto handle_unusual;
7129         continue;
7130       // optional bool no_standard_descriptor_accessor = 2 [default = false];
7131       case 2:
7132         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
7133           _Internal::set_has_no_standard_descriptor_accessor(&has_bits);
7134           no_standard_descriptor_accessor_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7135           CHK_(ptr);
7136         } else
7137           goto handle_unusual;
7138         continue;
7139       // optional bool deprecated = 3 [default = false];
7140       case 3:
7141         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
7142           _Internal::set_has_deprecated(&has_bits);
7143           deprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7144           CHK_(ptr);
7145         } else
7146           goto handle_unusual;
7147         continue;
7148       // optional bool map_entry = 7;
7149       case 7:
7150         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
7151           _Internal::set_has_map_entry(&has_bits);
7152           map_entry_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7153           CHK_(ptr);
7154         } else
7155           goto handle_unusual;
7156         continue;
7157       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
7158       case 999:
7159         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
7160           ptr -= 2;
7161           do {
7162             ptr += 2;
7163             ptr = ctx->ParseMessage(_internal_add_uninterpreted_option(), ptr);
7164             CHK_(ptr);
7165             if (!ctx->DataAvailable(ptr)) break;
7166           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<7994>(ptr));
7167         } else
7168           goto handle_unusual;
7169         continue;
7170       default:
7171         goto handle_unusual;
7172     }  // switch
7173   handle_unusual:
7174     if ((tag == 0) || ((tag & 7) == 4)) {
7175       CHK_(ptr);
7176       ctx->SetLastTag(tag);
7177       goto message_done;
7178     }
7179     if ((8000u <= tag)) {
7180       ptr = _extensions_.ParseField(tag, ptr, internal_default_instance(), &_internal_metadata_, ctx);
7181       CHK_(ptr != nullptr);
7182       continue;
7183     }
7184     ptr = UnknownFieldParse(
7185         tag,
7186         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
7187         ptr, ctx);
7188     CHK_(ptr != nullptr);
7189   }  // while
7190 message_done:
7191   _has_bits_.Or(has_bits);
7192   return ptr;
7193 failure:
7194   ptr = nullptr;
7195   goto message_done;
7196 #undef CHK_
7197 }
7198 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const7199 uint8_t* MessageOptions::_InternalSerialize(
7200     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7201   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MessageOptions)
7202   uint32_t cached_has_bits = 0;
7203   (void) cached_has_bits;
7204 
7205   cached_has_bits = _has_bits_[0];
7206   // optional bool message_set_wire_format = 1 [default = false];
7207   if (cached_has_bits & 0x00000001u) {
7208     target = stream->EnsureSpace(target);
7209     target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_message_set_wire_format(), target);
7210   }
7211 
7212   // optional bool no_standard_descriptor_accessor = 2 [default = false];
7213   if (cached_has_bits & 0x00000002u) {
7214     target = stream->EnsureSpace(target);
7215     target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_no_standard_descriptor_accessor(), target);
7216   }
7217 
7218   // optional bool deprecated = 3 [default = false];
7219   if (cached_has_bits & 0x00000004u) {
7220     target = stream->EnsureSpace(target);
7221     target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_deprecated(), target);
7222   }
7223 
7224   // optional bool map_entry = 7;
7225   if (cached_has_bits & 0x00000008u) {
7226     target = stream->EnsureSpace(target);
7227     target = ::_pbi::WireFormatLite::WriteBoolToArray(7, this->_internal_map_entry(), target);
7228   }
7229 
7230   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
7231   for (unsigned i = 0,
7232       n = static_cast<unsigned>(this->_internal_uninterpreted_option_size()); i < n; i++) {
7233     const auto& repfield = this->_internal_uninterpreted_option(i);
7234     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7235         InternalWriteMessage(999, repfield, repfield.GetCachedSize(), target, stream);
7236   }
7237 
7238   // Extension range [1000, 536870912)
7239   target = _extensions_._InternalSerialize(
7240   internal_default_instance(), 1000, 536870912, target, stream);
7241 
7242   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7243     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
7244         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
7245   }
7246   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MessageOptions)
7247   return target;
7248 }
7249 
ByteSizeLong() const7250 size_t MessageOptions::ByteSizeLong() const {
7251 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MessageOptions)
7252   size_t total_size = 0;
7253 
7254   total_size += _extensions_.ByteSize();
7255 
7256   uint32_t cached_has_bits = 0;
7257   // Prevent compiler warnings about cached_has_bits being unused
7258   (void) cached_has_bits;
7259 
7260   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
7261   total_size += 2UL * this->_internal_uninterpreted_option_size();
7262   for (const auto& msg : this->uninterpreted_option_) {
7263     total_size +=
7264       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
7265   }
7266 
7267   cached_has_bits = _has_bits_[0];
7268   if (cached_has_bits & 0x0000000fu) {
7269     // optional bool message_set_wire_format = 1 [default = false];
7270     if (cached_has_bits & 0x00000001u) {
7271       total_size += 1 + 1;
7272     }
7273 
7274     // optional bool no_standard_descriptor_accessor = 2 [default = false];
7275     if (cached_has_bits & 0x00000002u) {
7276       total_size += 1 + 1;
7277     }
7278 
7279     // optional bool deprecated = 3 [default = false];
7280     if (cached_has_bits & 0x00000004u) {
7281       total_size += 1 + 1;
7282     }
7283 
7284     // optional bool map_entry = 7;
7285     if (cached_has_bits & 0x00000008u) {
7286       total_size += 1 + 1;
7287     }
7288 
7289   }
7290   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
7291 }
7292 
7293 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOptions::_class_data_ = {
7294     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
7295     MessageOptions::MergeImpl
7296 };
GetClassData() const7297 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MessageOptions::GetClassData() const { return &_class_data_; }
7298 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)7299 void MessageOptions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
7300                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7301   static_cast<MessageOptions *>(to)->MergeFrom(
7302       static_cast<const MessageOptions &>(from));
7303 }
7304 
7305 
MergeFrom(const MessageOptions & from)7306 void MessageOptions::MergeFrom(const MessageOptions& from) {
7307 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.MessageOptions)
7308   GOOGLE_DCHECK_NE(&from, this);
7309   uint32_t cached_has_bits = 0;
7310   (void) cached_has_bits;
7311 
7312   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
7313   cached_has_bits = from._has_bits_[0];
7314   if (cached_has_bits & 0x0000000fu) {
7315     if (cached_has_bits & 0x00000001u) {
7316       message_set_wire_format_ = from.message_set_wire_format_;
7317     }
7318     if (cached_has_bits & 0x00000002u) {
7319       no_standard_descriptor_accessor_ = from.no_standard_descriptor_accessor_;
7320     }
7321     if (cached_has_bits & 0x00000004u) {
7322       deprecated_ = from.deprecated_;
7323     }
7324     if (cached_has_bits & 0x00000008u) {
7325       map_entry_ = from.map_entry_;
7326     }
7327     _has_bits_[0] |= cached_has_bits;
7328   }
7329   _extensions_.MergeFrom(internal_default_instance(), from._extensions_);
7330   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
7331 }
7332 
CopyFrom(const MessageOptions & from)7333 void MessageOptions::CopyFrom(const MessageOptions& from) {
7334 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.MessageOptions)
7335   if (&from == this) return;
7336   Clear();
7337   MergeFrom(from);
7338 }
7339 
IsInitialized() const7340 bool MessageOptions::IsInitialized() const {
7341   if (!_extensions_.IsInitialized()) {
7342     return false;
7343   }
7344 
7345   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(uninterpreted_option_))
7346     return false;
7347   return true;
7348 }
7349 
InternalSwap(MessageOptions * other)7350 void MessageOptions::InternalSwap(MessageOptions* other) {
7351   using std::swap;
7352   _extensions_.InternalSwap(&other->_extensions_);
7353   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7354   swap(_has_bits_[0], other->_has_bits_[0]);
7355   uninterpreted_option_.InternalSwap(&other->uninterpreted_option_);
7356   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
7357       PROTOBUF_FIELD_OFFSET(MessageOptions, map_entry_)
7358       + sizeof(MessageOptions::map_entry_)
7359       - PROTOBUF_FIELD_OFFSET(MessageOptions, message_set_wire_format_)>(
7360           reinterpret_cast<char*>(&message_set_wire_format_),
7361           reinterpret_cast<char*>(&other->message_set_wire_format_));
7362 }
7363 
GetMetadata() const7364 ::PROTOBUF_NAMESPACE_ID::Metadata MessageOptions::GetMetadata() const {
7365   return ::_pbi::AssignDescriptors(
7366       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
7367       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[14]);
7368 }
7369 
7370 // ===================================================================
7371 
7372 class FieldOptions::_Internal {
7373  public:
7374   using HasBits = decltype(std::declval<FieldOptions>()._has_bits_);
set_has_ctype(HasBits * has_bits)7375   static void set_has_ctype(HasBits* has_bits) {
7376     (*has_bits)[0] |= 1u;
7377   }
set_has_packed(HasBits * has_bits)7378   static void set_has_packed(HasBits* has_bits) {
7379     (*has_bits)[0] |= 4u;
7380   }
set_has_jstype(HasBits * has_bits)7381   static void set_has_jstype(HasBits* has_bits) {
7382     (*has_bits)[0] |= 2u;
7383   }
set_has_lazy(HasBits * has_bits)7384   static void set_has_lazy(HasBits* has_bits) {
7385     (*has_bits)[0] |= 8u;
7386   }
set_has_unverified_lazy(HasBits * has_bits)7387   static void set_has_unverified_lazy(HasBits* has_bits) {
7388     (*has_bits)[0] |= 16u;
7389   }
set_has_deprecated(HasBits * has_bits)7390   static void set_has_deprecated(HasBits* has_bits) {
7391     (*has_bits)[0] |= 32u;
7392   }
set_has_weak(HasBits * has_bits)7393   static void set_has_weak(HasBits* has_bits) {
7394     (*has_bits)[0] |= 64u;
7395   }
7396 };
7397 
FieldOptions(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)7398 FieldOptions::FieldOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7399                          bool is_message_owned)
7400   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
7401   _extensions_(arena),
7402   uninterpreted_option_(arena) {
7403   SharedCtor();
7404   // @@protoc_insertion_point(arena_constructor:google.protobuf.FieldOptions)
7405 }
FieldOptions(const FieldOptions & from)7406 FieldOptions::FieldOptions(const FieldOptions& from)
7407   : ::PROTOBUF_NAMESPACE_ID::Message(),
7408       _has_bits_(from._has_bits_),
7409       uninterpreted_option_(from.uninterpreted_option_) {
7410   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
7411   _extensions_.MergeFrom(internal_default_instance(), from._extensions_);
7412   ::memcpy(&ctype_, &from.ctype_,
7413     static_cast<size_t>(reinterpret_cast<char*>(&weak_) -
7414     reinterpret_cast<char*>(&ctype_)) + sizeof(weak_));
7415   // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldOptions)
7416 }
7417 
SharedCtor()7418 inline void FieldOptions::SharedCtor() {
7419 ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
7420     reinterpret_cast<char*>(&ctype_) - reinterpret_cast<char*>(this)),
7421     0, static_cast<size_t>(reinterpret_cast<char*>(&weak_) -
7422     reinterpret_cast<char*>(&ctype_)) + sizeof(weak_));
7423 }
7424 
~FieldOptions()7425 FieldOptions::~FieldOptions() {
7426   // @@protoc_insertion_point(destructor:google.protobuf.FieldOptions)
7427   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
7428   (void)arena;
7429     return;
7430   }
7431   SharedDtor();
7432 }
7433 
SharedDtor()7434 inline void FieldOptions::SharedDtor() {
7435   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
7436 }
7437 
SetCachedSize(int size) const7438 void FieldOptions::SetCachedSize(int size) const {
7439   _cached_size_.Set(size);
7440 }
7441 
Clear()7442 void FieldOptions::Clear() {
7443 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldOptions)
7444   uint32_t cached_has_bits = 0;
7445   // Prevent compiler warnings about cached_has_bits being unused
7446   (void) cached_has_bits;
7447 
7448   _extensions_.Clear();
7449   uninterpreted_option_.Clear();
7450   cached_has_bits = _has_bits_[0];
7451   if (cached_has_bits & 0x0000007fu) {
7452     ::memset(&ctype_, 0, static_cast<size_t>(
7453         reinterpret_cast<char*>(&weak_) -
7454         reinterpret_cast<char*>(&ctype_)) + sizeof(weak_));
7455   }
7456   _has_bits_.Clear();
7457   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
7458 }
7459 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)7460 const char* FieldOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
7461 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7462   _Internal::HasBits has_bits{};
7463   while (!ctx->Done(&ptr)) {
7464     uint32_t tag;
7465     ptr = ::_pbi::ReadTag(ptr, &tag);
7466     switch (tag >> 3) {
7467       // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
7468       case 1:
7469         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
7470           uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7471           CHK_(ptr);
7472           if (PROTOBUF_PREDICT_TRUE(::PROTOBUF_NAMESPACE_ID::FieldOptions_CType_IsValid(val))) {
7473             _internal_set_ctype(static_cast<::PROTOBUF_NAMESPACE_ID::FieldOptions_CType>(val));
7474           } else {
7475             ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
7476           }
7477         } else
7478           goto handle_unusual;
7479         continue;
7480       // optional bool packed = 2;
7481       case 2:
7482         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
7483           _Internal::set_has_packed(&has_bits);
7484           packed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7485           CHK_(ptr);
7486         } else
7487           goto handle_unusual;
7488         continue;
7489       // optional bool deprecated = 3 [default = false];
7490       case 3:
7491         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
7492           _Internal::set_has_deprecated(&has_bits);
7493           deprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7494           CHK_(ptr);
7495         } else
7496           goto handle_unusual;
7497         continue;
7498       // optional bool lazy = 5 [default = false];
7499       case 5:
7500         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
7501           _Internal::set_has_lazy(&has_bits);
7502           lazy_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7503           CHK_(ptr);
7504         } else
7505           goto handle_unusual;
7506         continue;
7507       // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
7508       case 6:
7509         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
7510           uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7511           CHK_(ptr);
7512           if (PROTOBUF_PREDICT_TRUE(::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType_IsValid(val))) {
7513             _internal_set_jstype(static_cast<::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType>(val));
7514           } else {
7515             ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(6, val, mutable_unknown_fields());
7516           }
7517         } else
7518           goto handle_unusual;
7519         continue;
7520       // optional bool weak = 10 [default = false];
7521       case 10:
7522         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
7523           _Internal::set_has_weak(&has_bits);
7524           weak_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7525           CHK_(ptr);
7526         } else
7527           goto handle_unusual;
7528         continue;
7529       // optional bool unverified_lazy = 15 [default = false];
7530       case 15:
7531         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120)) {
7532           _Internal::set_has_unverified_lazy(&has_bits);
7533           unverified_lazy_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7534           CHK_(ptr);
7535         } else
7536           goto handle_unusual;
7537         continue;
7538       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
7539       case 999:
7540         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
7541           ptr -= 2;
7542           do {
7543             ptr += 2;
7544             ptr = ctx->ParseMessage(_internal_add_uninterpreted_option(), ptr);
7545             CHK_(ptr);
7546             if (!ctx->DataAvailable(ptr)) break;
7547           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<7994>(ptr));
7548         } else
7549           goto handle_unusual;
7550         continue;
7551       default:
7552         goto handle_unusual;
7553     }  // switch
7554   handle_unusual:
7555     if ((tag == 0) || ((tag & 7) == 4)) {
7556       CHK_(ptr);
7557       ctx->SetLastTag(tag);
7558       goto message_done;
7559     }
7560     if ((8000u <= tag)) {
7561       ptr = _extensions_.ParseField(tag, ptr, internal_default_instance(), &_internal_metadata_, ctx);
7562       CHK_(ptr != nullptr);
7563       continue;
7564     }
7565     ptr = UnknownFieldParse(
7566         tag,
7567         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
7568         ptr, ctx);
7569     CHK_(ptr != nullptr);
7570   }  // while
7571 message_done:
7572   _has_bits_.Or(has_bits);
7573   return ptr;
7574 failure:
7575   ptr = nullptr;
7576   goto message_done;
7577 #undef CHK_
7578 }
7579 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const7580 uint8_t* FieldOptions::_InternalSerialize(
7581     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7582   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldOptions)
7583   uint32_t cached_has_bits = 0;
7584   (void) cached_has_bits;
7585 
7586   cached_has_bits = _has_bits_[0];
7587   // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
7588   if (cached_has_bits & 0x00000001u) {
7589     target = stream->EnsureSpace(target);
7590     target = ::_pbi::WireFormatLite::WriteEnumToArray(
7591       1, this->_internal_ctype(), target);
7592   }
7593 
7594   // optional bool packed = 2;
7595   if (cached_has_bits & 0x00000004u) {
7596     target = stream->EnsureSpace(target);
7597     target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_packed(), target);
7598   }
7599 
7600   // optional bool deprecated = 3 [default = false];
7601   if (cached_has_bits & 0x00000020u) {
7602     target = stream->EnsureSpace(target);
7603     target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_deprecated(), target);
7604   }
7605 
7606   // optional bool lazy = 5 [default = false];
7607   if (cached_has_bits & 0x00000008u) {
7608     target = stream->EnsureSpace(target);
7609     target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_lazy(), target);
7610   }
7611 
7612   // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
7613   if (cached_has_bits & 0x00000002u) {
7614     target = stream->EnsureSpace(target);
7615     target = ::_pbi::WireFormatLite::WriteEnumToArray(
7616       6, this->_internal_jstype(), target);
7617   }
7618 
7619   // optional bool weak = 10 [default = false];
7620   if (cached_has_bits & 0x00000040u) {
7621     target = stream->EnsureSpace(target);
7622     target = ::_pbi::WireFormatLite::WriteBoolToArray(10, this->_internal_weak(), target);
7623   }
7624 
7625   // optional bool unverified_lazy = 15 [default = false];
7626   if (cached_has_bits & 0x00000010u) {
7627     target = stream->EnsureSpace(target);
7628     target = ::_pbi::WireFormatLite::WriteBoolToArray(15, this->_internal_unverified_lazy(), target);
7629   }
7630 
7631   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
7632   for (unsigned i = 0,
7633       n = static_cast<unsigned>(this->_internal_uninterpreted_option_size()); i < n; i++) {
7634     const auto& repfield = this->_internal_uninterpreted_option(i);
7635     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7636         InternalWriteMessage(999, repfield, repfield.GetCachedSize(), target, stream);
7637   }
7638 
7639   // Extension range [1000, 536870912)
7640   target = _extensions_._InternalSerialize(
7641   internal_default_instance(), 1000, 536870912, target, stream);
7642 
7643   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7644     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
7645         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
7646   }
7647   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldOptions)
7648   return target;
7649 }
7650 
ByteSizeLong() const7651 size_t FieldOptions::ByteSizeLong() const {
7652 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldOptions)
7653   size_t total_size = 0;
7654 
7655   total_size += _extensions_.ByteSize();
7656 
7657   uint32_t cached_has_bits = 0;
7658   // Prevent compiler warnings about cached_has_bits being unused
7659   (void) cached_has_bits;
7660 
7661   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
7662   total_size += 2UL * this->_internal_uninterpreted_option_size();
7663   for (const auto& msg : this->uninterpreted_option_) {
7664     total_size +=
7665       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
7666   }
7667 
7668   cached_has_bits = _has_bits_[0];
7669   if (cached_has_bits & 0x0000007fu) {
7670     // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
7671     if (cached_has_bits & 0x00000001u) {
7672       total_size += 1 +
7673         ::_pbi::WireFormatLite::EnumSize(this->_internal_ctype());
7674     }
7675 
7676     // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
7677     if (cached_has_bits & 0x00000002u) {
7678       total_size += 1 +
7679         ::_pbi::WireFormatLite::EnumSize(this->_internal_jstype());
7680     }
7681 
7682     // optional bool packed = 2;
7683     if (cached_has_bits & 0x00000004u) {
7684       total_size += 1 + 1;
7685     }
7686 
7687     // optional bool lazy = 5 [default = false];
7688     if (cached_has_bits & 0x00000008u) {
7689       total_size += 1 + 1;
7690     }
7691 
7692     // optional bool unverified_lazy = 15 [default = false];
7693     if (cached_has_bits & 0x00000010u) {
7694       total_size += 1 + 1;
7695     }
7696 
7697     // optional bool deprecated = 3 [default = false];
7698     if (cached_has_bits & 0x00000020u) {
7699       total_size += 1 + 1;
7700     }
7701 
7702     // optional bool weak = 10 [default = false];
7703     if (cached_has_bits & 0x00000040u) {
7704       total_size += 1 + 1;
7705     }
7706 
7707   }
7708   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
7709 }
7710 
7711 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FieldOptions::_class_data_ = {
7712     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
7713     FieldOptions::MergeImpl
7714 };
GetClassData() const7715 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FieldOptions::GetClassData() const { return &_class_data_; }
7716 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)7717 void FieldOptions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
7718                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7719   static_cast<FieldOptions *>(to)->MergeFrom(
7720       static_cast<const FieldOptions &>(from));
7721 }
7722 
7723 
MergeFrom(const FieldOptions & from)7724 void FieldOptions::MergeFrom(const FieldOptions& from) {
7725 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FieldOptions)
7726   GOOGLE_DCHECK_NE(&from, this);
7727   uint32_t cached_has_bits = 0;
7728   (void) cached_has_bits;
7729 
7730   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
7731   cached_has_bits = from._has_bits_[0];
7732   if (cached_has_bits & 0x0000007fu) {
7733     if (cached_has_bits & 0x00000001u) {
7734       ctype_ = from.ctype_;
7735     }
7736     if (cached_has_bits & 0x00000002u) {
7737       jstype_ = from.jstype_;
7738     }
7739     if (cached_has_bits & 0x00000004u) {
7740       packed_ = from.packed_;
7741     }
7742     if (cached_has_bits & 0x00000008u) {
7743       lazy_ = from.lazy_;
7744     }
7745     if (cached_has_bits & 0x00000010u) {
7746       unverified_lazy_ = from.unverified_lazy_;
7747     }
7748     if (cached_has_bits & 0x00000020u) {
7749       deprecated_ = from.deprecated_;
7750     }
7751     if (cached_has_bits & 0x00000040u) {
7752       weak_ = from.weak_;
7753     }
7754     _has_bits_[0] |= cached_has_bits;
7755   }
7756   _extensions_.MergeFrom(internal_default_instance(), from._extensions_);
7757   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
7758 }
7759 
CopyFrom(const FieldOptions & from)7760 void FieldOptions::CopyFrom(const FieldOptions& from) {
7761 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FieldOptions)
7762   if (&from == this) return;
7763   Clear();
7764   MergeFrom(from);
7765 }
7766 
IsInitialized() const7767 bool FieldOptions::IsInitialized() const {
7768   if (!_extensions_.IsInitialized()) {
7769     return false;
7770   }
7771 
7772   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(uninterpreted_option_))
7773     return false;
7774   return true;
7775 }
7776 
InternalSwap(FieldOptions * other)7777 void FieldOptions::InternalSwap(FieldOptions* other) {
7778   using std::swap;
7779   _extensions_.InternalSwap(&other->_extensions_);
7780   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7781   swap(_has_bits_[0], other->_has_bits_[0]);
7782   uninterpreted_option_.InternalSwap(&other->uninterpreted_option_);
7783   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
7784       PROTOBUF_FIELD_OFFSET(FieldOptions, weak_)
7785       + sizeof(FieldOptions::weak_)
7786       - PROTOBUF_FIELD_OFFSET(FieldOptions, ctype_)>(
7787           reinterpret_cast<char*>(&ctype_),
7788           reinterpret_cast<char*>(&other->ctype_));
7789 }
7790 
GetMetadata() const7791 ::PROTOBUF_NAMESPACE_ID::Metadata FieldOptions::GetMetadata() const {
7792   return ::_pbi::AssignDescriptors(
7793       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
7794       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[15]);
7795 }
7796 
7797 // ===================================================================
7798 
7799 class OneofOptions::_Internal {
7800  public:
7801 };
7802 
OneofOptions(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)7803 OneofOptions::OneofOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7804                          bool is_message_owned)
7805   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
7806   _extensions_(arena),
7807   uninterpreted_option_(arena) {
7808   SharedCtor();
7809   // @@protoc_insertion_point(arena_constructor:google.protobuf.OneofOptions)
7810 }
OneofOptions(const OneofOptions & from)7811 OneofOptions::OneofOptions(const OneofOptions& from)
7812   : ::PROTOBUF_NAMESPACE_ID::Message(),
7813       uninterpreted_option_(from.uninterpreted_option_) {
7814   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
7815   _extensions_.MergeFrom(internal_default_instance(), from._extensions_);
7816   // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofOptions)
7817 }
7818 
SharedCtor()7819 inline void OneofOptions::SharedCtor() {
7820 }
7821 
~OneofOptions()7822 OneofOptions::~OneofOptions() {
7823   // @@protoc_insertion_point(destructor:google.protobuf.OneofOptions)
7824   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
7825   (void)arena;
7826     return;
7827   }
7828   SharedDtor();
7829 }
7830 
SharedDtor()7831 inline void OneofOptions::SharedDtor() {
7832   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
7833 }
7834 
SetCachedSize(int size) const7835 void OneofOptions::SetCachedSize(int size) const {
7836   _cached_size_.Set(size);
7837 }
7838 
Clear()7839 void OneofOptions::Clear() {
7840 // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofOptions)
7841   uint32_t cached_has_bits = 0;
7842   // Prevent compiler warnings about cached_has_bits being unused
7843   (void) cached_has_bits;
7844 
7845   _extensions_.Clear();
7846   uninterpreted_option_.Clear();
7847   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
7848 }
7849 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)7850 const char* OneofOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
7851 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7852   while (!ctx->Done(&ptr)) {
7853     uint32_t tag;
7854     ptr = ::_pbi::ReadTag(ptr, &tag);
7855     switch (tag >> 3) {
7856       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
7857       case 999:
7858         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
7859           ptr -= 2;
7860           do {
7861             ptr += 2;
7862             ptr = ctx->ParseMessage(_internal_add_uninterpreted_option(), ptr);
7863             CHK_(ptr);
7864             if (!ctx->DataAvailable(ptr)) break;
7865           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<7994>(ptr));
7866         } else
7867           goto handle_unusual;
7868         continue;
7869       default:
7870         goto handle_unusual;
7871     }  // switch
7872   handle_unusual:
7873     if ((tag == 0) || ((tag & 7) == 4)) {
7874       CHK_(ptr);
7875       ctx->SetLastTag(tag);
7876       goto message_done;
7877     }
7878     if ((8000u <= tag)) {
7879       ptr = _extensions_.ParseField(tag, ptr, internal_default_instance(), &_internal_metadata_, ctx);
7880       CHK_(ptr != nullptr);
7881       continue;
7882     }
7883     ptr = UnknownFieldParse(
7884         tag,
7885         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
7886         ptr, ctx);
7887     CHK_(ptr != nullptr);
7888   }  // while
7889 message_done:
7890   return ptr;
7891 failure:
7892   ptr = nullptr;
7893   goto message_done;
7894 #undef CHK_
7895 }
7896 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const7897 uint8_t* OneofOptions::_InternalSerialize(
7898     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7899   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofOptions)
7900   uint32_t cached_has_bits = 0;
7901   (void) cached_has_bits;
7902 
7903   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
7904   for (unsigned i = 0,
7905       n = static_cast<unsigned>(this->_internal_uninterpreted_option_size()); i < n; i++) {
7906     const auto& repfield = this->_internal_uninterpreted_option(i);
7907     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7908         InternalWriteMessage(999, repfield, repfield.GetCachedSize(), target, stream);
7909   }
7910 
7911   // Extension range [1000, 536870912)
7912   target = _extensions_._InternalSerialize(
7913   internal_default_instance(), 1000, 536870912, target, stream);
7914 
7915   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7916     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
7917         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
7918   }
7919   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofOptions)
7920   return target;
7921 }
7922 
ByteSizeLong() const7923 size_t OneofOptions::ByteSizeLong() const {
7924 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofOptions)
7925   size_t total_size = 0;
7926 
7927   total_size += _extensions_.ByteSize();
7928 
7929   uint32_t cached_has_bits = 0;
7930   // Prevent compiler warnings about cached_has_bits being unused
7931   (void) cached_has_bits;
7932 
7933   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
7934   total_size += 2UL * this->_internal_uninterpreted_option_size();
7935   for (const auto& msg : this->uninterpreted_option_) {
7936     total_size +=
7937       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
7938   }
7939 
7940   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
7941 }
7942 
7943 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OneofOptions::_class_data_ = {
7944     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
7945     OneofOptions::MergeImpl
7946 };
GetClassData() const7947 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OneofOptions::GetClassData() const { return &_class_data_; }
7948 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)7949 void OneofOptions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
7950                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7951   static_cast<OneofOptions *>(to)->MergeFrom(
7952       static_cast<const OneofOptions &>(from));
7953 }
7954 
7955 
MergeFrom(const OneofOptions & from)7956 void OneofOptions::MergeFrom(const OneofOptions& from) {
7957 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.OneofOptions)
7958   GOOGLE_DCHECK_NE(&from, this);
7959   uint32_t cached_has_bits = 0;
7960   (void) cached_has_bits;
7961 
7962   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
7963   _extensions_.MergeFrom(internal_default_instance(), from._extensions_);
7964   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
7965 }
7966 
CopyFrom(const OneofOptions & from)7967 void OneofOptions::CopyFrom(const OneofOptions& from) {
7968 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.OneofOptions)
7969   if (&from == this) return;
7970   Clear();
7971   MergeFrom(from);
7972 }
7973 
IsInitialized() const7974 bool OneofOptions::IsInitialized() const {
7975   if (!_extensions_.IsInitialized()) {
7976     return false;
7977   }
7978 
7979   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(uninterpreted_option_))
7980     return false;
7981   return true;
7982 }
7983 
InternalSwap(OneofOptions * other)7984 void OneofOptions::InternalSwap(OneofOptions* other) {
7985   using std::swap;
7986   _extensions_.InternalSwap(&other->_extensions_);
7987   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7988   uninterpreted_option_.InternalSwap(&other->uninterpreted_option_);
7989 }
7990 
GetMetadata() const7991 ::PROTOBUF_NAMESPACE_ID::Metadata OneofOptions::GetMetadata() const {
7992   return ::_pbi::AssignDescriptors(
7993       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
7994       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[16]);
7995 }
7996 
7997 // ===================================================================
7998 
7999 class EnumOptions::_Internal {
8000  public:
8001   using HasBits = decltype(std::declval<EnumOptions>()._has_bits_);
set_has_allow_alias(HasBits * has_bits)8002   static void set_has_allow_alias(HasBits* has_bits) {
8003     (*has_bits)[0] |= 1u;
8004   }
set_has_deprecated(HasBits * has_bits)8005   static void set_has_deprecated(HasBits* has_bits) {
8006     (*has_bits)[0] |= 2u;
8007   }
8008 };
8009 
EnumOptions(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)8010 EnumOptions::EnumOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8011                          bool is_message_owned)
8012   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
8013   _extensions_(arena),
8014   uninterpreted_option_(arena) {
8015   SharedCtor();
8016   // @@protoc_insertion_point(arena_constructor:google.protobuf.EnumOptions)
8017 }
EnumOptions(const EnumOptions & from)8018 EnumOptions::EnumOptions(const EnumOptions& from)
8019   : ::PROTOBUF_NAMESPACE_ID::Message(),
8020       _has_bits_(from._has_bits_),
8021       uninterpreted_option_(from.uninterpreted_option_) {
8022   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
8023   _extensions_.MergeFrom(internal_default_instance(), from._extensions_);
8024   ::memcpy(&allow_alias_, &from.allow_alias_,
8025     static_cast<size_t>(reinterpret_cast<char*>(&deprecated_) -
8026     reinterpret_cast<char*>(&allow_alias_)) + sizeof(deprecated_));
8027   // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumOptions)
8028 }
8029 
SharedCtor()8030 inline void EnumOptions::SharedCtor() {
8031 ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
8032     reinterpret_cast<char*>(&allow_alias_) - reinterpret_cast<char*>(this)),
8033     0, static_cast<size_t>(reinterpret_cast<char*>(&deprecated_) -
8034     reinterpret_cast<char*>(&allow_alias_)) + sizeof(deprecated_));
8035 }
8036 
~EnumOptions()8037 EnumOptions::~EnumOptions() {
8038   // @@protoc_insertion_point(destructor:google.protobuf.EnumOptions)
8039   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
8040   (void)arena;
8041     return;
8042   }
8043   SharedDtor();
8044 }
8045 
SharedDtor()8046 inline void EnumOptions::SharedDtor() {
8047   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
8048 }
8049 
SetCachedSize(int size) const8050 void EnumOptions::SetCachedSize(int size) const {
8051   _cached_size_.Set(size);
8052 }
8053 
Clear()8054 void EnumOptions::Clear() {
8055 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumOptions)
8056   uint32_t cached_has_bits = 0;
8057   // Prevent compiler warnings about cached_has_bits being unused
8058   (void) cached_has_bits;
8059 
8060   _extensions_.Clear();
8061   uninterpreted_option_.Clear();
8062   ::memset(&allow_alias_, 0, static_cast<size_t>(
8063       reinterpret_cast<char*>(&deprecated_) -
8064       reinterpret_cast<char*>(&allow_alias_)) + sizeof(deprecated_));
8065   _has_bits_.Clear();
8066   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
8067 }
8068 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)8069 const char* EnumOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
8070 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8071   _Internal::HasBits has_bits{};
8072   while (!ctx->Done(&ptr)) {
8073     uint32_t tag;
8074     ptr = ::_pbi::ReadTag(ptr, &tag);
8075     switch (tag >> 3) {
8076       // optional bool allow_alias = 2;
8077       case 2:
8078         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
8079           _Internal::set_has_allow_alias(&has_bits);
8080           allow_alias_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8081           CHK_(ptr);
8082         } else
8083           goto handle_unusual;
8084         continue;
8085       // optional bool deprecated = 3 [default = false];
8086       case 3:
8087         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
8088           _Internal::set_has_deprecated(&has_bits);
8089           deprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8090           CHK_(ptr);
8091         } else
8092           goto handle_unusual;
8093         continue;
8094       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8095       case 999:
8096         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
8097           ptr -= 2;
8098           do {
8099             ptr += 2;
8100             ptr = ctx->ParseMessage(_internal_add_uninterpreted_option(), ptr);
8101             CHK_(ptr);
8102             if (!ctx->DataAvailable(ptr)) break;
8103           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<7994>(ptr));
8104         } else
8105           goto handle_unusual;
8106         continue;
8107       default:
8108         goto handle_unusual;
8109     }  // switch
8110   handle_unusual:
8111     if ((tag == 0) || ((tag & 7) == 4)) {
8112       CHK_(ptr);
8113       ctx->SetLastTag(tag);
8114       goto message_done;
8115     }
8116     if ((8000u <= tag)) {
8117       ptr = _extensions_.ParseField(tag, ptr, internal_default_instance(), &_internal_metadata_, ctx);
8118       CHK_(ptr != nullptr);
8119       continue;
8120     }
8121     ptr = UnknownFieldParse(
8122         tag,
8123         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
8124         ptr, ctx);
8125     CHK_(ptr != nullptr);
8126   }  // while
8127 message_done:
8128   _has_bits_.Or(has_bits);
8129   return ptr;
8130 failure:
8131   ptr = nullptr;
8132   goto message_done;
8133 #undef CHK_
8134 }
8135 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const8136 uint8_t* EnumOptions::_InternalSerialize(
8137     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8138   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumOptions)
8139   uint32_t cached_has_bits = 0;
8140   (void) cached_has_bits;
8141 
8142   cached_has_bits = _has_bits_[0];
8143   // optional bool allow_alias = 2;
8144   if (cached_has_bits & 0x00000001u) {
8145     target = stream->EnsureSpace(target);
8146     target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_allow_alias(), target);
8147   }
8148 
8149   // optional bool deprecated = 3 [default = false];
8150   if (cached_has_bits & 0x00000002u) {
8151     target = stream->EnsureSpace(target);
8152     target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_deprecated(), target);
8153   }
8154 
8155   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8156   for (unsigned i = 0,
8157       n = static_cast<unsigned>(this->_internal_uninterpreted_option_size()); i < n; i++) {
8158     const auto& repfield = this->_internal_uninterpreted_option(i);
8159     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8160         InternalWriteMessage(999, repfield, repfield.GetCachedSize(), target, stream);
8161   }
8162 
8163   // Extension range [1000, 536870912)
8164   target = _extensions_._InternalSerialize(
8165   internal_default_instance(), 1000, 536870912, target, stream);
8166 
8167   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8168     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
8169         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
8170   }
8171   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumOptions)
8172   return target;
8173 }
8174 
ByteSizeLong() const8175 size_t EnumOptions::ByteSizeLong() const {
8176 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumOptions)
8177   size_t total_size = 0;
8178 
8179   total_size += _extensions_.ByteSize();
8180 
8181   uint32_t cached_has_bits = 0;
8182   // Prevent compiler warnings about cached_has_bits being unused
8183   (void) cached_has_bits;
8184 
8185   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8186   total_size += 2UL * this->_internal_uninterpreted_option_size();
8187   for (const auto& msg : this->uninterpreted_option_) {
8188     total_size +=
8189       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
8190   }
8191 
8192   cached_has_bits = _has_bits_[0];
8193   if (cached_has_bits & 0x00000003u) {
8194     // optional bool allow_alias = 2;
8195     if (cached_has_bits & 0x00000001u) {
8196       total_size += 1 + 1;
8197     }
8198 
8199     // optional bool deprecated = 3 [default = false];
8200     if (cached_has_bits & 0x00000002u) {
8201       total_size += 1 + 1;
8202     }
8203 
8204   }
8205   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
8206 }
8207 
8208 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EnumOptions::_class_data_ = {
8209     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
8210     EnumOptions::MergeImpl
8211 };
GetClassData() const8212 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EnumOptions::GetClassData() const { return &_class_data_; }
8213 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)8214 void EnumOptions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
8215                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8216   static_cast<EnumOptions *>(to)->MergeFrom(
8217       static_cast<const EnumOptions &>(from));
8218 }
8219 
8220 
MergeFrom(const EnumOptions & from)8221 void EnumOptions::MergeFrom(const EnumOptions& from) {
8222 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumOptions)
8223   GOOGLE_DCHECK_NE(&from, this);
8224   uint32_t cached_has_bits = 0;
8225   (void) cached_has_bits;
8226 
8227   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
8228   cached_has_bits = from._has_bits_[0];
8229   if (cached_has_bits & 0x00000003u) {
8230     if (cached_has_bits & 0x00000001u) {
8231       allow_alias_ = from.allow_alias_;
8232     }
8233     if (cached_has_bits & 0x00000002u) {
8234       deprecated_ = from.deprecated_;
8235     }
8236     _has_bits_[0] |= cached_has_bits;
8237   }
8238   _extensions_.MergeFrom(internal_default_instance(), from._extensions_);
8239   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
8240 }
8241 
CopyFrom(const EnumOptions & from)8242 void EnumOptions::CopyFrom(const EnumOptions& from) {
8243 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumOptions)
8244   if (&from == this) return;
8245   Clear();
8246   MergeFrom(from);
8247 }
8248 
IsInitialized() const8249 bool EnumOptions::IsInitialized() const {
8250   if (!_extensions_.IsInitialized()) {
8251     return false;
8252   }
8253 
8254   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(uninterpreted_option_))
8255     return false;
8256   return true;
8257 }
8258 
InternalSwap(EnumOptions * other)8259 void EnumOptions::InternalSwap(EnumOptions* other) {
8260   using std::swap;
8261   _extensions_.InternalSwap(&other->_extensions_);
8262   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8263   swap(_has_bits_[0], other->_has_bits_[0]);
8264   uninterpreted_option_.InternalSwap(&other->uninterpreted_option_);
8265   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
8266       PROTOBUF_FIELD_OFFSET(EnumOptions, deprecated_)
8267       + sizeof(EnumOptions::deprecated_)
8268       - PROTOBUF_FIELD_OFFSET(EnumOptions, allow_alias_)>(
8269           reinterpret_cast<char*>(&allow_alias_),
8270           reinterpret_cast<char*>(&other->allow_alias_));
8271 }
8272 
GetMetadata() const8273 ::PROTOBUF_NAMESPACE_ID::Metadata EnumOptions::GetMetadata() const {
8274   return ::_pbi::AssignDescriptors(
8275       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
8276       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[17]);
8277 }
8278 
8279 // ===================================================================
8280 
8281 class EnumValueOptions::_Internal {
8282  public:
8283   using HasBits = decltype(std::declval<EnumValueOptions>()._has_bits_);
set_has_deprecated(HasBits * has_bits)8284   static void set_has_deprecated(HasBits* has_bits) {
8285     (*has_bits)[0] |= 1u;
8286   }
8287 };
8288 
EnumValueOptions(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)8289 EnumValueOptions::EnumValueOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8290                          bool is_message_owned)
8291   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
8292   _extensions_(arena),
8293   uninterpreted_option_(arena) {
8294   SharedCtor();
8295   // @@protoc_insertion_point(arena_constructor:google.protobuf.EnumValueOptions)
8296 }
EnumValueOptions(const EnumValueOptions & from)8297 EnumValueOptions::EnumValueOptions(const EnumValueOptions& from)
8298   : ::PROTOBUF_NAMESPACE_ID::Message(),
8299       _has_bits_(from._has_bits_),
8300       uninterpreted_option_(from.uninterpreted_option_) {
8301   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
8302   _extensions_.MergeFrom(internal_default_instance(), from._extensions_);
8303   deprecated_ = from.deprecated_;
8304   // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueOptions)
8305 }
8306 
SharedCtor()8307 inline void EnumValueOptions::SharedCtor() {
8308 deprecated_ = false;
8309 }
8310 
~EnumValueOptions()8311 EnumValueOptions::~EnumValueOptions() {
8312   // @@protoc_insertion_point(destructor:google.protobuf.EnumValueOptions)
8313   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
8314   (void)arena;
8315     return;
8316   }
8317   SharedDtor();
8318 }
8319 
SharedDtor()8320 inline void EnumValueOptions::SharedDtor() {
8321   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
8322 }
8323 
SetCachedSize(int size) const8324 void EnumValueOptions::SetCachedSize(int size) const {
8325   _cached_size_.Set(size);
8326 }
8327 
Clear()8328 void EnumValueOptions::Clear() {
8329 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueOptions)
8330   uint32_t cached_has_bits = 0;
8331   // Prevent compiler warnings about cached_has_bits being unused
8332   (void) cached_has_bits;
8333 
8334   _extensions_.Clear();
8335   uninterpreted_option_.Clear();
8336   deprecated_ = false;
8337   _has_bits_.Clear();
8338   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
8339 }
8340 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)8341 const char* EnumValueOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
8342 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8343   _Internal::HasBits has_bits{};
8344   while (!ctx->Done(&ptr)) {
8345     uint32_t tag;
8346     ptr = ::_pbi::ReadTag(ptr, &tag);
8347     switch (tag >> 3) {
8348       // optional bool deprecated = 1 [default = false];
8349       case 1:
8350         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
8351           _Internal::set_has_deprecated(&has_bits);
8352           deprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8353           CHK_(ptr);
8354         } else
8355           goto handle_unusual;
8356         continue;
8357       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8358       case 999:
8359         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
8360           ptr -= 2;
8361           do {
8362             ptr += 2;
8363             ptr = ctx->ParseMessage(_internal_add_uninterpreted_option(), ptr);
8364             CHK_(ptr);
8365             if (!ctx->DataAvailable(ptr)) break;
8366           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<7994>(ptr));
8367         } else
8368           goto handle_unusual;
8369         continue;
8370       default:
8371         goto handle_unusual;
8372     }  // switch
8373   handle_unusual:
8374     if ((tag == 0) || ((tag & 7) == 4)) {
8375       CHK_(ptr);
8376       ctx->SetLastTag(tag);
8377       goto message_done;
8378     }
8379     if ((8000u <= tag)) {
8380       ptr = _extensions_.ParseField(tag, ptr, internal_default_instance(), &_internal_metadata_, ctx);
8381       CHK_(ptr != nullptr);
8382       continue;
8383     }
8384     ptr = UnknownFieldParse(
8385         tag,
8386         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
8387         ptr, ctx);
8388     CHK_(ptr != nullptr);
8389   }  // while
8390 message_done:
8391   _has_bits_.Or(has_bits);
8392   return ptr;
8393 failure:
8394   ptr = nullptr;
8395   goto message_done;
8396 #undef CHK_
8397 }
8398 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const8399 uint8_t* EnumValueOptions::_InternalSerialize(
8400     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8401   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueOptions)
8402   uint32_t cached_has_bits = 0;
8403   (void) cached_has_bits;
8404 
8405   cached_has_bits = _has_bits_[0];
8406   // optional bool deprecated = 1 [default = false];
8407   if (cached_has_bits & 0x00000001u) {
8408     target = stream->EnsureSpace(target);
8409     target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_deprecated(), target);
8410   }
8411 
8412   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8413   for (unsigned i = 0,
8414       n = static_cast<unsigned>(this->_internal_uninterpreted_option_size()); i < n; i++) {
8415     const auto& repfield = this->_internal_uninterpreted_option(i);
8416     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8417         InternalWriteMessage(999, repfield, repfield.GetCachedSize(), target, stream);
8418   }
8419 
8420   // Extension range [1000, 536870912)
8421   target = _extensions_._InternalSerialize(
8422   internal_default_instance(), 1000, 536870912, target, stream);
8423 
8424   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8425     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
8426         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
8427   }
8428   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueOptions)
8429   return target;
8430 }
8431 
ByteSizeLong() const8432 size_t EnumValueOptions::ByteSizeLong() const {
8433 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueOptions)
8434   size_t total_size = 0;
8435 
8436   total_size += _extensions_.ByteSize();
8437 
8438   uint32_t cached_has_bits = 0;
8439   // Prevent compiler warnings about cached_has_bits being unused
8440   (void) cached_has_bits;
8441 
8442   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8443   total_size += 2UL * this->_internal_uninterpreted_option_size();
8444   for (const auto& msg : this->uninterpreted_option_) {
8445     total_size +=
8446       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
8447   }
8448 
8449   // optional bool deprecated = 1 [default = false];
8450   cached_has_bits = _has_bits_[0];
8451   if (cached_has_bits & 0x00000001u) {
8452     total_size += 1 + 1;
8453   }
8454 
8455   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
8456 }
8457 
8458 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EnumValueOptions::_class_data_ = {
8459     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
8460     EnumValueOptions::MergeImpl
8461 };
GetClassData() const8462 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EnumValueOptions::GetClassData() const { return &_class_data_; }
8463 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)8464 void EnumValueOptions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
8465                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8466   static_cast<EnumValueOptions *>(to)->MergeFrom(
8467       static_cast<const EnumValueOptions &>(from));
8468 }
8469 
8470 
MergeFrom(const EnumValueOptions & from)8471 void EnumValueOptions::MergeFrom(const EnumValueOptions& from) {
8472 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumValueOptions)
8473   GOOGLE_DCHECK_NE(&from, this);
8474   uint32_t cached_has_bits = 0;
8475   (void) cached_has_bits;
8476 
8477   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
8478   if (from._internal_has_deprecated()) {
8479     _internal_set_deprecated(from._internal_deprecated());
8480   }
8481   _extensions_.MergeFrom(internal_default_instance(), from._extensions_);
8482   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
8483 }
8484 
CopyFrom(const EnumValueOptions & from)8485 void EnumValueOptions::CopyFrom(const EnumValueOptions& from) {
8486 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumValueOptions)
8487   if (&from == this) return;
8488   Clear();
8489   MergeFrom(from);
8490 }
8491 
IsInitialized() const8492 bool EnumValueOptions::IsInitialized() const {
8493   if (!_extensions_.IsInitialized()) {
8494     return false;
8495   }
8496 
8497   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(uninterpreted_option_))
8498     return false;
8499   return true;
8500 }
8501 
InternalSwap(EnumValueOptions * other)8502 void EnumValueOptions::InternalSwap(EnumValueOptions* other) {
8503   using std::swap;
8504   _extensions_.InternalSwap(&other->_extensions_);
8505   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8506   swap(_has_bits_[0], other->_has_bits_[0]);
8507   uninterpreted_option_.InternalSwap(&other->uninterpreted_option_);
8508   swap(deprecated_, other->deprecated_);
8509 }
8510 
GetMetadata() const8511 ::PROTOBUF_NAMESPACE_ID::Metadata EnumValueOptions::GetMetadata() const {
8512   return ::_pbi::AssignDescriptors(
8513       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
8514       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[18]);
8515 }
8516 
8517 // ===================================================================
8518 
8519 class ServiceOptions::_Internal {
8520  public:
8521   using HasBits = decltype(std::declval<ServiceOptions>()._has_bits_);
set_has_deprecated(HasBits * has_bits)8522   static void set_has_deprecated(HasBits* has_bits) {
8523     (*has_bits)[0] |= 1u;
8524   }
8525 };
8526 
ServiceOptions(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)8527 ServiceOptions::ServiceOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8528                          bool is_message_owned)
8529   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
8530   _extensions_(arena),
8531   uninterpreted_option_(arena) {
8532   SharedCtor();
8533   // @@protoc_insertion_point(arena_constructor:google.protobuf.ServiceOptions)
8534 }
ServiceOptions(const ServiceOptions & from)8535 ServiceOptions::ServiceOptions(const ServiceOptions& from)
8536   : ::PROTOBUF_NAMESPACE_ID::Message(),
8537       _has_bits_(from._has_bits_),
8538       uninterpreted_option_(from.uninterpreted_option_) {
8539   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
8540   _extensions_.MergeFrom(internal_default_instance(), from._extensions_);
8541   deprecated_ = from.deprecated_;
8542   // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceOptions)
8543 }
8544 
SharedCtor()8545 inline void ServiceOptions::SharedCtor() {
8546 deprecated_ = false;
8547 }
8548 
~ServiceOptions()8549 ServiceOptions::~ServiceOptions() {
8550   // @@protoc_insertion_point(destructor:google.protobuf.ServiceOptions)
8551   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
8552   (void)arena;
8553     return;
8554   }
8555   SharedDtor();
8556 }
8557 
SharedDtor()8558 inline void ServiceOptions::SharedDtor() {
8559   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
8560 }
8561 
SetCachedSize(int size) const8562 void ServiceOptions::SetCachedSize(int size) const {
8563   _cached_size_.Set(size);
8564 }
8565 
Clear()8566 void ServiceOptions::Clear() {
8567 // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceOptions)
8568   uint32_t cached_has_bits = 0;
8569   // Prevent compiler warnings about cached_has_bits being unused
8570   (void) cached_has_bits;
8571 
8572   _extensions_.Clear();
8573   uninterpreted_option_.Clear();
8574   deprecated_ = false;
8575   _has_bits_.Clear();
8576   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
8577 }
8578 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)8579 const char* ServiceOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
8580 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8581   _Internal::HasBits has_bits{};
8582   while (!ctx->Done(&ptr)) {
8583     uint32_t tag;
8584     ptr = ::_pbi::ReadTag(ptr, &tag);
8585     switch (tag >> 3) {
8586       // optional bool deprecated = 33 [default = false];
8587       case 33:
8588         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
8589           _Internal::set_has_deprecated(&has_bits);
8590           deprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8591           CHK_(ptr);
8592         } else
8593           goto handle_unusual;
8594         continue;
8595       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8596       case 999:
8597         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
8598           ptr -= 2;
8599           do {
8600             ptr += 2;
8601             ptr = ctx->ParseMessage(_internal_add_uninterpreted_option(), ptr);
8602             CHK_(ptr);
8603             if (!ctx->DataAvailable(ptr)) break;
8604           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<7994>(ptr));
8605         } else
8606           goto handle_unusual;
8607         continue;
8608       default:
8609         goto handle_unusual;
8610     }  // switch
8611   handle_unusual:
8612     if ((tag == 0) || ((tag & 7) == 4)) {
8613       CHK_(ptr);
8614       ctx->SetLastTag(tag);
8615       goto message_done;
8616     }
8617     if ((8000u <= tag)) {
8618       ptr = _extensions_.ParseField(tag, ptr, internal_default_instance(), &_internal_metadata_, ctx);
8619       CHK_(ptr != nullptr);
8620       continue;
8621     }
8622     ptr = UnknownFieldParse(
8623         tag,
8624         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
8625         ptr, ctx);
8626     CHK_(ptr != nullptr);
8627   }  // while
8628 message_done:
8629   _has_bits_.Or(has_bits);
8630   return ptr;
8631 failure:
8632   ptr = nullptr;
8633   goto message_done;
8634 #undef CHK_
8635 }
8636 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const8637 uint8_t* ServiceOptions::_InternalSerialize(
8638     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8639   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceOptions)
8640   uint32_t cached_has_bits = 0;
8641   (void) cached_has_bits;
8642 
8643   cached_has_bits = _has_bits_[0];
8644   // optional bool deprecated = 33 [default = false];
8645   if (cached_has_bits & 0x00000001u) {
8646     target = stream->EnsureSpace(target);
8647     target = ::_pbi::WireFormatLite::WriteBoolToArray(33, this->_internal_deprecated(), target);
8648   }
8649 
8650   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8651   for (unsigned i = 0,
8652       n = static_cast<unsigned>(this->_internal_uninterpreted_option_size()); i < n; i++) {
8653     const auto& repfield = this->_internal_uninterpreted_option(i);
8654     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8655         InternalWriteMessage(999, repfield, repfield.GetCachedSize(), target, stream);
8656   }
8657 
8658   // Extension range [1000, 536870912)
8659   target = _extensions_._InternalSerialize(
8660   internal_default_instance(), 1000, 536870912, target, stream);
8661 
8662   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8663     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
8664         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
8665   }
8666   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceOptions)
8667   return target;
8668 }
8669 
ByteSizeLong() const8670 size_t ServiceOptions::ByteSizeLong() const {
8671 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceOptions)
8672   size_t total_size = 0;
8673 
8674   total_size += _extensions_.ByteSize();
8675 
8676   uint32_t cached_has_bits = 0;
8677   // Prevent compiler warnings about cached_has_bits being unused
8678   (void) cached_has_bits;
8679 
8680   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8681   total_size += 2UL * this->_internal_uninterpreted_option_size();
8682   for (const auto& msg : this->uninterpreted_option_) {
8683     total_size +=
8684       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
8685   }
8686 
8687   // optional bool deprecated = 33 [default = false];
8688   cached_has_bits = _has_bits_[0];
8689   if (cached_has_bits & 0x00000001u) {
8690     total_size += 2 + 1;
8691   }
8692 
8693   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
8694 }
8695 
8696 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ServiceOptions::_class_data_ = {
8697     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
8698     ServiceOptions::MergeImpl
8699 };
GetClassData() const8700 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ServiceOptions::GetClassData() const { return &_class_data_; }
8701 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)8702 void ServiceOptions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
8703                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8704   static_cast<ServiceOptions *>(to)->MergeFrom(
8705       static_cast<const ServiceOptions &>(from));
8706 }
8707 
8708 
MergeFrom(const ServiceOptions & from)8709 void ServiceOptions::MergeFrom(const ServiceOptions& from) {
8710 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.ServiceOptions)
8711   GOOGLE_DCHECK_NE(&from, this);
8712   uint32_t cached_has_bits = 0;
8713   (void) cached_has_bits;
8714 
8715   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
8716   if (from._internal_has_deprecated()) {
8717     _internal_set_deprecated(from._internal_deprecated());
8718   }
8719   _extensions_.MergeFrom(internal_default_instance(), from._extensions_);
8720   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
8721 }
8722 
CopyFrom(const ServiceOptions & from)8723 void ServiceOptions::CopyFrom(const ServiceOptions& from) {
8724 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.ServiceOptions)
8725   if (&from == this) return;
8726   Clear();
8727   MergeFrom(from);
8728 }
8729 
IsInitialized() const8730 bool ServiceOptions::IsInitialized() const {
8731   if (!_extensions_.IsInitialized()) {
8732     return false;
8733   }
8734 
8735   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(uninterpreted_option_))
8736     return false;
8737   return true;
8738 }
8739 
InternalSwap(ServiceOptions * other)8740 void ServiceOptions::InternalSwap(ServiceOptions* other) {
8741   using std::swap;
8742   _extensions_.InternalSwap(&other->_extensions_);
8743   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8744   swap(_has_bits_[0], other->_has_bits_[0]);
8745   uninterpreted_option_.InternalSwap(&other->uninterpreted_option_);
8746   swap(deprecated_, other->deprecated_);
8747 }
8748 
GetMetadata() const8749 ::PROTOBUF_NAMESPACE_ID::Metadata ServiceOptions::GetMetadata() const {
8750   return ::_pbi::AssignDescriptors(
8751       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
8752       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[19]);
8753 }
8754 
8755 // ===================================================================
8756 
8757 class MethodOptions::_Internal {
8758  public:
8759   using HasBits = decltype(std::declval<MethodOptions>()._has_bits_);
set_has_deprecated(HasBits * has_bits)8760   static void set_has_deprecated(HasBits* has_bits) {
8761     (*has_bits)[0] |= 1u;
8762   }
set_has_idempotency_level(HasBits * has_bits)8763   static void set_has_idempotency_level(HasBits* has_bits) {
8764     (*has_bits)[0] |= 2u;
8765   }
8766 };
8767 
MethodOptions(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)8768 MethodOptions::MethodOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8769                          bool is_message_owned)
8770   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
8771   _extensions_(arena),
8772   uninterpreted_option_(arena) {
8773   SharedCtor();
8774   // @@protoc_insertion_point(arena_constructor:google.protobuf.MethodOptions)
8775 }
MethodOptions(const MethodOptions & from)8776 MethodOptions::MethodOptions(const MethodOptions& from)
8777   : ::PROTOBUF_NAMESPACE_ID::Message(),
8778       _has_bits_(from._has_bits_),
8779       uninterpreted_option_(from.uninterpreted_option_) {
8780   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
8781   _extensions_.MergeFrom(internal_default_instance(), from._extensions_);
8782   ::memcpy(&deprecated_, &from.deprecated_,
8783     static_cast<size_t>(reinterpret_cast<char*>(&idempotency_level_) -
8784     reinterpret_cast<char*>(&deprecated_)) + sizeof(idempotency_level_));
8785   // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodOptions)
8786 }
8787 
SharedCtor()8788 inline void MethodOptions::SharedCtor() {
8789 ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
8790     reinterpret_cast<char*>(&deprecated_) - reinterpret_cast<char*>(this)),
8791     0, static_cast<size_t>(reinterpret_cast<char*>(&idempotency_level_) -
8792     reinterpret_cast<char*>(&deprecated_)) + sizeof(idempotency_level_));
8793 }
8794 
~MethodOptions()8795 MethodOptions::~MethodOptions() {
8796   // @@protoc_insertion_point(destructor:google.protobuf.MethodOptions)
8797   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
8798   (void)arena;
8799     return;
8800   }
8801   SharedDtor();
8802 }
8803 
SharedDtor()8804 inline void MethodOptions::SharedDtor() {
8805   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
8806 }
8807 
SetCachedSize(int size) const8808 void MethodOptions::SetCachedSize(int size) const {
8809   _cached_size_.Set(size);
8810 }
8811 
Clear()8812 void MethodOptions::Clear() {
8813 // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodOptions)
8814   uint32_t cached_has_bits = 0;
8815   // Prevent compiler warnings about cached_has_bits being unused
8816   (void) cached_has_bits;
8817 
8818   _extensions_.Clear();
8819   uninterpreted_option_.Clear();
8820   cached_has_bits = _has_bits_[0];
8821   if (cached_has_bits & 0x00000003u) {
8822     ::memset(&deprecated_, 0, static_cast<size_t>(
8823         reinterpret_cast<char*>(&idempotency_level_) -
8824         reinterpret_cast<char*>(&deprecated_)) + sizeof(idempotency_level_));
8825   }
8826   _has_bits_.Clear();
8827   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
8828 }
8829 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)8830 const char* MethodOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
8831 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8832   _Internal::HasBits has_bits{};
8833   while (!ctx->Done(&ptr)) {
8834     uint32_t tag;
8835     ptr = ::_pbi::ReadTag(ptr, &tag);
8836     switch (tag >> 3) {
8837       // optional bool deprecated = 33 [default = false];
8838       case 33:
8839         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
8840           _Internal::set_has_deprecated(&has_bits);
8841           deprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8842           CHK_(ptr);
8843         } else
8844           goto handle_unusual;
8845         continue;
8846       // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
8847       case 34:
8848         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
8849           uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8850           CHK_(ptr);
8851           if (PROTOBUF_PREDICT_TRUE(::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel_IsValid(val))) {
8852             _internal_set_idempotency_level(static_cast<::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel>(val));
8853           } else {
8854             ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(34, val, mutable_unknown_fields());
8855           }
8856         } else
8857           goto handle_unusual;
8858         continue;
8859       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8860       case 999:
8861         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
8862           ptr -= 2;
8863           do {
8864             ptr += 2;
8865             ptr = ctx->ParseMessage(_internal_add_uninterpreted_option(), ptr);
8866             CHK_(ptr);
8867             if (!ctx->DataAvailable(ptr)) break;
8868           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<7994>(ptr));
8869         } else
8870           goto handle_unusual;
8871         continue;
8872       default:
8873         goto handle_unusual;
8874     }  // switch
8875   handle_unusual:
8876     if ((tag == 0) || ((tag & 7) == 4)) {
8877       CHK_(ptr);
8878       ctx->SetLastTag(tag);
8879       goto message_done;
8880     }
8881     if ((8000u <= tag)) {
8882       ptr = _extensions_.ParseField(tag, ptr, internal_default_instance(), &_internal_metadata_, ctx);
8883       CHK_(ptr != nullptr);
8884       continue;
8885     }
8886     ptr = UnknownFieldParse(
8887         tag,
8888         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
8889         ptr, ctx);
8890     CHK_(ptr != nullptr);
8891   }  // while
8892 message_done:
8893   _has_bits_.Or(has_bits);
8894   return ptr;
8895 failure:
8896   ptr = nullptr;
8897   goto message_done;
8898 #undef CHK_
8899 }
8900 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const8901 uint8_t* MethodOptions::_InternalSerialize(
8902     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8903   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodOptions)
8904   uint32_t cached_has_bits = 0;
8905   (void) cached_has_bits;
8906 
8907   cached_has_bits = _has_bits_[0];
8908   // optional bool deprecated = 33 [default = false];
8909   if (cached_has_bits & 0x00000001u) {
8910     target = stream->EnsureSpace(target);
8911     target = ::_pbi::WireFormatLite::WriteBoolToArray(33, this->_internal_deprecated(), target);
8912   }
8913 
8914   // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
8915   if (cached_has_bits & 0x00000002u) {
8916     target = stream->EnsureSpace(target);
8917     target = ::_pbi::WireFormatLite::WriteEnumToArray(
8918       34, this->_internal_idempotency_level(), target);
8919   }
8920 
8921   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8922   for (unsigned i = 0,
8923       n = static_cast<unsigned>(this->_internal_uninterpreted_option_size()); i < n; i++) {
8924     const auto& repfield = this->_internal_uninterpreted_option(i);
8925     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8926         InternalWriteMessage(999, repfield, repfield.GetCachedSize(), target, stream);
8927   }
8928 
8929   // Extension range [1000, 536870912)
8930   target = _extensions_._InternalSerialize(
8931   internal_default_instance(), 1000, 536870912, target, stream);
8932 
8933   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8934     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
8935         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
8936   }
8937   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodOptions)
8938   return target;
8939 }
8940 
ByteSizeLong() const8941 size_t MethodOptions::ByteSizeLong() const {
8942 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodOptions)
8943   size_t total_size = 0;
8944 
8945   total_size += _extensions_.ByteSize();
8946 
8947   uint32_t cached_has_bits = 0;
8948   // Prevent compiler warnings about cached_has_bits being unused
8949   (void) cached_has_bits;
8950 
8951   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8952   total_size += 2UL * this->_internal_uninterpreted_option_size();
8953   for (const auto& msg : this->uninterpreted_option_) {
8954     total_size +=
8955       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
8956   }
8957 
8958   cached_has_bits = _has_bits_[0];
8959   if (cached_has_bits & 0x00000003u) {
8960     // optional bool deprecated = 33 [default = false];
8961     if (cached_has_bits & 0x00000001u) {
8962       total_size += 2 + 1;
8963     }
8964 
8965     // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
8966     if (cached_has_bits & 0x00000002u) {
8967       total_size += 2 +
8968         ::_pbi::WireFormatLite::EnumSize(this->_internal_idempotency_level());
8969     }
8970 
8971   }
8972   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
8973 }
8974 
8975 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MethodOptions::_class_data_ = {
8976     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
8977     MethodOptions::MergeImpl
8978 };
GetClassData() const8979 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MethodOptions::GetClassData() const { return &_class_data_; }
8980 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)8981 void MethodOptions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
8982                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8983   static_cast<MethodOptions *>(to)->MergeFrom(
8984       static_cast<const MethodOptions &>(from));
8985 }
8986 
8987 
MergeFrom(const MethodOptions & from)8988 void MethodOptions::MergeFrom(const MethodOptions& from) {
8989 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.MethodOptions)
8990   GOOGLE_DCHECK_NE(&from, this);
8991   uint32_t cached_has_bits = 0;
8992   (void) cached_has_bits;
8993 
8994   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
8995   cached_has_bits = from._has_bits_[0];
8996   if (cached_has_bits & 0x00000003u) {
8997     if (cached_has_bits & 0x00000001u) {
8998       deprecated_ = from.deprecated_;
8999     }
9000     if (cached_has_bits & 0x00000002u) {
9001       idempotency_level_ = from.idempotency_level_;
9002     }
9003     _has_bits_[0] |= cached_has_bits;
9004   }
9005   _extensions_.MergeFrom(internal_default_instance(), from._extensions_);
9006   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
9007 }
9008 
CopyFrom(const MethodOptions & from)9009 void MethodOptions::CopyFrom(const MethodOptions& from) {
9010 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.MethodOptions)
9011   if (&from == this) return;
9012   Clear();
9013   MergeFrom(from);
9014 }
9015 
IsInitialized() const9016 bool MethodOptions::IsInitialized() const {
9017   if (!_extensions_.IsInitialized()) {
9018     return false;
9019   }
9020 
9021   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(uninterpreted_option_))
9022     return false;
9023   return true;
9024 }
9025 
InternalSwap(MethodOptions * other)9026 void MethodOptions::InternalSwap(MethodOptions* other) {
9027   using std::swap;
9028   _extensions_.InternalSwap(&other->_extensions_);
9029   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
9030   swap(_has_bits_[0], other->_has_bits_[0]);
9031   uninterpreted_option_.InternalSwap(&other->uninterpreted_option_);
9032   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
9033       PROTOBUF_FIELD_OFFSET(MethodOptions, idempotency_level_)
9034       + sizeof(MethodOptions::idempotency_level_)
9035       - PROTOBUF_FIELD_OFFSET(MethodOptions, deprecated_)>(
9036           reinterpret_cast<char*>(&deprecated_),
9037           reinterpret_cast<char*>(&other->deprecated_));
9038 }
9039 
GetMetadata() const9040 ::PROTOBUF_NAMESPACE_ID::Metadata MethodOptions::GetMetadata() const {
9041   return ::_pbi::AssignDescriptors(
9042       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
9043       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[20]);
9044 }
9045 
9046 // ===================================================================
9047 
9048 class UninterpretedOption_NamePart::_Internal {
9049  public:
9050   using HasBits = decltype(std::declval<UninterpretedOption_NamePart>()._has_bits_);
set_has_name_part(HasBits * has_bits)9051   static void set_has_name_part(HasBits* has_bits) {
9052     (*has_bits)[0] |= 1u;
9053   }
set_has_is_extension(HasBits * has_bits)9054   static void set_has_is_extension(HasBits* has_bits) {
9055     (*has_bits)[0] |= 2u;
9056   }
MissingRequiredFields(const HasBits & has_bits)9057   static bool MissingRequiredFields(const HasBits& has_bits) {
9058     return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0;
9059   }
9060 };
9061 
UninterpretedOption_NamePart(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)9062 UninterpretedOption_NamePart::UninterpretedOption_NamePart(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9063                          bool is_message_owned)
9064   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
9065   SharedCtor();
9066   // @@protoc_insertion_point(arena_constructor:google.protobuf.UninterpretedOption.NamePart)
9067 }
UninterpretedOption_NamePart(const UninterpretedOption_NamePart & from)9068 UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from)
9069   : ::PROTOBUF_NAMESPACE_ID::Message(),
9070       _has_bits_(from._has_bits_) {
9071   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
9072   name_part_.InitDefault();
9073   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9074     name_part_.Set("", GetArenaForAllocation());
9075   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9076   if (from._internal_has_name_part()) {
9077     name_part_.Set(from._internal_name_part(),
9078       GetArenaForAllocation());
9079   }
9080   is_extension_ = from.is_extension_;
9081   // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOption.NamePart)
9082 }
9083 
SharedCtor()9084 inline void UninterpretedOption_NamePart::SharedCtor() {
9085 name_part_.InitDefault();
9086 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9087   name_part_.Set("", GetArenaForAllocation());
9088 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9089 is_extension_ = false;
9090 }
9091 
~UninterpretedOption_NamePart()9092 UninterpretedOption_NamePart::~UninterpretedOption_NamePart() {
9093   // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption.NamePart)
9094   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
9095   (void)arena;
9096     return;
9097   }
9098   SharedDtor();
9099 }
9100 
SharedDtor()9101 inline void UninterpretedOption_NamePart::SharedDtor() {
9102   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
9103   name_part_.Destroy();
9104 }
9105 
SetCachedSize(int size) const9106 void UninterpretedOption_NamePart::SetCachedSize(int size) const {
9107   _cached_size_.Set(size);
9108 }
9109 
Clear()9110 void UninterpretedOption_NamePart::Clear() {
9111 // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOption.NamePart)
9112   uint32_t cached_has_bits = 0;
9113   // Prevent compiler warnings about cached_has_bits being unused
9114   (void) cached_has_bits;
9115 
9116   cached_has_bits = _has_bits_[0];
9117   if (cached_has_bits & 0x00000001u) {
9118     name_part_.ClearNonDefaultToEmpty();
9119   }
9120   is_extension_ = false;
9121   _has_bits_.Clear();
9122   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
9123 }
9124 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)9125 const char* UninterpretedOption_NamePart::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
9126 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9127   _Internal::HasBits has_bits{};
9128   while (!ctx->Done(&ptr)) {
9129     uint32_t tag;
9130     ptr = ::_pbi::ReadTag(ptr, &tag);
9131     switch (tag >> 3) {
9132       // required string name_part = 1;
9133       case 1:
9134         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
9135           auto str = _internal_mutable_name_part();
9136           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
9137           CHK_(ptr);
9138           #ifndef NDEBUG
9139           ::_pbi::VerifyUTF8(str, "google.protobuf.UninterpretedOption.NamePart.name_part");
9140           #endif  // !NDEBUG
9141         } else
9142           goto handle_unusual;
9143         continue;
9144       // required bool is_extension = 2;
9145       case 2:
9146         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
9147           _Internal::set_has_is_extension(&has_bits);
9148           is_extension_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
9149           CHK_(ptr);
9150         } else
9151           goto handle_unusual;
9152         continue;
9153       default:
9154         goto handle_unusual;
9155     }  // switch
9156   handle_unusual:
9157     if ((tag == 0) || ((tag & 7) == 4)) {
9158       CHK_(ptr);
9159       ctx->SetLastTag(tag);
9160       goto message_done;
9161     }
9162     ptr = UnknownFieldParse(
9163         tag,
9164         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
9165         ptr, ctx);
9166     CHK_(ptr != nullptr);
9167   }  // while
9168 message_done:
9169   _has_bits_.Or(has_bits);
9170   return ptr;
9171 failure:
9172   ptr = nullptr;
9173   goto message_done;
9174 #undef CHK_
9175 }
9176 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const9177 uint8_t* UninterpretedOption_NamePart::_InternalSerialize(
9178     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
9179   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption.NamePart)
9180   uint32_t cached_has_bits = 0;
9181   (void) cached_has_bits;
9182 
9183   cached_has_bits = _has_bits_[0];
9184   // required string name_part = 1;
9185   if (cached_has_bits & 0x00000001u) {
9186     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9187       this->_internal_name_part().data(), static_cast<int>(this->_internal_name_part().length()),
9188       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9189       "google.protobuf.UninterpretedOption.NamePart.name_part");
9190     target = stream->WriteStringMaybeAliased(
9191         1, this->_internal_name_part(), target);
9192   }
9193 
9194   // required bool is_extension = 2;
9195   if (cached_has_bits & 0x00000002u) {
9196     target = stream->EnsureSpace(target);
9197     target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_is_extension(), target);
9198   }
9199 
9200   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9201     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
9202         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
9203   }
9204   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UninterpretedOption.NamePart)
9205   return target;
9206 }
9207 
RequiredFieldsByteSizeFallback() const9208 size_t UninterpretedOption_NamePart::RequiredFieldsByteSizeFallback() const {
9209 // @@protoc_insertion_point(required_fields_byte_size_fallback_start:google.protobuf.UninterpretedOption.NamePart)
9210   size_t total_size = 0;
9211 
9212   if (_internal_has_name_part()) {
9213     // required string name_part = 1;
9214     total_size += 1 +
9215       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
9216         this->_internal_name_part());
9217   }
9218 
9219   if (_internal_has_is_extension()) {
9220     // required bool is_extension = 2;
9221     total_size += 1 + 1;
9222   }
9223 
9224   return total_size;
9225 }
ByteSizeLong() const9226 size_t UninterpretedOption_NamePart::ByteSizeLong() const {
9227 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.UninterpretedOption.NamePart)
9228   size_t total_size = 0;
9229 
9230   if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) {  // All required fields are present.
9231     // required string name_part = 1;
9232     total_size += 1 +
9233       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
9234         this->_internal_name_part());
9235 
9236     // required bool is_extension = 2;
9237     total_size += 1 + 1;
9238 
9239   } else {
9240     total_size += RequiredFieldsByteSizeFallback();
9241   }
9242   uint32_t cached_has_bits = 0;
9243   // Prevent compiler warnings about cached_has_bits being unused
9244   (void) cached_has_bits;
9245 
9246   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
9247 }
9248 
9249 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UninterpretedOption_NamePart::_class_data_ = {
9250     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
9251     UninterpretedOption_NamePart::MergeImpl
9252 };
GetClassData() const9253 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UninterpretedOption_NamePart::GetClassData() const { return &_class_data_; }
9254 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)9255 void UninterpretedOption_NamePart::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
9256                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
9257   static_cast<UninterpretedOption_NamePart *>(to)->MergeFrom(
9258       static_cast<const UninterpretedOption_NamePart &>(from));
9259 }
9260 
9261 
MergeFrom(const UninterpretedOption_NamePart & from)9262 void UninterpretedOption_NamePart::MergeFrom(const UninterpretedOption_NamePart& from) {
9263 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UninterpretedOption.NamePart)
9264   GOOGLE_DCHECK_NE(&from, this);
9265   uint32_t cached_has_bits = 0;
9266   (void) cached_has_bits;
9267 
9268   cached_has_bits = from._has_bits_[0];
9269   if (cached_has_bits & 0x00000003u) {
9270     if (cached_has_bits & 0x00000001u) {
9271       _internal_set_name_part(from._internal_name_part());
9272     }
9273     if (cached_has_bits & 0x00000002u) {
9274       is_extension_ = from.is_extension_;
9275     }
9276     _has_bits_[0] |= cached_has_bits;
9277   }
9278   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
9279 }
9280 
CopyFrom(const UninterpretedOption_NamePart & from)9281 void UninterpretedOption_NamePart::CopyFrom(const UninterpretedOption_NamePart& from) {
9282 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.UninterpretedOption.NamePart)
9283   if (&from == this) return;
9284   Clear();
9285   MergeFrom(from);
9286 }
9287 
IsInitialized() const9288 bool UninterpretedOption_NamePart::IsInitialized() const {
9289   if (_Internal::MissingRequiredFields(_has_bits_)) return false;
9290   return true;
9291 }
9292 
InternalSwap(UninterpretedOption_NamePart * other)9293 void UninterpretedOption_NamePart::InternalSwap(UninterpretedOption_NamePart* other) {
9294   using std::swap;
9295   auto* lhs_arena = GetArenaForAllocation();
9296   auto* rhs_arena = other->GetArenaForAllocation();
9297   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
9298   swap(_has_bits_[0], other->_has_bits_[0]);
9299   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
9300       &name_part_, lhs_arena,
9301       &other->name_part_, rhs_arena
9302   );
9303   swap(is_extension_, other->is_extension_);
9304 }
9305 
GetMetadata() const9306 ::PROTOBUF_NAMESPACE_ID::Metadata UninterpretedOption_NamePart::GetMetadata() const {
9307   return ::_pbi::AssignDescriptors(
9308       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
9309       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[21]);
9310 }
9311 
9312 // ===================================================================
9313 
9314 class UninterpretedOption::_Internal {
9315  public:
9316   using HasBits = decltype(std::declval<UninterpretedOption>()._has_bits_);
set_has_identifier_value(HasBits * has_bits)9317   static void set_has_identifier_value(HasBits* has_bits) {
9318     (*has_bits)[0] |= 1u;
9319   }
set_has_positive_int_value(HasBits * has_bits)9320   static void set_has_positive_int_value(HasBits* has_bits) {
9321     (*has_bits)[0] |= 8u;
9322   }
set_has_negative_int_value(HasBits * has_bits)9323   static void set_has_negative_int_value(HasBits* has_bits) {
9324     (*has_bits)[0] |= 16u;
9325   }
set_has_double_value(HasBits * has_bits)9326   static void set_has_double_value(HasBits* has_bits) {
9327     (*has_bits)[0] |= 32u;
9328   }
set_has_string_value(HasBits * has_bits)9329   static void set_has_string_value(HasBits* has_bits) {
9330     (*has_bits)[0] |= 2u;
9331   }
set_has_aggregate_value(HasBits * has_bits)9332   static void set_has_aggregate_value(HasBits* has_bits) {
9333     (*has_bits)[0] |= 4u;
9334   }
9335 };
9336 
UninterpretedOption(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)9337 UninterpretedOption::UninterpretedOption(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9338                          bool is_message_owned)
9339   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
9340   name_(arena) {
9341   SharedCtor();
9342   // @@protoc_insertion_point(arena_constructor:google.protobuf.UninterpretedOption)
9343 }
UninterpretedOption(const UninterpretedOption & from)9344 UninterpretedOption::UninterpretedOption(const UninterpretedOption& from)
9345   : ::PROTOBUF_NAMESPACE_ID::Message(),
9346       _has_bits_(from._has_bits_),
9347       name_(from.name_) {
9348   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
9349   identifier_value_.InitDefault();
9350   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9351     identifier_value_.Set("", GetArenaForAllocation());
9352   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9353   if (from._internal_has_identifier_value()) {
9354     identifier_value_.Set(from._internal_identifier_value(),
9355       GetArenaForAllocation());
9356   }
9357   string_value_.InitDefault();
9358   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9359     string_value_.Set("", GetArenaForAllocation());
9360   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9361   if (from._internal_has_string_value()) {
9362     string_value_.Set(from._internal_string_value(),
9363       GetArenaForAllocation());
9364   }
9365   aggregate_value_.InitDefault();
9366   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9367     aggregate_value_.Set("", GetArenaForAllocation());
9368   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9369   if (from._internal_has_aggregate_value()) {
9370     aggregate_value_.Set(from._internal_aggregate_value(),
9371       GetArenaForAllocation());
9372   }
9373   ::memcpy(&positive_int_value_, &from.positive_int_value_,
9374     static_cast<size_t>(reinterpret_cast<char*>(&double_value_) -
9375     reinterpret_cast<char*>(&positive_int_value_)) + sizeof(double_value_));
9376   // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOption)
9377 }
9378 
SharedCtor()9379 inline void UninterpretedOption::SharedCtor() {
9380 identifier_value_.InitDefault();
9381 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9382   identifier_value_.Set("", GetArenaForAllocation());
9383 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9384 string_value_.InitDefault();
9385 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9386   string_value_.Set("", GetArenaForAllocation());
9387 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9388 aggregate_value_.InitDefault();
9389 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9390   aggregate_value_.Set("", GetArenaForAllocation());
9391 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9392 ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
9393     reinterpret_cast<char*>(&positive_int_value_) - reinterpret_cast<char*>(this)),
9394     0, static_cast<size_t>(reinterpret_cast<char*>(&double_value_) -
9395     reinterpret_cast<char*>(&positive_int_value_)) + sizeof(double_value_));
9396 }
9397 
~UninterpretedOption()9398 UninterpretedOption::~UninterpretedOption() {
9399   // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption)
9400   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
9401   (void)arena;
9402     return;
9403   }
9404   SharedDtor();
9405 }
9406 
SharedDtor()9407 inline void UninterpretedOption::SharedDtor() {
9408   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
9409   identifier_value_.Destroy();
9410   string_value_.Destroy();
9411   aggregate_value_.Destroy();
9412 }
9413 
SetCachedSize(int size) const9414 void UninterpretedOption::SetCachedSize(int size) const {
9415   _cached_size_.Set(size);
9416 }
9417 
Clear()9418 void UninterpretedOption::Clear() {
9419 // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOption)
9420   uint32_t cached_has_bits = 0;
9421   // Prevent compiler warnings about cached_has_bits being unused
9422   (void) cached_has_bits;
9423 
9424   name_.Clear();
9425   cached_has_bits = _has_bits_[0];
9426   if (cached_has_bits & 0x00000007u) {
9427     if (cached_has_bits & 0x00000001u) {
9428       identifier_value_.ClearNonDefaultToEmpty();
9429     }
9430     if (cached_has_bits & 0x00000002u) {
9431       string_value_.ClearNonDefaultToEmpty();
9432     }
9433     if (cached_has_bits & 0x00000004u) {
9434       aggregate_value_.ClearNonDefaultToEmpty();
9435     }
9436   }
9437   if (cached_has_bits & 0x00000038u) {
9438     ::memset(&positive_int_value_, 0, static_cast<size_t>(
9439         reinterpret_cast<char*>(&double_value_) -
9440         reinterpret_cast<char*>(&positive_int_value_)) + sizeof(double_value_));
9441   }
9442   _has_bits_.Clear();
9443   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
9444 }
9445 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)9446 const char* UninterpretedOption::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
9447 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9448   _Internal::HasBits has_bits{};
9449   while (!ctx->Done(&ptr)) {
9450     uint32_t tag;
9451     ptr = ::_pbi::ReadTag(ptr, &tag);
9452     switch (tag >> 3) {
9453       // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
9454       case 2:
9455         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
9456           ptr -= 1;
9457           do {
9458             ptr += 1;
9459             ptr = ctx->ParseMessage(_internal_add_name(), ptr);
9460             CHK_(ptr);
9461             if (!ctx->DataAvailable(ptr)) break;
9462           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
9463         } else
9464           goto handle_unusual;
9465         continue;
9466       // optional string identifier_value = 3;
9467       case 3:
9468         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
9469           auto str = _internal_mutable_identifier_value();
9470           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
9471           CHK_(ptr);
9472           #ifndef NDEBUG
9473           ::_pbi::VerifyUTF8(str, "google.protobuf.UninterpretedOption.identifier_value");
9474           #endif  // !NDEBUG
9475         } else
9476           goto handle_unusual;
9477         continue;
9478       // optional uint64 positive_int_value = 4;
9479       case 4:
9480         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
9481           _Internal::set_has_positive_int_value(&has_bits);
9482           positive_int_value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
9483           CHK_(ptr);
9484         } else
9485           goto handle_unusual;
9486         continue;
9487       // optional int64 negative_int_value = 5;
9488       case 5:
9489         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
9490           _Internal::set_has_negative_int_value(&has_bits);
9491           negative_int_value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
9492           CHK_(ptr);
9493         } else
9494           goto handle_unusual;
9495         continue;
9496       // optional double double_value = 6;
9497       case 6:
9498         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 49)) {
9499           _Internal::set_has_double_value(&has_bits);
9500           double_value_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
9501           ptr += sizeof(double);
9502         } else
9503           goto handle_unusual;
9504         continue;
9505       // optional bytes string_value = 7;
9506       case 7:
9507         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
9508           auto str = _internal_mutable_string_value();
9509           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
9510           CHK_(ptr);
9511         } else
9512           goto handle_unusual;
9513         continue;
9514       // optional string aggregate_value = 8;
9515       case 8:
9516         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
9517           auto str = _internal_mutable_aggregate_value();
9518           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
9519           CHK_(ptr);
9520           #ifndef NDEBUG
9521           ::_pbi::VerifyUTF8(str, "google.protobuf.UninterpretedOption.aggregate_value");
9522           #endif  // !NDEBUG
9523         } else
9524           goto handle_unusual;
9525         continue;
9526       default:
9527         goto handle_unusual;
9528     }  // switch
9529   handle_unusual:
9530     if ((tag == 0) || ((tag & 7) == 4)) {
9531       CHK_(ptr);
9532       ctx->SetLastTag(tag);
9533       goto message_done;
9534     }
9535     ptr = UnknownFieldParse(
9536         tag,
9537         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
9538         ptr, ctx);
9539     CHK_(ptr != nullptr);
9540   }  // while
9541 message_done:
9542   _has_bits_.Or(has_bits);
9543   return ptr;
9544 failure:
9545   ptr = nullptr;
9546   goto message_done;
9547 #undef CHK_
9548 }
9549 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const9550 uint8_t* UninterpretedOption::_InternalSerialize(
9551     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
9552   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption)
9553   uint32_t cached_has_bits = 0;
9554   (void) cached_has_bits;
9555 
9556   // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
9557   for (unsigned i = 0,
9558       n = static_cast<unsigned>(this->_internal_name_size()); i < n; i++) {
9559     const auto& repfield = this->_internal_name(i);
9560     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
9561         InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
9562   }
9563 
9564   cached_has_bits = _has_bits_[0];
9565   // optional string identifier_value = 3;
9566   if (cached_has_bits & 0x00000001u) {
9567     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9568       this->_internal_identifier_value().data(), static_cast<int>(this->_internal_identifier_value().length()),
9569       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9570       "google.protobuf.UninterpretedOption.identifier_value");
9571     target = stream->WriteStringMaybeAliased(
9572         3, this->_internal_identifier_value(), target);
9573   }
9574 
9575   // optional uint64 positive_int_value = 4;
9576   if (cached_has_bits & 0x00000008u) {
9577     target = stream->EnsureSpace(target);
9578     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_positive_int_value(), target);
9579   }
9580 
9581   // optional int64 negative_int_value = 5;
9582   if (cached_has_bits & 0x00000010u) {
9583     target = stream->EnsureSpace(target);
9584     target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_negative_int_value(), target);
9585   }
9586 
9587   // optional double double_value = 6;
9588   if (cached_has_bits & 0x00000020u) {
9589     target = stream->EnsureSpace(target);
9590     target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_double_value(), target);
9591   }
9592 
9593   // optional bytes string_value = 7;
9594   if (cached_has_bits & 0x00000002u) {
9595     target = stream->WriteBytesMaybeAliased(
9596         7, this->_internal_string_value(), target);
9597   }
9598 
9599   // optional string aggregate_value = 8;
9600   if (cached_has_bits & 0x00000004u) {
9601     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9602       this->_internal_aggregate_value().data(), static_cast<int>(this->_internal_aggregate_value().length()),
9603       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9604       "google.protobuf.UninterpretedOption.aggregate_value");
9605     target = stream->WriteStringMaybeAliased(
9606         8, this->_internal_aggregate_value(), target);
9607   }
9608 
9609   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9610     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
9611         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
9612   }
9613   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UninterpretedOption)
9614   return target;
9615 }
9616 
ByteSizeLong() const9617 size_t UninterpretedOption::ByteSizeLong() const {
9618 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.UninterpretedOption)
9619   size_t total_size = 0;
9620 
9621   uint32_t cached_has_bits = 0;
9622   // Prevent compiler warnings about cached_has_bits being unused
9623   (void) cached_has_bits;
9624 
9625   // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
9626   total_size += 1UL * this->_internal_name_size();
9627   for (const auto& msg : this->name_) {
9628     total_size +=
9629       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
9630   }
9631 
9632   cached_has_bits = _has_bits_[0];
9633   if (cached_has_bits & 0x0000003fu) {
9634     // optional string identifier_value = 3;
9635     if (cached_has_bits & 0x00000001u) {
9636       total_size += 1 +
9637         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
9638           this->_internal_identifier_value());
9639     }
9640 
9641     // optional bytes string_value = 7;
9642     if (cached_has_bits & 0x00000002u) {
9643       total_size += 1 +
9644         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
9645           this->_internal_string_value());
9646     }
9647 
9648     // optional string aggregate_value = 8;
9649     if (cached_has_bits & 0x00000004u) {
9650       total_size += 1 +
9651         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
9652           this->_internal_aggregate_value());
9653     }
9654 
9655     // optional uint64 positive_int_value = 4;
9656     if (cached_has_bits & 0x00000008u) {
9657       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_positive_int_value());
9658     }
9659 
9660     // optional int64 negative_int_value = 5;
9661     if (cached_has_bits & 0x00000010u) {
9662       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_negative_int_value());
9663     }
9664 
9665     // optional double double_value = 6;
9666     if (cached_has_bits & 0x00000020u) {
9667       total_size += 1 + 8;
9668     }
9669 
9670   }
9671   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
9672 }
9673 
9674 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UninterpretedOption::_class_data_ = {
9675     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
9676     UninterpretedOption::MergeImpl
9677 };
GetClassData() const9678 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UninterpretedOption::GetClassData() const { return &_class_data_; }
9679 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)9680 void UninterpretedOption::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
9681                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
9682   static_cast<UninterpretedOption *>(to)->MergeFrom(
9683       static_cast<const UninterpretedOption &>(from));
9684 }
9685 
9686 
MergeFrom(const UninterpretedOption & from)9687 void UninterpretedOption::MergeFrom(const UninterpretedOption& from) {
9688 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UninterpretedOption)
9689   GOOGLE_DCHECK_NE(&from, this);
9690   uint32_t cached_has_bits = 0;
9691   (void) cached_has_bits;
9692 
9693   name_.MergeFrom(from.name_);
9694   cached_has_bits = from._has_bits_[0];
9695   if (cached_has_bits & 0x0000003fu) {
9696     if (cached_has_bits & 0x00000001u) {
9697       _internal_set_identifier_value(from._internal_identifier_value());
9698     }
9699     if (cached_has_bits & 0x00000002u) {
9700       _internal_set_string_value(from._internal_string_value());
9701     }
9702     if (cached_has_bits & 0x00000004u) {
9703       _internal_set_aggregate_value(from._internal_aggregate_value());
9704     }
9705     if (cached_has_bits & 0x00000008u) {
9706       positive_int_value_ = from.positive_int_value_;
9707     }
9708     if (cached_has_bits & 0x00000010u) {
9709       negative_int_value_ = from.negative_int_value_;
9710     }
9711     if (cached_has_bits & 0x00000020u) {
9712       double_value_ = from.double_value_;
9713     }
9714     _has_bits_[0] |= cached_has_bits;
9715   }
9716   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
9717 }
9718 
CopyFrom(const UninterpretedOption & from)9719 void UninterpretedOption::CopyFrom(const UninterpretedOption& from) {
9720 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.UninterpretedOption)
9721   if (&from == this) return;
9722   Clear();
9723   MergeFrom(from);
9724 }
9725 
IsInitialized() const9726 bool UninterpretedOption::IsInitialized() const {
9727   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(name_))
9728     return false;
9729   return true;
9730 }
9731 
InternalSwap(UninterpretedOption * other)9732 void UninterpretedOption::InternalSwap(UninterpretedOption* other) {
9733   using std::swap;
9734   auto* lhs_arena = GetArenaForAllocation();
9735   auto* rhs_arena = other->GetArenaForAllocation();
9736   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
9737   swap(_has_bits_[0], other->_has_bits_[0]);
9738   name_.InternalSwap(&other->name_);
9739   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
9740       &identifier_value_, lhs_arena,
9741       &other->identifier_value_, rhs_arena
9742   );
9743   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
9744       &string_value_, lhs_arena,
9745       &other->string_value_, rhs_arena
9746   );
9747   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
9748       &aggregate_value_, lhs_arena,
9749       &other->aggregate_value_, rhs_arena
9750   );
9751   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
9752       PROTOBUF_FIELD_OFFSET(UninterpretedOption, double_value_)
9753       + sizeof(UninterpretedOption::double_value_)
9754       - PROTOBUF_FIELD_OFFSET(UninterpretedOption, positive_int_value_)>(
9755           reinterpret_cast<char*>(&positive_int_value_),
9756           reinterpret_cast<char*>(&other->positive_int_value_));
9757 }
9758 
GetMetadata() const9759 ::PROTOBUF_NAMESPACE_ID::Metadata UninterpretedOption::GetMetadata() const {
9760   return ::_pbi::AssignDescriptors(
9761       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
9762       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[22]);
9763 }
9764 
9765 // ===================================================================
9766 
9767 class SourceCodeInfo_Location::_Internal {
9768  public:
9769   using HasBits = decltype(std::declval<SourceCodeInfo_Location>()._has_bits_);
set_has_leading_comments(HasBits * has_bits)9770   static void set_has_leading_comments(HasBits* has_bits) {
9771     (*has_bits)[0] |= 1u;
9772   }
set_has_trailing_comments(HasBits * has_bits)9773   static void set_has_trailing_comments(HasBits* has_bits) {
9774     (*has_bits)[0] |= 2u;
9775   }
9776 };
9777 
SourceCodeInfo_Location(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)9778 SourceCodeInfo_Location::SourceCodeInfo_Location(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9779                          bool is_message_owned)
9780   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
9781   path_(arena),
9782   span_(arena),
9783   leading_detached_comments_(arena) {
9784   SharedCtor();
9785   // @@protoc_insertion_point(arena_constructor:google.protobuf.SourceCodeInfo.Location)
9786 }
SourceCodeInfo_Location(const SourceCodeInfo_Location & from)9787 SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location& from)
9788   : ::PROTOBUF_NAMESPACE_ID::Message(),
9789       _has_bits_(from._has_bits_),
9790       path_(from.path_),
9791       span_(from.span_),
9792       leading_detached_comments_(from.leading_detached_comments_) {
9793   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
9794   leading_comments_.InitDefault();
9795   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9796     leading_comments_.Set("", GetArenaForAllocation());
9797   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9798   if (from._internal_has_leading_comments()) {
9799     leading_comments_.Set(from._internal_leading_comments(),
9800       GetArenaForAllocation());
9801   }
9802   trailing_comments_.InitDefault();
9803   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9804     trailing_comments_.Set("", GetArenaForAllocation());
9805   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9806   if (from._internal_has_trailing_comments()) {
9807     trailing_comments_.Set(from._internal_trailing_comments(),
9808       GetArenaForAllocation());
9809   }
9810   // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo.Location)
9811 }
9812 
SharedCtor()9813 inline void SourceCodeInfo_Location::SharedCtor() {
9814 leading_comments_.InitDefault();
9815 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9816   leading_comments_.Set("", GetArenaForAllocation());
9817 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9818 trailing_comments_.InitDefault();
9819 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9820   trailing_comments_.Set("", GetArenaForAllocation());
9821 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9822 }
9823 
~SourceCodeInfo_Location()9824 SourceCodeInfo_Location::~SourceCodeInfo_Location() {
9825   // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo.Location)
9826   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
9827   (void)arena;
9828     return;
9829   }
9830   SharedDtor();
9831 }
9832 
SharedDtor()9833 inline void SourceCodeInfo_Location::SharedDtor() {
9834   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
9835   leading_comments_.Destroy();
9836   trailing_comments_.Destroy();
9837 }
9838 
SetCachedSize(int size) const9839 void SourceCodeInfo_Location::SetCachedSize(int size) const {
9840   _cached_size_.Set(size);
9841 }
9842 
Clear()9843 void SourceCodeInfo_Location::Clear() {
9844 // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceCodeInfo.Location)
9845   uint32_t cached_has_bits = 0;
9846   // Prevent compiler warnings about cached_has_bits being unused
9847   (void) cached_has_bits;
9848 
9849   path_.Clear();
9850   span_.Clear();
9851   leading_detached_comments_.Clear();
9852   cached_has_bits = _has_bits_[0];
9853   if (cached_has_bits & 0x00000003u) {
9854     if (cached_has_bits & 0x00000001u) {
9855       leading_comments_.ClearNonDefaultToEmpty();
9856     }
9857     if (cached_has_bits & 0x00000002u) {
9858       trailing_comments_.ClearNonDefaultToEmpty();
9859     }
9860   }
9861   _has_bits_.Clear();
9862   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
9863 }
9864 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)9865 const char* SourceCodeInfo_Location::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
9866 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9867   _Internal::HasBits has_bits{};
9868   while (!ctx->Done(&ptr)) {
9869     uint32_t tag;
9870     ptr = ::_pbi::ReadTag(ptr, &tag);
9871     switch (tag >> 3) {
9872       // repeated int32 path = 1 [packed = true];
9873       case 1:
9874         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
9875           ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_path(), ptr, ctx);
9876           CHK_(ptr);
9877         } else if (static_cast<uint8_t>(tag) == 8) {
9878           _internal_add_path(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
9879           CHK_(ptr);
9880         } else
9881           goto handle_unusual;
9882         continue;
9883       // repeated int32 span = 2 [packed = true];
9884       case 2:
9885         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
9886           ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_span(), ptr, ctx);
9887           CHK_(ptr);
9888         } else if (static_cast<uint8_t>(tag) == 16) {
9889           _internal_add_span(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
9890           CHK_(ptr);
9891         } else
9892           goto handle_unusual;
9893         continue;
9894       // optional string leading_comments = 3;
9895       case 3:
9896         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
9897           auto str = _internal_mutable_leading_comments();
9898           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
9899           CHK_(ptr);
9900           #ifndef NDEBUG
9901           ::_pbi::VerifyUTF8(str, "google.protobuf.SourceCodeInfo.Location.leading_comments");
9902           #endif  // !NDEBUG
9903         } else
9904           goto handle_unusual;
9905         continue;
9906       // optional string trailing_comments = 4;
9907       case 4:
9908         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
9909           auto str = _internal_mutable_trailing_comments();
9910           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
9911           CHK_(ptr);
9912           #ifndef NDEBUG
9913           ::_pbi::VerifyUTF8(str, "google.protobuf.SourceCodeInfo.Location.trailing_comments");
9914           #endif  // !NDEBUG
9915         } else
9916           goto handle_unusual;
9917         continue;
9918       // repeated string leading_detached_comments = 6;
9919       case 6:
9920         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
9921           ptr -= 1;
9922           do {
9923             ptr += 1;
9924             auto str = _internal_add_leading_detached_comments();
9925             ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
9926             CHK_(ptr);
9927             #ifndef NDEBUG
9928             ::_pbi::VerifyUTF8(str, "google.protobuf.SourceCodeInfo.Location.leading_detached_comments");
9929             #endif  // !NDEBUG
9930             if (!ctx->DataAvailable(ptr)) break;
9931           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr));
9932         } else
9933           goto handle_unusual;
9934         continue;
9935       default:
9936         goto handle_unusual;
9937     }  // switch
9938   handle_unusual:
9939     if ((tag == 0) || ((tag & 7) == 4)) {
9940       CHK_(ptr);
9941       ctx->SetLastTag(tag);
9942       goto message_done;
9943     }
9944     ptr = UnknownFieldParse(
9945         tag,
9946         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
9947         ptr, ctx);
9948     CHK_(ptr != nullptr);
9949   }  // while
9950 message_done:
9951   _has_bits_.Or(has_bits);
9952   return ptr;
9953 failure:
9954   ptr = nullptr;
9955   goto message_done;
9956 #undef CHK_
9957 }
9958 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const9959 uint8_t* SourceCodeInfo_Location::_InternalSerialize(
9960     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
9961   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo.Location)
9962   uint32_t cached_has_bits = 0;
9963   (void) cached_has_bits;
9964 
9965   // repeated int32 path = 1 [packed = true];
9966   {
9967     int byte_size = _path_cached_byte_size_.load(std::memory_order_relaxed);
9968     if (byte_size > 0) {
9969       target = stream->WriteInt32Packed(
9970           1, _internal_path(), byte_size, target);
9971     }
9972   }
9973 
9974   // repeated int32 span = 2 [packed = true];
9975   {
9976     int byte_size = _span_cached_byte_size_.load(std::memory_order_relaxed);
9977     if (byte_size > 0) {
9978       target = stream->WriteInt32Packed(
9979           2, _internal_span(), byte_size, target);
9980     }
9981   }
9982 
9983   cached_has_bits = _has_bits_[0];
9984   // optional string leading_comments = 3;
9985   if (cached_has_bits & 0x00000001u) {
9986     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9987       this->_internal_leading_comments().data(), static_cast<int>(this->_internal_leading_comments().length()),
9988       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9989       "google.protobuf.SourceCodeInfo.Location.leading_comments");
9990     target = stream->WriteStringMaybeAliased(
9991         3, this->_internal_leading_comments(), target);
9992   }
9993 
9994   // optional string trailing_comments = 4;
9995   if (cached_has_bits & 0x00000002u) {
9996     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9997       this->_internal_trailing_comments().data(), static_cast<int>(this->_internal_trailing_comments().length()),
9998       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9999       "google.protobuf.SourceCodeInfo.Location.trailing_comments");
10000     target = stream->WriteStringMaybeAliased(
10001         4, this->_internal_trailing_comments(), target);
10002   }
10003 
10004   // repeated string leading_detached_comments = 6;
10005   for (int i = 0, n = this->_internal_leading_detached_comments_size(); i < n; i++) {
10006     const auto& s = this->_internal_leading_detached_comments(i);
10007     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
10008       s.data(), static_cast<int>(s.length()),
10009       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
10010       "google.protobuf.SourceCodeInfo.Location.leading_detached_comments");
10011     target = stream->WriteString(6, s, target);
10012   }
10013 
10014   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
10015     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
10016         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
10017   }
10018   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeInfo.Location)
10019   return target;
10020 }
10021 
ByteSizeLong() const10022 size_t SourceCodeInfo_Location::ByteSizeLong() const {
10023 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeInfo.Location)
10024   size_t total_size = 0;
10025 
10026   uint32_t cached_has_bits = 0;
10027   // Prevent compiler warnings about cached_has_bits being unused
10028   (void) cached_has_bits;
10029 
10030   // repeated int32 path = 1 [packed = true];
10031   {
10032     size_t data_size = ::_pbi::WireFormatLite::
10033       Int32Size(this->path_);
10034     if (data_size > 0) {
10035       total_size += 1 +
10036         ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
10037     }
10038     int cached_size = ::_pbi::ToCachedSize(data_size);
10039     _path_cached_byte_size_.store(cached_size,
10040                                     std::memory_order_relaxed);
10041     total_size += data_size;
10042   }
10043 
10044   // repeated int32 span = 2 [packed = true];
10045   {
10046     size_t data_size = ::_pbi::WireFormatLite::
10047       Int32Size(this->span_);
10048     if (data_size > 0) {
10049       total_size += 1 +
10050         ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
10051     }
10052     int cached_size = ::_pbi::ToCachedSize(data_size);
10053     _span_cached_byte_size_.store(cached_size,
10054                                     std::memory_order_relaxed);
10055     total_size += data_size;
10056   }
10057 
10058   // repeated string leading_detached_comments = 6;
10059   total_size += 1 *
10060       ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(leading_detached_comments_.size());
10061   for (int i = 0, n = leading_detached_comments_.size(); i < n; i++) {
10062     total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
10063       leading_detached_comments_.Get(i));
10064   }
10065 
10066   cached_has_bits = _has_bits_[0];
10067   if (cached_has_bits & 0x00000003u) {
10068     // optional string leading_comments = 3;
10069     if (cached_has_bits & 0x00000001u) {
10070       total_size += 1 +
10071         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
10072           this->_internal_leading_comments());
10073     }
10074 
10075     // optional string trailing_comments = 4;
10076     if (cached_has_bits & 0x00000002u) {
10077       total_size += 1 +
10078         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
10079           this->_internal_trailing_comments());
10080     }
10081 
10082   }
10083   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
10084 }
10085 
10086 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SourceCodeInfo_Location::_class_data_ = {
10087     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
10088     SourceCodeInfo_Location::MergeImpl
10089 };
GetClassData() const10090 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SourceCodeInfo_Location::GetClassData() const { return &_class_data_; }
10091 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)10092 void SourceCodeInfo_Location::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
10093                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
10094   static_cast<SourceCodeInfo_Location *>(to)->MergeFrom(
10095       static_cast<const SourceCodeInfo_Location &>(from));
10096 }
10097 
10098 
MergeFrom(const SourceCodeInfo_Location & from)10099 void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) {
10100 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.SourceCodeInfo.Location)
10101   GOOGLE_DCHECK_NE(&from, this);
10102   uint32_t cached_has_bits = 0;
10103   (void) cached_has_bits;
10104 
10105   path_.MergeFrom(from.path_);
10106   span_.MergeFrom(from.span_);
10107   leading_detached_comments_.MergeFrom(from.leading_detached_comments_);
10108   cached_has_bits = from._has_bits_[0];
10109   if (cached_has_bits & 0x00000003u) {
10110     if (cached_has_bits & 0x00000001u) {
10111       _internal_set_leading_comments(from._internal_leading_comments());
10112     }
10113     if (cached_has_bits & 0x00000002u) {
10114       _internal_set_trailing_comments(from._internal_trailing_comments());
10115     }
10116   }
10117   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
10118 }
10119 
CopyFrom(const SourceCodeInfo_Location & from)10120 void SourceCodeInfo_Location::CopyFrom(const SourceCodeInfo_Location& from) {
10121 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.SourceCodeInfo.Location)
10122   if (&from == this) return;
10123   Clear();
10124   MergeFrom(from);
10125 }
10126 
IsInitialized() const10127 bool SourceCodeInfo_Location::IsInitialized() const {
10128   return true;
10129 }
10130 
InternalSwap(SourceCodeInfo_Location * other)10131 void SourceCodeInfo_Location::InternalSwap(SourceCodeInfo_Location* other) {
10132   using std::swap;
10133   auto* lhs_arena = GetArenaForAllocation();
10134   auto* rhs_arena = other->GetArenaForAllocation();
10135   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
10136   swap(_has_bits_[0], other->_has_bits_[0]);
10137   path_.InternalSwap(&other->path_);
10138   span_.InternalSwap(&other->span_);
10139   leading_detached_comments_.InternalSwap(&other->leading_detached_comments_);
10140   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
10141       &leading_comments_, lhs_arena,
10142       &other->leading_comments_, rhs_arena
10143   );
10144   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
10145       &trailing_comments_, lhs_arena,
10146       &other->trailing_comments_, rhs_arena
10147   );
10148 }
10149 
GetMetadata() const10150 ::PROTOBUF_NAMESPACE_ID::Metadata SourceCodeInfo_Location::GetMetadata() const {
10151   return ::_pbi::AssignDescriptors(
10152       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
10153       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[23]);
10154 }
10155 
10156 // ===================================================================
10157 
10158 class SourceCodeInfo::_Internal {
10159  public:
10160 };
10161 
SourceCodeInfo(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)10162 SourceCodeInfo::SourceCodeInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
10163                          bool is_message_owned)
10164   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
10165   location_(arena) {
10166   SharedCtor();
10167   // @@protoc_insertion_point(arena_constructor:google.protobuf.SourceCodeInfo)
10168 }
SourceCodeInfo(const SourceCodeInfo & from)10169 SourceCodeInfo::SourceCodeInfo(const SourceCodeInfo& from)
10170   : ::PROTOBUF_NAMESPACE_ID::Message(),
10171       location_(from.location_) {
10172   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
10173   // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo)
10174 }
10175 
SharedCtor()10176 inline void SourceCodeInfo::SharedCtor() {
10177 }
10178 
~SourceCodeInfo()10179 SourceCodeInfo::~SourceCodeInfo() {
10180   // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo)
10181   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
10182   (void)arena;
10183     return;
10184   }
10185   SharedDtor();
10186 }
10187 
SharedDtor()10188 inline void SourceCodeInfo::SharedDtor() {
10189   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
10190 }
10191 
SetCachedSize(int size) const10192 void SourceCodeInfo::SetCachedSize(int size) const {
10193   _cached_size_.Set(size);
10194 }
10195 
Clear()10196 void SourceCodeInfo::Clear() {
10197 // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceCodeInfo)
10198   uint32_t cached_has_bits = 0;
10199   // Prevent compiler warnings about cached_has_bits being unused
10200   (void) cached_has_bits;
10201 
10202   location_.Clear();
10203   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
10204 }
10205 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)10206 const char* SourceCodeInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
10207 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
10208   while (!ctx->Done(&ptr)) {
10209     uint32_t tag;
10210     ptr = ::_pbi::ReadTag(ptr, &tag);
10211     switch (tag >> 3) {
10212       // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
10213       case 1:
10214         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
10215           ptr -= 1;
10216           do {
10217             ptr += 1;
10218             ptr = ctx->ParseMessage(_internal_add_location(), ptr);
10219             CHK_(ptr);
10220             if (!ctx->DataAvailable(ptr)) break;
10221           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
10222         } else
10223           goto handle_unusual;
10224         continue;
10225       default:
10226         goto handle_unusual;
10227     }  // switch
10228   handle_unusual:
10229     if ((tag == 0) || ((tag & 7) == 4)) {
10230       CHK_(ptr);
10231       ctx->SetLastTag(tag);
10232       goto message_done;
10233     }
10234     ptr = UnknownFieldParse(
10235         tag,
10236         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
10237         ptr, ctx);
10238     CHK_(ptr != nullptr);
10239   }  // while
10240 message_done:
10241   return ptr;
10242 failure:
10243   ptr = nullptr;
10244   goto message_done;
10245 #undef CHK_
10246 }
10247 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const10248 uint8_t* SourceCodeInfo::_InternalSerialize(
10249     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
10250   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo)
10251   uint32_t cached_has_bits = 0;
10252   (void) cached_has_bits;
10253 
10254   // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
10255   for (unsigned i = 0,
10256       n = static_cast<unsigned>(this->_internal_location_size()); i < n; i++) {
10257     const auto& repfield = this->_internal_location(i);
10258     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
10259         InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
10260   }
10261 
10262   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
10263     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
10264         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
10265   }
10266   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeInfo)
10267   return target;
10268 }
10269 
ByteSizeLong() const10270 size_t SourceCodeInfo::ByteSizeLong() const {
10271 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeInfo)
10272   size_t total_size = 0;
10273 
10274   uint32_t cached_has_bits = 0;
10275   // Prevent compiler warnings about cached_has_bits being unused
10276   (void) cached_has_bits;
10277 
10278   // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
10279   total_size += 1UL * this->_internal_location_size();
10280   for (const auto& msg : this->location_) {
10281     total_size +=
10282       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
10283   }
10284 
10285   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
10286 }
10287 
10288 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SourceCodeInfo::_class_data_ = {
10289     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
10290     SourceCodeInfo::MergeImpl
10291 };
GetClassData() const10292 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SourceCodeInfo::GetClassData() const { return &_class_data_; }
10293 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)10294 void SourceCodeInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
10295                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
10296   static_cast<SourceCodeInfo *>(to)->MergeFrom(
10297       static_cast<const SourceCodeInfo &>(from));
10298 }
10299 
10300 
MergeFrom(const SourceCodeInfo & from)10301 void SourceCodeInfo::MergeFrom(const SourceCodeInfo& from) {
10302 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.SourceCodeInfo)
10303   GOOGLE_DCHECK_NE(&from, this);
10304   uint32_t cached_has_bits = 0;
10305   (void) cached_has_bits;
10306 
10307   location_.MergeFrom(from.location_);
10308   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
10309 }
10310 
CopyFrom(const SourceCodeInfo & from)10311 void SourceCodeInfo::CopyFrom(const SourceCodeInfo& from) {
10312 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.SourceCodeInfo)
10313   if (&from == this) return;
10314   Clear();
10315   MergeFrom(from);
10316 }
10317 
IsInitialized() const10318 bool SourceCodeInfo::IsInitialized() const {
10319   return true;
10320 }
10321 
InternalSwap(SourceCodeInfo * other)10322 void SourceCodeInfo::InternalSwap(SourceCodeInfo* other) {
10323   using std::swap;
10324   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
10325   location_.InternalSwap(&other->location_);
10326 }
10327 
GetMetadata() const10328 ::PROTOBUF_NAMESPACE_ID::Metadata SourceCodeInfo::GetMetadata() const {
10329   return ::_pbi::AssignDescriptors(
10330       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
10331       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[24]);
10332 }
10333 
10334 // ===================================================================
10335 
10336 class GeneratedCodeInfo_Annotation::_Internal {
10337  public:
10338   using HasBits = decltype(std::declval<GeneratedCodeInfo_Annotation>()._has_bits_);
set_has_source_file(HasBits * has_bits)10339   static void set_has_source_file(HasBits* has_bits) {
10340     (*has_bits)[0] |= 1u;
10341   }
set_has_begin(HasBits * has_bits)10342   static void set_has_begin(HasBits* has_bits) {
10343     (*has_bits)[0] |= 2u;
10344   }
set_has_end(HasBits * has_bits)10345   static void set_has_end(HasBits* has_bits) {
10346     (*has_bits)[0] |= 4u;
10347   }
10348 };
10349 
GeneratedCodeInfo_Annotation(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)10350 GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(::PROTOBUF_NAMESPACE_ID::Arena* arena,
10351                          bool is_message_owned)
10352   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
10353   path_(arena) {
10354   SharedCtor();
10355   // @@protoc_insertion_point(arena_constructor:google.protobuf.GeneratedCodeInfo.Annotation)
10356 }
GeneratedCodeInfo_Annotation(const GeneratedCodeInfo_Annotation & from)10357 GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(const GeneratedCodeInfo_Annotation& from)
10358   : ::PROTOBUF_NAMESPACE_ID::Message(),
10359       _has_bits_(from._has_bits_),
10360       path_(from.path_) {
10361   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
10362   source_file_.InitDefault();
10363   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
10364     source_file_.Set("", GetArenaForAllocation());
10365   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
10366   if (from._internal_has_source_file()) {
10367     source_file_.Set(from._internal_source_file(),
10368       GetArenaForAllocation());
10369   }
10370   ::memcpy(&begin_, &from.begin_,
10371     static_cast<size_t>(reinterpret_cast<char*>(&end_) -
10372     reinterpret_cast<char*>(&begin_)) + sizeof(end_));
10373   // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo.Annotation)
10374 }
10375 
SharedCtor()10376 inline void GeneratedCodeInfo_Annotation::SharedCtor() {
10377 source_file_.InitDefault();
10378 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
10379   source_file_.Set("", GetArenaForAllocation());
10380 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
10381 ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
10382     reinterpret_cast<char*>(&begin_) - reinterpret_cast<char*>(this)),
10383     0, static_cast<size_t>(reinterpret_cast<char*>(&end_) -
10384     reinterpret_cast<char*>(&begin_)) + sizeof(end_));
10385 }
10386 
~GeneratedCodeInfo_Annotation()10387 GeneratedCodeInfo_Annotation::~GeneratedCodeInfo_Annotation() {
10388   // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo.Annotation)
10389   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
10390   (void)arena;
10391     return;
10392   }
10393   SharedDtor();
10394 }
10395 
SharedDtor()10396 inline void GeneratedCodeInfo_Annotation::SharedDtor() {
10397   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
10398   source_file_.Destroy();
10399 }
10400 
SetCachedSize(int size) const10401 void GeneratedCodeInfo_Annotation::SetCachedSize(int size) const {
10402   _cached_size_.Set(size);
10403 }
10404 
Clear()10405 void GeneratedCodeInfo_Annotation::Clear() {
10406 // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInfo.Annotation)
10407   uint32_t cached_has_bits = 0;
10408   // Prevent compiler warnings about cached_has_bits being unused
10409   (void) cached_has_bits;
10410 
10411   path_.Clear();
10412   cached_has_bits = _has_bits_[0];
10413   if (cached_has_bits & 0x00000001u) {
10414     source_file_.ClearNonDefaultToEmpty();
10415   }
10416   if (cached_has_bits & 0x00000006u) {
10417     ::memset(&begin_, 0, static_cast<size_t>(
10418         reinterpret_cast<char*>(&end_) -
10419         reinterpret_cast<char*>(&begin_)) + sizeof(end_));
10420   }
10421   _has_bits_.Clear();
10422   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
10423 }
10424 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)10425 const char* GeneratedCodeInfo_Annotation::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
10426 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
10427   _Internal::HasBits has_bits{};
10428   while (!ctx->Done(&ptr)) {
10429     uint32_t tag;
10430     ptr = ::_pbi::ReadTag(ptr, &tag);
10431     switch (tag >> 3) {
10432       // repeated int32 path = 1 [packed = true];
10433       case 1:
10434         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
10435           ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_path(), ptr, ctx);
10436           CHK_(ptr);
10437         } else if (static_cast<uint8_t>(tag) == 8) {
10438           _internal_add_path(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
10439           CHK_(ptr);
10440         } else
10441           goto handle_unusual;
10442         continue;
10443       // optional string source_file = 2;
10444       case 2:
10445         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
10446           auto str = _internal_mutable_source_file();
10447           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
10448           CHK_(ptr);
10449           #ifndef NDEBUG
10450           ::_pbi::VerifyUTF8(str, "google.protobuf.GeneratedCodeInfo.Annotation.source_file");
10451           #endif  // !NDEBUG
10452         } else
10453           goto handle_unusual;
10454         continue;
10455       // optional int32 begin = 3;
10456       case 3:
10457         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
10458           _Internal::set_has_begin(&has_bits);
10459           begin_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
10460           CHK_(ptr);
10461         } else
10462           goto handle_unusual;
10463         continue;
10464       // optional int32 end = 4;
10465       case 4:
10466         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
10467           _Internal::set_has_end(&has_bits);
10468           end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
10469           CHK_(ptr);
10470         } else
10471           goto handle_unusual;
10472         continue;
10473       default:
10474         goto handle_unusual;
10475     }  // switch
10476   handle_unusual:
10477     if ((tag == 0) || ((tag & 7) == 4)) {
10478       CHK_(ptr);
10479       ctx->SetLastTag(tag);
10480       goto message_done;
10481     }
10482     ptr = UnknownFieldParse(
10483         tag,
10484         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
10485         ptr, ctx);
10486     CHK_(ptr != nullptr);
10487   }  // while
10488 message_done:
10489   _has_bits_.Or(has_bits);
10490   return ptr;
10491 failure:
10492   ptr = nullptr;
10493   goto message_done;
10494 #undef CHK_
10495 }
10496 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const10497 uint8_t* GeneratedCodeInfo_Annotation::_InternalSerialize(
10498     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
10499   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.GeneratedCodeInfo.Annotation)
10500   uint32_t cached_has_bits = 0;
10501   (void) cached_has_bits;
10502 
10503   // repeated int32 path = 1 [packed = true];
10504   {
10505     int byte_size = _path_cached_byte_size_.load(std::memory_order_relaxed);
10506     if (byte_size > 0) {
10507       target = stream->WriteInt32Packed(
10508           1, _internal_path(), byte_size, target);
10509     }
10510   }
10511 
10512   cached_has_bits = _has_bits_[0];
10513   // optional string source_file = 2;
10514   if (cached_has_bits & 0x00000001u) {
10515     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
10516       this->_internal_source_file().data(), static_cast<int>(this->_internal_source_file().length()),
10517       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
10518       "google.protobuf.GeneratedCodeInfo.Annotation.source_file");
10519     target = stream->WriteStringMaybeAliased(
10520         2, this->_internal_source_file(), target);
10521   }
10522 
10523   // optional int32 begin = 3;
10524   if (cached_has_bits & 0x00000002u) {
10525     target = stream->EnsureSpace(target);
10526     target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_begin(), target);
10527   }
10528 
10529   // optional int32 end = 4;
10530   if (cached_has_bits & 0x00000004u) {
10531     target = stream->EnsureSpace(target);
10532     target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_end(), target);
10533   }
10534 
10535   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
10536     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
10537         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
10538   }
10539   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCodeInfo.Annotation)
10540   return target;
10541 }
10542 
ByteSizeLong() const10543 size_t GeneratedCodeInfo_Annotation::ByteSizeLong() const {
10544 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCodeInfo.Annotation)
10545   size_t total_size = 0;
10546 
10547   uint32_t cached_has_bits = 0;
10548   // Prevent compiler warnings about cached_has_bits being unused
10549   (void) cached_has_bits;
10550 
10551   // repeated int32 path = 1 [packed = true];
10552   {
10553     size_t data_size = ::_pbi::WireFormatLite::
10554       Int32Size(this->path_);
10555     if (data_size > 0) {
10556       total_size += 1 +
10557         ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
10558     }
10559     int cached_size = ::_pbi::ToCachedSize(data_size);
10560     _path_cached_byte_size_.store(cached_size,
10561                                     std::memory_order_relaxed);
10562     total_size += data_size;
10563   }
10564 
10565   cached_has_bits = _has_bits_[0];
10566   if (cached_has_bits & 0x00000007u) {
10567     // optional string source_file = 2;
10568     if (cached_has_bits & 0x00000001u) {
10569       total_size += 1 +
10570         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
10571           this->_internal_source_file());
10572     }
10573 
10574     // optional int32 begin = 3;
10575     if (cached_has_bits & 0x00000002u) {
10576       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_begin());
10577     }
10578 
10579     // optional int32 end = 4;
10580     if (cached_has_bits & 0x00000004u) {
10581       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_end());
10582     }
10583 
10584   }
10585   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
10586 }
10587 
10588 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GeneratedCodeInfo_Annotation::_class_data_ = {
10589     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
10590     GeneratedCodeInfo_Annotation::MergeImpl
10591 };
GetClassData() const10592 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GeneratedCodeInfo_Annotation::GetClassData() const { return &_class_data_; }
10593 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)10594 void GeneratedCodeInfo_Annotation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
10595                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
10596   static_cast<GeneratedCodeInfo_Annotation *>(to)->MergeFrom(
10597       static_cast<const GeneratedCodeInfo_Annotation &>(from));
10598 }
10599 
10600 
MergeFrom(const GeneratedCodeInfo_Annotation & from)10601 void GeneratedCodeInfo_Annotation::MergeFrom(const GeneratedCodeInfo_Annotation& from) {
10602 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.GeneratedCodeInfo.Annotation)
10603   GOOGLE_DCHECK_NE(&from, this);
10604   uint32_t cached_has_bits = 0;
10605   (void) cached_has_bits;
10606 
10607   path_.MergeFrom(from.path_);
10608   cached_has_bits = from._has_bits_[0];
10609   if (cached_has_bits & 0x00000007u) {
10610     if (cached_has_bits & 0x00000001u) {
10611       _internal_set_source_file(from._internal_source_file());
10612     }
10613     if (cached_has_bits & 0x00000002u) {
10614       begin_ = from.begin_;
10615     }
10616     if (cached_has_bits & 0x00000004u) {
10617       end_ = from.end_;
10618     }
10619     _has_bits_[0] |= cached_has_bits;
10620   }
10621   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
10622 }
10623 
CopyFrom(const GeneratedCodeInfo_Annotation & from)10624 void GeneratedCodeInfo_Annotation::CopyFrom(const GeneratedCodeInfo_Annotation& from) {
10625 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.GeneratedCodeInfo.Annotation)
10626   if (&from == this) return;
10627   Clear();
10628   MergeFrom(from);
10629 }
10630 
IsInitialized() const10631 bool GeneratedCodeInfo_Annotation::IsInitialized() const {
10632   return true;
10633 }
10634 
InternalSwap(GeneratedCodeInfo_Annotation * other)10635 void GeneratedCodeInfo_Annotation::InternalSwap(GeneratedCodeInfo_Annotation* other) {
10636   using std::swap;
10637   auto* lhs_arena = GetArenaForAllocation();
10638   auto* rhs_arena = other->GetArenaForAllocation();
10639   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
10640   swap(_has_bits_[0], other->_has_bits_[0]);
10641   path_.InternalSwap(&other->path_);
10642   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
10643       &source_file_, lhs_arena,
10644       &other->source_file_, rhs_arena
10645   );
10646   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
10647       PROTOBUF_FIELD_OFFSET(GeneratedCodeInfo_Annotation, end_)
10648       + sizeof(GeneratedCodeInfo_Annotation::end_)
10649       - PROTOBUF_FIELD_OFFSET(GeneratedCodeInfo_Annotation, begin_)>(
10650           reinterpret_cast<char*>(&begin_),
10651           reinterpret_cast<char*>(&other->begin_));
10652 }
10653 
GetMetadata() const10654 ::PROTOBUF_NAMESPACE_ID::Metadata GeneratedCodeInfo_Annotation::GetMetadata() const {
10655   return ::_pbi::AssignDescriptors(
10656       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
10657       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[25]);
10658 }
10659 
10660 // ===================================================================
10661 
10662 class GeneratedCodeInfo::_Internal {
10663  public:
10664 };
10665 
GeneratedCodeInfo(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)10666 GeneratedCodeInfo::GeneratedCodeInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
10667                          bool is_message_owned)
10668   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
10669   annotation_(arena) {
10670   SharedCtor();
10671   // @@protoc_insertion_point(arena_constructor:google.protobuf.GeneratedCodeInfo)
10672 }
GeneratedCodeInfo(const GeneratedCodeInfo & from)10673 GeneratedCodeInfo::GeneratedCodeInfo(const GeneratedCodeInfo& from)
10674   : ::PROTOBUF_NAMESPACE_ID::Message(),
10675       annotation_(from.annotation_) {
10676   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
10677   // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo)
10678 }
10679 
SharedCtor()10680 inline void GeneratedCodeInfo::SharedCtor() {
10681 }
10682 
~GeneratedCodeInfo()10683 GeneratedCodeInfo::~GeneratedCodeInfo() {
10684   // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo)
10685   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
10686   (void)arena;
10687     return;
10688   }
10689   SharedDtor();
10690 }
10691 
SharedDtor()10692 inline void GeneratedCodeInfo::SharedDtor() {
10693   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
10694 }
10695 
SetCachedSize(int size) const10696 void GeneratedCodeInfo::SetCachedSize(int size) const {
10697   _cached_size_.Set(size);
10698 }
10699 
Clear()10700 void GeneratedCodeInfo::Clear() {
10701 // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInfo)
10702   uint32_t cached_has_bits = 0;
10703   // Prevent compiler warnings about cached_has_bits being unused
10704   (void) cached_has_bits;
10705 
10706   annotation_.Clear();
10707   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
10708 }
10709 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)10710 const char* GeneratedCodeInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
10711 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
10712   while (!ctx->Done(&ptr)) {
10713     uint32_t tag;
10714     ptr = ::_pbi::ReadTag(ptr, &tag);
10715     switch (tag >> 3) {
10716       // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
10717       case 1:
10718         if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
10719           ptr -= 1;
10720           do {
10721             ptr += 1;
10722             ptr = ctx->ParseMessage(_internal_add_annotation(), ptr);
10723             CHK_(ptr);
10724             if (!ctx->DataAvailable(ptr)) break;
10725           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
10726         } else
10727           goto handle_unusual;
10728         continue;
10729       default:
10730         goto handle_unusual;
10731     }  // switch
10732   handle_unusual:
10733     if ((tag == 0) || ((tag & 7) == 4)) {
10734       CHK_(ptr);
10735       ctx->SetLastTag(tag);
10736       goto message_done;
10737     }
10738     ptr = UnknownFieldParse(
10739         tag,
10740         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
10741         ptr, ctx);
10742     CHK_(ptr != nullptr);
10743   }  // while
10744 message_done:
10745   return ptr;
10746 failure:
10747   ptr = nullptr;
10748   goto message_done;
10749 #undef CHK_
10750 }
10751 
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const10752 uint8_t* GeneratedCodeInfo::_InternalSerialize(
10753     uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
10754   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.GeneratedCodeInfo)
10755   uint32_t cached_has_bits = 0;
10756   (void) cached_has_bits;
10757 
10758   // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
10759   for (unsigned i = 0,
10760       n = static_cast<unsigned>(this->_internal_annotation_size()); i < n; i++) {
10761     const auto& repfield = this->_internal_annotation(i);
10762     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
10763         InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
10764   }
10765 
10766   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
10767     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
10768         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
10769   }
10770   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCodeInfo)
10771   return target;
10772 }
10773 
ByteSizeLong() const10774 size_t GeneratedCodeInfo::ByteSizeLong() const {
10775 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCodeInfo)
10776   size_t total_size = 0;
10777 
10778   uint32_t cached_has_bits = 0;
10779   // Prevent compiler warnings about cached_has_bits being unused
10780   (void) cached_has_bits;
10781 
10782   // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
10783   total_size += 1UL * this->_internal_annotation_size();
10784   for (const auto& msg : this->annotation_) {
10785     total_size +=
10786       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
10787   }
10788 
10789   return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
10790 }
10791 
10792 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GeneratedCodeInfo::_class_data_ = {
10793     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
10794     GeneratedCodeInfo::MergeImpl
10795 };
GetClassData() const10796 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GeneratedCodeInfo::GetClassData() const { return &_class_data_; }
10797 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message * to,const::PROTOBUF_NAMESPACE_ID::Message & from)10798 void GeneratedCodeInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
10799                       const ::PROTOBUF_NAMESPACE_ID::Message& from) {
10800   static_cast<GeneratedCodeInfo *>(to)->MergeFrom(
10801       static_cast<const GeneratedCodeInfo &>(from));
10802 }
10803 
10804 
MergeFrom(const GeneratedCodeInfo & from)10805 void GeneratedCodeInfo::MergeFrom(const GeneratedCodeInfo& from) {
10806 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.GeneratedCodeInfo)
10807   GOOGLE_DCHECK_NE(&from, this);
10808   uint32_t cached_has_bits = 0;
10809   (void) cached_has_bits;
10810 
10811   annotation_.MergeFrom(from.annotation_);
10812   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
10813 }
10814 
CopyFrom(const GeneratedCodeInfo & from)10815 void GeneratedCodeInfo::CopyFrom(const GeneratedCodeInfo& from) {
10816 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.GeneratedCodeInfo)
10817   if (&from == this) return;
10818   Clear();
10819   MergeFrom(from);
10820 }
10821 
IsInitialized() const10822 bool GeneratedCodeInfo::IsInitialized() const {
10823   return true;
10824 }
10825 
InternalSwap(GeneratedCodeInfo * other)10826 void GeneratedCodeInfo::InternalSwap(GeneratedCodeInfo* other) {
10827   using std::swap;
10828   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
10829   annotation_.InternalSwap(&other->annotation_);
10830 }
10831 
GetMetadata() const10832 ::PROTOBUF_NAMESPACE_ID::Metadata GeneratedCodeInfo::GetMetadata() const {
10833   return ::_pbi::AssignDescriptors(
10834       &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_getter, &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once,
10835       file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[26]);
10836 }
10837 
10838 // @@protoc_insertion_point(namespace_scope)
10839 PROTOBUF_NAMESPACE_CLOSE
10840 PROTOBUF_NAMESPACE_OPEN
10841 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::FileDescriptorSet*
CreateMaybeMessage(Arena * arena)10842 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::FileDescriptorSet >(Arena* arena) {
10843   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::FileDescriptorSet >(arena);
10844 }
10845 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto*
CreateMaybeMessage(Arena * arena)10846 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >(Arena* arena) {
10847   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >(arena);
10848 }
10849 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange*
CreateMaybeMessage(Arena * arena)10850 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange >(Arena* arena) {
10851   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange >(arena);
10852 }
10853 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange*
CreateMaybeMessage(Arena * arena)10854 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange >(Arena* arena) {
10855   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange >(arena);
10856 }
10857 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::DescriptorProto*
CreateMaybeMessage(Arena * arena)10858 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >(Arena* arena) {
10859   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >(arena);
10860 }
10861 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions*
CreateMaybeMessage(Arena * arena)10862 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions >(Arena* arena) {
10863   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions >(arena);
10864 }
10865 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto*
CreateMaybeMessage(Arena * arena)10866 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >(Arena* arena) {
10867   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >(arena);
10868 }
10869 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto*
CreateMaybeMessage(Arena * arena)10870 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto >(Arena* arena) {
10871   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto >(arena);
10872 }
10873 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange*
CreateMaybeMessage(Arena * arena)10874 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange >(Arena* arena) {
10875   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange >(arena);
10876 }
10877 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto*
CreateMaybeMessage(Arena * arena)10878 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >(Arena* arena) {
10879   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >(arena);
10880 }
10881 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto*
CreateMaybeMessage(Arena * arena)10882 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto >(Arena* arena) {
10883   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto >(arena);
10884 }
10885 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto*
CreateMaybeMessage(Arena * arena)10886 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto >(Arena* arena) {
10887   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto >(arena);
10888 }
10889 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto*
CreateMaybeMessage(Arena * arena)10890 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto >(Arena* arena) {
10891   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto >(arena);
10892 }
10893 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::FileOptions*
CreateMaybeMessage(Arena * arena)10894 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::FileOptions >(Arena* arena) {
10895   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::FileOptions >(arena);
10896 }
10897 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::MessageOptions*
CreateMaybeMessage(Arena * arena)10898 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::MessageOptions >(Arena* arena) {
10899   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::MessageOptions >(arena);
10900 }
10901 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::FieldOptions*
CreateMaybeMessage(Arena * arena)10902 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::FieldOptions >(Arena* arena) {
10903   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::FieldOptions >(arena);
10904 }
10905 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::OneofOptions*
CreateMaybeMessage(Arena * arena)10906 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::OneofOptions >(Arena* arena) {
10907   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::OneofOptions >(arena);
10908 }
10909 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::EnumOptions*
CreateMaybeMessage(Arena * arena)10910 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::EnumOptions >(Arena* arena) {
10911   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::EnumOptions >(arena);
10912 }
10913 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::EnumValueOptions*
CreateMaybeMessage(Arena * arena)10914 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::EnumValueOptions >(Arena* arena) {
10915   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::EnumValueOptions >(arena);
10916 }
10917 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::ServiceOptions*
CreateMaybeMessage(Arena * arena)10918 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::ServiceOptions >(Arena* arena) {
10919   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::ServiceOptions >(arena);
10920 }
10921 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::MethodOptions*
CreateMaybeMessage(Arena * arena)10922 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::MethodOptions >(Arena* arena) {
10923   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::MethodOptions >(arena);
10924 }
10925 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart*
CreateMaybeMessage(Arena * arena)10926 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart >(Arena* arena) {
10927   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart >(arena);
10928 }
10929 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::UninterpretedOption*
CreateMaybeMessage(Arena * arena)10930 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >(Arena* arena) {
10931   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >(arena);
10932 }
10933 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location*
CreateMaybeMessage(Arena * arena)10934 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location >(Arena* arena) {
10935   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location >(arena);
10936 }
10937 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo*
CreateMaybeMessage(Arena * arena)10938 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo >(Arena* arena) {
10939   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo >(arena);
10940 }
10941 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation*
CreateMaybeMessage(Arena * arena)10942 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation >(Arena* arena) {
10943   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation >(arena);
10944 }
10945 template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo*
CreateMaybeMessage(Arena * arena)10946 Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo >(Arena* arena) {
10947   return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo >(arena);
10948 }
10949 PROTOBUF_NAMESPACE_CLOSE
10950 
10951 // @@protoc_insertion_point(global_scope)
10952 #include <google/protobuf/port_undef.inc>
10953