• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/stubs/common.h>
9 #include <google/protobuf/io/coded_stream.h>
10 #include <google/protobuf/extension_set.h>
11 #include <google/protobuf/wire_format_lite.h>
12 #include <google/protobuf/descriptor.h>
13 #include <google/protobuf/generated_message_reflection.h>
14 #include <google/protobuf/reflection_ops.h>
15 #include <google/protobuf/wire_format.h>
16 // @@protoc_insertion_point(includes)
17 #include <google/protobuf/port_def.inc>
18 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<6> scc_info_DescriptorProto_google_2fprotobuf_2fdescriptor_2eproto;
19 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DescriptorProto_ExtensionRange_google_2fprotobuf_2fdescriptor_2eproto;
20 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DescriptorProto_ReservedRange_google_2fprotobuf_2fdescriptor_2eproto;
21 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_EnumDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto;
22 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EnumDescriptorProto_EnumReservedRange_google_2fprotobuf_2fdescriptor_2eproto;
23 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EnumOptions_google_2fprotobuf_2fdescriptor_2eproto;
24 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EnumValueDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto;
25 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EnumValueOptions_google_2fprotobuf_2fdescriptor_2eproto;
26 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ExtensionRangeOptions_google_2fprotobuf_2fdescriptor_2eproto;
27 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FieldDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto;
28 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FieldOptions_google_2fprotobuf_2fdescriptor_2eproto;
29 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<6> scc_info_FileDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto;
30 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FileOptions_google_2fprotobuf_2fdescriptor_2eproto;
31 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GeneratedCodeInfo_Annotation_google_2fprotobuf_2fdescriptor_2eproto;
32 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MessageOptions_google_2fprotobuf_2fdescriptor_2eproto;
33 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MethodDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto;
34 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MethodOptions_google_2fprotobuf_2fdescriptor_2eproto;
35 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OneofDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto;
36 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OneofOptions_google_2fprotobuf_2fdescriptor_2eproto;
37 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_ServiceDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto;
38 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ServiceOptions_google_2fprotobuf_2fdescriptor_2eproto;
39 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SourceCodeInfo_google_2fprotobuf_2fdescriptor_2eproto;
40 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SourceCodeInfo_Location_google_2fprotobuf_2fdescriptor_2eproto;
41 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_UninterpretedOption_google_2fprotobuf_2fdescriptor_2eproto;
42 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_UninterpretedOption_NamePart_google_2fprotobuf_2fdescriptor_2eproto;
43 PROTOBUF_NAMESPACE_OPEN
44 class FileDescriptorSetDefaultTypeInternal {
45  public:
46   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<FileDescriptorSet> _instance;
47 } _FileDescriptorSet_default_instance_;
48 class FileDescriptorProtoDefaultTypeInternal {
49  public:
50   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<FileDescriptorProto> _instance;
51 } _FileDescriptorProto_default_instance_;
52 class DescriptorProto_ExtensionRangeDefaultTypeInternal {
53  public:
54   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DescriptorProto_ExtensionRange> _instance;
55 } _DescriptorProto_ExtensionRange_default_instance_;
56 class DescriptorProto_ReservedRangeDefaultTypeInternal {
57  public:
58   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DescriptorProto_ReservedRange> _instance;
59 } _DescriptorProto_ReservedRange_default_instance_;
60 class DescriptorProtoDefaultTypeInternal {
61  public:
62   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DescriptorProto> _instance;
63 } _DescriptorProto_default_instance_;
64 class ExtensionRangeOptionsDefaultTypeInternal {
65  public:
66   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ExtensionRangeOptions> _instance;
67 } _ExtensionRangeOptions_default_instance_;
68 class FieldDescriptorProtoDefaultTypeInternal {
69  public:
70   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<FieldDescriptorProto> _instance;
71 } _FieldDescriptorProto_default_instance_;
72 class OneofDescriptorProtoDefaultTypeInternal {
73  public:
74   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<OneofDescriptorProto> _instance;
75 } _OneofDescriptorProto_default_instance_;
76 class EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal {
77  public:
78   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<EnumDescriptorProto_EnumReservedRange> _instance;
79 } _EnumDescriptorProto_EnumReservedRange_default_instance_;
80 class EnumDescriptorProtoDefaultTypeInternal {
81  public:
82   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<EnumDescriptorProto> _instance;
83 } _EnumDescriptorProto_default_instance_;
84 class EnumValueDescriptorProtoDefaultTypeInternal {
85  public:
86   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<EnumValueDescriptorProto> _instance;
87 } _EnumValueDescriptorProto_default_instance_;
88 class ServiceDescriptorProtoDefaultTypeInternal {
89  public:
90   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ServiceDescriptorProto> _instance;
91 } _ServiceDescriptorProto_default_instance_;
92 class MethodDescriptorProtoDefaultTypeInternal {
93  public:
94   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MethodDescriptorProto> _instance;
95 } _MethodDescriptorProto_default_instance_;
96 class FileOptionsDefaultTypeInternal {
97  public:
98   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<FileOptions> _instance;
99 } _FileOptions_default_instance_;
100 class MessageOptionsDefaultTypeInternal {
101  public:
102   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MessageOptions> _instance;
103 } _MessageOptions_default_instance_;
104 class FieldOptionsDefaultTypeInternal {
105  public:
106   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<FieldOptions> _instance;
107 } _FieldOptions_default_instance_;
108 class OneofOptionsDefaultTypeInternal {
109  public:
110   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<OneofOptions> _instance;
111 } _OneofOptions_default_instance_;
112 class EnumOptionsDefaultTypeInternal {
113  public:
114   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<EnumOptions> _instance;
115 } _EnumOptions_default_instance_;
116 class EnumValueOptionsDefaultTypeInternal {
117  public:
118   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<EnumValueOptions> _instance;
119 } _EnumValueOptions_default_instance_;
120 class ServiceOptionsDefaultTypeInternal {
121  public:
122   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ServiceOptions> _instance;
123 } _ServiceOptions_default_instance_;
124 class MethodOptionsDefaultTypeInternal {
125  public:
126   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MethodOptions> _instance;
127 } _MethodOptions_default_instance_;
128 class UninterpretedOption_NamePartDefaultTypeInternal {
129  public:
130   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<UninterpretedOption_NamePart> _instance;
131 } _UninterpretedOption_NamePart_default_instance_;
132 class UninterpretedOptionDefaultTypeInternal {
133  public:
134   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<UninterpretedOption> _instance;
135 } _UninterpretedOption_default_instance_;
136 class SourceCodeInfo_LocationDefaultTypeInternal {
137  public:
138   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SourceCodeInfo_Location> _instance;
139 } _SourceCodeInfo_Location_default_instance_;
140 class SourceCodeInfoDefaultTypeInternal {
141  public:
142   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SourceCodeInfo> _instance;
143 } _SourceCodeInfo_default_instance_;
144 class GeneratedCodeInfo_AnnotationDefaultTypeInternal {
145  public:
146   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GeneratedCodeInfo_Annotation> _instance;
147 } _GeneratedCodeInfo_Annotation_default_instance_;
148 class GeneratedCodeInfoDefaultTypeInternal {
149  public:
150   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GeneratedCodeInfo> _instance;
151 } _GeneratedCodeInfo_default_instance_;
152 PROTOBUF_NAMESPACE_CLOSE
InitDefaultsscc_info_DescriptorProto_google_2fprotobuf_2fdescriptor_2eproto()153 static void InitDefaultsscc_info_DescriptorProto_google_2fprotobuf_2fdescriptor_2eproto() {
154   GOOGLE_PROTOBUF_VERIFY_VERSION;
155 
156   {
157     void* ptr = &PROTOBUF_NAMESPACE_ID::_DescriptorProto_default_instance_;
158     new (ptr) PROTOBUF_NAMESPACE_ID::DescriptorProto();
159     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
160   }
161   PROTOBUF_NAMESPACE_ID::DescriptorProto::InitAsDefaultInstance();
162 }
163 
164 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<6> scc_info_DescriptorProto_google_2fprotobuf_2fdescriptor_2eproto =
165     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 6, InitDefaultsscc_info_DescriptorProto_google_2fprotobuf_2fdescriptor_2eproto}, {
166       &scc_info_FieldDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base,
167       &scc_info_EnumDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base,
168       &scc_info_DescriptorProto_ExtensionRange_google_2fprotobuf_2fdescriptor_2eproto.base,
169       &scc_info_OneofDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base,
170       &scc_info_MessageOptions_google_2fprotobuf_2fdescriptor_2eproto.base,
171       &scc_info_DescriptorProto_ReservedRange_google_2fprotobuf_2fdescriptor_2eproto.base,}};
172 
InitDefaultsscc_info_DescriptorProto_ExtensionRange_google_2fprotobuf_2fdescriptor_2eproto()173 static void InitDefaultsscc_info_DescriptorProto_ExtensionRange_google_2fprotobuf_2fdescriptor_2eproto() {
174   GOOGLE_PROTOBUF_VERIFY_VERSION;
175 
176   {
177     void* ptr = &PROTOBUF_NAMESPACE_ID::_DescriptorProto_ExtensionRange_default_instance_;
178     new (ptr) PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange();
179     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
180   }
181   PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange::InitAsDefaultInstance();
182 }
183 
184 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DescriptorProto_ExtensionRange_google_2fprotobuf_2fdescriptor_2eproto =
185     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_DescriptorProto_ExtensionRange_google_2fprotobuf_2fdescriptor_2eproto}, {
186       &scc_info_ExtensionRangeOptions_google_2fprotobuf_2fdescriptor_2eproto.base,}};
187 
InitDefaultsscc_info_DescriptorProto_ReservedRange_google_2fprotobuf_2fdescriptor_2eproto()188 static void InitDefaultsscc_info_DescriptorProto_ReservedRange_google_2fprotobuf_2fdescriptor_2eproto() {
189   GOOGLE_PROTOBUF_VERIFY_VERSION;
190 
191   {
192     void* ptr = &PROTOBUF_NAMESPACE_ID::_DescriptorProto_ReservedRange_default_instance_;
193     new (ptr) PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange();
194     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
195   }
196   PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange::InitAsDefaultInstance();
197 }
198 
199 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DescriptorProto_ReservedRange_google_2fprotobuf_2fdescriptor_2eproto =
200     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_DescriptorProto_ReservedRange_google_2fprotobuf_2fdescriptor_2eproto}, {}};
201 
InitDefaultsscc_info_EnumDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto()202 static void InitDefaultsscc_info_EnumDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto() {
203   GOOGLE_PROTOBUF_VERIFY_VERSION;
204 
205   {
206     void* ptr = &PROTOBUF_NAMESPACE_ID::_EnumDescriptorProto_default_instance_;
207     new (ptr) PROTOBUF_NAMESPACE_ID::EnumDescriptorProto();
208     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
209   }
210   PROTOBUF_NAMESPACE_ID::EnumDescriptorProto::InitAsDefaultInstance();
211 }
212 
213 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_EnumDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto =
214     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_EnumDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto}, {
215       &scc_info_EnumValueDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base,
216       &scc_info_EnumOptions_google_2fprotobuf_2fdescriptor_2eproto.base,
217       &scc_info_EnumDescriptorProto_EnumReservedRange_google_2fprotobuf_2fdescriptor_2eproto.base,}};
218 
InitDefaultsscc_info_EnumDescriptorProto_EnumReservedRange_google_2fprotobuf_2fdescriptor_2eproto()219 static void InitDefaultsscc_info_EnumDescriptorProto_EnumReservedRange_google_2fprotobuf_2fdescriptor_2eproto() {
220   GOOGLE_PROTOBUF_VERIFY_VERSION;
221 
222   {
223     void* ptr = &PROTOBUF_NAMESPACE_ID::_EnumDescriptorProto_EnumReservedRange_default_instance_;
224     new (ptr) PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange();
225     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
226   }
227   PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange::InitAsDefaultInstance();
228 }
229 
230 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EnumDescriptorProto_EnumReservedRange_google_2fprotobuf_2fdescriptor_2eproto =
231     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_EnumDescriptorProto_EnumReservedRange_google_2fprotobuf_2fdescriptor_2eproto}, {}};
232 
InitDefaultsscc_info_EnumOptions_google_2fprotobuf_2fdescriptor_2eproto()233 static void InitDefaultsscc_info_EnumOptions_google_2fprotobuf_2fdescriptor_2eproto() {
234   GOOGLE_PROTOBUF_VERIFY_VERSION;
235 
236   {
237     void* ptr = &PROTOBUF_NAMESPACE_ID::_EnumOptions_default_instance_;
238     new (ptr) PROTOBUF_NAMESPACE_ID::EnumOptions();
239     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
240   }
241   PROTOBUF_NAMESPACE_ID::EnumOptions::InitAsDefaultInstance();
242 }
243 
244 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EnumOptions_google_2fprotobuf_2fdescriptor_2eproto =
245     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_EnumOptions_google_2fprotobuf_2fdescriptor_2eproto}, {
246       &scc_info_UninterpretedOption_google_2fprotobuf_2fdescriptor_2eproto.base,}};
247 
InitDefaultsscc_info_EnumValueDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto()248 static void InitDefaultsscc_info_EnumValueDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto() {
249   GOOGLE_PROTOBUF_VERIFY_VERSION;
250 
251   {
252     void* ptr = &PROTOBUF_NAMESPACE_ID::_EnumValueDescriptorProto_default_instance_;
253     new (ptr) PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto();
254     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
255   }
256   PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto::InitAsDefaultInstance();
257 }
258 
259 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EnumValueDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto =
260     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_EnumValueDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto}, {
261       &scc_info_EnumValueOptions_google_2fprotobuf_2fdescriptor_2eproto.base,}};
262 
InitDefaultsscc_info_EnumValueOptions_google_2fprotobuf_2fdescriptor_2eproto()263 static void InitDefaultsscc_info_EnumValueOptions_google_2fprotobuf_2fdescriptor_2eproto() {
264   GOOGLE_PROTOBUF_VERIFY_VERSION;
265 
266   {
267     void* ptr = &PROTOBUF_NAMESPACE_ID::_EnumValueOptions_default_instance_;
268     new (ptr) PROTOBUF_NAMESPACE_ID::EnumValueOptions();
269     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
270   }
271   PROTOBUF_NAMESPACE_ID::EnumValueOptions::InitAsDefaultInstance();
272 }
273 
274 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EnumValueOptions_google_2fprotobuf_2fdescriptor_2eproto =
275     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_EnumValueOptions_google_2fprotobuf_2fdescriptor_2eproto}, {
276       &scc_info_UninterpretedOption_google_2fprotobuf_2fdescriptor_2eproto.base,}};
277 
InitDefaultsscc_info_ExtensionRangeOptions_google_2fprotobuf_2fdescriptor_2eproto()278 static void InitDefaultsscc_info_ExtensionRangeOptions_google_2fprotobuf_2fdescriptor_2eproto() {
279   GOOGLE_PROTOBUF_VERIFY_VERSION;
280 
281   {
282     void* ptr = &PROTOBUF_NAMESPACE_ID::_ExtensionRangeOptions_default_instance_;
283     new (ptr) PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions();
284     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
285   }
286   PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions::InitAsDefaultInstance();
287 }
288 
289 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ExtensionRangeOptions_google_2fprotobuf_2fdescriptor_2eproto =
290     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ExtensionRangeOptions_google_2fprotobuf_2fdescriptor_2eproto}, {
291       &scc_info_UninterpretedOption_google_2fprotobuf_2fdescriptor_2eproto.base,}};
292 
InitDefaultsscc_info_FieldDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto()293 static void InitDefaultsscc_info_FieldDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto() {
294   GOOGLE_PROTOBUF_VERIFY_VERSION;
295 
296   {
297     void* ptr = &PROTOBUF_NAMESPACE_ID::_FieldDescriptorProto_default_instance_;
298     new (ptr) PROTOBUF_NAMESPACE_ID::FieldDescriptorProto();
299     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
300   }
301   PROTOBUF_NAMESPACE_ID::FieldDescriptorProto::InitAsDefaultInstance();
302 }
303 
304 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FieldDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto =
305     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_FieldDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto}, {
306       &scc_info_FieldOptions_google_2fprotobuf_2fdescriptor_2eproto.base,}};
307 
InitDefaultsscc_info_FieldOptions_google_2fprotobuf_2fdescriptor_2eproto()308 static void InitDefaultsscc_info_FieldOptions_google_2fprotobuf_2fdescriptor_2eproto() {
309   GOOGLE_PROTOBUF_VERIFY_VERSION;
310 
311   {
312     void* ptr = &PROTOBUF_NAMESPACE_ID::_FieldOptions_default_instance_;
313     new (ptr) PROTOBUF_NAMESPACE_ID::FieldOptions();
314     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
315   }
316   PROTOBUF_NAMESPACE_ID::FieldOptions::InitAsDefaultInstance();
317 }
318 
319 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FieldOptions_google_2fprotobuf_2fdescriptor_2eproto =
320     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_FieldOptions_google_2fprotobuf_2fdescriptor_2eproto}, {
321       &scc_info_UninterpretedOption_google_2fprotobuf_2fdescriptor_2eproto.base,}};
322 
InitDefaultsscc_info_FileDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto()323 static void InitDefaultsscc_info_FileDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto() {
324   GOOGLE_PROTOBUF_VERIFY_VERSION;
325 
326   {
327     void* ptr = &PROTOBUF_NAMESPACE_ID::_FileDescriptorProto_default_instance_;
328     new (ptr) PROTOBUF_NAMESPACE_ID::FileDescriptorProto();
329     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
330   }
331   PROTOBUF_NAMESPACE_ID::FileDescriptorProto::InitAsDefaultInstance();
332 }
333 
334 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<6> scc_info_FileDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto =
335     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 6, InitDefaultsscc_info_FileDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto}, {
336       &scc_info_DescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base,
337       &scc_info_EnumDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base,
338       &scc_info_ServiceDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base,
339       &scc_info_FieldDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base,
340       &scc_info_FileOptions_google_2fprotobuf_2fdescriptor_2eproto.base,
341       &scc_info_SourceCodeInfo_google_2fprotobuf_2fdescriptor_2eproto.base,}};
342 
InitDefaultsscc_info_FileDescriptorSet_google_2fprotobuf_2fdescriptor_2eproto()343 static void InitDefaultsscc_info_FileDescriptorSet_google_2fprotobuf_2fdescriptor_2eproto() {
344   GOOGLE_PROTOBUF_VERIFY_VERSION;
345 
346   {
347     void* ptr = &PROTOBUF_NAMESPACE_ID::_FileDescriptorSet_default_instance_;
348     new (ptr) PROTOBUF_NAMESPACE_ID::FileDescriptorSet();
349     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
350   }
351   PROTOBUF_NAMESPACE_ID::FileDescriptorSet::InitAsDefaultInstance();
352 }
353 
354 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FileDescriptorSet_google_2fprotobuf_2fdescriptor_2eproto =
355     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_FileDescriptorSet_google_2fprotobuf_2fdescriptor_2eproto}, {
356       &scc_info_FileDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base,}};
357 
InitDefaultsscc_info_FileOptions_google_2fprotobuf_2fdescriptor_2eproto()358 static void InitDefaultsscc_info_FileOptions_google_2fprotobuf_2fdescriptor_2eproto() {
359   GOOGLE_PROTOBUF_VERIFY_VERSION;
360 
361   {
362     void* ptr = &PROTOBUF_NAMESPACE_ID::_FileOptions_default_instance_;
363     new (ptr) PROTOBUF_NAMESPACE_ID::FileOptions();
364     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
365   }
366   PROTOBUF_NAMESPACE_ID::FileOptions::InitAsDefaultInstance();
367 }
368 
369 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FileOptions_google_2fprotobuf_2fdescriptor_2eproto =
370     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_FileOptions_google_2fprotobuf_2fdescriptor_2eproto}, {
371       &scc_info_UninterpretedOption_google_2fprotobuf_2fdescriptor_2eproto.base,}};
372 
InitDefaultsscc_info_GeneratedCodeInfo_google_2fprotobuf_2fdescriptor_2eproto()373 static void InitDefaultsscc_info_GeneratedCodeInfo_google_2fprotobuf_2fdescriptor_2eproto() {
374   GOOGLE_PROTOBUF_VERIFY_VERSION;
375 
376   {
377     void* ptr = &PROTOBUF_NAMESPACE_ID::_GeneratedCodeInfo_default_instance_;
378     new (ptr) PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo();
379     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
380   }
381   PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo::InitAsDefaultInstance();
382 }
383 
384 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GeneratedCodeInfo_google_2fprotobuf_2fdescriptor_2eproto =
385     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_GeneratedCodeInfo_google_2fprotobuf_2fdescriptor_2eproto}, {
386       &scc_info_GeneratedCodeInfo_Annotation_google_2fprotobuf_2fdescriptor_2eproto.base,}};
387 
InitDefaultsscc_info_GeneratedCodeInfo_Annotation_google_2fprotobuf_2fdescriptor_2eproto()388 static void InitDefaultsscc_info_GeneratedCodeInfo_Annotation_google_2fprotobuf_2fdescriptor_2eproto() {
389   GOOGLE_PROTOBUF_VERIFY_VERSION;
390 
391   {
392     void* ptr = &PROTOBUF_NAMESPACE_ID::_GeneratedCodeInfo_Annotation_default_instance_;
393     new (ptr) PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation();
394     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
395   }
396   PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation::InitAsDefaultInstance();
397 }
398 
399 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GeneratedCodeInfo_Annotation_google_2fprotobuf_2fdescriptor_2eproto =
400     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GeneratedCodeInfo_Annotation_google_2fprotobuf_2fdescriptor_2eproto}, {}};
401 
InitDefaultsscc_info_MessageOptions_google_2fprotobuf_2fdescriptor_2eproto()402 static void InitDefaultsscc_info_MessageOptions_google_2fprotobuf_2fdescriptor_2eproto() {
403   GOOGLE_PROTOBUF_VERIFY_VERSION;
404 
405   {
406     void* ptr = &PROTOBUF_NAMESPACE_ID::_MessageOptions_default_instance_;
407     new (ptr) PROTOBUF_NAMESPACE_ID::MessageOptions();
408     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
409   }
410   PROTOBUF_NAMESPACE_ID::MessageOptions::InitAsDefaultInstance();
411 }
412 
413 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MessageOptions_google_2fprotobuf_2fdescriptor_2eproto =
414     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_MessageOptions_google_2fprotobuf_2fdescriptor_2eproto}, {
415       &scc_info_UninterpretedOption_google_2fprotobuf_2fdescriptor_2eproto.base,}};
416 
InitDefaultsscc_info_MethodDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto()417 static void InitDefaultsscc_info_MethodDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto() {
418   GOOGLE_PROTOBUF_VERIFY_VERSION;
419 
420   {
421     void* ptr = &PROTOBUF_NAMESPACE_ID::_MethodDescriptorProto_default_instance_;
422     new (ptr) PROTOBUF_NAMESPACE_ID::MethodDescriptorProto();
423     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
424   }
425   PROTOBUF_NAMESPACE_ID::MethodDescriptorProto::InitAsDefaultInstance();
426 }
427 
428 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MethodDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto =
429     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_MethodDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto}, {
430       &scc_info_MethodOptions_google_2fprotobuf_2fdescriptor_2eproto.base,}};
431 
InitDefaultsscc_info_MethodOptions_google_2fprotobuf_2fdescriptor_2eproto()432 static void InitDefaultsscc_info_MethodOptions_google_2fprotobuf_2fdescriptor_2eproto() {
433   GOOGLE_PROTOBUF_VERIFY_VERSION;
434 
435   {
436     void* ptr = &PROTOBUF_NAMESPACE_ID::_MethodOptions_default_instance_;
437     new (ptr) PROTOBUF_NAMESPACE_ID::MethodOptions();
438     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
439   }
440   PROTOBUF_NAMESPACE_ID::MethodOptions::InitAsDefaultInstance();
441 }
442 
443 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MethodOptions_google_2fprotobuf_2fdescriptor_2eproto =
444     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_MethodOptions_google_2fprotobuf_2fdescriptor_2eproto}, {
445       &scc_info_UninterpretedOption_google_2fprotobuf_2fdescriptor_2eproto.base,}};
446 
InitDefaultsscc_info_OneofDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto()447 static void InitDefaultsscc_info_OneofDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto() {
448   GOOGLE_PROTOBUF_VERIFY_VERSION;
449 
450   {
451     void* ptr = &PROTOBUF_NAMESPACE_ID::_OneofDescriptorProto_default_instance_;
452     new (ptr) PROTOBUF_NAMESPACE_ID::OneofDescriptorProto();
453     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
454   }
455   PROTOBUF_NAMESPACE_ID::OneofDescriptorProto::InitAsDefaultInstance();
456 }
457 
458 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OneofDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto =
459     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_OneofDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto}, {
460       &scc_info_OneofOptions_google_2fprotobuf_2fdescriptor_2eproto.base,}};
461 
InitDefaultsscc_info_OneofOptions_google_2fprotobuf_2fdescriptor_2eproto()462 static void InitDefaultsscc_info_OneofOptions_google_2fprotobuf_2fdescriptor_2eproto() {
463   GOOGLE_PROTOBUF_VERIFY_VERSION;
464 
465   {
466     void* ptr = &PROTOBUF_NAMESPACE_ID::_OneofOptions_default_instance_;
467     new (ptr) PROTOBUF_NAMESPACE_ID::OneofOptions();
468     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
469   }
470   PROTOBUF_NAMESPACE_ID::OneofOptions::InitAsDefaultInstance();
471 }
472 
473 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OneofOptions_google_2fprotobuf_2fdescriptor_2eproto =
474     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_OneofOptions_google_2fprotobuf_2fdescriptor_2eproto}, {
475       &scc_info_UninterpretedOption_google_2fprotobuf_2fdescriptor_2eproto.base,}};
476 
InitDefaultsscc_info_ServiceDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto()477 static void InitDefaultsscc_info_ServiceDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto() {
478   GOOGLE_PROTOBUF_VERIFY_VERSION;
479 
480   {
481     void* ptr = &PROTOBUF_NAMESPACE_ID::_ServiceDescriptorProto_default_instance_;
482     new (ptr) PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto();
483     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
484   }
485   PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto::InitAsDefaultInstance();
486 }
487 
488 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_ServiceDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto =
489     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_ServiceDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto}, {
490       &scc_info_MethodDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base,
491       &scc_info_ServiceOptions_google_2fprotobuf_2fdescriptor_2eproto.base,}};
492 
InitDefaultsscc_info_ServiceOptions_google_2fprotobuf_2fdescriptor_2eproto()493 static void InitDefaultsscc_info_ServiceOptions_google_2fprotobuf_2fdescriptor_2eproto() {
494   GOOGLE_PROTOBUF_VERIFY_VERSION;
495 
496   {
497     void* ptr = &PROTOBUF_NAMESPACE_ID::_ServiceOptions_default_instance_;
498     new (ptr) PROTOBUF_NAMESPACE_ID::ServiceOptions();
499     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
500   }
501   PROTOBUF_NAMESPACE_ID::ServiceOptions::InitAsDefaultInstance();
502 }
503 
504 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ServiceOptions_google_2fprotobuf_2fdescriptor_2eproto =
505     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ServiceOptions_google_2fprotobuf_2fdescriptor_2eproto}, {
506       &scc_info_UninterpretedOption_google_2fprotobuf_2fdescriptor_2eproto.base,}};
507 
InitDefaultsscc_info_SourceCodeInfo_google_2fprotobuf_2fdescriptor_2eproto()508 static void InitDefaultsscc_info_SourceCodeInfo_google_2fprotobuf_2fdescriptor_2eproto() {
509   GOOGLE_PROTOBUF_VERIFY_VERSION;
510 
511   {
512     void* ptr = &PROTOBUF_NAMESPACE_ID::_SourceCodeInfo_default_instance_;
513     new (ptr) PROTOBUF_NAMESPACE_ID::SourceCodeInfo();
514     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
515   }
516   PROTOBUF_NAMESPACE_ID::SourceCodeInfo::InitAsDefaultInstance();
517 }
518 
519 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SourceCodeInfo_google_2fprotobuf_2fdescriptor_2eproto =
520     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_SourceCodeInfo_google_2fprotobuf_2fdescriptor_2eproto}, {
521       &scc_info_SourceCodeInfo_Location_google_2fprotobuf_2fdescriptor_2eproto.base,}};
522 
InitDefaultsscc_info_SourceCodeInfo_Location_google_2fprotobuf_2fdescriptor_2eproto()523 static void InitDefaultsscc_info_SourceCodeInfo_Location_google_2fprotobuf_2fdescriptor_2eproto() {
524   GOOGLE_PROTOBUF_VERIFY_VERSION;
525 
526   {
527     void* ptr = &PROTOBUF_NAMESPACE_ID::_SourceCodeInfo_Location_default_instance_;
528     new (ptr) PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location();
529     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
530   }
531   PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location::InitAsDefaultInstance();
532 }
533 
534 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SourceCodeInfo_Location_google_2fprotobuf_2fdescriptor_2eproto =
535     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_SourceCodeInfo_Location_google_2fprotobuf_2fdescriptor_2eproto}, {}};
536 
InitDefaultsscc_info_UninterpretedOption_google_2fprotobuf_2fdescriptor_2eproto()537 static void InitDefaultsscc_info_UninterpretedOption_google_2fprotobuf_2fdescriptor_2eproto() {
538   GOOGLE_PROTOBUF_VERIFY_VERSION;
539 
540   {
541     void* ptr = &PROTOBUF_NAMESPACE_ID::_UninterpretedOption_default_instance_;
542     new (ptr) PROTOBUF_NAMESPACE_ID::UninterpretedOption();
543     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
544   }
545   PROTOBUF_NAMESPACE_ID::UninterpretedOption::InitAsDefaultInstance();
546 }
547 
548 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_UninterpretedOption_google_2fprotobuf_2fdescriptor_2eproto =
549     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_UninterpretedOption_google_2fprotobuf_2fdescriptor_2eproto}, {
550       &scc_info_UninterpretedOption_NamePart_google_2fprotobuf_2fdescriptor_2eproto.base,}};
551 
InitDefaultsscc_info_UninterpretedOption_NamePart_google_2fprotobuf_2fdescriptor_2eproto()552 static void InitDefaultsscc_info_UninterpretedOption_NamePart_google_2fprotobuf_2fdescriptor_2eproto() {
553   GOOGLE_PROTOBUF_VERIFY_VERSION;
554 
555   {
556     void* ptr = &PROTOBUF_NAMESPACE_ID::_UninterpretedOption_NamePart_default_instance_;
557     new (ptr) PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart();
558     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
559   }
560   PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart::InitAsDefaultInstance();
561 }
562 
563 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_UninterpretedOption_NamePart_google_2fprotobuf_2fdescriptor_2eproto =
564     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_UninterpretedOption_NamePart_google_2fprotobuf_2fdescriptor_2eproto}, {}};
565 
566 static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[27];
567 static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_google_2fprotobuf_2fdescriptor_2eproto[6];
568 static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_google_2fprotobuf_2fdescriptor_2eproto = nullptr;
569 
570 const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2fprotobuf_2fdescriptor_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
571   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileDescriptorSet, _has_bits_),
572   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileDescriptorSet, _internal_metadata_),
573   ~0u,  // no _extensions_
574   ~0u,  // no _oneof_case_
575   ~0u,  // no _weak_field_map_
576   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileDescriptorSet, file_),
577   ~0u,
578   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileDescriptorProto, _has_bits_),
579   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileDescriptorProto, _internal_metadata_),
580   ~0u,  // no _extensions_
581   ~0u,  // no _oneof_case_
582   ~0u,  // no _weak_field_map_
583   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileDescriptorProto, name_),
584   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileDescriptorProto, package_),
585   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileDescriptorProto, dependency_),
586   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileDescriptorProto, public_dependency_),
587   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileDescriptorProto, weak_dependency_),
588   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileDescriptorProto, message_type_),
589   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileDescriptorProto, enum_type_),
590   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileDescriptorProto, service_),
591   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileDescriptorProto, extension_),
592   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileDescriptorProto, options_),
593   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileDescriptorProto, source_code_info_),
594   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileDescriptorProto, syntax_),
595   0,
596   1,
597   ~0u,
598   ~0u,
599   ~0u,
600   ~0u,
601   ~0u,
602   ~0u,
603   ~0u,
604   3,
605   4,
606   2,
607   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange, _has_bits_),
608   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange, _internal_metadata_),
609   ~0u,  // no _extensions_
610   ~0u,  // no _oneof_case_
611   ~0u,  // no _weak_field_map_
612   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange, start_),
613   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange, end_),
614   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange, options_),
615   1,
616   2,
617   0,
618   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange, _has_bits_),
619   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange, _internal_metadata_),
620   ~0u,  // no _extensions_
621   ~0u,  // no _oneof_case_
622   ~0u,  // no _weak_field_map_
623   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange, start_),
624   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange, end_),
625   0,
626   1,
627   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::DescriptorProto, _has_bits_),
628   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::DescriptorProto, _internal_metadata_),
629   ~0u,  // no _extensions_
630   ~0u,  // no _oneof_case_
631   ~0u,  // no _weak_field_map_
632   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::DescriptorProto, name_),
633   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::DescriptorProto, field_),
634   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::DescriptorProto, extension_),
635   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::DescriptorProto, nested_type_),
636   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::DescriptorProto, enum_type_),
637   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::DescriptorProto, extension_range_),
638   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::DescriptorProto, oneof_decl_),
639   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::DescriptorProto, options_),
640   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::DescriptorProto, reserved_range_),
641   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::DescriptorProto, reserved_name_),
642   0,
643   ~0u,
644   ~0u,
645   ~0u,
646   ~0u,
647   ~0u,
648   ~0u,
649   1,
650   ~0u,
651   ~0u,
652   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions, _has_bits_),
653   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions, _internal_metadata_),
654   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions, _extensions_),
655   ~0u,  // no _oneof_case_
656   ~0u,  // no _weak_field_map_
657   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions, uninterpreted_option_),
658   ~0u,
659   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, _has_bits_),
660   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, _internal_metadata_),
661   ~0u,  // no _extensions_
662   ~0u,  // no _oneof_case_
663   ~0u,  // no _weak_field_map_
664   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, name_),
665   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, number_),
666   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, label_),
667   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, type_),
668   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, type_name_),
669   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, extendee_),
670   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, default_value_),
671   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, oneof_index_),
672   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, json_name_),
673   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, options_),
674   0,
675   6,
676   8,
677   9,
678   2,
679   1,
680   3,
681   7,
682   4,
683   5,
684   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::OneofDescriptorProto, _has_bits_),
685   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::OneofDescriptorProto, _internal_metadata_),
686   ~0u,  // no _extensions_
687   ~0u,  // no _oneof_case_
688   ~0u,  // no _weak_field_map_
689   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::OneofDescriptorProto, name_),
690   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::OneofDescriptorProto, options_),
691   0,
692   1,
693   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange, _has_bits_),
694   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange, _internal_metadata_),
695   ~0u,  // no _extensions_
696   ~0u,  // no _oneof_case_
697   ~0u,  // no _weak_field_map_
698   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange, start_),
699   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange, end_),
700   0,
701   1,
702   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumDescriptorProto, _has_bits_),
703   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumDescriptorProto, _internal_metadata_),
704   ~0u,  // no _extensions_
705   ~0u,  // no _oneof_case_
706   ~0u,  // no _weak_field_map_
707   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumDescriptorProto, name_),
708   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumDescriptorProto, value_),
709   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumDescriptorProto, options_),
710   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumDescriptorProto, reserved_range_),
711   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumDescriptorProto, reserved_name_),
712   0,
713   ~0u,
714   1,
715   ~0u,
716   ~0u,
717   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto, _has_bits_),
718   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto, _internal_metadata_),
719   ~0u,  // no _extensions_
720   ~0u,  // no _oneof_case_
721   ~0u,  // no _weak_field_map_
722   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto, name_),
723   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto, number_),
724   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto, options_),
725   0,
726   2,
727   1,
728   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto, _has_bits_),
729   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto, _internal_metadata_),
730   ~0u,  // no _extensions_
731   ~0u,  // no _oneof_case_
732   ~0u,  // no _weak_field_map_
733   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto, name_),
734   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto, method_),
735   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto, options_),
736   0,
737   ~0u,
738   1,
739   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::MethodDescriptorProto, _has_bits_),
740   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::MethodDescriptorProto, _internal_metadata_),
741   ~0u,  // no _extensions_
742   ~0u,  // no _oneof_case_
743   ~0u,  // no _weak_field_map_
744   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::MethodDescriptorProto, name_),
745   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::MethodDescriptorProto, input_type_),
746   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::MethodDescriptorProto, output_type_),
747   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::MethodDescriptorProto, options_),
748   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::MethodDescriptorProto, client_streaming_),
749   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::MethodDescriptorProto, server_streaming_),
750   0,
751   1,
752   2,
753   3,
754   4,
755   5,
756   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, _has_bits_),
757   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, _internal_metadata_),
758   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, _extensions_),
759   ~0u,  // no _oneof_case_
760   ~0u,  // no _weak_field_map_
761   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, java_package_),
762   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, java_outer_classname_),
763   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, java_multiple_files_),
764   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, java_generate_equals_and_hash_),
765   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, java_string_check_utf8_),
766   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, optimize_for_),
767   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, go_package_),
768   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, cc_generic_services_),
769   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, java_generic_services_),
770   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, py_generic_services_),
771   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, php_generic_services_),
772   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, deprecated_),
773   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, cc_enable_arenas_),
774   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, objc_class_prefix_),
775   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, csharp_namespace_),
776   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, swift_prefix_),
777   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, php_class_prefix_),
778   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, php_namespace_),
779   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, php_metadata_namespace_),
780   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, ruby_package_),
781   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FileOptions, uninterpreted_option_),
782   0,
783   1,
784   10,
785   11,
786   12,
787   19,
788   2,
789   13,
790   14,
791   15,
792   16,
793   17,
794   18,
795   3,
796   4,
797   5,
798   6,
799   7,
800   8,
801   9,
802   ~0u,
803   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::MessageOptions, _has_bits_),
804   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::MessageOptions, _internal_metadata_),
805   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::MessageOptions, _extensions_),
806   ~0u,  // no _oneof_case_
807   ~0u,  // no _weak_field_map_
808   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::MessageOptions, message_set_wire_format_),
809   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::MessageOptions, no_standard_descriptor_accessor_),
810   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::MessageOptions, deprecated_),
811   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::MessageOptions, map_entry_),
812   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::MessageOptions, uninterpreted_option_),
813   0,
814   1,
815   2,
816   3,
817   ~0u,
818   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldOptions, _has_bits_),
819   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldOptions, _internal_metadata_),
820   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldOptions, _extensions_),
821   ~0u,  // no _oneof_case_
822   ~0u,  // no _weak_field_map_
823   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldOptions, ctype_),
824   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldOptions, packed_),
825   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldOptions, jstype_),
826   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldOptions, lazy_),
827   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldOptions, deprecated_),
828   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldOptions, weak_),
829   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldOptions, uninterpreted_option_),
830   0,
831   1,
832   5,
833   2,
834   3,
835   4,
836   ~0u,
837   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::OneofOptions, _has_bits_),
838   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::OneofOptions, _internal_metadata_),
839   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::OneofOptions, _extensions_),
840   ~0u,  // no _oneof_case_
841   ~0u,  // no _weak_field_map_
842   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::OneofOptions, uninterpreted_option_),
843   ~0u,
844   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumOptions, _has_bits_),
845   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumOptions, _internal_metadata_),
846   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumOptions, _extensions_),
847   ~0u,  // no _oneof_case_
848   ~0u,  // no _weak_field_map_
849   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumOptions, allow_alias_),
850   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumOptions, deprecated_),
851   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumOptions, uninterpreted_option_),
852   0,
853   1,
854   ~0u,
855   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumValueOptions, _has_bits_),
856   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumValueOptions, _internal_metadata_),
857   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumValueOptions, _extensions_),
858   ~0u,  // no _oneof_case_
859   ~0u,  // no _weak_field_map_
860   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumValueOptions, deprecated_),
861   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumValueOptions, uninterpreted_option_),
862   0,
863   ~0u,
864   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::ServiceOptions, _has_bits_),
865   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::ServiceOptions, _internal_metadata_),
866   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::ServiceOptions, _extensions_),
867   ~0u,  // no _oneof_case_
868   ~0u,  // no _weak_field_map_
869   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::ServiceOptions, deprecated_),
870   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::ServiceOptions, uninterpreted_option_),
871   0,
872   ~0u,
873   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::MethodOptions, _has_bits_),
874   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::MethodOptions, _internal_metadata_),
875   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::MethodOptions, _extensions_),
876   ~0u,  // no _oneof_case_
877   ~0u,  // no _weak_field_map_
878   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::MethodOptions, deprecated_),
879   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::MethodOptions, idempotency_level_),
880   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::MethodOptions, uninterpreted_option_),
881   0,
882   1,
883   ~0u,
884   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart, _has_bits_),
885   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart, _internal_metadata_),
886   ~0u,  // no _extensions_
887   ~0u,  // no _oneof_case_
888   ~0u,  // no _weak_field_map_
889   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart, name_part_),
890   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart, is_extension_),
891   0,
892   1,
893   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::UninterpretedOption, _has_bits_),
894   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::UninterpretedOption, _internal_metadata_),
895   ~0u,  // no _extensions_
896   ~0u,  // no _oneof_case_
897   ~0u,  // no _weak_field_map_
898   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::UninterpretedOption, name_),
899   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::UninterpretedOption, identifier_value_),
900   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::UninterpretedOption, positive_int_value_),
901   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::UninterpretedOption, negative_int_value_),
902   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::UninterpretedOption, double_value_),
903   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::UninterpretedOption, string_value_),
904   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::UninterpretedOption, aggregate_value_),
905   ~0u,
906   0,
907   3,
908   4,
909   5,
910   1,
911   2,
912   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location, _has_bits_),
913   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location, _internal_metadata_),
914   ~0u,  // no _extensions_
915   ~0u,  // no _oneof_case_
916   ~0u,  // no _weak_field_map_
917   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location, path_),
918   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location, span_),
919   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location, leading_comments_),
920   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location, trailing_comments_),
921   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location, leading_detached_comments_),
922   ~0u,
923   ~0u,
924   0,
925   1,
926   ~0u,
927   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::SourceCodeInfo, _has_bits_),
928   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::SourceCodeInfo, _internal_metadata_),
929   ~0u,  // no _extensions_
930   ~0u,  // no _oneof_case_
931   ~0u,  // no _weak_field_map_
932   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::SourceCodeInfo, location_),
933   ~0u,
934   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation, _has_bits_),
935   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation, _internal_metadata_),
936   ~0u,  // no _extensions_
937   ~0u,  // no _oneof_case_
938   ~0u,  // no _weak_field_map_
939   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation, path_),
940   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation, source_file_),
941   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation, begin_),
942   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation, end_),
943   ~0u,
944   0,
945   1,
946   2,
947   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo, _has_bits_),
948   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo, _internal_metadata_),
949   ~0u,  // no _extensions_
950   ~0u,  // no _oneof_case_
951   ~0u,  // no _weak_field_map_
952   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo, annotation_),
953   ~0u,
954 };
955 static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
956   { 0, 6, sizeof(PROTOBUF_NAMESPACE_ID::FileDescriptorSet)},
957   { 7, 24, sizeof(PROTOBUF_NAMESPACE_ID::FileDescriptorProto)},
958   { 36, 44, sizeof(PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange)},
959   { 47, 54, sizeof(PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange)},
960   { 56, 71, sizeof(PROTOBUF_NAMESPACE_ID::DescriptorProto)},
961   { 81, 87, sizeof(PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions)},
962   { 88, 103, sizeof(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto)},
963   { 113, 120, sizeof(PROTOBUF_NAMESPACE_ID::OneofDescriptorProto)},
964   { 122, 129, sizeof(PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange)},
965   { 131, 141, sizeof(PROTOBUF_NAMESPACE_ID::EnumDescriptorProto)},
966   { 146, 154, sizeof(PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto)},
967   { 157, 165, sizeof(PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto)},
968   { 168, 179, sizeof(PROTOBUF_NAMESPACE_ID::MethodDescriptorProto)},
969   { 185, 211, sizeof(PROTOBUF_NAMESPACE_ID::FileOptions)},
970   { 232, 242, sizeof(PROTOBUF_NAMESPACE_ID::MessageOptions)},
971   { 247, 259, sizeof(PROTOBUF_NAMESPACE_ID::FieldOptions)},
972   { 266, 272, sizeof(PROTOBUF_NAMESPACE_ID::OneofOptions)},
973   { 273, 281, sizeof(PROTOBUF_NAMESPACE_ID::EnumOptions)},
974   { 284, 291, sizeof(PROTOBUF_NAMESPACE_ID::EnumValueOptions)},
975   { 293, 300, sizeof(PROTOBUF_NAMESPACE_ID::ServiceOptions)},
976   { 302, 310, sizeof(PROTOBUF_NAMESPACE_ID::MethodOptions)},
977   { 313, 320, sizeof(PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart)},
978   { 322, 334, sizeof(PROTOBUF_NAMESPACE_ID::UninterpretedOption)},
979   { 341, 351, sizeof(PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location)},
980   { 356, 362, sizeof(PROTOBUF_NAMESPACE_ID::SourceCodeInfo)},
981   { 363, 372, sizeof(PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation)},
982   { 376, 382, sizeof(PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo)},
983 };
984 
985 static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
986   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_FileDescriptorSet_default_instance_),
987   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_FileDescriptorProto_default_instance_),
988   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_DescriptorProto_ExtensionRange_default_instance_),
989   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_DescriptorProto_ReservedRange_default_instance_),
990   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_DescriptorProto_default_instance_),
991   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_ExtensionRangeOptions_default_instance_),
992   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_FieldDescriptorProto_default_instance_),
993   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_OneofDescriptorProto_default_instance_),
994   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_EnumDescriptorProto_EnumReservedRange_default_instance_),
995   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_EnumDescriptorProto_default_instance_),
996   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_EnumValueDescriptorProto_default_instance_),
997   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_ServiceDescriptorProto_default_instance_),
998   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_MethodDescriptorProto_default_instance_),
999   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_FileOptions_default_instance_),
1000   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_MessageOptions_default_instance_),
1001   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_FieldOptions_default_instance_),
1002   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_OneofOptions_default_instance_),
1003   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_EnumOptions_default_instance_),
1004   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_EnumValueOptions_default_instance_),
1005   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_ServiceOptions_default_instance_),
1006   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_MethodOptions_default_instance_),
1007   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_UninterpretedOption_NamePart_default_instance_),
1008   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_UninterpretedOption_default_instance_),
1009   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_SourceCodeInfo_Location_default_instance_),
1010   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_SourceCodeInfo_default_instance_),
1011   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_GeneratedCodeInfo_Annotation_default_instance_),
1012   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_GeneratedCodeInfo_default_instance_),
1013 };
1014 
1015 const char descriptor_table_protodef_google_2fprotobuf_2fdescriptor_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
1016   "\n google/protobuf/descriptor.proto\022\017goog"
1017   "le.protobuf\"G\n\021FileDescriptorSet\0222\n\004file"
1018   "\030\001 \003(\0132$.google.protobuf.FileDescriptorP"
1019   "roto\"\333\003\n\023FileDescriptorProto\022\014\n\004name\030\001 \001"
1020   "(\t\022\017\n\007package\030\002 \001(\t\022\022\n\ndependency\030\003 \003(\t\022"
1021   "\031\n\021public_dependency\030\n \003(\005\022\027\n\017weak_depen"
1022   "dency\030\013 \003(\005\0226\n\014message_type\030\004 \003(\0132 .goog"
1023   "le.protobuf.DescriptorProto\0227\n\tenum_type"
1024   "\030\005 \003(\0132$.google.protobuf.EnumDescriptorP"
1025   "roto\0228\n\007service\030\006 \003(\0132\'.google.protobuf."
1026   "ServiceDescriptorProto\0228\n\textension\030\007 \003("
1027   "\0132%.google.protobuf.FieldDescriptorProto"
1028   "\022-\n\007options\030\010 \001(\0132\034.google.protobuf.File"
1029   "Options\0229\n\020source_code_info\030\t \001(\0132\037.goog"
1030   "le.protobuf.SourceCodeInfo\022\016\n\006syntax\030\014 \001"
1031   "(\t\"\251\005\n\017DescriptorProto\022\014\n\004name\030\001 \001(\t\0224\n\005"
1032   "field\030\002 \003(\0132%.google.protobuf.FieldDescr"
1033   "iptorProto\0228\n\textension\030\006 \003(\0132%.google.p"
1034   "rotobuf.FieldDescriptorProto\0225\n\013nested_t"
1035   "ype\030\003 \003(\0132 .google.protobuf.DescriptorPr"
1036   "oto\0227\n\tenum_type\030\004 \003(\0132$.google.protobuf"
1037   ".EnumDescriptorProto\022H\n\017extension_range\030"
1038   "\005 \003(\0132/.google.protobuf.DescriptorProto."
1039   "ExtensionRange\0229\n\noneof_decl\030\010 \003(\0132%.goo"
1040   "gle.protobuf.OneofDescriptorProto\0220\n\007opt"
1041   "ions\030\007 \001(\0132\037.google.protobuf.MessageOpti"
1042   "ons\022F\n\016reserved_range\030\t \003(\0132..google.pro"
1043   "tobuf.DescriptorProto.ReservedRange\022\025\n\rr"
1044   "eserved_name\030\n \003(\t\032e\n\016ExtensionRange\022\r\n\005"
1045   "start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\0227\n\007options\030\003 \001("
1046   "\0132&.google.protobuf.ExtensionRangeOption"
1047   "s\032+\n\rReservedRange\022\r\n\005start\030\001 \001(\005\022\013\n\003end"
1048   "\030\002 \001(\005\"g\n\025ExtensionRangeOptions\022C\n\024unint"
1049   "erpreted_option\030\347\007 \003(\0132$.google.protobuf"
1050   ".UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\"\274\005\n\024Fiel"
1051   "dDescriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n\006number"
1052   "\030\003 \001(\005\022:\n\005label\030\004 \001(\0162+.google.protobuf."
1053   "FieldDescriptorProto.Label\0228\n\004type\030\005 \001(\016"
1054   "2*.google.protobuf.FieldDescriptorProto."
1055   "Type\022\021\n\ttype_name\030\006 \001(\t\022\020\n\010extendee\030\002 \001("
1056   "\t\022\025\n\rdefault_value\030\007 \001(\t\022\023\n\013oneof_index\030"
1057   "\t \001(\005\022\021\n\tjson_name\030\n \001(\t\022.\n\007options\030\010 \001("
1058   "\0132\035.google.protobuf.FieldOptions\"\266\002\n\004Typ"
1059   "e\022\017\n\013TYPE_DOUBLE\020\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTY"
1060   "PE_INT64\020\003\022\017\n\013TYPE_UINT64\020\004\022\016\n\nTYPE_INT3"
1061   "2\020\005\022\020\n\014TYPE_FIXED64\020\006\022\020\n\014TYPE_FIXED32\020\007\022"
1062   "\r\n\tTYPE_BOOL\020\010\022\017\n\013TYPE_STRING\020\t\022\016\n\nTYPE_"
1063   "GROUP\020\n\022\020\n\014TYPE_MESSAGE\020\013\022\016\n\nTYPE_BYTES\020"
1064   "\014\022\017\n\013TYPE_UINT32\020\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYP"
1065   "E_SFIXED32\020\017\022\021\n\rTYPE_SFIXED64\020\020\022\017\n\013TYPE_"
1066   "SINT32\020\021\022\017\n\013TYPE_SINT64\020\022\"C\n\005Label\022\022\n\016LA"
1067   "BEL_OPTIONAL\020\001\022\022\n\016LABEL_REQUIRED\020\002\022\022\n\016LA"
1068   "BEL_REPEATED\020\003\"T\n\024OneofDescriptorProto\022\014"
1069   "\n\004name\030\001 \001(\t\022.\n\007options\030\002 \001(\0132\035.google.p"
1070   "rotobuf.OneofOptions\"\244\002\n\023EnumDescriptorP"
1071   "roto\022\014\n\004name\030\001 \001(\t\0228\n\005value\030\002 \003(\0132).goog"
1072   "le.protobuf.EnumValueDescriptorProto\022-\n\007"
1073   "options\030\003 \001(\0132\034.google.protobuf.EnumOpti"
1074   "ons\022N\n\016reserved_range\030\004 \003(\01326.google.pro"
1075   "tobuf.EnumDescriptorProto.EnumReservedRa"
1076   "nge\022\025\n\rreserved_name\030\005 \003(\t\032/\n\021EnumReserv"
1077   "edRange\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"l\n\030E"
1078   "numValueDescriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n"
1079   "\006number\030\002 \001(\005\0222\n\007options\030\003 \001(\0132!.google."
1080   "protobuf.EnumValueOptions\"\220\001\n\026ServiceDes"
1081   "criptorProto\022\014\n\004name\030\001 \001(\t\0226\n\006method\030\002 \003"
1082   "(\0132&.google.protobuf.MethodDescriptorPro"
1083   "to\0220\n\007options\030\003 \001(\0132\037.google.protobuf.Se"
1084   "rviceOptions\"\301\001\n\025MethodDescriptorProto\022\014"
1085   "\n\004name\030\001 \001(\t\022\022\n\ninput_type\030\002 \001(\t\022\023\n\013outp"
1086   "ut_type\030\003 \001(\t\022/\n\007options\030\004 \001(\0132\036.google."
1087   "protobuf.MethodOptions\022\037\n\020client_streami"
1088   "ng\030\005 \001(\010:\005false\022\037\n\020server_streaming\030\006 \001("
1089   "\010:\005false\"\246\006\n\013FileOptions\022\024\n\014java_package"
1090   "\030\001 \001(\t\022\034\n\024java_outer_classname\030\010 \001(\t\022\"\n\023"
1091   "java_multiple_files\030\n \001(\010:\005false\022)\n\035java"
1092   "_generate_equals_and_hash\030\024 \001(\010B\002\030\001\022%\n\026j"
1093   "ava_string_check_utf8\030\033 \001(\010:\005false\022F\n\014op"
1094   "timize_for\030\t \001(\0162).google.protobuf.FileO"
1095   "ptions.OptimizeMode:\005SPEED\022\022\n\ngo_package"
1096   "\030\013 \001(\t\022\"\n\023cc_generic_services\030\020 \001(\010:\005fal"
1097   "se\022$\n\025java_generic_services\030\021 \001(\010:\005false"
1098   "\022\"\n\023py_generic_services\030\022 \001(\010:\005false\022#\n\024"
1099   "php_generic_services\030* \001(\010:\005false\022\031\n\ndep"
1100   "recated\030\027 \001(\010:\005false\022\037\n\020cc_enable_arenas"
1101   "\030\037 \001(\010:\005false\022\031\n\021objc_class_prefix\030$ \001(\t"
1102   "\022\030\n\020csharp_namespace\030% \001(\t\022\024\n\014swift_pref"
1103   "ix\030\' \001(\t\022\030\n\020php_class_prefix\030( \001(\t\022\025\n\rph"
1104   "p_namespace\030) \001(\t\022\036\n\026php_metadata_namesp"
1105   "ace\030, \001(\t\022\024\n\014ruby_package\030- \001(\t\022C\n\024unint"
1106   "erpreted_option\030\347\007 \003(\0132$.google.protobuf"
1107   ".UninterpretedOption\":\n\014OptimizeMode\022\t\n\005"
1108   "SPEED\020\001\022\r\n\tCODE_SIZE\020\002\022\020\n\014LITE_RUNTIME\020\003"
1109   "*\t\010\350\007\020\200\200\200\200\002J\004\010&\020\'\"\362\001\n\016MessageOptions\022&\n\027"
1110   "message_set_wire_format\030\001 \001(\010:\005false\022.\n\037"
1111   "no_standard_descriptor_accessor\030\002 \001(\010:\005f"
1112   "alse\022\031\n\ndeprecated\030\003 \001(\010:\005false\022\021\n\tmap_e"
1113   "ntry\030\007 \001(\010\022C\n\024uninterpreted_option\030\347\007 \003("
1114   "\0132$.google.protobuf.UninterpretedOption*"
1115   "\t\010\350\007\020\200\200\200\200\002J\004\010\010\020\tJ\004\010\t\020\n\"\236\003\n\014FieldOptions\022"
1116   ":\n\005ctype\030\001 \001(\0162#.google.protobuf.FieldOp"
1117   "tions.CType:\006STRING\022\016\n\006packed\030\002 \001(\010\022\?\n\006j"
1118   "stype\030\006 \001(\0162$.google.protobuf.FieldOptio"
1119   "ns.JSType:\tJS_NORMAL\022\023\n\004lazy\030\005 \001(\010:\005fals"
1120   "e\022\031\n\ndeprecated\030\003 \001(\010:\005false\022\023\n\004weak\030\n \001"
1121   "(\010:\005false\022C\n\024uninterpreted_option\030\347\007 \003(\013"
1122   "2$.google.protobuf.UninterpretedOption\"/"
1123   "\n\005CType\022\n\n\006STRING\020\000\022\010\n\004CORD\020\001\022\020\n\014STRING_"
1124   "PIECE\020\002\"5\n\006JSType\022\r\n\tJS_NORMAL\020\000\022\r\n\tJS_S"
1125   "TRING\020\001\022\r\n\tJS_NUMBER\020\002*\t\010\350\007\020\200\200\200\200\002J\004\010\004\020\005\""
1126   "^\n\014OneofOptions\022C\n\024uninterpreted_option\030"
1127   "\347\007 \003(\0132$.google.protobuf.UninterpretedOp"
1128   "tion*\t\010\350\007\020\200\200\200\200\002\"\223\001\n\013EnumOptions\022\023\n\013allow"
1129   "_alias\030\002 \001(\010\022\031\n\ndeprecated\030\003 \001(\010:\005false\022"
1130   "C\n\024uninterpreted_option\030\347\007 \003(\0132$.google."
1131   "protobuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002J"
1132   "\004\010\005\020\006\"}\n\020EnumValueOptions\022\031\n\ndeprecated\030"
1133   "\001 \001(\010:\005false\022C\n\024uninterpreted_option\030\347\007 "
1134   "\003(\0132$.google.protobuf.UninterpretedOptio"
1135   "n*\t\010\350\007\020\200\200\200\200\002\"{\n\016ServiceOptions\022\031\n\ndeprec"
1136   "ated\030! \001(\010:\005false\022C\n\024uninterpreted_optio"
1137   "n\030\347\007 \003(\0132$.google.protobuf.Uninterpreted"
1138   "Option*\t\010\350\007\020\200\200\200\200\002\"\255\002\n\rMethodOptions\022\031\n\nd"
1139   "eprecated\030! \001(\010:\005false\022_\n\021idempotency_le"
1140   "vel\030\" \001(\0162/.google.protobuf.MethodOption"
1141   "s.IdempotencyLevel:\023IDEMPOTENCY_UNKNOWN\022"
1142   "C\n\024uninterpreted_option\030\347\007 \003(\0132$.google."
1143   "protobuf.UninterpretedOption\"P\n\020Idempote"
1144   "ncyLevel\022\027\n\023IDEMPOTENCY_UNKNOWN\020\000\022\023\n\017NO_"
1145   "SIDE_EFFECTS\020\001\022\016\n\nIDEMPOTENT\020\002*\t\010\350\007\020\200\200\200\200"
1146   "\002\"\236\002\n\023UninterpretedOption\022;\n\004name\030\002 \003(\0132"
1147   "-.google.protobuf.UninterpretedOption.Na"
1148   "mePart\022\030\n\020identifier_value\030\003 \001(\t\022\032\n\022posi"
1149   "tive_int_value\030\004 \001(\004\022\032\n\022negative_int_val"
1150   "ue\030\005 \001(\003\022\024\n\014double_value\030\006 \001(\001\022\024\n\014string"
1151   "_value\030\007 \001(\014\022\027\n\017aggregate_value\030\010 \001(\t\0323\n"
1152   "\010NamePart\022\021\n\tname_part\030\001 \002(\t\022\024\n\014is_exten"
1153   "sion\030\002 \002(\010\"\325\001\n\016SourceCodeInfo\022:\n\010locatio"
1154   "n\030\001 \003(\0132(.google.protobuf.SourceCodeInfo"
1155   ".Location\032\206\001\n\010Location\022\020\n\004path\030\001 \003(\005B\002\020\001"
1156   "\022\020\n\004span\030\002 \003(\005B\002\020\001\022\030\n\020leading_comments\030\003"
1157   " \001(\t\022\031\n\021trailing_comments\030\004 \001(\t\022!\n\031leadi"
1158   "ng_detached_comments\030\006 \003(\t\"\247\001\n\021Generated"
1159   "CodeInfo\022A\n\nannotation\030\001 \003(\0132-.google.pr"
1160   "otobuf.GeneratedCodeInfo.Annotation\032O\n\nA"
1161   "nnotation\022\020\n\004path\030\001 \003(\005B\002\020\001\022\023\n\013source_fi"
1162   "le\030\002 \001(\t\022\r\n\005begin\030\003 \001(\005\022\013\n\003end\030\004 \001(\005B\217\001\n"
1163   "\023com.google.protobufB\020DescriptorProtosH\001"
1164   "Z>github.com/golang/protobuf/protoc-gen-"
1165   "go/descriptor;descriptor\370\001\001\242\002\003GPB\252\002\032Goog"
1166   "le.Protobuf.Reflection"
1167   ;
1168 static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_deps[1] = {
1169 };
1170 static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_sccs[27] = {
1171   &scc_info_DescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base,
1172   &scc_info_DescriptorProto_ExtensionRange_google_2fprotobuf_2fdescriptor_2eproto.base,
1173   &scc_info_DescriptorProto_ReservedRange_google_2fprotobuf_2fdescriptor_2eproto.base,
1174   &scc_info_EnumDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base,
1175   &scc_info_EnumDescriptorProto_EnumReservedRange_google_2fprotobuf_2fdescriptor_2eproto.base,
1176   &scc_info_EnumOptions_google_2fprotobuf_2fdescriptor_2eproto.base,
1177   &scc_info_EnumValueDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base,
1178   &scc_info_EnumValueOptions_google_2fprotobuf_2fdescriptor_2eproto.base,
1179   &scc_info_ExtensionRangeOptions_google_2fprotobuf_2fdescriptor_2eproto.base,
1180   &scc_info_FieldDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base,
1181   &scc_info_FieldOptions_google_2fprotobuf_2fdescriptor_2eproto.base,
1182   &scc_info_FileDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base,
1183   &scc_info_FileDescriptorSet_google_2fprotobuf_2fdescriptor_2eproto.base,
1184   &scc_info_FileOptions_google_2fprotobuf_2fdescriptor_2eproto.base,
1185   &scc_info_GeneratedCodeInfo_google_2fprotobuf_2fdescriptor_2eproto.base,
1186   &scc_info_GeneratedCodeInfo_Annotation_google_2fprotobuf_2fdescriptor_2eproto.base,
1187   &scc_info_MessageOptions_google_2fprotobuf_2fdescriptor_2eproto.base,
1188   &scc_info_MethodDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base,
1189   &scc_info_MethodOptions_google_2fprotobuf_2fdescriptor_2eproto.base,
1190   &scc_info_OneofDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base,
1191   &scc_info_OneofOptions_google_2fprotobuf_2fdescriptor_2eproto.base,
1192   &scc_info_ServiceDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base,
1193   &scc_info_ServiceOptions_google_2fprotobuf_2fdescriptor_2eproto.base,
1194   &scc_info_SourceCodeInfo_google_2fprotobuf_2fdescriptor_2eproto.base,
1195   &scc_info_SourceCodeInfo_Location_google_2fprotobuf_2fdescriptor_2eproto.base,
1196   &scc_info_UninterpretedOption_google_2fprotobuf_2fdescriptor_2eproto.base,
1197   &scc_info_UninterpretedOption_NamePart_google_2fprotobuf_2fdescriptor_2eproto.base,
1198 };
1199 static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once;
1200 static bool descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_initialized = false;
1201 const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fdescriptor_2eproto = {
1202   &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_initialized, descriptor_table_protodef_google_2fprotobuf_2fdescriptor_2eproto, "google/protobuf/descriptor.proto", 6022,
1203   &descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_once, descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_sccs, descriptor_table_google_2fprotobuf_2fdescriptor_2eproto_deps, 27, 0,
1204   schemas, file_default_instances, TableStruct_google_2fprotobuf_2fdescriptor_2eproto::offsets,
1205   file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto, 27, file_level_enum_descriptors_google_2fprotobuf_2fdescriptor_2eproto, file_level_service_descriptors_google_2fprotobuf_2fdescriptor_2eproto,
1206 };
1207 
1208 // Force running AddDescriptors() at dynamic initialization time.
1209 static bool dynamic_init_dummy_google_2fprotobuf_2fdescriptor_2eproto = (  ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_google_2fprotobuf_2fdescriptor_2eproto), true);
1210 PROTOBUF_NAMESPACE_OPEN
FieldDescriptorProto_Type_descriptor()1211 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldDescriptorProto_Type_descriptor() {
1212   ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
1213   return file_level_enum_descriptors_google_2fprotobuf_2fdescriptor_2eproto[0];
1214 }
FieldDescriptorProto_Type_IsValid(int value)1215 bool FieldDescriptorProto_Type_IsValid(int value) {
1216   switch (value) {
1217     case 1:
1218     case 2:
1219     case 3:
1220     case 4:
1221     case 5:
1222     case 6:
1223     case 7:
1224     case 8:
1225     case 9:
1226     case 10:
1227     case 11:
1228     case 12:
1229     case 13:
1230     case 14:
1231     case 15:
1232     case 16:
1233     case 17:
1234     case 18:
1235       return true;
1236     default:
1237       return false;
1238   }
1239 }
1240 
1241 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
1242 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_DOUBLE;
1243 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FLOAT;
1244 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT64;
1245 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT64;
1246 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT32;
1247 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED64;
1248 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED32;
1249 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BOOL;
1250 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_STRING;
1251 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_GROUP;
1252 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_MESSAGE;
1253 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BYTES;
1254 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT32;
1255 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_ENUM;
1256 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED32;
1257 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED64;
1258 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT32;
1259 constexpr FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT64;
1260 constexpr FieldDescriptorProto_Type FieldDescriptorProto::Type_MIN;
1261 constexpr FieldDescriptorProto_Type FieldDescriptorProto::Type_MAX;
1262 constexpr int FieldDescriptorProto::Type_ARRAYSIZE;
1263 #endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
FieldDescriptorProto_Label_descriptor()1264 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldDescriptorProto_Label_descriptor() {
1265   ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
1266   return file_level_enum_descriptors_google_2fprotobuf_2fdescriptor_2eproto[1];
1267 }
FieldDescriptorProto_Label_IsValid(int value)1268 bool FieldDescriptorProto_Label_IsValid(int value) {
1269   switch (value) {
1270     case 1:
1271     case 2:
1272     case 3:
1273       return true;
1274     default:
1275       return false;
1276   }
1277 }
1278 
1279 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
1280 constexpr FieldDescriptorProto_Label FieldDescriptorProto::LABEL_OPTIONAL;
1281 constexpr FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REQUIRED;
1282 constexpr FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REPEATED;
1283 constexpr FieldDescriptorProto_Label FieldDescriptorProto::Label_MIN;
1284 constexpr FieldDescriptorProto_Label FieldDescriptorProto::Label_MAX;
1285 constexpr int FieldDescriptorProto::Label_ARRAYSIZE;
1286 #endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
FileOptions_OptimizeMode_descriptor()1287 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FileOptions_OptimizeMode_descriptor() {
1288   ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
1289   return file_level_enum_descriptors_google_2fprotobuf_2fdescriptor_2eproto[2];
1290 }
FileOptions_OptimizeMode_IsValid(int value)1291 bool FileOptions_OptimizeMode_IsValid(int value) {
1292   switch (value) {
1293     case 1:
1294     case 2:
1295     case 3:
1296       return true;
1297     default:
1298       return false;
1299   }
1300 }
1301 
1302 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
1303 constexpr FileOptions_OptimizeMode FileOptions::SPEED;
1304 constexpr FileOptions_OptimizeMode FileOptions::CODE_SIZE;
1305 constexpr FileOptions_OptimizeMode FileOptions::LITE_RUNTIME;
1306 constexpr FileOptions_OptimizeMode FileOptions::OptimizeMode_MIN;
1307 constexpr FileOptions_OptimizeMode FileOptions::OptimizeMode_MAX;
1308 constexpr int FileOptions::OptimizeMode_ARRAYSIZE;
1309 #endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
FieldOptions_CType_descriptor()1310 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldOptions_CType_descriptor() {
1311   ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
1312   return file_level_enum_descriptors_google_2fprotobuf_2fdescriptor_2eproto[3];
1313 }
FieldOptions_CType_IsValid(int value)1314 bool FieldOptions_CType_IsValid(int value) {
1315   switch (value) {
1316     case 0:
1317     case 1:
1318     case 2:
1319       return true;
1320     default:
1321       return false;
1322   }
1323 }
1324 
1325 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
1326 constexpr FieldOptions_CType FieldOptions::STRING;
1327 constexpr FieldOptions_CType FieldOptions::CORD;
1328 constexpr FieldOptions_CType FieldOptions::STRING_PIECE;
1329 constexpr FieldOptions_CType FieldOptions::CType_MIN;
1330 constexpr FieldOptions_CType FieldOptions::CType_MAX;
1331 constexpr int FieldOptions::CType_ARRAYSIZE;
1332 #endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
FieldOptions_JSType_descriptor()1333 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldOptions_JSType_descriptor() {
1334   ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
1335   return file_level_enum_descriptors_google_2fprotobuf_2fdescriptor_2eproto[4];
1336 }
FieldOptions_JSType_IsValid(int value)1337 bool FieldOptions_JSType_IsValid(int value) {
1338   switch (value) {
1339     case 0:
1340     case 1:
1341     case 2:
1342       return true;
1343     default:
1344       return false;
1345   }
1346 }
1347 
1348 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
1349 constexpr FieldOptions_JSType FieldOptions::JS_NORMAL;
1350 constexpr FieldOptions_JSType FieldOptions::JS_STRING;
1351 constexpr FieldOptions_JSType FieldOptions::JS_NUMBER;
1352 constexpr FieldOptions_JSType FieldOptions::JSType_MIN;
1353 constexpr FieldOptions_JSType FieldOptions::JSType_MAX;
1354 constexpr int FieldOptions::JSType_ARRAYSIZE;
1355 #endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
MethodOptions_IdempotencyLevel_descriptor()1356 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MethodOptions_IdempotencyLevel_descriptor() {
1357   ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
1358   return file_level_enum_descriptors_google_2fprotobuf_2fdescriptor_2eproto[5];
1359 }
MethodOptions_IdempotencyLevel_IsValid(int value)1360 bool MethodOptions_IdempotencyLevel_IsValid(int value) {
1361   switch (value) {
1362     case 0:
1363     case 1:
1364     case 2:
1365       return true;
1366     default:
1367       return false;
1368   }
1369 }
1370 
1371 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
1372 constexpr MethodOptions_IdempotencyLevel MethodOptions::IDEMPOTENCY_UNKNOWN;
1373 constexpr MethodOptions_IdempotencyLevel MethodOptions::NO_SIDE_EFFECTS;
1374 constexpr MethodOptions_IdempotencyLevel MethodOptions::IDEMPOTENT;
1375 constexpr MethodOptions_IdempotencyLevel MethodOptions::IdempotencyLevel_MIN;
1376 constexpr MethodOptions_IdempotencyLevel MethodOptions::IdempotencyLevel_MAX;
1377 constexpr int MethodOptions::IdempotencyLevel_ARRAYSIZE;
1378 #endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
1379 
1380 // ===================================================================
1381 
InitAsDefaultInstance()1382 void FileDescriptorSet::InitAsDefaultInstance() {
1383 }
1384 class FileDescriptorSet::_Internal {
1385  public:
1386   using HasBits = decltype(std::declval<FileDescriptorSet>()._has_bits_);
1387 };
1388 
FileDescriptorSet()1389 FileDescriptorSet::FileDescriptorSet()
1390   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1391   SharedCtor();
1392   // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorSet)
1393 }
FileDescriptorSet(::PROTOBUF_NAMESPACE_ID::Arena * arena)1394 FileDescriptorSet::FileDescriptorSet(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1395   : ::PROTOBUF_NAMESPACE_ID::Message(),
1396   _internal_metadata_(arena),
1397   file_(arena) {
1398   SharedCtor();
1399   RegisterArenaDtor(arena);
1400   // @@protoc_insertion_point(arena_constructor:google.protobuf.FileDescriptorSet)
1401 }
FileDescriptorSet(const FileDescriptorSet & from)1402 FileDescriptorSet::FileDescriptorSet(const FileDescriptorSet& from)
1403   : ::PROTOBUF_NAMESPACE_ID::Message(),
1404       _internal_metadata_(nullptr),
1405       _has_bits_(from._has_bits_),
1406       file_(from.file_) {
1407   _internal_metadata_.MergeFrom(from._internal_metadata_);
1408   // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorSet)
1409 }
1410 
SharedCtor()1411 void FileDescriptorSet::SharedCtor() {
1412   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FileDescriptorSet_google_2fprotobuf_2fdescriptor_2eproto.base);
1413 }
1414 
~FileDescriptorSet()1415 FileDescriptorSet::~FileDescriptorSet() {
1416   // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorSet)
1417   SharedDtor();
1418 }
1419 
SharedDtor()1420 void FileDescriptorSet::SharedDtor() {
1421   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
1422 }
1423 
ArenaDtor(void * object)1424 void FileDescriptorSet::ArenaDtor(void* object) {
1425   FileDescriptorSet* _this = reinterpret_cast< FileDescriptorSet* >(object);
1426   (void)_this;
1427 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)1428 void FileDescriptorSet::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1429 }
SetCachedSize(int size) const1430 void FileDescriptorSet::SetCachedSize(int size) const {
1431   _cached_size_.Set(size);
1432 }
default_instance()1433 const FileDescriptorSet& FileDescriptorSet::default_instance() {
1434   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FileDescriptorSet_google_2fprotobuf_2fdescriptor_2eproto.base);
1435   return *internal_default_instance();
1436 }
1437 
1438 
Clear()1439 void FileDescriptorSet::Clear() {
1440 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileDescriptorSet)
1441   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1442   // Prevent compiler warnings about cached_has_bits being unused
1443   (void) cached_has_bits;
1444 
1445   file_.Clear();
1446   _has_bits_.Clear();
1447   _internal_metadata_.Clear();
1448 }
1449 
1450 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)1451 const char* FileDescriptorSet::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1452 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1453   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
1454   while (!ctx->Done(&ptr)) {
1455     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1456     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1457     CHK_(ptr);
1458     switch (tag >> 3) {
1459       // repeated .google.protobuf.FileDescriptorProto file = 1;
1460       case 1:
1461         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1462           ptr -= 1;
1463           do {
1464             ptr += 1;
1465             ptr = ctx->ParseMessage(add_file(), ptr);
1466             CHK_(ptr);
1467             if (!ctx->DataAvailable(ptr)) break;
1468           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
1469         } else goto handle_unusual;
1470         continue;
1471       default: {
1472       handle_unusual:
1473         if ((tag & 7) == 4 || tag == 0) {
1474           ctx->SetLastTag(tag);
1475           goto success;
1476         }
1477         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1478         CHK_(ptr != nullptr);
1479         continue;
1480       }
1481     }  // switch
1482   }  // while
1483 success:
1484   return ptr;
1485 failure:
1486   ptr = nullptr;
1487   goto success;
1488 #undef CHK_
1489 }
1490 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)1491 bool FileDescriptorSet::MergePartialFromCodedStream(
1492     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
1493 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1494   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1495   // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorSet)
1496   for (;;) {
1497     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1498     tag = p.first;
1499     if (!p.second) goto handle_unusual;
1500     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1501       // repeated .google.protobuf.FileDescriptorProto file = 1;
1502       case 1: {
1503         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
1504           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1505                 input, add_file()));
1506         } else {
1507           goto handle_unusual;
1508         }
1509         break;
1510       }
1511 
1512       default: {
1513       handle_unusual:
1514         if (tag == 0) {
1515           goto success;
1516         }
1517         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
1518               input, tag, _internal_metadata_.mutable_unknown_fields()));
1519         break;
1520       }
1521     }
1522   }
1523 success:
1524   // @@protoc_insertion_point(parse_success:google.protobuf.FileDescriptorSet)
1525   return true;
1526 failure:
1527   // @@protoc_insertion_point(parse_failure:google.protobuf.FileDescriptorSet)
1528   return false;
1529 #undef DO_
1530 }
1531 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1532 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const1533 void FileDescriptorSet::SerializeWithCachedSizes(
1534     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
1535   // @@protoc_insertion_point(serialize_start:google.protobuf.FileDescriptorSet)
1536   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1537   (void) cached_has_bits;
1538 
1539   // repeated .google.protobuf.FileDescriptorProto file = 1;
1540   for (unsigned int i = 0,
1541       n = static_cast<unsigned int>(this->file_size()); i < n; i++) {
1542     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1543       1,
1544       this->file(static_cast<int>(i)),
1545       output);
1546   }
1547 
1548   if (_internal_metadata_.have_unknown_fields()) {
1549     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
1550         _internal_metadata_.unknown_fields(), output);
1551   }
1552   // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorSet)
1553 }
1554 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const1555 ::PROTOBUF_NAMESPACE_ID::uint8* FileDescriptorSet::InternalSerializeWithCachedSizesToArray(
1556     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
1557   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorSet)
1558   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1559   (void) cached_has_bits;
1560 
1561   // repeated .google.protobuf.FileDescriptorProto file = 1;
1562   for (unsigned int i = 0,
1563       n = static_cast<unsigned int>(this->file_size()); i < n; i++) {
1564     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1565       InternalWriteMessageToArray(
1566         1, this->file(static_cast<int>(i)), target);
1567   }
1568 
1569   if (_internal_metadata_.have_unknown_fields()) {
1570     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1571         _internal_metadata_.unknown_fields(), target);
1572   }
1573   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescriptorSet)
1574   return target;
1575 }
1576 
ByteSizeLong() const1577 size_t FileDescriptorSet::ByteSizeLong() const {
1578 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileDescriptorSet)
1579   size_t total_size = 0;
1580 
1581   if (_internal_metadata_.have_unknown_fields()) {
1582     total_size +=
1583       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1584         _internal_metadata_.unknown_fields());
1585   }
1586   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1587   // Prevent compiler warnings about cached_has_bits being unused
1588   (void) cached_has_bits;
1589 
1590   // repeated .google.protobuf.FileDescriptorProto file = 1;
1591   {
1592     unsigned int count = static_cast<unsigned int>(this->file_size());
1593     total_size += 1UL * count;
1594     for (unsigned int i = 0; i < count; i++) {
1595       total_size +=
1596         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1597           this->file(static_cast<int>(i)));
1598     }
1599   }
1600 
1601   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1602   SetCachedSize(cached_size);
1603   return total_size;
1604 }
1605 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)1606 void FileDescriptorSet::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1607 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileDescriptorSet)
1608   GOOGLE_DCHECK_NE(&from, this);
1609   const FileDescriptorSet* source =
1610       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<FileDescriptorSet>(
1611           &from);
1612   if (source == nullptr) {
1613   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FileDescriptorSet)
1614     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1615   } else {
1616   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FileDescriptorSet)
1617     MergeFrom(*source);
1618   }
1619 }
1620 
MergeFrom(const FileDescriptorSet & from)1621 void FileDescriptorSet::MergeFrom(const FileDescriptorSet& from) {
1622 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FileDescriptorSet)
1623   GOOGLE_DCHECK_NE(&from, this);
1624   _internal_metadata_.MergeFrom(from._internal_metadata_);
1625   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1626   (void) cached_has_bits;
1627 
1628   file_.MergeFrom(from.file_);
1629 }
1630 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)1631 void FileDescriptorSet::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1632 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileDescriptorSet)
1633   if (&from == this) return;
1634   Clear();
1635   MergeFrom(from);
1636 }
1637 
CopyFrom(const FileDescriptorSet & from)1638 void FileDescriptorSet::CopyFrom(const FileDescriptorSet& from) {
1639 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileDescriptorSet)
1640   if (&from == this) return;
1641   Clear();
1642   MergeFrom(from);
1643 }
1644 
IsInitialized() const1645 bool FileDescriptorSet::IsInitialized() const {
1646   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->file())) return false;
1647   return true;
1648 }
1649 
InternalSwap(FileDescriptorSet * other)1650 void FileDescriptorSet::InternalSwap(FileDescriptorSet* other) {
1651   using std::swap;
1652   _internal_metadata_.Swap(&other->_internal_metadata_);
1653   swap(_has_bits_[0], other->_has_bits_[0]);
1654   CastToBase(&file_)->InternalSwap(CastToBase(&other->file_));
1655 }
1656 
GetMetadata() const1657 ::PROTOBUF_NAMESPACE_ID::Metadata FileDescriptorSet::GetMetadata() const {
1658   return GetMetadataStatic();
1659 }
1660 
1661 
1662 // ===================================================================
1663 
InitAsDefaultInstance()1664 void FileDescriptorProto::InitAsDefaultInstance() {
1665   PROTOBUF_NAMESPACE_ID::_FileDescriptorProto_default_instance_._instance.get_mutable()->options_ = const_cast< PROTOBUF_NAMESPACE_ID::FileOptions*>(
1666       PROTOBUF_NAMESPACE_ID::FileOptions::internal_default_instance());
1667   PROTOBUF_NAMESPACE_ID::_FileDescriptorProto_default_instance_._instance.get_mutable()->source_code_info_ = const_cast< PROTOBUF_NAMESPACE_ID::SourceCodeInfo*>(
1668       PROTOBUF_NAMESPACE_ID::SourceCodeInfo::internal_default_instance());
1669 }
1670 class FileDescriptorProto::_Internal {
1671  public:
1672   using HasBits = decltype(std::declval<FileDescriptorProto>()._has_bits_);
set_has_name(HasBits * has_bits)1673   static void set_has_name(HasBits* has_bits) {
1674     (*has_bits)[0] |= 1u;
1675   }
set_has_package(HasBits * has_bits)1676   static void set_has_package(HasBits* has_bits) {
1677     (*has_bits)[0] |= 2u;
1678   }
1679   static const PROTOBUF_NAMESPACE_ID::FileOptions& options(const FileDescriptorProto* msg);
set_has_options(HasBits * has_bits)1680   static void set_has_options(HasBits* has_bits) {
1681     (*has_bits)[0] |= 8u;
1682   }
1683   static const PROTOBUF_NAMESPACE_ID::SourceCodeInfo& source_code_info(const FileDescriptorProto* msg);
set_has_source_code_info(HasBits * has_bits)1684   static void set_has_source_code_info(HasBits* has_bits) {
1685     (*has_bits)[0] |= 16u;
1686   }
set_has_syntax(HasBits * has_bits)1687   static void set_has_syntax(HasBits* has_bits) {
1688     (*has_bits)[0] |= 4u;
1689   }
1690 };
1691 
1692 const PROTOBUF_NAMESPACE_ID::FileOptions&
options(const FileDescriptorProto * msg)1693 FileDescriptorProto::_Internal::options(const FileDescriptorProto* msg) {
1694   return *msg->options_;
1695 }
1696 const PROTOBUF_NAMESPACE_ID::SourceCodeInfo&
source_code_info(const FileDescriptorProto * msg)1697 FileDescriptorProto::_Internal::source_code_info(const FileDescriptorProto* msg) {
1698   return *msg->source_code_info_;
1699 }
unsafe_arena_set_allocated_options(PROTOBUF_NAMESPACE_ID::FileOptions * options)1700 void FileDescriptorProto::unsafe_arena_set_allocated_options(
1701     PROTOBUF_NAMESPACE_ID::FileOptions* options) {
1702   if (GetArenaNoVirtual() == nullptr) {
1703     delete options_;
1704   }
1705   options_ = options;
1706   if (options) {
1707     _has_bits_[0] |= 0x00000008u;
1708   } else {
1709     _has_bits_[0] &= ~0x00000008u;
1710   }
1711   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileDescriptorProto.options)
1712 }
unsafe_arena_set_allocated_source_code_info(PROTOBUF_NAMESPACE_ID::SourceCodeInfo * source_code_info)1713 void FileDescriptorProto::unsafe_arena_set_allocated_source_code_info(
1714     PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info) {
1715   if (GetArenaNoVirtual() == nullptr) {
1716     delete source_code_info_;
1717   }
1718   source_code_info_ = source_code_info;
1719   if (source_code_info) {
1720     _has_bits_[0] |= 0x00000010u;
1721   } else {
1722     _has_bits_[0] &= ~0x00000010u;
1723   }
1724   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileDescriptorProto.source_code_info)
1725 }
FileDescriptorProto()1726 FileDescriptorProto::FileDescriptorProto()
1727   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1728   SharedCtor();
1729   // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorProto)
1730 }
FileDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena * arena)1731 FileDescriptorProto::FileDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1732   : ::PROTOBUF_NAMESPACE_ID::Message(),
1733   _internal_metadata_(arena),
1734   dependency_(arena),
1735   message_type_(arena),
1736   enum_type_(arena),
1737   service_(arena),
1738   extension_(arena),
1739   public_dependency_(arena),
1740   weak_dependency_(arena) {
1741   SharedCtor();
1742   RegisterArenaDtor(arena);
1743   // @@protoc_insertion_point(arena_constructor:google.protobuf.FileDescriptorProto)
1744 }
FileDescriptorProto(const FileDescriptorProto & from)1745 FileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from)
1746   : ::PROTOBUF_NAMESPACE_ID::Message(),
1747       _internal_metadata_(nullptr),
1748       _has_bits_(from._has_bits_),
1749       dependency_(from.dependency_),
1750       message_type_(from.message_type_),
1751       enum_type_(from.enum_type_),
1752       service_(from.service_),
1753       extension_(from.extension_),
1754       public_dependency_(from.public_dependency_),
1755       weak_dependency_(from.weak_dependency_) {
1756   _internal_metadata_.MergeFrom(from._internal_metadata_);
1757   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1758   if (from.has_name()) {
1759     name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name(),
1760       GetArenaNoVirtual());
1761   }
1762   package_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1763   if (from.has_package()) {
1764     package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.package(),
1765       GetArenaNoVirtual());
1766   }
1767   syntax_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1768   if (from.has_syntax()) {
1769     syntax_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.syntax(),
1770       GetArenaNoVirtual());
1771   }
1772   if (from.has_options()) {
1773     options_ = new PROTOBUF_NAMESPACE_ID::FileOptions(*from.options_);
1774   } else {
1775     options_ = nullptr;
1776   }
1777   if (from.has_source_code_info()) {
1778     source_code_info_ = new PROTOBUF_NAMESPACE_ID::SourceCodeInfo(*from.source_code_info_);
1779   } else {
1780     source_code_info_ = nullptr;
1781   }
1782   // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorProto)
1783 }
1784 
SharedCtor()1785 void FileDescriptorProto::SharedCtor() {
1786   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FileDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base);
1787   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1788   package_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1789   syntax_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1790   ::memset(&options_, 0, static_cast<size_t>(
1791       reinterpret_cast<char*>(&source_code_info_) -
1792       reinterpret_cast<char*>(&options_)) + sizeof(source_code_info_));
1793 }
1794 
~FileDescriptorProto()1795 FileDescriptorProto::~FileDescriptorProto() {
1796   // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorProto)
1797   SharedDtor();
1798 }
1799 
SharedDtor()1800 void FileDescriptorProto::SharedDtor() {
1801   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
1802   name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1803   package_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1804   syntax_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1805   if (this != internal_default_instance()) delete options_;
1806   if (this != internal_default_instance()) delete source_code_info_;
1807 }
1808 
ArenaDtor(void * object)1809 void FileDescriptorProto::ArenaDtor(void* object) {
1810   FileDescriptorProto* _this = reinterpret_cast< FileDescriptorProto* >(object);
1811   (void)_this;
1812 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)1813 void FileDescriptorProto::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1814 }
SetCachedSize(int size) const1815 void FileDescriptorProto::SetCachedSize(int size) const {
1816   _cached_size_.Set(size);
1817 }
default_instance()1818 const FileDescriptorProto& FileDescriptorProto::default_instance() {
1819   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FileDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base);
1820   return *internal_default_instance();
1821 }
1822 
1823 
Clear()1824 void FileDescriptorProto::Clear() {
1825 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileDescriptorProto)
1826   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1827   // Prevent compiler warnings about cached_has_bits being unused
1828   (void) cached_has_bits;
1829 
1830   dependency_.Clear();
1831   message_type_.Clear();
1832   enum_type_.Clear();
1833   service_.Clear();
1834   extension_.Clear();
1835   public_dependency_.Clear();
1836   weak_dependency_.Clear();
1837   cached_has_bits = _has_bits_[0];
1838   if (cached_has_bits & 0x0000001fu) {
1839     if (cached_has_bits & 0x00000001u) {
1840       name_.ClearNonDefaultToEmpty();
1841     }
1842     if (cached_has_bits & 0x00000002u) {
1843       package_.ClearNonDefaultToEmpty();
1844     }
1845     if (cached_has_bits & 0x00000004u) {
1846       syntax_.ClearNonDefaultToEmpty();
1847     }
1848     if (cached_has_bits & 0x00000008u) {
1849       GOOGLE_DCHECK(options_ != nullptr);
1850       options_->Clear();
1851     }
1852     if (cached_has_bits & 0x00000010u) {
1853       GOOGLE_DCHECK(source_code_info_ != nullptr);
1854       source_code_info_->Clear();
1855     }
1856   }
1857   _has_bits_.Clear();
1858   _internal_metadata_.Clear();
1859 }
1860 
1861 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)1862 const char* FileDescriptorProto::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1863 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1864   _Internal::HasBits has_bits{};
1865   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
1866   while (!ctx->Done(&ptr)) {
1867     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1868     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1869     CHK_(ptr);
1870     switch (tag >> 3) {
1871       // optional string name = 1;
1872       case 1:
1873         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1874           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_name(), ptr, ctx, "google.protobuf.FileDescriptorProto.name");
1875           CHK_(ptr);
1876         } else goto handle_unusual;
1877         continue;
1878       // optional string package = 2;
1879       case 2:
1880         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1881           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_package(), ptr, ctx, "google.protobuf.FileDescriptorProto.package");
1882           CHK_(ptr);
1883         } else goto handle_unusual;
1884         continue;
1885       // repeated string dependency = 3;
1886       case 3:
1887         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
1888           ptr -= 1;
1889           do {
1890             ptr += 1;
1891             ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(add_dependency(), ptr, ctx, "google.protobuf.FileDescriptorProto.dependency");
1892             CHK_(ptr);
1893             if (!ctx->DataAvailable(ptr)) break;
1894           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26);
1895         } else goto handle_unusual;
1896         continue;
1897       // repeated .google.protobuf.DescriptorProto message_type = 4;
1898       case 4:
1899         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
1900           ptr -= 1;
1901           do {
1902             ptr += 1;
1903             ptr = ctx->ParseMessage(add_message_type(), ptr);
1904             CHK_(ptr);
1905             if (!ctx->DataAvailable(ptr)) break;
1906           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34);
1907         } else goto handle_unusual;
1908         continue;
1909       // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1910       case 5:
1911         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
1912           ptr -= 1;
1913           do {
1914             ptr += 1;
1915             ptr = ctx->ParseMessage(add_enum_type(), ptr);
1916             CHK_(ptr);
1917             if (!ctx->DataAvailable(ptr)) break;
1918           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 42);
1919         } else goto handle_unusual;
1920         continue;
1921       // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1922       case 6:
1923         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
1924           ptr -= 1;
1925           do {
1926             ptr += 1;
1927             ptr = ctx->ParseMessage(add_service(), ptr);
1928             CHK_(ptr);
1929             if (!ctx->DataAvailable(ptr)) break;
1930           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 50);
1931         } else goto handle_unusual;
1932         continue;
1933       // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1934       case 7:
1935         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
1936           ptr -= 1;
1937           do {
1938             ptr += 1;
1939             ptr = ctx->ParseMessage(add_extension(), ptr);
1940             CHK_(ptr);
1941             if (!ctx->DataAvailable(ptr)) break;
1942           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 58);
1943         } else goto handle_unusual;
1944         continue;
1945       // optional .google.protobuf.FileOptions options = 8;
1946       case 8:
1947         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
1948           ptr = ctx->ParseMessage(mutable_options(), ptr);
1949           CHK_(ptr);
1950         } else goto handle_unusual;
1951         continue;
1952       // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1953       case 9:
1954         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
1955           ptr = ctx->ParseMessage(mutable_source_code_info(), ptr);
1956           CHK_(ptr);
1957         } else goto handle_unusual;
1958         continue;
1959       // repeated int32 public_dependency = 10;
1960       case 10:
1961         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
1962           ptr -= 1;
1963           do {
1964             ptr += 1;
1965             add_public_dependency(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
1966             CHK_(ptr);
1967             if (!ctx->DataAvailable(ptr)) break;
1968           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 80);
1969         } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82) {
1970           ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(mutable_public_dependency(), ptr, ctx);
1971           CHK_(ptr);
1972         } else goto handle_unusual;
1973         continue;
1974       // repeated int32 weak_dependency = 11;
1975       case 11:
1976         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) {
1977           ptr -= 1;
1978           do {
1979             ptr += 1;
1980             add_weak_dependency(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
1981             CHK_(ptr);
1982             if (!ctx->DataAvailable(ptr)) break;
1983           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 88);
1984         } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90) {
1985           ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(mutable_weak_dependency(), ptr, ctx);
1986           CHK_(ptr);
1987         } else goto handle_unusual;
1988         continue;
1989       // optional string syntax = 12;
1990       case 12:
1991         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) {
1992           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_syntax(), ptr, ctx, "google.protobuf.FileDescriptorProto.syntax");
1993           CHK_(ptr);
1994         } else goto handle_unusual;
1995         continue;
1996       default: {
1997       handle_unusual:
1998         if ((tag & 7) == 4 || tag == 0) {
1999           ctx->SetLastTag(tag);
2000           goto success;
2001         }
2002         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
2003         CHK_(ptr != nullptr);
2004         continue;
2005       }
2006     }  // switch
2007   }  // while
2008 success:
2009   _has_bits_.Or(has_bits);
2010   return ptr;
2011 failure:
2012   ptr = nullptr;
2013   goto success;
2014 #undef CHK_
2015 }
2016 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)2017 bool FileDescriptorProto::MergePartialFromCodedStream(
2018     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
2019 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2020   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2021   // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorProto)
2022   for (;;) {
2023     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2024     tag = p.first;
2025     if (!p.second) goto handle_unusual;
2026     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2027       // optional string name = 1;
2028       case 1: {
2029         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
2030           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
2031                 input, this->mutable_name()));
2032           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
2033             this->name().data(), static_cast<int>(this->name().length()),
2034             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
2035             "google.protobuf.FileDescriptorProto.name");
2036         } else {
2037           goto handle_unusual;
2038         }
2039         break;
2040       }
2041 
2042       // optional string package = 2;
2043       case 2: {
2044         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
2045           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
2046                 input, this->mutable_package()));
2047           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
2048             this->package().data(), static_cast<int>(this->package().length()),
2049             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
2050             "google.protobuf.FileDescriptorProto.package");
2051         } else {
2052           goto handle_unusual;
2053         }
2054         break;
2055       }
2056 
2057       // repeated string dependency = 3;
2058       case 3: {
2059         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
2060           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
2061                 input, this->add_dependency()));
2062           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
2063             this->dependency(this->dependency_size() - 1).data(),
2064             static_cast<int>(this->dependency(this->dependency_size() - 1).length()),
2065             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
2066             "google.protobuf.FileDescriptorProto.dependency");
2067         } else {
2068           goto handle_unusual;
2069         }
2070         break;
2071       }
2072 
2073       // repeated .google.protobuf.DescriptorProto message_type = 4;
2074       case 4: {
2075         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
2076           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2077                 input, add_message_type()));
2078         } else {
2079           goto handle_unusual;
2080         }
2081         break;
2082       }
2083 
2084       // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
2085       case 5: {
2086         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
2087           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2088                 input, add_enum_type()));
2089         } else {
2090           goto handle_unusual;
2091         }
2092         break;
2093       }
2094 
2095       // repeated .google.protobuf.ServiceDescriptorProto service = 6;
2096       case 6: {
2097         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
2098           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2099                 input, add_service()));
2100         } else {
2101           goto handle_unusual;
2102         }
2103         break;
2104       }
2105 
2106       // repeated .google.protobuf.FieldDescriptorProto extension = 7;
2107       case 7: {
2108         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) {
2109           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2110                 input, add_extension()));
2111         } else {
2112           goto handle_unusual;
2113         }
2114         break;
2115       }
2116 
2117       // optional .google.protobuf.FileOptions options = 8;
2118       case 8: {
2119         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) {
2120           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2121                input, mutable_options()));
2122         } else {
2123           goto handle_unusual;
2124         }
2125         break;
2126       }
2127 
2128       // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
2129       case 9: {
2130         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (74 & 0xFF)) {
2131           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2132                input, mutable_source_code_info()));
2133         } else {
2134           goto handle_unusual;
2135         }
2136         break;
2137       }
2138 
2139       // repeated int32 public_dependency = 10;
2140       case 10: {
2141         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (80 & 0xFF)) {
2142           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitive<
2143                    ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
2144                  1, 80u, input, this->mutable_public_dependency())));
2145         } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (82 & 0xFF)) {
2146           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
2147                    ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
2148                  input, this->mutable_public_dependency())));
2149         } else {
2150           goto handle_unusual;
2151         }
2152         break;
2153       }
2154 
2155       // repeated int32 weak_dependency = 11;
2156       case 11: {
2157         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (88 & 0xFF)) {
2158           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitive<
2159                    ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
2160                  1, 88u, input, this->mutable_weak_dependency())));
2161         } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (90 & 0xFF)) {
2162           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
2163                    ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
2164                  input, this->mutable_weak_dependency())));
2165         } else {
2166           goto handle_unusual;
2167         }
2168         break;
2169       }
2170 
2171       // optional string syntax = 12;
2172       case 12: {
2173         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (98 & 0xFF)) {
2174           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
2175                 input, this->mutable_syntax()));
2176           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
2177             this->syntax().data(), static_cast<int>(this->syntax().length()),
2178             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
2179             "google.protobuf.FileDescriptorProto.syntax");
2180         } else {
2181           goto handle_unusual;
2182         }
2183         break;
2184       }
2185 
2186       default: {
2187       handle_unusual:
2188         if (tag == 0) {
2189           goto success;
2190         }
2191         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
2192               input, tag, _internal_metadata_.mutable_unknown_fields()));
2193         break;
2194       }
2195     }
2196   }
2197 success:
2198   // @@protoc_insertion_point(parse_success:google.protobuf.FileDescriptorProto)
2199   return true;
2200 failure:
2201   // @@protoc_insertion_point(parse_failure:google.protobuf.FileDescriptorProto)
2202   return false;
2203 #undef DO_
2204 }
2205 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2206 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const2207 void FileDescriptorProto::SerializeWithCachedSizes(
2208     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
2209   // @@protoc_insertion_point(serialize_start:google.protobuf.FileDescriptorProto)
2210   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2211   (void) cached_has_bits;
2212 
2213   cached_has_bits = _has_bits_[0];
2214   // optional string name = 1;
2215   if (cached_has_bits & 0x00000001u) {
2216     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
2217       this->name().data(), static_cast<int>(this->name().length()),
2218       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
2219       "google.protobuf.FileDescriptorProto.name");
2220     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2221       1, this->name(), output);
2222   }
2223 
2224   // optional string package = 2;
2225   if (cached_has_bits & 0x00000002u) {
2226     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
2227       this->package().data(), static_cast<int>(this->package().length()),
2228       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
2229       "google.protobuf.FileDescriptorProto.package");
2230     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2231       2, this->package(), output);
2232   }
2233 
2234   // repeated string dependency = 3;
2235   for (int i = 0, n = this->dependency_size(); i < n; i++) {
2236     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
2237       this->dependency(i).data(), static_cast<int>(this->dependency(i).length()),
2238       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
2239       "google.protobuf.FileDescriptorProto.dependency");
2240     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
2241       3, this->dependency(i), output);
2242   }
2243 
2244   // repeated .google.protobuf.DescriptorProto message_type = 4;
2245   for (unsigned int i = 0,
2246       n = static_cast<unsigned int>(this->message_type_size()); i < n; i++) {
2247     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2248       4,
2249       this->message_type(static_cast<int>(i)),
2250       output);
2251   }
2252 
2253   // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
2254   for (unsigned int i = 0,
2255       n = static_cast<unsigned int>(this->enum_type_size()); i < n; i++) {
2256     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2257       5,
2258       this->enum_type(static_cast<int>(i)),
2259       output);
2260   }
2261 
2262   // repeated .google.protobuf.ServiceDescriptorProto service = 6;
2263   for (unsigned int i = 0,
2264       n = static_cast<unsigned int>(this->service_size()); i < n; i++) {
2265     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2266       6,
2267       this->service(static_cast<int>(i)),
2268       output);
2269   }
2270 
2271   // repeated .google.protobuf.FieldDescriptorProto extension = 7;
2272   for (unsigned int i = 0,
2273       n = static_cast<unsigned int>(this->extension_size()); i < n; i++) {
2274     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2275       7,
2276       this->extension(static_cast<int>(i)),
2277       output);
2278   }
2279 
2280   // optional .google.protobuf.FileOptions options = 8;
2281   if (cached_has_bits & 0x00000008u) {
2282     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2283       8, _Internal::options(this), output);
2284   }
2285 
2286   // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
2287   if (cached_has_bits & 0x00000010u) {
2288     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2289       9, _Internal::source_code_info(this), output);
2290   }
2291 
2292   // repeated int32 public_dependency = 10;
2293   for (int i = 0, n = this->public_dependency_size(); i < n; i++) {
2294     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(
2295       10, this->public_dependency(i), output);
2296   }
2297 
2298   // repeated int32 weak_dependency = 11;
2299   for (int i = 0, n = this->weak_dependency_size(); i < n; i++) {
2300     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(
2301       11, this->weak_dependency(i), output);
2302   }
2303 
2304   // optional string syntax = 12;
2305   if (cached_has_bits & 0x00000004u) {
2306     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
2307       this->syntax().data(), static_cast<int>(this->syntax().length()),
2308       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
2309       "google.protobuf.FileDescriptorProto.syntax");
2310     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2311       12, this->syntax(), output);
2312   }
2313 
2314   if (_internal_metadata_.have_unknown_fields()) {
2315     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
2316         _internal_metadata_.unknown_fields(), output);
2317   }
2318   // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorProto)
2319 }
2320 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const2321 ::PROTOBUF_NAMESPACE_ID::uint8* FileDescriptorProto::InternalSerializeWithCachedSizesToArray(
2322     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
2323   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorProto)
2324   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2325   (void) cached_has_bits;
2326 
2327   cached_has_bits = _has_bits_[0];
2328   // optional string name = 1;
2329   if (cached_has_bits & 0x00000001u) {
2330     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
2331       this->name().data(), static_cast<int>(this->name().length()),
2332       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
2333       "google.protobuf.FileDescriptorProto.name");
2334     target =
2335       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2336         1, this->name(), target);
2337   }
2338 
2339   // optional string package = 2;
2340   if (cached_has_bits & 0x00000002u) {
2341     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
2342       this->package().data(), static_cast<int>(this->package().length()),
2343       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
2344       "google.protobuf.FileDescriptorProto.package");
2345     target =
2346       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2347         2, this->package(), target);
2348   }
2349 
2350   // repeated string dependency = 3;
2351   for (int i = 0, n = this->dependency_size(); i < n; i++) {
2352     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
2353       this->dependency(i).data(), static_cast<int>(this->dependency(i).length()),
2354       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
2355       "google.protobuf.FileDescriptorProto.dependency");
2356     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2357       WriteStringToArray(3, this->dependency(i), target);
2358   }
2359 
2360   // repeated .google.protobuf.DescriptorProto message_type = 4;
2361   for (unsigned int i = 0,
2362       n = static_cast<unsigned int>(this->message_type_size()); i < n; i++) {
2363     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2364       InternalWriteMessageToArray(
2365         4, this->message_type(static_cast<int>(i)), target);
2366   }
2367 
2368   // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
2369   for (unsigned int i = 0,
2370       n = static_cast<unsigned int>(this->enum_type_size()); i < n; i++) {
2371     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2372       InternalWriteMessageToArray(
2373         5, this->enum_type(static_cast<int>(i)), target);
2374   }
2375 
2376   // repeated .google.protobuf.ServiceDescriptorProto service = 6;
2377   for (unsigned int i = 0,
2378       n = static_cast<unsigned int>(this->service_size()); i < n; i++) {
2379     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2380       InternalWriteMessageToArray(
2381         6, this->service(static_cast<int>(i)), target);
2382   }
2383 
2384   // repeated .google.protobuf.FieldDescriptorProto extension = 7;
2385   for (unsigned int i = 0,
2386       n = static_cast<unsigned int>(this->extension_size()); i < n; i++) {
2387     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2388       InternalWriteMessageToArray(
2389         7, this->extension(static_cast<int>(i)), target);
2390   }
2391 
2392   // optional .google.protobuf.FileOptions options = 8;
2393   if (cached_has_bits & 0x00000008u) {
2394     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2395       InternalWriteMessageToArray(
2396         8, _Internal::options(this), target);
2397   }
2398 
2399   // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
2400   if (cached_has_bits & 0x00000010u) {
2401     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2402       InternalWriteMessageToArray(
2403         9, _Internal::source_code_info(this), target);
2404   }
2405 
2406   // repeated int32 public_dependency = 10;
2407   target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2408     WriteInt32ToArray(10, this->public_dependency_, target);
2409 
2410   // repeated int32 weak_dependency = 11;
2411   target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2412     WriteInt32ToArray(11, this->weak_dependency_, target);
2413 
2414   // optional string syntax = 12;
2415   if (cached_has_bits & 0x00000004u) {
2416     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
2417       this->syntax().data(), static_cast<int>(this->syntax().length()),
2418       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
2419       "google.protobuf.FileDescriptorProto.syntax");
2420     target =
2421       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2422         12, this->syntax(), target);
2423   }
2424 
2425   if (_internal_metadata_.have_unknown_fields()) {
2426     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
2427         _internal_metadata_.unknown_fields(), target);
2428   }
2429   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescriptorProto)
2430   return target;
2431 }
2432 
ByteSizeLong() const2433 size_t FileDescriptorProto::ByteSizeLong() const {
2434 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileDescriptorProto)
2435   size_t total_size = 0;
2436 
2437   if (_internal_metadata_.have_unknown_fields()) {
2438     total_size +=
2439       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
2440         _internal_metadata_.unknown_fields());
2441   }
2442   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2443   // Prevent compiler warnings about cached_has_bits being unused
2444   (void) cached_has_bits;
2445 
2446   // repeated string dependency = 3;
2447   total_size += 1 *
2448       ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->dependency_size());
2449   for (int i = 0, n = this->dependency_size(); i < n; i++) {
2450     total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2451       this->dependency(i));
2452   }
2453 
2454   // repeated .google.protobuf.DescriptorProto message_type = 4;
2455   {
2456     unsigned int count = static_cast<unsigned int>(this->message_type_size());
2457     total_size += 1UL * count;
2458     for (unsigned int i = 0; i < count; i++) {
2459       total_size +=
2460         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2461           this->message_type(static_cast<int>(i)));
2462     }
2463   }
2464 
2465   // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
2466   {
2467     unsigned int count = static_cast<unsigned int>(this->enum_type_size());
2468     total_size += 1UL * count;
2469     for (unsigned int i = 0; i < count; i++) {
2470       total_size +=
2471         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2472           this->enum_type(static_cast<int>(i)));
2473     }
2474   }
2475 
2476   // repeated .google.protobuf.ServiceDescriptorProto service = 6;
2477   {
2478     unsigned int count = static_cast<unsigned int>(this->service_size());
2479     total_size += 1UL * count;
2480     for (unsigned int i = 0; i < count; i++) {
2481       total_size +=
2482         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2483           this->service(static_cast<int>(i)));
2484     }
2485   }
2486 
2487   // repeated .google.protobuf.FieldDescriptorProto extension = 7;
2488   {
2489     unsigned int count = static_cast<unsigned int>(this->extension_size());
2490     total_size += 1UL * count;
2491     for (unsigned int i = 0; i < count; i++) {
2492       total_size +=
2493         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2494           this->extension(static_cast<int>(i)));
2495     }
2496   }
2497 
2498   // repeated int32 public_dependency = 10;
2499   {
2500     size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2501       Int32Size(this->public_dependency_);
2502     total_size += 1 *
2503                   ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->public_dependency_size());
2504     total_size += data_size;
2505   }
2506 
2507   // repeated int32 weak_dependency = 11;
2508   {
2509     size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2510       Int32Size(this->weak_dependency_);
2511     total_size += 1 *
2512                   ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->weak_dependency_size());
2513     total_size += data_size;
2514   }
2515 
2516   cached_has_bits = _has_bits_[0];
2517   if (cached_has_bits & 0x0000001fu) {
2518     // optional string name = 1;
2519     if (cached_has_bits & 0x00000001u) {
2520       total_size += 1 +
2521         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2522           this->name());
2523     }
2524 
2525     // optional string package = 2;
2526     if (cached_has_bits & 0x00000002u) {
2527       total_size += 1 +
2528         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2529           this->package());
2530     }
2531 
2532     // optional string syntax = 12;
2533     if (cached_has_bits & 0x00000004u) {
2534       total_size += 1 +
2535         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2536           this->syntax());
2537     }
2538 
2539     // optional .google.protobuf.FileOptions options = 8;
2540     if (cached_has_bits & 0x00000008u) {
2541       total_size += 1 +
2542         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2543           *options_);
2544     }
2545 
2546     // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
2547     if (cached_has_bits & 0x00000010u) {
2548       total_size += 1 +
2549         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2550           *source_code_info_);
2551     }
2552 
2553   }
2554   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
2555   SetCachedSize(cached_size);
2556   return total_size;
2557 }
2558 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)2559 void FileDescriptorProto::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2560 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileDescriptorProto)
2561   GOOGLE_DCHECK_NE(&from, this);
2562   const FileDescriptorProto* source =
2563       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<FileDescriptorProto>(
2564           &from);
2565   if (source == nullptr) {
2566   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FileDescriptorProto)
2567     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2568   } else {
2569   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FileDescriptorProto)
2570     MergeFrom(*source);
2571   }
2572 }
2573 
MergeFrom(const FileDescriptorProto & from)2574 void FileDescriptorProto::MergeFrom(const FileDescriptorProto& from) {
2575 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FileDescriptorProto)
2576   GOOGLE_DCHECK_NE(&from, this);
2577   _internal_metadata_.MergeFrom(from._internal_metadata_);
2578   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2579   (void) cached_has_bits;
2580 
2581   dependency_.MergeFrom(from.dependency_);
2582   message_type_.MergeFrom(from.message_type_);
2583   enum_type_.MergeFrom(from.enum_type_);
2584   service_.MergeFrom(from.service_);
2585   extension_.MergeFrom(from.extension_);
2586   public_dependency_.MergeFrom(from.public_dependency_);
2587   weak_dependency_.MergeFrom(from.weak_dependency_);
2588   cached_has_bits = from._has_bits_[0];
2589   if (cached_has_bits & 0x0000001fu) {
2590     if (cached_has_bits & 0x00000001u) {
2591       set_name(from.name());
2592     }
2593     if (cached_has_bits & 0x00000002u) {
2594       set_package(from.package());
2595     }
2596     if (cached_has_bits & 0x00000004u) {
2597       set_syntax(from.syntax());
2598     }
2599     if (cached_has_bits & 0x00000008u) {
2600       mutable_options()->PROTOBUF_NAMESPACE_ID::FileOptions::MergeFrom(from.options());
2601     }
2602     if (cached_has_bits & 0x00000010u) {
2603       mutable_source_code_info()->PROTOBUF_NAMESPACE_ID::SourceCodeInfo::MergeFrom(from.source_code_info());
2604     }
2605   }
2606 }
2607 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)2608 void FileDescriptorProto::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2609 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileDescriptorProto)
2610   if (&from == this) return;
2611   Clear();
2612   MergeFrom(from);
2613 }
2614 
CopyFrom(const FileDescriptorProto & from)2615 void FileDescriptorProto::CopyFrom(const FileDescriptorProto& from) {
2616 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileDescriptorProto)
2617   if (&from == this) return;
2618   Clear();
2619   MergeFrom(from);
2620 }
2621 
IsInitialized() const2622 bool FileDescriptorProto::IsInitialized() const {
2623   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->message_type())) return false;
2624   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->enum_type())) return false;
2625   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->service())) return false;
2626   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->extension())) return false;
2627   if (has_options()) {
2628     if (!this->options_->IsInitialized()) return false;
2629   }
2630   return true;
2631 }
2632 
InternalSwap(FileDescriptorProto * other)2633 void FileDescriptorProto::InternalSwap(FileDescriptorProto* other) {
2634   using std::swap;
2635   _internal_metadata_.Swap(&other->_internal_metadata_);
2636   swap(_has_bits_[0], other->_has_bits_[0]);
2637   dependency_.InternalSwap(CastToBase(&other->dependency_));
2638   CastToBase(&message_type_)->InternalSwap(CastToBase(&other->message_type_));
2639   CastToBase(&enum_type_)->InternalSwap(CastToBase(&other->enum_type_));
2640   CastToBase(&service_)->InternalSwap(CastToBase(&other->service_));
2641   CastToBase(&extension_)->InternalSwap(CastToBase(&other->extension_));
2642   public_dependency_.InternalSwap(&other->public_dependency_);
2643   weak_dependency_.InternalSwap(&other->weak_dependency_);
2644   name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2645     GetArenaNoVirtual());
2646   package_.Swap(&other->package_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2647     GetArenaNoVirtual());
2648   syntax_.Swap(&other->syntax_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2649     GetArenaNoVirtual());
2650   swap(options_, other->options_);
2651   swap(source_code_info_, other->source_code_info_);
2652 }
2653 
GetMetadata() const2654 ::PROTOBUF_NAMESPACE_ID::Metadata FileDescriptorProto::GetMetadata() const {
2655   return GetMetadataStatic();
2656 }
2657 
2658 
2659 // ===================================================================
2660 
InitAsDefaultInstance()2661 void DescriptorProto_ExtensionRange::InitAsDefaultInstance() {
2662   PROTOBUF_NAMESPACE_ID::_DescriptorProto_ExtensionRange_default_instance_._instance.get_mutable()->options_ = const_cast< PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions*>(
2663       PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions::internal_default_instance());
2664 }
2665 class DescriptorProto_ExtensionRange::_Internal {
2666  public:
2667   using HasBits = decltype(std::declval<DescriptorProto_ExtensionRange>()._has_bits_);
set_has_start(HasBits * has_bits)2668   static void set_has_start(HasBits* has_bits) {
2669     (*has_bits)[0] |= 2u;
2670   }
set_has_end(HasBits * has_bits)2671   static void set_has_end(HasBits* has_bits) {
2672     (*has_bits)[0] |= 4u;
2673   }
2674   static const PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions& options(const DescriptorProto_ExtensionRange* msg);
set_has_options(HasBits * has_bits)2675   static void set_has_options(HasBits* has_bits) {
2676     (*has_bits)[0] |= 1u;
2677   }
2678 };
2679 
2680 const PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions&
options(const DescriptorProto_ExtensionRange * msg)2681 DescriptorProto_ExtensionRange::_Internal::options(const DescriptorProto_ExtensionRange* msg) {
2682   return *msg->options_;
2683 }
unsafe_arena_set_allocated_options(PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions * options)2684 void DescriptorProto_ExtensionRange::unsafe_arena_set_allocated_options(
2685     PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options) {
2686   if (GetArenaNoVirtual() == nullptr) {
2687     delete options_;
2688   }
2689   options_ = options;
2690   if (options) {
2691     _has_bits_[0] |= 0x00000001u;
2692   } else {
2693     _has_bits_[0] &= ~0x00000001u;
2694   }
2695   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.DescriptorProto.ExtensionRange.options)
2696 }
DescriptorProto_ExtensionRange()2697 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange()
2698   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
2699   SharedCtor();
2700   // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.ExtensionRange)
2701 }
DescriptorProto_ExtensionRange(::PROTOBUF_NAMESPACE_ID::Arena * arena)2702 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(::PROTOBUF_NAMESPACE_ID::Arena* arena)
2703   : ::PROTOBUF_NAMESPACE_ID::Message(),
2704   _internal_metadata_(arena) {
2705   SharedCtor();
2706   RegisterArenaDtor(arena);
2707   // @@protoc_insertion_point(arena_constructor:google.protobuf.DescriptorProto.ExtensionRange)
2708 }
DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange & from)2709 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from)
2710   : ::PROTOBUF_NAMESPACE_ID::Message(),
2711       _internal_metadata_(nullptr),
2712       _has_bits_(from._has_bits_) {
2713   _internal_metadata_.MergeFrom(from._internal_metadata_);
2714   if (from.has_options()) {
2715     options_ = new PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions(*from.options_);
2716   } else {
2717     options_ = nullptr;
2718   }
2719   ::memcpy(&start_, &from.start_,
2720     static_cast<size_t>(reinterpret_cast<char*>(&end_) -
2721     reinterpret_cast<char*>(&start_)) + sizeof(end_));
2722   // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ExtensionRange)
2723 }
2724 
SharedCtor()2725 void DescriptorProto_ExtensionRange::SharedCtor() {
2726   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DescriptorProto_ExtensionRange_google_2fprotobuf_2fdescriptor_2eproto.base);
2727   ::memset(&options_, 0, static_cast<size_t>(
2728       reinterpret_cast<char*>(&end_) -
2729       reinterpret_cast<char*>(&options_)) + sizeof(end_));
2730 }
2731 
~DescriptorProto_ExtensionRange()2732 DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() {
2733   // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.ExtensionRange)
2734   SharedDtor();
2735 }
2736 
SharedDtor()2737 void DescriptorProto_ExtensionRange::SharedDtor() {
2738   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
2739   if (this != internal_default_instance()) delete options_;
2740 }
2741 
ArenaDtor(void * object)2742 void DescriptorProto_ExtensionRange::ArenaDtor(void* object) {
2743   DescriptorProto_ExtensionRange* _this = reinterpret_cast< DescriptorProto_ExtensionRange* >(object);
2744   (void)_this;
2745 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)2746 void DescriptorProto_ExtensionRange::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
2747 }
SetCachedSize(int size) const2748 void DescriptorProto_ExtensionRange::SetCachedSize(int size) const {
2749   _cached_size_.Set(size);
2750 }
default_instance()2751 const DescriptorProto_ExtensionRange& DescriptorProto_ExtensionRange::default_instance() {
2752   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DescriptorProto_ExtensionRange_google_2fprotobuf_2fdescriptor_2eproto.base);
2753   return *internal_default_instance();
2754 }
2755 
2756 
Clear()2757 void DescriptorProto_ExtensionRange::Clear() {
2758 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto.ExtensionRange)
2759   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2760   // Prevent compiler warnings about cached_has_bits being unused
2761   (void) cached_has_bits;
2762 
2763   cached_has_bits = _has_bits_[0];
2764   if (cached_has_bits & 0x00000001u) {
2765     GOOGLE_DCHECK(options_ != nullptr);
2766     options_->Clear();
2767   }
2768   if (cached_has_bits & 0x00000006u) {
2769     ::memset(&start_, 0, static_cast<size_t>(
2770         reinterpret_cast<char*>(&end_) -
2771         reinterpret_cast<char*>(&start_)) + sizeof(end_));
2772   }
2773   _has_bits_.Clear();
2774   _internal_metadata_.Clear();
2775 }
2776 
2777 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)2778 const char* DescriptorProto_ExtensionRange::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
2779 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2780   _Internal::HasBits has_bits{};
2781   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
2782   while (!ctx->Done(&ptr)) {
2783     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2784     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
2785     CHK_(ptr);
2786     switch (tag >> 3) {
2787       // optional int32 start = 1;
2788       case 1:
2789         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
2790           _Internal::set_has_start(&has_bits);
2791           start_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
2792           CHK_(ptr);
2793         } else goto handle_unusual;
2794         continue;
2795       // optional int32 end = 2;
2796       case 2:
2797         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
2798           _Internal::set_has_end(&has_bits);
2799           end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
2800           CHK_(ptr);
2801         } else goto handle_unusual;
2802         continue;
2803       // optional .google.protobuf.ExtensionRangeOptions options = 3;
2804       case 3:
2805         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
2806           ptr = ctx->ParseMessage(mutable_options(), ptr);
2807           CHK_(ptr);
2808         } else goto handle_unusual;
2809         continue;
2810       default: {
2811       handle_unusual:
2812         if ((tag & 7) == 4 || tag == 0) {
2813           ctx->SetLastTag(tag);
2814           goto success;
2815         }
2816         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
2817         CHK_(ptr != nullptr);
2818         continue;
2819       }
2820     }  // switch
2821   }  // while
2822 success:
2823   _has_bits_.Or(has_bits);
2824   return ptr;
2825 failure:
2826   ptr = nullptr;
2827   goto success;
2828 #undef CHK_
2829 }
2830 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)2831 bool DescriptorProto_ExtensionRange::MergePartialFromCodedStream(
2832     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
2833 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2834   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2835   // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.ExtensionRange)
2836   for (;;) {
2837     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2838     tag = p.first;
2839     if (!p.second) goto handle_unusual;
2840     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2841       // optional int32 start = 1;
2842       case 1: {
2843         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
2844           _Internal::set_has_start(&_has_bits_);
2845           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
2846                    ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
2847                  input, &start_)));
2848         } else {
2849           goto handle_unusual;
2850         }
2851         break;
2852       }
2853 
2854       // optional int32 end = 2;
2855       case 2: {
2856         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
2857           _Internal::set_has_end(&_has_bits_);
2858           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
2859                    ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
2860                  input, &end_)));
2861         } else {
2862           goto handle_unusual;
2863         }
2864         break;
2865       }
2866 
2867       // optional .google.protobuf.ExtensionRangeOptions options = 3;
2868       case 3: {
2869         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
2870           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2871                input, mutable_options()));
2872         } else {
2873           goto handle_unusual;
2874         }
2875         break;
2876       }
2877 
2878       default: {
2879       handle_unusual:
2880         if (tag == 0) {
2881           goto success;
2882         }
2883         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
2884               input, tag, _internal_metadata_.mutable_unknown_fields()));
2885         break;
2886       }
2887     }
2888   }
2889 success:
2890   // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto.ExtensionRange)
2891   return true;
2892 failure:
2893   // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto.ExtensionRange)
2894   return false;
2895 #undef DO_
2896 }
2897 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2898 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const2899 void DescriptorProto_ExtensionRange::SerializeWithCachedSizes(
2900     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
2901   // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto.ExtensionRange)
2902   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2903   (void) cached_has_bits;
2904 
2905   cached_has_bits = _has_bits_[0];
2906   // optional int32 start = 1;
2907   if (cached_has_bits & 0x00000002u) {
2908     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(1, this->start(), output);
2909   }
2910 
2911   // optional int32 end = 2;
2912   if (cached_has_bits & 0x00000004u) {
2913     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(2, this->end(), output);
2914   }
2915 
2916   // optional .google.protobuf.ExtensionRangeOptions options = 3;
2917   if (cached_has_bits & 0x00000001u) {
2918     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2919       3, _Internal::options(this), output);
2920   }
2921 
2922   if (_internal_metadata_.have_unknown_fields()) {
2923     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
2924         _internal_metadata_.unknown_fields(), output);
2925   }
2926   // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.ExtensionRange)
2927 }
2928 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const2929 ::PROTOBUF_NAMESPACE_ID::uint8* DescriptorProto_ExtensionRange::InternalSerializeWithCachedSizesToArray(
2930     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
2931   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ExtensionRange)
2932   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2933   (void) cached_has_bits;
2934 
2935   cached_has_bits = _has_bits_[0];
2936   // optional int32 start = 1;
2937   if (cached_has_bits & 0x00000002u) {
2938     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target);
2939   }
2940 
2941   // optional int32 end = 2;
2942   if (cached_has_bits & 0x00000004u) {
2943     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target);
2944   }
2945 
2946   // optional .google.protobuf.ExtensionRangeOptions options = 3;
2947   if (cached_has_bits & 0x00000001u) {
2948     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2949       InternalWriteMessageToArray(
2950         3, _Internal::options(this), target);
2951   }
2952 
2953   if (_internal_metadata_.have_unknown_fields()) {
2954     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
2955         _internal_metadata_.unknown_fields(), target);
2956   }
2957   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto.ExtensionRange)
2958   return target;
2959 }
2960 
ByteSizeLong() const2961 size_t DescriptorProto_ExtensionRange::ByteSizeLong() const {
2962 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorProto.ExtensionRange)
2963   size_t total_size = 0;
2964 
2965   if (_internal_metadata_.have_unknown_fields()) {
2966     total_size +=
2967       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
2968         _internal_metadata_.unknown_fields());
2969   }
2970   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2971   // Prevent compiler warnings about cached_has_bits being unused
2972   (void) cached_has_bits;
2973 
2974   cached_has_bits = _has_bits_[0];
2975   if (cached_has_bits & 0x00000007u) {
2976     // optional .google.protobuf.ExtensionRangeOptions options = 3;
2977     if (cached_has_bits & 0x00000001u) {
2978       total_size += 1 +
2979         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2980           *options_);
2981     }
2982 
2983     // optional int32 start = 1;
2984     if (cached_has_bits & 0x00000002u) {
2985       total_size += 1 +
2986         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
2987           this->start());
2988     }
2989 
2990     // optional int32 end = 2;
2991     if (cached_has_bits & 0x00000004u) {
2992       total_size += 1 +
2993         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
2994           this->end());
2995     }
2996 
2997   }
2998   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
2999   SetCachedSize(cached_size);
3000   return total_size;
3001 }
3002 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)3003 void DescriptorProto_ExtensionRange::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3004 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.DescriptorProto.ExtensionRange)
3005   GOOGLE_DCHECK_NE(&from, this);
3006   const DescriptorProto_ExtensionRange* source =
3007       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DescriptorProto_ExtensionRange>(
3008           &from);
3009   if (source == nullptr) {
3010   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.DescriptorProto.ExtensionRange)
3011     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
3012   } else {
3013   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.DescriptorProto.ExtensionRange)
3014     MergeFrom(*source);
3015   }
3016 }
3017 
MergeFrom(const DescriptorProto_ExtensionRange & from)3018 void DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRange& from) {
3019 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DescriptorProto.ExtensionRange)
3020   GOOGLE_DCHECK_NE(&from, this);
3021   _internal_metadata_.MergeFrom(from._internal_metadata_);
3022   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3023   (void) cached_has_bits;
3024 
3025   cached_has_bits = from._has_bits_[0];
3026   if (cached_has_bits & 0x00000007u) {
3027     if (cached_has_bits & 0x00000001u) {
3028       mutable_options()->PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions::MergeFrom(from.options());
3029     }
3030     if (cached_has_bits & 0x00000002u) {
3031       start_ = from.start_;
3032     }
3033     if (cached_has_bits & 0x00000004u) {
3034       end_ = from.end_;
3035     }
3036     _has_bits_[0] |= cached_has_bits;
3037   }
3038 }
3039 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)3040 void DescriptorProto_ExtensionRange::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3041 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.DescriptorProto.ExtensionRange)
3042   if (&from == this) return;
3043   Clear();
3044   MergeFrom(from);
3045 }
3046 
CopyFrom(const DescriptorProto_ExtensionRange & from)3047 void DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRange& from) {
3048 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DescriptorProto.ExtensionRange)
3049   if (&from == this) return;
3050   Clear();
3051   MergeFrom(from);
3052 }
3053 
IsInitialized() const3054 bool DescriptorProto_ExtensionRange::IsInitialized() const {
3055   if (has_options()) {
3056     if (!this->options_->IsInitialized()) return false;
3057   }
3058   return true;
3059 }
3060 
InternalSwap(DescriptorProto_ExtensionRange * other)3061 void DescriptorProto_ExtensionRange::InternalSwap(DescriptorProto_ExtensionRange* other) {
3062   using std::swap;
3063   _internal_metadata_.Swap(&other->_internal_metadata_);
3064   swap(_has_bits_[0], other->_has_bits_[0]);
3065   swap(options_, other->options_);
3066   swap(start_, other->start_);
3067   swap(end_, other->end_);
3068 }
3069 
GetMetadata() const3070 ::PROTOBUF_NAMESPACE_ID::Metadata DescriptorProto_ExtensionRange::GetMetadata() const {
3071   return GetMetadataStatic();
3072 }
3073 
3074 
3075 // ===================================================================
3076 
InitAsDefaultInstance()3077 void DescriptorProto_ReservedRange::InitAsDefaultInstance() {
3078 }
3079 class DescriptorProto_ReservedRange::_Internal {
3080  public:
3081   using HasBits = decltype(std::declval<DescriptorProto_ReservedRange>()._has_bits_);
set_has_start(HasBits * has_bits)3082   static void set_has_start(HasBits* has_bits) {
3083     (*has_bits)[0] |= 1u;
3084   }
set_has_end(HasBits * has_bits)3085   static void set_has_end(HasBits* has_bits) {
3086     (*has_bits)[0] |= 2u;
3087   }
3088 };
3089 
DescriptorProto_ReservedRange()3090 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange()
3091   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
3092   SharedCtor();
3093   // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.ReservedRange)
3094 }
DescriptorProto_ReservedRange(::PROTOBUF_NAMESPACE_ID::Arena * arena)3095 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(::PROTOBUF_NAMESPACE_ID::Arena* arena)
3096   : ::PROTOBUF_NAMESPACE_ID::Message(),
3097   _internal_metadata_(arena) {
3098   SharedCtor();
3099   RegisterArenaDtor(arena);
3100   // @@protoc_insertion_point(arena_constructor:google.protobuf.DescriptorProto.ReservedRange)
3101 }
DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange & from)3102 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange& from)
3103   : ::PROTOBUF_NAMESPACE_ID::Message(),
3104       _internal_metadata_(nullptr),
3105       _has_bits_(from._has_bits_) {
3106   _internal_metadata_.MergeFrom(from._internal_metadata_);
3107   ::memcpy(&start_, &from.start_,
3108     static_cast<size_t>(reinterpret_cast<char*>(&end_) -
3109     reinterpret_cast<char*>(&start_)) + sizeof(end_));
3110   // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ReservedRange)
3111 }
3112 
SharedCtor()3113 void DescriptorProto_ReservedRange::SharedCtor() {
3114   ::memset(&start_, 0, static_cast<size_t>(
3115       reinterpret_cast<char*>(&end_) -
3116       reinterpret_cast<char*>(&start_)) + sizeof(end_));
3117 }
3118 
~DescriptorProto_ReservedRange()3119 DescriptorProto_ReservedRange::~DescriptorProto_ReservedRange() {
3120   // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.ReservedRange)
3121   SharedDtor();
3122 }
3123 
SharedDtor()3124 void DescriptorProto_ReservedRange::SharedDtor() {
3125   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
3126 }
3127 
ArenaDtor(void * object)3128 void DescriptorProto_ReservedRange::ArenaDtor(void* object) {
3129   DescriptorProto_ReservedRange* _this = reinterpret_cast< DescriptorProto_ReservedRange* >(object);
3130   (void)_this;
3131 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)3132 void DescriptorProto_ReservedRange::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
3133 }
SetCachedSize(int size) const3134 void DescriptorProto_ReservedRange::SetCachedSize(int size) const {
3135   _cached_size_.Set(size);
3136 }
default_instance()3137 const DescriptorProto_ReservedRange& DescriptorProto_ReservedRange::default_instance() {
3138   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DescriptorProto_ReservedRange_google_2fprotobuf_2fdescriptor_2eproto.base);
3139   return *internal_default_instance();
3140 }
3141 
3142 
Clear()3143 void DescriptorProto_ReservedRange::Clear() {
3144 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto.ReservedRange)
3145   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3146   // Prevent compiler warnings about cached_has_bits being unused
3147   (void) cached_has_bits;
3148 
3149   cached_has_bits = _has_bits_[0];
3150   if (cached_has_bits & 0x00000003u) {
3151     ::memset(&start_, 0, static_cast<size_t>(
3152         reinterpret_cast<char*>(&end_) -
3153         reinterpret_cast<char*>(&start_)) + sizeof(end_));
3154   }
3155   _has_bits_.Clear();
3156   _internal_metadata_.Clear();
3157 }
3158 
3159 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)3160 const char* DescriptorProto_ReservedRange::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
3161 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3162   _Internal::HasBits has_bits{};
3163   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
3164   while (!ctx->Done(&ptr)) {
3165     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3166     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
3167     CHK_(ptr);
3168     switch (tag >> 3) {
3169       // optional int32 start = 1;
3170       case 1:
3171         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
3172           _Internal::set_has_start(&has_bits);
3173           start_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
3174           CHK_(ptr);
3175         } else goto handle_unusual;
3176         continue;
3177       // optional int32 end = 2;
3178       case 2:
3179         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
3180           _Internal::set_has_end(&has_bits);
3181           end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
3182           CHK_(ptr);
3183         } else goto handle_unusual;
3184         continue;
3185       default: {
3186       handle_unusual:
3187         if ((tag & 7) == 4 || tag == 0) {
3188           ctx->SetLastTag(tag);
3189           goto success;
3190         }
3191         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
3192         CHK_(ptr != nullptr);
3193         continue;
3194       }
3195     }  // switch
3196   }  // while
3197 success:
3198   _has_bits_.Or(has_bits);
3199   return ptr;
3200 failure:
3201   ptr = nullptr;
3202   goto success;
3203 #undef CHK_
3204 }
3205 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)3206 bool DescriptorProto_ReservedRange::MergePartialFromCodedStream(
3207     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
3208 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3209   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3210   // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.ReservedRange)
3211   for (;;) {
3212     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3213     tag = p.first;
3214     if (!p.second) goto handle_unusual;
3215     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3216       // optional int32 start = 1;
3217       case 1: {
3218         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
3219           _Internal::set_has_start(&_has_bits_);
3220           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
3221                    ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
3222                  input, &start_)));
3223         } else {
3224           goto handle_unusual;
3225         }
3226         break;
3227       }
3228 
3229       // optional int32 end = 2;
3230       case 2: {
3231         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
3232           _Internal::set_has_end(&_has_bits_);
3233           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
3234                    ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
3235                  input, &end_)));
3236         } else {
3237           goto handle_unusual;
3238         }
3239         break;
3240       }
3241 
3242       default: {
3243       handle_unusual:
3244         if (tag == 0) {
3245           goto success;
3246         }
3247         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
3248               input, tag, _internal_metadata_.mutable_unknown_fields()));
3249         break;
3250       }
3251     }
3252   }
3253 success:
3254   // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto.ReservedRange)
3255   return true;
3256 failure:
3257   // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto.ReservedRange)
3258   return false;
3259 #undef DO_
3260 }
3261 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3262 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const3263 void DescriptorProto_ReservedRange::SerializeWithCachedSizes(
3264     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
3265   // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto.ReservedRange)
3266   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3267   (void) cached_has_bits;
3268 
3269   cached_has_bits = _has_bits_[0];
3270   // optional int32 start = 1;
3271   if (cached_has_bits & 0x00000001u) {
3272     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(1, this->start(), output);
3273   }
3274 
3275   // optional int32 end = 2;
3276   if (cached_has_bits & 0x00000002u) {
3277     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(2, this->end(), output);
3278   }
3279 
3280   if (_internal_metadata_.have_unknown_fields()) {
3281     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
3282         _internal_metadata_.unknown_fields(), output);
3283   }
3284   // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.ReservedRange)
3285 }
3286 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const3287 ::PROTOBUF_NAMESPACE_ID::uint8* DescriptorProto_ReservedRange::InternalSerializeWithCachedSizesToArray(
3288     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
3289   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ReservedRange)
3290   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3291   (void) cached_has_bits;
3292 
3293   cached_has_bits = _has_bits_[0];
3294   // optional int32 start = 1;
3295   if (cached_has_bits & 0x00000001u) {
3296     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target);
3297   }
3298 
3299   // optional int32 end = 2;
3300   if (cached_has_bits & 0x00000002u) {
3301     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target);
3302   }
3303 
3304   if (_internal_metadata_.have_unknown_fields()) {
3305     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
3306         _internal_metadata_.unknown_fields(), target);
3307   }
3308   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto.ReservedRange)
3309   return target;
3310 }
3311 
ByteSizeLong() const3312 size_t DescriptorProto_ReservedRange::ByteSizeLong() const {
3313 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorProto.ReservedRange)
3314   size_t total_size = 0;
3315 
3316   if (_internal_metadata_.have_unknown_fields()) {
3317     total_size +=
3318       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
3319         _internal_metadata_.unknown_fields());
3320   }
3321   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3322   // Prevent compiler warnings about cached_has_bits being unused
3323   (void) cached_has_bits;
3324 
3325   cached_has_bits = _has_bits_[0];
3326   if (cached_has_bits & 0x00000003u) {
3327     // optional int32 start = 1;
3328     if (cached_has_bits & 0x00000001u) {
3329       total_size += 1 +
3330         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
3331           this->start());
3332     }
3333 
3334     // optional int32 end = 2;
3335     if (cached_has_bits & 0x00000002u) {
3336       total_size += 1 +
3337         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
3338           this->end());
3339     }
3340 
3341   }
3342   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
3343   SetCachedSize(cached_size);
3344   return total_size;
3345 }
3346 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)3347 void DescriptorProto_ReservedRange::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3348 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.DescriptorProto.ReservedRange)
3349   GOOGLE_DCHECK_NE(&from, this);
3350   const DescriptorProto_ReservedRange* source =
3351       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DescriptorProto_ReservedRange>(
3352           &from);
3353   if (source == nullptr) {
3354   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.DescriptorProto.ReservedRange)
3355     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
3356   } else {
3357   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.DescriptorProto.ReservedRange)
3358     MergeFrom(*source);
3359   }
3360 }
3361 
MergeFrom(const DescriptorProto_ReservedRange & from)3362 void DescriptorProto_ReservedRange::MergeFrom(const DescriptorProto_ReservedRange& from) {
3363 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DescriptorProto.ReservedRange)
3364   GOOGLE_DCHECK_NE(&from, this);
3365   _internal_metadata_.MergeFrom(from._internal_metadata_);
3366   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3367   (void) cached_has_bits;
3368 
3369   cached_has_bits = from._has_bits_[0];
3370   if (cached_has_bits & 0x00000003u) {
3371     if (cached_has_bits & 0x00000001u) {
3372       start_ = from.start_;
3373     }
3374     if (cached_has_bits & 0x00000002u) {
3375       end_ = from.end_;
3376     }
3377     _has_bits_[0] |= cached_has_bits;
3378   }
3379 }
3380 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)3381 void DescriptorProto_ReservedRange::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3382 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.DescriptorProto.ReservedRange)
3383   if (&from == this) return;
3384   Clear();
3385   MergeFrom(from);
3386 }
3387 
CopyFrom(const DescriptorProto_ReservedRange & from)3388 void DescriptorProto_ReservedRange::CopyFrom(const DescriptorProto_ReservedRange& from) {
3389 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DescriptorProto.ReservedRange)
3390   if (&from == this) return;
3391   Clear();
3392   MergeFrom(from);
3393 }
3394 
IsInitialized() const3395 bool DescriptorProto_ReservedRange::IsInitialized() const {
3396   return true;
3397 }
3398 
InternalSwap(DescriptorProto_ReservedRange * other)3399 void DescriptorProto_ReservedRange::InternalSwap(DescriptorProto_ReservedRange* other) {
3400   using std::swap;
3401   _internal_metadata_.Swap(&other->_internal_metadata_);
3402   swap(_has_bits_[0], other->_has_bits_[0]);
3403   swap(start_, other->start_);
3404   swap(end_, other->end_);
3405 }
3406 
GetMetadata() const3407 ::PROTOBUF_NAMESPACE_ID::Metadata DescriptorProto_ReservedRange::GetMetadata() const {
3408   return GetMetadataStatic();
3409 }
3410 
3411 
3412 // ===================================================================
3413 
InitAsDefaultInstance()3414 void DescriptorProto::InitAsDefaultInstance() {
3415   PROTOBUF_NAMESPACE_ID::_DescriptorProto_default_instance_._instance.get_mutable()->options_ = const_cast< PROTOBUF_NAMESPACE_ID::MessageOptions*>(
3416       PROTOBUF_NAMESPACE_ID::MessageOptions::internal_default_instance());
3417 }
3418 class DescriptorProto::_Internal {
3419  public:
3420   using HasBits = decltype(std::declval<DescriptorProto>()._has_bits_);
set_has_name(HasBits * has_bits)3421   static void set_has_name(HasBits* has_bits) {
3422     (*has_bits)[0] |= 1u;
3423   }
3424   static const PROTOBUF_NAMESPACE_ID::MessageOptions& options(const DescriptorProto* msg);
set_has_options(HasBits * has_bits)3425   static void set_has_options(HasBits* has_bits) {
3426     (*has_bits)[0] |= 2u;
3427   }
3428 };
3429 
3430 const PROTOBUF_NAMESPACE_ID::MessageOptions&
options(const DescriptorProto * msg)3431 DescriptorProto::_Internal::options(const DescriptorProto* msg) {
3432   return *msg->options_;
3433 }
unsafe_arena_set_allocated_options(PROTOBUF_NAMESPACE_ID::MessageOptions * options)3434 void DescriptorProto::unsafe_arena_set_allocated_options(
3435     PROTOBUF_NAMESPACE_ID::MessageOptions* options) {
3436   if (GetArenaNoVirtual() == nullptr) {
3437     delete options_;
3438   }
3439   options_ = options;
3440   if (options) {
3441     _has_bits_[0] |= 0x00000002u;
3442   } else {
3443     _has_bits_[0] &= ~0x00000002u;
3444   }
3445   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.DescriptorProto.options)
3446 }
DescriptorProto()3447 DescriptorProto::DescriptorProto()
3448   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
3449   SharedCtor();
3450   // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto)
3451 }
DescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena * arena)3452 DescriptorProto::DescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena)
3453   : ::PROTOBUF_NAMESPACE_ID::Message(),
3454   _internal_metadata_(arena),
3455   field_(arena),
3456   nested_type_(arena),
3457   enum_type_(arena),
3458   extension_range_(arena),
3459   extension_(arena),
3460   oneof_decl_(arena),
3461   reserved_range_(arena),
3462   reserved_name_(arena) {
3463   SharedCtor();
3464   RegisterArenaDtor(arena);
3465   // @@protoc_insertion_point(arena_constructor:google.protobuf.DescriptorProto)
3466 }
DescriptorProto(const DescriptorProto & from)3467 DescriptorProto::DescriptorProto(const DescriptorProto& from)
3468   : ::PROTOBUF_NAMESPACE_ID::Message(),
3469       _internal_metadata_(nullptr),
3470       _has_bits_(from._has_bits_),
3471       field_(from.field_),
3472       nested_type_(from.nested_type_),
3473       enum_type_(from.enum_type_),
3474       extension_range_(from.extension_range_),
3475       extension_(from.extension_),
3476       oneof_decl_(from.oneof_decl_),
3477       reserved_range_(from.reserved_range_),
3478       reserved_name_(from.reserved_name_) {
3479   _internal_metadata_.MergeFrom(from._internal_metadata_);
3480   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3481   if (from.has_name()) {
3482     name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name(),
3483       GetArenaNoVirtual());
3484   }
3485   if (from.has_options()) {
3486     options_ = new PROTOBUF_NAMESPACE_ID::MessageOptions(*from.options_);
3487   } else {
3488     options_ = nullptr;
3489   }
3490   // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto)
3491 }
3492 
SharedCtor()3493 void DescriptorProto::SharedCtor() {
3494   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base);
3495   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3496   options_ = nullptr;
3497 }
3498 
~DescriptorProto()3499 DescriptorProto::~DescriptorProto() {
3500   // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto)
3501   SharedDtor();
3502 }
3503 
SharedDtor()3504 void DescriptorProto::SharedDtor() {
3505   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
3506   name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3507   if (this != internal_default_instance()) delete options_;
3508 }
3509 
ArenaDtor(void * object)3510 void DescriptorProto::ArenaDtor(void* object) {
3511   DescriptorProto* _this = reinterpret_cast< DescriptorProto* >(object);
3512   (void)_this;
3513 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)3514 void DescriptorProto::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
3515 }
SetCachedSize(int size) const3516 void DescriptorProto::SetCachedSize(int size) const {
3517   _cached_size_.Set(size);
3518 }
default_instance()3519 const DescriptorProto& DescriptorProto::default_instance() {
3520   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base);
3521   return *internal_default_instance();
3522 }
3523 
3524 
Clear()3525 void DescriptorProto::Clear() {
3526 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto)
3527   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3528   // Prevent compiler warnings about cached_has_bits being unused
3529   (void) cached_has_bits;
3530 
3531   field_.Clear();
3532   nested_type_.Clear();
3533   enum_type_.Clear();
3534   extension_range_.Clear();
3535   extension_.Clear();
3536   oneof_decl_.Clear();
3537   reserved_range_.Clear();
3538   reserved_name_.Clear();
3539   cached_has_bits = _has_bits_[0];
3540   if (cached_has_bits & 0x00000003u) {
3541     if (cached_has_bits & 0x00000001u) {
3542       name_.ClearNonDefaultToEmpty();
3543     }
3544     if (cached_has_bits & 0x00000002u) {
3545       GOOGLE_DCHECK(options_ != nullptr);
3546       options_->Clear();
3547     }
3548   }
3549   _has_bits_.Clear();
3550   _internal_metadata_.Clear();
3551 }
3552 
3553 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)3554 const char* DescriptorProto::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
3555 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3556   _Internal::HasBits has_bits{};
3557   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
3558   while (!ctx->Done(&ptr)) {
3559     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3560     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
3561     CHK_(ptr);
3562     switch (tag >> 3) {
3563       // optional string name = 1;
3564       case 1:
3565         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
3566           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_name(), ptr, ctx, "google.protobuf.DescriptorProto.name");
3567           CHK_(ptr);
3568         } else goto handle_unusual;
3569         continue;
3570       // repeated .google.protobuf.FieldDescriptorProto field = 2;
3571       case 2:
3572         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
3573           ptr -= 1;
3574           do {
3575             ptr += 1;
3576             ptr = ctx->ParseMessage(add_field(), ptr);
3577             CHK_(ptr);
3578             if (!ctx->DataAvailable(ptr)) break;
3579           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
3580         } else goto handle_unusual;
3581         continue;
3582       // repeated .google.protobuf.DescriptorProto nested_type = 3;
3583       case 3:
3584         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
3585           ptr -= 1;
3586           do {
3587             ptr += 1;
3588             ptr = ctx->ParseMessage(add_nested_type(), ptr);
3589             CHK_(ptr);
3590             if (!ctx->DataAvailable(ptr)) break;
3591           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26);
3592         } else goto handle_unusual;
3593         continue;
3594       // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3595       case 4:
3596         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
3597           ptr -= 1;
3598           do {
3599             ptr += 1;
3600             ptr = ctx->ParseMessage(add_enum_type(), ptr);
3601             CHK_(ptr);
3602             if (!ctx->DataAvailable(ptr)) break;
3603           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34);
3604         } else goto handle_unusual;
3605         continue;
3606       // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
3607       case 5:
3608         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
3609           ptr -= 1;
3610           do {
3611             ptr += 1;
3612             ptr = ctx->ParseMessage(add_extension_range(), ptr);
3613             CHK_(ptr);
3614             if (!ctx->DataAvailable(ptr)) break;
3615           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 42);
3616         } else goto handle_unusual;
3617         continue;
3618       // repeated .google.protobuf.FieldDescriptorProto extension = 6;
3619       case 6:
3620         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
3621           ptr -= 1;
3622           do {
3623             ptr += 1;
3624             ptr = ctx->ParseMessage(add_extension(), ptr);
3625             CHK_(ptr);
3626             if (!ctx->DataAvailable(ptr)) break;
3627           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 50);
3628         } else goto handle_unusual;
3629         continue;
3630       // optional .google.protobuf.MessageOptions options = 7;
3631       case 7:
3632         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
3633           ptr = ctx->ParseMessage(mutable_options(), ptr);
3634           CHK_(ptr);
3635         } else goto handle_unusual;
3636         continue;
3637       // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
3638       case 8:
3639         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
3640           ptr -= 1;
3641           do {
3642             ptr += 1;
3643             ptr = ctx->ParseMessage(add_oneof_decl(), ptr);
3644             CHK_(ptr);
3645             if (!ctx->DataAvailable(ptr)) break;
3646           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 66);
3647         } else goto handle_unusual;
3648         continue;
3649       // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
3650       case 9:
3651         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
3652           ptr -= 1;
3653           do {
3654             ptr += 1;
3655             ptr = ctx->ParseMessage(add_reserved_range(), ptr);
3656             CHK_(ptr);
3657             if (!ctx->DataAvailable(ptr)) break;
3658           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 74);
3659         } else goto handle_unusual;
3660         continue;
3661       // repeated string reserved_name = 10;
3662       case 10:
3663         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) {
3664           ptr -= 1;
3665           do {
3666             ptr += 1;
3667             ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(add_reserved_name(), ptr, ctx, "google.protobuf.DescriptorProto.reserved_name");
3668             CHK_(ptr);
3669             if (!ctx->DataAvailable(ptr)) break;
3670           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 82);
3671         } else goto handle_unusual;
3672         continue;
3673       default: {
3674       handle_unusual:
3675         if ((tag & 7) == 4 || tag == 0) {
3676           ctx->SetLastTag(tag);
3677           goto success;
3678         }
3679         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
3680         CHK_(ptr != nullptr);
3681         continue;
3682       }
3683     }  // switch
3684   }  // while
3685 success:
3686   _has_bits_.Or(has_bits);
3687   return ptr;
3688 failure:
3689   ptr = nullptr;
3690   goto success;
3691 #undef CHK_
3692 }
3693 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)3694 bool DescriptorProto::MergePartialFromCodedStream(
3695     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
3696 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3697   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3698   // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto)
3699   for (;;) {
3700     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3701     tag = p.first;
3702     if (!p.second) goto handle_unusual;
3703     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3704       // optional string name = 1;
3705       case 1: {
3706         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
3707           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
3708                 input, this->mutable_name()));
3709           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
3710             this->name().data(), static_cast<int>(this->name().length()),
3711             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
3712             "google.protobuf.DescriptorProto.name");
3713         } else {
3714           goto handle_unusual;
3715         }
3716         break;
3717       }
3718 
3719       // repeated .google.protobuf.FieldDescriptorProto field = 2;
3720       case 2: {
3721         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
3722           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
3723                 input, add_field()));
3724         } else {
3725           goto handle_unusual;
3726         }
3727         break;
3728       }
3729 
3730       // repeated .google.protobuf.DescriptorProto nested_type = 3;
3731       case 3: {
3732         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
3733           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
3734                 input, add_nested_type()));
3735         } else {
3736           goto handle_unusual;
3737         }
3738         break;
3739       }
3740 
3741       // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3742       case 4: {
3743         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
3744           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
3745                 input, add_enum_type()));
3746         } else {
3747           goto handle_unusual;
3748         }
3749         break;
3750       }
3751 
3752       // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
3753       case 5: {
3754         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
3755           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
3756                 input, add_extension_range()));
3757         } else {
3758           goto handle_unusual;
3759         }
3760         break;
3761       }
3762 
3763       // repeated .google.protobuf.FieldDescriptorProto extension = 6;
3764       case 6: {
3765         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
3766           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
3767                 input, add_extension()));
3768         } else {
3769           goto handle_unusual;
3770         }
3771         break;
3772       }
3773 
3774       // optional .google.protobuf.MessageOptions options = 7;
3775       case 7: {
3776         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) {
3777           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
3778                input, mutable_options()));
3779         } else {
3780           goto handle_unusual;
3781         }
3782         break;
3783       }
3784 
3785       // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
3786       case 8: {
3787         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) {
3788           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
3789                 input, add_oneof_decl()));
3790         } else {
3791           goto handle_unusual;
3792         }
3793         break;
3794       }
3795 
3796       // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
3797       case 9: {
3798         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (74 & 0xFF)) {
3799           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
3800                 input, add_reserved_range()));
3801         } else {
3802           goto handle_unusual;
3803         }
3804         break;
3805       }
3806 
3807       // repeated string reserved_name = 10;
3808       case 10: {
3809         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (82 & 0xFF)) {
3810           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
3811                 input, this->add_reserved_name()));
3812           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
3813             this->reserved_name(this->reserved_name_size() - 1).data(),
3814             static_cast<int>(this->reserved_name(this->reserved_name_size() - 1).length()),
3815             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
3816             "google.protobuf.DescriptorProto.reserved_name");
3817         } else {
3818           goto handle_unusual;
3819         }
3820         break;
3821       }
3822 
3823       default: {
3824       handle_unusual:
3825         if (tag == 0) {
3826           goto success;
3827         }
3828         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
3829               input, tag, _internal_metadata_.mutable_unknown_fields()));
3830         break;
3831       }
3832     }
3833   }
3834 success:
3835   // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto)
3836   return true;
3837 failure:
3838   // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto)
3839   return false;
3840 #undef DO_
3841 }
3842 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3843 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const3844 void DescriptorProto::SerializeWithCachedSizes(
3845     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
3846   // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto)
3847   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3848   (void) cached_has_bits;
3849 
3850   cached_has_bits = _has_bits_[0];
3851   // optional string name = 1;
3852   if (cached_has_bits & 0x00000001u) {
3853     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
3854       this->name().data(), static_cast<int>(this->name().length()),
3855       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
3856       "google.protobuf.DescriptorProto.name");
3857     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
3858       1, this->name(), output);
3859   }
3860 
3861   // repeated .google.protobuf.FieldDescriptorProto field = 2;
3862   for (unsigned int i = 0,
3863       n = static_cast<unsigned int>(this->field_size()); i < n; i++) {
3864     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
3865       2,
3866       this->field(static_cast<int>(i)),
3867       output);
3868   }
3869 
3870   // repeated .google.protobuf.DescriptorProto nested_type = 3;
3871   for (unsigned int i = 0,
3872       n = static_cast<unsigned int>(this->nested_type_size()); i < n; i++) {
3873     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
3874       3,
3875       this->nested_type(static_cast<int>(i)),
3876       output);
3877   }
3878 
3879   // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3880   for (unsigned int i = 0,
3881       n = static_cast<unsigned int>(this->enum_type_size()); i < n; i++) {
3882     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
3883       4,
3884       this->enum_type(static_cast<int>(i)),
3885       output);
3886   }
3887 
3888   // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
3889   for (unsigned int i = 0,
3890       n = static_cast<unsigned int>(this->extension_range_size()); i < n; i++) {
3891     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
3892       5,
3893       this->extension_range(static_cast<int>(i)),
3894       output);
3895   }
3896 
3897   // repeated .google.protobuf.FieldDescriptorProto extension = 6;
3898   for (unsigned int i = 0,
3899       n = static_cast<unsigned int>(this->extension_size()); i < n; i++) {
3900     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
3901       6,
3902       this->extension(static_cast<int>(i)),
3903       output);
3904   }
3905 
3906   // optional .google.protobuf.MessageOptions options = 7;
3907   if (cached_has_bits & 0x00000002u) {
3908     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
3909       7, _Internal::options(this), output);
3910   }
3911 
3912   // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
3913   for (unsigned int i = 0,
3914       n = static_cast<unsigned int>(this->oneof_decl_size()); i < n; i++) {
3915     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
3916       8,
3917       this->oneof_decl(static_cast<int>(i)),
3918       output);
3919   }
3920 
3921   // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
3922   for (unsigned int i = 0,
3923       n = static_cast<unsigned int>(this->reserved_range_size()); i < n; i++) {
3924     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
3925       9,
3926       this->reserved_range(static_cast<int>(i)),
3927       output);
3928   }
3929 
3930   // repeated string reserved_name = 10;
3931   for (int i = 0, n = this->reserved_name_size(); i < n; i++) {
3932     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
3933       this->reserved_name(i).data(), static_cast<int>(this->reserved_name(i).length()),
3934       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
3935       "google.protobuf.DescriptorProto.reserved_name");
3936     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
3937       10, this->reserved_name(i), output);
3938   }
3939 
3940   if (_internal_metadata_.have_unknown_fields()) {
3941     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
3942         _internal_metadata_.unknown_fields(), output);
3943   }
3944   // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto)
3945 }
3946 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const3947 ::PROTOBUF_NAMESPACE_ID::uint8* DescriptorProto::InternalSerializeWithCachedSizesToArray(
3948     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
3949   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto)
3950   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3951   (void) cached_has_bits;
3952 
3953   cached_has_bits = _has_bits_[0];
3954   // optional string name = 1;
3955   if (cached_has_bits & 0x00000001u) {
3956     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
3957       this->name().data(), static_cast<int>(this->name().length()),
3958       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
3959       "google.protobuf.DescriptorProto.name");
3960     target =
3961       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
3962         1, this->name(), target);
3963   }
3964 
3965   // repeated .google.protobuf.FieldDescriptorProto field = 2;
3966   for (unsigned int i = 0,
3967       n = static_cast<unsigned int>(this->field_size()); i < n; i++) {
3968     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3969       InternalWriteMessageToArray(
3970         2, this->field(static_cast<int>(i)), target);
3971   }
3972 
3973   // repeated .google.protobuf.DescriptorProto nested_type = 3;
3974   for (unsigned int i = 0,
3975       n = static_cast<unsigned int>(this->nested_type_size()); i < n; i++) {
3976     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3977       InternalWriteMessageToArray(
3978         3, this->nested_type(static_cast<int>(i)), target);
3979   }
3980 
3981   // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3982   for (unsigned int i = 0,
3983       n = static_cast<unsigned int>(this->enum_type_size()); i < n; i++) {
3984     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3985       InternalWriteMessageToArray(
3986         4, this->enum_type(static_cast<int>(i)), target);
3987   }
3988 
3989   // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
3990   for (unsigned int i = 0,
3991       n = static_cast<unsigned int>(this->extension_range_size()); i < n; i++) {
3992     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3993       InternalWriteMessageToArray(
3994         5, this->extension_range(static_cast<int>(i)), target);
3995   }
3996 
3997   // repeated .google.protobuf.FieldDescriptorProto extension = 6;
3998   for (unsigned int i = 0,
3999       n = static_cast<unsigned int>(this->extension_size()); i < n; i++) {
4000     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4001       InternalWriteMessageToArray(
4002         6, this->extension(static_cast<int>(i)), target);
4003   }
4004 
4005   // optional .google.protobuf.MessageOptions options = 7;
4006   if (cached_has_bits & 0x00000002u) {
4007     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4008       InternalWriteMessageToArray(
4009         7, _Internal::options(this), target);
4010   }
4011 
4012   // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
4013   for (unsigned int i = 0,
4014       n = static_cast<unsigned int>(this->oneof_decl_size()); i < n; i++) {
4015     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4016       InternalWriteMessageToArray(
4017         8, this->oneof_decl(static_cast<int>(i)), target);
4018   }
4019 
4020   // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
4021   for (unsigned int i = 0,
4022       n = static_cast<unsigned int>(this->reserved_range_size()); i < n; i++) {
4023     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4024       InternalWriteMessageToArray(
4025         9, this->reserved_range(static_cast<int>(i)), target);
4026   }
4027 
4028   // repeated string reserved_name = 10;
4029   for (int i = 0, n = this->reserved_name_size(); i < n; i++) {
4030     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
4031       this->reserved_name(i).data(), static_cast<int>(this->reserved_name(i).length()),
4032       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
4033       "google.protobuf.DescriptorProto.reserved_name");
4034     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4035       WriteStringToArray(10, this->reserved_name(i), target);
4036   }
4037 
4038   if (_internal_metadata_.have_unknown_fields()) {
4039     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
4040         _internal_metadata_.unknown_fields(), target);
4041   }
4042   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto)
4043   return target;
4044 }
4045 
ByteSizeLong() const4046 size_t DescriptorProto::ByteSizeLong() const {
4047 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorProto)
4048   size_t total_size = 0;
4049 
4050   if (_internal_metadata_.have_unknown_fields()) {
4051     total_size +=
4052       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
4053         _internal_metadata_.unknown_fields());
4054   }
4055   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4056   // Prevent compiler warnings about cached_has_bits being unused
4057   (void) cached_has_bits;
4058 
4059   // repeated .google.protobuf.FieldDescriptorProto field = 2;
4060   {
4061     unsigned int count = static_cast<unsigned int>(this->field_size());
4062     total_size += 1UL * count;
4063     for (unsigned int i = 0; i < count; i++) {
4064       total_size +=
4065         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4066           this->field(static_cast<int>(i)));
4067     }
4068   }
4069 
4070   // repeated .google.protobuf.DescriptorProto nested_type = 3;
4071   {
4072     unsigned int count = static_cast<unsigned int>(this->nested_type_size());
4073     total_size += 1UL * count;
4074     for (unsigned int i = 0; i < count; i++) {
4075       total_size +=
4076         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4077           this->nested_type(static_cast<int>(i)));
4078     }
4079   }
4080 
4081   // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
4082   {
4083     unsigned int count = static_cast<unsigned int>(this->enum_type_size());
4084     total_size += 1UL * count;
4085     for (unsigned int i = 0; i < count; i++) {
4086       total_size +=
4087         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4088           this->enum_type(static_cast<int>(i)));
4089     }
4090   }
4091 
4092   // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
4093   {
4094     unsigned int count = static_cast<unsigned int>(this->extension_range_size());
4095     total_size += 1UL * count;
4096     for (unsigned int i = 0; i < count; i++) {
4097       total_size +=
4098         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4099           this->extension_range(static_cast<int>(i)));
4100     }
4101   }
4102 
4103   // repeated .google.protobuf.FieldDescriptorProto extension = 6;
4104   {
4105     unsigned int count = static_cast<unsigned int>(this->extension_size());
4106     total_size += 1UL * count;
4107     for (unsigned int i = 0; i < count; i++) {
4108       total_size +=
4109         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4110           this->extension(static_cast<int>(i)));
4111     }
4112   }
4113 
4114   // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
4115   {
4116     unsigned int count = static_cast<unsigned int>(this->oneof_decl_size());
4117     total_size += 1UL * count;
4118     for (unsigned int i = 0; i < count; i++) {
4119       total_size +=
4120         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4121           this->oneof_decl(static_cast<int>(i)));
4122     }
4123   }
4124 
4125   // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
4126   {
4127     unsigned int count = static_cast<unsigned int>(this->reserved_range_size());
4128     total_size += 1UL * count;
4129     for (unsigned int i = 0; i < count; i++) {
4130       total_size +=
4131         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4132           this->reserved_range(static_cast<int>(i)));
4133     }
4134   }
4135 
4136   // repeated string reserved_name = 10;
4137   total_size += 1 *
4138       ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->reserved_name_size());
4139   for (int i = 0, n = this->reserved_name_size(); i < n; i++) {
4140     total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4141       this->reserved_name(i));
4142   }
4143 
4144   cached_has_bits = _has_bits_[0];
4145   if (cached_has_bits & 0x00000003u) {
4146     // optional string name = 1;
4147     if (cached_has_bits & 0x00000001u) {
4148       total_size += 1 +
4149         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4150           this->name());
4151     }
4152 
4153     // optional .google.protobuf.MessageOptions options = 7;
4154     if (cached_has_bits & 0x00000002u) {
4155       total_size += 1 +
4156         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4157           *options_);
4158     }
4159 
4160   }
4161   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
4162   SetCachedSize(cached_size);
4163   return total_size;
4164 }
4165 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)4166 void DescriptorProto::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4167 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.DescriptorProto)
4168   GOOGLE_DCHECK_NE(&from, this);
4169   const DescriptorProto* source =
4170       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DescriptorProto>(
4171           &from);
4172   if (source == nullptr) {
4173   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.DescriptorProto)
4174     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
4175   } else {
4176   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.DescriptorProto)
4177     MergeFrom(*source);
4178   }
4179 }
4180 
MergeFrom(const DescriptorProto & from)4181 void DescriptorProto::MergeFrom(const DescriptorProto& from) {
4182 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DescriptorProto)
4183   GOOGLE_DCHECK_NE(&from, this);
4184   _internal_metadata_.MergeFrom(from._internal_metadata_);
4185   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4186   (void) cached_has_bits;
4187 
4188   field_.MergeFrom(from.field_);
4189   nested_type_.MergeFrom(from.nested_type_);
4190   enum_type_.MergeFrom(from.enum_type_);
4191   extension_range_.MergeFrom(from.extension_range_);
4192   extension_.MergeFrom(from.extension_);
4193   oneof_decl_.MergeFrom(from.oneof_decl_);
4194   reserved_range_.MergeFrom(from.reserved_range_);
4195   reserved_name_.MergeFrom(from.reserved_name_);
4196   cached_has_bits = from._has_bits_[0];
4197   if (cached_has_bits & 0x00000003u) {
4198     if (cached_has_bits & 0x00000001u) {
4199       set_name(from.name());
4200     }
4201     if (cached_has_bits & 0x00000002u) {
4202       mutable_options()->PROTOBUF_NAMESPACE_ID::MessageOptions::MergeFrom(from.options());
4203     }
4204   }
4205 }
4206 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)4207 void DescriptorProto::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4208 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.DescriptorProto)
4209   if (&from == this) return;
4210   Clear();
4211   MergeFrom(from);
4212 }
4213 
CopyFrom(const DescriptorProto & from)4214 void DescriptorProto::CopyFrom(const DescriptorProto& from) {
4215 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DescriptorProto)
4216   if (&from == this) return;
4217   Clear();
4218   MergeFrom(from);
4219 }
4220 
IsInitialized() const4221 bool DescriptorProto::IsInitialized() const {
4222   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->field())) return false;
4223   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->nested_type())) return false;
4224   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->enum_type())) return false;
4225   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->extension_range())) return false;
4226   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->extension())) return false;
4227   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->oneof_decl())) return false;
4228   if (has_options()) {
4229     if (!this->options_->IsInitialized()) return false;
4230   }
4231   return true;
4232 }
4233 
InternalSwap(DescriptorProto * other)4234 void DescriptorProto::InternalSwap(DescriptorProto* other) {
4235   using std::swap;
4236   _internal_metadata_.Swap(&other->_internal_metadata_);
4237   swap(_has_bits_[0], other->_has_bits_[0]);
4238   CastToBase(&field_)->InternalSwap(CastToBase(&other->field_));
4239   CastToBase(&nested_type_)->InternalSwap(CastToBase(&other->nested_type_));
4240   CastToBase(&enum_type_)->InternalSwap(CastToBase(&other->enum_type_));
4241   CastToBase(&extension_range_)->InternalSwap(CastToBase(&other->extension_range_));
4242   CastToBase(&extension_)->InternalSwap(CastToBase(&other->extension_));
4243   CastToBase(&oneof_decl_)->InternalSwap(CastToBase(&other->oneof_decl_));
4244   CastToBase(&reserved_range_)->InternalSwap(CastToBase(&other->reserved_range_));
4245   reserved_name_.InternalSwap(CastToBase(&other->reserved_name_));
4246   name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
4247     GetArenaNoVirtual());
4248   swap(options_, other->options_);
4249 }
4250 
GetMetadata() const4251 ::PROTOBUF_NAMESPACE_ID::Metadata DescriptorProto::GetMetadata() const {
4252   return GetMetadataStatic();
4253 }
4254 
4255 
4256 // ===================================================================
4257 
InitAsDefaultInstance()4258 void ExtensionRangeOptions::InitAsDefaultInstance() {
4259 }
4260 class ExtensionRangeOptions::_Internal {
4261  public:
4262   using HasBits = decltype(std::declval<ExtensionRangeOptions>()._has_bits_);
4263 };
4264 
ExtensionRangeOptions()4265 ExtensionRangeOptions::ExtensionRangeOptions()
4266   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
4267   SharedCtor();
4268   // @@protoc_insertion_point(constructor:google.protobuf.ExtensionRangeOptions)
4269 }
ExtensionRangeOptions(::PROTOBUF_NAMESPACE_ID::Arena * arena)4270 ExtensionRangeOptions::ExtensionRangeOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena)
4271   : ::PROTOBUF_NAMESPACE_ID::Message(),
4272   _extensions_(arena),
4273   _internal_metadata_(arena),
4274   uninterpreted_option_(arena) {
4275   SharedCtor();
4276   RegisterArenaDtor(arena);
4277   // @@protoc_insertion_point(arena_constructor:google.protobuf.ExtensionRangeOptions)
4278 }
ExtensionRangeOptions(const ExtensionRangeOptions & from)4279 ExtensionRangeOptions::ExtensionRangeOptions(const ExtensionRangeOptions& from)
4280   : ::PROTOBUF_NAMESPACE_ID::Message(),
4281       _internal_metadata_(nullptr),
4282       _has_bits_(from._has_bits_),
4283       uninterpreted_option_(from.uninterpreted_option_) {
4284   _internal_metadata_.MergeFrom(from._internal_metadata_);
4285   _extensions_.MergeFrom(from._extensions_);
4286   // @@protoc_insertion_point(copy_constructor:google.protobuf.ExtensionRangeOptions)
4287 }
4288 
SharedCtor()4289 void ExtensionRangeOptions::SharedCtor() {
4290   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ExtensionRangeOptions_google_2fprotobuf_2fdescriptor_2eproto.base);
4291 }
4292 
~ExtensionRangeOptions()4293 ExtensionRangeOptions::~ExtensionRangeOptions() {
4294   // @@protoc_insertion_point(destructor:google.protobuf.ExtensionRangeOptions)
4295   SharedDtor();
4296 }
4297 
SharedDtor()4298 void ExtensionRangeOptions::SharedDtor() {
4299   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
4300 }
4301 
ArenaDtor(void * object)4302 void ExtensionRangeOptions::ArenaDtor(void* object) {
4303   ExtensionRangeOptions* _this = reinterpret_cast< ExtensionRangeOptions* >(object);
4304   (void)_this;
4305 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)4306 void ExtensionRangeOptions::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
4307 }
SetCachedSize(int size) const4308 void ExtensionRangeOptions::SetCachedSize(int size) const {
4309   _cached_size_.Set(size);
4310 }
default_instance()4311 const ExtensionRangeOptions& ExtensionRangeOptions::default_instance() {
4312   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ExtensionRangeOptions_google_2fprotobuf_2fdescriptor_2eproto.base);
4313   return *internal_default_instance();
4314 }
4315 
4316 
Clear()4317 void ExtensionRangeOptions::Clear() {
4318 // @@protoc_insertion_point(message_clear_start:google.protobuf.ExtensionRangeOptions)
4319   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4320   // Prevent compiler warnings about cached_has_bits being unused
4321   (void) cached_has_bits;
4322 
4323   _extensions_.Clear();
4324   uninterpreted_option_.Clear();
4325   _has_bits_.Clear();
4326   _internal_metadata_.Clear();
4327 }
4328 
4329 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)4330 const char* ExtensionRangeOptions::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
4331 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4332   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
4333   while (!ctx->Done(&ptr)) {
4334     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4335     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
4336     CHK_(ptr);
4337     switch (tag >> 3) {
4338       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4339       case 999:
4340         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
4341           ptr -= 2;
4342           do {
4343             ptr += 2;
4344             ptr = ctx->ParseMessage(add_uninterpreted_option(), ptr);
4345             CHK_(ptr);
4346             if (!ctx->DataAvailable(ptr)) break;
4347           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint16>(ptr) == 16058);
4348         } else goto handle_unusual;
4349         continue;
4350       default: {
4351       handle_unusual:
4352         if ((tag & 7) == 4 || tag == 0) {
4353           ctx->SetLastTag(tag);
4354           goto success;
4355         }
4356       if ((8000u <= tag)) {
4357         ptr = _extensions_.ParseField(tag, ptr,
4358             internal_default_instance(), &_internal_metadata_, ctx);
4359         CHK_(ptr != nullptr);
4360         continue;
4361       }
4362         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
4363         CHK_(ptr != nullptr);
4364         continue;
4365       }
4366     }  // switch
4367   }  // while
4368 success:
4369   return ptr;
4370 failure:
4371   ptr = nullptr;
4372   goto success;
4373 #undef CHK_
4374 }
4375 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)4376 bool ExtensionRangeOptions::MergePartialFromCodedStream(
4377     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
4378 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4379   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4380   // @@protoc_insertion_point(parse_start:google.protobuf.ExtensionRangeOptions)
4381   for (;;) {
4382     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
4383     tag = p.first;
4384     if (!p.second) goto handle_unusual;
4385     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4386       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4387       case 999: {
4388         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (7994 & 0xFF)) {
4389           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
4390                 input, add_uninterpreted_option()));
4391         } else {
4392           goto handle_unusual;
4393         }
4394         break;
4395       }
4396 
4397       default: {
4398       handle_unusual:
4399         if (tag == 0) {
4400           goto success;
4401         }
4402         if ((8000u <= tag)) {
4403           DO_(_extensions_.ParseField(tag, input,
4404               internal_default_instance(),
4405               _internal_metadata_.mutable_unknown_fields()));
4406           continue;
4407         }
4408         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
4409               input, tag, _internal_metadata_.mutable_unknown_fields()));
4410         break;
4411       }
4412     }
4413   }
4414 success:
4415   // @@protoc_insertion_point(parse_success:google.protobuf.ExtensionRangeOptions)
4416   return true;
4417 failure:
4418   // @@protoc_insertion_point(parse_failure:google.protobuf.ExtensionRangeOptions)
4419   return false;
4420 #undef DO_
4421 }
4422 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4423 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const4424 void ExtensionRangeOptions::SerializeWithCachedSizes(
4425     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
4426   // @@protoc_insertion_point(serialize_start:google.protobuf.ExtensionRangeOptions)
4427   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4428   (void) cached_has_bits;
4429 
4430   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4431   for (unsigned int i = 0,
4432       n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
4433     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
4434       999,
4435       this->uninterpreted_option(static_cast<int>(i)),
4436       output);
4437   }
4438 
4439   // Extension range [1000, 536870912)
4440   _extensions_.SerializeWithCachedSizes(1000, 536870912, output);
4441 
4442   if (_internal_metadata_.have_unknown_fields()) {
4443     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
4444         _internal_metadata_.unknown_fields(), output);
4445   }
4446   // @@protoc_insertion_point(serialize_end:google.protobuf.ExtensionRangeOptions)
4447 }
4448 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const4449 ::PROTOBUF_NAMESPACE_ID::uint8* ExtensionRangeOptions::InternalSerializeWithCachedSizesToArray(
4450     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
4451   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ExtensionRangeOptions)
4452   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4453   (void) cached_has_bits;
4454 
4455   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4456   for (unsigned int i = 0,
4457       n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
4458     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4459       InternalWriteMessageToArray(
4460         999, this->uninterpreted_option(static_cast<int>(i)), target);
4461   }
4462 
4463   // Extension range [1000, 536870912)
4464   target = _extensions_.InternalSerializeWithCachedSizesToArray(
4465       1000, 536870912, target);
4466 
4467   if (_internal_metadata_.have_unknown_fields()) {
4468     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
4469         _internal_metadata_.unknown_fields(), target);
4470   }
4471   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ExtensionRangeOptions)
4472   return target;
4473 }
4474 
ByteSizeLong() const4475 size_t ExtensionRangeOptions::ByteSizeLong() const {
4476 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ExtensionRangeOptions)
4477   size_t total_size = 0;
4478 
4479   total_size += _extensions_.ByteSize();
4480 
4481   if (_internal_metadata_.have_unknown_fields()) {
4482     total_size +=
4483       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
4484         _internal_metadata_.unknown_fields());
4485   }
4486   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4487   // Prevent compiler warnings about cached_has_bits being unused
4488   (void) cached_has_bits;
4489 
4490   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4491   {
4492     unsigned int count = static_cast<unsigned int>(this->uninterpreted_option_size());
4493     total_size += 2UL * count;
4494     for (unsigned int i = 0; i < count; i++) {
4495       total_size +=
4496         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4497           this->uninterpreted_option(static_cast<int>(i)));
4498     }
4499   }
4500 
4501   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
4502   SetCachedSize(cached_size);
4503   return total_size;
4504 }
4505 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)4506 void ExtensionRangeOptions::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4507 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.ExtensionRangeOptions)
4508   GOOGLE_DCHECK_NE(&from, this);
4509   const ExtensionRangeOptions* source =
4510       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ExtensionRangeOptions>(
4511           &from);
4512   if (source == nullptr) {
4513   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.ExtensionRangeOptions)
4514     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
4515   } else {
4516   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.ExtensionRangeOptions)
4517     MergeFrom(*source);
4518   }
4519 }
4520 
MergeFrom(const ExtensionRangeOptions & from)4521 void ExtensionRangeOptions::MergeFrom(const ExtensionRangeOptions& from) {
4522 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.ExtensionRangeOptions)
4523   GOOGLE_DCHECK_NE(&from, this);
4524   _extensions_.MergeFrom(from._extensions_);
4525   _internal_metadata_.MergeFrom(from._internal_metadata_);
4526   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4527   (void) cached_has_bits;
4528 
4529   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
4530 }
4531 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)4532 void ExtensionRangeOptions::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4533 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ExtensionRangeOptions)
4534   if (&from == this) return;
4535   Clear();
4536   MergeFrom(from);
4537 }
4538 
CopyFrom(const ExtensionRangeOptions & from)4539 void ExtensionRangeOptions::CopyFrom(const ExtensionRangeOptions& from) {
4540 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.ExtensionRangeOptions)
4541   if (&from == this) return;
4542   Clear();
4543   MergeFrom(from);
4544 }
4545 
IsInitialized() const4546 bool ExtensionRangeOptions::IsInitialized() const {
4547   if (!_extensions_.IsInitialized()) {
4548     return false;
4549   }
4550 
4551   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->uninterpreted_option())) return false;
4552   return true;
4553 }
4554 
InternalSwap(ExtensionRangeOptions * other)4555 void ExtensionRangeOptions::InternalSwap(ExtensionRangeOptions* other) {
4556   using std::swap;
4557   _extensions_.Swap(&other->_extensions_);
4558   _internal_metadata_.Swap(&other->_internal_metadata_);
4559   swap(_has_bits_[0], other->_has_bits_[0]);
4560   CastToBase(&uninterpreted_option_)->InternalSwap(CastToBase(&other->uninterpreted_option_));
4561 }
4562 
GetMetadata() const4563 ::PROTOBUF_NAMESPACE_ID::Metadata ExtensionRangeOptions::GetMetadata() const {
4564   return GetMetadataStatic();
4565 }
4566 
4567 
4568 // ===================================================================
4569 
InitAsDefaultInstance()4570 void FieldDescriptorProto::InitAsDefaultInstance() {
4571   PROTOBUF_NAMESPACE_ID::_FieldDescriptorProto_default_instance_._instance.get_mutable()->options_ = const_cast< PROTOBUF_NAMESPACE_ID::FieldOptions*>(
4572       PROTOBUF_NAMESPACE_ID::FieldOptions::internal_default_instance());
4573 }
4574 class FieldDescriptorProto::_Internal {
4575  public:
4576   using HasBits = decltype(std::declval<FieldDescriptorProto>()._has_bits_);
set_has_name(HasBits * has_bits)4577   static void set_has_name(HasBits* has_bits) {
4578     (*has_bits)[0] |= 1u;
4579   }
set_has_number(HasBits * has_bits)4580   static void set_has_number(HasBits* has_bits) {
4581     (*has_bits)[0] |= 64u;
4582   }
set_has_label(HasBits * has_bits)4583   static void set_has_label(HasBits* has_bits) {
4584     (*has_bits)[0] |= 256u;
4585   }
set_has_type(HasBits * has_bits)4586   static void set_has_type(HasBits* has_bits) {
4587     (*has_bits)[0] |= 512u;
4588   }
set_has_type_name(HasBits * has_bits)4589   static void set_has_type_name(HasBits* has_bits) {
4590     (*has_bits)[0] |= 4u;
4591   }
set_has_extendee(HasBits * has_bits)4592   static void set_has_extendee(HasBits* has_bits) {
4593     (*has_bits)[0] |= 2u;
4594   }
set_has_default_value(HasBits * has_bits)4595   static void set_has_default_value(HasBits* has_bits) {
4596     (*has_bits)[0] |= 8u;
4597   }
set_has_oneof_index(HasBits * has_bits)4598   static void set_has_oneof_index(HasBits* has_bits) {
4599     (*has_bits)[0] |= 128u;
4600   }
set_has_json_name(HasBits * has_bits)4601   static void set_has_json_name(HasBits* has_bits) {
4602     (*has_bits)[0] |= 16u;
4603   }
4604   static const PROTOBUF_NAMESPACE_ID::FieldOptions& options(const FieldDescriptorProto* msg);
set_has_options(HasBits * has_bits)4605   static void set_has_options(HasBits* has_bits) {
4606     (*has_bits)[0] |= 32u;
4607   }
4608 };
4609 
4610 const PROTOBUF_NAMESPACE_ID::FieldOptions&
options(const FieldDescriptorProto * msg)4611 FieldDescriptorProto::_Internal::options(const FieldDescriptorProto* msg) {
4612   return *msg->options_;
4613 }
unsafe_arena_set_allocated_options(PROTOBUF_NAMESPACE_ID::FieldOptions * options)4614 void FieldDescriptorProto::unsafe_arena_set_allocated_options(
4615     PROTOBUF_NAMESPACE_ID::FieldOptions* options) {
4616   if (GetArenaNoVirtual() == nullptr) {
4617     delete options_;
4618   }
4619   options_ = options;
4620   if (options) {
4621     _has_bits_[0] |= 0x00000020u;
4622   } else {
4623     _has_bits_[0] &= ~0x00000020u;
4624   }
4625   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FieldDescriptorProto.options)
4626 }
FieldDescriptorProto()4627 FieldDescriptorProto::FieldDescriptorProto()
4628   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
4629   SharedCtor();
4630   // @@protoc_insertion_point(constructor:google.protobuf.FieldDescriptorProto)
4631 }
FieldDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena * arena)4632 FieldDescriptorProto::FieldDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena)
4633   : ::PROTOBUF_NAMESPACE_ID::Message(),
4634   _internal_metadata_(arena) {
4635   SharedCtor();
4636   RegisterArenaDtor(arena);
4637   // @@protoc_insertion_point(arena_constructor:google.protobuf.FieldDescriptorProto)
4638 }
FieldDescriptorProto(const FieldDescriptorProto & from)4639 FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from)
4640   : ::PROTOBUF_NAMESPACE_ID::Message(),
4641       _internal_metadata_(nullptr),
4642       _has_bits_(from._has_bits_) {
4643   _internal_metadata_.MergeFrom(from._internal_metadata_);
4644   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4645   if (from.has_name()) {
4646     name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name(),
4647       GetArenaNoVirtual());
4648   }
4649   extendee_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4650   if (from.has_extendee()) {
4651     extendee_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.extendee(),
4652       GetArenaNoVirtual());
4653   }
4654   type_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4655   if (from.has_type_name()) {
4656     type_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.type_name(),
4657       GetArenaNoVirtual());
4658   }
4659   default_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4660   if (from.has_default_value()) {
4661     default_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.default_value(),
4662       GetArenaNoVirtual());
4663   }
4664   json_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4665   if (from.has_json_name()) {
4666     json_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.json_name(),
4667       GetArenaNoVirtual());
4668   }
4669   if (from.has_options()) {
4670     options_ = new PROTOBUF_NAMESPACE_ID::FieldOptions(*from.options_);
4671   } else {
4672     options_ = nullptr;
4673   }
4674   ::memcpy(&number_, &from.number_,
4675     static_cast<size_t>(reinterpret_cast<char*>(&type_) -
4676     reinterpret_cast<char*>(&number_)) + sizeof(type_));
4677   // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldDescriptorProto)
4678 }
4679 
SharedCtor()4680 void FieldDescriptorProto::SharedCtor() {
4681   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FieldDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base);
4682   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4683   extendee_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4684   type_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4685   default_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4686   json_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4687   ::memset(&options_, 0, static_cast<size_t>(
4688       reinterpret_cast<char*>(&oneof_index_) -
4689       reinterpret_cast<char*>(&options_)) + sizeof(oneof_index_));
4690   label_ = 1;
4691   type_ = 1;
4692 }
4693 
~FieldDescriptorProto()4694 FieldDescriptorProto::~FieldDescriptorProto() {
4695   // @@protoc_insertion_point(destructor:google.protobuf.FieldDescriptorProto)
4696   SharedDtor();
4697 }
4698 
SharedDtor()4699 void FieldDescriptorProto::SharedDtor() {
4700   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
4701   name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4702   extendee_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4703   type_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4704   default_value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4705   json_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4706   if (this != internal_default_instance()) delete options_;
4707 }
4708 
ArenaDtor(void * object)4709 void FieldDescriptorProto::ArenaDtor(void* object) {
4710   FieldDescriptorProto* _this = reinterpret_cast< FieldDescriptorProto* >(object);
4711   (void)_this;
4712 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)4713 void FieldDescriptorProto::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
4714 }
SetCachedSize(int size) const4715 void FieldDescriptorProto::SetCachedSize(int size) const {
4716   _cached_size_.Set(size);
4717 }
default_instance()4718 const FieldDescriptorProto& FieldDescriptorProto::default_instance() {
4719   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FieldDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base);
4720   return *internal_default_instance();
4721 }
4722 
4723 
Clear()4724 void FieldDescriptorProto::Clear() {
4725 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldDescriptorProto)
4726   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4727   // Prevent compiler warnings about cached_has_bits being unused
4728   (void) cached_has_bits;
4729 
4730   cached_has_bits = _has_bits_[0];
4731   if (cached_has_bits & 0x0000003fu) {
4732     if (cached_has_bits & 0x00000001u) {
4733       name_.ClearNonDefaultToEmpty();
4734     }
4735     if (cached_has_bits & 0x00000002u) {
4736       extendee_.ClearNonDefaultToEmpty();
4737     }
4738     if (cached_has_bits & 0x00000004u) {
4739       type_name_.ClearNonDefaultToEmpty();
4740     }
4741     if (cached_has_bits & 0x00000008u) {
4742       default_value_.ClearNonDefaultToEmpty();
4743     }
4744     if (cached_has_bits & 0x00000010u) {
4745       json_name_.ClearNonDefaultToEmpty();
4746     }
4747     if (cached_has_bits & 0x00000020u) {
4748       GOOGLE_DCHECK(options_ != nullptr);
4749       options_->Clear();
4750     }
4751   }
4752   if (cached_has_bits & 0x000000c0u) {
4753     ::memset(&number_, 0, static_cast<size_t>(
4754         reinterpret_cast<char*>(&oneof_index_) -
4755         reinterpret_cast<char*>(&number_)) + sizeof(oneof_index_));
4756   }
4757   if (cached_has_bits & 0x00000300u) {
4758     label_ = 1;
4759     type_ = 1;
4760   }
4761   _has_bits_.Clear();
4762   _internal_metadata_.Clear();
4763 }
4764 
4765 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)4766 const char* FieldDescriptorProto::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
4767 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4768   _Internal::HasBits has_bits{};
4769   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
4770   while (!ctx->Done(&ptr)) {
4771     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4772     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
4773     CHK_(ptr);
4774     switch (tag >> 3) {
4775       // optional string name = 1;
4776       case 1:
4777         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
4778           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_name(), ptr, ctx, "google.protobuf.FieldDescriptorProto.name");
4779           CHK_(ptr);
4780         } else goto handle_unusual;
4781         continue;
4782       // optional string extendee = 2;
4783       case 2:
4784         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
4785           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_extendee(), ptr, ctx, "google.protobuf.FieldDescriptorProto.extendee");
4786           CHK_(ptr);
4787         } else goto handle_unusual;
4788         continue;
4789       // optional int32 number = 3;
4790       case 3:
4791         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
4792           _Internal::set_has_number(&has_bits);
4793           number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
4794           CHK_(ptr);
4795         } else goto handle_unusual;
4796         continue;
4797       // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
4798       case 4:
4799         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
4800           ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
4801           CHK_(ptr);
4802           if (PROTOBUF_PREDICT_TRUE(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label_IsValid(val))) {
4803             set_label(static_cast<PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label>(val));
4804           } else {
4805             ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields());
4806           }
4807         } else goto handle_unusual;
4808         continue;
4809       // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
4810       case 5:
4811         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
4812           ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
4813           CHK_(ptr);
4814           if (PROTOBUF_PREDICT_TRUE(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type_IsValid(val))) {
4815             set_type(static_cast<PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type>(val));
4816           } else {
4817             ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields());
4818           }
4819         } else goto handle_unusual;
4820         continue;
4821       // optional string type_name = 6;
4822       case 6:
4823         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
4824           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_type_name(), ptr, ctx, "google.protobuf.FieldDescriptorProto.type_name");
4825           CHK_(ptr);
4826         } else goto handle_unusual;
4827         continue;
4828       // optional string default_value = 7;
4829       case 7:
4830         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
4831           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_default_value(), ptr, ctx, "google.protobuf.FieldDescriptorProto.default_value");
4832           CHK_(ptr);
4833         } else goto handle_unusual;
4834         continue;
4835       // optional .google.protobuf.FieldOptions options = 8;
4836       case 8:
4837         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
4838           ptr = ctx->ParseMessage(mutable_options(), ptr);
4839           CHK_(ptr);
4840         } else goto handle_unusual;
4841         continue;
4842       // optional int32 oneof_index = 9;
4843       case 9:
4844         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) {
4845           _Internal::set_has_oneof_index(&has_bits);
4846           oneof_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
4847           CHK_(ptr);
4848         } else goto handle_unusual;
4849         continue;
4850       // optional string json_name = 10;
4851       case 10:
4852         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) {
4853           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_json_name(), ptr, ctx, "google.protobuf.FieldDescriptorProto.json_name");
4854           CHK_(ptr);
4855         } else goto handle_unusual;
4856         continue;
4857       default: {
4858       handle_unusual:
4859         if ((tag & 7) == 4 || tag == 0) {
4860           ctx->SetLastTag(tag);
4861           goto success;
4862         }
4863         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
4864         CHK_(ptr != nullptr);
4865         continue;
4866       }
4867     }  // switch
4868   }  // while
4869 success:
4870   _has_bits_.Or(has_bits);
4871   return ptr;
4872 failure:
4873   ptr = nullptr;
4874   goto success;
4875 #undef CHK_
4876 }
4877 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)4878 bool FieldDescriptorProto::MergePartialFromCodedStream(
4879     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
4880 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4881   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4882   // @@protoc_insertion_point(parse_start:google.protobuf.FieldDescriptorProto)
4883   for (;;) {
4884     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4885     tag = p.first;
4886     if (!p.second) goto handle_unusual;
4887     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4888       // optional string name = 1;
4889       case 1: {
4890         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
4891           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
4892                 input, this->mutable_name()));
4893           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
4894             this->name().data(), static_cast<int>(this->name().length()),
4895             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
4896             "google.protobuf.FieldDescriptorProto.name");
4897         } else {
4898           goto handle_unusual;
4899         }
4900         break;
4901       }
4902 
4903       // optional string extendee = 2;
4904       case 2: {
4905         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
4906           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
4907                 input, this->mutable_extendee()));
4908           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
4909             this->extendee().data(), static_cast<int>(this->extendee().length()),
4910             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
4911             "google.protobuf.FieldDescriptorProto.extendee");
4912         } else {
4913           goto handle_unusual;
4914         }
4915         break;
4916       }
4917 
4918       // optional int32 number = 3;
4919       case 3: {
4920         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
4921           _Internal::set_has_number(&_has_bits_);
4922           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
4923                    ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
4924                  input, &number_)));
4925         } else {
4926           goto handle_unusual;
4927         }
4928         break;
4929       }
4930 
4931       // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
4932       case 4: {
4933         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) {
4934           int value = 0;
4935           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
4936                    int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
4937                  input, &value)));
4938           if (PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label_IsValid(value)) {
4939             set_label(static_cast< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label >(value));
4940           } else {
4941             mutable_unknown_fields()->AddVarint(
4942                 4, static_cast<::PROTOBUF_NAMESPACE_ID::uint64>(value));
4943           }
4944         } else {
4945           goto handle_unusual;
4946         }
4947         break;
4948       }
4949 
4950       // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
4951       case 5: {
4952         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
4953           int value = 0;
4954           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
4955                    int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
4956                  input, &value)));
4957           if (PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type_IsValid(value)) {
4958             set_type(static_cast< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type >(value));
4959           } else {
4960             mutable_unknown_fields()->AddVarint(
4961                 5, static_cast<::PROTOBUF_NAMESPACE_ID::uint64>(value));
4962           }
4963         } else {
4964           goto handle_unusual;
4965         }
4966         break;
4967       }
4968 
4969       // optional string type_name = 6;
4970       case 6: {
4971         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
4972           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
4973                 input, this->mutable_type_name()));
4974           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
4975             this->type_name().data(), static_cast<int>(this->type_name().length()),
4976             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
4977             "google.protobuf.FieldDescriptorProto.type_name");
4978         } else {
4979           goto handle_unusual;
4980         }
4981         break;
4982       }
4983 
4984       // optional string default_value = 7;
4985       case 7: {
4986         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) {
4987           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
4988                 input, this->mutable_default_value()));
4989           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
4990             this->default_value().data(), static_cast<int>(this->default_value().length()),
4991             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
4992             "google.protobuf.FieldDescriptorProto.default_value");
4993         } else {
4994           goto handle_unusual;
4995         }
4996         break;
4997       }
4998 
4999       // optional .google.protobuf.FieldOptions options = 8;
5000       case 8: {
5001         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) {
5002           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
5003                input, mutable_options()));
5004         } else {
5005           goto handle_unusual;
5006         }
5007         break;
5008       }
5009 
5010       // optional int32 oneof_index = 9;
5011       case 9: {
5012         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (72 & 0xFF)) {
5013           _Internal::set_has_oneof_index(&_has_bits_);
5014           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
5015                    ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
5016                  input, &oneof_index_)));
5017         } else {
5018           goto handle_unusual;
5019         }
5020         break;
5021       }
5022 
5023       // optional string json_name = 10;
5024       case 10: {
5025         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (82 & 0xFF)) {
5026           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
5027                 input, this->mutable_json_name()));
5028           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
5029             this->json_name().data(), static_cast<int>(this->json_name().length()),
5030             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
5031             "google.protobuf.FieldDescriptorProto.json_name");
5032         } else {
5033           goto handle_unusual;
5034         }
5035         break;
5036       }
5037 
5038       default: {
5039       handle_unusual:
5040         if (tag == 0) {
5041           goto success;
5042         }
5043         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
5044               input, tag, _internal_metadata_.mutable_unknown_fields()));
5045         break;
5046       }
5047     }
5048   }
5049 success:
5050   // @@protoc_insertion_point(parse_success:google.protobuf.FieldDescriptorProto)
5051   return true;
5052 failure:
5053   // @@protoc_insertion_point(parse_failure:google.protobuf.FieldDescriptorProto)
5054   return false;
5055 #undef DO_
5056 }
5057 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5058 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const5059 void FieldDescriptorProto::SerializeWithCachedSizes(
5060     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
5061   // @@protoc_insertion_point(serialize_start:google.protobuf.FieldDescriptorProto)
5062   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5063   (void) cached_has_bits;
5064 
5065   cached_has_bits = _has_bits_[0];
5066   // optional string name = 1;
5067   if (cached_has_bits & 0x00000001u) {
5068     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
5069       this->name().data(), static_cast<int>(this->name().length()),
5070       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
5071       "google.protobuf.FieldDescriptorProto.name");
5072     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
5073       1, this->name(), output);
5074   }
5075 
5076   // optional string extendee = 2;
5077   if (cached_has_bits & 0x00000002u) {
5078     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
5079       this->extendee().data(), static_cast<int>(this->extendee().length()),
5080       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
5081       "google.protobuf.FieldDescriptorProto.extendee");
5082     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
5083       2, this->extendee(), output);
5084   }
5085 
5086   // optional int32 number = 3;
5087   if (cached_has_bits & 0x00000040u) {
5088     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(3, this->number(), output);
5089   }
5090 
5091   // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
5092   if (cached_has_bits & 0x00000100u) {
5093     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
5094       4, this->label(), output);
5095   }
5096 
5097   // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
5098   if (cached_has_bits & 0x00000200u) {
5099     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
5100       5, this->type(), output);
5101   }
5102 
5103   // optional string type_name = 6;
5104   if (cached_has_bits & 0x00000004u) {
5105     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
5106       this->type_name().data(), static_cast<int>(this->type_name().length()),
5107       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
5108       "google.protobuf.FieldDescriptorProto.type_name");
5109     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
5110       6, this->type_name(), output);
5111   }
5112 
5113   // optional string default_value = 7;
5114   if (cached_has_bits & 0x00000008u) {
5115     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
5116       this->default_value().data(), static_cast<int>(this->default_value().length()),
5117       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
5118       "google.protobuf.FieldDescriptorProto.default_value");
5119     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
5120       7, this->default_value(), output);
5121   }
5122 
5123   // optional .google.protobuf.FieldOptions options = 8;
5124   if (cached_has_bits & 0x00000020u) {
5125     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
5126       8, _Internal::options(this), output);
5127   }
5128 
5129   // optional int32 oneof_index = 9;
5130   if (cached_has_bits & 0x00000080u) {
5131     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(9, this->oneof_index(), output);
5132   }
5133 
5134   // optional string json_name = 10;
5135   if (cached_has_bits & 0x00000010u) {
5136     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
5137       this->json_name().data(), static_cast<int>(this->json_name().length()),
5138       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
5139       "google.protobuf.FieldDescriptorProto.json_name");
5140     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
5141       10, this->json_name(), output);
5142   }
5143 
5144   if (_internal_metadata_.have_unknown_fields()) {
5145     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
5146         _internal_metadata_.unknown_fields(), output);
5147   }
5148   // @@protoc_insertion_point(serialize_end:google.protobuf.FieldDescriptorProto)
5149 }
5150 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const5151 ::PROTOBUF_NAMESPACE_ID::uint8* FieldDescriptorProto::InternalSerializeWithCachedSizesToArray(
5152     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
5153   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldDescriptorProto)
5154   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5155   (void) cached_has_bits;
5156 
5157   cached_has_bits = _has_bits_[0];
5158   // optional string name = 1;
5159   if (cached_has_bits & 0x00000001u) {
5160     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
5161       this->name().data(), static_cast<int>(this->name().length()),
5162       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
5163       "google.protobuf.FieldDescriptorProto.name");
5164     target =
5165       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
5166         1, this->name(), target);
5167   }
5168 
5169   // optional string extendee = 2;
5170   if (cached_has_bits & 0x00000002u) {
5171     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
5172       this->extendee().data(), static_cast<int>(this->extendee().length()),
5173       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
5174       "google.protobuf.FieldDescriptorProto.extendee");
5175     target =
5176       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
5177         2, this->extendee(), target);
5178   }
5179 
5180   // optional int32 number = 3;
5181   if (cached_has_bits & 0x00000040u) {
5182     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->number(), target);
5183   }
5184 
5185   // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
5186   if (cached_has_bits & 0x00000100u) {
5187     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
5188       4, this->label(), target);
5189   }
5190 
5191   // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
5192   if (cached_has_bits & 0x00000200u) {
5193     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
5194       5, this->type(), target);
5195   }
5196 
5197   // optional string type_name = 6;
5198   if (cached_has_bits & 0x00000004u) {
5199     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
5200       this->type_name().data(), static_cast<int>(this->type_name().length()),
5201       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
5202       "google.protobuf.FieldDescriptorProto.type_name");
5203     target =
5204       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
5205         6, this->type_name(), target);
5206   }
5207 
5208   // optional string default_value = 7;
5209   if (cached_has_bits & 0x00000008u) {
5210     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
5211       this->default_value().data(), static_cast<int>(this->default_value().length()),
5212       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
5213       "google.protobuf.FieldDescriptorProto.default_value");
5214     target =
5215       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
5216         7, this->default_value(), target);
5217   }
5218 
5219   // optional .google.protobuf.FieldOptions options = 8;
5220   if (cached_has_bits & 0x00000020u) {
5221     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5222       InternalWriteMessageToArray(
5223         8, _Internal::options(this), target);
5224   }
5225 
5226   // optional int32 oneof_index = 9;
5227   if (cached_has_bits & 0x00000080u) {
5228     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->oneof_index(), target);
5229   }
5230 
5231   // optional string json_name = 10;
5232   if (cached_has_bits & 0x00000010u) {
5233     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
5234       this->json_name().data(), static_cast<int>(this->json_name().length()),
5235       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
5236       "google.protobuf.FieldDescriptorProto.json_name");
5237     target =
5238       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
5239         10, this->json_name(), target);
5240   }
5241 
5242   if (_internal_metadata_.have_unknown_fields()) {
5243     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
5244         _internal_metadata_.unknown_fields(), target);
5245   }
5246   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldDescriptorProto)
5247   return target;
5248 }
5249 
ByteSizeLong() const5250 size_t FieldDescriptorProto::ByteSizeLong() const {
5251 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldDescriptorProto)
5252   size_t total_size = 0;
5253 
5254   if (_internal_metadata_.have_unknown_fields()) {
5255     total_size +=
5256       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
5257         _internal_metadata_.unknown_fields());
5258   }
5259   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5260   // Prevent compiler warnings about cached_has_bits being unused
5261   (void) cached_has_bits;
5262 
5263   cached_has_bits = _has_bits_[0];
5264   if (cached_has_bits & 0x000000ffu) {
5265     // optional string name = 1;
5266     if (cached_has_bits & 0x00000001u) {
5267       total_size += 1 +
5268         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5269           this->name());
5270     }
5271 
5272     // optional string extendee = 2;
5273     if (cached_has_bits & 0x00000002u) {
5274       total_size += 1 +
5275         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5276           this->extendee());
5277     }
5278 
5279     // optional string type_name = 6;
5280     if (cached_has_bits & 0x00000004u) {
5281       total_size += 1 +
5282         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5283           this->type_name());
5284     }
5285 
5286     // optional string default_value = 7;
5287     if (cached_has_bits & 0x00000008u) {
5288       total_size += 1 +
5289         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5290           this->default_value());
5291     }
5292 
5293     // optional string json_name = 10;
5294     if (cached_has_bits & 0x00000010u) {
5295       total_size += 1 +
5296         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5297           this->json_name());
5298     }
5299 
5300     // optional .google.protobuf.FieldOptions options = 8;
5301     if (cached_has_bits & 0x00000020u) {
5302       total_size += 1 +
5303         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5304           *options_);
5305     }
5306 
5307     // optional int32 number = 3;
5308     if (cached_has_bits & 0x00000040u) {
5309       total_size += 1 +
5310         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
5311           this->number());
5312     }
5313 
5314     // optional int32 oneof_index = 9;
5315     if (cached_has_bits & 0x00000080u) {
5316       total_size += 1 +
5317         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
5318           this->oneof_index());
5319     }
5320 
5321   }
5322   if (cached_has_bits & 0x00000300u) {
5323     // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
5324     if (cached_has_bits & 0x00000100u) {
5325       total_size += 1 +
5326         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->label());
5327     }
5328 
5329     // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
5330     if (cached_has_bits & 0x00000200u) {
5331       total_size += 1 +
5332         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->type());
5333     }
5334 
5335   }
5336   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
5337   SetCachedSize(cached_size);
5338   return total_size;
5339 }
5340 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)5341 void FieldDescriptorProto::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5342 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldDescriptorProto)
5343   GOOGLE_DCHECK_NE(&from, this);
5344   const FieldDescriptorProto* source =
5345       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<FieldDescriptorProto>(
5346           &from);
5347   if (source == nullptr) {
5348   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FieldDescriptorProto)
5349     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
5350   } else {
5351   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FieldDescriptorProto)
5352     MergeFrom(*source);
5353   }
5354 }
5355 
MergeFrom(const FieldDescriptorProto & from)5356 void FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) {
5357 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FieldDescriptorProto)
5358   GOOGLE_DCHECK_NE(&from, this);
5359   _internal_metadata_.MergeFrom(from._internal_metadata_);
5360   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5361   (void) cached_has_bits;
5362 
5363   cached_has_bits = from._has_bits_[0];
5364   if (cached_has_bits & 0x000000ffu) {
5365     if (cached_has_bits & 0x00000001u) {
5366       set_name(from.name());
5367     }
5368     if (cached_has_bits & 0x00000002u) {
5369       set_extendee(from.extendee());
5370     }
5371     if (cached_has_bits & 0x00000004u) {
5372       set_type_name(from.type_name());
5373     }
5374     if (cached_has_bits & 0x00000008u) {
5375       set_default_value(from.default_value());
5376     }
5377     if (cached_has_bits & 0x00000010u) {
5378       set_json_name(from.json_name());
5379     }
5380     if (cached_has_bits & 0x00000020u) {
5381       mutable_options()->PROTOBUF_NAMESPACE_ID::FieldOptions::MergeFrom(from.options());
5382     }
5383     if (cached_has_bits & 0x00000040u) {
5384       number_ = from.number_;
5385     }
5386     if (cached_has_bits & 0x00000080u) {
5387       oneof_index_ = from.oneof_index_;
5388     }
5389     _has_bits_[0] |= cached_has_bits;
5390   }
5391   if (cached_has_bits & 0x00000300u) {
5392     if (cached_has_bits & 0x00000100u) {
5393       label_ = from.label_;
5394     }
5395     if (cached_has_bits & 0x00000200u) {
5396       type_ = from.type_;
5397     }
5398     _has_bits_[0] |= cached_has_bits;
5399   }
5400 }
5401 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)5402 void FieldDescriptorProto::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5403 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldDescriptorProto)
5404   if (&from == this) return;
5405   Clear();
5406   MergeFrom(from);
5407 }
5408 
CopyFrom(const FieldDescriptorProto & from)5409 void FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) {
5410 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FieldDescriptorProto)
5411   if (&from == this) return;
5412   Clear();
5413   MergeFrom(from);
5414 }
5415 
IsInitialized() const5416 bool FieldDescriptorProto::IsInitialized() const {
5417   if (has_options()) {
5418     if (!this->options_->IsInitialized()) return false;
5419   }
5420   return true;
5421 }
5422 
InternalSwap(FieldDescriptorProto * other)5423 void FieldDescriptorProto::InternalSwap(FieldDescriptorProto* other) {
5424   using std::swap;
5425   _internal_metadata_.Swap(&other->_internal_metadata_);
5426   swap(_has_bits_[0], other->_has_bits_[0]);
5427   name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
5428     GetArenaNoVirtual());
5429   extendee_.Swap(&other->extendee_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
5430     GetArenaNoVirtual());
5431   type_name_.Swap(&other->type_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
5432     GetArenaNoVirtual());
5433   default_value_.Swap(&other->default_value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
5434     GetArenaNoVirtual());
5435   json_name_.Swap(&other->json_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
5436     GetArenaNoVirtual());
5437   swap(options_, other->options_);
5438   swap(number_, other->number_);
5439   swap(oneof_index_, other->oneof_index_);
5440   swap(label_, other->label_);
5441   swap(type_, other->type_);
5442 }
5443 
GetMetadata() const5444 ::PROTOBUF_NAMESPACE_ID::Metadata FieldDescriptorProto::GetMetadata() const {
5445   return GetMetadataStatic();
5446 }
5447 
5448 
5449 // ===================================================================
5450 
InitAsDefaultInstance()5451 void OneofDescriptorProto::InitAsDefaultInstance() {
5452   PROTOBUF_NAMESPACE_ID::_OneofDescriptorProto_default_instance_._instance.get_mutable()->options_ = const_cast< PROTOBUF_NAMESPACE_ID::OneofOptions*>(
5453       PROTOBUF_NAMESPACE_ID::OneofOptions::internal_default_instance());
5454 }
5455 class OneofDescriptorProto::_Internal {
5456  public:
5457   using HasBits = decltype(std::declval<OneofDescriptorProto>()._has_bits_);
set_has_name(HasBits * has_bits)5458   static void set_has_name(HasBits* has_bits) {
5459     (*has_bits)[0] |= 1u;
5460   }
5461   static const PROTOBUF_NAMESPACE_ID::OneofOptions& options(const OneofDescriptorProto* msg);
set_has_options(HasBits * has_bits)5462   static void set_has_options(HasBits* has_bits) {
5463     (*has_bits)[0] |= 2u;
5464   }
5465 };
5466 
5467 const PROTOBUF_NAMESPACE_ID::OneofOptions&
options(const OneofDescriptorProto * msg)5468 OneofDescriptorProto::_Internal::options(const OneofDescriptorProto* msg) {
5469   return *msg->options_;
5470 }
unsafe_arena_set_allocated_options(PROTOBUF_NAMESPACE_ID::OneofOptions * options)5471 void OneofDescriptorProto::unsafe_arena_set_allocated_options(
5472     PROTOBUF_NAMESPACE_ID::OneofOptions* options) {
5473   if (GetArenaNoVirtual() == nullptr) {
5474     delete options_;
5475   }
5476   options_ = options;
5477   if (options) {
5478     _has_bits_[0] |= 0x00000002u;
5479   } else {
5480     _has_bits_[0] &= ~0x00000002u;
5481   }
5482   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.OneofDescriptorProto.options)
5483 }
OneofDescriptorProto()5484 OneofDescriptorProto::OneofDescriptorProto()
5485   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
5486   SharedCtor();
5487   // @@protoc_insertion_point(constructor:google.protobuf.OneofDescriptorProto)
5488 }
OneofDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena * arena)5489 OneofDescriptorProto::OneofDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena)
5490   : ::PROTOBUF_NAMESPACE_ID::Message(),
5491   _internal_metadata_(arena) {
5492   SharedCtor();
5493   RegisterArenaDtor(arena);
5494   // @@protoc_insertion_point(arena_constructor:google.protobuf.OneofDescriptorProto)
5495 }
OneofDescriptorProto(const OneofDescriptorProto & from)5496 OneofDescriptorProto::OneofDescriptorProto(const OneofDescriptorProto& from)
5497   : ::PROTOBUF_NAMESPACE_ID::Message(),
5498       _internal_metadata_(nullptr),
5499       _has_bits_(from._has_bits_) {
5500   _internal_metadata_.MergeFrom(from._internal_metadata_);
5501   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5502   if (from.has_name()) {
5503     name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name(),
5504       GetArenaNoVirtual());
5505   }
5506   if (from.has_options()) {
5507     options_ = new PROTOBUF_NAMESPACE_ID::OneofOptions(*from.options_);
5508   } else {
5509     options_ = nullptr;
5510   }
5511   // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofDescriptorProto)
5512 }
5513 
SharedCtor()5514 void OneofDescriptorProto::SharedCtor() {
5515   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OneofDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base);
5516   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5517   options_ = nullptr;
5518 }
5519 
~OneofDescriptorProto()5520 OneofDescriptorProto::~OneofDescriptorProto() {
5521   // @@protoc_insertion_point(destructor:google.protobuf.OneofDescriptorProto)
5522   SharedDtor();
5523 }
5524 
SharedDtor()5525 void OneofDescriptorProto::SharedDtor() {
5526   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
5527   name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5528   if (this != internal_default_instance()) delete options_;
5529 }
5530 
ArenaDtor(void * object)5531 void OneofDescriptorProto::ArenaDtor(void* object) {
5532   OneofDescriptorProto* _this = reinterpret_cast< OneofDescriptorProto* >(object);
5533   (void)_this;
5534 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)5535 void OneofDescriptorProto::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
5536 }
SetCachedSize(int size) const5537 void OneofDescriptorProto::SetCachedSize(int size) const {
5538   _cached_size_.Set(size);
5539 }
default_instance()5540 const OneofDescriptorProto& OneofDescriptorProto::default_instance() {
5541   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OneofDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base);
5542   return *internal_default_instance();
5543 }
5544 
5545 
Clear()5546 void OneofDescriptorProto::Clear() {
5547 // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofDescriptorProto)
5548   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5549   // Prevent compiler warnings about cached_has_bits being unused
5550   (void) cached_has_bits;
5551 
5552   cached_has_bits = _has_bits_[0];
5553   if (cached_has_bits & 0x00000003u) {
5554     if (cached_has_bits & 0x00000001u) {
5555       name_.ClearNonDefaultToEmpty();
5556     }
5557     if (cached_has_bits & 0x00000002u) {
5558       GOOGLE_DCHECK(options_ != nullptr);
5559       options_->Clear();
5560     }
5561   }
5562   _has_bits_.Clear();
5563   _internal_metadata_.Clear();
5564 }
5565 
5566 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)5567 const char* OneofDescriptorProto::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
5568 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5569   _Internal::HasBits has_bits{};
5570   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
5571   while (!ctx->Done(&ptr)) {
5572     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5573     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
5574     CHK_(ptr);
5575     switch (tag >> 3) {
5576       // optional string name = 1;
5577       case 1:
5578         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
5579           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_name(), ptr, ctx, "google.protobuf.OneofDescriptorProto.name");
5580           CHK_(ptr);
5581         } else goto handle_unusual;
5582         continue;
5583       // optional .google.protobuf.OneofOptions options = 2;
5584       case 2:
5585         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
5586           ptr = ctx->ParseMessage(mutable_options(), ptr);
5587           CHK_(ptr);
5588         } else goto handle_unusual;
5589         continue;
5590       default: {
5591       handle_unusual:
5592         if ((tag & 7) == 4 || tag == 0) {
5593           ctx->SetLastTag(tag);
5594           goto success;
5595         }
5596         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
5597         CHK_(ptr != nullptr);
5598         continue;
5599       }
5600     }  // switch
5601   }  // while
5602 success:
5603   _has_bits_.Or(has_bits);
5604   return ptr;
5605 failure:
5606   ptr = nullptr;
5607   goto success;
5608 #undef CHK_
5609 }
5610 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)5611 bool OneofDescriptorProto::MergePartialFromCodedStream(
5612     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
5613 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5614   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5615   // @@protoc_insertion_point(parse_start:google.protobuf.OneofDescriptorProto)
5616   for (;;) {
5617     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5618     tag = p.first;
5619     if (!p.second) goto handle_unusual;
5620     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5621       // optional string name = 1;
5622       case 1: {
5623         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
5624           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
5625                 input, this->mutable_name()));
5626           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
5627             this->name().data(), static_cast<int>(this->name().length()),
5628             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
5629             "google.protobuf.OneofDescriptorProto.name");
5630         } else {
5631           goto handle_unusual;
5632         }
5633         break;
5634       }
5635 
5636       // optional .google.protobuf.OneofOptions options = 2;
5637       case 2: {
5638         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
5639           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
5640                input, mutable_options()));
5641         } else {
5642           goto handle_unusual;
5643         }
5644         break;
5645       }
5646 
5647       default: {
5648       handle_unusual:
5649         if (tag == 0) {
5650           goto success;
5651         }
5652         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
5653               input, tag, _internal_metadata_.mutable_unknown_fields()));
5654         break;
5655       }
5656     }
5657   }
5658 success:
5659   // @@protoc_insertion_point(parse_success:google.protobuf.OneofDescriptorProto)
5660   return true;
5661 failure:
5662   // @@protoc_insertion_point(parse_failure:google.protobuf.OneofDescriptorProto)
5663   return false;
5664 #undef DO_
5665 }
5666 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5667 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const5668 void OneofDescriptorProto::SerializeWithCachedSizes(
5669     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
5670   // @@protoc_insertion_point(serialize_start:google.protobuf.OneofDescriptorProto)
5671   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5672   (void) cached_has_bits;
5673 
5674   cached_has_bits = _has_bits_[0];
5675   // optional string name = 1;
5676   if (cached_has_bits & 0x00000001u) {
5677     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
5678       this->name().data(), static_cast<int>(this->name().length()),
5679       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
5680       "google.protobuf.OneofDescriptorProto.name");
5681     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
5682       1, this->name(), output);
5683   }
5684 
5685   // optional .google.protobuf.OneofOptions options = 2;
5686   if (cached_has_bits & 0x00000002u) {
5687     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
5688       2, _Internal::options(this), output);
5689   }
5690 
5691   if (_internal_metadata_.have_unknown_fields()) {
5692     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
5693         _internal_metadata_.unknown_fields(), output);
5694   }
5695   // @@protoc_insertion_point(serialize_end:google.protobuf.OneofDescriptorProto)
5696 }
5697 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const5698 ::PROTOBUF_NAMESPACE_ID::uint8* OneofDescriptorProto::InternalSerializeWithCachedSizesToArray(
5699     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
5700   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofDescriptorProto)
5701   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5702   (void) cached_has_bits;
5703 
5704   cached_has_bits = _has_bits_[0];
5705   // optional string name = 1;
5706   if (cached_has_bits & 0x00000001u) {
5707     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
5708       this->name().data(), static_cast<int>(this->name().length()),
5709       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
5710       "google.protobuf.OneofDescriptorProto.name");
5711     target =
5712       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
5713         1, this->name(), target);
5714   }
5715 
5716   // optional .google.protobuf.OneofOptions options = 2;
5717   if (cached_has_bits & 0x00000002u) {
5718     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5719       InternalWriteMessageToArray(
5720         2, _Internal::options(this), target);
5721   }
5722 
5723   if (_internal_metadata_.have_unknown_fields()) {
5724     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
5725         _internal_metadata_.unknown_fields(), target);
5726   }
5727   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofDescriptorProto)
5728   return target;
5729 }
5730 
ByteSizeLong() const5731 size_t OneofDescriptorProto::ByteSizeLong() const {
5732 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofDescriptorProto)
5733   size_t total_size = 0;
5734 
5735   if (_internal_metadata_.have_unknown_fields()) {
5736     total_size +=
5737       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
5738         _internal_metadata_.unknown_fields());
5739   }
5740   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5741   // Prevent compiler warnings about cached_has_bits being unused
5742   (void) cached_has_bits;
5743 
5744   cached_has_bits = _has_bits_[0];
5745   if (cached_has_bits & 0x00000003u) {
5746     // optional string name = 1;
5747     if (cached_has_bits & 0x00000001u) {
5748       total_size += 1 +
5749         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5750           this->name());
5751     }
5752 
5753     // optional .google.protobuf.OneofOptions options = 2;
5754     if (cached_has_bits & 0x00000002u) {
5755       total_size += 1 +
5756         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5757           *options_);
5758     }
5759 
5760   }
5761   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
5762   SetCachedSize(cached_size);
5763   return total_size;
5764 }
5765 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)5766 void OneofDescriptorProto::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5767 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.OneofDescriptorProto)
5768   GOOGLE_DCHECK_NE(&from, this);
5769   const OneofDescriptorProto* source =
5770       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<OneofDescriptorProto>(
5771           &from);
5772   if (source == nullptr) {
5773   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.OneofDescriptorProto)
5774     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
5775   } else {
5776   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.OneofDescriptorProto)
5777     MergeFrom(*source);
5778   }
5779 }
5780 
MergeFrom(const OneofDescriptorProto & from)5781 void OneofDescriptorProto::MergeFrom(const OneofDescriptorProto& from) {
5782 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.OneofDescriptorProto)
5783   GOOGLE_DCHECK_NE(&from, this);
5784   _internal_metadata_.MergeFrom(from._internal_metadata_);
5785   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5786   (void) cached_has_bits;
5787 
5788   cached_has_bits = from._has_bits_[0];
5789   if (cached_has_bits & 0x00000003u) {
5790     if (cached_has_bits & 0x00000001u) {
5791       set_name(from.name());
5792     }
5793     if (cached_has_bits & 0x00000002u) {
5794       mutable_options()->PROTOBUF_NAMESPACE_ID::OneofOptions::MergeFrom(from.options());
5795     }
5796   }
5797 }
5798 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)5799 void OneofDescriptorProto::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5800 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.OneofDescriptorProto)
5801   if (&from == this) return;
5802   Clear();
5803   MergeFrom(from);
5804 }
5805 
CopyFrom(const OneofDescriptorProto & from)5806 void OneofDescriptorProto::CopyFrom(const OneofDescriptorProto& from) {
5807 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.OneofDescriptorProto)
5808   if (&from == this) return;
5809   Clear();
5810   MergeFrom(from);
5811 }
5812 
IsInitialized() const5813 bool OneofDescriptorProto::IsInitialized() const {
5814   if (has_options()) {
5815     if (!this->options_->IsInitialized()) return false;
5816   }
5817   return true;
5818 }
5819 
InternalSwap(OneofDescriptorProto * other)5820 void OneofDescriptorProto::InternalSwap(OneofDescriptorProto* other) {
5821   using std::swap;
5822   _internal_metadata_.Swap(&other->_internal_metadata_);
5823   swap(_has_bits_[0], other->_has_bits_[0]);
5824   name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
5825     GetArenaNoVirtual());
5826   swap(options_, other->options_);
5827 }
5828 
GetMetadata() const5829 ::PROTOBUF_NAMESPACE_ID::Metadata OneofDescriptorProto::GetMetadata() const {
5830   return GetMetadataStatic();
5831 }
5832 
5833 
5834 // ===================================================================
5835 
InitAsDefaultInstance()5836 void EnumDescriptorProto_EnumReservedRange::InitAsDefaultInstance() {
5837 }
5838 class EnumDescriptorProto_EnumReservedRange::_Internal {
5839  public:
5840   using HasBits = decltype(std::declval<EnumDescriptorProto_EnumReservedRange>()._has_bits_);
set_has_start(HasBits * has_bits)5841   static void set_has_start(HasBits* has_bits) {
5842     (*has_bits)[0] |= 1u;
5843   }
set_has_end(HasBits * has_bits)5844   static void set_has_end(HasBits* has_bits) {
5845     (*has_bits)[0] |= 2u;
5846   }
5847 };
5848 
EnumDescriptorProto_EnumReservedRange()5849 EnumDescriptorProto_EnumReservedRange::EnumDescriptorProto_EnumReservedRange()
5850   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
5851   SharedCtor();
5852   // @@protoc_insertion_point(constructor:google.protobuf.EnumDescriptorProto.EnumReservedRange)
5853 }
EnumDescriptorProto_EnumReservedRange(::PROTOBUF_NAMESPACE_ID::Arena * arena)5854 EnumDescriptorProto_EnumReservedRange::EnumDescriptorProto_EnumReservedRange(::PROTOBUF_NAMESPACE_ID::Arena* arena)
5855   : ::PROTOBUF_NAMESPACE_ID::Message(),
5856   _internal_metadata_(arena) {
5857   SharedCtor();
5858   RegisterArenaDtor(arena);
5859   // @@protoc_insertion_point(arena_constructor:google.protobuf.EnumDescriptorProto.EnumReservedRange)
5860 }
EnumDescriptorProto_EnumReservedRange(const EnumDescriptorProto_EnumReservedRange & from)5861 EnumDescriptorProto_EnumReservedRange::EnumDescriptorProto_EnumReservedRange(const EnumDescriptorProto_EnumReservedRange& from)
5862   : ::PROTOBUF_NAMESPACE_ID::Message(),
5863       _internal_metadata_(nullptr),
5864       _has_bits_(from._has_bits_) {
5865   _internal_metadata_.MergeFrom(from._internal_metadata_);
5866   ::memcpy(&start_, &from.start_,
5867     static_cast<size_t>(reinterpret_cast<char*>(&end_) -
5868     reinterpret_cast<char*>(&start_)) + sizeof(end_));
5869   // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumDescriptorProto.EnumReservedRange)
5870 }
5871 
SharedCtor()5872 void EnumDescriptorProto_EnumReservedRange::SharedCtor() {
5873   ::memset(&start_, 0, static_cast<size_t>(
5874       reinterpret_cast<char*>(&end_) -
5875       reinterpret_cast<char*>(&start_)) + sizeof(end_));
5876 }
5877 
~EnumDescriptorProto_EnumReservedRange()5878 EnumDescriptorProto_EnumReservedRange::~EnumDescriptorProto_EnumReservedRange() {
5879   // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto.EnumReservedRange)
5880   SharedDtor();
5881 }
5882 
SharedDtor()5883 void EnumDescriptorProto_EnumReservedRange::SharedDtor() {
5884   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
5885 }
5886 
ArenaDtor(void * object)5887 void EnumDescriptorProto_EnumReservedRange::ArenaDtor(void* object) {
5888   EnumDescriptorProto_EnumReservedRange* _this = reinterpret_cast< EnumDescriptorProto_EnumReservedRange* >(object);
5889   (void)_this;
5890 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)5891 void EnumDescriptorProto_EnumReservedRange::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
5892 }
SetCachedSize(int size) const5893 void EnumDescriptorProto_EnumReservedRange::SetCachedSize(int size) const {
5894   _cached_size_.Set(size);
5895 }
default_instance()5896 const EnumDescriptorProto_EnumReservedRange& EnumDescriptorProto_EnumReservedRange::default_instance() {
5897   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EnumDescriptorProto_EnumReservedRange_google_2fprotobuf_2fdescriptor_2eproto.base);
5898   return *internal_default_instance();
5899 }
5900 
5901 
Clear()5902 void EnumDescriptorProto_EnumReservedRange::Clear() {
5903 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumDescriptorProto.EnumReservedRange)
5904   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5905   // Prevent compiler warnings about cached_has_bits being unused
5906   (void) cached_has_bits;
5907 
5908   cached_has_bits = _has_bits_[0];
5909   if (cached_has_bits & 0x00000003u) {
5910     ::memset(&start_, 0, static_cast<size_t>(
5911         reinterpret_cast<char*>(&end_) -
5912         reinterpret_cast<char*>(&start_)) + sizeof(end_));
5913   }
5914   _has_bits_.Clear();
5915   _internal_metadata_.Clear();
5916 }
5917 
5918 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)5919 const char* EnumDescriptorProto_EnumReservedRange::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
5920 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5921   _Internal::HasBits has_bits{};
5922   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
5923   while (!ctx->Done(&ptr)) {
5924     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5925     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
5926     CHK_(ptr);
5927     switch (tag >> 3) {
5928       // optional int32 start = 1;
5929       case 1:
5930         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
5931           _Internal::set_has_start(&has_bits);
5932           start_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
5933           CHK_(ptr);
5934         } else goto handle_unusual;
5935         continue;
5936       // optional int32 end = 2;
5937       case 2:
5938         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
5939           _Internal::set_has_end(&has_bits);
5940           end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
5941           CHK_(ptr);
5942         } else goto handle_unusual;
5943         continue;
5944       default: {
5945       handle_unusual:
5946         if ((tag & 7) == 4 || tag == 0) {
5947           ctx->SetLastTag(tag);
5948           goto success;
5949         }
5950         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
5951         CHK_(ptr != nullptr);
5952         continue;
5953       }
5954     }  // switch
5955   }  // while
5956 success:
5957   _has_bits_.Or(has_bits);
5958   return ptr;
5959 failure:
5960   ptr = nullptr;
5961   goto success;
5962 #undef CHK_
5963 }
5964 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)5965 bool EnumDescriptorProto_EnumReservedRange::MergePartialFromCodedStream(
5966     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
5967 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5968   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5969   // @@protoc_insertion_point(parse_start:google.protobuf.EnumDescriptorProto.EnumReservedRange)
5970   for (;;) {
5971     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5972     tag = p.first;
5973     if (!p.second) goto handle_unusual;
5974     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5975       // optional int32 start = 1;
5976       case 1: {
5977         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
5978           _Internal::set_has_start(&_has_bits_);
5979           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
5980                    ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
5981                  input, &start_)));
5982         } else {
5983           goto handle_unusual;
5984         }
5985         break;
5986       }
5987 
5988       // optional int32 end = 2;
5989       case 2: {
5990         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
5991           _Internal::set_has_end(&_has_bits_);
5992           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
5993                    ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
5994                  input, &end_)));
5995         } else {
5996           goto handle_unusual;
5997         }
5998         break;
5999       }
6000 
6001       default: {
6002       handle_unusual:
6003         if (tag == 0) {
6004           goto success;
6005         }
6006         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
6007               input, tag, _internal_metadata_.mutable_unknown_fields()));
6008         break;
6009       }
6010     }
6011   }
6012 success:
6013   // @@protoc_insertion_point(parse_success:google.protobuf.EnumDescriptorProto.EnumReservedRange)
6014   return true;
6015 failure:
6016   // @@protoc_insertion_point(parse_failure:google.protobuf.EnumDescriptorProto.EnumReservedRange)
6017   return false;
6018 #undef DO_
6019 }
6020 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6021 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const6022 void EnumDescriptorProto_EnumReservedRange::SerializeWithCachedSizes(
6023     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
6024   // @@protoc_insertion_point(serialize_start:google.protobuf.EnumDescriptorProto.EnumReservedRange)
6025   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6026   (void) cached_has_bits;
6027 
6028   cached_has_bits = _has_bits_[0];
6029   // optional int32 start = 1;
6030   if (cached_has_bits & 0x00000001u) {
6031     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(1, this->start(), output);
6032   }
6033 
6034   // optional int32 end = 2;
6035   if (cached_has_bits & 0x00000002u) {
6036     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(2, this->end(), output);
6037   }
6038 
6039   if (_internal_metadata_.have_unknown_fields()) {
6040     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
6041         _internal_metadata_.unknown_fields(), output);
6042   }
6043   // @@protoc_insertion_point(serialize_end:google.protobuf.EnumDescriptorProto.EnumReservedRange)
6044 }
6045 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const6046 ::PROTOBUF_NAMESPACE_ID::uint8* EnumDescriptorProto_EnumReservedRange::InternalSerializeWithCachedSizesToArray(
6047     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
6048   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescriptorProto.EnumReservedRange)
6049   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6050   (void) cached_has_bits;
6051 
6052   cached_has_bits = _has_bits_[0];
6053   // optional int32 start = 1;
6054   if (cached_has_bits & 0x00000001u) {
6055     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target);
6056   }
6057 
6058   // optional int32 end = 2;
6059   if (cached_has_bits & 0x00000002u) {
6060     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target);
6061   }
6062 
6063   if (_internal_metadata_.have_unknown_fields()) {
6064     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
6065         _internal_metadata_.unknown_fields(), target);
6066   }
6067   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumDescriptorProto.EnumReservedRange)
6068   return target;
6069 }
6070 
ByteSizeLong() const6071 size_t EnumDescriptorProto_EnumReservedRange::ByteSizeLong() const {
6072 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumDescriptorProto.EnumReservedRange)
6073   size_t total_size = 0;
6074 
6075   if (_internal_metadata_.have_unknown_fields()) {
6076     total_size +=
6077       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
6078         _internal_metadata_.unknown_fields());
6079   }
6080   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6081   // Prevent compiler warnings about cached_has_bits being unused
6082   (void) cached_has_bits;
6083 
6084   cached_has_bits = _has_bits_[0];
6085   if (cached_has_bits & 0x00000003u) {
6086     // optional int32 start = 1;
6087     if (cached_has_bits & 0x00000001u) {
6088       total_size += 1 +
6089         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
6090           this->start());
6091     }
6092 
6093     // optional int32 end = 2;
6094     if (cached_has_bits & 0x00000002u) {
6095       total_size += 1 +
6096         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
6097           this->end());
6098     }
6099 
6100   }
6101   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
6102   SetCachedSize(cached_size);
6103   return total_size;
6104 }
6105 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)6106 void EnumDescriptorProto_EnumReservedRange::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6107 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumDescriptorProto.EnumReservedRange)
6108   GOOGLE_DCHECK_NE(&from, this);
6109   const EnumDescriptorProto_EnumReservedRange* source =
6110       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<EnumDescriptorProto_EnumReservedRange>(
6111           &from);
6112   if (source == nullptr) {
6113   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.EnumDescriptorProto.EnumReservedRange)
6114     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
6115   } else {
6116   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumDescriptorProto.EnumReservedRange)
6117     MergeFrom(*source);
6118   }
6119 }
6120 
MergeFrom(const EnumDescriptorProto_EnumReservedRange & from)6121 void EnumDescriptorProto_EnumReservedRange::MergeFrom(const EnumDescriptorProto_EnumReservedRange& from) {
6122 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumDescriptorProto.EnumReservedRange)
6123   GOOGLE_DCHECK_NE(&from, this);
6124   _internal_metadata_.MergeFrom(from._internal_metadata_);
6125   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6126   (void) cached_has_bits;
6127 
6128   cached_has_bits = from._has_bits_[0];
6129   if (cached_has_bits & 0x00000003u) {
6130     if (cached_has_bits & 0x00000001u) {
6131       start_ = from.start_;
6132     }
6133     if (cached_has_bits & 0x00000002u) {
6134       end_ = from.end_;
6135     }
6136     _has_bits_[0] |= cached_has_bits;
6137   }
6138 }
6139 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)6140 void EnumDescriptorProto_EnumReservedRange::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6141 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumDescriptorProto.EnumReservedRange)
6142   if (&from == this) return;
6143   Clear();
6144   MergeFrom(from);
6145 }
6146 
CopyFrom(const EnumDescriptorProto_EnumReservedRange & from)6147 void EnumDescriptorProto_EnumReservedRange::CopyFrom(const EnumDescriptorProto_EnumReservedRange& from) {
6148 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumDescriptorProto.EnumReservedRange)
6149   if (&from == this) return;
6150   Clear();
6151   MergeFrom(from);
6152 }
6153 
IsInitialized() const6154 bool EnumDescriptorProto_EnumReservedRange::IsInitialized() const {
6155   return true;
6156 }
6157 
InternalSwap(EnumDescriptorProto_EnumReservedRange * other)6158 void EnumDescriptorProto_EnumReservedRange::InternalSwap(EnumDescriptorProto_EnumReservedRange* other) {
6159   using std::swap;
6160   _internal_metadata_.Swap(&other->_internal_metadata_);
6161   swap(_has_bits_[0], other->_has_bits_[0]);
6162   swap(start_, other->start_);
6163   swap(end_, other->end_);
6164 }
6165 
GetMetadata() const6166 ::PROTOBUF_NAMESPACE_ID::Metadata EnumDescriptorProto_EnumReservedRange::GetMetadata() const {
6167   return GetMetadataStatic();
6168 }
6169 
6170 
6171 // ===================================================================
6172 
InitAsDefaultInstance()6173 void EnumDescriptorProto::InitAsDefaultInstance() {
6174   PROTOBUF_NAMESPACE_ID::_EnumDescriptorProto_default_instance_._instance.get_mutable()->options_ = const_cast< PROTOBUF_NAMESPACE_ID::EnumOptions*>(
6175       PROTOBUF_NAMESPACE_ID::EnumOptions::internal_default_instance());
6176 }
6177 class EnumDescriptorProto::_Internal {
6178  public:
6179   using HasBits = decltype(std::declval<EnumDescriptorProto>()._has_bits_);
set_has_name(HasBits * has_bits)6180   static void set_has_name(HasBits* has_bits) {
6181     (*has_bits)[0] |= 1u;
6182   }
6183   static const PROTOBUF_NAMESPACE_ID::EnumOptions& options(const EnumDescriptorProto* msg);
set_has_options(HasBits * has_bits)6184   static void set_has_options(HasBits* has_bits) {
6185     (*has_bits)[0] |= 2u;
6186   }
6187 };
6188 
6189 const PROTOBUF_NAMESPACE_ID::EnumOptions&
options(const EnumDescriptorProto * msg)6190 EnumDescriptorProto::_Internal::options(const EnumDescriptorProto* msg) {
6191   return *msg->options_;
6192 }
unsafe_arena_set_allocated_options(PROTOBUF_NAMESPACE_ID::EnumOptions * options)6193 void EnumDescriptorProto::unsafe_arena_set_allocated_options(
6194     PROTOBUF_NAMESPACE_ID::EnumOptions* options) {
6195   if (GetArenaNoVirtual() == nullptr) {
6196     delete options_;
6197   }
6198   options_ = options;
6199   if (options) {
6200     _has_bits_[0] |= 0x00000002u;
6201   } else {
6202     _has_bits_[0] &= ~0x00000002u;
6203   }
6204   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.EnumDescriptorProto.options)
6205 }
EnumDescriptorProto()6206 EnumDescriptorProto::EnumDescriptorProto()
6207   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
6208   SharedCtor();
6209   // @@protoc_insertion_point(constructor:google.protobuf.EnumDescriptorProto)
6210 }
EnumDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena * arena)6211 EnumDescriptorProto::EnumDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena)
6212   : ::PROTOBUF_NAMESPACE_ID::Message(),
6213   _internal_metadata_(arena),
6214   value_(arena),
6215   reserved_range_(arena),
6216   reserved_name_(arena) {
6217   SharedCtor();
6218   RegisterArenaDtor(arena);
6219   // @@protoc_insertion_point(arena_constructor:google.protobuf.EnumDescriptorProto)
6220 }
EnumDescriptorProto(const EnumDescriptorProto & from)6221 EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from)
6222   : ::PROTOBUF_NAMESPACE_ID::Message(),
6223       _internal_metadata_(nullptr),
6224       _has_bits_(from._has_bits_),
6225       value_(from.value_),
6226       reserved_range_(from.reserved_range_),
6227       reserved_name_(from.reserved_name_) {
6228   _internal_metadata_.MergeFrom(from._internal_metadata_);
6229   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
6230   if (from.has_name()) {
6231     name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name(),
6232       GetArenaNoVirtual());
6233   }
6234   if (from.has_options()) {
6235     options_ = new PROTOBUF_NAMESPACE_ID::EnumOptions(*from.options_);
6236   } else {
6237     options_ = nullptr;
6238   }
6239   // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumDescriptorProto)
6240 }
6241 
SharedCtor()6242 void EnumDescriptorProto::SharedCtor() {
6243   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EnumDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base);
6244   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
6245   options_ = nullptr;
6246 }
6247 
~EnumDescriptorProto()6248 EnumDescriptorProto::~EnumDescriptorProto() {
6249   // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto)
6250   SharedDtor();
6251 }
6252 
SharedDtor()6253 void EnumDescriptorProto::SharedDtor() {
6254   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
6255   name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
6256   if (this != internal_default_instance()) delete options_;
6257 }
6258 
ArenaDtor(void * object)6259 void EnumDescriptorProto::ArenaDtor(void* object) {
6260   EnumDescriptorProto* _this = reinterpret_cast< EnumDescriptorProto* >(object);
6261   (void)_this;
6262 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)6263 void EnumDescriptorProto::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
6264 }
SetCachedSize(int size) const6265 void EnumDescriptorProto::SetCachedSize(int size) const {
6266   _cached_size_.Set(size);
6267 }
default_instance()6268 const EnumDescriptorProto& EnumDescriptorProto::default_instance() {
6269   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EnumDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base);
6270   return *internal_default_instance();
6271 }
6272 
6273 
Clear()6274 void EnumDescriptorProto::Clear() {
6275 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumDescriptorProto)
6276   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6277   // Prevent compiler warnings about cached_has_bits being unused
6278   (void) cached_has_bits;
6279 
6280   value_.Clear();
6281   reserved_range_.Clear();
6282   reserved_name_.Clear();
6283   cached_has_bits = _has_bits_[0];
6284   if (cached_has_bits & 0x00000003u) {
6285     if (cached_has_bits & 0x00000001u) {
6286       name_.ClearNonDefaultToEmpty();
6287     }
6288     if (cached_has_bits & 0x00000002u) {
6289       GOOGLE_DCHECK(options_ != nullptr);
6290       options_->Clear();
6291     }
6292   }
6293   _has_bits_.Clear();
6294   _internal_metadata_.Clear();
6295 }
6296 
6297 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)6298 const char* EnumDescriptorProto::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
6299 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6300   _Internal::HasBits has_bits{};
6301   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
6302   while (!ctx->Done(&ptr)) {
6303     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
6304     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
6305     CHK_(ptr);
6306     switch (tag >> 3) {
6307       // optional string name = 1;
6308       case 1:
6309         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
6310           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_name(), ptr, ctx, "google.protobuf.EnumDescriptorProto.name");
6311           CHK_(ptr);
6312         } else goto handle_unusual;
6313         continue;
6314       // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
6315       case 2:
6316         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
6317           ptr -= 1;
6318           do {
6319             ptr += 1;
6320             ptr = ctx->ParseMessage(add_value(), ptr);
6321             CHK_(ptr);
6322             if (!ctx->DataAvailable(ptr)) break;
6323           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
6324         } else goto handle_unusual;
6325         continue;
6326       // optional .google.protobuf.EnumOptions options = 3;
6327       case 3:
6328         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
6329           ptr = ctx->ParseMessage(mutable_options(), ptr);
6330           CHK_(ptr);
6331         } else goto handle_unusual;
6332         continue;
6333       // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
6334       case 4:
6335         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
6336           ptr -= 1;
6337           do {
6338             ptr += 1;
6339             ptr = ctx->ParseMessage(add_reserved_range(), ptr);
6340             CHK_(ptr);
6341             if (!ctx->DataAvailable(ptr)) break;
6342           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34);
6343         } else goto handle_unusual;
6344         continue;
6345       // repeated string reserved_name = 5;
6346       case 5:
6347         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
6348           ptr -= 1;
6349           do {
6350             ptr += 1;
6351             ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(add_reserved_name(), ptr, ctx, "google.protobuf.EnumDescriptorProto.reserved_name");
6352             CHK_(ptr);
6353             if (!ctx->DataAvailable(ptr)) break;
6354           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 42);
6355         } else goto handle_unusual;
6356         continue;
6357       default: {
6358       handle_unusual:
6359         if ((tag & 7) == 4 || tag == 0) {
6360           ctx->SetLastTag(tag);
6361           goto success;
6362         }
6363         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
6364         CHK_(ptr != nullptr);
6365         continue;
6366       }
6367     }  // switch
6368   }  // while
6369 success:
6370   _has_bits_.Or(has_bits);
6371   return ptr;
6372 failure:
6373   ptr = nullptr;
6374   goto success;
6375 #undef CHK_
6376 }
6377 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)6378 bool EnumDescriptorProto::MergePartialFromCodedStream(
6379     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
6380 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
6381   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
6382   // @@protoc_insertion_point(parse_start:google.protobuf.EnumDescriptorProto)
6383   for (;;) {
6384     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6385     tag = p.first;
6386     if (!p.second) goto handle_unusual;
6387     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6388       // optional string name = 1;
6389       case 1: {
6390         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
6391           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
6392                 input, this->mutable_name()));
6393           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
6394             this->name().data(), static_cast<int>(this->name().length()),
6395             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
6396             "google.protobuf.EnumDescriptorProto.name");
6397         } else {
6398           goto handle_unusual;
6399         }
6400         break;
6401       }
6402 
6403       // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
6404       case 2: {
6405         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
6406           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
6407                 input, add_value()));
6408         } else {
6409           goto handle_unusual;
6410         }
6411         break;
6412       }
6413 
6414       // optional .google.protobuf.EnumOptions options = 3;
6415       case 3: {
6416         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
6417           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
6418                input, mutable_options()));
6419         } else {
6420           goto handle_unusual;
6421         }
6422         break;
6423       }
6424 
6425       // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
6426       case 4: {
6427         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
6428           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
6429                 input, add_reserved_range()));
6430         } else {
6431           goto handle_unusual;
6432         }
6433         break;
6434       }
6435 
6436       // repeated string reserved_name = 5;
6437       case 5: {
6438         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
6439           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
6440                 input, this->add_reserved_name()));
6441           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
6442             this->reserved_name(this->reserved_name_size() - 1).data(),
6443             static_cast<int>(this->reserved_name(this->reserved_name_size() - 1).length()),
6444             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
6445             "google.protobuf.EnumDescriptorProto.reserved_name");
6446         } else {
6447           goto handle_unusual;
6448         }
6449         break;
6450       }
6451 
6452       default: {
6453       handle_unusual:
6454         if (tag == 0) {
6455           goto success;
6456         }
6457         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
6458               input, tag, _internal_metadata_.mutable_unknown_fields()));
6459         break;
6460       }
6461     }
6462   }
6463 success:
6464   // @@protoc_insertion_point(parse_success:google.protobuf.EnumDescriptorProto)
6465   return true;
6466 failure:
6467   // @@protoc_insertion_point(parse_failure:google.protobuf.EnumDescriptorProto)
6468   return false;
6469 #undef DO_
6470 }
6471 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6472 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const6473 void EnumDescriptorProto::SerializeWithCachedSizes(
6474     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
6475   // @@protoc_insertion_point(serialize_start:google.protobuf.EnumDescriptorProto)
6476   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6477   (void) cached_has_bits;
6478 
6479   cached_has_bits = _has_bits_[0];
6480   // optional string name = 1;
6481   if (cached_has_bits & 0x00000001u) {
6482     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
6483       this->name().data(), static_cast<int>(this->name().length()),
6484       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
6485       "google.protobuf.EnumDescriptorProto.name");
6486     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
6487       1, this->name(), output);
6488   }
6489 
6490   // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
6491   for (unsigned int i = 0,
6492       n = static_cast<unsigned int>(this->value_size()); i < n; i++) {
6493     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
6494       2,
6495       this->value(static_cast<int>(i)),
6496       output);
6497   }
6498 
6499   // optional .google.protobuf.EnumOptions options = 3;
6500   if (cached_has_bits & 0x00000002u) {
6501     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
6502       3, _Internal::options(this), output);
6503   }
6504 
6505   // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
6506   for (unsigned int i = 0,
6507       n = static_cast<unsigned int>(this->reserved_range_size()); i < n; i++) {
6508     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
6509       4,
6510       this->reserved_range(static_cast<int>(i)),
6511       output);
6512   }
6513 
6514   // repeated string reserved_name = 5;
6515   for (int i = 0, n = this->reserved_name_size(); i < n; i++) {
6516     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
6517       this->reserved_name(i).data(), static_cast<int>(this->reserved_name(i).length()),
6518       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
6519       "google.protobuf.EnumDescriptorProto.reserved_name");
6520     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
6521       5, this->reserved_name(i), output);
6522   }
6523 
6524   if (_internal_metadata_.have_unknown_fields()) {
6525     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
6526         _internal_metadata_.unknown_fields(), output);
6527   }
6528   // @@protoc_insertion_point(serialize_end:google.protobuf.EnumDescriptorProto)
6529 }
6530 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const6531 ::PROTOBUF_NAMESPACE_ID::uint8* EnumDescriptorProto::InternalSerializeWithCachedSizesToArray(
6532     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
6533   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescriptorProto)
6534   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6535   (void) cached_has_bits;
6536 
6537   cached_has_bits = _has_bits_[0];
6538   // optional string name = 1;
6539   if (cached_has_bits & 0x00000001u) {
6540     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
6541       this->name().data(), static_cast<int>(this->name().length()),
6542       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
6543       "google.protobuf.EnumDescriptorProto.name");
6544     target =
6545       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
6546         1, this->name(), target);
6547   }
6548 
6549   // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
6550   for (unsigned int i = 0,
6551       n = static_cast<unsigned int>(this->value_size()); i < n; i++) {
6552     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6553       InternalWriteMessageToArray(
6554         2, this->value(static_cast<int>(i)), target);
6555   }
6556 
6557   // optional .google.protobuf.EnumOptions options = 3;
6558   if (cached_has_bits & 0x00000002u) {
6559     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6560       InternalWriteMessageToArray(
6561         3, _Internal::options(this), target);
6562   }
6563 
6564   // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
6565   for (unsigned int i = 0,
6566       n = static_cast<unsigned int>(this->reserved_range_size()); i < n; i++) {
6567     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6568       InternalWriteMessageToArray(
6569         4, this->reserved_range(static_cast<int>(i)), target);
6570   }
6571 
6572   // repeated string reserved_name = 5;
6573   for (int i = 0, n = this->reserved_name_size(); i < n; i++) {
6574     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
6575       this->reserved_name(i).data(), static_cast<int>(this->reserved_name(i).length()),
6576       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
6577       "google.protobuf.EnumDescriptorProto.reserved_name");
6578     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6579       WriteStringToArray(5, this->reserved_name(i), target);
6580   }
6581 
6582   if (_internal_metadata_.have_unknown_fields()) {
6583     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
6584         _internal_metadata_.unknown_fields(), target);
6585   }
6586   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumDescriptorProto)
6587   return target;
6588 }
6589 
ByteSizeLong() const6590 size_t EnumDescriptorProto::ByteSizeLong() const {
6591 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumDescriptorProto)
6592   size_t total_size = 0;
6593 
6594   if (_internal_metadata_.have_unknown_fields()) {
6595     total_size +=
6596       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
6597         _internal_metadata_.unknown_fields());
6598   }
6599   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6600   // Prevent compiler warnings about cached_has_bits being unused
6601   (void) cached_has_bits;
6602 
6603   // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
6604   {
6605     unsigned int count = static_cast<unsigned int>(this->value_size());
6606     total_size += 1UL * count;
6607     for (unsigned int i = 0; i < count; i++) {
6608       total_size +=
6609         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6610           this->value(static_cast<int>(i)));
6611     }
6612   }
6613 
6614   // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
6615   {
6616     unsigned int count = static_cast<unsigned int>(this->reserved_range_size());
6617     total_size += 1UL * count;
6618     for (unsigned int i = 0; i < count; i++) {
6619       total_size +=
6620         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6621           this->reserved_range(static_cast<int>(i)));
6622     }
6623   }
6624 
6625   // repeated string reserved_name = 5;
6626   total_size += 1 *
6627       ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->reserved_name_size());
6628   for (int i = 0, n = this->reserved_name_size(); i < n; i++) {
6629     total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6630       this->reserved_name(i));
6631   }
6632 
6633   cached_has_bits = _has_bits_[0];
6634   if (cached_has_bits & 0x00000003u) {
6635     // optional string name = 1;
6636     if (cached_has_bits & 0x00000001u) {
6637       total_size += 1 +
6638         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6639           this->name());
6640     }
6641 
6642     // optional .google.protobuf.EnumOptions options = 3;
6643     if (cached_has_bits & 0x00000002u) {
6644       total_size += 1 +
6645         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6646           *options_);
6647     }
6648 
6649   }
6650   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
6651   SetCachedSize(cached_size);
6652   return total_size;
6653 }
6654 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)6655 void EnumDescriptorProto::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6656 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumDescriptorProto)
6657   GOOGLE_DCHECK_NE(&from, this);
6658   const EnumDescriptorProto* source =
6659       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<EnumDescriptorProto>(
6660           &from);
6661   if (source == nullptr) {
6662   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.EnumDescriptorProto)
6663     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
6664   } else {
6665   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumDescriptorProto)
6666     MergeFrom(*source);
6667   }
6668 }
6669 
MergeFrom(const EnumDescriptorProto & from)6670 void EnumDescriptorProto::MergeFrom(const EnumDescriptorProto& from) {
6671 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumDescriptorProto)
6672   GOOGLE_DCHECK_NE(&from, this);
6673   _internal_metadata_.MergeFrom(from._internal_metadata_);
6674   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6675   (void) cached_has_bits;
6676 
6677   value_.MergeFrom(from.value_);
6678   reserved_range_.MergeFrom(from.reserved_range_);
6679   reserved_name_.MergeFrom(from.reserved_name_);
6680   cached_has_bits = from._has_bits_[0];
6681   if (cached_has_bits & 0x00000003u) {
6682     if (cached_has_bits & 0x00000001u) {
6683       set_name(from.name());
6684     }
6685     if (cached_has_bits & 0x00000002u) {
6686       mutable_options()->PROTOBUF_NAMESPACE_ID::EnumOptions::MergeFrom(from.options());
6687     }
6688   }
6689 }
6690 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)6691 void EnumDescriptorProto::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6692 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumDescriptorProto)
6693   if (&from == this) return;
6694   Clear();
6695   MergeFrom(from);
6696 }
6697 
CopyFrom(const EnumDescriptorProto & from)6698 void EnumDescriptorProto::CopyFrom(const EnumDescriptorProto& from) {
6699 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumDescriptorProto)
6700   if (&from == this) return;
6701   Clear();
6702   MergeFrom(from);
6703 }
6704 
IsInitialized() const6705 bool EnumDescriptorProto::IsInitialized() const {
6706   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->value())) return false;
6707   if (has_options()) {
6708     if (!this->options_->IsInitialized()) return false;
6709   }
6710   return true;
6711 }
6712 
InternalSwap(EnumDescriptorProto * other)6713 void EnumDescriptorProto::InternalSwap(EnumDescriptorProto* other) {
6714   using std::swap;
6715   _internal_metadata_.Swap(&other->_internal_metadata_);
6716   swap(_has_bits_[0], other->_has_bits_[0]);
6717   CastToBase(&value_)->InternalSwap(CastToBase(&other->value_));
6718   CastToBase(&reserved_range_)->InternalSwap(CastToBase(&other->reserved_range_));
6719   reserved_name_.InternalSwap(CastToBase(&other->reserved_name_));
6720   name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
6721     GetArenaNoVirtual());
6722   swap(options_, other->options_);
6723 }
6724 
GetMetadata() const6725 ::PROTOBUF_NAMESPACE_ID::Metadata EnumDescriptorProto::GetMetadata() const {
6726   return GetMetadataStatic();
6727 }
6728 
6729 
6730 // ===================================================================
6731 
InitAsDefaultInstance()6732 void EnumValueDescriptorProto::InitAsDefaultInstance() {
6733   PROTOBUF_NAMESPACE_ID::_EnumValueDescriptorProto_default_instance_._instance.get_mutable()->options_ = const_cast< PROTOBUF_NAMESPACE_ID::EnumValueOptions*>(
6734       PROTOBUF_NAMESPACE_ID::EnumValueOptions::internal_default_instance());
6735 }
6736 class EnumValueDescriptorProto::_Internal {
6737  public:
6738   using HasBits = decltype(std::declval<EnumValueDescriptorProto>()._has_bits_);
set_has_name(HasBits * has_bits)6739   static void set_has_name(HasBits* has_bits) {
6740     (*has_bits)[0] |= 1u;
6741   }
set_has_number(HasBits * has_bits)6742   static void set_has_number(HasBits* has_bits) {
6743     (*has_bits)[0] |= 4u;
6744   }
6745   static const PROTOBUF_NAMESPACE_ID::EnumValueOptions& options(const EnumValueDescriptorProto* msg);
set_has_options(HasBits * has_bits)6746   static void set_has_options(HasBits* has_bits) {
6747     (*has_bits)[0] |= 2u;
6748   }
6749 };
6750 
6751 const PROTOBUF_NAMESPACE_ID::EnumValueOptions&
options(const EnumValueDescriptorProto * msg)6752 EnumValueDescriptorProto::_Internal::options(const EnumValueDescriptorProto* msg) {
6753   return *msg->options_;
6754 }
unsafe_arena_set_allocated_options(PROTOBUF_NAMESPACE_ID::EnumValueOptions * options)6755 void EnumValueDescriptorProto::unsafe_arena_set_allocated_options(
6756     PROTOBUF_NAMESPACE_ID::EnumValueOptions* options) {
6757   if (GetArenaNoVirtual() == nullptr) {
6758     delete options_;
6759   }
6760   options_ = options;
6761   if (options) {
6762     _has_bits_[0] |= 0x00000002u;
6763   } else {
6764     _has_bits_[0] &= ~0x00000002u;
6765   }
6766   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.EnumValueDescriptorProto.options)
6767 }
EnumValueDescriptorProto()6768 EnumValueDescriptorProto::EnumValueDescriptorProto()
6769   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
6770   SharedCtor();
6771   // @@protoc_insertion_point(constructor:google.protobuf.EnumValueDescriptorProto)
6772 }
EnumValueDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena * arena)6773 EnumValueDescriptorProto::EnumValueDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena)
6774   : ::PROTOBUF_NAMESPACE_ID::Message(),
6775   _internal_metadata_(arena) {
6776   SharedCtor();
6777   RegisterArenaDtor(arena);
6778   // @@protoc_insertion_point(arena_constructor:google.protobuf.EnumValueDescriptorProto)
6779 }
EnumValueDescriptorProto(const EnumValueDescriptorProto & from)6780 EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProto& from)
6781   : ::PROTOBUF_NAMESPACE_ID::Message(),
6782       _internal_metadata_(nullptr),
6783       _has_bits_(from._has_bits_) {
6784   _internal_metadata_.MergeFrom(from._internal_metadata_);
6785   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
6786   if (from.has_name()) {
6787     name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name(),
6788       GetArenaNoVirtual());
6789   }
6790   if (from.has_options()) {
6791     options_ = new PROTOBUF_NAMESPACE_ID::EnumValueOptions(*from.options_);
6792   } else {
6793     options_ = nullptr;
6794   }
6795   number_ = from.number_;
6796   // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueDescriptorProto)
6797 }
6798 
SharedCtor()6799 void EnumValueDescriptorProto::SharedCtor() {
6800   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EnumValueDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base);
6801   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
6802   ::memset(&options_, 0, static_cast<size_t>(
6803       reinterpret_cast<char*>(&number_) -
6804       reinterpret_cast<char*>(&options_)) + sizeof(number_));
6805 }
6806 
~EnumValueDescriptorProto()6807 EnumValueDescriptorProto::~EnumValueDescriptorProto() {
6808   // @@protoc_insertion_point(destructor:google.protobuf.EnumValueDescriptorProto)
6809   SharedDtor();
6810 }
6811 
SharedDtor()6812 void EnumValueDescriptorProto::SharedDtor() {
6813   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
6814   name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
6815   if (this != internal_default_instance()) delete options_;
6816 }
6817 
ArenaDtor(void * object)6818 void EnumValueDescriptorProto::ArenaDtor(void* object) {
6819   EnumValueDescriptorProto* _this = reinterpret_cast< EnumValueDescriptorProto* >(object);
6820   (void)_this;
6821 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)6822 void EnumValueDescriptorProto::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
6823 }
SetCachedSize(int size) const6824 void EnumValueDescriptorProto::SetCachedSize(int size) const {
6825   _cached_size_.Set(size);
6826 }
default_instance()6827 const EnumValueDescriptorProto& EnumValueDescriptorProto::default_instance() {
6828   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EnumValueDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base);
6829   return *internal_default_instance();
6830 }
6831 
6832 
Clear()6833 void EnumValueDescriptorProto::Clear() {
6834 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueDescriptorProto)
6835   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6836   // Prevent compiler warnings about cached_has_bits being unused
6837   (void) cached_has_bits;
6838 
6839   cached_has_bits = _has_bits_[0];
6840   if (cached_has_bits & 0x00000003u) {
6841     if (cached_has_bits & 0x00000001u) {
6842       name_.ClearNonDefaultToEmpty();
6843     }
6844     if (cached_has_bits & 0x00000002u) {
6845       GOOGLE_DCHECK(options_ != nullptr);
6846       options_->Clear();
6847     }
6848   }
6849   number_ = 0;
6850   _has_bits_.Clear();
6851   _internal_metadata_.Clear();
6852 }
6853 
6854 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)6855 const char* EnumValueDescriptorProto::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
6856 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6857   _Internal::HasBits has_bits{};
6858   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
6859   while (!ctx->Done(&ptr)) {
6860     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
6861     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
6862     CHK_(ptr);
6863     switch (tag >> 3) {
6864       // optional string name = 1;
6865       case 1:
6866         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
6867           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_name(), ptr, ctx, "google.protobuf.EnumValueDescriptorProto.name");
6868           CHK_(ptr);
6869         } else goto handle_unusual;
6870         continue;
6871       // optional int32 number = 2;
6872       case 2:
6873         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
6874           _Internal::set_has_number(&has_bits);
6875           number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
6876           CHK_(ptr);
6877         } else goto handle_unusual;
6878         continue;
6879       // optional .google.protobuf.EnumValueOptions options = 3;
6880       case 3:
6881         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
6882           ptr = ctx->ParseMessage(mutable_options(), ptr);
6883           CHK_(ptr);
6884         } else goto handle_unusual;
6885         continue;
6886       default: {
6887       handle_unusual:
6888         if ((tag & 7) == 4 || tag == 0) {
6889           ctx->SetLastTag(tag);
6890           goto success;
6891         }
6892         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
6893         CHK_(ptr != nullptr);
6894         continue;
6895       }
6896     }  // switch
6897   }  // while
6898 success:
6899   _has_bits_.Or(has_bits);
6900   return ptr;
6901 failure:
6902   ptr = nullptr;
6903   goto success;
6904 #undef CHK_
6905 }
6906 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)6907 bool EnumValueDescriptorProto::MergePartialFromCodedStream(
6908     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
6909 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
6910   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
6911   // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueDescriptorProto)
6912   for (;;) {
6913     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6914     tag = p.first;
6915     if (!p.second) goto handle_unusual;
6916     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6917       // optional string name = 1;
6918       case 1: {
6919         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
6920           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
6921                 input, this->mutable_name()));
6922           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
6923             this->name().data(), static_cast<int>(this->name().length()),
6924             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
6925             "google.protobuf.EnumValueDescriptorProto.name");
6926         } else {
6927           goto handle_unusual;
6928         }
6929         break;
6930       }
6931 
6932       // optional int32 number = 2;
6933       case 2: {
6934         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
6935           _Internal::set_has_number(&_has_bits_);
6936           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
6937                    ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
6938                  input, &number_)));
6939         } else {
6940           goto handle_unusual;
6941         }
6942         break;
6943       }
6944 
6945       // optional .google.protobuf.EnumValueOptions options = 3;
6946       case 3: {
6947         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
6948           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
6949                input, mutable_options()));
6950         } else {
6951           goto handle_unusual;
6952         }
6953         break;
6954       }
6955 
6956       default: {
6957       handle_unusual:
6958         if (tag == 0) {
6959           goto success;
6960         }
6961         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
6962               input, tag, _internal_metadata_.mutable_unknown_fields()));
6963         break;
6964       }
6965     }
6966   }
6967 success:
6968   // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueDescriptorProto)
6969   return true;
6970 failure:
6971   // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueDescriptorProto)
6972   return false;
6973 #undef DO_
6974 }
6975 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6976 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const6977 void EnumValueDescriptorProto::SerializeWithCachedSizes(
6978     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
6979   // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueDescriptorProto)
6980   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6981   (void) cached_has_bits;
6982 
6983   cached_has_bits = _has_bits_[0];
6984   // optional string name = 1;
6985   if (cached_has_bits & 0x00000001u) {
6986     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
6987       this->name().data(), static_cast<int>(this->name().length()),
6988       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
6989       "google.protobuf.EnumValueDescriptorProto.name");
6990     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
6991       1, this->name(), output);
6992   }
6993 
6994   // optional int32 number = 2;
6995   if (cached_has_bits & 0x00000004u) {
6996     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(2, this->number(), output);
6997   }
6998 
6999   // optional .google.protobuf.EnumValueOptions options = 3;
7000   if (cached_has_bits & 0x00000002u) {
7001     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
7002       3, _Internal::options(this), output);
7003   }
7004 
7005   if (_internal_metadata_.have_unknown_fields()) {
7006     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
7007         _internal_metadata_.unknown_fields(), output);
7008   }
7009   // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueDescriptorProto)
7010 }
7011 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const7012 ::PROTOBUF_NAMESPACE_ID::uint8* EnumValueDescriptorProto::InternalSerializeWithCachedSizesToArray(
7013     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
7014   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueDescriptorProto)
7015   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7016   (void) cached_has_bits;
7017 
7018   cached_has_bits = _has_bits_[0];
7019   // optional string name = 1;
7020   if (cached_has_bits & 0x00000001u) {
7021     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
7022       this->name().data(), static_cast<int>(this->name().length()),
7023       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
7024       "google.protobuf.EnumValueDescriptorProto.name");
7025     target =
7026       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
7027         1, this->name(), target);
7028   }
7029 
7030   // optional int32 number = 2;
7031   if (cached_has_bits & 0x00000004u) {
7032     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->number(), target);
7033   }
7034 
7035   // optional .google.protobuf.EnumValueOptions options = 3;
7036   if (cached_has_bits & 0x00000002u) {
7037     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7038       InternalWriteMessageToArray(
7039         3, _Internal::options(this), target);
7040   }
7041 
7042   if (_internal_metadata_.have_unknown_fields()) {
7043     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
7044         _internal_metadata_.unknown_fields(), target);
7045   }
7046   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueDescriptorProto)
7047   return target;
7048 }
7049 
ByteSizeLong() const7050 size_t EnumValueDescriptorProto::ByteSizeLong() const {
7051 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueDescriptorProto)
7052   size_t total_size = 0;
7053 
7054   if (_internal_metadata_.have_unknown_fields()) {
7055     total_size +=
7056       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
7057         _internal_metadata_.unknown_fields());
7058   }
7059   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7060   // Prevent compiler warnings about cached_has_bits being unused
7061   (void) cached_has_bits;
7062 
7063   cached_has_bits = _has_bits_[0];
7064   if (cached_has_bits & 0x00000007u) {
7065     // optional string name = 1;
7066     if (cached_has_bits & 0x00000001u) {
7067       total_size += 1 +
7068         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
7069           this->name());
7070     }
7071 
7072     // optional .google.protobuf.EnumValueOptions options = 3;
7073     if (cached_has_bits & 0x00000002u) {
7074       total_size += 1 +
7075         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7076           *options_);
7077     }
7078 
7079     // optional int32 number = 2;
7080     if (cached_has_bits & 0x00000004u) {
7081       total_size += 1 +
7082         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
7083           this->number());
7084     }
7085 
7086   }
7087   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
7088   SetCachedSize(cached_size);
7089   return total_size;
7090 }
7091 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)7092 void EnumValueDescriptorProto::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7093 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumValueDescriptorProto)
7094   GOOGLE_DCHECK_NE(&from, this);
7095   const EnumValueDescriptorProto* source =
7096       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<EnumValueDescriptorProto>(
7097           &from);
7098   if (source == nullptr) {
7099   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.EnumValueDescriptorProto)
7100     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
7101   } else {
7102   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumValueDescriptorProto)
7103     MergeFrom(*source);
7104   }
7105 }
7106 
MergeFrom(const EnumValueDescriptorProto & from)7107 void EnumValueDescriptorProto::MergeFrom(const EnumValueDescriptorProto& from) {
7108 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumValueDescriptorProto)
7109   GOOGLE_DCHECK_NE(&from, this);
7110   _internal_metadata_.MergeFrom(from._internal_metadata_);
7111   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7112   (void) cached_has_bits;
7113 
7114   cached_has_bits = from._has_bits_[0];
7115   if (cached_has_bits & 0x00000007u) {
7116     if (cached_has_bits & 0x00000001u) {
7117       set_name(from.name());
7118     }
7119     if (cached_has_bits & 0x00000002u) {
7120       mutable_options()->PROTOBUF_NAMESPACE_ID::EnumValueOptions::MergeFrom(from.options());
7121     }
7122     if (cached_has_bits & 0x00000004u) {
7123       number_ = from.number_;
7124     }
7125     _has_bits_[0] |= cached_has_bits;
7126   }
7127 }
7128 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)7129 void EnumValueDescriptorProto::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7130 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValueDescriptorProto)
7131   if (&from == this) return;
7132   Clear();
7133   MergeFrom(from);
7134 }
7135 
CopyFrom(const EnumValueDescriptorProto & from)7136 void EnumValueDescriptorProto::CopyFrom(const EnumValueDescriptorProto& from) {
7137 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumValueDescriptorProto)
7138   if (&from == this) return;
7139   Clear();
7140   MergeFrom(from);
7141 }
7142 
IsInitialized() const7143 bool EnumValueDescriptorProto::IsInitialized() const {
7144   if (has_options()) {
7145     if (!this->options_->IsInitialized()) return false;
7146   }
7147   return true;
7148 }
7149 
InternalSwap(EnumValueDescriptorProto * other)7150 void EnumValueDescriptorProto::InternalSwap(EnumValueDescriptorProto* other) {
7151   using std::swap;
7152   _internal_metadata_.Swap(&other->_internal_metadata_);
7153   swap(_has_bits_[0], other->_has_bits_[0]);
7154   name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
7155     GetArenaNoVirtual());
7156   swap(options_, other->options_);
7157   swap(number_, other->number_);
7158 }
7159 
GetMetadata() const7160 ::PROTOBUF_NAMESPACE_ID::Metadata EnumValueDescriptorProto::GetMetadata() const {
7161   return GetMetadataStatic();
7162 }
7163 
7164 
7165 // ===================================================================
7166 
InitAsDefaultInstance()7167 void ServiceDescriptorProto::InitAsDefaultInstance() {
7168   PROTOBUF_NAMESPACE_ID::_ServiceDescriptorProto_default_instance_._instance.get_mutable()->options_ = const_cast< PROTOBUF_NAMESPACE_ID::ServiceOptions*>(
7169       PROTOBUF_NAMESPACE_ID::ServiceOptions::internal_default_instance());
7170 }
7171 class ServiceDescriptorProto::_Internal {
7172  public:
7173   using HasBits = decltype(std::declval<ServiceDescriptorProto>()._has_bits_);
set_has_name(HasBits * has_bits)7174   static void set_has_name(HasBits* has_bits) {
7175     (*has_bits)[0] |= 1u;
7176   }
7177   static const PROTOBUF_NAMESPACE_ID::ServiceOptions& options(const ServiceDescriptorProto* msg);
set_has_options(HasBits * has_bits)7178   static void set_has_options(HasBits* has_bits) {
7179     (*has_bits)[0] |= 2u;
7180   }
7181 };
7182 
7183 const PROTOBUF_NAMESPACE_ID::ServiceOptions&
options(const ServiceDescriptorProto * msg)7184 ServiceDescriptorProto::_Internal::options(const ServiceDescriptorProto* msg) {
7185   return *msg->options_;
7186 }
unsafe_arena_set_allocated_options(PROTOBUF_NAMESPACE_ID::ServiceOptions * options)7187 void ServiceDescriptorProto::unsafe_arena_set_allocated_options(
7188     PROTOBUF_NAMESPACE_ID::ServiceOptions* options) {
7189   if (GetArenaNoVirtual() == nullptr) {
7190     delete options_;
7191   }
7192   options_ = options;
7193   if (options) {
7194     _has_bits_[0] |= 0x00000002u;
7195   } else {
7196     _has_bits_[0] &= ~0x00000002u;
7197   }
7198   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.ServiceDescriptorProto.options)
7199 }
ServiceDescriptorProto()7200 ServiceDescriptorProto::ServiceDescriptorProto()
7201   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
7202   SharedCtor();
7203   // @@protoc_insertion_point(constructor:google.protobuf.ServiceDescriptorProto)
7204 }
ServiceDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena * arena)7205 ServiceDescriptorProto::ServiceDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena)
7206   : ::PROTOBUF_NAMESPACE_ID::Message(),
7207   _internal_metadata_(arena),
7208   method_(arena) {
7209   SharedCtor();
7210   RegisterArenaDtor(arena);
7211   // @@protoc_insertion_point(arena_constructor:google.protobuf.ServiceDescriptorProto)
7212 }
ServiceDescriptorProto(const ServiceDescriptorProto & from)7213 ServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& from)
7214   : ::PROTOBUF_NAMESPACE_ID::Message(),
7215       _internal_metadata_(nullptr),
7216       _has_bits_(from._has_bits_),
7217       method_(from.method_) {
7218   _internal_metadata_.MergeFrom(from._internal_metadata_);
7219   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7220   if (from.has_name()) {
7221     name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name(),
7222       GetArenaNoVirtual());
7223   }
7224   if (from.has_options()) {
7225     options_ = new PROTOBUF_NAMESPACE_ID::ServiceOptions(*from.options_);
7226   } else {
7227     options_ = nullptr;
7228   }
7229   // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceDescriptorProto)
7230 }
7231 
SharedCtor()7232 void ServiceDescriptorProto::SharedCtor() {
7233   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ServiceDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base);
7234   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7235   options_ = nullptr;
7236 }
7237 
~ServiceDescriptorProto()7238 ServiceDescriptorProto::~ServiceDescriptorProto() {
7239   // @@protoc_insertion_point(destructor:google.protobuf.ServiceDescriptorProto)
7240   SharedDtor();
7241 }
7242 
SharedDtor()7243 void ServiceDescriptorProto::SharedDtor() {
7244   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
7245   name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7246   if (this != internal_default_instance()) delete options_;
7247 }
7248 
ArenaDtor(void * object)7249 void ServiceDescriptorProto::ArenaDtor(void* object) {
7250   ServiceDescriptorProto* _this = reinterpret_cast< ServiceDescriptorProto* >(object);
7251   (void)_this;
7252 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)7253 void ServiceDescriptorProto::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
7254 }
SetCachedSize(int size) const7255 void ServiceDescriptorProto::SetCachedSize(int size) const {
7256   _cached_size_.Set(size);
7257 }
default_instance()7258 const ServiceDescriptorProto& ServiceDescriptorProto::default_instance() {
7259   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ServiceDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base);
7260   return *internal_default_instance();
7261 }
7262 
7263 
Clear()7264 void ServiceDescriptorProto::Clear() {
7265 // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceDescriptorProto)
7266   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7267   // Prevent compiler warnings about cached_has_bits being unused
7268   (void) cached_has_bits;
7269 
7270   method_.Clear();
7271   cached_has_bits = _has_bits_[0];
7272   if (cached_has_bits & 0x00000003u) {
7273     if (cached_has_bits & 0x00000001u) {
7274       name_.ClearNonDefaultToEmpty();
7275     }
7276     if (cached_has_bits & 0x00000002u) {
7277       GOOGLE_DCHECK(options_ != nullptr);
7278       options_->Clear();
7279     }
7280   }
7281   _has_bits_.Clear();
7282   _internal_metadata_.Clear();
7283 }
7284 
7285 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)7286 const char* ServiceDescriptorProto::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
7287 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7288   _Internal::HasBits has_bits{};
7289   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
7290   while (!ctx->Done(&ptr)) {
7291     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7292     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
7293     CHK_(ptr);
7294     switch (tag >> 3) {
7295       // optional string name = 1;
7296       case 1:
7297         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
7298           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_name(), ptr, ctx, "google.protobuf.ServiceDescriptorProto.name");
7299           CHK_(ptr);
7300         } else goto handle_unusual;
7301         continue;
7302       // repeated .google.protobuf.MethodDescriptorProto method = 2;
7303       case 2:
7304         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
7305           ptr -= 1;
7306           do {
7307             ptr += 1;
7308             ptr = ctx->ParseMessage(add_method(), ptr);
7309             CHK_(ptr);
7310             if (!ctx->DataAvailable(ptr)) break;
7311           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
7312         } else goto handle_unusual;
7313         continue;
7314       // optional .google.protobuf.ServiceOptions options = 3;
7315       case 3:
7316         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
7317           ptr = ctx->ParseMessage(mutable_options(), ptr);
7318           CHK_(ptr);
7319         } else goto handle_unusual;
7320         continue;
7321       default: {
7322       handle_unusual:
7323         if ((tag & 7) == 4 || tag == 0) {
7324           ctx->SetLastTag(tag);
7325           goto success;
7326         }
7327         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
7328         CHK_(ptr != nullptr);
7329         continue;
7330       }
7331     }  // switch
7332   }  // while
7333 success:
7334   _has_bits_.Or(has_bits);
7335   return ptr;
7336 failure:
7337   ptr = nullptr;
7338   goto success;
7339 #undef CHK_
7340 }
7341 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)7342 bool ServiceDescriptorProto::MergePartialFromCodedStream(
7343     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
7344 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
7345   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7346   // @@protoc_insertion_point(parse_start:google.protobuf.ServiceDescriptorProto)
7347   for (;;) {
7348     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7349     tag = p.first;
7350     if (!p.second) goto handle_unusual;
7351     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7352       // optional string name = 1;
7353       case 1: {
7354         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
7355           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
7356                 input, this->mutable_name()));
7357           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
7358             this->name().data(), static_cast<int>(this->name().length()),
7359             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
7360             "google.protobuf.ServiceDescriptorProto.name");
7361         } else {
7362           goto handle_unusual;
7363         }
7364         break;
7365       }
7366 
7367       // repeated .google.protobuf.MethodDescriptorProto method = 2;
7368       case 2: {
7369         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
7370           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
7371                 input, add_method()));
7372         } else {
7373           goto handle_unusual;
7374         }
7375         break;
7376       }
7377 
7378       // optional .google.protobuf.ServiceOptions options = 3;
7379       case 3: {
7380         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
7381           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
7382                input, mutable_options()));
7383         } else {
7384           goto handle_unusual;
7385         }
7386         break;
7387       }
7388 
7389       default: {
7390       handle_unusual:
7391         if (tag == 0) {
7392           goto success;
7393         }
7394         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
7395               input, tag, _internal_metadata_.mutable_unknown_fields()));
7396         break;
7397       }
7398     }
7399   }
7400 success:
7401   // @@protoc_insertion_point(parse_success:google.protobuf.ServiceDescriptorProto)
7402   return true;
7403 failure:
7404   // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceDescriptorProto)
7405   return false;
7406 #undef DO_
7407 }
7408 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7409 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const7410 void ServiceDescriptorProto::SerializeWithCachedSizes(
7411     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
7412   // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceDescriptorProto)
7413   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7414   (void) cached_has_bits;
7415 
7416   cached_has_bits = _has_bits_[0];
7417   // optional string name = 1;
7418   if (cached_has_bits & 0x00000001u) {
7419     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
7420       this->name().data(), static_cast<int>(this->name().length()),
7421       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
7422       "google.protobuf.ServiceDescriptorProto.name");
7423     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
7424       1, this->name(), output);
7425   }
7426 
7427   // repeated .google.protobuf.MethodDescriptorProto method = 2;
7428   for (unsigned int i = 0,
7429       n = static_cast<unsigned int>(this->method_size()); i < n; i++) {
7430     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
7431       2,
7432       this->method(static_cast<int>(i)),
7433       output);
7434   }
7435 
7436   // optional .google.protobuf.ServiceOptions options = 3;
7437   if (cached_has_bits & 0x00000002u) {
7438     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
7439       3, _Internal::options(this), output);
7440   }
7441 
7442   if (_internal_metadata_.have_unknown_fields()) {
7443     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
7444         _internal_metadata_.unknown_fields(), output);
7445   }
7446   // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceDescriptorProto)
7447 }
7448 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const7449 ::PROTOBUF_NAMESPACE_ID::uint8* ServiceDescriptorProto::InternalSerializeWithCachedSizesToArray(
7450     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
7451   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceDescriptorProto)
7452   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7453   (void) cached_has_bits;
7454 
7455   cached_has_bits = _has_bits_[0];
7456   // optional string name = 1;
7457   if (cached_has_bits & 0x00000001u) {
7458     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
7459       this->name().data(), static_cast<int>(this->name().length()),
7460       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
7461       "google.protobuf.ServiceDescriptorProto.name");
7462     target =
7463       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
7464         1, this->name(), target);
7465   }
7466 
7467   // repeated .google.protobuf.MethodDescriptorProto method = 2;
7468   for (unsigned int i = 0,
7469       n = static_cast<unsigned int>(this->method_size()); i < n; i++) {
7470     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7471       InternalWriteMessageToArray(
7472         2, this->method(static_cast<int>(i)), target);
7473   }
7474 
7475   // optional .google.protobuf.ServiceOptions options = 3;
7476   if (cached_has_bits & 0x00000002u) {
7477     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7478       InternalWriteMessageToArray(
7479         3, _Internal::options(this), target);
7480   }
7481 
7482   if (_internal_metadata_.have_unknown_fields()) {
7483     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
7484         _internal_metadata_.unknown_fields(), target);
7485   }
7486   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceDescriptorProto)
7487   return target;
7488 }
7489 
ByteSizeLong() const7490 size_t ServiceDescriptorProto::ByteSizeLong() const {
7491 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceDescriptorProto)
7492   size_t total_size = 0;
7493 
7494   if (_internal_metadata_.have_unknown_fields()) {
7495     total_size +=
7496       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
7497         _internal_metadata_.unknown_fields());
7498   }
7499   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7500   // Prevent compiler warnings about cached_has_bits being unused
7501   (void) cached_has_bits;
7502 
7503   // repeated .google.protobuf.MethodDescriptorProto method = 2;
7504   {
7505     unsigned int count = static_cast<unsigned int>(this->method_size());
7506     total_size += 1UL * count;
7507     for (unsigned int i = 0; i < count; i++) {
7508       total_size +=
7509         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7510           this->method(static_cast<int>(i)));
7511     }
7512   }
7513 
7514   cached_has_bits = _has_bits_[0];
7515   if (cached_has_bits & 0x00000003u) {
7516     // optional string name = 1;
7517     if (cached_has_bits & 0x00000001u) {
7518       total_size += 1 +
7519         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
7520           this->name());
7521     }
7522 
7523     // optional .google.protobuf.ServiceOptions options = 3;
7524     if (cached_has_bits & 0x00000002u) {
7525       total_size += 1 +
7526         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7527           *options_);
7528     }
7529 
7530   }
7531   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
7532   SetCachedSize(cached_size);
7533   return total_size;
7534 }
7535 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)7536 void ServiceDescriptorProto::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7537 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.ServiceDescriptorProto)
7538   GOOGLE_DCHECK_NE(&from, this);
7539   const ServiceDescriptorProto* source =
7540       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ServiceDescriptorProto>(
7541           &from);
7542   if (source == nullptr) {
7543   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.ServiceDescriptorProto)
7544     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
7545   } else {
7546   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.ServiceDescriptorProto)
7547     MergeFrom(*source);
7548   }
7549 }
7550 
MergeFrom(const ServiceDescriptorProto & from)7551 void ServiceDescriptorProto::MergeFrom(const ServiceDescriptorProto& from) {
7552 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.ServiceDescriptorProto)
7553   GOOGLE_DCHECK_NE(&from, this);
7554   _internal_metadata_.MergeFrom(from._internal_metadata_);
7555   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7556   (void) cached_has_bits;
7557 
7558   method_.MergeFrom(from.method_);
7559   cached_has_bits = from._has_bits_[0];
7560   if (cached_has_bits & 0x00000003u) {
7561     if (cached_has_bits & 0x00000001u) {
7562       set_name(from.name());
7563     }
7564     if (cached_has_bits & 0x00000002u) {
7565       mutable_options()->PROTOBUF_NAMESPACE_ID::ServiceOptions::MergeFrom(from.options());
7566     }
7567   }
7568 }
7569 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)7570 void ServiceDescriptorProto::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7571 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceDescriptorProto)
7572   if (&from == this) return;
7573   Clear();
7574   MergeFrom(from);
7575 }
7576 
CopyFrom(const ServiceDescriptorProto & from)7577 void ServiceDescriptorProto::CopyFrom(const ServiceDescriptorProto& from) {
7578 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.ServiceDescriptorProto)
7579   if (&from == this) return;
7580   Clear();
7581   MergeFrom(from);
7582 }
7583 
IsInitialized() const7584 bool ServiceDescriptorProto::IsInitialized() const {
7585   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->method())) return false;
7586   if (has_options()) {
7587     if (!this->options_->IsInitialized()) return false;
7588   }
7589   return true;
7590 }
7591 
InternalSwap(ServiceDescriptorProto * other)7592 void ServiceDescriptorProto::InternalSwap(ServiceDescriptorProto* other) {
7593   using std::swap;
7594   _internal_metadata_.Swap(&other->_internal_metadata_);
7595   swap(_has_bits_[0], other->_has_bits_[0]);
7596   CastToBase(&method_)->InternalSwap(CastToBase(&other->method_));
7597   name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
7598     GetArenaNoVirtual());
7599   swap(options_, other->options_);
7600 }
7601 
GetMetadata() const7602 ::PROTOBUF_NAMESPACE_ID::Metadata ServiceDescriptorProto::GetMetadata() const {
7603   return GetMetadataStatic();
7604 }
7605 
7606 
7607 // ===================================================================
7608 
InitAsDefaultInstance()7609 void MethodDescriptorProto::InitAsDefaultInstance() {
7610   PROTOBUF_NAMESPACE_ID::_MethodDescriptorProto_default_instance_._instance.get_mutable()->options_ = const_cast< PROTOBUF_NAMESPACE_ID::MethodOptions*>(
7611       PROTOBUF_NAMESPACE_ID::MethodOptions::internal_default_instance());
7612 }
7613 class MethodDescriptorProto::_Internal {
7614  public:
7615   using HasBits = decltype(std::declval<MethodDescriptorProto>()._has_bits_);
set_has_name(HasBits * has_bits)7616   static void set_has_name(HasBits* has_bits) {
7617     (*has_bits)[0] |= 1u;
7618   }
set_has_input_type(HasBits * has_bits)7619   static void set_has_input_type(HasBits* has_bits) {
7620     (*has_bits)[0] |= 2u;
7621   }
set_has_output_type(HasBits * has_bits)7622   static void set_has_output_type(HasBits* has_bits) {
7623     (*has_bits)[0] |= 4u;
7624   }
7625   static const PROTOBUF_NAMESPACE_ID::MethodOptions& options(const MethodDescriptorProto* msg);
set_has_options(HasBits * has_bits)7626   static void set_has_options(HasBits* has_bits) {
7627     (*has_bits)[0] |= 8u;
7628   }
set_has_client_streaming(HasBits * has_bits)7629   static void set_has_client_streaming(HasBits* has_bits) {
7630     (*has_bits)[0] |= 16u;
7631   }
set_has_server_streaming(HasBits * has_bits)7632   static void set_has_server_streaming(HasBits* has_bits) {
7633     (*has_bits)[0] |= 32u;
7634   }
7635 };
7636 
7637 const PROTOBUF_NAMESPACE_ID::MethodOptions&
options(const MethodDescriptorProto * msg)7638 MethodDescriptorProto::_Internal::options(const MethodDescriptorProto* msg) {
7639   return *msg->options_;
7640 }
unsafe_arena_set_allocated_options(PROTOBUF_NAMESPACE_ID::MethodOptions * options)7641 void MethodDescriptorProto::unsafe_arena_set_allocated_options(
7642     PROTOBUF_NAMESPACE_ID::MethodOptions* options) {
7643   if (GetArenaNoVirtual() == nullptr) {
7644     delete options_;
7645   }
7646   options_ = options;
7647   if (options) {
7648     _has_bits_[0] |= 0x00000008u;
7649   } else {
7650     _has_bits_[0] &= ~0x00000008u;
7651   }
7652   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.MethodDescriptorProto.options)
7653 }
MethodDescriptorProto()7654 MethodDescriptorProto::MethodDescriptorProto()
7655   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
7656   SharedCtor();
7657   // @@protoc_insertion_point(constructor:google.protobuf.MethodDescriptorProto)
7658 }
MethodDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena * arena)7659 MethodDescriptorProto::MethodDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena)
7660   : ::PROTOBUF_NAMESPACE_ID::Message(),
7661   _internal_metadata_(arena) {
7662   SharedCtor();
7663   RegisterArenaDtor(arena);
7664   // @@protoc_insertion_point(arena_constructor:google.protobuf.MethodDescriptorProto)
7665 }
MethodDescriptorProto(const MethodDescriptorProto & from)7666 MethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from)
7667   : ::PROTOBUF_NAMESPACE_ID::Message(),
7668       _internal_metadata_(nullptr),
7669       _has_bits_(from._has_bits_) {
7670   _internal_metadata_.MergeFrom(from._internal_metadata_);
7671   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7672   if (from.has_name()) {
7673     name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name(),
7674       GetArenaNoVirtual());
7675   }
7676   input_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7677   if (from.has_input_type()) {
7678     input_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.input_type(),
7679       GetArenaNoVirtual());
7680   }
7681   output_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7682   if (from.has_output_type()) {
7683     output_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.output_type(),
7684       GetArenaNoVirtual());
7685   }
7686   if (from.has_options()) {
7687     options_ = new PROTOBUF_NAMESPACE_ID::MethodOptions(*from.options_);
7688   } else {
7689     options_ = nullptr;
7690   }
7691   ::memcpy(&client_streaming_, &from.client_streaming_,
7692     static_cast<size_t>(reinterpret_cast<char*>(&server_streaming_) -
7693     reinterpret_cast<char*>(&client_streaming_)) + sizeof(server_streaming_));
7694   // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodDescriptorProto)
7695 }
7696 
SharedCtor()7697 void MethodDescriptorProto::SharedCtor() {
7698   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MethodDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base);
7699   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7700   input_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7701   output_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7702   ::memset(&options_, 0, static_cast<size_t>(
7703       reinterpret_cast<char*>(&server_streaming_) -
7704       reinterpret_cast<char*>(&options_)) + sizeof(server_streaming_));
7705 }
7706 
~MethodDescriptorProto()7707 MethodDescriptorProto::~MethodDescriptorProto() {
7708   // @@protoc_insertion_point(destructor:google.protobuf.MethodDescriptorProto)
7709   SharedDtor();
7710 }
7711 
SharedDtor()7712 void MethodDescriptorProto::SharedDtor() {
7713   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
7714   name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7715   input_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7716   output_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7717   if (this != internal_default_instance()) delete options_;
7718 }
7719 
ArenaDtor(void * object)7720 void MethodDescriptorProto::ArenaDtor(void* object) {
7721   MethodDescriptorProto* _this = reinterpret_cast< MethodDescriptorProto* >(object);
7722   (void)_this;
7723 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)7724 void MethodDescriptorProto::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
7725 }
SetCachedSize(int size) const7726 void MethodDescriptorProto::SetCachedSize(int size) const {
7727   _cached_size_.Set(size);
7728 }
default_instance()7729 const MethodDescriptorProto& MethodDescriptorProto::default_instance() {
7730   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MethodDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base);
7731   return *internal_default_instance();
7732 }
7733 
7734 
Clear()7735 void MethodDescriptorProto::Clear() {
7736 // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodDescriptorProto)
7737   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7738   // Prevent compiler warnings about cached_has_bits being unused
7739   (void) cached_has_bits;
7740 
7741   cached_has_bits = _has_bits_[0];
7742   if (cached_has_bits & 0x0000000fu) {
7743     if (cached_has_bits & 0x00000001u) {
7744       name_.ClearNonDefaultToEmpty();
7745     }
7746     if (cached_has_bits & 0x00000002u) {
7747       input_type_.ClearNonDefaultToEmpty();
7748     }
7749     if (cached_has_bits & 0x00000004u) {
7750       output_type_.ClearNonDefaultToEmpty();
7751     }
7752     if (cached_has_bits & 0x00000008u) {
7753       GOOGLE_DCHECK(options_ != nullptr);
7754       options_->Clear();
7755     }
7756   }
7757   ::memset(&client_streaming_, 0, static_cast<size_t>(
7758       reinterpret_cast<char*>(&server_streaming_) -
7759       reinterpret_cast<char*>(&client_streaming_)) + sizeof(server_streaming_));
7760   _has_bits_.Clear();
7761   _internal_metadata_.Clear();
7762 }
7763 
7764 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)7765 const char* MethodDescriptorProto::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
7766 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7767   _Internal::HasBits has_bits{};
7768   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
7769   while (!ctx->Done(&ptr)) {
7770     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7771     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
7772     CHK_(ptr);
7773     switch (tag >> 3) {
7774       // optional string name = 1;
7775       case 1:
7776         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
7777           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_name(), ptr, ctx, "google.protobuf.MethodDescriptorProto.name");
7778           CHK_(ptr);
7779         } else goto handle_unusual;
7780         continue;
7781       // optional string input_type = 2;
7782       case 2:
7783         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
7784           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_input_type(), ptr, ctx, "google.protobuf.MethodDescriptorProto.input_type");
7785           CHK_(ptr);
7786         } else goto handle_unusual;
7787         continue;
7788       // optional string output_type = 3;
7789       case 3:
7790         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
7791           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_output_type(), ptr, ctx, "google.protobuf.MethodDescriptorProto.output_type");
7792           CHK_(ptr);
7793         } else goto handle_unusual;
7794         continue;
7795       // optional .google.protobuf.MethodOptions options = 4;
7796       case 4:
7797         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
7798           ptr = ctx->ParseMessage(mutable_options(), ptr);
7799           CHK_(ptr);
7800         } else goto handle_unusual;
7801         continue;
7802       // optional bool client_streaming = 5 [default = false];
7803       case 5:
7804         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
7805           _Internal::set_has_client_streaming(&has_bits);
7806           client_streaming_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
7807           CHK_(ptr);
7808         } else goto handle_unusual;
7809         continue;
7810       // optional bool server_streaming = 6 [default = false];
7811       case 6:
7812         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
7813           _Internal::set_has_server_streaming(&has_bits);
7814           server_streaming_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
7815           CHK_(ptr);
7816         } else goto handle_unusual;
7817         continue;
7818       default: {
7819       handle_unusual:
7820         if ((tag & 7) == 4 || tag == 0) {
7821           ctx->SetLastTag(tag);
7822           goto success;
7823         }
7824         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
7825         CHK_(ptr != nullptr);
7826         continue;
7827       }
7828     }  // switch
7829   }  // while
7830 success:
7831   _has_bits_.Or(has_bits);
7832   return ptr;
7833 failure:
7834   ptr = nullptr;
7835   goto success;
7836 #undef CHK_
7837 }
7838 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)7839 bool MethodDescriptorProto::MergePartialFromCodedStream(
7840     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
7841 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
7842   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7843   // @@protoc_insertion_point(parse_start:google.protobuf.MethodDescriptorProto)
7844   for (;;) {
7845     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7846     tag = p.first;
7847     if (!p.second) goto handle_unusual;
7848     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7849       // optional string name = 1;
7850       case 1: {
7851         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
7852           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
7853                 input, this->mutable_name()));
7854           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
7855             this->name().data(), static_cast<int>(this->name().length()),
7856             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
7857             "google.protobuf.MethodDescriptorProto.name");
7858         } else {
7859           goto handle_unusual;
7860         }
7861         break;
7862       }
7863 
7864       // optional string input_type = 2;
7865       case 2: {
7866         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
7867           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
7868                 input, this->mutable_input_type()));
7869           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
7870             this->input_type().data(), static_cast<int>(this->input_type().length()),
7871             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
7872             "google.protobuf.MethodDescriptorProto.input_type");
7873         } else {
7874           goto handle_unusual;
7875         }
7876         break;
7877       }
7878 
7879       // optional string output_type = 3;
7880       case 3: {
7881         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
7882           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
7883                 input, this->mutable_output_type()));
7884           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
7885             this->output_type().data(), static_cast<int>(this->output_type().length()),
7886             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
7887             "google.protobuf.MethodDescriptorProto.output_type");
7888         } else {
7889           goto handle_unusual;
7890         }
7891         break;
7892       }
7893 
7894       // optional .google.protobuf.MethodOptions options = 4;
7895       case 4: {
7896         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
7897           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
7898                input, mutable_options()));
7899         } else {
7900           goto handle_unusual;
7901         }
7902         break;
7903       }
7904 
7905       // optional bool client_streaming = 5 [default = false];
7906       case 5: {
7907         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
7908           _Internal::set_has_client_streaming(&_has_bits_);
7909           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
7910                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
7911                  input, &client_streaming_)));
7912         } else {
7913           goto handle_unusual;
7914         }
7915         break;
7916       }
7917 
7918       // optional bool server_streaming = 6 [default = false];
7919       case 6: {
7920         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) {
7921           _Internal::set_has_server_streaming(&_has_bits_);
7922           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
7923                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
7924                  input, &server_streaming_)));
7925         } else {
7926           goto handle_unusual;
7927         }
7928         break;
7929       }
7930 
7931       default: {
7932       handle_unusual:
7933         if (tag == 0) {
7934           goto success;
7935         }
7936         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
7937               input, tag, _internal_metadata_.mutable_unknown_fields()));
7938         break;
7939       }
7940     }
7941   }
7942 success:
7943   // @@protoc_insertion_point(parse_success:google.protobuf.MethodDescriptorProto)
7944   return true;
7945 failure:
7946   // @@protoc_insertion_point(parse_failure:google.protobuf.MethodDescriptorProto)
7947   return false;
7948 #undef DO_
7949 }
7950 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7951 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const7952 void MethodDescriptorProto::SerializeWithCachedSizes(
7953     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
7954   // @@protoc_insertion_point(serialize_start:google.protobuf.MethodDescriptorProto)
7955   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7956   (void) cached_has_bits;
7957 
7958   cached_has_bits = _has_bits_[0];
7959   // optional string name = 1;
7960   if (cached_has_bits & 0x00000001u) {
7961     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
7962       this->name().data(), static_cast<int>(this->name().length()),
7963       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
7964       "google.protobuf.MethodDescriptorProto.name");
7965     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
7966       1, this->name(), output);
7967   }
7968 
7969   // optional string input_type = 2;
7970   if (cached_has_bits & 0x00000002u) {
7971     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
7972       this->input_type().data(), static_cast<int>(this->input_type().length()),
7973       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
7974       "google.protobuf.MethodDescriptorProto.input_type");
7975     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
7976       2, this->input_type(), output);
7977   }
7978 
7979   // optional string output_type = 3;
7980   if (cached_has_bits & 0x00000004u) {
7981     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
7982       this->output_type().data(), static_cast<int>(this->output_type().length()),
7983       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
7984       "google.protobuf.MethodDescriptorProto.output_type");
7985     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
7986       3, this->output_type(), output);
7987   }
7988 
7989   // optional .google.protobuf.MethodOptions options = 4;
7990   if (cached_has_bits & 0x00000008u) {
7991     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
7992       4, _Internal::options(this), output);
7993   }
7994 
7995   // optional bool client_streaming = 5 [default = false];
7996   if (cached_has_bits & 0x00000010u) {
7997     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(5, this->client_streaming(), output);
7998   }
7999 
8000   // optional bool server_streaming = 6 [default = false];
8001   if (cached_has_bits & 0x00000020u) {
8002     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(6, this->server_streaming(), output);
8003   }
8004 
8005   if (_internal_metadata_.have_unknown_fields()) {
8006     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
8007         _internal_metadata_.unknown_fields(), output);
8008   }
8009   // @@protoc_insertion_point(serialize_end:google.protobuf.MethodDescriptorProto)
8010 }
8011 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const8012 ::PROTOBUF_NAMESPACE_ID::uint8* MethodDescriptorProto::InternalSerializeWithCachedSizesToArray(
8013     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
8014   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodDescriptorProto)
8015   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8016   (void) cached_has_bits;
8017 
8018   cached_has_bits = _has_bits_[0];
8019   // optional string name = 1;
8020   if (cached_has_bits & 0x00000001u) {
8021     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
8022       this->name().data(), static_cast<int>(this->name().length()),
8023       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
8024       "google.protobuf.MethodDescriptorProto.name");
8025     target =
8026       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
8027         1, this->name(), target);
8028   }
8029 
8030   // optional string input_type = 2;
8031   if (cached_has_bits & 0x00000002u) {
8032     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
8033       this->input_type().data(), static_cast<int>(this->input_type().length()),
8034       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
8035       "google.protobuf.MethodDescriptorProto.input_type");
8036     target =
8037       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
8038         2, this->input_type(), target);
8039   }
8040 
8041   // optional string output_type = 3;
8042   if (cached_has_bits & 0x00000004u) {
8043     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
8044       this->output_type().data(), static_cast<int>(this->output_type().length()),
8045       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
8046       "google.protobuf.MethodDescriptorProto.output_type");
8047     target =
8048       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
8049         3, this->output_type(), target);
8050   }
8051 
8052   // optional .google.protobuf.MethodOptions options = 4;
8053   if (cached_has_bits & 0x00000008u) {
8054     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8055       InternalWriteMessageToArray(
8056         4, _Internal::options(this), target);
8057   }
8058 
8059   // optional bool client_streaming = 5 [default = false];
8060   if (cached_has_bits & 0x00000010u) {
8061     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->client_streaming(), target);
8062   }
8063 
8064   // optional bool server_streaming = 6 [default = false];
8065   if (cached_has_bits & 0x00000020u) {
8066     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->server_streaming(), target);
8067   }
8068 
8069   if (_internal_metadata_.have_unknown_fields()) {
8070     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
8071         _internal_metadata_.unknown_fields(), target);
8072   }
8073   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodDescriptorProto)
8074   return target;
8075 }
8076 
ByteSizeLong() const8077 size_t MethodDescriptorProto::ByteSizeLong() const {
8078 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodDescriptorProto)
8079   size_t total_size = 0;
8080 
8081   if (_internal_metadata_.have_unknown_fields()) {
8082     total_size +=
8083       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
8084         _internal_metadata_.unknown_fields());
8085   }
8086   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8087   // Prevent compiler warnings about cached_has_bits being unused
8088   (void) cached_has_bits;
8089 
8090   cached_has_bits = _has_bits_[0];
8091   if (cached_has_bits & 0x0000003fu) {
8092     // optional string name = 1;
8093     if (cached_has_bits & 0x00000001u) {
8094       total_size += 1 +
8095         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
8096           this->name());
8097     }
8098 
8099     // optional string input_type = 2;
8100     if (cached_has_bits & 0x00000002u) {
8101       total_size += 1 +
8102         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
8103           this->input_type());
8104     }
8105 
8106     // optional string output_type = 3;
8107     if (cached_has_bits & 0x00000004u) {
8108       total_size += 1 +
8109         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
8110           this->output_type());
8111     }
8112 
8113     // optional .google.protobuf.MethodOptions options = 4;
8114     if (cached_has_bits & 0x00000008u) {
8115       total_size += 1 +
8116         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
8117           *options_);
8118     }
8119 
8120     // optional bool client_streaming = 5 [default = false];
8121     if (cached_has_bits & 0x00000010u) {
8122       total_size += 1 + 1;
8123     }
8124 
8125     // optional bool server_streaming = 6 [default = false];
8126     if (cached_has_bits & 0x00000020u) {
8127       total_size += 1 + 1;
8128     }
8129 
8130   }
8131   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
8132   SetCachedSize(cached_size);
8133   return total_size;
8134 }
8135 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)8136 void MethodDescriptorProto::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8137 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodDescriptorProto)
8138   GOOGLE_DCHECK_NE(&from, this);
8139   const MethodDescriptorProto* source =
8140       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MethodDescriptorProto>(
8141           &from);
8142   if (source == nullptr) {
8143   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.MethodDescriptorProto)
8144     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
8145   } else {
8146   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.MethodDescriptorProto)
8147     MergeFrom(*source);
8148   }
8149 }
8150 
MergeFrom(const MethodDescriptorProto & from)8151 void MethodDescriptorProto::MergeFrom(const MethodDescriptorProto& from) {
8152 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.MethodDescriptorProto)
8153   GOOGLE_DCHECK_NE(&from, this);
8154   _internal_metadata_.MergeFrom(from._internal_metadata_);
8155   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8156   (void) cached_has_bits;
8157 
8158   cached_has_bits = from._has_bits_[0];
8159   if (cached_has_bits & 0x0000003fu) {
8160     if (cached_has_bits & 0x00000001u) {
8161       set_name(from.name());
8162     }
8163     if (cached_has_bits & 0x00000002u) {
8164       set_input_type(from.input_type());
8165     }
8166     if (cached_has_bits & 0x00000004u) {
8167       set_output_type(from.output_type());
8168     }
8169     if (cached_has_bits & 0x00000008u) {
8170       mutable_options()->PROTOBUF_NAMESPACE_ID::MethodOptions::MergeFrom(from.options());
8171     }
8172     if (cached_has_bits & 0x00000010u) {
8173       client_streaming_ = from.client_streaming_;
8174     }
8175     if (cached_has_bits & 0x00000020u) {
8176       server_streaming_ = from.server_streaming_;
8177     }
8178     _has_bits_[0] |= cached_has_bits;
8179   }
8180 }
8181 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)8182 void MethodDescriptorProto::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8183 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodDescriptorProto)
8184   if (&from == this) return;
8185   Clear();
8186   MergeFrom(from);
8187 }
8188 
CopyFrom(const MethodDescriptorProto & from)8189 void MethodDescriptorProto::CopyFrom(const MethodDescriptorProto& from) {
8190 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.MethodDescriptorProto)
8191   if (&from == this) return;
8192   Clear();
8193   MergeFrom(from);
8194 }
8195 
IsInitialized() const8196 bool MethodDescriptorProto::IsInitialized() const {
8197   if (has_options()) {
8198     if (!this->options_->IsInitialized()) return false;
8199   }
8200   return true;
8201 }
8202 
InternalSwap(MethodDescriptorProto * other)8203 void MethodDescriptorProto::InternalSwap(MethodDescriptorProto* other) {
8204   using std::swap;
8205   _internal_metadata_.Swap(&other->_internal_metadata_);
8206   swap(_has_bits_[0], other->_has_bits_[0]);
8207   name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
8208     GetArenaNoVirtual());
8209   input_type_.Swap(&other->input_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
8210     GetArenaNoVirtual());
8211   output_type_.Swap(&other->output_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
8212     GetArenaNoVirtual());
8213   swap(options_, other->options_);
8214   swap(client_streaming_, other->client_streaming_);
8215   swap(server_streaming_, other->server_streaming_);
8216 }
8217 
GetMetadata() const8218 ::PROTOBUF_NAMESPACE_ID::Metadata MethodDescriptorProto::GetMetadata() const {
8219   return GetMetadataStatic();
8220 }
8221 
8222 
8223 // ===================================================================
8224 
InitAsDefaultInstance()8225 void FileOptions::InitAsDefaultInstance() {
8226 }
8227 class FileOptions::_Internal {
8228  public:
8229   using HasBits = decltype(std::declval<FileOptions>()._has_bits_);
set_has_java_package(HasBits * has_bits)8230   static void set_has_java_package(HasBits* has_bits) {
8231     (*has_bits)[0] |= 1u;
8232   }
set_has_java_outer_classname(HasBits * has_bits)8233   static void set_has_java_outer_classname(HasBits* has_bits) {
8234     (*has_bits)[0] |= 2u;
8235   }
set_has_java_multiple_files(HasBits * has_bits)8236   static void set_has_java_multiple_files(HasBits* has_bits) {
8237     (*has_bits)[0] |= 1024u;
8238   }
set_has_java_generate_equals_and_hash(HasBits * has_bits)8239   static void set_has_java_generate_equals_and_hash(HasBits* has_bits) {
8240     (*has_bits)[0] |= 2048u;
8241   }
set_has_java_string_check_utf8(HasBits * has_bits)8242   static void set_has_java_string_check_utf8(HasBits* has_bits) {
8243     (*has_bits)[0] |= 4096u;
8244   }
set_has_optimize_for(HasBits * has_bits)8245   static void set_has_optimize_for(HasBits* has_bits) {
8246     (*has_bits)[0] |= 524288u;
8247   }
set_has_go_package(HasBits * has_bits)8248   static void set_has_go_package(HasBits* has_bits) {
8249     (*has_bits)[0] |= 4u;
8250   }
set_has_cc_generic_services(HasBits * has_bits)8251   static void set_has_cc_generic_services(HasBits* has_bits) {
8252     (*has_bits)[0] |= 8192u;
8253   }
set_has_java_generic_services(HasBits * has_bits)8254   static void set_has_java_generic_services(HasBits* has_bits) {
8255     (*has_bits)[0] |= 16384u;
8256   }
set_has_py_generic_services(HasBits * has_bits)8257   static void set_has_py_generic_services(HasBits* has_bits) {
8258     (*has_bits)[0] |= 32768u;
8259   }
set_has_php_generic_services(HasBits * has_bits)8260   static void set_has_php_generic_services(HasBits* has_bits) {
8261     (*has_bits)[0] |= 65536u;
8262   }
set_has_deprecated(HasBits * has_bits)8263   static void set_has_deprecated(HasBits* has_bits) {
8264     (*has_bits)[0] |= 131072u;
8265   }
set_has_cc_enable_arenas(HasBits * has_bits)8266   static void set_has_cc_enable_arenas(HasBits* has_bits) {
8267     (*has_bits)[0] |= 262144u;
8268   }
set_has_objc_class_prefix(HasBits * has_bits)8269   static void set_has_objc_class_prefix(HasBits* has_bits) {
8270     (*has_bits)[0] |= 8u;
8271   }
set_has_csharp_namespace(HasBits * has_bits)8272   static void set_has_csharp_namespace(HasBits* has_bits) {
8273     (*has_bits)[0] |= 16u;
8274   }
set_has_swift_prefix(HasBits * has_bits)8275   static void set_has_swift_prefix(HasBits* has_bits) {
8276     (*has_bits)[0] |= 32u;
8277   }
set_has_php_class_prefix(HasBits * has_bits)8278   static void set_has_php_class_prefix(HasBits* has_bits) {
8279     (*has_bits)[0] |= 64u;
8280   }
set_has_php_namespace(HasBits * has_bits)8281   static void set_has_php_namespace(HasBits* has_bits) {
8282     (*has_bits)[0] |= 128u;
8283   }
set_has_php_metadata_namespace(HasBits * has_bits)8284   static void set_has_php_metadata_namespace(HasBits* has_bits) {
8285     (*has_bits)[0] |= 256u;
8286   }
set_has_ruby_package(HasBits * has_bits)8287   static void set_has_ruby_package(HasBits* has_bits) {
8288     (*has_bits)[0] |= 512u;
8289   }
8290 };
8291 
FileOptions()8292 FileOptions::FileOptions()
8293   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
8294   SharedCtor();
8295   // @@protoc_insertion_point(constructor:google.protobuf.FileOptions)
8296 }
FileOptions(::PROTOBUF_NAMESPACE_ID::Arena * arena)8297 FileOptions::FileOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena)
8298   : ::PROTOBUF_NAMESPACE_ID::Message(),
8299   _extensions_(arena),
8300   _internal_metadata_(arena),
8301   uninterpreted_option_(arena) {
8302   SharedCtor();
8303   RegisterArenaDtor(arena);
8304   // @@protoc_insertion_point(arena_constructor:google.protobuf.FileOptions)
8305 }
FileOptions(const FileOptions & from)8306 FileOptions::FileOptions(const FileOptions& from)
8307   : ::PROTOBUF_NAMESPACE_ID::Message(),
8308       _internal_metadata_(nullptr),
8309       _has_bits_(from._has_bits_),
8310       uninterpreted_option_(from.uninterpreted_option_) {
8311   _internal_metadata_.MergeFrom(from._internal_metadata_);
8312   _extensions_.MergeFrom(from._extensions_);
8313   java_package_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8314   if (from.has_java_package()) {
8315     java_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.java_package(),
8316       GetArenaNoVirtual());
8317   }
8318   java_outer_classname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8319   if (from.has_java_outer_classname()) {
8320     java_outer_classname_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.java_outer_classname(),
8321       GetArenaNoVirtual());
8322   }
8323   go_package_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8324   if (from.has_go_package()) {
8325     go_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.go_package(),
8326       GetArenaNoVirtual());
8327   }
8328   objc_class_prefix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8329   if (from.has_objc_class_prefix()) {
8330     objc_class_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.objc_class_prefix(),
8331       GetArenaNoVirtual());
8332   }
8333   csharp_namespace_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8334   if (from.has_csharp_namespace()) {
8335     csharp_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.csharp_namespace(),
8336       GetArenaNoVirtual());
8337   }
8338   swift_prefix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8339   if (from.has_swift_prefix()) {
8340     swift_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.swift_prefix(),
8341       GetArenaNoVirtual());
8342   }
8343   php_class_prefix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8344   if (from.has_php_class_prefix()) {
8345     php_class_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.php_class_prefix(),
8346       GetArenaNoVirtual());
8347   }
8348   php_namespace_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8349   if (from.has_php_namespace()) {
8350     php_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.php_namespace(),
8351       GetArenaNoVirtual());
8352   }
8353   php_metadata_namespace_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8354   if (from.has_php_metadata_namespace()) {
8355     php_metadata_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.php_metadata_namespace(),
8356       GetArenaNoVirtual());
8357   }
8358   ruby_package_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8359   if (from.has_ruby_package()) {
8360     ruby_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.ruby_package(),
8361       GetArenaNoVirtual());
8362   }
8363   ::memcpy(&java_multiple_files_, &from.java_multiple_files_,
8364     static_cast<size_t>(reinterpret_cast<char*>(&optimize_for_) -
8365     reinterpret_cast<char*>(&java_multiple_files_)) + sizeof(optimize_for_));
8366   // @@protoc_insertion_point(copy_constructor:google.protobuf.FileOptions)
8367 }
8368 
SharedCtor()8369 void FileOptions::SharedCtor() {
8370   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FileOptions_google_2fprotobuf_2fdescriptor_2eproto.base);
8371   java_package_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8372   java_outer_classname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8373   go_package_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8374   objc_class_prefix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8375   csharp_namespace_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8376   swift_prefix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8377   php_class_prefix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8378   php_namespace_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8379   php_metadata_namespace_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8380   ruby_package_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8381   ::memset(&java_multiple_files_, 0, static_cast<size_t>(
8382       reinterpret_cast<char*>(&cc_enable_arenas_) -
8383       reinterpret_cast<char*>(&java_multiple_files_)) + sizeof(cc_enable_arenas_));
8384   optimize_for_ = 1;
8385 }
8386 
~FileOptions()8387 FileOptions::~FileOptions() {
8388   // @@protoc_insertion_point(destructor:google.protobuf.FileOptions)
8389   SharedDtor();
8390 }
8391 
SharedDtor()8392 void FileOptions::SharedDtor() {
8393   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
8394   java_package_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8395   java_outer_classname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8396   go_package_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8397   objc_class_prefix_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8398   csharp_namespace_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8399   swift_prefix_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8400   php_class_prefix_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8401   php_namespace_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8402   php_metadata_namespace_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8403   ruby_package_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8404 }
8405 
ArenaDtor(void * object)8406 void FileOptions::ArenaDtor(void* object) {
8407   FileOptions* _this = reinterpret_cast< FileOptions* >(object);
8408   (void)_this;
8409 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)8410 void FileOptions::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
8411 }
SetCachedSize(int size) const8412 void FileOptions::SetCachedSize(int size) const {
8413   _cached_size_.Set(size);
8414 }
default_instance()8415 const FileOptions& FileOptions::default_instance() {
8416   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FileOptions_google_2fprotobuf_2fdescriptor_2eproto.base);
8417   return *internal_default_instance();
8418 }
8419 
8420 
Clear()8421 void FileOptions::Clear() {
8422 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileOptions)
8423   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8424   // Prevent compiler warnings about cached_has_bits being unused
8425   (void) cached_has_bits;
8426 
8427   _extensions_.Clear();
8428   uninterpreted_option_.Clear();
8429   cached_has_bits = _has_bits_[0];
8430   if (cached_has_bits & 0x000000ffu) {
8431     if (cached_has_bits & 0x00000001u) {
8432       java_package_.ClearNonDefaultToEmpty();
8433     }
8434     if (cached_has_bits & 0x00000002u) {
8435       java_outer_classname_.ClearNonDefaultToEmpty();
8436     }
8437     if (cached_has_bits & 0x00000004u) {
8438       go_package_.ClearNonDefaultToEmpty();
8439     }
8440     if (cached_has_bits & 0x00000008u) {
8441       objc_class_prefix_.ClearNonDefaultToEmpty();
8442     }
8443     if (cached_has_bits & 0x00000010u) {
8444       csharp_namespace_.ClearNonDefaultToEmpty();
8445     }
8446     if (cached_has_bits & 0x00000020u) {
8447       swift_prefix_.ClearNonDefaultToEmpty();
8448     }
8449     if (cached_has_bits & 0x00000040u) {
8450       php_class_prefix_.ClearNonDefaultToEmpty();
8451     }
8452     if (cached_has_bits & 0x00000080u) {
8453       php_namespace_.ClearNonDefaultToEmpty();
8454     }
8455   }
8456   if (cached_has_bits & 0x00000300u) {
8457     if (cached_has_bits & 0x00000100u) {
8458       php_metadata_namespace_.ClearNonDefaultToEmpty();
8459     }
8460     if (cached_has_bits & 0x00000200u) {
8461       ruby_package_.ClearNonDefaultToEmpty();
8462     }
8463   }
8464   if (cached_has_bits & 0x0000fc00u) {
8465     ::memset(&java_multiple_files_, 0, static_cast<size_t>(
8466         reinterpret_cast<char*>(&py_generic_services_) -
8467         reinterpret_cast<char*>(&java_multiple_files_)) + sizeof(py_generic_services_));
8468   }
8469   if (cached_has_bits & 0x000f0000u) {
8470     ::memset(&php_generic_services_, 0, static_cast<size_t>(
8471         reinterpret_cast<char*>(&cc_enable_arenas_) -
8472         reinterpret_cast<char*>(&php_generic_services_)) + sizeof(cc_enable_arenas_));
8473     optimize_for_ = 1;
8474   }
8475   _has_bits_.Clear();
8476   _internal_metadata_.Clear();
8477 }
8478 
8479 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)8480 const char* FileOptions::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
8481 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8482   _Internal::HasBits has_bits{};
8483   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
8484   while (!ctx->Done(&ptr)) {
8485     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
8486     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
8487     CHK_(ptr);
8488     switch (tag >> 3) {
8489       // optional string java_package = 1;
8490       case 1:
8491         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
8492           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_java_package(), ptr, ctx, "google.protobuf.FileOptions.java_package");
8493           CHK_(ptr);
8494         } else goto handle_unusual;
8495         continue;
8496       // optional string java_outer_classname = 8;
8497       case 8:
8498         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
8499           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_java_outer_classname(), ptr, ctx, "google.protobuf.FileOptions.java_outer_classname");
8500           CHK_(ptr);
8501         } else goto handle_unusual;
8502         continue;
8503       // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
8504       case 9:
8505         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) {
8506           ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
8507           CHK_(ptr);
8508           if (PROTOBUF_PREDICT_TRUE(PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode_IsValid(val))) {
8509             set_optimize_for(static_cast<PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode>(val));
8510           } else {
8511             ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(9, val, mutable_unknown_fields());
8512           }
8513         } else goto handle_unusual;
8514         continue;
8515       // optional bool java_multiple_files = 10 [default = false];
8516       case 10:
8517         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
8518           _Internal::set_has_java_multiple_files(&has_bits);
8519           java_multiple_files_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
8520           CHK_(ptr);
8521         } else goto handle_unusual;
8522         continue;
8523       // optional string go_package = 11;
8524       case 11:
8525         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) {
8526           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_go_package(), ptr, ctx, "google.protobuf.FileOptions.go_package");
8527           CHK_(ptr);
8528         } else goto handle_unusual;
8529         continue;
8530       // optional bool cc_generic_services = 16 [default = false];
8531       case 16:
8532         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 128)) {
8533           _Internal::set_has_cc_generic_services(&has_bits);
8534           cc_generic_services_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
8535           CHK_(ptr);
8536         } else goto handle_unusual;
8537         continue;
8538       // optional bool java_generic_services = 17 [default = false];
8539       case 17:
8540         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 136)) {
8541           _Internal::set_has_java_generic_services(&has_bits);
8542           java_generic_services_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
8543           CHK_(ptr);
8544         } else goto handle_unusual;
8545         continue;
8546       // optional bool py_generic_services = 18 [default = false];
8547       case 18:
8548         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 144)) {
8549           _Internal::set_has_py_generic_services(&has_bits);
8550           py_generic_services_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
8551           CHK_(ptr);
8552         } else goto handle_unusual;
8553         continue;
8554       // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
8555       case 20:
8556         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 160)) {
8557           _Internal::set_has_java_generate_equals_and_hash(&has_bits);
8558           java_generate_equals_and_hash_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
8559           CHK_(ptr);
8560         } else goto handle_unusual;
8561         continue;
8562       // optional bool deprecated = 23 [default = false];
8563       case 23:
8564         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 184)) {
8565           _Internal::set_has_deprecated(&has_bits);
8566           deprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
8567           CHK_(ptr);
8568         } else goto handle_unusual;
8569         continue;
8570       // optional bool java_string_check_utf8 = 27 [default = false];
8571       case 27:
8572         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 216)) {
8573           _Internal::set_has_java_string_check_utf8(&has_bits);
8574           java_string_check_utf8_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
8575           CHK_(ptr);
8576         } else goto handle_unusual;
8577         continue;
8578       // optional bool cc_enable_arenas = 31 [default = false];
8579       case 31:
8580         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 248)) {
8581           _Internal::set_has_cc_enable_arenas(&has_bits);
8582           cc_enable_arenas_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
8583           CHK_(ptr);
8584         } else goto handle_unusual;
8585         continue;
8586       // optional string objc_class_prefix = 36;
8587       case 36:
8588         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
8589           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_objc_class_prefix(), ptr, ctx, "google.protobuf.FileOptions.objc_class_prefix");
8590           CHK_(ptr);
8591         } else goto handle_unusual;
8592         continue;
8593       // optional string csharp_namespace = 37;
8594       case 37:
8595         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
8596           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_csharp_namespace(), ptr, ctx, "google.protobuf.FileOptions.csharp_namespace");
8597           CHK_(ptr);
8598         } else goto handle_unusual;
8599         continue;
8600       // optional string swift_prefix = 39;
8601       case 39:
8602         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
8603           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_swift_prefix(), ptr, ctx, "google.protobuf.FileOptions.swift_prefix");
8604           CHK_(ptr);
8605         } else goto handle_unusual;
8606         continue;
8607       // optional string php_class_prefix = 40;
8608       case 40:
8609         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
8610           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_php_class_prefix(), ptr, ctx, "google.protobuf.FileOptions.php_class_prefix");
8611           CHK_(ptr);
8612         } else goto handle_unusual;
8613         continue;
8614       // optional string php_namespace = 41;
8615       case 41:
8616         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
8617           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_php_namespace(), ptr, ctx, "google.protobuf.FileOptions.php_namespace");
8618           CHK_(ptr);
8619         } else goto handle_unusual;
8620         continue;
8621       // optional bool php_generic_services = 42 [default = false];
8622       case 42:
8623         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
8624           _Internal::set_has_php_generic_services(&has_bits);
8625           php_generic_services_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
8626           CHK_(ptr);
8627         } else goto handle_unusual;
8628         continue;
8629       // optional string php_metadata_namespace = 44;
8630       case 44:
8631         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) {
8632           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_php_metadata_namespace(), ptr, ctx, "google.protobuf.FileOptions.php_metadata_namespace");
8633           CHK_(ptr);
8634         } else goto handle_unusual;
8635         continue;
8636       // optional string ruby_package = 45;
8637       case 45:
8638         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) {
8639           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_ruby_package(), ptr, ctx, "google.protobuf.FileOptions.ruby_package");
8640           CHK_(ptr);
8641         } else goto handle_unusual;
8642         continue;
8643       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8644       case 999:
8645         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
8646           ptr -= 2;
8647           do {
8648             ptr += 2;
8649             ptr = ctx->ParseMessage(add_uninterpreted_option(), ptr);
8650             CHK_(ptr);
8651             if (!ctx->DataAvailable(ptr)) break;
8652           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint16>(ptr) == 16058);
8653         } else goto handle_unusual;
8654         continue;
8655       default: {
8656       handle_unusual:
8657         if ((tag & 7) == 4 || tag == 0) {
8658           ctx->SetLastTag(tag);
8659           goto success;
8660         }
8661       if ((8000u <= tag)) {
8662         ptr = _extensions_.ParseField(tag, ptr,
8663             internal_default_instance(), &_internal_metadata_, ctx);
8664         CHK_(ptr != nullptr);
8665         continue;
8666       }
8667         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
8668         CHK_(ptr != nullptr);
8669         continue;
8670       }
8671     }  // switch
8672   }  // while
8673 success:
8674   _has_bits_.Or(has_bits);
8675   return ptr;
8676 failure:
8677   ptr = nullptr;
8678   goto success;
8679 #undef CHK_
8680 }
8681 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)8682 bool FileOptions::MergePartialFromCodedStream(
8683     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
8684 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
8685   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
8686   // @@protoc_insertion_point(parse_start:google.protobuf.FileOptions)
8687   for (;;) {
8688     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
8689     tag = p.first;
8690     if (!p.second) goto handle_unusual;
8691     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8692       // optional string java_package = 1;
8693       case 1: {
8694         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
8695           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
8696                 input, this->mutable_java_package()));
8697           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
8698             this->java_package().data(), static_cast<int>(this->java_package().length()),
8699             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
8700             "google.protobuf.FileOptions.java_package");
8701         } else {
8702           goto handle_unusual;
8703         }
8704         break;
8705       }
8706 
8707       // optional string java_outer_classname = 8;
8708       case 8: {
8709         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) {
8710           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
8711                 input, this->mutable_java_outer_classname()));
8712           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
8713             this->java_outer_classname().data(), static_cast<int>(this->java_outer_classname().length()),
8714             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
8715             "google.protobuf.FileOptions.java_outer_classname");
8716         } else {
8717           goto handle_unusual;
8718         }
8719         break;
8720       }
8721 
8722       // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
8723       case 9: {
8724         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (72 & 0xFF)) {
8725           int value = 0;
8726           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
8727                    int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
8728                  input, &value)));
8729           if (PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode_IsValid(value)) {
8730             set_optimize_for(static_cast< PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode >(value));
8731           } else {
8732             mutable_unknown_fields()->AddVarint(
8733                 9, static_cast<::PROTOBUF_NAMESPACE_ID::uint64>(value));
8734           }
8735         } else {
8736           goto handle_unusual;
8737         }
8738         break;
8739       }
8740 
8741       // optional bool java_multiple_files = 10 [default = false];
8742       case 10: {
8743         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (80 & 0xFF)) {
8744           _Internal::set_has_java_multiple_files(&_has_bits_);
8745           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
8746                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
8747                  input, &java_multiple_files_)));
8748         } else {
8749           goto handle_unusual;
8750         }
8751         break;
8752       }
8753 
8754       // optional string go_package = 11;
8755       case 11: {
8756         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (90 & 0xFF)) {
8757           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
8758                 input, this->mutable_go_package()));
8759           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
8760             this->go_package().data(), static_cast<int>(this->go_package().length()),
8761             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
8762             "google.protobuf.FileOptions.go_package");
8763         } else {
8764           goto handle_unusual;
8765         }
8766         break;
8767       }
8768 
8769       // optional bool cc_generic_services = 16 [default = false];
8770       case 16: {
8771         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (128 & 0xFF)) {
8772           _Internal::set_has_cc_generic_services(&_has_bits_);
8773           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
8774                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
8775                  input, &cc_generic_services_)));
8776         } else {
8777           goto handle_unusual;
8778         }
8779         break;
8780       }
8781 
8782       // optional bool java_generic_services = 17 [default = false];
8783       case 17: {
8784         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (136 & 0xFF)) {
8785           _Internal::set_has_java_generic_services(&_has_bits_);
8786           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
8787                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
8788                  input, &java_generic_services_)));
8789         } else {
8790           goto handle_unusual;
8791         }
8792         break;
8793       }
8794 
8795       // optional bool py_generic_services = 18 [default = false];
8796       case 18: {
8797         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (144 & 0xFF)) {
8798           _Internal::set_has_py_generic_services(&_has_bits_);
8799           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
8800                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
8801                  input, &py_generic_services_)));
8802         } else {
8803           goto handle_unusual;
8804         }
8805         break;
8806       }
8807 
8808       // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
8809       case 20: {
8810         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (160 & 0xFF)) {
8811           _Internal::set_has_java_generate_equals_and_hash(&_has_bits_);
8812           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
8813                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
8814                  input, &java_generate_equals_and_hash_)));
8815         } else {
8816           goto handle_unusual;
8817         }
8818         break;
8819       }
8820 
8821       // optional bool deprecated = 23 [default = false];
8822       case 23: {
8823         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (184 & 0xFF)) {
8824           _Internal::set_has_deprecated(&_has_bits_);
8825           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
8826                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
8827                  input, &deprecated_)));
8828         } else {
8829           goto handle_unusual;
8830         }
8831         break;
8832       }
8833 
8834       // optional bool java_string_check_utf8 = 27 [default = false];
8835       case 27: {
8836         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (216 & 0xFF)) {
8837           _Internal::set_has_java_string_check_utf8(&_has_bits_);
8838           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
8839                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
8840                  input, &java_string_check_utf8_)));
8841         } else {
8842           goto handle_unusual;
8843         }
8844         break;
8845       }
8846 
8847       // optional bool cc_enable_arenas = 31 [default = false];
8848       case 31: {
8849         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (248 & 0xFF)) {
8850           _Internal::set_has_cc_enable_arenas(&_has_bits_);
8851           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
8852                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
8853                  input, &cc_enable_arenas_)));
8854         } else {
8855           goto handle_unusual;
8856         }
8857         break;
8858       }
8859 
8860       // optional string objc_class_prefix = 36;
8861       case 36: {
8862         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (290 & 0xFF)) {
8863           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
8864                 input, this->mutable_objc_class_prefix()));
8865           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
8866             this->objc_class_prefix().data(), static_cast<int>(this->objc_class_prefix().length()),
8867             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
8868             "google.protobuf.FileOptions.objc_class_prefix");
8869         } else {
8870           goto handle_unusual;
8871         }
8872         break;
8873       }
8874 
8875       // optional string csharp_namespace = 37;
8876       case 37: {
8877         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (298 & 0xFF)) {
8878           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
8879                 input, this->mutable_csharp_namespace()));
8880           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
8881             this->csharp_namespace().data(), static_cast<int>(this->csharp_namespace().length()),
8882             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
8883             "google.protobuf.FileOptions.csharp_namespace");
8884         } else {
8885           goto handle_unusual;
8886         }
8887         break;
8888       }
8889 
8890       // optional string swift_prefix = 39;
8891       case 39: {
8892         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (314 & 0xFF)) {
8893           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
8894                 input, this->mutable_swift_prefix()));
8895           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
8896             this->swift_prefix().data(), static_cast<int>(this->swift_prefix().length()),
8897             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
8898             "google.protobuf.FileOptions.swift_prefix");
8899         } else {
8900           goto handle_unusual;
8901         }
8902         break;
8903       }
8904 
8905       // optional string php_class_prefix = 40;
8906       case 40: {
8907         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (322 & 0xFF)) {
8908           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
8909                 input, this->mutable_php_class_prefix()));
8910           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
8911             this->php_class_prefix().data(), static_cast<int>(this->php_class_prefix().length()),
8912             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
8913             "google.protobuf.FileOptions.php_class_prefix");
8914         } else {
8915           goto handle_unusual;
8916         }
8917         break;
8918       }
8919 
8920       // optional string php_namespace = 41;
8921       case 41: {
8922         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (330 & 0xFF)) {
8923           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
8924                 input, this->mutable_php_namespace()));
8925           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
8926             this->php_namespace().data(), static_cast<int>(this->php_namespace().length()),
8927             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
8928             "google.protobuf.FileOptions.php_namespace");
8929         } else {
8930           goto handle_unusual;
8931         }
8932         break;
8933       }
8934 
8935       // optional bool php_generic_services = 42 [default = false];
8936       case 42: {
8937         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (336 & 0xFF)) {
8938           _Internal::set_has_php_generic_services(&_has_bits_);
8939           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
8940                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
8941                  input, &php_generic_services_)));
8942         } else {
8943           goto handle_unusual;
8944         }
8945         break;
8946       }
8947 
8948       // optional string php_metadata_namespace = 44;
8949       case 44: {
8950         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (354 & 0xFF)) {
8951           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
8952                 input, this->mutable_php_metadata_namespace()));
8953           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
8954             this->php_metadata_namespace().data(), static_cast<int>(this->php_metadata_namespace().length()),
8955             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
8956             "google.protobuf.FileOptions.php_metadata_namespace");
8957         } else {
8958           goto handle_unusual;
8959         }
8960         break;
8961       }
8962 
8963       // optional string ruby_package = 45;
8964       case 45: {
8965         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (362 & 0xFF)) {
8966           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
8967                 input, this->mutable_ruby_package()));
8968           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
8969             this->ruby_package().data(), static_cast<int>(this->ruby_package().length()),
8970             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
8971             "google.protobuf.FileOptions.ruby_package");
8972         } else {
8973           goto handle_unusual;
8974         }
8975         break;
8976       }
8977 
8978       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8979       case 999: {
8980         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (7994 & 0xFF)) {
8981           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
8982                 input, add_uninterpreted_option()));
8983         } else {
8984           goto handle_unusual;
8985         }
8986         break;
8987       }
8988 
8989       default: {
8990       handle_unusual:
8991         if (tag == 0) {
8992           goto success;
8993         }
8994         if ((8000u <= tag)) {
8995           DO_(_extensions_.ParseField(tag, input,
8996               internal_default_instance(),
8997               _internal_metadata_.mutable_unknown_fields()));
8998           continue;
8999         }
9000         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
9001               input, tag, _internal_metadata_.mutable_unknown_fields()));
9002         break;
9003       }
9004     }
9005   }
9006 success:
9007   // @@protoc_insertion_point(parse_success:google.protobuf.FileOptions)
9008   return true;
9009 failure:
9010   // @@protoc_insertion_point(parse_failure:google.protobuf.FileOptions)
9011   return false;
9012 #undef DO_
9013 }
9014 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9015 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const9016 void FileOptions::SerializeWithCachedSizes(
9017     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
9018   // @@protoc_insertion_point(serialize_start:google.protobuf.FileOptions)
9019   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9020   (void) cached_has_bits;
9021 
9022   cached_has_bits = _has_bits_[0];
9023   // optional string java_package = 1;
9024   if (cached_has_bits & 0x00000001u) {
9025     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9026       this->java_package().data(), static_cast<int>(this->java_package().length()),
9027       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9028       "google.protobuf.FileOptions.java_package");
9029     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
9030       1, this->java_package(), output);
9031   }
9032 
9033   // optional string java_outer_classname = 8;
9034   if (cached_has_bits & 0x00000002u) {
9035     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9036       this->java_outer_classname().data(), static_cast<int>(this->java_outer_classname().length()),
9037       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9038       "google.protobuf.FileOptions.java_outer_classname");
9039     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
9040       8, this->java_outer_classname(), output);
9041   }
9042 
9043   // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
9044   if (cached_has_bits & 0x00080000u) {
9045     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
9046       9, this->optimize_for(), output);
9047   }
9048 
9049   // optional bool java_multiple_files = 10 [default = false];
9050   if (cached_has_bits & 0x00000400u) {
9051     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(10, this->java_multiple_files(), output);
9052   }
9053 
9054   // optional string go_package = 11;
9055   if (cached_has_bits & 0x00000004u) {
9056     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9057       this->go_package().data(), static_cast<int>(this->go_package().length()),
9058       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9059       "google.protobuf.FileOptions.go_package");
9060     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
9061       11, this->go_package(), output);
9062   }
9063 
9064   // optional bool cc_generic_services = 16 [default = false];
9065   if (cached_has_bits & 0x00002000u) {
9066     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(16, this->cc_generic_services(), output);
9067   }
9068 
9069   // optional bool java_generic_services = 17 [default = false];
9070   if (cached_has_bits & 0x00004000u) {
9071     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(17, this->java_generic_services(), output);
9072   }
9073 
9074   // optional bool py_generic_services = 18 [default = false];
9075   if (cached_has_bits & 0x00008000u) {
9076     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(18, this->py_generic_services(), output);
9077   }
9078 
9079   // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
9080   if (cached_has_bits & 0x00000800u) {
9081     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(20, this->java_generate_equals_and_hash(), output);
9082   }
9083 
9084   // optional bool deprecated = 23 [default = false];
9085   if (cached_has_bits & 0x00020000u) {
9086     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(23, this->deprecated(), output);
9087   }
9088 
9089   // optional bool java_string_check_utf8 = 27 [default = false];
9090   if (cached_has_bits & 0x00001000u) {
9091     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(27, this->java_string_check_utf8(), output);
9092   }
9093 
9094   // optional bool cc_enable_arenas = 31 [default = false];
9095   if (cached_has_bits & 0x00040000u) {
9096     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(31, this->cc_enable_arenas(), output);
9097   }
9098 
9099   // optional string objc_class_prefix = 36;
9100   if (cached_has_bits & 0x00000008u) {
9101     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9102       this->objc_class_prefix().data(), static_cast<int>(this->objc_class_prefix().length()),
9103       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9104       "google.protobuf.FileOptions.objc_class_prefix");
9105     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
9106       36, this->objc_class_prefix(), output);
9107   }
9108 
9109   // optional string csharp_namespace = 37;
9110   if (cached_has_bits & 0x00000010u) {
9111     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9112       this->csharp_namespace().data(), static_cast<int>(this->csharp_namespace().length()),
9113       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9114       "google.protobuf.FileOptions.csharp_namespace");
9115     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
9116       37, this->csharp_namespace(), output);
9117   }
9118 
9119   // optional string swift_prefix = 39;
9120   if (cached_has_bits & 0x00000020u) {
9121     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9122       this->swift_prefix().data(), static_cast<int>(this->swift_prefix().length()),
9123       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9124       "google.protobuf.FileOptions.swift_prefix");
9125     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
9126       39, this->swift_prefix(), output);
9127   }
9128 
9129   // optional string php_class_prefix = 40;
9130   if (cached_has_bits & 0x00000040u) {
9131     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9132       this->php_class_prefix().data(), static_cast<int>(this->php_class_prefix().length()),
9133       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9134       "google.protobuf.FileOptions.php_class_prefix");
9135     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
9136       40, this->php_class_prefix(), output);
9137   }
9138 
9139   // optional string php_namespace = 41;
9140   if (cached_has_bits & 0x00000080u) {
9141     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9142       this->php_namespace().data(), static_cast<int>(this->php_namespace().length()),
9143       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9144       "google.protobuf.FileOptions.php_namespace");
9145     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
9146       41, this->php_namespace(), output);
9147   }
9148 
9149   // optional bool php_generic_services = 42 [default = false];
9150   if (cached_has_bits & 0x00010000u) {
9151     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(42, this->php_generic_services(), output);
9152   }
9153 
9154   // optional string php_metadata_namespace = 44;
9155   if (cached_has_bits & 0x00000100u) {
9156     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9157       this->php_metadata_namespace().data(), static_cast<int>(this->php_metadata_namespace().length()),
9158       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9159       "google.protobuf.FileOptions.php_metadata_namespace");
9160     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
9161       44, this->php_metadata_namespace(), output);
9162   }
9163 
9164   // optional string ruby_package = 45;
9165   if (cached_has_bits & 0x00000200u) {
9166     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9167       this->ruby_package().data(), static_cast<int>(this->ruby_package().length()),
9168       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9169       "google.protobuf.FileOptions.ruby_package");
9170     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
9171       45, this->ruby_package(), output);
9172   }
9173 
9174   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9175   for (unsigned int i = 0,
9176       n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
9177     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
9178       999,
9179       this->uninterpreted_option(static_cast<int>(i)),
9180       output);
9181   }
9182 
9183   // Extension range [1000, 536870912)
9184   _extensions_.SerializeWithCachedSizes(1000, 536870912, output);
9185 
9186   if (_internal_metadata_.have_unknown_fields()) {
9187     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
9188         _internal_metadata_.unknown_fields(), output);
9189   }
9190   // @@protoc_insertion_point(serialize_end:google.protobuf.FileOptions)
9191 }
9192 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const9193 ::PROTOBUF_NAMESPACE_ID::uint8* FileOptions::InternalSerializeWithCachedSizesToArray(
9194     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
9195   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileOptions)
9196   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9197   (void) cached_has_bits;
9198 
9199   cached_has_bits = _has_bits_[0];
9200   // optional string java_package = 1;
9201   if (cached_has_bits & 0x00000001u) {
9202     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9203       this->java_package().data(), static_cast<int>(this->java_package().length()),
9204       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9205       "google.protobuf.FileOptions.java_package");
9206     target =
9207       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
9208         1, this->java_package(), target);
9209   }
9210 
9211   // optional string java_outer_classname = 8;
9212   if (cached_has_bits & 0x00000002u) {
9213     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9214       this->java_outer_classname().data(), static_cast<int>(this->java_outer_classname().length()),
9215       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9216       "google.protobuf.FileOptions.java_outer_classname");
9217     target =
9218       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
9219         8, this->java_outer_classname(), target);
9220   }
9221 
9222   // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
9223   if (cached_has_bits & 0x00080000u) {
9224     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
9225       9, this->optimize_for(), target);
9226   }
9227 
9228   // optional bool java_multiple_files = 10 [default = false];
9229   if (cached_has_bits & 0x00000400u) {
9230     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(10, this->java_multiple_files(), target);
9231   }
9232 
9233   // optional string go_package = 11;
9234   if (cached_has_bits & 0x00000004u) {
9235     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9236       this->go_package().data(), static_cast<int>(this->go_package().length()),
9237       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9238       "google.protobuf.FileOptions.go_package");
9239     target =
9240       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
9241         11, this->go_package(), target);
9242   }
9243 
9244   // optional bool cc_generic_services = 16 [default = false];
9245   if (cached_has_bits & 0x00002000u) {
9246     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(16, this->cc_generic_services(), target);
9247   }
9248 
9249   // optional bool java_generic_services = 17 [default = false];
9250   if (cached_has_bits & 0x00004000u) {
9251     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(17, this->java_generic_services(), target);
9252   }
9253 
9254   // optional bool py_generic_services = 18 [default = false];
9255   if (cached_has_bits & 0x00008000u) {
9256     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(18, this->py_generic_services(), target);
9257   }
9258 
9259   // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
9260   if (cached_has_bits & 0x00000800u) {
9261     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(20, this->java_generate_equals_and_hash(), target);
9262   }
9263 
9264   // optional bool deprecated = 23 [default = false];
9265   if (cached_has_bits & 0x00020000u) {
9266     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(23, this->deprecated(), target);
9267   }
9268 
9269   // optional bool java_string_check_utf8 = 27 [default = false];
9270   if (cached_has_bits & 0x00001000u) {
9271     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(27, this->java_string_check_utf8(), target);
9272   }
9273 
9274   // optional bool cc_enable_arenas = 31 [default = false];
9275   if (cached_has_bits & 0x00040000u) {
9276     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(31, this->cc_enable_arenas(), target);
9277   }
9278 
9279   // optional string objc_class_prefix = 36;
9280   if (cached_has_bits & 0x00000008u) {
9281     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9282       this->objc_class_prefix().data(), static_cast<int>(this->objc_class_prefix().length()),
9283       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9284       "google.protobuf.FileOptions.objc_class_prefix");
9285     target =
9286       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
9287         36, this->objc_class_prefix(), target);
9288   }
9289 
9290   // optional string csharp_namespace = 37;
9291   if (cached_has_bits & 0x00000010u) {
9292     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9293       this->csharp_namespace().data(), static_cast<int>(this->csharp_namespace().length()),
9294       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9295       "google.protobuf.FileOptions.csharp_namespace");
9296     target =
9297       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
9298         37, this->csharp_namespace(), target);
9299   }
9300 
9301   // optional string swift_prefix = 39;
9302   if (cached_has_bits & 0x00000020u) {
9303     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9304       this->swift_prefix().data(), static_cast<int>(this->swift_prefix().length()),
9305       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9306       "google.protobuf.FileOptions.swift_prefix");
9307     target =
9308       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
9309         39, this->swift_prefix(), target);
9310   }
9311 
9312   // optional string php_class_prefix = 40;
9313   if (cached_has_bits & 0x00000040u) {
9314     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9315       this->php_class_prefix().data(), static_cast<int>(this->php_class_prefix().length()),
9316       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9317       "google.protobuf.FileOptions.php_class_prefix");
9318     target =
9319       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
9320         40, this->php_class_prefix(), target);
9321   }
9322 
9323   // optional string php_namespace = 41;
9324   if (cached_has_bits & 0x00000080u) {
9325     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9326       this->php_namespace().data(), static_cast<int>(this->php_namespace().length()),
9327       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9328       "google.protobuf.FileOptions.php_namespace");
9329     target =
9330       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
9331         41, this->php_namespace(), target);
9332   }
9333 
9334   // optional bool php_generic_services = 42 [default = false];
9335   if (cached_has_bits & 0x00010000u) {
9336     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(42, this->php_generic_services(), target);
9337   }
9338 
9339   // optional string php_metadata_namespace = 44;
9340   if (cached_has_bits & 0x00000100u) {
9341     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9342       this->php_metadata_namespace().data(), static_cast<int>(this->php_metadata_namespace().length()),
9343       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9344       "google.protobuf.FileOptions.php_metadata_namespace");
9345     target =
9346       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
9347         44, this->php_metadata_namespace(), target);
9348   }
9349 
9350   // optional string ruby_package = 45;
9351   if (cached_has_bits & 0x00000200u) {
9352     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
9353       this->ruby_package().data(), static_cast<int>(this->ruby_package().length()),
9354       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
9355       "google.protobuf.FileOptions.ruby_package");
9356     target =
9357       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
9358         45, this->ruby_package(), target);
9359   }
9360 
9361   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9362   for (unsigned int i = 0,
9363       n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
9364     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
9365       InternalWriteMessageToArray(
9366         999, this->uninterpreted_option(static_cast<int>(i)), target);
9367   }
9368 
9369   // Extension range [1000, 536870912)
9370   target = _extensions_.InternalSerializeWithCachedSizesToArray(
9371       1000, 536870912, target);
9372 
9373   if (_internal_metadata_.have_unknown_fields()) {
9374     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
9375         _internal_metadata_.unknown_fields(), target);
9376   }
9377   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileOptions)
9378   return target;
9379 }
9380 
ByteSizeLong() const9381 size_t FileOptions::ByteSizeLong() const {
9382 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileOptions)
9383   size_t total_size = 0;
9384 
9385   total_size += _extensions_.ByteSize();
9386 
9387   if (_internal_metadata_.have_unknown_fields()) {
9388     total_size +=
9389       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
9390         _internal_metadata_.unknown_fields());
9391   }
9392   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9393   // Prevent compiler warnings about cached_has_bits being unused
9394   (void) cached_has_bits;
9395 
9396   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9397   {
9398     unsigned int count = static_cast<unsigned int>(this->uninterpreted_option_size());
9399     total_size += 2UL * count;
9400     for (unsigned int i = 0; i < count; i++) {
9401       total_size +=
9402         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
9403           this->uninterpreted_option(static_cast<int>(i)));
9404     }
9405   }
9406 
9407   cached_has_bits = _has_bits_[0];
9408   if (cached_has_bits & 0x000000ffu) {
9409     // optional string java_package = 1;
9410     if (cached_has_bits & 0x00000001u) {
9411       total_size += 1 +
9412         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
9413           this->java_package());
9414     }
9415 
9416     // optional string java_outer_classname = 8;
9417     if (cached_has_bits & 0x00000002u) {
9418       total_size += 1 +
9419         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
9420           this->java_outer_classname());
9421     }
9422 
9423     // optional string go_package = 11;
9424     if (cached_has_bits & 0x00000004u) {
9425       total_size += 1 +
9426         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
9427           this->go_package());
9428     }
9429 
9430     // optional string objc_class_prefix = 36;
9431     if (cached_has_bits & 0x00000008u) {
9432       total_size += 2 +
9433         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
9434           this->objc_class_prefix());
9435     }
9436 
9437     // optional string csharp_namespace = 37;
9438     if (cached_has_bits & 0x00000010u) {
9439       total_size += 2 +
9440         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
9441           this->csharp_namespace());
9442     }
9443 
9444     // optional string swift_prefix = 39;
9445     if (cached_has_bits & 0x00000020u) {
9446       total_size += 2 +
9447         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
9448           this->swift_prefix());
9449     }
9450 
9451     // optional string php_class_prefix = 40;
9452     if (cached_has_bits & 0x00000040u) {
9453       total_size += 2 +
9454         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
9455           this->php_class_prefix());
9456     }
9457 
9458     // optional string php_namespace = 41;
9459     if (cached_has_bits & 0x00000080u) {
9460       total_size += 2 +
9461         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
9462           this->php_namespace());
9463     }
9464 
9465   }
9466   if (cached_has_bits & 0x0000ff00u) {
9467     // optional string php_metadata_namespace = 44;
9468     if (cached_has_bits & 0x00000100u) {
9469       total_size += 2 +
9470         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
9471           this->php_metadata_namespace());
9472     }
9473 
9474     // optional string ruby_package = 45;
9475     if (cached_has_bits & 0x00000200u) {
9476       total_size += 2 +
9477         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
9478           this->ruby_package());
9479     }
9480 
9481     // optional bool java_multiple_files = 10 [default = false];
9482     if (cached_has_bits & 0x00000400u) {
9483       total_size += 1 + 1;
9484     }
9485 
9486     // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
9487     if (cached_has_bits & 0x00000800u) {
9488       total_size += 2 + 1;
9489     }
9490 
9491     // optional bool java_string_check_utf8 = 27 [default = false];
9492     if (cached_has_bits & 0x00001000u) {
9493       total_size += 2 + 1;
9494     }
9495 
9496     // optional bool cc_generic_services = 16 [default = false];
9497     if (cached_has_bits & 0x00002000u) {
9498       total_size += 2 + 1;
9499     }
9500 
9501     // optional bool java_generic_services = 17 [default = false];
9502     if (cached_has_bits & 0x00004000u) {
9503       total_size += 2 + 1;
9504     }
9505 
9506     // optional bool py_generic_services = 18 [default = false];
9507     if (cached_has_bits & 0x00008000u) {
9508       total_size += 2 + 1;
9509     }
9510 
9511   }
9512   if (cached_has_bits & 0x000f0000u) {
9513     // optional bool php_generic_services = 42 [default = false];
9514     if (cached_has_bits & 0x00010000u) {
9515       total_size += 2 + 1;
9516     }
9517 
9518     // optional bool deprecated = 23 [default = false];
9519     if (cached_has_bits & 0x00020000u) {
9520       total_size += 2 + 1;
9521     }
9522 
9523     // optional bool cc_enable_arenas = 31 [default = false];
9524     if (cached_has_bits & 0x00040000u) {
9525       total_size += 2 + 1;
9526     }
9527 
9528     // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
9529     if (cached_has_bits & 0x00080000u) {
9530       total_size += 1 +
9531         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->optimize_for());
9532     }
9533 
9534   }
9535   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
9536   SetCachedSize(cached_size);
9537   return total_size;
9538 }
9539 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)9540 void FileOptions::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
9541 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileOptions)
9542   GOOGLE_DCHECK_NE(&from, this);
9543   const FileOptions* source =
9544       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<FileOptions>(
9545           &from);
9546   if (source == nullptr) {
9547   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FileOptions)
9548     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
9549   } else {
9550   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FileOptions)
9551     MergeFrom(*source);
9552   }
9553 }
9554 
MergeFrom(const FileOptions & from)9555 void FileOptions::MergeFrom(const FileOptions& from) {
9556 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FileOptions)
9557   GOOGLE_DCHECK_NE(&from, this);
9558   _extensions_.MergeFrom(from._extensions_);
9559   _internal_metadata_.MergeFrom(from._internal_metadata_);
9560   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9561   (void) cached_has_bits;
9562 
9563   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
9564   cached_has_bits = from._has_bits_[0];
9565   if (cached_has_bits & 0x000000ffu) {
9566     if (cached_has_bits & 0x00000001u) {
9567       set_java_package(from.java_package());
9568     }
9569     if (cached_has_bits & 0x00000002u) {
9570       set_java_outer_classname(from.java_outer_classname());
9571     }
9572     if (cached_has_bits & 0x00000004u) {
9573       set_go_package(from.go_package());
9574     }
9575     if (cached_has_bits & 0x00000008u) {
9576       set_objc_class_prefix(from.objc_class_prefix());
9577     }
9578     if (cached_has_bits & 0x00000010u) {
9579       set_csharp_namespace(from.csharp_namespace());
9580     }
9581     if (cached_has_bits & 0x00000020u) {
9582       set_swift_prefix(from.swift_prefix());
9583     }
9584     if (cached_has_bits & 0x00000040u) {
9585       set_php_class_prefix(from.php_class_prefix());
9586     }
9587     if (cached_has_bits & 0x00000080u) {
9588       set_php_namespace(from.php_namespace());
9589     }
9590   }
9591   if (cached_has_bits & 0x0000ff00u) {
9592     if (cached_has_bits & 0x00000100u) {
9593       set_php_metadata_namespace(from.php_metadata_namespace());
9594     }
9595     if (cached_has_bits & 0x00000200u) {
9596       set_ruby_package(from.ruby_package());
9597     }
9598     if (cached_has_bits & 0x00000400u) {
9599       java_multiple_files_ = from.java_multiple_files_;
9600     }
9601     if (cached_has_bits & 0x00000800u) {
9602       java_generate_equals_and_hash_ = from.java_generate_equals_and_hash_;
9603     }
9604     if (cached_has_bits & 0x00001000u) {
9605       java_string_check_utf8_ = from.java_string_check_utf8_;
9606     }
9607     if (cached_has_bits & 0x00002000u) {
9608       cc_generic_services_ = from.cc_generic_services_;
9609     }
9610     if (cached_has_bits & 0x00004000u) {
9611       java_generic_services_ = from.java_generic_services_;
9612     }
9613     if (cached_has_bits & 0x00008000u) {
9614       py_generic_services_ = from.py_generic_services_;
9615     }
9616     _has_bits_[0] |= cached_has_bits;
9617   }
9618   if (cached_has_bits & 0x000f0000u) {
9619     if (cached_has_bits & 0x00010000u) {
9620       php_generic_services_ = from.php_generic_services_;
9621     }
9622     if (cached_has_bits & 0x00020000u) {
9623       deprecated_ = from.deprecated_;
9624     }
9625     if (cached_has_bits & 0x00040000u) {
9626       cc_enable_arenas_ = from.cc_enable_arenas_;
9627     }
9628     if (cached_has_bits & 0x00080000u) {
9629       optimize_for_ = from.optimize_for_;
9630     }
9631     _has_bits_[0] |= cached_has_bits;
9632   }
9633 }
9634 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)9635 void FileOptions::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
9636 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileOptions)
9637   if (&from == this) return;
9638   Clear();
9639   MergeFrom(from);
9640 }
9641 
CopyFrom(const FileOptions & from)9642 void FileOptions::CopyFrom(const FileOptions& from) {
9643 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileOptions)
9644   if (&from == this) return;
9645   Clear();
9646   MergeFrom(from);
9647 }
9648 
IsInitialized() const9649 bool FileOptions::IsInitialized() const {
9650   if (!_extensions_.IsInitialized()) {
9651     return false;
9652   }
9653 
9654   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->uninterpreted_option())) return false;
9655   return true;
9656 }
9657 
InternalSwap(FileOptions * other)9658 void FileOptions::InternalSwap(FileOptions* other) {
9659   using std::swap;
9660   _extensions_.Swap(&other->_extensions_);
9661   _internal_metadata_.Swap(&other->_internal_metadata_);
9662   swap(_has_bits_[0], other->_has_bits_[0]);
9663   CastToBase(&uninterpreted_option_)->InternalSwap(CastToBase(&other->uninterpreted_option_));
9664   java_package_.Swap(&other->java_package_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
9665     GetArenaNoVirtual());
9666   java_outer_classname_.Swap(&other->java_outer_classname_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
9667     GetArenaNoVirtual());
9668   go_package_.Swap(&other->go_package_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
9669     GetArenaNoVirtual());
9670   objc_class_prefix_.Swap(&other->objc_class_prefix_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
9671     GetArenaNoVirtual());
9672   csharp_namespace_.Swap(&other->csharp_namespace_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
9673     GetArenaNoVirtual());
9674   swift_prefix_.Swap(&other->swift_prefix_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
9675     GetArenaNoVirtual());
9676   php_class_prefix_.Swap(&other->php_class_prefix_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
9677     GetArenaNoVirtual());
9678   php_namespace_.Swap(&other->php_namespace_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
9679     GetArenaNoVirtual());
9680   php_metadata_namespace_.Swap(&other->php_metadata_namespace_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
9681     GetArenaNoVirtual());
9682   ruby_package_.Swap(&other->ruby_package_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
9683     GetArenaNoVirtual());
9684   swap(java_multiple_files_, other->java_multiple_files_);
9685   swap(java_generate_equals_and_hash_, other->java_generate_equals_and_hash_);
9686   swap(java_string_check_utf8_, other->java_string_check_utf8_);
9687   swap(cc_generic_services_, other->cc_generic_services_);
9688   swap(java_generic_services_, other->java_generic_services_);
9689   swap(py_generic_services_, other->py_generic_services_);
9690   swap(php_generic_services_, other->php_generic_services_);
9691   swap(deprecated_, other->deprecated_);
9692   swap(cc_enable_arenas_, other->cc_enable_arenas_);
9693   swap(optimize_for_, other->optimize_for_);
9694 }
9695 
GetMetadata() const9696 ::PROTOBUF_NAMESPACE_ID::Metadata FileOptions::GetMetadata() const {
9697   return GetMetadataStatic();
9698 }
9699 
9700 
9701 // ===================================================================
9702 
InitAsDefaultInstance()9703 void MessageOptions::InitAsDefaultInstance() {
9704 }
9705 class MessageOptions::_Internal {
9706  public:
9707   using HasBits = decltype(std::declval<MessageOptions>()._has_bits_);
set_has_message_set_wire_format(HasBits * has_bits)9708   static void set_has_message_set_wire_format(HasBits* has_bits) {
9709     (*has_bits)[0] |= 1u;
9710   }
set_has_no_standard_descriptor_accessor(HasBits * has_bits)9711   static void set_has_no_standard_descriptor_accessor(HasBits* has_bits) {
9712     (*has_bits)[0] |= 2u;
9713   }
set_has_deprecated(HasBits * has_bits)9714   static void set_has_deprecated(HasBits* has_bits) {
9715     (*has_bits)[0] |= 4u;
9716   }
set_has_map_entry(HasBits * has_bits)9717   static void set_has_map_entry(HasBits* has_bits) {
9718     (*has_bits)[0] |= 8u;
9719   }
9720 };
9721 
MessageOptions()9722 MessageOptions::MessageOptions()
9723   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
9724   SharedCtor();
9725   // @@protoc_insertion_point(constructor:google.protobuf.MessageOptions)
9726 }
MessageOptions(::PROTOBUF_NAMESPACE_ID::Arena * arena)9727 MessageOptions::MessageOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena)
9728   : ::PROTOBUF_NAMESPACE_ID::Message(),
9729   _extensions_(arena),
9730   _internal_metadata_(arena),
9731   uninterpreted_option_(arena) {
9732   SharedCtor();
9733   RegisterArenaDtor(arena);
9734   // @@protoc_insertion_point(arena_constructor:google.protobuf.MessageOptions)
9735 }
MessageOptions(const MessageOptions & from)9736 MessageOptions::MessageOptions(const MessageOptions& from)
9737   : ::PROTOBUF_NAMESPACE_ID::Message(),
9738       _internal_metadata_(nullptr),
9739       _has_bits_(from._has_bits_),
9740       uninterpreted_option_(from.uninterpreted_option_) {
9741   _internal_metadata_.MergeFrom(from._internal_metadata_);
9742   _extensions_.MergeFrom(from._extensions_);
9743   ::memcpy(&message_set_wire_format_, &from.message_set_wire_format_,
9744     static_cast<size_t>(reinterpret_cast<char*>(&map_entry_) -
9745     reinterpret_cast<char*>(&message_set_wire_format_)) + sizeof(map_entry_));
9746   // @@protoc_insertion_point(copy_constructor:google.protobuf.MessageOptions)
9747 }
9748 
SharedCtor()9749 void MessageOptions::SharedCtor() {
9750   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MessageOptions_google_2fprotobuf_2fdescriptor_2eproto.base);
9751   ::memset(&message_set_wire_format_, 0, static_cast<size_t>(
9752       reinterpret_cast<char*>(&map_entry_) -
9753       reinterpret_cast<char*>(&message_set_wire_format_)) + sizeof(map_entry_));
9754 }
9755 
~MessageOptions()9756 MessageOptions::~MessageOptions() {
9757   // @@protoc_insertion_point(destructor:google.protobuf.MessageOptions)
9758   SharedDtor();
9759 }
9760 
SharedDtor()9761 void MessageOptions::SharedDtor() {
9762   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
9763 }
9764 
ArenaDtor(void * object)9765 void MessageOptions::ArenaDtor(void* object) {
9766   MessageOptions* _this = reinterpret_cast< MessageOptions* >(object);
9767   (void)_this;
9768 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)9769 void MessageOptions::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
9770 }
SetCachedSize(int size) const9771 void MessageOptions::SetCachedSize(int size) const {
9772   _cached_size_.Set(size);
9773 }
default_instance()9774 const MessageOptions& MessageOptions::default_instance() {
9775   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MessageOptions_google_2fprotobuf_2fdescriptor_2eproto.base);
9776   return *internal_default_instance();
9777 }
9778 
9779 
Clear()9780 void MessageOptions::Clear() {
9781 // @@protoc_insertion_point(message_clear_start:google.protobuf.MessageOptions)
9782   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9783   // Prevent compiler warnings about cached_has_bits being unused
9784   (void) cached_has_bits;
9785 
9786   _extensions_.Clear();
9787   uninterpreted_option_.Clear();
9788   ::memset(&message_set_wire_format_, 0, static_cast<size_t>(
9789       reinterpret_cast<char*>(&map_entry_) -
9790       reinterpret_cast<char*>(&message_set_wire_format_)) + sizeof(map_entry_));
9791   _has_bits_.Clear();
9792   _internal_metadata_.Clear();
9793 }
9794 
9795 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)9796 const char* MessageOptions::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
9797 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9798   _Internal::HasBits has_bits{};
9799   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
9800   while (!ctx->Done(&ptr)) {
9801     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
9802     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
9803     CHK_(ptr);
9804     switch (tag >> 3) {
9805       // optional bool message_set_wire_format = 1 [default = false];
9806       case 1:
9807         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
9808           _Internal::set_has_message_set_wire_format(&has_bits);
9809           message_set_wire_format_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
9810           CHK_(ptr);
9811         } else goto handle_unusual;
9812         continue;
9813       // optional bool no_standard_descriptor_accessor = 2 [default = false];
9814       case 2:
9815         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
9816           _Internal::set_has_no_standard_descriptor_accessor(&has_bits);
9817           no_standard_descriptor_accessor_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
9818           CHK_(ptr);
9819         } else goto handle_unusual;
9820         continue;
9821       // optional bool deprecated = 3 [default = false];
9822       case 3:
9823         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
9824           _Internal::set_has_deprecated(&has_bits);
9825           deprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
9826           CHK_(ptr);
9827         } else goto handle_unusual;
9828         continue;
9829       // optional bool map_entry = 7;
9830       case 7:
9831         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
9832           _Internal::set_has_map_entry(&has_bits);
9833           map_entry_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
9834           CHK_(ptr);
9835         } else goto handle_unusual;
9836         continue;
9837       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9838       case 999:
9839         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
9840           ptr -= 2;
9841           do {
9842             ptr += 2;
9843             ptr = ctx->ParseMessage(add_uninterpreted_option(), ptr);
9844             CHK_(ptr);
9845             if (!ctx->DataAvailable(ptr)) break;
9846           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint16>(ptr) == 16058);
9847         } else goto handle_unusual;
9848         continue;
9849       default: {
9850       handle_unusual:
9851         if ((tag & 7) == 4 || tag == 0) {
9852           ctx->SetLastTag(tag);
9853           goto success;
9854         }
9855       if ((8000u <= tag)) {
9856         ptr = _extensions_.ParseField(tag, ptr,
9857             internal_default_instance(), &_internal_metadata_, ctx);
9858         CHK_(ptr != nullptr);
9859         continue;
9860       }
9861         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
9862         CHK_(ptr != nullptr);
9863         continue;
9864       }
9865     }  // switch
9866   }  // while
9867 success:
9868   _has_bits_.Or(has_bits);
9869   return ptr;
9870 failure:
9871   ptr = nullptr;
9872   goto success;
9873 #undef CHK_
9874 }
9875 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)9876 bool MessageOptions::MergePartialFromCodedStream(
9877     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
9878 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
9879   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
9880   // @@protoc_insertion_point(parse_start:google.protobuf.MessageOptions)
9881   for (;;) {
9882     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
9883     tag = p.first;
9884     if (!p.second) goto handle_unusual;
9885     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9886       // optional bool message_set_wire_format = 1 [default = false];
9887       case 1: {
9888         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
9889           _Internal::set_has_message_set_wire_format(&_has_bits_);
9890           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
9891                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
9892                  input, &message_set_wire_format_)));
9893         } else {
9894           goto handle_unusual;
9895         }
9896         break;
9897       }
9898 
9899       // optional bool no_standard_descriptor_accessor = 2 [default = false];
9900       case 2: {
9901         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
9902           _Internal::set_has_no_standard_descriptor_accessor(&_has_bits_);
9903           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
9904                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
9905                  input, &no_standard_descriptor_accessor_)));
9906         } else {
9907           goto handle_unusual;
9908         }
9909         break;
9910       }
9911 
9912       // optional bool deprecated = 3 [default = false];
9913       case 3: {
9914         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
9915           _Internal::set_has_deprecated(&_has_bits_);
9916           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
9917                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
9918                  input, &deprecated_)));
9919         } else {
9920           goto handle_unusual;
9921         }
9922         break;
9923       }
9924 
9925       // optional bool map_entry = 7;
9926       case 7: {
9927         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (56 & 0xFF)) {
9928           _Internal::set_has_map_entry(&_has_bits_);
9929           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
9930                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
9931                  input, &map_entry_)));
9932         } else {
9933           goto handle_unusual;
9934         }
9935         break;
9936       }
9937 
9938       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9939       case 999: {
9940         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (7994 & 0xFF)) {
9941           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
9942                 input, add_uninterpreted_option()));
9943         } else {
9944           goto handle_unusual;
9945         }
9946         break;
9947       }
9948 
9949       default: {
9950       handle_unusual:
9951         if (tag == 0) {
9952           goto success;
9953         }
9954         if ((8000u <= tag)) {
9955           DO_(_extensions_.ParseField(tag, input,
9956               internal_default_instance(),
9957               _internal_metadata_.mutable_unknown_fields()));
9958           continue;
9959         }
9960         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
9961               input, tag, _internal_metadata_.mutable_unknown_fields()));
9962         break;
9963       }
9964     }
9965   }
9966 success:
9967   // @@protoc_insertion_point(parse_success:google.protobuf.MessageOptions)
9968   return true;
9969 failure:
9970   // @@protoc_insertion_point(parse_failure:google.protobuf.MessageOptions)
9971   return false;
9972 #undef DO_
9973 }
9974 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9975 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const9976 void MessageOptions::SerializeWithCachedSizes(
9977     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
9978   // @@protoc_insertion_point(serialize_start:google.protobuf.MessageOptions)
9979   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
9980   (void) cached_has_bits;
9981 
9982   cached_has_bits = _has_bits_[0];
9983   // optional bool message_set_wire_format = 1 [default = false];
9984   if (cached_has_bits & 0x00000001u) {
9985     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(1, this->message_set_wire_format(), output);
9986   }
9987 
9988   // optional bool no_standard_descriptor_accessor = 2 [default = false];
9989   if (cached_has_bits & 0x00000002u) {
9990     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(2, this->no_standard_descriptor_accessor(), output);
9991   }
9992 
9993   // optional bool deprecated = 3 [default = false];
9994   if (cached_has_bits & 0x00000004u) {
9995     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(3, this->deprecated(), output);
9996   }
9997 
9998   // optional bool map_entry = 7;
9999   if (cached_has_bits & 0x00000008u) {
10000     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(7, this->map_entry(), output);
10001   }
10002 
10003   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10004   for (unsigned int i = 0,
10005       n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
10006     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
10007       999,
10008       this->uninterpreted_option(static_cast<int>(i)),
10009       output);
10010   }
10011 
10012   // Extension range [1000, 536870912)
10013   _extensions_.SerializeWithCachedSizes(1000, 536870912, output);
10014 
10015   if (_internal_metadata_.have_unknown_fields()) {
10016     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
10017         _internal_metadata_.unknown_fields(), output);
10018   }
10019   // @@protoc_insertion_point(serialize_end:google.protobuf.MessageOptions)
10020 }
10021 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const10022 ::PROTOBUF_NAMESPACE_ID::uint8* MessageOptions::InternalSerializeWithCachedSizesToArray(
10023     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
10024   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MessageOptions)
10025   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10026   (void) cached_has_bits;
10027 
10028   cached_has_bits = _has_bits_[0];
10029   // optional bool message_set_wire_format = 1 [default = false];
10030   if (cached_has_bits & 0x00000001u) {
10031     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->message_set_wire_format(), target);
10032   }
10033 
10034   // optional bool no_standard_descriptor_accessor = 2 [default = false];
10035   if (cached_has_bits & 0x00000002u) {
10036     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->no_standard_descriptor_accessor(), target);
10037   }
10038 
10039   // optional bool deprecated = 3 [default = false];
10040   if (cached_has_bits & 0x00000004u) {
10041     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target);
10042   }
10043 
10044   // optional bool map_entry = 7;
10045   if (cached_has_bits & 0x00000008u) {
10046     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->map_entry(), target);
10047   }
10048 
10049   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10050   for (unsigned int i = 0,
10051       n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
10052     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
10053       InternalWriteMessageToArray(
10054         999, this->uninterpreted_option(static_cast<int>(i)), target);
10055   }
10056 
10057   // Extension range [1000, 536870912)
10058   target = _extensions_.InternalSerializeWithCachedSizesToArray(
10059       1000, 536870912, target);
10060 
10061   if (_internal_metadata_.have_unknown_fields()) {
10062     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
10063         _internal_metadata_.unknown_fields(), target);
10064   }
10065   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MessageOptions)
10066   return target;
10067 }
10068 
ByteSizeLong() const10069 size_t MessageOptions::ByteSizeLong() const {
10070 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MessageOptions)
10071   size_t total_size = 0;
10072 
10073   total_size += _extensions_.ByteSize();
10074 
10075   if (_internal_metadata_.have_unknown_fields()) {
10076     total_size +=
10077       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
10078         _internal_metadata_.unknown_fields());
10079   }
10080   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10081   // Prevent compiler warnings about cached_has_bits being unused
10082   (void) cached_has_bits;
10083 
10084   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10085   {
10086     unsigned int count = static_cast<unsigned int>(this->uninterpreted_option_size());
10087     total_size += 2UL * count;
10088     for (unsigned int i = 0; i < count; i++) {
10089       total_size +=
10090         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
10091           this->uninterpreted_option(static_cast<int>(i)));
10092     }
10093   }
10094 
10095   cached_has_bits = _has_bits_[0];
10096   if (cached_has_bits & 0x0000000fu) {
10097     // optional bool message_set_wire_format = 1 [default = false];
10098     if (cached_has_bits & 0x00000001u) {
10099       total_size += 1 + 1;
10100     }
10101 
10102     // optional bool no_standard_descriptor_accessor = 2 [default = false];
10103     if (cached_has_bits & 0x00000002u) {
10104       total_size += 1 + 1;
10105     }
10106 
10107     // optional bool deprecated = 3 [default = false];
10108     if (cached_has_bits & 0x00000004u) {
10109       total_size += 1 + 1;
10110     }
10111 
10112     // optional bool map_entry = 7;
10113     if (cached_has_bits & 0x00000008u) {
10114       total_size += 1 + 1;
10115     }
10116 
10117   }
10118   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
10119   SetCachedSize(cached_size);
10120   return total_size;
10121 }
10122 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)10123 void MessageOptions::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
10124 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MessageOptions)
10125   GOOGLE_DCHECK_NE(&from, this);
10126   const MessageOptions* source =
10127       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MessageOptions>(
10128           &from);
10129   if (source == nullptr) {
10130   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.MessageOptions)
10131     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
10132   } else {
10133   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.MessageOptions)
10134     MergeFrom(*source);
10135   }
10136 }
10137 
MergeFrom(const MessageOptions & from)10138 void MessageOptions::MergeFrom(const MessageOptions& from) {
10139 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.MessageOptions)
10140   GOOGLE_DCHECK_NE(&from, this);
10141   _extensions_.MergeFrom(from._extensions_);
10142   _internal_metadata_.MergeFrom(from._internal_metadata_);
10143   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10144   (void) cached_has_bits;
10145 
10146   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
10147   cached_has_bits = from._has_bits_[0];
10148   if (cached_has_bits & 0x0000000fu) {
10149     if (cached_has_bits & 0x00000001u) {
10150       message_set_wire_format_ = from.message_set_wire_format_;
10151     }
10152     if (cached_has_bits & 0x00000002u) {
10153       no_standard_descriptor_accessor_ = from.no_standard_descriptor_accessor_;
10154     }
10155     if (cached_has_bits & 0x00000004u) {
10156       deprecated_ = from.deprecated_;
10157     }
10158     if (cached_has_bits & 0x00000008u) {
10159       map_entry_ = from.map_entry_;
10160     }
10161     _has_bits_[0] |= cached_has_bits;
10162   }
10163 }
10164 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)10165 void MessageOptions::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
10166 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MessageOptions)
10167   if (&from == this) return;
10168   Clear();
10169   MergeFrom(from);
10170 }
10171 
CopyFrom(const MessageOptions & from)10172 void MessageOptions::CopyFrom(const MessageOptions& from) {
10173 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.MessageOptions)
10174   if (&from == this) return;
10175   Clear();
10176   MergeFrom(from);
10177 }
10178 
IsInitialized() const10179 bool MessageOptions::IsInitialized() const {
10180   if (!_extensions_.IsInitialized()) {
10181     return false;
10182   }
10183 
10184   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->uninterpreted_option())) return false;
10185   return true;
10186 }
10187 
InternalSwap(MessageOptions * other)10188 void MessageOptions::InternalSwap(MessageOptions* other) {
10189   using std::swap;
10190   _extensions_.Swap(&other->_extensions_);
10191   _internal_metadata_.Swap(&other->_internal_metadata_);
10192   swap(_has_bits_[0], other->_has_bits_[0]);
10193   CastToBase(&uninterpreted_option_)->InternalSwap(CastToBase(&other->uninterpreted_option_));
10194   swap(message_set_wire_format_, other->message_set_wire_format_);
10195   swap(no_standard_descriptor_accessor_, other->no_standard_descriptor_accessor_);
10196   swap(deprecated_, other->deprecated_);
10197   swap(map_entry_, other->map_entry_);
10198 }
10199 
GetMetadata() const10200 ::PROTOBUF_NAMESPACE_ID::Metadata MessageOptions::GetMetadata() const {
10201   return GetMetadataStatic();
10202 }
10203 
10204 
10205 // ===================================================================
10206 
InitAsDefaultInstance()10207 void FieldOptions::InitAsDefaultInstance() {
10208 }
10209 class FieldOptions::_Internal {
10210  public:
10211   using HasBits = decltype(std::declval<FieldOptions>()._has_bits_);
set_has_ctype(HasBits * has_bits)10212   static void set_has_ctype(HasBits* has_bits) {
10213     (*has_bits)[0] |= 1u;
10214   }
set_has_packed(HasBits * has_bits)10215   static void set_has_packed(HasBits* has_bits) {
10216     (*has_bits)[0] |= 2u;
10217   }
set_has_jstype(HasBits * has_bits)10218   static void set_has_jstype(HasBits* has_bits) {
10219     (*has_bits)[0] |= 32u;
10220   }
set_has_lazy(HasBits * has_bits)10221   static void set_has_lazy(HasBits* has_bits) {
10222     (*has_bits)[0] |= 4u;
10223   }
set_has_deprecated(HasBits * has_bits)10224   static void set_has_deprecated(HasBits* has_bits) {
10225     (*has_bits)[0] |= 8u;
10226   }
set_has_weak(HasBits * has_bits)10227   static void set_has_weak(HasBits* has_bits) {
10228     (*has_bits)[0] |= 16u;
10229   }
10230 };
10231 
FieldOptions()10232 FieldOptions::FieldOptions()
10233   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
10234   SharedCtor();
10235   // @@protoc_insertion_point(constructor:google.protobuf.FieldOptions)
10236 }
FieldOptions(::PROTOBUF_NAMESPACE_ID::Arena * arena)10237 FieldOptions::FieldOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena)
10238   : ::PROTOBUF_NAMESPACE_ID::Message(),
10239   _extensions_(arena),
10240   _internal_metadata_(arena),
10241   uninterpreted_option_(arena) {
10242   SharedCtor();
10243   RegisterArenaDtor(arena);
10244   // @@protoc_insertion_point(arena_constructor:google.protobuf.FieldOptions)
10245 }
FieldOptions(const FieldOptions & from)10246 FieldOptions::FieldOptions(const FieldOptions& from)
10247   : ::PROTOBUF_NAMESPACE_ID::Message(),
10248       _internal_metadata_(nullptr),
10249       _has_bits_(from._has_bits_),
10250       uninterpreted_option_(from.uninterpreted_option_) {
10251   _internal_metadata_.MergeFrom(from._internal_metadata_);
10252   _extensions_.MergeFrom(from._extensions_);
10253   ::memcpy(&ctype_, &from.ctype_,
10254     static_cast<size_t>(reinterpret_cast<char*>(&jstype_) -
10255     reinterpret_cast<char*>(&ctype_)) + sizeof(jstype_));
10256   // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldOptions)
10257 }
10258 
SharedCtor()10259 void FieldOptions::SharedCtor() {
10260   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FieldOptions_google_2fprotobuf_2fdescriptor_2eproto.base);
10261   ::memset(&ctype_, 0, static_cast<size_t>(
10262       reinterpret_cast<char*>(&jstype_) -
10263       reinterpret_cast<char*>(&ctype_)) + sizeof(jstype_));
10264 }
10265 
~FieldOptions()10266 FieldOptions::~FieldOptions() {
10267   // @@protoc_insertion_point(destructor:google.protobuf.FieldOptions)
10268   SharedDtor();
10269 }
10270 
SharedDtor()10271 void FieldOptions::SharedDtor() {
10272   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
10273 }
10274 
ArenaDtor(void * object)10275 void FieldOptions::ArenaDtor(void* object) {
10276   FieldOptions* _this = reinterpret_cast< FieldOptions* >(object);
10277   (void)_this;
10278 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)10279 void FieldOptions::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
10280 }
SetCachedSize(int size) const10281 void FieldOptions::SetCachedSize(int size) const {
10282   _cached_size_.Set(size);
10283 }
default_instance()10284 const FieldOptions& FieldOptions::default_instance() {
10285   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FieldOptions_google_2fprotobuf_2fdescriptor_2eproto.base);
10286   return *internal_default_instance();
10287 }
10288 
10289 
Clear()10290 void FieldOptions::Clear() {
10291 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldOptions)
10292   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10293   // Prevent compiler warnings about cached_has_bits being unused
10294   (void) cached_has_bits;
10295 
10296   _extensions_.Clear();
10297   uninterpreted_option_.Clear();
10298   cached_has_bits = _has_bits_[0];
10299   if (cached_has_bits & 0x0000003fu) {
10300     ::memset(&ctype_, 0, static_cast<size_t>(
10301         reinterpret_cast<char*>(&jstype_) -
10302         reinterpret_cast<char*>(&ctype_)) + sizeof(jstype_));
10303   }
10304   _has_bits_.Clear();
10305   _internal_metadata_.Clear();
10306 }
10307 
10308 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)10309 const char* FieldOptions::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
10310 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
10311   _Internal::HasBits has_bits{};
10312   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
10313   while (!ctx->Done(&ptr)) {
10314     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
10315     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
10316     CHK_(ptr);
10317     switch (tag >> 3) {
10318       // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
10319       case 1:
10320         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
10321           ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
10322           CHK_(ptr);
10323           if (PROTOBUF_PREDICT_TRUE(PROTOBUF_NAMESPACE_ID::FieldOptions_CType_IsValid(val))) {
10324             set_ctype(static_cast<PROTOBUF_NAMESPACE_ID::FieldOptions_CType>(val));
10325           } else {
10326             ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
10327           }
10328         } else goto handle_unusual;
10329         continue;
10330       // optional bool packed = 2;
10331       case 2:
10332         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
10333           _Internal::set_has_packed(&has_bits);
10334           packed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
10335           CHK_(ptr);
10336         } else goto handle_unusual;
10337         continue;
10338       // optional bool deprecated = 3 [default = false];
10339       case 3:
10340         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
10341           _Internal::set_has_deprecated(&has_bits);
10342           deprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
10343           CHK_(ptr);
10344         } else goto handle_unusual;
10345         continue;
10346       // optional bool lazy = 5 [default = false];
10347       case 5:
10348         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
10349           _Internal::set_has_lazy(&has_bits);
10350           lazy_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
10351           CHK_(ptr);
10352         } else goto handle_unusual;
10353         continue;
10354       // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
10355       case 6:
10356         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
10357           ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
10358           CHK_(ptr);
10359           if (PROTOBUF_PREDICT_TRUE(PROTOBUF_NAMESPACE_ID::FieldOptions_JSType_IsValid(val))) {
10360             set_jstype(static_cast<PROTOBUF_NAMESPACE_ID::FieldOptions_JSType>(val));
10361           } else {
10362             ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(6, val, mutable_unknown_fields());
10363           }
10364         } else goto handle_unusual;
10365         continue;
10366       // optional bool weak = 10 [default = false];
10367       case 10:
10368         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
10369           _Internal::set_has_weak(&has_bits);
10370           weak_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
10371           CHK_(ptr);
10372         } else goto handle_unusual;
10373         continue;
10374       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10375       case 999:
10376         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
10377           ptr -= 2;
10378           do {
10379             ptr += 2;
10380             ptr = ctx->ParseMessage(add_uninterpreted_option(), ptr);
10381             CHK_(ptr);
10382             if (!ctx->DataAvailable(ptr)) break;
10383           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint16>(ptr) == 16058);
10384         } else goto handle_unusual;
10385         continue;
10386       default: {
10387       handle_unusual:
10388         if ((tag & 7) == 4 || tag == 0) {
10389           ctx->SetLastTag(tag);
10390           goto success;
10391         }
10392       if ((8000u <= tag)) {
10393         ptr = _extensions_.ParseField(tag, ptr,
10394             internal_default_instance(), &_internal_metadata_, ctx);
10395         CHK_(ptr != nullptr);
10396         continue;
10397       }
10398         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
10399         CHK_(ptr != nullptr);
10400         continue;
10401       }
10402     }  // switch
10403   }  // while
10404 success:
10405   _has_bits_.Or(has_bits);
10406   return ptr;
10407 failure:
10408   ptr = nullptr;
10409   goto success;
10410 #undef CHK_
10411 }
10412 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)10413 bool FieldOptions::MergePartialFromCodedStream(
10414     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
10415 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
10416   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
10417   // @@protoc_insertion_point(parse_start:google.protobuf.FieldOptions)
10418   for (;;) {
10419     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
10420     tag = p.first;
10421     if (!p.second) goto handle_unusual;
10422     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10423       // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
10424       case 1: {
10425         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
10426           int value = 0;
10427           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
10428                    int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
10429                  input, &value)));
10430           if (PROTOBUF_NAMESPACE_ID::FieldOptions_CType_IsValid(value)) {
10431             set_ctype(static_cast< PROTOBUF_NAMESPACE_ID::FieldOptions_CType >(value));
10432           } else {
10433             mutable_unknown_fields()->AddVarint(
10434                 1, static_cast<::PROTOBUF_NAMESPACE_ID::uint64>(value));
10435           }
10436         } else {
10437           goto handle_unusual;
10438         }
10439         break;
10440       }
10441 
10442       // optional bool packed = 2;
10443       case 2: {
10444         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
10445           _Internal::set_has_packed(&_has_bits_);
10446           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
10447                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
10448                  input, &packed_)));
10449         } else {
10450           goto handle_unusual;
10451         }
10452         break;
10453       }
10454 
10455       // optional bool deprecated = 3 [default = false];
10456       case 3: {
10457         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
10458           _Internal::set_has_deprecated(&_has_bits_);
10459           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
10460                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
10461                  input, &deprecated_)));
10462         } else {
10463           goto handle_unusual;
10464         }
10465         break;
10466       }
10467 
10468       // optional bool lazy = 5 [default = false];
10469       case 5: {
10470         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
10471           _Internal::set_has_lazy(&_has_bits_);
10472           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
10473                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
10474                  input, &lazy_)));
10475         } else {
10476           goto handle_unusual;
10477         }
10478         break;
10479       }
10480 
10481       // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
10482       case 6: {
10483         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) {
10484           int value = 0;
10485           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
10486                    int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
10487                  input, &value)));
10488           if (PROTOBUF_NAMESPACE_ID::FieldOptions_JSType_IsValid(value)) {
10489             set_jstype(static_cast< PROTOBUF_NAMESPACE_ID::FieldOptions_JSType >(value));
10490           } else {
10491             mutable_unknown_fields()->AddVarint(
10492                 6, static_cast<::PROTOBUF_NAMESPACE_ID::uint64>(value));
10493           }
10494         } else {
10495           goto handle_unusual;
10496         }
10497         break;
10498       }
10499 
10500       // optional bool weak = 10 [default = false];
10501       case 10: {
10502         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (80 & 0xFF)) {
10503           _Internal::set_has_weak(&_has_bits_);
10504           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
10505                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
10506                  input, &weak_)));
10507         } else {
10508           goto handle_unusual;
10509         }
10510         break;
10511       }
10512 
10513       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10514       case 999: {
10515         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (7994 & 0xFF)) {
10516           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
10517                 input, add_uninterpreted_option()));
10518         } else {
10519           goto handle_unusual;
10520         }
10521         break;
10522       }
10523 
10524       default: {
10525       handle_unusual:
10526         if (tag == 0) {
10527           goto success;
10528         }
10529         if ((8000u <= tag)) {
10530           DO_(_extensions_.ParseField(tag, input,
10531               internal_default_instance(),
10532               _internal_metadata_.mutable_unknown_fields()));
10533           continue;
10534         }
10535         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
10536               input, tag, _internal_metadata_.mutable_unknown_fields()));
10537         break;
10538       }
10539     }
10540   }
10541 success:
10542   // @@protoc_insertion_point(parse_success:google.protobuf.FieldOptions)
10543   return true;
10544 failure:
10545   // @@protoc_insertion_point(parse_failure:google.protobuf.FieldOptions)
10546   return false;
10547 #undef DO_
10548 }
10549 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10550 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const10551 void FieldOptions::SerializeWithCachedSizes(
10552     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
10553   // @@protoc_insertion_point(serialize_start:google.protobuf.FieldOptions)
10554   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10555   (void) cached_has_bits;
10556 
10557   cached_has_bits = _has_bits_[0];
10558   // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
10559   if (cached_has_bits & 0x00000001u) {
10560     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
10561       1, this->ctype(), output);
10562   }
10563 
10564   // optional bool packed = 2;
10565   if (cached_has_bits & 0x00000002u) {
10566     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(2, this->packed(), output);
10567   }
10568 
10569   // optional bool deprecated = 3 [default = false];
10570   if (cached_has_bits & 0x00000008u) {
10571     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(3, this->deprecated(), output);
10572   }
10573 
10574   // optional bool lazy = 5 [default = false];
10575   if (cached_has_bits & 0x00000004u) {
10576     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(5, this->lazy(), output);
10577   }
10578 
10579   // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
10580   if (cached_has_bits & 0x00000020u) {
10581     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
10582       6, this->jstype(), output);
10583   }
10584 
10585   // optional bool weak = 10 [default = false];
10586   if (cached_has_bits & 0x00000010u) {
10587     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(10, this->weak(), output);
10588   }
10589 
10590   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10591   for (unsigned int i = 0,
10592       n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
10593     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
10594       999,
10595       this->uninterpreted_option(static_cast<int>(i)),
10596       output);
10597   }
10598 
10599   // Extension range [1000, 536870912)
10600   _extensions_.SerializeWithCachedSizes(1000, 536870912, output);
10601 
10602   if (_internal_metadata_.have_unknown_fields()) {
10603     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
10604         _internal_metadata_.unknown_fields(), output);
10605   }
10606   // @@protoc_insertion_point(serialize_end:google.protobuf.FieldOptions)
10607 }
10608 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const10609 ::PROTOBUF_NAMESPACE_ID::uint8* FieldOptions::InternalSerializeWithCachedSizesToArray(
10610     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
10611   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldOptions)
10612   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10613   (void) cached_has_bits;
10614 
10615   cached_has_bits = _has_bits_[0];
10616   // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
10617   if (cached_has_bits & 0x00000001u) {
10618     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
10619       1, this->ctype(), target);
10620   }
10621 
10622   // optional bool packed = 2;
10623   if (cached_has_bits & 0x00000002u) {
10624     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->packed(), target);
10625   }
10626 
10627   // optional bool deprecated = 3 [default = false];
10628   if (cached_has_bits & 0x00000008u) {
10629     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target);
10630   }
10631 
10632   // optional bool lazy = 5 [default = false];
10633   if (cached_has_bits & 0x00000004u) {
10634     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->lazy(), target);
10635   }
10636 
10637   // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
10638   if (cached_has_bits & 0x00000020u) {
10639     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
10640       6, this->jstype(), target);
10641   }
10642 
10643   // optional bool weak = 10 [default = false];
10644   if (cached_has_bits & 0x00000010u) {
10645     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(10, this->weak(), target);
10646   }
10647 
10648   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10649   for (unsigned int i = 0,
10650       n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
10651     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
10652       InternalWriteMessageToArray(
10653         999, this->uninterpreted_option(static_cast<int>(i)), target);
10654   }
10655 
10656   // Extension range [1000, 536870912)
10657   target = _extensions_.InternalSerializeWithCachedSizesToArray(
10658       1000, 536870912, target);
10659 
10660   if (_internal_metadata_.have_unknown_fields()) {
10661     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
10662         _internal_metadata_.unknown_fields(), target);
10663   }
10664   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldOptions)
10665   return target;
10666 }
10667 
ByteSizeLong() const10668 size_t FieldOptions::ByteSizeLong() const {
10669 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldOptions)
10670   size_t total_size = 0;
10671 
10672   total_size += _extensions_.ByteSize();
10673 
10674   if (_internal_metadata_.have_unknown_fields()) {
10675     total_size +=
10676       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
10677         _internal_metadata_.unknown_fields());
10678   }
10679   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10680   // Prevent compiler warnings about cached_has_bits being unused
10681   (void) cached_has_bits;
10682 
10683   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10684   {
10685     unsigned int count = static_cast<unsigned int>(this->uninterpreted_option_size());
10686     total_size += 2UL * count;
10687     for (unsigned int i = 0; i < count; i++) {
10688       total_size +=
10689         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
10690           this->uninterpreted_option(static_cast<int>(i)));
10691     }
10692   }
10693 
10694   cached_has_bits = _has_bits_[0];
10695   if (cached_has_bits & 0x0000003fu) {
10696     // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
10697     if (cached_has_bits & 0x00000001u) {
10698       total_size += 1 +
10699         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->ctype());
10700     }
10701 
10702     // optional bool packed = 2;
10703     if (cached_has_bits & 0x00000002u) {
10704       total_size += 1 + 1;
10705     }
10706 
10707     // optional bool lazy = 5 [default = false];
10708     if (cached_has_bits & 0x00000004u) {
10709       total_size += 1 + 1;
10710     }
10711 
10712     // optional bool deprecated = 3 [default = false];
10713     if (cached_has_bits & 0x00000008u) {
10714       total_size += 1 + 1;
10715     }
10716 
10717     // optional bool weak = 10 [default = false];
10718     if (cached_has_bits & 0x00000010u) {
10719       total_size += 1 + 1;
10720     }
10721 
10722     // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
10723     if (cached_has_bits & 0x00000020u) {
10724       total_size += 1 +
10725         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->jstype());
10726     }
10727 
10728   }
10729   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
10730   SetCachedSize(cached_size);
10731   return total_size;
10732 }
10733 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)10734 void FieldOptions::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
10735 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldOptions)
10736   GOOGLE_DCHECK_NE(&from, this);
10737   const FieldOptions* source =
10738       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<FieldOptions>(
10739           &from);
10740   if (source == nullptr) {
10741   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FieldOptions)
10742     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
10743   } else {
10744   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FieldOptions)
10745     MergeFrom(*source);
10746   }
10747 }
10748 
MergeFrom(const FieldOptions & from)10749 void FieldOptions::MergeFrom(const FieldOptions& from) {
10750 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FieldOptions)
10751   GOOGLE_DCHECK_NE(&from, this);
10752   _extensions_.MergeFrom(from._extensions_);
10753   _internal_metadata_.MergeFrom(from._internal_metadata_);
10754   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10755   (void) cached_has_bits;
10756 
10757   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
10758   cached_has_bits = from._has_bits_[0];
10759   if (cached_has_bits & 0x0000003fu) {
10760     if (cached_has_bits & 0x00000001u) {
10761       ctype_ = from.ctype_;
10762     }
10763     if (cached_has_bits & 0x00000002u) {
10764       packed_ = from.packed_;
10765     }
10766     if (cached_has_bits & 0x00000004u) {
10767       lazy_ = from.lazy_;
10768     }
10769     if (cached_has_bits & 0x00000008u) {
10770       deprecated_ = from.deprecated_;
10771     }
10772     if (cached_has_bits & 0x00000010u) {
10773       weak_ = from.weak_;
10774     }
10775     if (cached_has_bits & 0x00000020u) {
10776       jstype_ = from.jstype_;
10777     }
10778     _has_bits_[0] |= cached_has_bits;
10779   }
10780 }
10781 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)10782 void FieldOptions::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
10783 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldOptions)
10784   if (&from == this) return;
10785   Clear();
10786   MergeFrom(from);
10787 }
10788 
CopyFrom(const FieldOptions & from)10789 void FieldOptions::CopyFrom(const FieldOptions& from) {
10790 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FieldOptions)
10791   if (&from == this) return;
10792   Clear();
10793   MergeFrom(from);
10794 }
10795 
IsInitialized() const10796 bool FieldOptions::IsInitialized() const {
10797   if (!_extensions_.IsInitialized()) {
10798     return false;
10799   }
10800 
10801   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->uninterpreted_option())) return false;
10802   return true;
10803 }
10804 
InternalSwap(FieldOptions * other)10805 void FieldOptions::InternalSwap(FieldOptions* other) {
10806   using std::swap;
10807   _extensions_.Swap(&other->_extensions_);
10808   _internal_metadata_.Swap(&other->_internal_metadata_);
10809   swap(_has_bits_[0], other->_has_bits_[0]);
10810   CastToBase(&uninterpreted_option_)->InternalSwap(CastToBase(&other->uninterpreted_option_));
10811   swap(ctype_, other->ctype_);
10812   swap(packed_, other->packed_);
10813   swap(lazy_, other->lazy_);
10814   swap(deprecated_, other->deprecated_);
10815   swap(weak_, other->weak_);
10816   swap(jstype_, other->jstype_);
10817 }
10818 
GetMetadata() const10819 ::PROTOBUF_NAMESPACE_ID::Metadata FieldOptions::GetMetadata() const {
10820   return GetMetadataStatic();
10821 }
10822 
10823 
10824 // ===================================================================
10825 
InitAsDefaultInstance()10826 void OneofOptions::InitAsDefaultInstance() {
10827 }
10828 class OneofOptions::_Internal {
10829  public:
10830   using HasBits = decltype(std::declval<OneofOptions>()._has_bits_);
10831 };
10832 
OneofOptions()10833 OneofOptions::OneofOptions()
10834   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
10835   SharedCtor();
10836   // @@protoc_insertion_point(constructor:google.protobuf.OneofOptions)
10837 }
OneofOptions(::PROTOBUF_NAMESPACE_ID::Arena * arena)10838 OneofOptions::OneofOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena)
10839   : ::PROTOBUF_NAMESPACE_ID::Message(),
10840   _extensions_(arena),
10841   _internal_metadata_(arena),
10842   uninterpreted_option_(arena) {
10843   SharedCtor();
10844   RegisterArenaDtor(arena);
10845   // @@protoc_insertion_point(arena_constructor:google.protobuf.OneofOptions)
10846 }
OneofOptions(const OneofOptions & from)10847 OneofOptions::OneofOptions(const OneofOptions& from)
10848   : ::PROTOBUF_NAMESPACE_ID::Message(),
10849       _internal_metadata_(nullptr),
10850       _has_bits_(from._has_bits_),
10851       uninterpreted_option_(from.uninterpreted_option_) {
10852   _internal_metadata_.MergeFrom(from._internal_metadata_);
10853   _extensions_.MergeFrom(from._extensions_);
10854   // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofOptions)
10855 }
10856 
SharedCtor()10857 void OneofOptions::SharedCtor() {
10858   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OneofOptions_google_2fprotobuf_2fdescriptor_2eproto.base);
10859 }
10860 
~OneofOptions()10861 OneofOptions::~OneofOptions() {
10862   // @@protoc_insertion_point(destructor:google.protobuf.OneofOptions)
10863   SharedDtor();
10864 }
10865 
SharedDtor()10866 void OneofOptions::SharedDtor() {
10867   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
10868 }
10869 
ArenaDtor(void * object)10870 void OneofOptions::ArenaDtor(void* object) {
10871   OneofOptions* _this = reinterpret_cast< OneofOptions* >(object);
10872   (void)_this;
10873 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)10874 void OneofOptions::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
10875 }
SetCachedSize(int size) const10876 void OneofOptions::SetCachedSize(int size) const {
10877   _cached_size_.Set(size);
10878 }
default_instance()10879 const OneofOptions& OneofOptions::default_instance() {
10880   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OneofOptions_google_2fprotobuf_2fdescriptor_2eproto.base);
10881   return *internal_default_instance();
10882 }
10883 
10884 
Clear()10885 void OneofOptions::Clear() {
10886 // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofOptions)
10887   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10888   // Prevent compiler warnings about cached_has_bits being unused
10889   (void) cached_has_bits;
10890 
10891   _extensions_.Clear();
10892   uninterpreted_option_.Clear();
10893   _has_bits_.Clear();
10894   _internal_metadata_.Clear();
10895 }
10896 
10897 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)10898 const char* OneofOptions::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
10899 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
10900   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
10901   while (!ctx->Done(&ptr)) {
10902     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
10903     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
10904     CHK_(ptr);
10905     switch (tag >> 3) {
10906       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10907       case 999:
10908         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
10909           ptr -= 2;
10910           do {
10911             ptr += 2;
10912             ptr = ctx->ParseMessage(add_uninterpreted_option(), ptr);
10913             CHK_(ptr);
10914             if (!ctx->DataAvailable(ptr)) break;
10915           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint16>(ptr) == 16058);
10916         } else goto handle_unusual;
10917         continue;
10918       default: {
10919       handle_unusual:
10920         if ((tag & 7) == 4 || tag == 0) {
10921           ctx->SetLastTag(tag);
10922           goto success;
10923         }
10924       if ((8000u <= tag)) {
10925         ptr = _extensions_.ParseField(tag, ptr,
10926             internal_default_instance(), &_internal_metadata_, ctx);
10927         CHK_(ptr != nullptr);
10928         continue;
10929       }
10930         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
10931         CHK_(ptr != nullptr);
10932         continue;
10933       }
10934     }  // switch
10935   }  // while
10936 success:
10937   return ptr;
10938 failure:
10939   ptr = nullptr;
10940   goto success;
10941 #undef CHK_
10942 }
10943 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)10944 bool OneofOptions::MergePartialFromCodedStream(
10945     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
10946 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
10947   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
10948   // @@protoc_insertion_point(parse_start:google.protobuf.OneofOptions)
10949   for (;;) {
10950     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
10951     tag = p.first;
10952     if (!p.second) goto handle_unusual;
10953     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10954       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10955       case 999: {
10956         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (7994 & 0xFF)) {
10957           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
10958                 input, add_uninterpreted_option()));
10959         } else {
10960           goto handle_unusual;
10961         }
10962         break;
10963       }
10964 
10965       default: {
10966       handle_unusual:
10967         if (tag == 0) {
10968           goto success;
10969         }
10970         if ((8000u <= tag)) {
10971           DO_(_extensions_.ParseField(tag, input,
10972               internal_default_instance(),
10973               _internal_metadata_.mutable_unknown_fields()));
10974           continue;
10975         }
10976         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
10977               input, tag, _internal_metadata_.mutable_unknown_fields()));
10978         break;
10979       }
10980     }
10981   }
10982 success:
10983   // @@protoc_insertion_point(parse_success:google.protobuf.OneofOptions)
10984   return true;
10985 failure:
10986   // @@protoc_insertion_point(parse_failure:google.protobuf.OneofOptions)
10987   return false;
10988 #undef DO_
10989 }
10990 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10991 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const10992 void OneofOptions::SerializeWithCachedSizes(
10993     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
10994   // @@protoc_insertion_point(serialize_start:google.protobuf.OneofOptions)
10995   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
10996   (void) cached_has_bits;
10997 
10998   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10999   for (unsigned int i = 0,
11000       n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
11001     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
11002       999,
11003       this->uninterpreted_option(static_cast<int>(i)),
11004       output);
11005   }
11006 
11007   // Extension range [1000, 536870912)
11008   _extensions_.SerializeWithCachedSizes(1000, 536870912, output);
11009 
11010   if (_internal_metadata_.have_unknown_fields()) {
11011     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
11012         _internal_metadata_.unknown_fields(), output);
11013   }
11014   // @@protoc_insertion_point(serialize_end:google.protobuf.OneofOptions)
11015 }
11016 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const11017 ::PROTOBUF_NAMESPACE_ID::uint8* OneofOptions::InternalSerializeWithCachedSizesToArray(
11018     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
11019   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofOptions)
11020   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
11021   (void) cached_has_bits;
11022 
11023   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11024   for (unsigned int i = 0,
11025       n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
11026     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
11027       InternalWriteMessageToArray(
11028         999, this->uninterpreted_option(static_cast<int>(i)), target);
11029   }
11030 
11031   // Extension range [1000, 536870912)
11032   target = _extensions_.InternalSerializeWithCachedSizesToArray(
11033       1000, 536870912, target);
11034 
11035   if (_internal_metadata_.have_unknown_fields()) {
11036     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
11037         _internal_metadata_.unknown_fields(), target);
11038   }
11039   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofOptions)
11040   return target;
11041 }
11042 
ByteSizeLong() const11043 size_t OneofOptions::ByteSizeLong() const {
11044 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofOptions)
11045   size_t total_size = 0;
11046 
11047   total_size += _extensions_.ByteSize();
11048 
11049   if (_internal_metadata_.have_unknown_fields()) {
11050     total_size +=
11051       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
11052         _internal_metadata_.unknown_fields());
11053   }
11054   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
11055   // Prevent compiler warnings about cached_has_bits being unused
11056   (void) cached_has_bits;
11057 
11058   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11059   {
11060     unsigned int count = static_cast<unsigned int>(this->uninterpreted_option_size());
11061     total_size += 2UL * count;
11062     for (unsigned int i = 0; i < count; i++) {
11063       total_size +=
11064         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
11065           this->uninterpreted_option(static_cast<int>(i)));
11066     }
11067   }
11068 
11069   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
11070   SetCachedSize(cached_size);
11071   return total_size;
11072 }
11073 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)11074 void OneofOptions::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
11075 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.OneofOptions)
11076   GOOGLE_DCHECK_NE(&from, this);
11077   const OneofOptions* source =
11078       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<OneofOptions>(
11079           &from);
11080   if (source == nullptr) {
11081   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.OneofOptions)
11082     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
11083   } else {
11084   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.OneofOptions)
11085     MergeFrom(*source);
11086   }
11087 }
11088 
MergeFrom(const OneofOptions & from)11089 void OneofOptions::MergeFrom(const OneofOptions& from) {
11090 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.OneofOptions)
11091   GOOGLE_DCHECK_NE(&from, this);
11092   _extensions_.MergeFrom(from._extensions_);
11093   _internal_metadata_.MergeFrom(from._internal_metadata_);
11094   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
11095   (void) cached_has_bits;
11096 
11097   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
11098 }
11099 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)11100 void OneofOptions::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
11101 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.OneofOptions)
11102   if (&from == this) return;
11103   Clear();
11104   MergeFrom(from);
11105 }
11106 
CopyFrom(const OneofOptions & from)11107 void OneofOptions::CopyFrom(const OneofOptions& from) {
11108 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.OneofOptions)
11109   if (&from == this) return;
11110   Clear();
11111   MergeFrom(from);
11112 }
11113 
IsInitialized() const11114 bool OneofOptions::IsInitialized() const {
11115   if (!_extensions_.IsInitialized()) {
11116     return false;
11117   }
11118 
11119   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->uninterpreted_option())) return false;
11120   return true;
11121 }
11122 
InternalSwap(OneofOptions * other)11123 void OneofOptions::InternalSwap(OneofOptions* other) {
11124   using std::swap;
11125   _extensions_.Swap(&other->_extensions_);
11126   _internal_metadata_.Swap(&other->_internal_metadata_);
11127   swap(_has_bits_[0], other->_has_bits_[0]);
11128   CastToBase(&uninterpreted_option_)->InternalSwap(CastToBase(&other->uninterpreted_option_));
11129 }
11130 
GetMetadata() const11131 ::PROTOBUF_NAMESPACE_ID::Metadata OneofOptions::GetMetadata() const {
11132   return GetMetadataStatic();
11133 }
11134 
11135 
11136 // ===================================================================
11137 
InitAsDefaultInstance()11138 void EnumOptions::InitAsDefaultInstance() {
11139 }
11140 class EnumOptions::_Internal {
11141  public:
11142   using HasBits = decltype(std::declval<EnumOptions>()._has_bits_);
set_has_allow_alias(HasBits * has_bits)11143   static void set_has_allow_alias(HasBits* has_bits) {
11144     (*has_bits)[0] |= 1u;
11145   }
set_has_deprecated(HasBits * has_bits)11146   static void set_has_deprecated(HasBits* has_bits) {
11147     (*has_bits)[0] |= 2u;
11148   }
11149 };
11150 
EnumOptions()11151 EnumOptions::EnumOptions()
11152   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
11153   SharedCtor();
11154   // @@protoc_insertion_point(constructor:google.protobuf.EnumOptions)
11155 }
EnumOptions(::PROTOBUF_NAMESPACE_ID::Arena * arena)11156 EnumOptions::EnumOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena)
11157   : ::PROTOBUF_NAMESPACE_ID::Message(),
11158   _extensions_(arena),
11159   _internal_metadata_(arena),
11160   uninterpreted_option_(arena) {
11161   SharedCtor();
11162   RegisterArenaDtor(arena);
11163   // @@protoc_insertion_point(arena_constructor:google.protobuf.EnumOptions)
11164 }
EnumOptions(const EnumOptions & from)11165 EnumOptions::EnumOptions(const EnumOptions& from)
11166   : ::PROTOBUF_NAMESPACE_ID::Message(),
11167       _internal_metadata_(nullptr),
11168       _has_bits_(from._has_bits_),
11169       uninterpreted_option_(from.uninterpreted_option_) {
11170   _internal_metadata_.MergeFrom(from._internal_metadata_);
11171   _extensions_.MergeFrom(from._extensions_);
11172   ::memcpy(&allow_alias_, &from.allow_alias_,
11173     static_cast<size_t>(reinterpret_cast<char*>(&deprecated_) -
11174     reinterpret_cast<char*>(&allow_alias_)) + sizeof(deprecated_));
11175   // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumOptions)
11176 }
11177 
SharedCtor()11178 void EnumOptions::SharedCtor() {
11179   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EnumOptions_google_2fprotobuf_2fdescriptor_2eproto.base);
11180   ::memset(&allow_alias_, 0, static_cast<size_t>(
11181       reinterpret_cast<char*>(&deprecated_) -
11182       reinterpret_cast<char*>(&allow_alias_)) + sizeof(deprecated_));
11183 }
11184 
~EnumOptions()11185 EnumOptions::~EnumOptions() {
11186   // @@protoc_insertion_point(destructor:google.protobuf.EnumOptions)
11187   SharedDtor();
11188 }
11189 
SharedDtor()11190 void EnumOptions::SharedDtor() {
11191   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
11192 }
11193 
ArenaDtor(void * object)11194 void EnumOptions::ArenaDtor(void* object) {
11195   EnumOptions* _this = reinterpret_cast< EnumOptions* >(object);
11196   (void)_this;
11197 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)11198 void EnumOptions::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
11199 }
SetCachedSize(int size) const11200 void EnumOptions::SetCachedSize(int size) const {
11201   _cached_size_.Set(size);
11202 }
default_instance()11203 const EnumOptions& EnumOptions::default_instance() {
11204   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EnumOptions_google_2fprotobuf_2fdescriptor_2eproto.base);
11205   return *internal_default_instance();
11206 }
11207 
11208 
Clear()11209 void EnumOptions::Clear() {
11210 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumOptions)
11211   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
11212   // Prevent compiler warnings about cached_has_bits being unused
11213   (void) cached_has_bits;
11214 
11215   _extensions_.Clear();
11216   uninterpreted_option_.Clear();
11217   ::memset(&allow_alias_, 0, static_cast<size_t>(
11218       reinterpret_cast<char*>(&deprecated_) -
11219       reinterpret_cast<char*>(&allow_alias_)) + sizeof(deprecated_));
11220   _has_bits_.Clear();
11221   _internal_metadata_.Clear();
11222 }
11223 
11224 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)11225 const char* EnumOptions::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
11226 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
11227   _Internal::HasBits has_bits{};
11228   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
11229   while (!ctx->Done(&ptr)) {
11230     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
11231     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
11232     CHK_(ptr);
11233     switch (tag >> 3) {
11234       // optional bool allow_alias = 2;
11235       case 2:
11236         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
11237           _Internal::set_has_allow_alias(&has_bits);
11238           allow_alias_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
11239           CHK_(ptr);
11240         } else goto handle_unusual;
11241         continue;
11242       // optional bool deprecated = 3 [default = false];
11243       case 3:
11244         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
11245           _Internal::set_has_deprecated(&has_bits);
11246           deprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
11247           CHK_(ptr);
11248         } else goto handle_unusual;
11249         continue;
11250       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11251       case 999:
11252         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
11253           ptr -= 2;
11254           do {
11255             ptr += 2;
11256             ptr = ctx->ParseMessage(add_uninterpreted_option(), ptr);
11257             CHK_(ptr);
11258             if (!ctx->DataAvailable(ptr)) break;
11259           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint16>(ptr) == 16058);
11260         } else goto handle_unusual;
11261         continue;
11262       default: {
11263       handle_unusual:
11264         if ((tag & 7) == 4 || tag == 0) {
11265           ctx->SetLastTag(tag);
11266           goto success;
11267         }
11268       if ((8000u <= tag)) {
11269         ptr = _extensions_.ParseField(tag, ptr,
11270             internal_default_instance(), &_internal_metadata_, ctx);
11271         CHK_(ptr != nullptr);
11272         continue;
11273       }
11274         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
11275         CHK_(ptr != nullptr);
11276         continue;
11277       }
11278     }  // switch
11279   }  // while
11280 success:
11281   _has_bits_.Or(has_bits);
11282   return ptr;
11283 failure:
11284   ptr = nullptr;
11285   goto success;
11286 #undef CHK_
11287 }
11288 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)11289 bool EnumOptions::MergePartialFromCodedStream(
11290     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
11291 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
11292   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
11293   // @@protoc_insertion_point(parse_start:google.protobuf.EnumOptions)
11294   for (;;) {
11295     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
11296     tag = p.first;
11297     if (!p.second) goto handle_unusual;
11298     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11299       // optional bool allow_alias = 2;
11300       case 2: {
11301         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
11302           _Internal::set_has_allow_alias(&_has_bits_);
11303           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
11304                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
11305                  input, &allow_alias_)));
11306         } else {
11307           goto handle_unusual;
11308         }
11309         break;
11310       }
11311 
11312       // optional bool deprecated = 3 [default = false];
11313       case 3: {
11314         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
11315           _Internal::set_has_deprecated(&_has_bits_);
11316           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
11317                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
11318                  input, &deprecated_)));
11319         } else {
11320           goto handle_unusual;
11321         }
11322         break;
11323       }
11324 
11325       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11326       case 999: {
11327         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (7994 & 0xFF)) {
11328           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
11329                 input, add_uninterpreted_option()));
11330         } else {
11331           goto handle_unusual;
11332         }
11333         break;
11334       }
11335 
11336       default: {
11337       handle_unusual:
11338         if (tag == 0) {
11339           goto success;
11340         }
11341         if ((8000u <= tag)) {
11342           DO_(_extensions_.ParseField(tag, input,
11343               internal_default_instance(),
11344               _internal_metadata_.mutable_unknown_fields()));
11345           continue;
11346         }
11347         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
11348               input, tag, _internal_metadata_.mutable_unknown_fields()));
11349         break;
11350       }
11351     }
11352   }
11353 success:
11354   // @@protoc_insertion_point(parse_success:google.protobuf.EnumOptions)
11355   return true;
11356 failure:
11357   // @@protoc_insertion_point(parse_failure:google.protobuf.EnumOptions)
11358   return false;
11359 #undef DO_
11360 }
11361 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
11362 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const11363 void EnumOptions::SerializeWithCachedSizes(
11364     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
11365   // @@protoc_insertion_point(serialize_start:google.protobuf.EnumOptions)
11366   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
11367   (void) cached_has_bits;
11368 
11369   cached_has_bits = _has_bits_[0];
11370   // optional bool allow_alias = 2;
11371   if (cached_has_bits & 0x00000001u) {
11372     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(2, this->allow_alias(), output);
11373   }
11374 
11375   // optional bool deprecated = 3 [default = false];
11376   if (cached_has_bits & 0x00000002u) {
11377     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(3, this->deprecated(), output);
11378   }
11379 
11380   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11381   for (unsigned int i = 0,
11382       n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
11383     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
11384       999,
11385       this->uninterpreted_option(static_cast<int>(i)),
11386       output);
11387   }
11388 
11389   // Extension range [1000, 536870912)
11390   _extensions_.SerializeWithCachedSizes(1000, 536870912, output);
11391 
11392   if (_internal_metadata_.have_unknown_fields()) {
11393     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
11394         _internal_metadata_.unknown_fields(), output);
11395   }
11396   // @@protoc_insertion_point(serialize_end:google.protobuf.EnumOptions)
11397 }
11398 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const11399 ::PROTOBUF_NAMESPACE_ID::uint8* EnumOptions::InternalSerializeWithCachedSizesToArray(
11400     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
11401   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumOptions)
11402   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
11403   (void) cached_has_bits;
11404 
11405   cached_has_bits = _has_bits_[0];
11406   // optional bool allow_alias = 2;
11407   if (cached_has_bits & 0x00000001u) {
11408     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->allow_alias(), target);
11409   }
11410 
11411   // optional bool deprecated = 3 [default = false];
11412   if (cached_has_bits & 0x00000002u) {
11413     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target);
11414   }
11415 
11416   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11417   for (unsigned int i = 0,
11418       n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
11419     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
11420       InternalWriteMessageToArray(
11421         999, this->uninterpreted_option(static_cast<int>(i)), target);
11422   }
11423 
11424   // Extension range [1000, 536870912)
11425   target = _extensions_.InternalSerializeWithCachedSizesToArray(
11426       1000, 536870912, target);
11427 
11428   if (_internal_metadata_.have_unknown_fields()) {
11429     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
11430         _internal_metadata_.unknown_fields(), target);
11431   }
11432   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumOptions)
11433   return target;
11434 }
11435 
ByteSizeLong() const11436 size_t EnumOptions::ByteSizeLong() const {
11437 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumOptions)
11438   size_t total_size = 0;
11439 
11440   total_size += _extensions_.ByteSize();
11441 
11442   if (_internal_metadata_.have_unknown_fields()) {
11443     total_size +=
11444       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
11445         _internal_metadata_.unknown_fields());
11446   }
11447   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
11448   // Prevent compiler warnings about cached_has_bits being unused
11449   (void) cached_has_bits;
11450 
11451   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11452   {
11453     unsigned int count = static_cast<unsigned int>(this->uninterpreted_option_size());
11454     total_size += 2UL * count;
11455     for (unsigned int i = 0; i < count; i++) {
11456       total_size +=
11457         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
11458           this->uninterpreted_option(static_cast<int>(i)));
11459     }
11460   }
11461 
11462   cached_has_bits = _has_bits_[0];
11463   if (cached_has_bits & 0x00000003u) {
11464     // optional bool allow_alias = 2;
11465     if (cached_has_bits & 0x00000001u) {
11466       total_size += 1 + 1;
11467     }
11468 
11469     // optional bool deprecated = 3 [default = false];
11470     if (cached_has_bits & 0x00000002u) {
11471       total_size += 1 + 1;
11472     }
11473 
11474   }
11475   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
11476   SetCachedSize(cached_size);
11477   return total_size;
11478 }
11479 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)11480 void EnumOptions::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
11481 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumOptions)
11482   GOOGLE_DCHECK_NE(&from, this);
11483   const EnumOptions* source =
11484       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<EnumOptions>(
11485           &from);
11486   if (source == nullptr) {
11487   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.EnumOptions)
11488     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
11489   } else {
11490   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumOptions)
11491     MergeFrom(*source);
11492   }
11493 }
11494 
MergeFrom(const EnumOptions & from)11495 void EnumOptions::MergeFrom(const EnumOptions& from) {
11496 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumOptions)
11497   GOOGLE_DCHECK_NE(&from, this);
11498   _extensions_.MergeFrom(from._extensions_);
11499   _internal_metadata_.MergeFrom(from._internal_metadata_);
11500   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
11501   (void) cached_has_bits;
11502 
11503   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
11504   cached_has_bits = from._has_bits_[0];
11505   if (cached_has_bits & 0x00000003u) {
11506     if (cached_has_bits & 0x00000001u) {
11507       allow_alias_ = from.allow_alias_;
11508     }
11509     if (cached_has_bits & 0x00000002u) {
11510       deprecated_ = from.deprecated_;
11511     }
11512     _has_bits_[0] |= cached_has_bits;
11513   }
11514 }
11515 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)11516 void EnumOptions::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
11517 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumOptions)
11518   if (&from == this) return;
11519   Clear();
11520   MergeFrom(from);
11521 }
11522 
CopyFrom(const EnumOptions & from)11523 void EnumOptions::CopyFrom(const EnumOptions& from) {
11524 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumOptions)
11525   if (&from == this) return;
11526   Clear();
11527   MergeFrom(from);
11528 }
11529 
IsInitialized() const11530 bool EnumOptions::IsInitialized() const {
11531   if (!_extensions_.IsInitialized()) {
11532     return false;
11533   }
11534 
11535   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->uninterpreted_option())) return false;
11536   return true;
11537 }
11538 
InternalSwap(EnumOptions * other)11539 void EnumOptions::InternalSwap(EnumOptions* other) {
11540   using std::swap;
11541   _extensions_.Swap(&other->_extensions_);
11542   _internal_metadata_.Swap(&other->_internal_metadata_);
11543   swap(_has_bits_[0], other->_has_bits_[0]);
11544   CastToBase(&uninterpreted_option_)->InternalSwap(CastToBase(&other->uninterpreted_option_));
11545   swap(allow_alias_, other->allow_alias_);
11546   swap(deprecated_, other->deprecated_);
11547 }
11548 
GetMetadata() const11549 ::PROTOBUF_NAMESPACE_ID::Metadata EnumOptions::GetMetadata() const {
11550   return GetMetadataStatic();
11551 }
11552 
11553 
11554 // ===================================================================
11555 
InitAsDefaultInstance()11556 void EnumValueOptions::InitAsDefaultInstance() {
11557 }
11558 class EnumValueOptions::_Internal {
11559  public:
11560   using HasBits = decltype(std::declval<EnumValueOptions>()._has_bits_);
set_has_deprecated(HasBits * has_bits)11561   static void set_has_deprecated(HasBits* has_bits) {
11562     (*has_bits)[0] |= 1u;
11563   }
11564 };
11565 
EnumValueOptions()11566 EnumValueOptions::EnumValueOptions()
11567   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
11568   SharedCtor();
11569   // @@protoc_insertion_point(constructor:google.protobuf.EnumValueOptions)
11570 }
EnumValueOptions(::PROTOBUF_NAMESPACE_ID::Arena * arena)11571 EnumValueOptions::EnumValueOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena)
11572   : ::PROTOBUF_NAMESPACE_ID::Message(),
11573   _extensions_(arena),
11574   _internal_metadata_(arena),
11575   uninterpreted_option_(arena) {
11576   SharedCtor();
11577   RegisterArenaDtor(arena);
11578   // @@protoc_insertion_point(arena_constructor:google.protobuf.EnumValueOptions)
11579 }
EnumValueOptions(const EnumValueOptions & from)11580 EnumValueOptions::EnumValueOptions(const EnumValueOptions& from)
11581   : ::PROTOBUF_NAMESPACE_ID::Message(),
11582       _internal_metadata_(nullptr),
11583       _has_bits_(from._has_bits_),
11584       uninterpreted_option_(from.uninterpreted_option_) {
11585   _internal_metadata_.MergeFrom(from._internal_metadata_);
11586   _extensions_.MergeFrom(from._extensions_);
11587   deprecated_ = from.deprecated_;
11588   // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueOptions)
11589 }
11590 
SharedCtor()11591 void EnumValueOptions::SharedCtor() {
11592   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EnumValueOptions_google_2fprotobuf_2fdescriptor_2eproto.base);
11593   deprecated_ = false;
11594 }
11595 
~EnumValueOptions()11596 EnumValueOptions::~EnumValueOptions() {
11597   // @@protoc_insertion_point(destructor:google.protobuf.EnumValueOptions)
11598   SharedDtor();
11599 }
11600 
SharedDtor()11601 void EnumValueOptions::SharedDtor() {
11602   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
11603 }
11604 
ArenaDtor(void * object)11605 void EnumValueOptions::ArenaDtor(void* object) {
11606   EnumValueOptions* _this = reinterpret_cast< EnumValueOptions* >(object);
11607   (void)_this;
11608 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)11609 void EnumValueOptions::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
11610 }
SetCachedSize(int size) const11611 void EnumValueOptions::SetCachedSize(int size) const {
11612   _cached_size_.Set(size);
11613 }
default_instance()11614 const EnumValueOptions& EnumValueOptions::default_instance() {
11615   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EnumValueOptions_google_2fprotobuf_2fdescriptor_2eproto.base);
11616   return *internal_default_instance();
11617 }
11618 
11619 
Clear()11620 void EnumValueOptions::Clear() {
11621 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueOptions)
11622   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
11623   // Prevent compiler warnings about cached_has_bits being unused
11624   (void) cached_has_bits;
11625 
11626   _extensions_.Clear();
11627   uninterpreted_option_.Clear();
11628   deprecated_ = false;
11629   _has_bits_.Clear();
11630   _internal_metadata_.Clear();
11631 }
11632 
11633 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)11634 const char* EnumValueOptions::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
11635 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
11636   _Internal::HasBits has_bits{};
11637   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
11638   while (!ctx->Done(&ptr)) {
11639     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
11640     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
11641     CHK_(ptr);
11642     switch (tag >> 3) {
11643       // optional bool deprecated = 1 [default = false];
11644       case 1:
11645         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
11646           _Internal::set_has_deprecated(&has_bits);
11647           deprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
11648           CHK_(ptr);
11649         } else goto handle_unusual;
11650         continue;
11651       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11652       case 999:
11653         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
11654           ptr -= 2;
11655           do {
11656             ptr += 2;
11657             ptr = ctx->ParseMessage(add_uninterpreted_option(), ptr);
11658             CHK_(ptr);
11659             if (!ctx->DataAvailable(ptr)) break;
11660           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint16>(ptr) == 16058);
11661         } else goto handle_unusual;
11662         continue;
11663       default: {
11664       handle_unusual:
11665         if ((tag & 7) == 4 || tag == 0) {
11666           ctx->SetLastTag(tag);
11667           goto success;
11668         }
11669       if ((8000u <= tag)) {
11670         ptr = _extensions_.ParseField(tag, ptr,
11671             internal_default_instance(), &_internal_metadata_, ctx);
11672         CHK_(ptr != nullptr);
11673         continue;
11674       }
11675         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
11676         CHK_(ptr != nullptr);
11677         continue;
11678       }
11679     }  // switch
11680   }  // while
11681 success:
11682   _has_bits_.Or(has_bits);
11683   return ptr;
11684 failure:
11685   ptr = nullptr;
11686   goto success;
11687 #undef CHK_
11688 }
11689 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)11690 bool EnumValueOptions::MergePartialFromCodedStream(
11691     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
11692 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
11693   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
11694   // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueOptions)
11695   for (;;) {
11696     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
11697     tag = p.first;
11698     if (!p.second) goto handle_unusual;
11699     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11700       // optional bool deprecated = 1 [default = false];
11701       case 1: {
11702         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
11703           _Internal::set_has_deprecated(&_has_bits_);
11704           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
11705                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
11706                  input, &deprecated_)));
11707         } else {
11708           goto handle_unusual;
11709         }
11710         break;
11711       }
11712 
11713       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11714       case 999: {
11715         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (7994 & 0xFF)) {
11716           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
11717                 input, add_uninterpreted_option()));
11718         } else {
11719           goto handle_unusual;
11720         }
11721         break;
11722       }
11723 
11724       default: {
11725       handle_unusual:
11726         if (tag == 0) {
11727           goto success;
11728         }
11729         if ((8000u <= tag)) {
11730           DO_(_extensions_.ParseField(tag, input,
11731               internal_default_instance(),
11732               _internal_metadata_.mutable_unknown_fields()));
11733           continue;
11734         }
11735         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
11736               input, tag, _internal_metadata_.mutable_unknown_fields()));
11737         break;
11738       }
11739     }
11740   }
11741 success:
11742   // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueOptions)
11743   return true;
11744 failure:
11745   // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueOptions)
11746   return false;
11747 #undef DO_
11748 }
11749 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
11750 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const11751 void EnumValueOptions::SerializeWithCachedSizes(
11752     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
11753   // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueOptions)
11754   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
11755   (void) cached_has_bits;
11756 
11757   cached_has_bits = _has_bits_[0];
11758   // optional bool deprecated = 1 [default = false];
11759   if (cached_has_bits & 0x00000001u) {
11760     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(1, this->deprecated(), output);
11761   }
11762 
11763   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11764   for (unsigned int i = 0,
11765       n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
11766     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
11767       999,
11768       this->uninterpreted_option(static_cast<int>(i)),
11769       output);
11770   }
11771 
11772   // Extension range [1000, 536870912)
11773   _extensions_.SerializeWithCachedSizes(1000, 536870912, output);
11774 
11775   if (_internal_metadata_.have_unknown_fields()) {
11776     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
11777         _internal_metadata_.unknown_fields(), output);
11778   }
11779   // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueOptions)
11780 }
11781 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const11782 ::PROTOBUF_NAMESPACE_ID::uint8* EnumValueOptions::InternalSerializeWithCachedSizesToArray(
11783     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
11784   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueOptions)
11785   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
11786   (void) cached_has_bits;
11787 
11788   cached_has_bits = _has_bits_[0];
11789   // optional bool deprecated = 1 [default = false];
11790   if (cached_has_bits & 0x00000001u) {
11791     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->deprecated(), target);
11792   }
11793 
11794   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11795   for (unsigned int i = 0,
11796       n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
11797     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
11798       InternalWriteMessageToArray(
11799         999, this->uninterpreted_option(static_cast<int>(i)), target);
11800   }
11801 
11802   // Extension range [1000, 536870912)
11803   target = _extensions_.InternalSerializeWithCachedSizesToArray(
11804       1000, 536870912, target);
11805 
11806   if (_internal_metadata_.have_unknown_fields()) {
11807     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
11808         _internal_metadata_.unknown_fields(), target);
11809   }
11810   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueOptions)
11811   return target;
11812 }
11813 
ByteSizeLong() const11814 size_t EnumValueOptions::ByteSizeLong() const {
11815 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueOptions)
11816   size_t total_size = 0;
11817 
11818   total_size += _extensions_.ByteSize();
11819 
11820   if (_internal_metadata_.have_unknown_fields()) {
11821     total_size +=
11822       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
11823         _internal_metadata_.unknown_fields());
11824   }
11825   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
11826   // Prevent compiler warnings about cached_has_bits being unused
11827   (void) cached_has_bits;
11828 
11829   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11830   {
11831     unsigned int count = static_cast<unsigned int>(this->uninterpreted_option_size());
11832     total_size += 2UL * count;
11833     for (unsigned int i = 0; i < count; i++) {
11834       total_size +=
11835         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
11836           this->uninterpreted_option(static_cast<int>(i)));
11837     }
11838   }
11839 
11840   // optional bool deprecated = 1 [default = false];
11841   cached_has_bits = _has_bits_[0];
11842   if (cached_has_bits & 0x00000001u) {
11843     total_size += 1 + 1;
11844   }
11845 
11846   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
11847   SetCachedSize(cached_size);
11848   return total_size;
11849 }
11850 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)11851 void EnumValueOptions::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
11852 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumValueOptions)
11853   GOOGLE_DCHECK_NE(&from, this);
11854   const EnumValueOptions* source =
11855       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<EnumValueOptions>(
11856           &from);
11857   if (source == nullptr) {
11858   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.EnumValueOptions)
11859     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
11860   } else {
11861   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumValueOptions)
11862     MergeFrom(*source);
11863   }
11864 }
11865 
MergeFrom(const EnumValueOptions & from)11866 void EnumValueOptions::MergeFrom(const EnumValueOptions& from) {
11867 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumValueOptions)
11868   GOOGLE_DCHECK_NE(&from, this);
11869   _extensions_.MergeFrom(from._extensions_);
11870   _internal_metadata_.MergeFrom(from._internal_metadata_);
11871   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
11872   (void) cached_has_bits;
11873 
11874   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
11875   if (from.has_deprecated()) {
11876     set_deprecated(from.deprecated());
11877   }
11878 }
11879 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)11880 void EnumValueOptions::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
11881 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValueOptions)
11882   if (&from == this) return;
11883   Clear();
11884   MergeFrom(from);
11885 }
11886 
CopyFrom(const EnumValueOptions & from)11887 void EnumValueOptions::CopyFrom(const EnumValueOptions& from) {
11888 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumValueOptions)
11889   if (&from == this) return;
11890   Clear();
11891   MergeFrom(from);
11892 }
11893 
IsInitialized() const11894 bool EnumValueOptions::IsInitialized() const {
11895   if (!_extensions_.IsInitialized()) {
11896     return false;
11897   }
11898 
11899   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->uninterpreted_option())) return false;
11900   return true;
11901 }
11902 
InternalSwap(EnumValueOptions * other)11903 void EnumValueOptions::InternalSwap(EnumValueOptions* other) {
11904   using std::swap;
11905   _extensions_.Swap(&other->_extensions_);
11906   _internal_metadata_.Swap(&other->_internal_metadata_);
11907   swap(_has_bits_[0], other->_has_bits_[0]);
11908   CastToBase(&uninterpreted_option_)->InternalSwap(CastToBase(&other->uninterpreted_option_));
11909   swap(deprecated_, other->deprecated_);
11910 }
11911 
GetMetadata() const11912 ::PROTOBUF_NAMESPACE_ID::Metadata EnumValueOptions::GetMetadata() const {
11913   return GetMetadataStatic();
11914 }
11915 
11916 
11917 // ===================================================================
11918 
InitAsDefaultInstance()11919 void ServiceOptions::InitAsDefaultInstance() {
11920 }
11921 class ServiceOptions::_Internal {
11922  public:
11923   using HasBits = decltype(std::declval<ServiceOptions>()._has_bits_);
set_has_deprecated(HasBits * has_bits)11924   static void set_has_deprecated(HasBits* has_bits) {
11925     (*has_bits)[0] |= 1u;
11926   }
11927 };
11928 
ServiceOptions()11929 ServiceOptions::ServiceOptions()
11930   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
11931   SharedCtor();
11932   // @@protoc_insertion_point(constructor:google.protobuf.ServiceOptions)
11933 }
ServiceOptions(::PROTOBUF_NAMESPACE_ID::Arena * arena)11934 ServiceOptions::ServiceOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena)
11935   : ::PROTOBUF_NAMESPACE_ID::Message(),
11936   _extensions_(arena),
11937   _internal_metadata_(arena),
11938   uninterpreted_option_(arena) {
11939   SharedCtor();
11940   RegisterArenaDtor(arena);
11941   // @@protoc_insertion_point(arena_constructor:google.protobuf.ServiceOptions)
11942 }
ServiceOptions(const ServiceOptions & from)11943 ServiceOptions::ServiceOptions(const ServiceOptions& from)
11944   : ::PROTOBUF_NAMESPACE_ID::Message(),
11945       _internal_metadata_(nullptr),
11946       _has_bits_(from._has_bits_),
11947       uninterpreted_option_(from.uninterpreted_option_) {
11948   _internal_metadata_.MergeFrom(from._internal_metadata_);
11949   _extensions_.MergeFrom(from._extensions_);
11950   deprecated_ = from.deprecated_;
11951   // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceOptions)
11952 }
11953 
SharedCtor()11954 void ServiceOptions::SharedCtor() {
11955   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ServiceOptions_google_2fprotobuf_2fdescriptor_2eproto.base);
11956   deprecated_ = false;
11957 }
11958 
~ServiceOptions()11959 ServiceOptions::~ServiceOptions() {
11960   // @@protoc_insertion_point(destructor:google.protobuf.ServiceOptions)
11961   SharedDtor();
11962 }
11963 
SharedDtor()11964 void ServiceOptions::SharedDtor() {
11965   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
11966 }
11967 
ArenaDtor(void * object)11968 void ServiceOptions::ArenaDtor(void* object) {
11969   ServiceOptions* _this = reinterpret_cast< ServiceOptions* >(object);
11970   (void)_this;
11971 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)11972 void ServiceOptions::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
11973 }
SetCachedSize(int size) const11974 void ServiceOptions::SetCachedSize(int size) const {
11975   _cached_size_.Set(size);
11976 }
default_instance()11977 const ServiceOptions& ServiceOptions::default_instance() {
11978   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ServiceOptions_google_2fprotobuf_2fdescriptor_2eproto.base);
11979   return *internal_default_instance();
11980 }
11981 
11982 
Clear()11983 void ServiceOptions::Clear() {
11984 // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceOptions)
11985   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
11986   // Prevent compiler warnings about cached_has_bits being unused
11987   (void) cached_has_bits;
11988 
11989   _extensions_.Clear();
11990   uninterpreted_option_.Clear();
11991   deprecated_ = false;
11992   _has_bits_.Clear();
11993   _internal_metadata_.Clear();
11994 }
11995 
11996 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)11997 const char* ServiceOptions::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
11998 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
11999   _Internal::HasBits has_bits{};
12000   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
12001   while (!ctx->Done(&ptr)) {
12002     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
12003     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
12004     CHK_(ptr);
12005     switch (tag >> 3) {
12006       // optional bool deprecated = 33 [default = false];
12007       case 33:
12008         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
12009           _Internal::set_has_deprecated(&has_bits);
12010           deprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
12011           CHK_(ptr);
12012         } else goto handle_unusual;
12013         continue;
12014       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12015       case 999:
12016         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
12017           ptr -= 2;
12018           do {
12019             ptr += 2;
12020             ptr = ctx->ParseMessage(add_uninterpreted_option(), ptr);
12021             CHK_(ptr);
12022             if (!ctx->DataAvailable(ptr)) break;
12023           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint16>(ptr) == 16058);
12024         } else goto handle_unusual;
12025         continue;
12026       default: {
12027       handle_unusual:
12028         if ((tag & 7) == 4 || tag == 0) {
12029           ctx->SetLastTag(tag);
12030           goto success;
12031         }
12032       if ((8000u <= tag)) {
12033         ptr = _extensions_.ParseField(tag, ptr,
12034             internal_default_instance(), &_internal_metadata_, ctx);
12035         CHK_(ptr != nullptr);
12036         continue;
12037       }
12038         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
12039         CHK_(ptr != nullptr);
12040         continue;
12041       }
12042     }  // switch
12043   }  // while
12044 success:
12045   _has_bits_.Or(has_bits);
12046   return ptr;
12047 failure:
12048   ptr = nullptr;
12049   goto success;
12050 #undef CHK_
12051 }
12052 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)12053 bool ServiceOptions::MergePartialFromCodedStream(
12054     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
12055 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
12056   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
12057   // @@protoc_insertion_point(parse_start:google.protobuf.ServiceOptions)
12058   for (;;) {
12059     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
12060     tag = p.first;
12061     if (!p.second) goto handle_unusual;
12062     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12063       // optional bool deprecated = 33 [default = false];
12064       case 33: {
12065         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (264 & 0xFF)) {
12066           _Internal::set_has_deprecated(&_has_bits_);
12067           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
12068                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
12069                  input, &deprecated_)));
12070         } else {
12071           goto handle_unusual;
12072         }
12073         break;
12074       }
12075 
12076       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12077       case 999: {
12078         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (7994 & 0xFF)) {
12079           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
12080                 input, add_uninterpreted_option()));
12081         } else {
12082           goto handle_unusual;
12083         }
12084         break;
12085       }
12086 
12087       default: {
12088       handle_unusual:
12089         if (tag == 0) {
12090           goto success;
12091         }
12092         if ((8000u <= tag)) {
12093           DO_(_extensions_.ParseField(tag, input,
12094               internal_default_instance(),
12095               _internal_metadata_.mutable_unknown_fields()));
12096           continue;
12097         }
12098         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
12099               input, tag, _internal_metadata_.mutable_unknown_fields()));
12100         break;
12101       }
12102     }
12103   }
12104 success:
12105   // @@protoc_insertion_point(parse_success:google.protobuf.ServiceOptions)
12106   return true;
12107 failure:
12108   // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceOptions)
12109   return false;
12110 #undef DO_
12111 }
12112 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
12113 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const12114 void ServiceOptions::SerializeWithCachedSizes(
12115     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
12116   // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceOptions)
12117   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
12118   (void) cached_has_bits;
12119 
12120   cached_has_bits = _has_bits_[0];
12121   // optional bool deprecated = 33 [default = false];
12122   if (cached_has_bits & 0x00000001u) {
12123     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(33, this->deprecated(), output);
12124   }
12125 
12126   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12127   for (unsigned int i = 0,
12128       n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
12129     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
12130       999,
12131       this->uninterpreted_option(static_cast<int>(i)),
12132       output);
12133   }
12134 
12135   // Extension range [1000, 536870912)
12136   _extensions_.SerializeWithCachedSizes(1000, 536870912, output);
12137 
12138   if (_internal_metadata_.have_unknown_fields()) {
12139     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
12140         _internal_metadata_.unknown_fields(), output);
12141   }
12142   // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceOptions)
12143 }
12144 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const12145 ::PROTOBUF_NAMESPACE_ID::uint8* ServiceOptions::InternalSerializeWithCachedSizesToArray(
12146     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
12147   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceOptions)
12148   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
12149   (void) cached_has_bits;
12150 
12151   cached_has_bits = _has_bits_[0];
12152   // optional bool deprecated = 33 [default = false];
12153   if (cached_has_bits & 0x00000001u) {
12154     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target);
12155   }
12156 
12157   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12158   for (unsigned int i = 0,
12159       n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
12160     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
12161       InternalWriteMessageToArray(
12162         999, this->uninterpreted_option(static_cast<int>(i)), target);
12163   }
12164 
12165   // Extension range [1000, 536870912)
12166   target = _extensions_.InternalSerializeWithCachedSizesToArray(
12167       1000, 536870912, target);
12168 
12169   if (_internal_metadata_.have_unknown_fields()) {
12170     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
12171         _internal_metadata_.unknown_fields(), target);
12172   }
12173   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceOptions)
12174   return target;
12175 }
12176 
ByteSizeLong() const12177 size_t ServiceOptions::ByteSizeLong() const {
12178 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceOptions)
12179   size_t total_size = 0;
12180 
12181   total_size += _extensions_.ByteSize();
12182 
12183   if (_internal_metadata_.have_unknown_fields()) {
12184     total_size +=
12185       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
12186         _internal_metadata_.unknown_fields());
12187   }
12188   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
12189   // Prevent compiler warnings about cached_has_bits being unused
12190   (void) cached_has_bits;
12191 
12192   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12193   {
12194     unsigned int count = static_cast<unsigned int>(this->uninterpreted_option_size());
12195     total_size += 2UL * count;
12196     for (unsigned int i = 0; i < count; i++) {
12197       total_size +=
12198         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
12199           this->uninterpreted_option(static_cast<int>(i)));
12200     }
12201   }
12202 
12203   // optional bool deprecated = 33 [default = false];
12204   cached_has_bits = _has_bits_[0];
12205   if (cached_has_bits & 0x00000001u) {
12206     total_size += 2 + 1;
12207   }
12208 
12209   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
12210   SetCachedSize(cached_size);
12211   return total_size;
12212 }
12213 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)12214 void ServiceOptions::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
12215 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.ServiceOptions)
12216   GOOGLE_DCHECK_NE(&from, this);
12217   const ServiceOptions* source =
12218       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ServiceOptions>(
12219           &from);
12220   if (source == nullptr) {
12221   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.ServiceOptions)
12222     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
12223   } else {
12224   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.ServiceOptions)
12225     MergeFrom(*source);
12226   }
12227 }
12228 
MergeFrom(const ServiceOptions & from)12229 void ServiceOptions::MergeFrom(const ServiceOptions& from) {
12230 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.ServiceOptions)
12231   GOOGLE_DCHECK_NE(&from, this);
12232   _extensions_.MergeFrom(from._extensions_);
12233   _internal_metadata_.MergeFrom(from._internal_metadata_);
12234   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
12235   (void) cached_has_bits;
12236 
12237   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
12238   if (from.has_deprecated()) {
12239     set_deprecated(from.deprecated());
12240   }
12241 }
12242 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)12243 void ServiceOptions::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
12244 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceOptions)
12245   if (&from == this) return;
12246   Clear();
12247   MergeFrom(from);
12248 }
12249 
CopyFrom(const ServiceOptions & from)12250 void ServiceOptions::CopyFrom(const ServiceOptions& from) {
12251 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.ServiceOptions)
12252   if (&from == this) return;
12253   Clear();
12254   MergeFrom(from);
12255 }
12256 
IsInitialized() const12257 bool ServiceOptions::IsInitialized() const {
12258   if (!_extensions_.IsInitialized()) {
12259     return false;
12260   }
12261 
12262   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->uninterpreted_option())) return false;
12263   return true;
12264 }
12265 
InternalSwap(ServiceOptions * other)12266 void ServiceOptions::InternalSwap(ServiceOptions* other) {
12267   using std::swap;
12268   _extensions_.Swap(&other->_extensions_);
12269   _internal_metadata_.Swap(&other->_internal_metadata_);
12270   swap(_has_bits_[0], other->_has_bits_[0]);
12271   CastToBase(&uninterpreted_option_)->InternalSwap(CastToBase(&other->uninterpreted_option_));
12272   swap(deprecated_, other->deprecated_);
12273 }
12274 
GetMetadata() const12275 ::PROTOBUF_NAMESPACE_ID::Metadata ServiceOptions::GetMetadata() const {
12276   return GetMetadataStatic();
12277 }
12278 
12279 
12280 // ===================================================================
12281 
InitAsDefaultInstance()12282 void MethodOptions::InitAsDefaultInstance() {
12283 }
12284 class MethodOptions::_Internal {
12285  public:
12286   using HasBits = decltype(std::declval<MethodOptions>()._has_bits_);
set_has_deprecated(HasBits * has_bits)12287   static void set_has_deprecated(HasBits* has_bits) {
12288     (*has_bits)[0] |= 1u;
12289   }
set_has_idempotency_level(HasBits * has_bits)12290   static void set_has_idempotency_level(HasBits* has_bits) {
12291     (*has_bits)[0] |= 2u;
12292   }
12293 };
12294 
MethodOptions()12295 MethodOptions::MethodOptions()
12296   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
12297   SharedCtor();
12298   // @@protoc_insertion_point(constructor:google.protobuf.MethodOptions)
12299 }
MethodOptions(::PROTOBUF_NAMESPACE_ID::Arena * arena)12300 MethodOptions::MethodOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena)
12301   : ::PROTOBUF_NAMESPACE_ID::Message(),
12302   _extensions_(arena),
12303   _internal_metadata_(arena),
12304   uninterpreted_option_(arena) {
12305   SharedCtor();
12306   RegisterArenaDtor(arena);
12307   // @@protoc_insertion_point(arena_constructor:google.protobuf.MethodOptions)
12308 }
MethodOptions(const MethodOptions & from)12309 MethodOptions::MethodOptions(const MethodOptions& from)
12310   : ::PROTOBUF_NAMESPACE_ID::Message(),
12311       _internal_metadata_(nullptr),
12312       _has_bits_(from._has_bits_),
12313       uninterpreted_option_(from.uninterpreted_option_) {
12314   _internal_metadata_.MergeFrom(from._internal_metadata_);
12315   _extensions_.MergeFrom(from._extensions_);
12316   ::memcpy(&deprecated_, &from.deprecated_,
12317     static_cast<size_t>(reinterpret_cast<char*>(&idempotency_level_) -
12318     reinterpret_cast<char*>(&deprecated_)) + sizeof(idempotency_level_));
12319   // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodOptions)
12320 }
12321 
SharedCtor()12322 void MethodOptions::SharedCtor() {
12323   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MethodOptions_google_2fprotobuf_2fdescriptor_2eproto.base);
12324   ::memset(&deprecated_, 0, static_cast<size_t>(
12325       reinterpret_cast<char*>(&idempotency_level_) -
12326       reinterpret_cast<char*>(&deprecated_)) + sizeof(idempotency_level_));
12327 }
12328 
~MethodOptions()12329 MethodOptions::~MethodOptions() {
12330   // @@protoc_insertion_point(destructor:google.protobuf.MethodOptions)
12331   SharedDtor();
12332 }
12333 
SharedDtor()12334 void MethodOptions::SharedDtor() {
12335   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
12336 }
12337 
ArenaDtor(void * object)12338 void MethodOptions::ArenaDtor(void* object) {
12339   MethodOptions* _this = reinterpret_cast< MethodOptions* >(object);
12340   (void)_this;
12341 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)12342 void MethodOptions::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
12343 }
SetCachedSize(int size) const12344 void MethodOptions::SetCachedSize(int size) const {
12345   _cached_size_.Set(size);
12346 }
default_instance()12347 const MethodOptions& MethodOptions::default_instance() {
12348   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MethodOptions_google_2fprotobuf_2fdescriptor_2eproto.base);
12349   return *internal_default_instance();
12350 }
12351 
12352 
Clear()12353 void MethodOptions::Clear() {
12354 // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodOptions)
12355   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
12356   // Prevent compiler warnings about cached_has_bits being unused
12357   (void) cached_has_bits;
12358 
12359   _extensions_.Clear();
12360   uninterpreted_option_.Clear();
12361   cached_has_bits = _has_bits_[0];
12362   if (cached_has_bits & 0x00000003u) {
12363     ::memset(&deprecated_, 0, static_cast<size_t>(
12364         reinterpret_cast<char*>(&idempotency_level_) -
12365         reinterpret_cast<char*>(&deprecated_)) + sizeof(idempotency_level_));
12366   }
12367   _has_bits_.Clear();
12368   _internal_metadata_.Clear();
12369 }
12370 
12371 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)12372 const char* MethodOptions::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
12373 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
12374   _Internal::HasBits has_bits{};
12375   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
12376   while (!ctx->Done(&ptr)) {
12377     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
12378     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
12379     CHK_(ptr);
12380     switch (tag >> 3) {
12381       // optional bool deprecated = 33 [default = false];
12382       case 33:
12383         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
12384           _Internal::set_has_deprecated(&has_bits);
12385           deprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
12386           CHK_(ptr);
12387         } else goto handle_unusual;
12388         continue;
12389       // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
12390       case 34:
12391         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
12392           ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
12393           CHK_(ptr);
12394           if (PROTOBUF_PREDICT_TRUE(PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel_IsValid(val))) {
12395             set_idempotency_level(static_cast<PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel>(val));
12396           } else {
12397             ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(34, val, mutable_unknown_fields());
12398           }
12399         } else goto handle_unusual;
12400         continue;
12401       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12402       case 999:
12403         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
12404           ptr -= 2;
12405           do {
12406             ptr += 2;
12407             ptr = ctx->ParseMessage(add_uninterpreted_option(), ptr);
12408             CHK_(ptr);
12409             if (!ctx->DataAvailable(ptr)) break;
12410           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint16>(ptr) == 16058);
12411         } else goto handle_unusual;
12412         continue;
12413       default: {
12414       handle_unusual:
12415         if ((tag & 7) == 4 || tag == 0) {
12416           ctx->SetLastTag(tag);
12417           goto success;
12418         }
12419       if ((8000u <= tag)) {
12420         ptr = _extensions_.ParseField(tag, ptr,
12421             internal_default_instance(), &_internal_metadata_, ctx);
12422         CHK_(ptr != nullptr);
12423         continue;
12424       }
12425         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
12426         CHK_(ptr != nullptr);
12427         continue;
12428       }
12429     }  // switch
12430   }  // while
12431 success:
12432   _has_bits_.Or(has_bits);
12433   return ptr;
12434 failure:
12435   ptr = nullptr;
12436   goto success;
12437 #undef CHK_
12438 }
12439 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)12440 bool MethodOptions::MergePartialFromCodedStream(
12441     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
12442 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
12443   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
12444   // @@protoc_insertion_point(parse_start:google.protobuf.MethodOptions)
12445   for (;;) {
12446     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
12447     tag = p.first;
12448     if (!p.second) goto handle_unusual;
12449     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12450       // optional bool deprecated = 33 [default = false];
12451       case 33: {
12452         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (264 & 0xFF)) {
12453           _Internal::set_has_deprecated(&_has_bits_);
12454           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
12455                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
12456                  input, &deprecated_)));
12457         } else {
12458           goto handle_unusual;
12459         }
12460         break;
12461       }
12462 
12463       // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
12464       case 34: {
12465         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (272 & 0xFF)) {
12466           int value = 0;
12467           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
12468                    int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
12469                  input, &value)));
12470           if (PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel_IsValid(value)) {
12471             set_idempotency_level(static_cast< PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel >(value));
12472           } else {
12473             mutable_unknown_fields()->AddVarint(
12474                 34, static_cast<::PROTOBUF_NAMESPACE_ID::uint64>(value));
12475           }
12476         } else {
12477           goto handle_unusual;
12478         }
12479         break;
12480       }
12481 
12482       // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12483       case 999: {
12484         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (7994 & 0xFF)) {
12485           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
12486                 input, add_uninterpreted_option()));
12487         } else {
12488           goto handle_unusual;
12489         }
12490         break;
12491       }
12492 
12493       default: {
12494       handle_unusual:
12495         if (tag == 0) {
12496           goto success;
12497         }
12498         if ((8000u <= tag)) {
12499           DO_(_extensions_.ParseField(tag, input,
12500               internal_default_instance(),
12501               _internal_metadata_.mutable_unknown_fields()));
12502           continue;
12503         }
12504         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
12505               input, tag, _internal_metadata_.mutable_unknown_fields()));
12506         break;
12507       }
12508     }
12509   }
12510 success:
12511   // @@protoc_insertion_point(parse_success:google.protobuf.MethodOptions)
12512   return true;
12513 failure:
12514   // @@protoc_insertion_point(parse_failure:google.protobuf.MethodOptions)
12515   return false;
12516 #undef DO_
12517 }
12518 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
12519 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const12520 void MethodOptions::SerializeWithCachedSizes(
12521     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
12522   // @@protoc_insertion_point(serialize_start:google.protobuf.MethodOptions)
12523   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
12524   (void) cached_has_bits;
12525 
12526   cached_has_bits = _has_bits_[0];
12527   // optional bool deprecated = 33 [default = false];
12528   if (cached_has_bits & 0x00000001u) {
12529     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(33, this->deprecated(), output);
12530   }
12531 
12532   // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
12533   if (cached_has_bits & 0x00000002u) {
12534     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
12535       34, this->idempotency_level(), output);
12536   }
12537 
12538   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12539   for (unsigned int i = 0,
12540       n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
12541     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
12542       999,
12543       this->uninterpreted_option(static_cast<int>(i)),
12544       output);
12545   }
12546 
12547   // Extension range [1000, 536870912)
12548   _extensions_.SerializeWithCachedSizes(1000, 536870912, output);
12549 
12550   if (_internal_metadata_.have_unknown_fields()) {
12551     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
12552         _internal_metadata_.unknown_fields(), output);
12553   }
12554   // @@protoc_insertion_point(serialize_end:google.protobuf.MethodOptions)
12555 }
12556 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const12557 ::PROTOBUF_NAMESPACE_ID::uint8* MethodOptions::InternalSerializeWithCachedSizesToArray(
12558     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
12559   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodOptions)
12560   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
12561   (void) cached_has_bits;
12562 
12563   cached_has_bits = _has_bits_[0];
12564   // optional bool deprecated = 33 [default = false];
12565   if (cached_has_bits & 0x00000001u) {
12566     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target);
12567   }
12568 
12569   // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
12570   if (cached_has_bits & 0x00000002u) {
12571     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
12572       34, this->idempotency_level(), target);
12573   }
12574 
12575   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12576   for (unsigned int i = 0,
12577       n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
12578     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
12579       InternalWriteMessageToArray(
12580         999, this->uninterpreted_option(static_cast<int>(i)), target);
12581   }
12582 
12583   // Extension range [1000, 536870912)
12584   target = _extensions_.InternalSerializeWithCachedSizesToArray(
12585       1000, 536870912, target);
12586 
12587   if (_internal_metadata_.have_unknown_fields()) {
12588     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
12589         _internal_metadata_.unknown_fields(), target);
12590   }
12591   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodOptions)
12592   return target;
12593 }
12594 
ByteSizeLong() const12595 size_t MethodOptions::ByteSizeLong() const {
12596 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodOptions)
12597   size_t total_size = 0;
12598 
12599   total_size += _extensions_.ByteSize();
12600 
12601   if (_internal_metadata_.have_unknown_fields()) {
12602     total_size +=
12603       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
12604         _internal_metadata_.unknown_fields());
12605   }
12606   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
12607   // Prevent compiler warnings about cached_has_bits being unused
12608   (void) cached_has_bits;
12609 
12610   // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12611   {
12612     unsigned int count = static_cast<unsigned int>(this->uninterpreted_option_size());
12613     total_size += 2UL * count;
12614     for (unsigned int i = 0; i < count; i++) {
12615       total_size +=
12616         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
12617           this->uninterpreted_option(static_cast<int>(i)));
12618     }
12619   }
12620 
12621   cached_has_bits = _has_bits_[0];
12622   if (cached_has_bits & 0x00000003u) {
12623     // optional bool deprecated = 33 [default = false];
12624     if (cached_has_bits & 0x00000001u) {
12625       total_size += 2 + 1;
12626     }
12627 
12628     // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
12629     if (cached_has_bits & 0x00000002u) {
12630       total_size += 2 +
12631         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->idempotency_level());
12632     }
12633 
12634   }
12635   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
12636   SetCachedSize(cached_size);
12637   return total_size;
12638 }
12639 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)12640 void MethodOptions::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
12641 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodOptions)
12642   GOOGLE_DCHECK_NE(&from, this);
12643   const MethodOptions* source =
12644       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MethodOptions>(
12645           &from);
12646   if (source == nullptr) {
12647   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.MethodOptions)
12648     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
12649   } else {
12650   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.MethodOptions)
12651     MergeFrom(*source);
12652   }
12653 }
12654 
MergeFrom(const MethodOptions & from)12655 void MethodOptions::MergeFrom(const MethodOptions& from) {
12656 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.MethodOptions)
12657   GOOGLE_DCHECK_NE(&from, this);
12658   _extensions_.MergeFrom(from._extensions_);
12659   _internal_metadata_.MergeFrom(from._internal_metadata_);
12660   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
12661   (void) cached_has_bits;
12662 
12663   uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
12664   cached_has_bits = from._has_bits_[0];
12665   if (cached_has_bits & 0x00000003u) {
12666     if (cached_has_bits & 0x00000001u) {
12667       deprecated_ = from.deprecated_;
12668     }
12669     if (cached_has_bits & 0x00000002u) {
12670       idempotency_level_ = from.idempotency_level_;
12671     }
12672     _has_bits_[0] |= cached_has_bits;
12673   }
12674 }
12675 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)12676 void MethodOptions::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
12677 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodOptions)
12678   if (&from == this) return;
12679   Clear();
12680   MergeFrom(from);
12681 }
12682 
CopyFrom(const MethodOptions & from)12683 void MethodOptions::CopyFrom(const MethodOptions& from) {
12684 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.MethodOptions)
12685   if (&from == this) return;
12686   Clear();
12687   MergeFrom(from);
12688 }
12689 
IsInitialized() const12690 bool MethodOptions::IsInitialized() const {
12691   if (!_extensions_.IsInitialized()) {
12692     return false;
12693   }
12694 
12695   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->uninterpreted_option())) return false;
12696   return true;
12697 }
12698 
InternalSwap(MethodOptions * other)12699 void MethodOptions::InternalSwap(MethodOptions* other) {
12700   using std::swap;
12701   _extensions_.Swap(&other->_extensions_);
12702   _internal_metadata_.Swap(&other->_internal_metadata_);
12703   swap(_has_bits_[0], other->_has_bits_[0]);
12704   CastToBase(&uninterpreted_option_)->InternalSwap(CastToBase(&other->uninterpreted_option_));
12705   swap(deprecated_, other->deprecated_);
12706   swap(idempotency_level_, other->idempotency_level_);
12707 }
12708 
GetMetadata() const12709 ::PROTOBUF_NAMESPACE_ID::Metadata MethodOptions::GetMetadata() const {
12710   return GetMetadataStatic();
12711 }
12712 
12713 
12714 // ===================================================================
12715 
InitAsDefaultInstance()12716 void UninterpretedOption_NamePart::InitAsDefaultInstance() {
12717 }
12718 class UninterpretedOption_NamePart::_Internal {
12719  public:
12720   using HasBits = decltype(std::declval<UninterpretedOption_NamePart>()._has_bits_);
set_has_name_part(HasBits * has_bits)12721   static void set_has_name_part(HasBits* has_bits) {
12722     (*has_bits)[0] |= 1u;
12723   }
set_has_is_extension(HasBits * has_bits)12724   static void set_has_is_extension(HasBits* has_bits) {
12725     (*has_bits)[0] |= 2u;
12726   }
12727 };
12728 
UninterpretedOption_NamePart()12729 UninterpretedOption_NamePart::UninterpretedOption_NamePart()
12730   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
12731   SharedCtor();
12732   // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption.NamePart)
12733 }
UninterpretedOption_NamePart(::PROTOBUF_NAMESPACE_ID::Arena * arena)12734 UninterpretedOption_NamePart::UninterpretedOption_NamePart(::PROTOBUF_NAMESPACE_ID::Arena* arena)
12735   : ::PROTOBUF_NAMESPACE_ID::Message(),
12736   _internal_metadata_(arena) {
12737   SharedCtor();
12738   RegisterArenaDtor(arena);
12739   // @@protoc_insertion_point(arena_constructor:google.protobuf.UninterpretedOption.NamePart)
12740 }
UninterpretedOption_NamePart(const UninterpretedOption_NamePart & from)12741 UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from)
12742   : ::PROTOBUF_NAMESPACE_ID::Message(),
12743       _internal_metadata_(nullptr),
12744       _has_bits_(from._has_bits_) {
12745   _internal_metadata_.MergeFrom(from._internal_metadata_);
12746   name_part_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
12747   if (from.has_name_part()) {
12748     name_part_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_part(),
12749       GetArenaNoVirtual());
12750   }
12751   is_extension_ = from.is_extension_;
12752   // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOption.NamePart)
12753 }
12754 
SharedCtor()12755 void UninterpretedOption_NamePart::SharedCtor() {
12756   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_UninterpretedOption_NamePart_google_2fprotobuf_2fdescriptor_2eproto.base);
12757   name_part_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
12758   is_extension_ = false;
12759 }
12760 
~UninterpretedOption_NamePart()12761 UninterpretedOption_NamePart::~UninterpretedOption_NamePart() {
12762   // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption.NamePart)
12763   SharedDtor();
12764 }
12765 
SharedDtor()12766 void UninterpretedOption_NamePart::SharedDtor() {
12767   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
12768   name_part_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
12769 }
12770 
ArenaDtor(void * object)12771 void UninterpretedOption_NamePart::ArenaDtor(void* object) {
12772   UninterpretedOption_NamePart* _this = reinterpret_cast< UninterpretedOption_NamePart* >(object);
12773   (void)_this;
12774 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)12775 void UninterpretedOption_NamePart::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
12776 }
SetCachedSize(int size) const12777 void UninterpretedOption_NamePart::SetCachedSize(int size) const {
12778   _cached_size_.Set(size);
12779 }
default_instance()12780 const UninterpretedOption_NamePart& UninterpretedOption_NamePart::default_instance() {
12781   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_UninterpretedOption_NamePart_google_2fprotobuf_2fdescriptor_2eproto.base);
12782   return *internal_default_instance();
12783 }
12784 
12785 
Clear()12786 void UninterpretedOption_NamePart::Clear() {
12787 // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOption.NamePart)
12788   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
12789   // Prevent compiler warnings about cached_has_bits being unused
12790   (void) cached_has_bits;
12791 
12792   cached_has_bits = _has_bits_[0];
12793   if (cached_has_bits & 0x00000001u) {
12794     name_part_.ClearNonDefaultToEmpty();
12795   }
12796   is_extension_ = false;
12797   _has_bits_.Clear();
12798   _internal_metadata_.Clear();
12799 }
12800 
12801 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)12802 const char* UninterpretedOption_NamePart::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
12803 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
12804   _Internal::HasBits has_bits{};
12805   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
12806   while (!ctx->Done(&ptr)) {
12807     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
12808     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
12809     CHK_(ptr);
12810     switch (tag >> 3) {
12811       // required string name_part = 1;
12812       case 1:
12813         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
12814           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_name_part(), ptr, ctx, "google.protobuf.UninterpretedOption.NamePart.name_part");
12815           CHK_(ptr);
12816         } else goto handle_unusual;
12817         continue;
12818       // required bool is_extension = 2;
12819       case 2:
12820         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
12821           _Internal::set_has_is_extension(&has_bits);
12822           is_extension_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
12823           CHK_(ptr);
12824         } else goto handle_unusual;
12825         continue;
12826       default: {
12827       handle_unusual:
12828         if ((tag & 7) == 4 || tag == 0) {
12829           ctx->SetLastTag(tag);
12830           goto success;
12831         }
12832         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
12833         CHK_(ptr != nullptr);
12834         continue;
12835       }
12836     }  // switch
12837   }  // while
12838 success:
12839   _has_bits_.Or(has_bits);
12840   return ptr;
12841 failure:
12842   ptr = nullptr;
12843   goto success;
12844 #undef CHK_
12845 }
12846 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)12847 bool UninterpretedOption_NamePart::MergePartialFromCodedStream(
12848     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
12849 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
12850   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
12851   // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption.NamePart)
12852   for (;;) {
12853     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
12854     tag = p.first;
12855     if (!p.second) goto handle_unusual;
12856     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12857       // required string name_part = 1;
12858       case 1: {
12859         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
12860           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
12861                 input, this->mutable_name_part()));
12862           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
12863             this->name_part().data(), static_cast<int>(this->name_part().length()),
12864             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
12865             "google.protobuf.UninterpretedOption.NamePart.name_part");
12866         } else {
12867           goto handle_unusual;
12868         }
12869         break;
12870       }
12871 
12872       // required bool is_extension = 2;
12873       case 2: {
12874         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
12875           _Internal::set_has_is_extension(&_has_bits_);
12876           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
12877                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
12878                  input, &is_extension_)));
12879         } else {
12880           goto handle_unusual;
12881         }
12882         break;
12883       }
12884 
12885       default: {
12886       handle_unusual:
12887         if (tag == 0) {
12888           goto success;
12889         }
12890         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
12891               input, tag, _internal_metadata_.mutable_unknown_fields()));
12892         break;
12893       }
12894     }
12895   }
12896 success:
12897   // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption.NamePart)
12898   return true;
12899 failure:
12900   // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption.NamePart)
12901   return false;
12902 #undef DO_
12903 }
12904 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
12905 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const12906 void UninterpretedOption_NamePart::SerializeWithCachedSizes(
12907     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
12908   // @@protoc_insertion_point(serialize_start:google.protobuf.UninterpretedOption.NamePart)
12909   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
12910   (void) cached_has_bits;
12911 
12912   cached_has_bits = _has_bits_[0];
12913   // required string name_part = 1;
12914   if (cached_has_bits & 0x00000001u) {
12915     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
12916       this->name_part().data(), static_cast<int>(this->name_part().length()),
12917       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
12918       "google.protobuf.UninterpretedOption.NamePart.name_part");
12919     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
12920       1, this->name_part(), output);
12921   }
12922 
12923   // required bool is_extension = 2;
12924   if (cached_has_bits & 0x00000002u) {
12925     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(2, this->is_extension(), output);
12926   }
12927 
12928   if (_internal_metadata_.have_unknown_fields()) {
12929     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
12930         _internal_metadata_.unknown_fields(), output);
12931   }
12932   // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption.NamePart)
12933 }
12934 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const12935 ::PROTOBUF_NAMESPACE_ID::uint8* UninterpretedOption_NamePart::InternalSerializeWithCachedSizesToArray(
12936     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
12937   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption.NamePart)
12938   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
12939   (void) cached_has_bits;
12940 
12941   cached_has_bits = _has_bits_[0];
12942   // required string name_part = 1;
12943   if (cached_has_bits & 0x00000001u) {
12944     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
12945       this->name_part().data(), static_cast<int>(this->name_part().length()),
12946       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
12947       "google.protobuf.UninterpretedOption.NamePart.name_part");
12948     target =
12949       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
12950         1, this->name_part(), target);
12951   }
12952 
12953   // required bool is_extension = 2;
12954   if (cached_has_bits & 0x00000002u) {
12955     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->is_extension(), target);
12956   }
12957 
12958   if (_internal_metadata_.have_unknown_fields()) {
12959     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
12960         _internal_metadata_.unknown_fields(), target);
12961   }
12962   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UninterpretedOption.NamePart)
12963   return target;
12964 }
12965 
RequiredFieldsByteSizeFallback() const12966 size_t UninterpretedOption_NamePart::RequiredFieldsByteSizeFallback() const {
12967 // @@protoc_insertion_point(required_fields_byte_size_fallback_start:google.protobuf.UninterpretedOption.NamePart)
12968   size_t total_size = 0;
12969 
12970   if (has_name_part()) {
12971     // required string name_part = 1;
12972     total_size += 1 +
12973       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
12974         this->name_part());
12975   }
12976 
12977   if (has_is_extension()) {
12978     // required bool is_extension = 2;
12979     total_size += 1 + 1;
12980   }
12981 
12982   return total_size;
12983 }
ByteSizeLong() const12984 size_t UninterpretedOption_NamePart::ByteSizeLong() const {
12985 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.UninterpretedOption.NamePart)
12986   size_t total_size = 0;
12987 
12988   if (_internal_metadata_.have_unknown_fields()) {
12989     total_size +=
12990       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
12991         _internal_metadata_.unknown_fields());
12992   }
12993   if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) {  // All required fields are present.
12994     // required string name_part = 1;
12995     total_size += 1 +
12996       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
12997         this->name_part());
12998 
12999     // required bool is_extension = 2;
13000     total_size += 1 + 1;
13001 
13002   } else {
13003     total_size += RequiredFieldsByteSizeFallback();
13004   }
13005   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
13006   // Prevent compiler warnings about cached_has_bits being unused
13007   (void) cached_has_bits;
13008 
13009   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
13010   SetCachedSize(cached_size);
13011   return total_size;
13012 }
13013 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)13014 void UninterpretedOption_NamePart::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
13015 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.UninterpretedOption.NamePart)
13016   GOOGLE_DCHECK_NE(&from, this);
13017   const UninterpretedOption_NamePart* source =
13018       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<UninterpretedOption_NamePart>(
13019           &from);
13020   if (source == nullptr) {
13021   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.UninterpretedOption.NamePart)
13022     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
13023   } else {
13024   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.UninterpretedOption.NamePart)
13025     MergeFrom(*source);
13026   }
13027 }
13028 
MergeFrom(const UninterpretedOption_NamePart & from)13029 void UninterpretedOption_NamePart::MergeFrom(const UninterpretedOption_NamePart& from) {
13030 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UninterpretedOption.NamePart)
13031   GOOGLE_DCHECK_NE(&from, this);
13032   _internal_metadata_.MergeFrom(from._internal_metadata_);
13033   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
13034   (void) cached_has_bits;
13035 
13036   cached_has_bits = from._has_bits_[0];
13037   if (cached_has_bits & 0x00000003u) {
13038     if (cached_has_bits & 0x00000001u) {
13039       set_name_part(from.name_part());
13040     }
13041     if (cached_has_bits & 0x00000002u) {
13042       is_extension_ = from.is_extension_;
13043     }
13044     _has_bits_[0] |= cached_has_bits;
13045   }
13046 }
13047 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)13048 void UninterpretedOption_NamePart::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
13049 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.UninterpretedOption.NamePart)
13050   if (&from == this) return;
13051   Clear();
13052   MergeFrom(from);
13053 }
13054 
CopyFrom(const UninterpretedOption_NamePart & from)13055 void UninterpretedOption_NamePart::CopyFrom(const UninterpretedOption_NamePart& from) {
13056 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.UninterpretedOption.NamePart)
13057   if (&from == this) return;
13058   Clear();
13059   MergeFrom(from);
13060 }
13061 
IsInitialized() const13062 bool UninterpretedOption_NamePart::IsInitialized() const {
13063   if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
13064   return true;
13065 }
13066 
InternalSwap(UninterpretedOption_NamePart * other)13067 void UninterpretedOption_NamePart::InternalSwap(UninterpretedOption_NamePart* other) {
13068   using std::swap;
13069   _internal_metadata_.Swap(&other->_internal_metadata_);
13070   swap(_has_bits_[0], other->_has_bits_[0]);
13071   name_part_.Swap(&other->name_part_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
13072     GetArenaNoVirtual());
13073   swap(is_extension_, other->is_extension_);
13074 }
13075 
GetMetadata() const13076 ::PROTOBUF_NAMESPACE_ID::Metadata UninterpretedOption_NamePart::GetMetadata() const {
13077   return GetMetadataStatic();
13078 }
13079 
13080 
13081 // ===================================================================
13082 
InitAsDefaultInstance()13083 void UninterpretedOption::InitAsDefaultInstance() {
13084 }
13085 class UninterpretedOption::_Internal {
13086  public:
13087   using HasBits = decltype(std::declval<UninterpretedOption>()._has_bits_);
set_has_identifier_value(HasBits * has_bits)13088   static void set_has_identifier_value(HasBits* has_bits) {
13089     (*has_bits)[0] |= 1u;
13090   }
set_has_positive_int_value(HasBits * has_bits)13091   static void set_has_positive_int_value(HasBits* has_bits) {
13092     (*has_bits)[0] |= 8u;
13093   }
set_has_negative_int_value(HasBits * has_bits)13094   static void set_has_negative_int_value(HasBits* has_bits) {
13095     (*has_bits)[0] |= 16u;
13096   }
set_has_double_value(HasBits * has_bits)13097   static void set_has_double_value(HasBits* has_bits) {
13098     (*has_bits)[0] |= 32u;
13099   }
set_has_string_value(HasBits * has_bits)13100   static void set_has_string_value(HasBits* has_bits) {
13101     (*has_bits)[0] |= 2u;
13102   }
set_has_aggregate_value(HasBits * has_bits)13103   static void set_has_aggregate_value(HasBits* has_bits) {
13104     (*has_bits)[0] |= 4u;
13105   }
13106 };
13107 
UninterpretedOption()13108 UninterpretedOption::UninterpretedOption()
13109   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
13110   SharedCtor();
13111   // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption)
13112 }
UninterpretedOption(::PROTOBUF_NAMESPACE_ID::Arena * arena)13113 UninterpretedOption::UninterpretedOption(::PROTOBUF_NAMESPACE_ID::Arena* arena)
13114   : ::PROTOBUF_NAMESPACE_ID::Message(),
13115   _internal_metadata_(arena),
13116   name_(arena) {
13117   SharedCtor();
13118   RegisterArenaDtor(arena);
13119   // @@protoc_insertion_point(arena_constructor:google.protobuf.UninterpretedOption)
13120 }
UninterpretedOption(const UninterpretedOption & from)13121 UninterpretedOption::UninterpretedOption(const UninterpretedOption& from)
13122   : ::PROTOBUF_NAMESPACE_ID::Message(),
13123       _internal_metadata_(nullptr),
13124       _has_bits_(from._has_bits_),
13125       name_(from.name_) {
13126   _internal_metadata_.MergeFrom(from._internal_metadata_);
13127   identifier_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13128   if (from.has_identifier_value()) {
13129     identifier_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.identifier_value(),
13130       GetArenaNoVirtual());
13131   }
13132   string_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13133   if (from.has_string_value()) {
13134     string_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.string_value(),
13135       GetArenaNoVirtual());
13136   }
13137   aggregate_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13138   if (from.has_aggregate_value()) {
13139     aggregate_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.aggregate_value(),
13140       GetArenaNoVirtual());
13141   }
13142   ::memcpy(&positive_int_value_, &from.positive_int_value_,
13143     static_cast<size_t>(reinterpret_cast<char*>(&double_value_) -
13144     reinterpret_cast<char*>(&positive_int_value_)) + sizeof(double_value_));
13145   // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOption)
13146 }
13147 
SharedCtor()13148 void UninterpretedOption::SharedCtor() {
13149   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_UninterpretedOption_google_2fprotobuf_2fdescriptor_2eproto.base);
13150   identifier_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13151   string_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13152   aggregate_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13153   ::memset(&positive_int_value_, 0, static_cast<size_t>(
13154       reinterpret_cast<char*>(&double_value_) -
13155       reinterpret_cast<char*>(&positive_int_value_)) + sizeof(double_value_));
13156 }
13157 
~UninterpretedOption()13158 UninterpretedOption::~UninterpretedOption() {
13159   // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption)
13160   SharedDtor();
13161 }
13162 
SharedDtor()13163 void UninterpretedOption::SharedDtor() {
13164   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
13165   identifier_value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13166   string_value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13167   aggregate_value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13168 }
13169 
ArenaDtor(void * object)13170 void UninterpretedOption::ArenaDtor(void* object) {
13171   UninterpretedOption* _this = reinterpret_cast< UninterpretedOption* >(object);
13172   (void)_this;
13173 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)13174 void UninterpretedOption::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
13175 }
SetCachedSize(int size) const13176 void UninterpretedOption::SetCachedSize(int size) const {
13177   _cached_size_.Set(size);
13178 }
default_instance()13179 const UninterpretedOption& UninterpretedOption::default_instance() {
13180   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_UninterpretedOption_google_2fprotobuf_2fdescriptor_2eproto.base);
13181   return *internal_default_instance();
13182 }
13183 
13184 
Clear()13185 void UninterpretedOption::Clear() {
13186 // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOption)
13187   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
13188   // Prevent compiler warnings about cached_has_bits being unused
13189   (void) cached_has_bits;
13190 
13191   name_.Clear();
13192   cached_has_bits = _has_bits_[0];
13193   if (cached_has_bits & 0x00000007u) {
13194     if (cached_has_bits & 0x00000001u) {
13195       identifier_value_.ClearNonDefaultToEmpty();
13196     }
13197     if (cached_has_bits & 0x00000002u) {
13198       string_value_.ClearNonDefaultToEmpty();
13199     }
13200     if (cached_has_bits & 0x00000004u) {
13201       aggregate_value_.ClearNonDefaultToEmpty();
13202     }
13203   }
13204   if (cached_has_bits & 0x00000038u) {
13205     ::memset(&positive_int_value_, 0, static_cast<size_t>(
13206         reinterpret_cast<char*>(&double_value_) -
13207         reinterpret_cast<char*>(&positive_int_value_)) + sizeof(double_value_));
13208   }
13209   _has_bits_.Clear();
13210   _internal_metadata_.Clear();
13211 }
13212 
13213 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)13214 const char* UninterpretedOption::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
13215 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
13216   _Internal::HasBits has_bits{};
13217   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
13218   while (!ctx->Done(&ptr)) {
13219     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
13220     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
13221     CHK_(ptr);
13222     switch (tag >> 3) {
13223       // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
13224       case 2:
13225         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
13226           ptr -= 1;
13227           do {
13228             ptr += 1;
13229             ptr = ctx->ParseMessage(add_name(), ptr);
13230             CHK_(ptr);
13231             if (!ctx->DataAvailable(ptr)) break;
13232           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
13233         } else goto handle_unusual;
13234         continue;
13235       // optional string identifier_value = 3;
13236       case 3:
13237         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
13238           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_identifier_value(), ptr, ctx, "google.protobuf.UninterpretedOption.identifier_value");
13239           CHK_(ptr);
13240         } else goto handle_unusual;
13241         continue;
13242       // optional uint64 positive_int_value = 4;
13243       case 4:
13244         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
13245           _Internal::set_has_positive_int_value(&has_bits);
13246           positive_int_value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
13247           CHK_(ptr);
13248         } else goto handle_unusual;
13249         continue;
13250       // optional int64 negative_int_value = 5;
13251       case 5:
13252         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
13253           _Internal::set_has_negative_int_value(&has_bits);
13254           negative_int_value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
13255           CHK_(ptr);
13256         } else goto handle_unusual;
13257         continue;
13258       // optional double double_value = 6;
13259       case 6:
13260         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 49)) {
13261           _Internal::set_has_double_value(&has_bits);
13262           double_value_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
13263           ptr += sizeof(double);
13264         } else goto handle_unusual;
13265         continue;
13266       // optional bytes string_value = 7;
13267       case 7:
13268         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
13269           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_string_value(), ptr, ctx);
13270           CHK_(ptr);
13271         } else goto handle_unusual;
13272         continue;
13273       // optional string aggregate_value = 8;
13274       case 8:
13275         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
13276           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_aggregate_value(), ptr, ctx, "google.protobuf.UninterpretedOption.aggregate_value");
13277           CHK_(ptr);
13278         } else goto handle_unusual;
13279         continue;
13280       default: {
13281       handle_unusual:
13282         if ((tag & 7) == 4 || tag == 0) {
13283           ctx->SetLastTag(tag);
13284           goto success;
13285         }
13286         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
13287         CHK_(ptr != nullptr);
13288         continue;
13289       }
13290     }  // switch
13291   }  // while
13292 success:
13293   _has_bits_.Or(has_bits);
13294   return ptr;
13295 failure:
13296   ptr = nullptr;
13297   goto success;
13298 #undef CHK_
13299 }
13300 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)13301 bool UninterpretedOption::MergePartialFromCodedStream(
13302     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
13303 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
13304   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
13305   // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption)
13306   for (;;) {
13307     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
13308     tag = p.first;
13309     if (!p.second) goto handle_unusual;
13310     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
13311       // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
13312       case 2: {
13313         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
13314           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
13315                 input, add_name()));
13316         } else {
13317           goto handle_unusual;
13318         }
13319         break;
13320       }
13321 
13322       // optional string identifier_value = 3;
13323       case 3: {
13324         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
13325           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
13326                 input, this->mutable_identifier_value()));
13327           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
13328             this->identifier_value().data(), static_cast<int>(this->identifier_value().length()),
13329             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
13330             "google.protobuf.UninterpretedOption.identifier_value");
13331         } else {
13332           goto handle_unusual;
13333         }
13334         break;
13335       }
13336 
13337       // optional uint64 positive_int_value = 4;
13338       case 4: {
13339         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) {
13340           _Internal::set_has_positive_int_value(&_has_bits_);
13341           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
13342                    ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64>(
13343                  input, &positive_int_value_)));
13344         } else {
13345           goto handle_unusual;
13346         }
13347         break;
13348       }
13349 
13350       // optional int64 negative_int_value = 5;
13351       case 5: {
13352         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
13353           _Internal::set_has_negative_int_value(&_has_bits_);
13354           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
13355                    ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
13356                  input, &negative_int_value_)));
13357         } else {
13358           goto handle_unusual;
13359         }
13360         break;
13361       }
13362 
13363       // optional double double_value = 6;
13364       case 6: {
13365         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (49 & 0xFF)) {
13366           _Internal::set_has_double_value(&_has_bits_);
13367           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
13368                    double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>(
13369                  input, &double_value_)));
13370         } else {
13371           goto handle_unusual;
13372         }
13373         break;
13374       }
13375 
13376       // optional bytes string_value = 7;
13377       case 7: {
13378         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) {
13379           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes(
13380                 input, this->mutable_string_value()));
13381         } else {
13382           goto handle_unusual;
13383         }
13384         break;
13385       }
13386 
13387       // optional string aggregate_value = 8;
13388       case 8: {
13389         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) {
13390           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
13391                 input, this->mutable_aggregate_value()));
13392           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
13393             this->aggregate_value().data(), static_cast<int>(this->aggregate_value().length()),
13394             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
13395             "google.protobuf.UninterpretedOption.aggregate_value");
13396         } else {
13397           goto handle_unusual;
13398         }
13399         break;
13400       }
13401 
13402       default: {
13403       handle_unusual:
13404         if (tag == 0) {
13405           goto success;
13406         }
13407         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
13408               input, tag, _internal_metadata_.mutable_unknown_fields()));
13409         break;
13410       }
13411     }
13412   }
13413 success:
13414   // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption)
13415   return true;
13416 failure:
13417   // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption)
13418   return false;
13419 #undef DO_
13420 }
13421 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
13422 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const13423 void UninterpretedOption::SerializeWithCachedSizes(
13424     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
13425   // @@protoc_insertion_point(serialize_start:google.protobuf.UninterpretedOption)
13426   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
13427   (void) cached_has_bits;
13428 
13429   // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
13430   for (unsigned int i = 0,
13431       n = static_cast<unsigned int>(this->name_size()); i < n; i++) {
13432     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
13433       2,
13434       this->name(static_cast<int>(i)),
13435       output);
13436   }
13437 
13438   cached_has_bits = _has_bits_[0];
13439   // optional string identifier_value = 3;
13440   if (cached_has_bits & 0x00000001u) {
13441     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
13442       this->identifier_value().data(), static_cast<int>(this->identifier_value().length()),
13443       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
13444       "google.protobuf.UninterpretedOption.identifier_value");
13445     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
13446       3, this->identifier_value(), output);
13447   }
13448 
13449   // optional uint64 positive_int_value = 4;
13450   if (cached_has_bits & 0x00000008u) {
13451     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64(4, this->positive_int_value(), output);
13452   }
13453 
13454   // optional int64 negative_int_value = 5;
13455   if (cached_has_bits & 0x00000010u) {
13456     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(5, this->negative_int_value(), output);
13457   }
13458 
13459   // optional double double_value = 6;
13460   if (cached_has_bits & 0x00000020u) {
13461     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDouble(6, this->double_value(), output);
13462   }
13463 
13464   // optional bytes string_value = 7;
13465   if (cached_has_bits & 0x00000002u) {
13466     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased(
13467       7, this->string_value(), output);
13468   }
13469 
13470   // optional string aggregate_value = 8;
13471   if (cached_has_bits & 0x00000004u) {
13472     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
13473       this->aggregate_value().data(), static_cast<int>(this->aggregate_value().length()),
13474       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
13475       "google.protobuf.UninterpretedOption.aggregate_value");
13476     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
13477       8, this->aggregate_value(), output);
13478   }
13479 
13480   if (_internal_metadata_.have_unknown_fields()) {
13481     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
13482         _internal_metadata_.unknown_fields(), output);
13483   }
13484   // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption)
13485 }
13486 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const13487 ::PROTOBUF_NAMESPACE_ID::uint8* UninterpretedOption::InternalSerializeWithCachedSizesToArray(
13488     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
13489   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption)
13490   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
13491   (void) cached_has_bits;
13492 
13493   // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
13494   for (unsigned int i = 0,
13495       n = static_cast<unsigned int>(this->name_size()); i < n; i++) {
13496     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
13497       InternalWriteMessageToArray(
13498         2, this->name(static_cast<int>(i)), target);
13499   }
13500 
13501   cached_has_bits = _has_bits_[0];
13502   // optional string identifier_value = 3;
13503   if (cached_has_bits & 0x00000001u) {
13504     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
13505       this->identifier_value().data(), static_cast<int>(this->identifier_value().length()),
13506       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
13507       "google.protobuf.UninterpretedOption.identifier_value");
13508     target =
13509       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
13510         3, this->identifier_value(), target);
13511   }
13512 
13513   // optional uint64 positive_int_value = 4;
13514   if (cached_has_bits & 0x00000008u) {
13515     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(4, this->positive_int_value(), target);
13516   }
13517 
13518   // optional int64 negative_int_value = 5;
13519   if (cached_has_bits & 0x00000010u) {
13520     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->negative_int_value(), target);
13521   }
13522 
13523   // optional double double_value = 6;
13524   if (cached_has_bits & 0x00000020u) {
13525     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(6, this->double_value(), target);
13526   }
13527 
13528   // optional bytes string_value = 7;
13529   if (cached_has_bits & 0x00000002u) {
13530     target =
13531       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray(
13532         7, this->string_value(), target);
13533   }
13534 
13535   // optional string aggregate_value = 8;
13536   if (cached_has_bits & 0x00000004u) {
13537     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
13538       this->aggregate_value().data(), static_cast<int>(this->aggregate_value().length()),
13539       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
13540       "google.protobuf.UninterpretedOption.aggregate_value");
13541     target =
13542       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
13543         8, this->aggregate_value(), target);
13544   }
13545 
13546   if (_internal_metadata_.have_unknown_fields()) {
13547     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
13548         _internal_metadata_.unknown_fields(), target);
13549   }
13550   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UninterpretedOption)
13551   return target;
13552 }
13553 
ByteSizeLong() const13554 size_t UninterpretedOption::ByteSizeLong() const {
13555 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.UninterpretedOption)
13556   size_t total_size = 0;
13557 
13558   if (_internal_metadata_.have_unknown_fields()) {
13559     total_size +=
13560       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
13561         _internal_metadata_.unknown_fields());
13562   }
13563   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
13564   // Prevent compiler warnings about cached_has_bits being unused
13565   (void) cached_has_bits;
13566 
13567   // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
13568   {
13569     unsigned int count = static_cast<unsigned int>(this->name_size());
13570     total_size += 1UL * count;
13571     for (unsigned int i = 0; i < count; i++) {
13572       total_size +=
13573         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
13574           this->name(static_cast<int>(i)));
13575     }
13576   }
13577 
13578   cached_has_bits = _has_bits_[0];
13579   if (cached_has_bits & 0x0000003fu) {
13580     // optional string identifier_value = 3;
13581     if (cached_has_bits & 0x00000001u) {
13582       total_size += 1 +
13583         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
13584           this->identifier_value());
13585     }
13586 
13587     // optional bytes string_value = 7;
13588     if (cached_has_bits & 0x00000002u) {
13589       total_size += 1 +
13590         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
13591           this->string_value());
13592     }
13593 
13594     // optional string aggregate_value = 8;
13595     if (cached_has_bits & 0x00000004u) {
13596       total_size += 1 +
13597         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
13598           this->aggregate_value());
13599     }
13600 
13601     // optional uint64 positive_int_value = 4;
13602     if (cached_has_bits & 0x00000008u) {
13603       total_size += 1 +
13604         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
13605           this->positive_int_value());
13606     }
13607 
13608     // optional int64 negative_int_value = 5;
13609     if (cached_has_bits & 0x00000010u) {
13610       total_size += 1 +
13611         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
13612           this->negative_int_value());
13613     }
13614 
13615     // optional double double_value = 6;
13616     if (cached_has_bits & 0x00000020u) {
13617       total_size += 1 + 8;
13618     }
13619 
13620   }
13621   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
13622   SetCachedSize(cached_size);
13623   return total_size;
13624 }
13625 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)13626 void UninterpretedOption::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
13627 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.UninterpretedOption)
13628   GOOGLE_DCHECK_NE(&from, this);
13629   const UninterpretedOption* source =
13630       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<UninterpretedOption>(
13631           &from);
13632   if (source == nullptr) {
13633   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.UninterpretedOption)
13634     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
13635   } else {
13636   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.UninterpretedOption)
13637     MergeFrom(*source);
13638   }
13639 }
13640 
MergeFrom(const UninterpretedOption & from)13641 void UninterpretedOption::MergeFrom(const UninterpretedOption& from) {
13642 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UninterpretedOption)
13643   GOOGLE_DCHECK_NE(&from, this);
13644   _internal_metadata_.MergeFrom(from._internal_metadata_);
13645   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
13646   (void) cached_has_bits;
13647 
13648   name_.MergeFrom(from.name_);
13649   cached_has_bits = from._has_bits_[0];
13650   if (cached_has_bits & 0x0000003fu) {
13651     if (cached_has_bits & 0x00000001u) {
13652       set_identifier_value(from.identifier_value());
13653     }
13654     if (cached_has_bits & 0x00000002u) {
13655       set_string_value(from.string_value());
13656     }
13657     if (cached_has_bits & 0x00000004u) {
13658       set_aggregate_value(from.aggregate_value());
13659     }
13660     if (cached_has_bits & 0x00000008u) {
13661       positive_int_value_ = from.positive_int_value_;
13662     }
13663     if (cached_has_bits & 0x00000010u) {
13664       negative_int_value_ = from.negative_int_value_;
13665     }
13666     if (cached_has_bits & 0x00000020u) {
13667       double_value_ = from.double_value_;
13668     }
13669     _has_bits_[0] |= cached_has_bits;
13670   }
13671 }
13672 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)13673 void UninterpretedOption::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
13674 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.UninterpretedOption)
13675   if (&from == this) return;
13676   Clear();
13677   MergeFrom(from);
13678 }
13679 
CopyFrom(const UninterpretedOption & from)13680 void UninterpretedOption::CopyFrom(const UninterpretedOption& from) {
13681 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.UninterpretedOption)
13682   if (&from == this) return;
13683   Clear();
13684   MergeFrom(from);
13685 }
13686 
IsInitialized() const13687 bool UninterpretedOption::IsInitialized() const {
13688   if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->name())) return false;
13689   return true;
13690 }
13691 
InternalSwap(UninterpretedOption * other)13692 void UninterpretedOption::InternalSwap(UninterpretedOption* other) {
13693   using std::swap;
13694   _internal_metadata_.Swap(&other->_internal_metadata_);
13695   swap(_has_bits_[0], other->_has_bits_[0]);
13696   CastToBase(&name_)->InternalSwap(CastToBase(&other->name_));
13697   identifier_value_.Swap(&other->identifier_value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
13698     GetArenaNoVirtual());
13699   string_value_.Swap(&other->string_value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
13700     GetArenaNoVirtual());
13701   aggregate_value_.Swap(&other->aggregate_value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
13702     GetArenaNoVirtual());
13703   swap(positive_int_value_, other->positive_int_value_);
13704   swap(negative_int_value_, other->negative_int_value_);
13705   swap(double_value_, other->double_value_);
13706 }
13707 
GetMetadata() const13708 ::PROTOBUF_NAMESPACE_ID::Metadata UninterpretedOption::GetMetadata() const {
13709   return GetMetadataStatic();
13710 }
13711 
13712 
13713 // ===================================================================
13714 
InitAsDefaultInstance()13715 void SourceCodeInfo_Location::InitAsDefaultInstance() {
13716 }
13717 class SourceCodeInfo_Location::_Internal {
13718  public:
13719   using HasBits = decltype(std::declval<SourceCodeInfo_Location>()._has_bits_);
set_has_leading_comments(HasBits * has_bits)13720   static void set_has_leading_comments(HasBits* has_bits) {
13721     (*has_bits)[0] |= 1u;
13722   }
set_has_trailing_comments(HasBits * has_bits)13723   static void set_has_trailing_comments(HasBits* has_bits) {
13724     (*has_bits)[0] |= 2u;
13725   }
13726 };
13727 
SourceCodeInfo_Location()13728 SourceCodeInfo_Location::SourceCodeInfo_Location()
13729   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
13730   SharedCtor();
13731   // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo.Location)
13732 }
SourceCodeInfo_Location(::PROTOBUF_NAMESPACE_ID::Arena * arena)13733 SourceCodeInfo_Location::SourceCodeInfo_Location(::PROTOBUF_NAMESPACE_ID::Arena* arena)
13734   : ::PROTOBUF_NAMESPACE_ID::Message(),
13735   _internal_metadata_(arena),
13736   path_(arena),
13737   span_(arena),
13738   leading_detached_comments_(arena) {
13739   SharedCtor();
13740   RegisterArenaDtor(arena);
13741   // @@protoc_insertion_point(arena_constructor:google.protobuf.SourceCodeInfo.Location)
13742 }
SourceCodeInfo_Location(const SourceCodeInfo_Location & from)13743 SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location& from)
13744   : ::PROTOBUF_NAMESPACE_ID::Message(),
13745       _internal_metadata_(nullptr),
13746       _has_bits_(from._has_bits_),
13747       path_(from.path_),
13748       span_(from.span_),
13749       leading_detached_comments_(from.leading_detached_comments_) {
13750   _internal_metadata_.MergeFrom(from._internal_metadata_);
13751   leading_comments_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13752   if (from.has_leading_comments()) {
13753     leading_comments_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.leading_comments(),
13754       GetArenaNoVirtual());
13755   }
13756   trailing_comments_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13757   if (from.has_trailing_comments()) {
13758     trailing_comments_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.trailing_comments(),
13759       GetArenaNoVirtual());
13760   }
13761   // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo.Location)
13762 }
13763 
SharedCtor()13764 void SourceCodeInfo_Location::SharedCtor() {
13765   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SourceCodeInfo_Location_google_2fprotobuf_2fdescriptor_2eproto.base);
13766   leading_comments_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13767   trailing_comments_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13768 }
13769 
~SourceCodeInfo_Location()13770 SourceCodeInfo_Location::~SourceCodeInfo_Location() {
13771   // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo.Location)
13772   SharedDtor();
13773 }
13774 
SharedDtor()13775 void SourceCodeInfo_Location::SharedDtor() {
13776   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
13777   leading_comments_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13778   trailing_comments_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
13779 }
13780 
ArenaDtor(void * object)13781 void SourceCodeInfo_Location::ArenaDtor(void* object) {
13782   SourceCodeInfo_Location* _this = reinterpret_cast< SourceCodeInfo_Location* >(object);
13783   (void)_this;
13784 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)13785 void SourceCodeInfo_Location::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
13786 }
SetCachedSize(int size) const13787 void SourceCodeInfo_Location::SetCachedSize(int size) const {
13788   _cached_size_.Set(size);
13789 }
default_instance()13790 const SourceCodeInfo_Location& SourceCodeInfo_Location::default_instance() {
13791   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SourceCodeInfo_Location_google_2fprotobuf_2fdescriptor_2eproto.base);
13792   return *internal_default_instance();
13793 }
13794 
13795 
Clear()13796 void SourceCodeInfo_Location::Clear() {
13797 // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceCodeInfo.Location)
13798   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
13799   // Prevent compiler warnings about cached_has_bits being unused
13800   (void) cached_has_bits;
13801 
13802   path_.Clear();
13803   span_.Clear();
13804   leading_detached_comments_.Clear();
13805   cached_has_bits = _has_bits_[0];
13806   if (cached_has_bits & 0x00000003u) {
13807     if (cached_has_bits & 0x00000001u) {
13808       leading_comments_.ClearNonDefaultToEmpty();
13809     }
13810     if (cached_has_bits & 0x00000002u) {
13811       trailing_comments_.ClearNonDefaultToEmpty();
13812     }
13813   }
13814   _has_bits_.Clear();
13815   _internal_metadata_.Clear();
13816 }
13817 
13818 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)13819 const char* SourceCodeInfo_Location::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
13820 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
13821   _Internal::HasBits has_bits{};
13822   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
13823   while (!ctx->Done(&ptr)) {
13824     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
13825     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
13826     CHK_(ptr);
13827     switch (tag >> 3) {
13828       // repeated int32 path = 1 [packed = true];
13829       case 1:
13830         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
13831           ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(mutable_path(), ptr, ctx);
13832           CHK_(ptr);
13833         } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) {
13834           add_path(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
13835           CHK_(ptr);
13836         } else goto handle_unusual;
13837         continue;
13838       // repeated int32 span = 2 [packed = true];
13839       case 2:
13840         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
13841           ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(mutable_span(), ptr, ctx);
13842           CHK_(ptr);
13843         } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) {
13844           add_span(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
13845           CHK_(ptr);
13846         } else goto handle_unusual;
13847         continue;
13848       // optional string leading_comments = 3;
13849       case 3:
13850         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
13851           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_leading_comments(), ptr, ctx, "google.protobuf.SourceCodeInfo.Location.leading_comments");
13852           CHK_(ptr);
13853         } else goto handle_unusual;
13854         continue;
13855       // optional string trailing_comments = 4;
13856       case 4:
13857         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
13858           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_trailing_comments(), ptr, ctx, "google.protobuf.SourceCodeInfo.Location.trailing_comments");
13859           CHK_(ptr);
13860         } else goto handle_unusual;
13861         continue;
13862       // repeated string leading_detached_comments = 6;
13863       case 6:
13864         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
13865           ptr -= 1;
13866           do {
13867             ptr += 1;
13868             ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(add_leading_detached_comments(), ptr, ctx, "google.protobuf.SourceCodeInfo.Location.leading_detached_comments");
13869             CHK_(ptr);
13870             if (!ctx->DataAvailable(ptr)) break;
13871           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 50);
13872         } else goto handle_unusual;
13873         continue;
13874       default: {
13875       handle_unusual:
13876         if ((tag & 7) == 4 || tag == 0) {
13877           ctx->SetLastTag(tag);
13878           goto success;
13879         }
13880         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
13881         CHK_(ptr != nullptr);
13882         continue;
13883       }
13884     }  // switch
13885   }  // while
13886 success:
13887   _has_bits_.Or(has_bits);
13888   return ptr;
13889 failure:
13890   ptr = nullptr;
13891   goto success;
13892 #undef CHK_
13893 }
13894 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)13895 bool SourceCodeInfo_Location::MergePartialFromCodedStream(
13896     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
13897 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
13898   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
13899   // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo.Location)
13900   for (;;) {
13901     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
13902     tag = p.first;
13903     if (!p.second) goto handle_unusual;
13904     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
13905       // repeated int32 path = 1 [packed = true];
13906       case 1: {
13907         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
13908           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
13909                    ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
13910                  input, this->mutable_path())));
13911         } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
13912           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
13913                    ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
13914                  1, 10u, input, this->mutable_path())));
13915         } else {
13916           goto handle_unusual;
13917         }
13918         break;
13919       }
13920 
13921       // repeated int32 span = 2 [packed = true];
13922       case 2: {
13923         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
13924           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
13925                    ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
13926                  input, this->mutable_span())));
13927         } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
13928           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
13929                    ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
13930                  1, 18u, input, this->mutable_span())));
13931         } else {
13932           goto handle_unusual;
13933         }
13934         break;
13935       }
13936 
13937       // optional string leading_comments = 3;
13938       case 3: {
13939         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
13940           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
13941                 input, this->mutable_leading_comments()));
13942           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
13943             this->leading_comments().data(), static_cast<int>(this->leading_comments().length()),
13944             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
13945             "google.protobuf.SourceCodeInfo.Location.leading_comments");
13946         } else {
13947           goto handle_unusual;
13948         }
13949         break;
13950       }
13951 
13952       // optional string trailing_comments = 4;
13953       case 4: {
13954         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
13955           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
13956                 input, this->mutable_trailing_comments()));
13957           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
13958             this->trailing_comments().data(), static_cast<int>(this->trailing_comments().length()),
13959             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
13960             "google.protobuf.SourceCodeInfo.Location.trailing_comments");
13961         } else {
13962           goto handle_unusual;
13963         }
13964         break;
13965       }
13966 
13967       // repeated string leading_detached_comments = 6;
13968       case 6: {
13969         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
13970           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
13971                 input, this->add_leading_detached_comments()));
13972           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
13973             this->leading_detached_comments(this->leading_detached_comments_size() - 1).data(),
13974             static_cast<int>(this->leading_detached_comments(this->leading_detached_comments_size() - 1).length()),
13975             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
13976             "google.protobuf.SourceCodeInfo.Location.leading_detached_comments");
13977         } else {
13978           goto handle_unusual;
13979         }
13980         break;
13981       }
13982 
13983       default: {
13984       handle_unusual:
13985         if (tag == 0) {
13986           goto success;
13987         }
13988         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
13989               input, tag, _internal_metadata_.mutable_unknown_fields()));
13990         break;
13991       }
13992     }
13993   }
13994 success:
13995   // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo.Location)
13996   return true;
13997 failure:
13998   // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo.Location)
13999   return false;
14000 #undef DO_
14001 }
14002 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
14003 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const14004 void SourceCodeInfo_Location::SerializeWithCachedSizes(
14005     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
14006   // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo.Location)
14007   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14008   (void) cached_has_bits;
14009 
14010   // repeated int32 path = 1 [packed = true];
14011   if (this->path_size() > 0) {
14012     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(1, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
14013     output->WriteVarint32(_path_cached_byte_size_.load(
14014         std::memory_order_relaxed));
14015   }
14016   for (int i = 0, n = this->path_size(); i < n; i++) {
14017     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32NoTag(
14018       this->path(i), output);
14019   }
14020 
14021   // repeated int32 span = 2 [packed = true];
14022   if (this->span_size() > 0) {
14023     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(2, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
14024     output->WriteVarint32(_span_cached_byte_size_.load(
14025         std::memory_order_relaxed));
14026   }
14027   for (int i = 0, n = this->span_size(); i < n; i++) {
14028     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32NoTag(
14029       this->span(i), output);
14030   }
14031 
14032   cached_has_bits = _has_bits_[0];
14033   // optional string leading_comments = 3;
14034   if (cached_has_bits & 0x00000001u) {
14035     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
14036       this->leading_comments().data(), static_cast<int>(this->leading_comments().length()),
14037       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
14038       "google.protobuf.SourceCodeInfo.Location.leading_comments");
14039     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
14040       3, this->leading_comments(), output);
14041   }
14042 
14043   // optional string trailing_comments = 4;
14044   if (cached_has_bits & 0x00000002u) {
14045     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
14046       this->trailing_comments().data(), static_cast<int>(this->trailing_comments().length()),
14047       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
14048       "google.protobuf.SourceCodeInfo.Location.trailing_comments");
14049     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
14050       4, this->trailing_comments(), output);
14051   }
14052 
14053   // repeated string leading_detached_comments = 6;
14054   for (int i = 0, n = this->leading_detached_comments_size(); i < n; i++) {
14055     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
14056       this->leading_detached_comments(i).data(), static_cast<int>(this->leading_detached_comments(i).length()),
14057       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
14058       "google.protobuf.SourceCodeInfo.Location.leading_detached_comments");
14059     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
14060       6, this->leading_detached_comments(i), output);
14061   }
14062 
14063   if (_internal_metadata_.have_unknown_fields()) {
14064     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
14065         _internal_metadata_.unknown_fields(), output);
14066   }
14067   // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo.Location)
14068 }
14069 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const14070 ::PROTOBUF_NAMESPACE_ID::uint8* SourceCodeInfo_Location::InternalSerializeWithCachedSizesToArray(
14071     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
14072   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo.Location)
14073   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14074   (void) cached_has_bits;
14075 
14076   // repeated int32 path = 1 [packed = true];
14077   if (this->path_size() > 0) {
14078     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray(
14079       1,
14080       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
14081       target);
14082     target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray(
14083         _path_cached_byte_size_.load(std::memory_order_relaxed),
14084          target);
14085     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
14086       WriteInt32NoTagToArray(this->path_, target);
14087   }
14088 
14089   // repeated int32 span = 2 [packed = true];
14090   if (this->span_size() > 0) {
14091     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray(
14092       2,
14093       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
14094       target);
14095     target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray(
14096         _span_cached_byte_size_.load(std::memory_order_relaxed),
14097          target);
14098     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
14099       WriteInt32NoTagToArray(this->span_, target);
14100   }
14101 
14102   cached_has_bits = _has_bits_[0];
14103   // optional string leading_comments = 3;
14104   if (cached_has_bits & 0x00000001u) {
14105     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
14106       this->leading_comments().data(), static_cast<int>(this->leading_comments().length()),
14107       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
14108       "google.protobuf.SourceCodeInfo.Location.leading_comments");
14109     target =
14110       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
14111         3, this->leading_comments(), target);
14112   }
14113 
14114   // optional string trailing_comments = 4;
14115   if (cached_has_bits & 0x00000002u) {
14116     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
14117       this->trailing_comments().data(), static_cast<int>(this->trailing_comments().length()),
14118       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
14119       "google.protobuf.SourceCodeInfo.Location.trailing_comments");
14120     target =
14121       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
14122         4, this->trailing_comments(), target);
14123   }
14124 
14125   // repeated string leading_detached_comments = 6;
14126   for (int i = 0, n = this->leading_detached_comments_size(); i < n; i++) {
14127     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
14128       this->leading_detached_comments(i).data(), static_cast<int>(this->leading_detached_comments(i).length()),
14129       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
14130       "google.protobuf.SourceCodeInfo.Location.leading_detached_comments");
14131     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
14132       WriteStringToArray(6, this->leading_detached_comments(i), target);
14133   }
14134 
14135   if (_internal_metadata_.have_unknown_fields()) {
14136     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
14137         _internal_metadata_.unknown_fields(), target);
14138   }
14139   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeInfo.Location)
14140   return target;
14141 }
14142 
ByteSizeLong() const14143 size_t SourceCodeInfo_Location::ByteSizeLong() const {
14144 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeInfo.Location)
14145   size_t total_size = 0;
14146 
14147   if (_internal_metadata_.have_unknown_fields()) {
14148     total_size +=
14149       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
14150         _internal_metadata_.unknown_fields());
14151   }
14152   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14153   // Prevent compiler warnings about cached_has_bits being unused
14154   (void) cached_has_bits;
14155 
14156   // repeated int32 path = 1 [packed = true];
14157   {
14158     size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
14159       Int32Size(this->path_);
14160     if (data_size > 0) {
14161       total_size += 1 +
14162         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
14163             static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
14164     }
14165     int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
14166     _path_cached_byte_size_.store(cached_size,
14167                                     std::memory_order_relaxed);
14168     total_size += data_size;
14169   }
14170 
14171   // repeated int32 span = 2 [packed = true];
14172   {
14173     size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
14174       Int32Size(this->span_);
14175     if (data_size > 0) {
14176       total_size += 1 +
14177         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
14178             static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
14179     }
14180     int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
14181     _span_cached_byte_size_.store(cached_size,
14182                                     std::memory_order_relaxed);
14183     total_size += data_size;
14184   }
14185 
14186   // repeated string leading_detached_comments = 6;
14187   total_size += 1 *
14188       ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->leading_detached_comments_size());
14189   for (int i = 0, n = this->leading_detached_comments_size(); i < n; i++) {
14190     total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
14191       this->leading_detached_comments(i));
14192   }
14193 
14194   cached_has_bits = _has_bits_[0];
14195   if (cached_has_bits & 0x00000003u) {
14196     // optional string leading_comments = 3;
14197     if (cached_has_bits & 0x00000001u) {
14198       total_size += 1 +
14199         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
14200           this->leading_comments());
14201     }
14202 
14203     // optional string trailing_comments = 4;
14204     if (cached_has_bits & 0x00000002u) {
14205       total_size += 1 +
14206         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
14207           this->trailing_comments());
14208     }
14209 
14210   }
14211   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
14212   SetCachedSize(cached_size);
14213   return total_size;
14214 }
14215 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)14216 void SourceCodeInfo_Location::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
14217 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceCodeInfo.Location)
14218   GOOGLE_DCHECK_NE(&from, this);
14219   const SourceCodeInfo_Location* source =
14220       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SourceCodeInfo_Location>(
14221           &from);
14222   if (source == nullptr) {
14223   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.SourceCodeInfo.Location)
14224     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
14225   } else {
14226   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.SourceCodeInfo.Location)
14227     MergeFrom(*source);
14228   }
14229 }
14230 
MergeFrom(const SourceCodeInfo_Location & from)14231 void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) {
14232 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.SourceCodeInfo.Location)
14233   GOOGLE_DCHECK_NE(&from, this);
14234   _internal_metadata_.MergeFrom(from._internal_metadata_);
14235   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14236   (void) cached_has_bits;
14237 
14238   path_.MergeFrom(from.path_);
14239   span_.MergeFrom(from.span_);
14240   leading_detached_comments_.MergeFrom(from.leading_detached_comments_);
14241   cached_has_bits = from._has_bits_[0];
14242   if (cached_has_bits & 0x00000003u) {
14243     if (cached_has_bits & 0x00000001u) {
14244       set_leading_comments(from.leading_comments());
14245     }
14246     if (cached_has_bits & 0x00000002u) {
14247       set_trailing_comments(from.trailing_comments());
14248     }
14249   }
14250 }
14251 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)14252 void SourceCodeInfo_Location::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
14253 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.SourceCodeInfo.Location)
14254   if (&from == this) return;
14255   Clear();
14256   MergeFrom(from);
14257 }
14258 
CopyFrom(const SourceCodeInfo_Location & from)14259 void SourceCodeInfo_Location::CopyFrom(const SourceCodeInfo_Location& from) {
14260 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.SourceCodeInfo.Location)
14261   if (&from == this) return;
14262   Clear();
14263   MergeFrom(from);
14264 }
14265 
IsInitialized() const14266 bool SourceCodeInfo_Location::IsInitialized() const {
14267   return true;
14268 }
14269 
InternalSwap(SourceCodeInfo_Location * other)14270 void SourceCodeInfo_Location::InternalSwap(SourceCodeInfo_Location* other) {
14271   using std::swap;
14272   _internal_metadata_.Swap(&other->_internal_metadata_);
14273   swap(_has_bits_[0], other->_has_bits_[0]);
14274   path_.InternalSwap(&other->path_);
14275   span_.InternalSwap(&other->span_);
14276   leading_detached_comments_.InternalSwap(CastToBase(&other->leading_detached_comments_));
14277   leading_comments_.Swap(&other->leading_comments_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
14278     GetArenaNoVirtual());
14279   trailing_comments_.Swap(&other->trailing_comments_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
14280     GetArenaNoVirtual());
14281 }
14282 
GetMetadata() const14283 ::PROTOBUF_NAMESPACE_ID::Metadata SourceCodeInfo_Location::GetMetadata() const {
14284   return GetMetadataStatic();
14285 }
14286 
14287 
14288 // ===================================================================
14289 
InitAsDefaultInstance()14290 void SourceCodeInfo::InitAsDefaultInstance() {
14291 }
14292 class SourceCodeInfo::_Internal {
14293  public:
14294   using HasBits = decltype(std::declval<SourceCodeInfo>()._has_bits_);
14295 };
14296 
SourceCodeInfo()14297 SourceCodeInfo::SourceCodeInfo()
14298   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
14299   SharedCtor();
14300   // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo)
14301 }
SourceCodeInfo(::PROTOBUF_NAMESPACE_ID::Arena * arena)14302 SourceCodeInfo::SourceCodeInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena)
14303   : ::PROTOBUF_NAMESPACE_ID::Message(),
14304   _internal_metadata_(arena),
14305   location_(arena) {
14306   SharedCtor();
14307   RegisterArenaDtor(arena);
14308   // @@protoc_insertion_point(arena_constructor:google.protobuf.SourceCodeInfo)
14309 }
SourceCodeInfo(const SourceCodeInfo & from)14310 SourceCodeInfo::SourceCodeInfo(const SourceCodeInfo& from)
14311   : ::PROTOBUF_NAMESPACE_ID::Message(),
14312       _internal_metadata_(nullptr),
14313       _has_bits_(from._has_bits_),
14314       location_(from.location_) {
14315   _internal_metadata_.MergeFrom(from._internal_metadata_);
14316   // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo)
14317 }
14318 
SharedCtor()14319 void SourceCodeInfo::SharedCtor() {
14320   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SourceCodeInfo_google_2fprotobuf_2fdescriptor_2eproto.base);
14321 }
14322 
~SourceCodeInfo()14323 SourceCodeInfo::~SourceCodeInfo() {
14324   // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo)
14325   SharedDtor();
14326 }
14327 
SharedDtor()14328 void SourceCodeInfo::SharedDtor() {
14329   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
14330 }
14331 
ArenaDtor(void * object)14332 void SourceCodeInfo::ArenaDtor(void* object) {
14333   SourceCodeInfo* _this = reinterpret_cast< SourceCodeInfo* >(object);
14334   (void)_this;
14335 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)14336 void SourceCodeInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
14337 }
SetCachedSize(int size) const14338 void SourceCodeInfo::SetCachedSize(int size) const {
14339   _cached_size_.Set(size);
14340 }
default_instance()14341 const SourceCodeInfo& SourceCodeInfo::default_instance() {
14342   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SourceCodeInfo_google_2fprotobuf_2fdescriptor_2eproto.base);
14343   return *internal_default_instance();
14344 }
14345 
14346 
Clear()14347 void SourceCodeInfo::Clear() {
14348 // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceCodeInfo)
14349   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14350   // Prevent compiler warnings about cached_has_bits being unused
14351   (void) cached_has_bits;
14352 
14353   location_.Clear();
14354   _has_bits_.Clear();
14355   _internal_metadata_.Clear();
14356 }
14357 
14358 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)14359 const char* SourceCodeInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
14360 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
14361   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
14362   while (!ctx->Done(&ptr)) {
14363     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
14364     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
14365     CHK_(ptr);
14366     switch (tag >> 3) {
14367       // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
14368       case 1:
14369         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
14370           ptr -= 1;
14371           do {
14372             ptr += 1;
14373             ptr = ctx->ParseMessage(add_location(), ptr);
14374             CHK_(ptr);
14375             if (!ctx->DataAvailable(ptr)) break;
14376           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
14377         } else goto handle_unusual;
14378         continue;
14379       default: {
14380       handle_unusual:
14381         if ((tag & 7) == 4 || tag == 0) {
14382           ctx->SetLastTag(tag);
14383           goto success;
14384         }
14385         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
14386         CHK_(ptr != nullptr);
14387         continue;
14388       }
14389     }  // switch
14390   }  // while
14391 success:
14392   return ptr;
14393 failure:
14394   ptr = nullptr;
14395   goto success;
14396 #undef CHK_
14397 }
14398 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)14399 bool SourceCodeInfo::MergePartialFromCodedStream(
14400     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
14401 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
14402   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
14403   // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo)
14404   for (;;) {
14405     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
14406     tag = p.first;
14407     if (!p.second) goto handle_unusual;
14408     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
14409       // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
14410       case 1: {
14411         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
14412           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
14413                 input, add_location()));
14414         } else {
14415           goto handle_unusual;
14416         }
14417         break;
14418       }
14419 
14420       default: {
14421       handle_unusual:
14422         if (tag == 0) {
14423           goto success;
14424         }
14425         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
14426               input, tag, _internal_metadata_.mutable_unknown_fields()));
14427         break;
14428       }
14429     }
14430   }
14431 success:
14432   // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo)
14433   return true;
14434 failure:
14435   // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo)
14436   return false;
14437 #undef DO_
14438 }
14439 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
14440 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const14441 void SourceCodeInfo::SerializeWithCachedSizes(
14442     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
14443   // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo)
14444   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14445   (void) cached_has_bits;
14446 
14447   // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
14448   for (unsigned int i = 0,
14449       n = static_cast<unsigned int>(this->location_size()); i < n; i++) {
14450     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
14451       1,
14452       this->location(static_cast<int>(i)),
14453       output);
14454   }
14455 
14456   if (_internal_metadata_.have_unknown_fields()) {
14457     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
14458         _internal_metadata_.unknown_fields(), output);
14459   }
14460   // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo)
14461 }
14462 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const14463 ::PROTOBUF_NAMESPACE_ID::uint8* SourceCodeInfo::InternalSerializeWithCachedSizesToArray(
14464     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
14465   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo)
14466   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14467   (void) cached_has_bits;
14468 
14469   // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
14470   for (unsigned int i = 0,
14471       n = static_cast<unsigned int>(this->location_size()); i < n; i++) {
14472     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
14473       InternalWriteMessageToArray(
14474         1, this->location(static_cast<int>(i)), target);
14475   }
14476 
14477   if (_internal_metadata_.have_unknown_fields()) {
14478     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
14479         _internal_metadata_.unknown_fields(), target);
14480   }
14481   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeInfo)
14482   return target;
14483 }
14484 
ByteSizeLong() const14485 size_t SourceCodeInfo::ByteSizeLong() const {
14486 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeInfo)
14487   size_t total_size = 0;
14488 
14489   if (_internal_metadata_.have_unknown_fields()) {
14490     total_size +=
14491       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
14492         _internal_metadata_.unknown_fields());
14493   }
14494   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14495   // Prevent compiler warnings about cached_has_bits being unused
14496   (void) cached_has_bits;
14497 
14498   // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
14499   {
14500     unsigned int count = static_cast<unsigned int>(this->location_size());
14501     total_size += 1UL * count;
14502     for (unsigned int i = 0; i < count; i++) {
14503       total_size +=
14504         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
14505           this->location(static_cast<int>(i)));
14506     }
14507   }
14508 
14509   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
14510   SetCachedSize(cached_size);
14511   return total_size;
14512 }
14513 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)14514 void SourceCodeInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
14515 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceCodeInfo)
14516   GOOGLE_DCHECK_NE(&from, this);
14517   const SourceCodeInfo* source =
14518       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SourceCodeInfo>(
14519           &from);
14520   if (source == nullptr) {
14521   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.SourceCodeInfo)
14522     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
14523   } else {
14524   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.SourceCodeInfo)
14525     MergeFrom(*source);
14526   }
14527 }
14528 
MergeFrom(const SourceCodeInfo & from)14529 void SourceCodeInfo::MergeFrom(const SourceCodeInfo& from) {
14530 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.SourceCodeInfo)
14531   GOOGLE_DCHECK_NE(&from, this);
14532   _internal_metadata_.MergeFrom(from._internal_metadata_);
14533   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14534   (void) cached_has_bits;
14535 
14536   location_.MergeFrom(from.location_);
14537 }
14538 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)14539 void SourceCodeInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
14540 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.SourceCodeInfo)
14541   if (&from == this) return;
14542   Clear();
14543   MergeFrom(from);
14544 }
14545 
CopyFrom(const SourceCodeInfo & from)14546 void SourceCodeInfo::CopyFrom(const SourceCodeInfo& from) {
14547 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.SourceCodeInfo)
14548   if (&from == this) return;
14549   Clear();
14550   MergeFrom(from);
14551 }
14552 
IsInitialized() const14553 bool SourceCodeInfo::IsInitialized() const {
14554   return true;
14555 }
14556 
InternalSwap(SourceCodeInfo * other)14557 void SourceCodeInfo::InternalSwap(SourceCodeInfo* other) {
14558   using std::swap;
14559   _internal_metadata_.Swap(&other->_internal_metadata_);
14560   swap(_has_bits_[0], other->_has_bits_[0]);
14561   CastToBase(&location_)->InternalSwap(CastToBase(&other->location_));
14562 }
14563 
GetMetadata() const14564 ::PROTOBUF_NAMESPACE_ID::Metadata SourceCodeInfo::GetMetadata() const {
14565   return GetMetadataStatic();
14566 }
14567 
14568 
14569 // ===================================================================
14570 
InitAsDefaultInstance()14571 void GeneratedCodeInfo_Annotation::InitAsDefaultInstance() {
14572 }
14573 class GeneratedCodeInfo_Annotation::_Internal {
14574  public:
14575   using HasBits = decltype(std::declval<GeneratedCodeInfo_Annotation>()._has_bits_);
set_has_source_file(HasBits * has_bits)14576   static void set_has_source_file(HasBits* has_bits) {
14577     (*has_bits)[0] |= 1u;
14578   }
set_has_begin(HasBits * has_bits)14579   static void set_has_begin(HasBits* has_bits) {
14580     (*has_bits)[0] |= 2u;
14581   }
set_has_end(HasBits * has_bits)14582   static void set_has_end(HasBits* has_bits) {
14583     (*has_bits)[0] |= 4u;
14584   }
14585 };
14586 
GeneratedCodeInfo_Annotation()14587 GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation()
14588   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
14589   SharedCtor();
14590   // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo.Annotation)
14591 }
GeneratedCodeInfo_Annotation(::PROTOBUF_NAMESPACE_ID::Arena * arena)14592 GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(::PROTOBUF_NAMESPACE_ID::Arena* arena)
14593   : ::PROTOBUF_NAMESPACE_ID::Message(),
14594   _internal_metadata_(arena),
14595   path_(arena) {
14596   SharedCtor();
14597   RegisterArenaDtor(arena);
14598   // @@protoc_insertion_point(arena_constructor:google.protobuf.GeneratedCodeInfo.Annotation)
14599 }
GeneratedCodeInfo_Annotation(const GeneratedCodeInfo_Annotation & from)14600 GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(const GeneratedCodeInfo_Annotation& from)
14601   : ::PROTOBUF_NAMESPACE_ID::Message(),
14602       _internal_metadata_(nullptr),
14603       _has_bits_(from._has_bits_),
14604       path_(from.path_) {
14605   _internal_metadata_.MergeFrom(from._internal_metadata_);
14606   source_file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
14607   if (from.has_source_file()) {
14608     source_file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.source_file(),
14609       GetArenaNoVirtual());
14610   }
14611   ::memcpy(&begin_, &from.begin_,
14612     static_cast<size_t>(reinterpret_cast<char*>(&end_) -
14613     reinterpret_cast<char*>(&begin_)) + sizeof(end_));
14614   // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo.Annotation)
14615 }
14616 
SharedCtor()14617 void GeneratedCodeInfo_Annotation::SharedCtor() {
14618   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GeneratedCodeInfo_Annotation_google_2fprotobuf_2fdescriptor_2eproto.base);
14619   source_file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
14620   ::memset(&begin_, 0, static_cast<size_t>(
14621       reinterpret_cast<char*>(&end_) -
14622       reinterpret_cast<char*>(&begin_)) + sizeof(end_));
14623 }
14624 
~GeneratedCodeInfo_Annotation()14625 GeneratedCodeInfo_Annotation::~GeneratedCodeInfo_Annotation() {
14626   // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo.Annotation)
14627   SharedDtor();
14628 }
14629 
SharedDtor()14630 void GeneratedCodeInfo_Annotation::SharedDtor() {
14631   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
14632   source_file_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
14633 }
14634 
ArenaDtor(void * object)14635 void GeneratedCodeInfo_Annotation::ArenaDtor(void* object) {
14636   GeneratedCodeInfo_Annotation* _this = reinterpret_cast< GeneratedCodeInfo_Annotation* >(object);
14637   (void)_this;
14638 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)14639 void GeneratedCodeInfo_Annotation::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
14640 }
SetCachedSize(int size) const14641 void GeneratedCodeInfo_Annotation::SetCachedSize(int size) const {
14642   _cached_size_.Set(size);
14643 }
default_instance()14644 const GeneratedCodeInfo_Annotation& GeneratedCodeInfo_Annotation::default_instance() {
14645   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GeneratedCodeInfo_Annotation_google_2fprotobuf_2fdescriptor_2eproto.base);
14646   return *internal_default_instance();
14647 }
14648 
14649 
Clear()14650 void GeneratedCodeInfo_Annotation::Clear() {
14651 // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInfo.Annotation)
14652   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14653   // Prevent compiler warnings about cached_has_bits being unused
14654   (void) cached_has_bits;
14655 
14656   path_.Clear();
14657   cached_has_bits = _has_bits_[0];
14658   if (cached_has_bits & 0x00000001u) {
14659     source_file_.ClearNonDefaultToEmpty();
14660   }
14661   if (cached_has_bits & 0x00000006u) {
14662     ::memset(&begin_, 0, static_cast<size_t>(
14663         reinterpret_cast<char*>(&end_) -
14664         reinterpret_cast<char*>(&begin_)) + sizeof(end_));
14665   }
14666   _has_bits_.Clear();
14667   _internal_metadata_.Clear();
14668 }
14669 
14670 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)14671 const char* GeneratedCodeInfo_Annotation::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
14672 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
14673   _Internal::HasBits has_bits{};
14674   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
14675   while (!ctx->Done(&ptr)) {
14676     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
14677     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
14678     CHK_(ptr);
14679     switch (tag >> 3) {
14680       // repeated int32 path = 1 [packed = true];
14681       case 1:
14682         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
14683           ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(mutable_path(), ptr, ctx);
14684           CHK_(ptr);
14685         } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) {
14686           add_path(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
14687           CHK_(ptr);
14688         } else goto handle_unusual;
14689         continue;
14690       // optional string source_file = 2;
14691       case 2:
14692         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
14693           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(mutable_source_file(), ptr, ctx, "google.protobuf.GeneratedCodeInfo.Annotation.source_file");
14694           CHK_(ptr);
14695         } else goto handle_unusual;
14696         continue;
14697       // optional int32 begin = 3;
14698       case 3:
14699         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
14700           _Internal::set_has_begin(&has_bits);
14701           begin_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
14702           CHK_(ptr);
14703         } else goto handle_unusual;
14704         continue;
14705       // optional int32 end = 4;
14706       case 4:
14707         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
14708           _Internal::set_has_end(&has_bits);
14709           end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
14710           CHK_(ptr);
14711         } else goto handle_unusual;
14712         continue;
14713       default: {
14714       handle_unusual:
14715         if ((tag & 7) == 4 || tag == 0) {
14716           ctx->SetLastTag(tag);
14717           goto success;
14718         }
14719         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
14720         CHK_(ptr != nullptr);
14721         continue;
14722       }
14723     }  // switch
14724   }  // while
14725 success:
14726   _has_bits_.Or(has_bits);
14727   return ptr;
14728 failure:
14729   ptr = nullptr;
14730   goto success;
14731 #undef CHK_
14732 }
14733 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)14734 bool GeneratedCodeInfo_Annotation::MergePartialFromCodedStream(
14735     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
14736 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
14737   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
14738   // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo.Annotation)
14739   for (;;) {
14740     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
14741     tag = p.first;
14742     if (!p.second) goto handle_unusual;
14743     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
14744       // repeated int32 path = 1 [packed = true];
14745       case 1: {
14746         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
14747           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
14748                    ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
14749                  input, this->mutable_path())));
14750         } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
14751           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
14752                    ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
14753                  1, 10u, input, this->mutable_path())));
14754         } else {
14755           goto handle_unusual;
14756         }
14757         break;
14758       }
14759 
14760       // optional string source_file = 2;
14761       case 2: {
14762         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
14763           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
14764                 input, this->mutable_source_file()));
14765           ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
14766             this->source_file().data(), static_cast<int>(this->source_file().length()),
14767             ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::PARSE,
14768             "google.protobuf.GeneratedCodeInfo.Annotation.source_file");
14769         } else {
14770           goto handle_unusual;
14771         }
14772         break;
14773       }
14774 
14775       // optional int32 begin = 3;
14776       case 3: {
14777         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
14778           _Internal::set_has_begin(&_has_bits_);
14779           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
14780                    ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
14781                  input, &begin_)));
14782         } else {
14783           goto handle_unusual;
14784         }
14785         break;
14786       }
14787 
14788       // optional int32 end = 4;
14789       case 4: {
14790         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) {
14791           _Internal::set_has_end(&_has_bits_);
14792           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
14793                    ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
14794                  input, &end_)));
14795         } else {
14796           goto handle_unusual;
14797         }
14798         break;
14799       }
14800 
14801       default: {
14802       handle_unusual:
14803         if (tag == 0) {
14804           goto success;
14805         }
14806         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
14807               input, tag, _internal_metadata_.mutable_unknown_fields()));
14808         break;
14809       }
14810     }
14811   }
14812 success:
14813   // @@protoc_insertion_point(parse_success:google.protobuf.GeneratedCodeInfo.Annotation)
14814   return true;
14815 failure:
14816   // @@protoc_insertion_point(parse_failure:google.protobuf.GeneratedCodeInfo.Annotation)
14817   return false;
14818 #undef DO_
14819 }
14820 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
14821 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const14822 void GeneratedCodeInfo_Annotation::SerializeWithCachedSizes(
14823     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
14824   // @@protoc_insertion_point(serialize_start:google.protobuf.GeneratedCodeInfo.Annotation)
14825   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14826   (void) cached_has_bits;
14827 
14828   // repeated int32 path = 1 [packed = true];
14829   if (this->path_size() > 0) {
14830     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(1, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
14831     output->WriteVarint32(_path_cached_byte_size_.load(
14832         std::memory_order_relaxed));
14833   }
14834   for (int i = 0, n = this->path_size(); i < n; i++) {
14835     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32NoTag(
14836       this->path(i), output);
14837   }
14838 
14839   cached_has_bits = _has_bits_[0];
14840   // optional string source_file = 2;
14841   if (cached_has_bits & 0x00000001u) {
14842     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
14843       this->source_file().data(), static_cast<int>(this->source_file().length()),
14844       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
14845       "google.protobuf.GeneratedCodeInfo.Annotation.source_file");
14846     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
14847       2, this->source_file(), output);
14848   }
14849 
14850   // optional int32 begin = 3;
14851   if (cached_has_bits & 0x00000002u) {
14852     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(3, this->begin(), output);
14853   }
14854 
14855   // optional int32 end = 4;
14856   if (cached_has_bits & 0x00000004u) {
14857     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(4, this->end(), output);
14858   }
14859 
14860   if (_internal_metadata_.have_unknown_fields()) {
14861     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
14862         _internal_metadata_.unknown_fields(), output);
14863   }
14864   // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo.Annotation)
14865 }
14866 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const14867 ::PROTOBUF_NAMESPACE_ID::uint8* GeneratedCodeInfo_Annotation::InternalSerializeWithCachedSizesToArray(
14868     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
14869   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.GeneratedCodeInfo.Annotation)
14870   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14871   (void) cached_has_bits;
14872 
14873   // repeated int32 path = 1 [packed = true];
14874   if (this->path_size() > 0) {
14875     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray(
14876       1,
14877       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
14878       target);
14879     target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray(
14880         _path_cached_byte_size_.load(std::memory_order_relaxed),
14881          target);
14882     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
14883       WriteInt32NoTagToArray(this->path_, target);
14884   }
14885 
14886   cached_has_bits = _has_bits_[0];
14887   // optional string source_file = 2;
14888   if (cached_has_bits & 0x00000001u) {
14889     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
14890       this->source_file().data(), static_cast<int>(this->source_file().length()),
14891       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
14892       "google.protobuf.GeneratedCodeInfo.Annotation.source_file");
14893     target =
14894       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
14895         2, this->source_file(), target);
14896   }
14897 
14898   // optional int32 begin = 3;
14899   if (cached_has_bits & 0x00000002u) {
14900     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->begin(), target);
14901   }
14902 
14903   // optional int32 end = 4;
14904   if (cached_has_bits & 0x00000004u) {
14905     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->end(), target);
14906   }
14907 
14908   if (_internal_metadata_.have_unknown_fields()) {
14909     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
14910         _internal_metadata_.unknown_fields(), target);
14911   }
14912   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCodeInfo.Annotation)
14913   return target;
14914 }
14915 
ByteSizeLong() const14916 size_t GeneratedCodeInfo_Annotation::ByteSizeLong() const {
14917 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCodeInfo.Annotation)
14918   size_t total_size = 0;
14919 
14920   if (_internal_metadata_.have_unknown_fields()) {
14921     total_size +=
14922       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
14923         _internal_metadata_.unknown_fields());
14924   }
14925   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14926   // Prevent compiler warnings about cached_has_bits being unused
14927   (void) cached_has_bits;
14928 
14929   // repeated int32 path = 1 [packed = true];
14930   {
14931     size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
14932       Int32Size(this->path_);
14933     if (data_size > 0) {
14934       total_size += 1 +
14935         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
14936             static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
14937     }
14938     int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
14939     _path_cached_byte_size_.store(cached_size,
14940                                     std::memory_order_relaxed);
14941     total_size += data_size;
14942   }
14943 
14944   cached_has_bits = _has_bits_[0];
14945   if (cached_has_bits & 0x00000007u) {
14946     // optional string source_file = 2;
14947     if (cached_has_bits & 0x00000001u) {
14948       total_size += 1 +
14949         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
14950           this->source_file());
14951     }
14952 
14953     // optional int32 begin = 3;
14954     if (cached_has_bits & 0x00000002u) {
14955       total_size += 1 +
14956         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
14957           this->begin());
14958     }
14959 
14960     // optional int32 end = 4;
14961     if (cached_has_bits & 0x00000004u) {
14962       total_size += 1 +
14963         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
14964           this->end());
14965     }
14966 
14967   }
14968   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
14969   SetCachedSize(cached_size);
14970   return total_size;
14971 }
14972 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)14973 void GeneratedCodeInfo_Annotation::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
14974 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.GeneratedCodeInfo.Annotation)
14975   GOOGLE_DCHECK_NE(&from, this);
14976   const GeneratedCodeInfo_Annotation* source =
14977       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GeneratedCodeInfo_Annotation>(
14978           &from);
14979   if (source == nullptr) {
14980   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.GeneratedCodeInfo.Annotation)
14981     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
14982   } else {
14983   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.GeneratedCodeInfo.Annotation)
14984     MergeFrom(*source);
14985   }
14986 }
14987 
MergeFrom(const GeneratedCodeInfo_Annotation & from)14988 void GeneratedCodeInfo_Annotation::MergeFrom(const GeneratedCodeInfo_Annotation& from) {
14989 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.GeneratedCodeInfo.Annotation)
14990   GOOGLE_DCHECK_NE(&from, this);
14991   _internal_metadata_.MergeFrom(from._internal_metadata_);
14992   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
14993   (void) cached_has_bits;
14994 
14995   path_.MergeFrom(from.path_);
14996   cached_has_bits = from._has_bits_[0];
14997   if (cached_has_bits & 0x00000007u) {
14998     if (cached_has_bits & 0x00000001u) {
14999       set_source_file(from.source_file());
15000     }
15001     if (cached_has_bits & 0x00000002u) {
15002       begin_ = from.begin_;
15003     }
15004     if (cached_has_bits & 0x00000004u) {
15005       end_ = from.end_;
15006     }
15007     _has_bits_[0] |= cached_has_bits;
15008   }
15009 }
15010 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)15011 void GeneratedCodeInfo_Annotation::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
15012 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.GeneratedCodeInfo.Annotation)
15013   if (&from == this) return;
15014   Clear();
15015   MergeFrom(from);
15016 }
15017 
CopyFrom(const GeneratedCodeInfo_Annotation & from)15018 void GeneratedCodeInfo_Annotation::CopyFrom(const GeneratedCodeInfo_Annotation& from) {
15019 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.GeneratedCodeInfo.Annotation)
15020   if (&from == this) return;
15021   Clear();
15022   MergeFrom(from);
15023 }
15024 
IsInitialized() const15025 bool GeneratedCodeInfo_Annotation::IsInitialized() const {
15026   return true;
15027 }
15028 
InternalSwap(GeneratedCodeInfo_Annotation * other)15029 void GeneratedCodeInfo_Annotation::InternalSwap(GeneratedCodeInfo_Annotation* other) {
15030   using std::swap;
15031   _internal_metadata_.Swap(&other->_internal_metadata_);
15032   swap(_has_bits_[0], other->_has_bits_[0]);
15033   path_.InternalSwap(&other->path_);
15034   source_file_.Swap(&other->source_file_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
15035     GetArenaNoVirtual());
15036   swap(begin_, other->begin_);
15037   swap(end_, other->end_);
15038 }
15039 
GetMetadata() const15040 ::PROTOBUF_NAMESPACE_ID::Metadata GeneratedCodeInfo_Annotation::GetMetadata() const {
15041   return GetMetadataStatic();
15042 }
15043 
15044 
15045 // ===================================================================
15046 
InitAsDefaultInstance()15047 void GeneratedCodeInfo::InitAsDefaultInstance() {
15048 }
15049 class GeneratedCodeInfo::_Internal {
15050  public:
15051   using HasBits = decltype(std::declval<GeneratedCodeInfo>()._has_bits_);
15052 };
15053 
GeneratedCodeInfo()15054 GeneratedCodeInfo::GeneratedCodeInfo()
15055   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
15056   SharedCtor();
15057   // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo)
15058 }
GeneratedCodeInfo(::PROTOBUF_NAMESPACE_ID::Arena * arena)15059 GeneratedCodeInfo::GeneratedCodeInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena)
15060   : ::PROTOBUF_NAMESPACE_ID::Message(),
15061   _internal_metadata_(arena),
15062   annotation_(arena) {
15063   SharedCtor();
15064   RegisterArenaDtor(arena);
15065   // @@protoc_insertion_point(arena_constructor:google.protobuf.GeneratedCodeInfo)
15066 }
GeneratedCodeInfo(const GeneratedCodeInfo & from)15067 GeneratedCodeInfo::GeneratedCodeInfo(const GeneratedCodeInfo& from)
15068   : ::PROTOBUF_NAMESPACE_ID::Message(),
15069       _internal_metadata_(nullptr),
15070       _has_bits_(from._has_bits_),
15071       annotation_(from.annotation_) {
15072   _internal_metadata_.MergeFrom(from._internal_metadata_);
15073   // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo)
15074 }
15075 
SharedCtor()15076 void GeneratedCodeInfo::SharedCtor() {
15077   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GeneratedCodeInfo_google_2fprotobuf_2fdescriptor_2eproto.base);
15078 }
15079 
~GeneratedCodeInfo()15080 GeneratedCodeInfo::~GeneratedCodeInfo() {
15081   // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo)
15082   SharedDtor();
15083 }
15084 
SharedDtor()15085 void GeneratedCodeInfo::SharedDtor() {
15086   GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
15087 }
15088 
ArenaDtor(void * object)15089 void GeneratedCodeInfo::ArenaDtor(void* object) {
15090   GeneratedCodeInfo* _this = reinterpret_cast< GeneratedCodeInfo* >(object);
15091   (void)_this;
15092 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)15093 void GeneratedCodeInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
15094 }
SetCachedSize(int size) const15095 void GeneratedCodeInfo::SetCachedSize(int size) const {
15096   _cached_size_.Set(size);
15097 }
default_instance()15098 const GeneratedCodeInfo& GeneratedCodeInfo::default_instance() {
15099   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GeneratedCodeInfo_google_2fprotobuf_2fdescriptor_2eproto.base);
15100   return *internal_default_instance();
15101 }
15102 
15103 
Clear()15104 void GeneratedCodeInfo::Clear() {
15105 // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInfo)
15106   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
15107   // Prevent compiler warnings about cached_has_bits being unused
15108   (void) cached_has_bits;
15109 
15110   annotation_.Clear();
15111   _has_bits_.Clear();
15112   _internal_metadata_.Clear();
15113 }
15114 
15115 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)15116 const char* GeneratedCodeInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
15117 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
15118   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
15119   while (!ctx->Done(&ptr)) {
15120     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
15121     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
15122     CHK_(ptr);
15123     switch (tag >> 3) {
15124       // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
15125       case 1:
15126         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
15127           ptr -= 1;
15128           do {
15129             ptr += 1;
15130             ptr = ctx->ParseMessage(add_annotation(), ptr);
15131             CHK_(ptr);
15132             if (!ctx->DataAvailable(ptr)) break;
15133           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
15134         } else goto handle_unusual;
15135         continue;
15136       default: {
15137       handle_unusual:
15138         if ((tag & 7) == 4 || tag == 0) {
15139           ctx->SetLastTag(tag);
15140           goto success;
15141         }
15142         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
15143         CHK_(ptr != nullptr);
15144         continue;
15145       }
15146     }  // switch
15147   }  // while
15148 success:
15149   return ptr;
15150 failure:
15151   ptr = nullptr;
15152   goto success;
15153 #undef CHK_
15154 }
15155 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)15156 bool GeneratedCodeInfo::MergePartialFromCodedStream(
15157     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
15158 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
15159   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
15160   // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo)
15161   for (;;) {
15162     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
15163     tag = p.first;
15164     if (!p.second) goto handle_unusual;
15165     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
15166       // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
15167       case 1: {
15168         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
15169           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
15170                 input, add_annotation()));
15171         } else {
15172           goto handle_unusual;
15173         }
15174         break;
15175       }
15176 
15177       default: {
15178       handle_unusual:
15179         if (tag == 0) {
15180           goto success;
15181         }
15182         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
15183               input, tag, _internal_metadata_.mutable_unknown_fields()));
15184         break;
15185       }
15186     }
15187   }
15188 success:
15189   // @@protoc_insertion_point(parse_success:google.protobuf.GeneratedCodeInfo)
15190   return true;
15191 failure:
15192   // @@protoc_insertion_point(parse_failure:google.protobuf.GeneratedCodeInfo)
15193   return false;
15194 #undef DO_
15195 }
15196 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
15197 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const15198 void GeneratedCodeInfo::SerializeWithCachedSizes(
15199     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
15200   // @@protoc_insertion_point(serialize_start:google.protobuf.GeneratedCodeInfo)
15201   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
15202   (void) cached_has_bits;
15203 
15204   // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
15205   for (unsigned int i = 0,
15206       n = static_cast<unsigned int>(this->annotation_size()); i < n; i++) {
15207     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
15208       1,
15209       this->annotation(static_cast<int>(i)),
15210       output);
15211   }
15212 
15213   if (_internal_metadata_.have_unknown_fields()) {
15214     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
15215         _internal_metadata_.unknown_fields(), output);
15216   }
15217   // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo)
15218 }
15219 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const15220 ::PROTOBUF_NAMESPACE_ID::uint8* GeneratedCodeInfo::InternalSerializeWithCachedSizesToArray(
15221     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
15222   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.GeneratedCodeInfo)
15223   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
15224   (void) cached_has_bits;
15225 
15226   // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
15227   for (unsigned int i = 0,
15228       n = static_cast<unsigned int>(this->annotation_size()); i < n; i++) {
15229     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
15230       InternalWriteMessageToArray(
15231         1, this->annotation(static_cast<int>(i)), target);
15232   }
15233 
15234   if (_internal_metadata_.have_unknown_fields()) {
15235     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
15236         _internal_metadata_.unknown_fields(), target);
15237   }
15238   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCodeInfo)
15239   return target;
15240 }
15241 
ByteSizeLong() const15242 size_t GeneratedCodeInfo::ByteSizeLong() const {
15243 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCodeInfo)
15244   size_t total_size = 0;
15245 
15246   if (_internal_metadata_.have_unknown_fields()) {
15247     total_size +=
15248       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
15249         _internal_metadata_.unknown_fields());
15250   }
15251   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
15252   // Prevent compiler warnings about cached_has_bits being unused
15253   (void) cached_has_bits;
15254 
15255   // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
15256   {
15257     unsigned int count = static_cast<unsigned int>(this->annotation_size());
15258     total_size += 1UL * count;
15259     for (unsigned int i = 0; i < count; i++) {
15260       total_size +=
15261         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
15262           this->annotation(static_cast<int>(i)));
15263     }
15264   }
15265 
15266   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
15267   SetCachedSize(cached_size);
15268   return total_size;
15269 }
15270 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)15271 void GeneratedCodeInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
15272 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.GeneratedCodeInfo)
15273   GOOGLE_DCHECK_NE(&from, this);
15274   const GeneratedCodeInfo* source =
15275       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GeneratedCodeInfo>(
15276           &from);
15277   if (source == nullptr) {
15278   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.GeneratedCodeInfo)
15279     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
15280   } else {
15281   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.GeneratedCodeInfo)
15282     MergeFrom(*source);
15283   }
15284 }
15285 
MergeFrom(const GeneratedCodeInfo & from)15286 void GeneratedCodeInfo::MergeFrom(const GeneratedCodeInfo& from) {
15287 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.GeneratedCodeInfo)
15288   GOOGLE_DCHECK_NE(&from, this);
15289   _internal_metadata_.MergeFrom(from._internal_metadata_);
15290   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
15291   (void) cached_has_bits;
15292 
15293   annotation_.MergeFrom(from.annotation_);
15294 }
15295 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)15296 void GeneratedCodeInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
15297 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.GeneratedCodeInfo)
15298   if (&from == this) return;
15299   Clear();
15300   MergeFrom(from);
15301 }
15302 
CopyFrom(const GeneratedCodeInfo & from)15303 void GeneratedCodeInfo::CopyFrom(const GeneratedCodeInfo& from) {
15304 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.GeneratedCodeInfo)
15305   if (&from == this) return;
15306   Clear();
15307   MergeFrom(from);
15308 }
15309 
IsInitialized() const15310 bool GeneratedCodeInfo::IsInitialized() const {
15311   return true;
15312 }
15313 
InternalSwap(GeneratedCodeInfo * other)15314 void GeneratedCodeInfo::InternalSwap(GeneratedCodeInfo* other) {
15315   using std::swap;
15316   _internal_metadata_.Swap(&other->_internal_metadata_);
15317   swap(_has_bits_[0], other->_has_bits_[0]);
15318   CastToBase(&annotation_)->InternalSwap(CastToBase(&other->annotation_));
15319 }
15320 
GetMetadata() const15321 ::PROTOBUF_NAMESPACE_ID::Metadata GeneratedCodeInfo::GetMetadata() const {
15322   return GetMetadataStatic();
15323 }
15324 
15325 
15326 // @@protoc_insertion_point(namespace_scope)
15327 PROTOBUF_NAMESPACE_CLOSE
15328 PROTOBUF_NAMESPACE_OPEN
CreateMaybeMessage(Arena * arena)15329 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::FileDescriptorSet* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::FileDescriptorSet >(Arena* arena) {
15330   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::FileDescriptorSet >(arena);
15331 }
CreateMaybeMessage(Arena * arena)15332 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::FileDescriptorProto* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::FileDescriptorProto >(Arena* arena) {
15333   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::FileDescriptorProto >(arena);
15334 }
CreateMaybeMessage(Arena * arena)15335 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange >(Arena* arena) {
15336   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange >(arena);
15337 }
CreateMaybeMessage(Arena * arena)15338 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange >(Arena* arena) {
15339   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange >(arena);
15340 }
CreateMaybeMessage(Arena * arena)15341 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::DescriptorProto* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::DescriptorProto >(Arena* arena) {
15342   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::DescriptorProto >(arena);
15343 }
CreateMaybeMessage(Arena * arena)15344 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions >(Arena* arena) {
15345   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions >(arena);
15346 }
CreateMaybeMessage(Arena * arena)15347 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >(Arena* arena) {
15348   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >(arena);
15349 }
CreateMaybeMessage(Arena * arena)15350 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::OneofDescriptorProto >(Arena* arena) {
15351   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::OneofDescriptorProto >(arena);
15352 }
CreateMaybeMessage(Arena * arena)15353 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange >(Arena* arena) {
15354   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange >(arena);
15355 }
CreateMaybeMessage(Arena * arena)15356 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >(Arena* arena) {
15357   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >(arena);
15358 }
CreateMaybeMessage(Arena * arena)15359 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto >(Arena* arena) {
15360   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto >(arena);
15361 }
CreateMaybeMessage(Arena * arena)15362 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto >(Arena* arena) {
15363   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto >(arena);
15364 }
CreateMaybeMessage(Arena * arena)15365 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::MethodDescriptorProto >(Arena* arena) {
15366   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::MethodDescriptorProto >(arena);
15367 }
CreateMaybeMessage(Arena * arena)15368 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::FileOptions* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::FileOptions >(Arena* arena) {
15369   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::FileOptions >(arena);
15370 }
CreateMaybeMessage(Arena * arena)15371 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::MessageOptions* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::MessageOptions >(Arena* arena) {
15372   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::MessageOptions >(arena);
15373 }
CreateMaybeMessage(Arena * arena)15374 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::FieldOptions* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::FieldOptions >(Arena* arena) {
15375   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::FieldOptions >(arena);
15376 }
CreateMaybeMessage(Arena * arena)15377 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::OneofOptions* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::OneofOptions >(Arena* arena) {
15378   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::OneofOptions >(arena);
15379 }
CreateMaybeMessage(Arena * arena)15380 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::EnumOptions* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::EnumOptions >(Arena* arena) {
15381   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::EnumOptions >(arena);
15382 }
CreateMaybeMessage(Arena * arena)15383 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::EnumValueOptions* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::EnumValueOptions >(Arena* arena) {
15384   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::EnumValueOptions >(arena);
15385 }
CreateMaybeMessage(Arena * arena)15386 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::ServiceOptions* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::ServiceOptions >(Arena* arena) {
15387   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::ServiceOptions >(arena);
15388 }
CreateMaybeMessage(Arena * arena)15389 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::MethodOptions* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::MethodOptions >(Arena* arena) {
15390   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::MethodOptions >(arena);
15391 }
CreateMaybeMessage(Arena * arena)15392 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart >(Arena* arena) {
15393   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart >(arena);
15394 }
CreateMaybeMessage(Arena * arena)15395 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::UninterpretedOption* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::UninterpretedOption >(Arena* arena) {
15396   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::UninterpretedOption >(arena);
15397 }
CreateMaybeMessage(Arena * arena)15398 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location >(Arena* arena) {
15399   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location >(arena);
15400 }
CreateMaybeMessage(Arena * arena)15401 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::SourceCodeInfo* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::SourceCodeInfo >(Arena* arena) {
15402   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::SourceCodeInfo >(arena);
15403 }
CreateMaybeMessage(Arena * arena)15404 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation >(Arena* arena) {
15405   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation >(arena);
15406 }
CreateMaybeMessage(Arena * arena)15407 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo >(Arena* arena) {
15408   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo >(arena);
15409 }
15410 PROTOBUF_NAMESPACE_CLOSE
15411 
15412 // @@protoc_insertion_point(global_scope)
15413 #include <google/protobuf/port_undef.inc>
15414