/src/curl_fuzzer/build/curl_fuzzer.pb.cc
Line | Count | Source |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // NO CHECKED-IN PROTOBUF GENCODE |
3 | | // source: curl_fuzzer.proto |
4 | | // Protobuf C++ Version: 5.29.3 |
5 | | |
6 | | #include "curl_fuzzer.pb.h" |
7 | | |
8 | | #include <algorithm> |
9 | | #include <type_traits> |
10 | | #include "google/protobuf/io/coded_stream.h" |
11 | | #include "google/protobuf/generated_message_tctable_impl.h" |
12 | | #include "google/protobuf/extension_set.h" |
13 | | #include "google/protobuf/generated_message_util.h" |
14 | | #include "google/protobuf/wire_format_lite.h" |
15 | | #include "google/protobuf/descriptor.h" |
16 | | #include "google/protobuf/generated_message_reflection.h" |
17 | | #include "google/protobuf/reflection_ops.h" |
18 | | #include "google/protobuf/wire_format.h" |
19 | | // @@protoc_insertion_point(includes) |
20 | | |
21 | | // Must be included last. |
22 | | #include "google/protobuf/port_def.inc" |
23 | | PROTOBUF_PRAGMA_INIT_SEG |
24 | | namespace _pb = ::google::protobuf; |
25 | | namespace _pbi = ::google::protobuf::internal; |
26 | | namespace _fl = ::google::protobuf::internal::field_layout; |
27 | | namespace curl { |
28 | | namespace fuzzer { |
29 | | namespace proto { |
30 | | |
31 | | inline constexpr WsManualProbes::Impl_::Impl_( |
32 | | ::_pbi::ConstantInitialized) noexcept |
33 | | : flag_matrix_{false}, |
34 | | unaligned_send_{false}, |
35 | | raw_send_{false}, |
36 | | _cached_size_{0} {} |
37 | | |
38 | | template <typename> |
39 | | PROTOBUF_CONSTEXPR WsManualProbes::WsManualProbes(::_pbi::ConstantInitialized) |
40 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
41 | | : ::google::protobuf::Message(_class_data_.base()), |
42 | | #else // PROTOBUF_CUSTOM_VTABLE |
43 | | : ::google::protobuf::Message(), |
44 | | #endif // PROTOBUF_CUSTOM_VTABLE |
45 | | _impl_(::_pbi::ConstantInitialized()) { |
46 | | } |
47 | | struct WsManualProbesDefaultTypeInternal { |
48 | 0 | PROTOBUF_CONSTEXPR WsManualProbesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
49 | 0 | ~WsManualProbesDefaultTypeInternal() {} |
50 | | union { |
51 | | WsManualProbes _instance; |
52 | | }; |
53 | | }; |
54 | | |
55 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
56 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WsManualProbesDefaultTypeInternal _WsManualProbes_default_instance_; |
57 | | |
58 | | inline constexpr WebSocketFrame::Impl_::Impl_( |
59 | | ::_pbi::ConstantInitialized) noexcept |
60 | | : payload_( |
61 | | &::google::protobuf::internal::fixed_address_empty_string, |
62 | | ::_pbi::ConstantInitialized()), |
63 | | fin_{false}, |
64 | | rsv1_{false}, |
65 | | rsv2_{false}, |
66 | | rsv3_{false}, |
67 | | opcode_{0u}, |
68 | | masked_{false}, |
69 | | mask_key_{0u}, |
70 | | length_form_{0u}, |
71 | | _cached_size_{0} {} |
72 | | |
73 | | template <typename> |
74 | | PROTOBUF_CONSTEXPR WebSocketFrame::WebSocketFrame(::_pbi::ConstantInitialized) |
75 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
76 | | : ::google::protobuf::Message(_class_data_.base()), |
77 | | #else // PROTOBUF_CUSTOM_VTABLE |
78 | | : ::google::protobuf::Message(), |
79 | | #endif // PROTOBUF_CUSTOM_VTABLE |
80 | | _impl_(::_pbi::ConstantInitialized()) { |
81 | | } |
82 | | struct WebSocketFrameDefaultTypeInternal { |
83 | 0 | PROTOBUF_CONSTEXPR WebSocketFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
84 | 0 | ~WebSocketFrameDefaultTypeInternal() {} |
85 | | union { |
86 | | WebSocketFrame _instance; |
87 | | }; |
88 | | }; |
89 | | |
90 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
91 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WebSocketFrameDefaultTypeInternal _WebSocketFrame_default_instance_; |
92 | | |
93 | | inline constexpr UploadScript::Impl_::Impl_( |
94 | | ::_pbi::ConstantInitialized) noexcept |
95 | | : read_sizes_{}, |
96 | | _read_sizes_cached_byte_size_{0}, |
97 | | data_( |
98 | | &::google::protobuf::internal::fixed_address_empty_string, |
99 | | ::_pbi::ConstantInitialized()), |
100 | | terminal_{static_cast< ::curl::fuzzer::proto::UploadTerminal >(0)}, |
101 | | seek_result_{static_cast< ::curl::fuzzer::proto::UploadSeekResult >(0)}, |
102 | | _cached_size_{0} {} |
103 | | |
104 | | template <typename> |
105 | | PROTOBUF_CONSTEXPR UploadScript::UploadScript(::_pbi::ConstantInitialized) |
106 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
107 | | : ::google::protobuf::Message(_class_data_.base()), |
108 | | #else // PROTOBUF_CUSTOM_VTABLE |
109 | | : ::google::protobuf::Message(), |
110 | | #endif // PROTOBUF_CUSTOM_VTABLE |
111 | | _impl_(::_pbi::ConstantInitialized()) { |
112 | | } |
113 | | struct UploadScriptDefaultTypeInternal { |
114 | 0 | PROTOBUF_CONSTEXPR UploadScriptDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
115 | 0 | ~UploadScriptDefaultTypeInternal() {} |
116 | | union { |
117 | | UploadScript _instance; |
118 | | }; |
119 | | }; |
120 | | |
121 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
122 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UploadScriptDefaultTypeInternal _UploadScript_default_instance_; |
123 | | |
124 | | inline constexpr SetOption::Impl_::Impl_( |
125 | | ::_pbi::ConstantInitialized) noexcept |
126 | | : option_id_{static_cast< ::curl::fuzzer::proto::CurlOptionId >(0)}, |
127 | | value_{}, |
128 | | _cached_size_{0}, |
129 | | _oneof_case_{} {} |
130 | | |
131 | | template <typename> |
132 | | PROTOBUF_CONSTEXPR SetOption::SetOption(::_pbi::ConstantInitialized) |
133 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
134 | | : ::google::protobuf::Message(_class_data_.base()), |
135 | | #else // PROTOBUF_CUSTOM_VTABLE |
136 | | : ::google::protobuf::Message(), |
137 | | #endif // PROTOBUF_CUSTOM_VTABLE |
138 | | _impl_(::_pbi::ConstantInitialized()) { |
139 | | } |
140 | | struct SetOptionDefaultTypeInternal { |
141 | 0 | PROTOBUF_CONSTEXPR SetOptionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
142 | 0 | ~SetOptionDefaultTypeInternal() {} |
143 | | union { |
144 | | SetOption _instance; |
145 | | }; |
146 | | }; |
147 | | |
148 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
149 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetOptionDefaultTypeInternal _SetOption_default_instance_; |
150 | | |
151 | | inline constexpr MultiAction::Impl_::Impl_( |
152 | | ::_pbi::ConstantInitialized) noexcept |
153 | | : transfer_selector_{0u}, |
154 | | kind_{static_cast< ::curl::fuzzer::proto::MultiActionKind >(0)}, |
155 | | _cached_size_{0} {} |
156 | | |
157 | | template <typename> |
158 | | PROTOBUF_CONSTEXPR MultiAction::MultiAction(::_pbi::ConstantInitialized) |
159 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
160 | | : ::google::protobuf::Message(_class_data_.base()), |
161 | | #else // PROTOBUF_CUSTOM_VTABLE |
162 | | : ::google::protobuf::Message(), |
163 | | #endif // PROTOBUF_CUSTOM_VTABLE |
164 | | _impl_(::_pbi::ConstantInitialized()) { |
165 | | } |
166 | | struct MultiActionDefaultTypeInternal { |
167 | 0 | PROTOBUF_CONSTEXPR MultiActionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
168 | 0 | ~MultiActionDefaultTypeInternal() {} |
169 | | union { |
170 | | MultiAction _instance; |
171 | | }; |
172 | | }; |
173 | | |
174 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
175 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MultiActionDefaultTypeInternal _MultiAction_default_instance_; |
176 | | |
177 | | inline constexpr MimeDataPart::Impl_::Impl_( |
178 | | ::_pbi::ConstantInitialized) noexcept |
179 | | : headers_{}, |
180 | | name_( |
181 | | &::google::protobuf::internal::fixed_address_empty_string, |
182 | | ::_pbi::ConstantInitialized()), |
183 | | data_( |
184 | | &::google::protobuf::internal::fixed_address_empty_string, |
185 | | ::_pbi::ConstantInitialized()), |
186 | | filename_( |
187 | | &::google::protobuf::internal::fixed_address_empty_string, |
188 | | ::_pbi::ConstantInitialized()), |
189 | | content_type_( |
190 | | &::google::protobuf::internal::fixed_address_empty_string, |
191 | | ::_pbi::ConstantInitialized()), |
192 | | encoder_{static_cast< ::curl::fuzzer::proto::MimeEncoder >(0)}, |
193 | | _cached_size_{0} {} |
194 | | |
195 | | template <typename> |
196 | | PROTOBUF_CONSTEXPR MimeDataPart::MimeDataPart(::_pbi::ConstantInitialized) |
197 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
198 | | : ::google::protobuf::Message(_class_data_.base()), |
199 | | #else // PROTOBUF_CUSTOM_VTABLE |
200 | | : ::google::protobuf::Message(), |
201 | | #endif // PROTOBUF_CUSTOM_VTABLE |
202 | | _impl_(::_pbi::ConstantInitialized()) { |
203 | | } |
204 | | struct MimeDataPartDefaultTypeInternal { |
205 | 0 | PROTOBUF_CONSTEXPR MimeDataPartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
206 | 0 | ~MimeDataPartDefaultTypeInternal() {} |
207 | | union { |
208 | | MimeDataPart _instance; |
209 | | }; |
210 | | }; |
211 | | |
212 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
213 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MimeDataPartDefaultTypeInternal _MimeDataPart_default_instance_; |
214 | | |
215 | | inline constexpr BackpressureConfig::Impl_::Impl_( |
216 | | ::_pbi::ConstantInitialized) noexcept |
217 | | : recv_buf_bytes_{0u}, |
218 | | drain_limit_{0u}, |
219 | | _cached_size_{0} {} |
220 | | |
221 | | template <typename> |
222 | | PROTOBUF_CONSTEXPR BackpressureConfig::BackpressureConfig(::_pbi::ConstantInitialized) |
223 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
224 | | : ::google::protobuf::Message(_class_data_.base()), |
225 | | #else // PROTOBUF_CUSTOM_VTABLE |
226 | | : ::google::protobuf::Message(), |
227 | | #endif // PROTOBUF_CUSTOM_VTABLE |
228 | | _impl_(::_pbi::ConstantInitialized()) { |
229 | | } |
230 | | struct BackpressureConfigDefaultTypeInternal { |
231 | 0 | PROTOBUF_CONSTEXPR BackpressureConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
232 | 0 | ~BackpressureConfigDefaultTypeInternal() {} |
233 | | union { |
234 | | BackpressureConfig _instance; |
235 | | }; |
236 | | }; |
237 | | |
238 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
239 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BackpressureConfigDefaultTypeInternal _BackpressureConfig_default_instance_; |
240 | | |
241 | | inline constexpr ApiPlan::Impl_::Impl_( |
242 | | ::_pbi::ConstantInitialized) noexcept |
243 | | : share_data_selectors_{}, |
244 | | _share_data_selectors_cached_byte_size_{0}, |
245 | | easy_info_selectors_{}, |
246 | | _easy_info_selectors_cached_byte_size_{0}, |
247 | | duplicate_easy_{false}, |
248 | | reset_easy_{false}, |
249 | | attach_share_{false}, |
250 | | wake_multi_{false}, |
251 | | drive_mode_{static_cast< ::curl::fuzzer::proto::ApiDriveMode >(0)}, |
252 | | _cached_size_{0} {} |
253 | | |
254 | | template <typename> |
255 | | PROTOBUF_CONSTEXPR ApiPlan::ApiPlan(::_pbi::ConstantInitialized) |
256 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
257 | | : ::google::protobuf::Message(_class_data_.base()), |
258 | | #else // PROTOBUF_CUSTOM_VTABLE |
259 | | : ::google::protobuf::Message(), |
260 | | #endif // PROTOBUF_CUSTOM_VTABLE |
261 | | _impl_(::_pbi::ConstantInitialized()) { |
262 | | } |
263 | | struct ApiPlanDefaultTypeInternal { |
264 | 0 | PROTOBUF_CONSTEXPR ApiPlanDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
265 | 0 | ~ApiPlanDefaultTypeInternal() {} |
266 | | union { |
267 | | ApiPlan _instance; |
268 | | }; |
269 | | }; |
270 | | |
271 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
272 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ApiPlanDefaultTypeInternal _ApiPlan_default_instance_; |
273 | | |
274 | | inline constexpr MultiPlan::Impl_::Impl_( |
275 | | ::_pbi::ConstantInitialized) noexcept |
276 | | : actions_{}, |
277 | | transfer_count_{0u}, |
278 | | drive_mode_{static_cast< ::curl::fuzzer::proto::MultiDriveMode >(0)}, |
279 | | max_host_connections_{0u}, |
280 | | max_total_connections_{0u}, |
281 | | connection_cache_size_{0u}, |
282 | | keep_connections_open_{false}, |
283 | | multiplex_{false}, |
284 | | wake_multi_{false}, |
285 | | _cached_size_{0} {} |
286 | | |
287 | | template <typename> |
288 | | PROTOBUF_CONSTEXPR MultiPlan::MultiPlan(::_pbi::ConstantInitialized) |
289 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
290 | | : ::google::protobuf::Message(_class_data_.base()), |
291 | | #else // PROTOBUF_CUSTOM_VTABLE |
292 | | : ::google::protobuf::Message(), |
293 | | #endif // PROTOBUF_CUSTOM_VTABLE |
294 | | _impl_(::_pbi::ConstantInitialized()) { |
295 | | } |
296 | | struct MultiPlanDefaultTypeInternal { |
297 | 0 | PROTOBUF_CONSTEXPR MultiPlanDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
298 | 0 | ~MultiPlanDefaultTypeInternal() {} |
299 | | union { |
300 | | MultiPlan _instance; |
301 | | }; |
302 | | }; |
303 | | |
304 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
305 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MultiPlanDefaultTypeInternal _MultiPlan_default_instance_; |
306 | | |
307 | | inline constexpr MimeSubparts::Impl_::Impl_( |
308 | | ::_pbi::ConstantInitialized) noexcept |
309 | | : parts_{}, |
310 | | _cached_size_{0} {} |
311 | | |
312 | | template <typename> |
313 | | PROTOBUF_CONSTEXPR MimeSubparts::MimeSubparts(::_pbi::ConstantInitialized) |
314 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
315 | | : ::google::protobuf::Message(_class_data_.base()), |
316 | | #else // PROTOBUF_CUSTOM_VTABLE |
317 | | : ::google::protobuf::Message(), |
318 | | #endif // PROTOBUF_CUSTOM_VTABLE |
319 | | _impl_(::_pbi::ConstantInitialized()) { |
320 | | } |
321 | | struct MimeSubpartsDefaultTypeInternal { |
322 | 0 | PROTOBUF_CONSTEXPR MimeSubpartsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
323 | 0 | ~MimeSubpartsDefaultTypeInternal() {} |
324 | | union { |
325 | | MimeSubparts _instance; |
326 | | }; |
327 | | }; |
328 | | |
329 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
330 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MimeSubpartsDefaultTypeInternal _MimeSubparts_default_instance_; |
331 | | |
332 | | inline constexpr Connection::Impl_::Impl_( |
333 | | ::_pbi::ConstantInitialized) noexcept |
334 | | : _cached_size_{0}, |
335 | | on_readable_{}, |
336 | | server_frames_{}, |
337 | | initial_response_( |
338 | | &::google::protobuf::internal::fixed_address_empty_string, |
339 | | ::_pbi::ConstantInitialized()), |
340 | | backpressure_{nullptr}, |
341 | | manual_probes_{nullptr} {} |
342 | | |
343 | | template <typename> |
344 | | PROTOBUF_CONSTEXPR Connection::Connection(::_pbi::ConstantInitialized) |
345 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
346 | | : ::google::protobuf::Message(_class_data_.base()), |
347 | | #else // PROTOBUF_CUSTOM_VTABLE |
348 | | : ::google::protobuf::Message(), |
349 | | #endif // PROTOBUF_CUSTOM_VTABLE |
350 | | _impl_(::_pbi::ConstantInitialized()) { |
351 | | } |
352 | | struct ConnectionDefaultTypeInternal { |
353 | 0 | PROTOBUF_CONSTEXPR ConnectionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
354 | 0 | ~ConnectionDefaultTypeInternal() {} |
355 | | union { |
356 | | Connection _instance; |
357 | | }; |
358 | | }; |
359 | | |
360 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
361 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionDefaultTypeInternal _Connection_default_instance_; |
362 | | |
363 | | inline constexpr MimePart::Impl_::Impl_( |
364 | | ::_pbi::ConstantInitialized) noexcept |
365 | | : headers_{}, |
366 | | name_( |
367 | | &::google::protobuf::internal::fixed_address_empty_string, |
368 | | ::_pbi::ConstantInitialized()), |
369 | | filename_( |
370 | | &::google::protobuf::internal::fixed_address_empty_string, |
371 | | ::_pbi::ConstantInitialized()), |
372 | | content_type_( |
373 | | &::google::protobuf::internal::fixed_address_empty_string, |
374 | | ::_pbi::ConstantInitialized()), |
375 | | encoder_{static_cast< ::curl::fuzzer::proto::MimeEncoder >(0)}, |
376 | | content_{}, |
377 | | _cached_size_{0}, |
378 | | _oneof_case_{} {} |
379 | | |
380 | | template <typename> |
381 | | PROTOBUF_CONSTEXPR MimePart::MimePart(::_pbi::ConstantInitialized) |
382 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
383 | | : ::google::protobuf::Message(_class_data_.base()), |
384 | | #else // PROTOBUF_CUSTOM_VTABLE |
385 | | : ::google::protobuf::Message(), |
386 | | #endif // PROTOBUF_CUSTOM_VTABLE |
387 | | _impl_(::_pbi::ConstantInitialized()) { |
388 | | } |
389 | | struct MimePartDefaultTypeInternal { |
390 | 0 | PROTOBUF_CONSTEXPR MimePartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
391 | 0 | ~MimePartDefaultTypeInternal() {} |
392 | | union { |
393 | | MimePart _instance; |
394 | | }; |
395 | | }; |
396 | | |
397 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
398 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MimePartDefaultTypeInternal _MimePart_default_instance_; |
399 | | |
400 | | inline constexpr MimePost::Impl_::Impl_( |
401 | | ::_pbi::ConstantInitialized) noexcept |
402 | | : parts_{}, |
403 | | _cached_size_{0} {} |
404 | | |
405 | | template <typename> |
406 | | PROTOBUF_CONSTEXPR MimePost::MimePost(::_pbi::ConstantInitialized) |
407 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
408 | | : ::google::protobuf::Message(_class_data_.base()), |
409 | | #else // PROTOBUF_CUSTOM_VTABLE |
410 | | : ::google::protobuf::Message(), |
411 | | #endif // PROTOBUF_CUSTOM_VTABLE |
412 | | _impl_(::_pbi::ConstantInitialized()) { |
413 | | } |
414 | | struct MimePostDefaultTypeInternal { |
415 | 0 | PROTOBUF_CONSTEXPR MimePostDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
416 | 0 | ~MimePostDefaultTypeInternal() {} |
417 | | union { |
418 | | MimePost _instance; |
419 | | }; |
420 | | }; |
421 | | |
422 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
423 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MimePostDefaultTypeInternal _MimePost_default_instance_; |
424 | | |
425 | | inline constexpr Scenario::Impl_::Impl_( |
426 | | ::_pbi::ConstantInitialized) noexcept |
427 | | : _cached_size_{0}, |
428 | | options_{}, |
429 | | request_headers_{}, |
430 | | subsequent_connections_{}, |
431 | | telnet_options_{}, |
432 | | host_path_( |
433 | | &::google::protobuf::internal::fixed_address_empty_string, |
434 | | ::_pbi::ConstantInitialized()), |
435 | | connection_{nullptr}, |
436 | | mime_post_{nullptr}, |
437 | | upload_{nullptr}, |
438 | | api_plan_{nullptr}, |
439 | | multi_plan_{nullptr}, |
440 | | scheme_{static_cast< ::curl::fuzzer::proto::Scheme >(0)}, |
441 | | tls_certificate_chain_{static_cast< ::curl::fuzzer::proto::TlsCertificateChainProfile >(0)} {} |
442 | | |
443 | | template <typename> |
444 | | PROTOBUF_CONSTEXPR Scenario::Scenario(::_pbi::ConstantInitialized) |
445 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
446 | | : ::google::protobuf::Message(_class_data_.base()), |
447 | | #else // PROTOBUF_CUSTOM_VTABLE |
448 | | : ::google::protobuf::Message(), |
449 | | #endif // PROTOBUF_CUSTOM_VTABLE |
450 | | _impl_(::_pbi::ConstantInitialized()) { |
451 | | } |
452 | | struct ScenarioDefaultTypeInternal { |
453 | 0 | PROTOBUF_CONSTEXPR ScenarioDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
454 | 0 | ~ScenarioDefaultTypeInternal() {} |
455 | | union { |
456 | | Scenario _instance; |
457 | | }; |
458 | | }; |
459 | | |
460 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
461 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ScenarioDefaultTypeInternal _Scenario_default_instance_; |
462 | | } // namespace proto |
463 | | } // namespace fuzzer |
464 | | } // namespace curl |
465 | | static const ::_pb::EnumDescriptor* file_level_enum_descriptors_curl_5ffuzzer_2eproto[9]; |
466 | | static constexpr const ::_pb::ServiceDescriptor** |
467 | | file_level_service_descriptors_curl_5ffuzzer_2eproto = nullptr; |
468 | | const ::uint32_t |
469 | | TableStruct_curl_5ffuzzer_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( |
470 | | protodesc_cold) = { |
471 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_._has_bits_), |
472 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _internal_metadata_), |
473 | | ~0u, // no _extensions_ |
474 | | ~0u, // no _oneof_case_ |
475 | | ~0u, // no _weak_field_map_ |
476 | | ~0u, // no _inlined_string_donated_ |
477 | | ~0u, // no _split_ |
478 | | ~0u, // no sizeof(Split) |
479 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.scheme_), |
480 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.host_path_), |
481 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.options_), |
482 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.connection_), |
483 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.request_headers_), |
484 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.mime_post_), |
485 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.subsequent_connections_), |
486 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.upload_), |
487 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.telnet_options_), |
488 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.api_plan_), |
489 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.multi_plan_), |
490 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.tls_certificate_chain_), |
491 | | ~0u, |
492 | | ~0u, |
493 | | ~0u, |
494 | | 0, |
495 | | ~0u, |
496 | | 1, |
497 | | ~0u, |
498 | | 2, |
499 | | ~0u, |
500 | | 3, |
501 | | 4, |
502 | | ~0u, |
503 | | ~0u, // no _has_bits_ |
504 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::ApiPlan, _internal_metadata_), |
505 | | ~0u, // no _extensions_ |
506 | | ~0u, // no _oneof_case_ |
507 | | ~0u, // no _weak_field_map_ |
508 | | ~0u, // no _inlined_string_donated_ |
509 | | ~0u, // no _split_ |
510 | | ~0u, // no sizeof(Split) |
511 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::ApiPlan, _impl_.duplicate_easy_), |
512 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::ApiPlan, _impl_.reset_easy_), |
513 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::ApiPlan, _impl_.attach_share_), |
514 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::ApiPlan, _impl_.share_data_selectors_), |
515 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::ApiPlan, _impl_.drive_mode_), |
516 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::ApiPlan, _impl_.wake_multi_), |
517 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::ApiPlan, _impl_.easy_info_selectors_), |
518 | | ~0u, // no _has_bits_ |
519 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MultiPlan, _internal_metadata_), |
520 | | ~0u, // no _extensions_ |
521 | | ~0u, // no _oneof_case_ |
522 | | ~0u, // no _weak_field_map_ |
523 | | ~0u, // no _inlined_string_donated_ |
524 | | ~0u, // no _split_ |
525 | | ~0u, // no sizeof(Split) |
526 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MultiPlan, _impl_.transfer_count_), |
527 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MultiPlan, _impl_.drive_mode_), |
528 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MultiPlan, _impl_.max_host_connections_), |
529 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MultiPlan, _impl_.max_total_connections_), |
530 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MultiPlan, _impl_.connection_cache_size_), |
531 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MultiPlan, _impl_.keep_connections_open_), |
532 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MultiPlan, _impl_.multiplex_), |
533 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MultiPlan, _impl_.wake_multi_), |
534 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MultiPlan, _impl_.actions_), |
535 | | ~0u, // no _has_bits_ |
536 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MultiAction, _internal_metadata_), |
537 | | ~0u, // no _extensions_ |
538 | | ~0u, // no _oneof_case_ |
539 | | ~0u, // no _weak_field_map_ |
540 | | ~0u, // no _inlined_string_donated_ |
541 | | ~0u, // no _split_ |
542 | | ~0u, // no sizeof(Split) |
543 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MultiAction, _impl_.transfer_selector_), |
544 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MultiAction, _impl_.kind_), |
545 | | ~0u, // no _has_bits_ |
546 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::UploadScript, _internal_metadata_), |
547 | | ~0u, // no _extensions_ |
548 | | ~0u, // no _oneof_case_ |
549 | | ~0u, // no _weak_field_map_ |
550 | | ~0u, // no _inlined_string_donated_ |
551 | | ~0u, // no _split_ |
552 | | ~0u, // no sizeof(Split) |
553 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::UploadScript, _impl_.data_), |
554 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::UploadScript, _impl_.read_sizes_), |
555 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::UploadScript, _impl_.terminal_), |
556 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::UploadScript, _impl_.seek_result_), |
557 | | ~0u, // no _has_bits_ |
558 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimePost, _internal_metadata_), |
559 | | ~0u, // no _extensions_ |
560 | | ~0u, // no _oneof_case_ |
561 | | ~0u, // no _weak_field_map_ |
562 | | ~0u, // no _inlined_string_donated_ |
563 | | ~0u, // no _split_ |
564 | | ~0u, // no sizeof(Split) |
565 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimePost, _impl_.parts_), |
566 | | ~0u, // no _has_bits_ |
567 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimePart, _internal_metadata_), |
568 | | ~0u, // no _extensions_ |
569 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimePart, _impl_._oneof_case_[0]), |
570 | | ~0u, // no _weak_field_map_ |
571 | | ~0u, // no _inlined_string_donated_ |
572 | | ~0u, // no _split_ |
573 | | ~0u, // no sizeof(Split) |
574 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimePart, _impl_.name_), |
575 | | ::_pbi::kInvalidFieldOffsetTag, |
576 | | ::_pbi::kInvalidFieldOffsetTag, |
577 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimePart, _impl_.filename_), |
578 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimePart, _impl_.content_type_), |
579 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimePart, _impl_.encoder_), |
580 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimePart, _impl_.headers_), |
581 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimePart, _impl_.content_), |
582 | | ~0u, // no _has_bits_ |
583 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimeSubparts, _internal_metadata_), |
584 | | ~0u, // no _extensions_ |
585 | | ~0u, // no _oneof_case_ |
586 | | ~0u, // no _weak_field_map_ |
587 | | ~0u, // no _inlined_string_donated_ |
588 | | ~0u, // no _split_ |
589 | | ~0u, // no sizeof(Split) |
590 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimeSubparts, _impl_.parts_), |
591 | | ~0u, // no _has_bits_ |
592 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimeDataPart, _internal_metadata_), |
593 | | ~0u, // no _extensions_ |
594 | | ~0u, // no _oneof_case_ |
595 | | ~0u, // no _weak_field_map_ |
596 | | ~0u, // no _inlined_string_donated_ |
597 | | ~0u, // no _split_ |
598 | | ~0u, // no sizeof(Split) |
599 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimeDataPart, _impl_.name_), |
600 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimeDataPart, _impl_.data_), |
601 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimeDataPart, _impl_.filename_), |
602 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimeDataPart, _impl_.content_type_), |
603 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimeDataPart, _impl_.encoder_), |
604 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimeDataPart, _impl_.headers_), |
605 | | ~0u, // no _has_bits_ |
606 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::SetOption, _internal_metadata_), |
607 | | ~0u, // no _extensions_ |
608 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::SetOption, _impl_._oneof_case_[0]), |
609 | | ~0u, // no _weak_field_map_ |
610 | | ~0u, // no _inlined_string_donated_ |
611 | | ~0u, // no _split_ |
612 | | ~0u, // no sizeof(Split) |
613 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::SetOption, _impl_.option_id_), |
614 | | ::_pbi::kInvalidFieldOffsetTag, |
615 | | ::_pbi::kInvalidFieldOffsetTag, |
616 | | ::_pbi::kInvalidFieldOffsetTag, |
617 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::SetOption, _impl_.value_), |
618 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Connection, _impl_._has_bits_), |
619 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Connection, _internal_metadata_), |
620 | | ~0u, // no _extensions_ |
621 | | ~0u, // no _oneof_case_ |
622 | | ~0u, // no _weak_field_map_ |
623 | | ~0u, // no _inlined_string_donated_ |
624 | | ~0u, // no _split_ |
625 | | ~0u, // no sizeof(Split) |
626 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Connection, _impl_.initial_response_), |
627 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Connection, _impl_.on_readable_), |
628 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Connection, _impl_.server_frames_), |
629 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Connection, _impl_.backpressure_), |
630 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Connection, _impl_.manual_probes_), |
631 | | ~0u, |
632 | | ~0u, |
633 | | ~0u, |
634 | | 0, |
635 | | 1, |
636 | | ~0u, // no _has_bits_ |
637 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WsManualProbes, _internal_metadata_), |
638 | | ~0u, // no _extensions_ |
639 | | ~0u, // no _oneof_case_ |
640 | | ~0u, // no _weak_field_map_ |
641 | | ~0u, // no _inlined_string_donated_ |
642 | | ~0u, // no _split_ |
643 | | ~0u, // no sizeof(Split) |
644 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WsManualProbes, _impl_.flag_matrix_), |
645 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WsManualProbes, _impl_.unaligned_send_), |
646 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WsManualProbes, _impl_.raw_send_), |
647 | | ~0u, // no _has_bits_ |
648 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::BackpressureConfig, _internal_metadata_), |
649 | | ~0u, // no _extensions_ |
650 | | ~0u, // no _oneof_case_ |
651 | | ~0u, // no _weak_field_map_ |
652 | | ~0u, // no _inlined_string_donated_ |
653 | | ~0u, // no _split_ |
654 | | ~0u, // no sizeof(Split) |
655 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::BackpressureConfig, _impl_.recv_buf_bytes_), |
656 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::BackpressureConfig, _impl_.drain_limit_), |
657 | | ~0u, // no _has_bits_ |
658 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _internal_metadata_), |
659 | | ~0u, // no _extensions_ |
660 | | ~0u, // no _oneof_case_ |
661 | | ~0u, // no _weak_field_map_ |
662 | | ~0u, // no _inlined_string_donated_ |
663 | | ~0u, // no _split_ |
664 | | ~0u, // no sizeof(Split) |
665 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.fin_), |
666 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.rsv1_), |
667 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.rsv2_), |
668 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.rsv3_), |
669 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.opcode_), |
670 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.masked_), |
671 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.mask_key_), |
672 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.payload_), |
673 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.length_form_), |
674 | | }; |
675 | | |
676 | | static const ::_pbi::MigrationSchema |
677 | | schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
678 | | {0, 20, -1, sizeof(::curl::fuzzer::proto::Scenario)}, |
679 | | {32, -1, -1, sizeof(::curl::fuzzer::proto::ApiPlan)}, |
680 | | {47, -1, -1, sizeof(::curl::fuzzer::proto::MultiPlan)}, |
681 | | {64, -1, -1, sizeof(::curl::fuzzer::proto::MultiAction)}, |
682 | | {74, -1, -1, sizeof(::curl::fuzzer::proto::UploadScript)}, |
683 | | {86, -1, -1, sizeof(::curl::fuzzer::proto::MimePost)}, |
684 | | {95, -1, -1, sizeof(::curl::fuzzer::proto::MimePart)}, |
685 | | {111, -1, -1, sizeof(::curl::fuzzer::proto::MimeSubparts)}, |
686 | | {120, -1, -1, sizeof(::curl::fuzzer::proto::MimeDataPart)}, |
687 | | {134, -1, -1, sizeof(::curl::fuzzer::proto::SetOption)}, |
688 | | {147, 160, -1, sizeof(::curl::fuzzer::proto::Connection)}, |
689 | | {165, -1, -1, sizeof(::curl::fuzzer::proto::WsManualProbes)}, |
690 | | {176, -1, -1, sizeof(::curl::fuzzer::proto::BackpressureConfig)}, |
691 | | {186, -1, -1, sizeof(::curl::fuzzer::proto::WebSocketFrame)}, |
692 | | }; |
693 | | static const ::_pb::Message* const file_default_instances[] = { |
694 | | &::curl::fuzzer::proto::_Scenario_default_instance_._instance, |
695 | | &::curl::fuzzer::proto::_ApiPlan_default_instance_._instance, |
696 | | &::curl::fuzzer::proto::_MultiPlan_default_instance_._instance, |
697 | | &::curl::fuzzer::proto::_MultiAction_default_instance_._instance, |
698 | | &::curl::fuzzer::proto::_UploadScript_default_instance_._instance, |
699 | | &::curl::fuzzer::proto::_MimePost_default_instance_._instance, |
700 | | &::curl::fuzzer::proto::_MimePart_default_instance_._instance, |
701 | | &::curl::fuzzer::proto::_MimeSubparts_default_instance_._instance, |
702 | | &::curl::fuzzer::proto::_MimeDataPart_default_instance_._instance, |
703 | | &::curl::fuzzer::proto::_SetOption_default_instance_._instance, |
704 | | &::curl::fuzzer::proto::_Connection_default_instance_._instance, |
705 | | &::curl::fuzzer::proto::_WsManualProbes_default_instance_._instance, |
706 | | &::curl::fuzzer::proto::_BackpressureConfig_default_instance_._instance, |
707 | | &::curl::fuzzer::proto::_WebSocketFrame_default_instance_._instance, |
708 | | }; |
709 | | const char descriptor_table_protodef_curl_5ffuzzer_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( |
710 | | protodesc_cold) = { |
711 | | "\n\021curl_fuzzer.proto\022\021curl.fuzzer.proto\"\251" |
712 | | "\004\n\010Scenario\022)\n\006scheme\030\001 \001(\0162\031.curl.fuzze" |
713 | | "r.proto.Scheme\022\021\n\thost_path\030\002 \001(\014\022-\n\007opt" |
714 | | "ions\030\003 \003(\0132\034.curl.fuzzer.proto.SetOption" |
715 | | "\0221\n\nconnection\030\004 \001(\0132\035.curl.fuzzer.proto" |
716 | | ".Connection\022\027\n\017request_headers\030\005 \003(\014\022.\n\t" |
717 | | "mime_post\030\006 \001(\0132\033.curl.fuzzer.proto.Mime" |
718 | | "Post\022=\n\026subsequent_connections\030\007 \003(\0132\035.c" |
719 | | "url.fuzzer.proto.Connection\022/\n\006upload\030\010 " |
720 | | "\001(\0132\037.curl.fuzzer.proto.UploadScript\022\026\n\016" |
721 | | "telnet_options\030\t \003(\014\022,\n\010api_plan\030\n \001(\0132\032" |
722 | | ".curl.fuzzer.proto.ApiPlan\0220\n\nmulti_plan" |
723 | | "\030\013 \001(\0132\034.curl.fuzzer.proto.MultiPlan\022L\n\025" |
724 | | "tls_certificate_chain\030\014 \001(\0162-.curl.fuzze" |
725 | | "r.proto.TlsCertificateChainProfile\"\317\001\n\007A" |
726 | | "piPlan\022\026\n\016duplicate_easy\030\001 \001(\010\022\022\n\nreset_" |
727 | | "easy\030\002 \001(\010\022\024\n\014attach_share\030\003 \001(\010\022\034\n\024shar" |
728 | | "e_data_selectors\030\004 \003(\r\0223\n\ndrive_mode\030\005 \001" |
729 | | "(\0162\037.curl.fuzzer.proto.ApiDriveMode\022\022\n\nw" |
730 | | "ake_multi\030\006 \001(\010\022\033\n\023easy_info_selectors\030\007" |
731 | | " \003(\r\"\255\002\n\tMultiPlan\022\026\n\016transfer_count\030\001 \001" |
732 | | "(\r\0225\n\ndrive_mode\030\002 \001(\0162!.curl.fuzzer.pro" |
733 | | "to.MultiDriveMode\022\034\n\024max_host_connection" |
734 | | "s\030\003 \001(\r\022\035\n\025max_total_connections\030\004 \001(\r\022\035" |
735 | | "\n\025connection_cache_size\030\005 \001(\r\022\035\n\025keep_co" |
736 | | "nnections_open\030\006 \001(\010\022\021\n\tmultiplex\030\007 \001(\010\022" |
737 | | "\022\n\nwake_multi\030\010 \001(\010\022/\n\007actions\030\t \003(\0132\036.c" |
738 | | "url.fuzzer.proto.MultiAction\"Z\n\013MultiAct" |
739 | | "ion\022\031\n\021transfer_selector\030\001 \001(\r\0220\n\004kind\030\002" |
740 | | " \001(\0162\".curl.fuzzer.proto.MultiActionKind" |
741 | | "\"\237\001\n\014UploadScript\022\014\n\004data\030\001 \001(\014\022\022\n\nread_" |
742 | | "sizes\030\002 \003(\r\0223\n\010terminal\030\003 \001(\0162!.curl.fuz" |
743 | | "zer.proto.UploadTerminal\0228\n\013seek_result\030" |
744 | | "\004 \001(\0162#.curl.fuzzer.proto.UploadSeekResu" |
745 | | "lt\"6\n\010MimePost\022*\n\005parts\030\001 \003(\0132\033.curl.fuz" |
746 | | "zer.proto.MimePart\"\322\001\n\010MimePart\022\014\n\004name\030" |
747 | | "\001 \001(\014\022\016\n\004data\030\002 \001(\014H\000\0223\n\010subparts\030\007 \001(\0132" |
748 | | "\037.curl.fuzzer.proto.MimeSubpartsH\000\022\020\n\010fi" |
749 | | "lename\030\003 \001(\014\022\024\n\014content_type\030\004 \001(\014\022/\n\007en" |
750 | | "coder\030\005 \001(\0162\036.curl.fuzzer.proto.MimeEnco" |
751 | | "der\022\017\n\007headers\030\006 \003(\014B\t\n\007content\">\n\014MimeS" |
752 | | "ubparts\022.\n\005parts\030\001 \003(\0132\037.curl.fuzzer.pro" |
753 | | "to.MimeDataPart\"\224\001\n\014MimeDataPart\022\014\n\004name" |
754 | | "\030\001 \001(\014\022\014\n\004data\030\002 \001(\014\022\020\n\010filename\030\003 \001(\014\022\024" |
755 | | "\n\014content_type\030\004 \001(\014\022/\n\007encoder\030\005 \001(\0162\036." |
756 | | "curl.fuzzer.proto.MimeEncoder\022\017\n\007headers" |
757 | | "\030\006 \003(\014\"\214\001\n\tSetOption\0222\n\toption_id\030\001 \001(\0162" |
758 | | "\037.curl.fuzzer.proto.CurlOptionId\022\026\n\014stri" |
759 | | "ng_value\030\n \001(\014H\000\022\024\n\nuint_value\030\013 \001(\004H\000\022\024" |
760 | | "\n\nbool_value\030\014 \001(\010H\000B\007\n\005value\"\354\001\n\nConnec" |
761 | | "tion\022\030\n\020initial_response\030\001 \001(\014\022\023\n\013on_rea" |
762 | | "dable\030\002 \003(\014\0228\n\rserver_frames\030\003 \003(\0132!.cur" |
763 | | "l.fuzzer.proto.WebSocketFrame\022;\n\014backpre" |
764 | | "ssure\030\004 \001(\0132%.curl.fuzzer.proto.Backpres" |
765 | | "sureConfig\0228\n\rmanual_probes\030\005 \001(\0132!.curl" |
766 | | ".fuzzer.proto.WsManualProbes\"O\n\016WsManual" |
767 | | "Probes\022\023\n\013flag_matrix\030\001 \001(\010\022\026\n\016unaligned" |
768 | | "_send\030\002 \001(\010\022\020\n\010raw_send\030\003 \001(\010\"A\n\022Backpre" |
769 | | "ssureConfig\022\026\n\016recv_buf_bytes\030\001 \001(\r\022\023\n\013d" |
770 | | "rain_limit\030\002 \001(\r\"\237\001\n\016WebSocketFrame\022\013\n\003f" |
771 | | "in\030\001 \001(\010\022\014\n\004rsv1\030\002 \001(\010\022\014\n\004rsv2\030\003 \001(\010\022\014\n\004" |
772 | | "rsv3\030\004 \001(\010\022\016\n\006opcode\030\005 \001(\r\022\016\n\006masked\030\006 \001" |
773 | | "(\010\022\020\n\010mask_key\030\007 \001(\r\022\017\n\007payload\030\010 \001(\014\022\023\n" |
774 | | "\013length_form\030\t \001(\r*k\n\032TlsCertificateChai" |
775 | | "nProfile\022$\n TLS_CERTIFICATE_CHAIN_DEFAUL" |
776 | | "T_EC\020\000\022\'\n#TLS_CERTIFICATE_CHAIN_ALL_KEY_" |
777 | | "TYPES\020\001*c\n\014ApiDriveMode\022\033\n\027API_DRIVE_MUL" |
778 | | "TI_PERFORM\020\000\022\032\n\026API_DRIVE_MULTI_SOCKET\020\001" |
779 | | "\022\032\n\026API_DRIVE_EASY_PERFORM\020\002*A\n\016MultiDri" |
780 | | "veMode\022\027\n\023MULTI_DRIVE_PERFORM\020\000\022\026\n\022MULTI" |
781 | | "_DRIVE_SOCKET\020\001*\310\001\n\017MultiActionKind\022\025\n\021M" |
782 | | "ULTI_ACTION_NONE\020\000\022\033\n\027MULTI_ACTION_PAUSE" |
783 | | "_RECV\020\001\022\033\n\027MULTI_ACTION_PAUSE_SEND\020\002\022\032\n\026" |
784 | | "MULTI_ACTION_PAUSE_ALL\020\003\022\027\n\023MULTI_ACTION" |
785 | | "_RESUME\020\004\022\027\n\023MULTI_ACTION_REMOVE\020\005\022\026\n\022MU" |
786 | | "LTI_ACTION_READD\020\006*_\n\016UploadTerminal\022\027\n\023" |
787 | | "UPLOAD_TERMINAL_EOF\020\000\022\031\n\025UPLOAD_TERMINAL" |
788 | | "_ABORT\020\001\022\031\n\025UPLOAD_TERMINAL_PAUSE\020\002*V\n\020U" |
789 | | "ploadSeekResult\022\022\n\016UPLOAD_SEEK_OK\020\000\022\030\n\024U" |
790 | | "PLOAD_SEEK_CANTSEEK\020\001\022\024\n\020UPLOAD_SEEK_FAI" |
791 | | "L\020\002*\256\001\n\013MimeEncoder\022\034\n\030MIME_ENCODER_UNSP" |
792 | | "ECIFIED\020\000\022\027\n\023MIME_ENCODER_BINARY\020\001\022\025\n\021MI" |
793 | | "ME_ENCODER_8BIT\020\002\022\025\n\021MIME_ENCODER_7BIT\020\003" |
794 | | "\022\027\n\023MIME_ENCODER_BASE64\020\004\022!\n\035MIME_ENCODE" |
795 | | "R_QUOTED_PRINTABLE\020\005*\226\001\n\006Scheme\022\026\n\022SCHEM" |
796 | | "E_UNSPECIFIED\020\000\022\017\n\013SCHEME_HTTP\020\001\022\020\n\014SCHE" |
797 | | "ME_HTTPS\020\002\022\r\n\tSCHEME_WS\020\003\022\016\n\nSCHEME_WSS\020" |
798 | | "\004\022\021\n\rSCHEME_TELNET\020\005\022\016\n\nSCHEME_FTP\020\006\022\017\n\013" |
799 | | "SCHEME_TFTP\020\007*\277\022\n\014CurlOptionId\022\033\n\027CURL_O" |
800 | | "PTION_UNSPECIFIED\020\000\022\032\n\025CURLOPT_CUSTOMREQ" |
801 | | "UEST\020\264N\022\023\n\017CURLOPT_HTTPGET\020P\022\022\n\016CURLOPT_" |
802 | | "NOBODY\020,\022\020\n\014CURLOPT_POST\020/\022\027\n\022CURLOPT_PO" |
803 | | "STFIELDS\020\237N\022\032\n\026CURLOPT_FOLLOWLOCATION\0204\022" |
804 | | "\025\n\021CURLOPT_MAXREDIRS\020D\022\026\n\021CURLOPT_USERAG" |
805 | | "ENT\020\242N\022\034\n\027CURLOPT_ACCEPT_ENCODING\020\366N\022\022\n\016" |
806 | | "CURLOPT_HEADER\020*\022\027\n\023CURLOPT_FAILONERROR\020" |
807 | | "-\022\030\n\024CURLOPT_HTTP_VERSION\020T\022\033\n\026CURLOPT_H" |
808 | | "TTP09_ALLOWED\020\235\002\022\027\n\023CURLOPT_AUTOREFERER\020" |
809 | | ":\022\024\n\017CURLOPT_REFERER\020\240N\022\031\n\024CURLOPT_CONNE" |
810 | | "CT_ONLY\020\215\001\022\027\n\022CURLOPT_WS_OPTIONS\020\300\002\022\022\n\016C" |
811 | | "URLOPT_UPLOAD\020.\022\036\n\030CURLOPT_INFILESIZE_LA" |
812 | | "RGE\020\243\353\001\022\020\n\014CURLOPT_CRLF\020\033\022\032\n\026CURLOPT_SSL" |
813 | | "_VERIFYPEER\020@\022\032\n\026CURLOPT_SSL_VERIFYHOST\020" |
814 | | "Q\022\025\n\020CURLOPT_CERTINFO\020\254\001\022\026\n\022CURLOPT_SSLV" |
815 | | "ERSION\020 \022\034\n\027CURLOPT_SSL_CIPHER_LIST\020\343N\022\032" |
816 | | "\n\025CURLOPT_TLS13_CIPHERS\020\244P\022\032\n\025CURLOPT_SS" |
817 | | "L_EC_CURVES\020\272P\022%\n CURLOPT_SSL_SIGNATURE_" |
818 | | "ALGORITHMS\020\330P\022 \n\033CURLOPT_SSL_SESSIONID_C" |
819 | | "ACHE\020\226\001\022\034\n\027CURLOPT_SSL_ENABLE_ALPN\020\342\001\022\030\n" |
820 | | "\023CURLOPT_SSL_OPTIONS\020\330\001\022\034\n\027CURLOPT_PINNE" |
821 | | "DPUBLICKEY\020\366O\022\020\n\013CURLOPT_ECH\020\325P\022\036\n\031CURLO" |
822 | | "PT_HTTPSIG_ALGORITHM\020\311\002\022\030\n\023CURLOPT_HTTPS" |
823 | | "IG_KEY\020\332P\022\032\n\025CURLOPT_HTTPSIG_KEYID\020\333P\022\034\n" |
824 | | "\027CURLOPT_HTTPSIG_HEADERS\020\334P\022\023\n\016CURLOPT_C" |
825 | | "OOKIE\020\246N\022\027\n\022CURLOPT_COOKIELIST\020\227O\022\031\n\025CUR" |
826 | | "LOPT_COOKIESESSION\020`\022\024\n\020CURLOPT_HTTPAUTH" |
827 | | "\020k\022\024\n\017CURLOPT_USERPWD\020\225N\022\025\n\020CURLOPT_USER" |
828 | | "NAME\020\275O\022\025\n\020CURLOPT_PASSWORD\020\276O\022\035\n\031CURLOP" |
829 | | "T_UNRESTRICTED_AUTH\020i\022\033\n\026CURLOPT_XOAUTH2" |
830 | | "_BEARER\020\354O\022\026\n\021CURLOPT_AWS_SIGV4\020\301P\022\031\n\025CU" |
831 | | "RLOPT_TIMECONDITION\020!\022\035\n\027CURLOPT_TIMEVAL" |
832 | | "UE_LARGE\020\276\354\001\022\030\n\023CURLOPT_ALTSVC_CTRL\020\236\002\022\026" |
833 | | "\n\021CURLOPT_HSTS_CTRL\020\253\002\022\022\n\rCURLOPT_RANGE\020" |
834 | | "\227N\022\037\n\031CURLOPT_RESUME_FROM_LARGE\020\244\353\001\022\024\n\020C" |
835 | | "URLOPT_FILETIME\020E\022\033\n\026CURLOPT_REQUEST_TAR" |
836 | | "GET\020\232P\022\027\n\022CURLOPT_PATH_AS_IS\020\352\001\022\"\n\035CURLO" |
837 | | "PT_EXPECT_100_TIMEOUT_MS\020\343\001\022\"\n\035CURLOPT_K" |
838 | | "EEP_SENDING_ON_ERROR\020\365\001\022\026\n\021CURLOPT_POSTR" |
839 | | "EDIR\020\241\001\022\036\n\031CURLOPT_TRANSFER_ENCODING\020\317\001\022" |
840 | | "#\n\036CURLOPT_HTTP_TRANSFER_DECODING\020\235\001\022\"\n\035" |
841 | | "CURLOPT_HTTP_CONTENT_DECODING\020\236\001\022\"\n\035CURL" |
842 | | "OPT_IGNORE_CONTENT_LENGTH\020\210\001\022%\n CURLOPT_" |
843 | | "DISALLOW_USERNAME_IN_URL\020\226\002\022\031\n\025CURLOPT_F" |
844 | | "RESH_CONNECT\020J\022\030\n\024CURLOPT_FORBID_REUSE\020K" |
845 | | "\022\030\n\023CURLOPT_MAXAGE_CONN\020\240\002\022\035\n\030CURLOPT_MA" |
846 | | "XLIFETIME_CONN\020\272\002\022\036\n\031CURLOPT_UPLOAD_BUFF" |
847 | | "ERSIZE\020\230\002\022\031\n\024CURLOPT_MIME_OPTIONS\020\273\002\022\037\n\031" |
848 | | "CURLOPT_MAXFILESIZE_LARGE\020\245\353\001\022\026\n\022CURLOPT" |
849 | | "_BUFFERSIZE\020b\022\027\n\023CURLOPT_DIRLISTONLY\0200\022\022" |
850 | | "\n\016CURLOPT_APPEND\0202\022\030\n\024CURLOPT_TRANSFERTE" |
851 | | "XT\0205\022\030\n\024CURLOPT_FTP_USE_EPSV\020U\022#\n\037CURLOP" |
852 | | "T_FTP_CREATE_MISSING_DIRS\020n\022\030\n\023CURLOPT_F" |
853 | | "TP_ACCOUNT\020\226O\022\035\n\030CURLOPT_FTP_SKIP_PASV_I" |
854 | | "P\020\211\001\022\033\n\026CURLOPT_FTP_FILEMETHOD\020\212\001\022$\n\037CUR" |
855 | | "LOPT_FTP_ALTERNATIVE_TO_USER\020\243O\022\031\n\024CURLO" |
856 | | "PT_FTP_USE_PRET\020\274\001\022\032\n\025CURLOPT_WILDCARDMA" |
857 | | "TCH\020\305\001\022\031\n\024CURLOPT_TFTP_BLKSIZE\020\262\001\022\034\n\027CUR" |
858 | | "LOPT_TFTP_NO_OPTIONS\020\362\001b\006proto3" |
859 | | }; |
860 | | static ::absl::once_flag descriptor_table_curl_5ffuzzer_2eproto_once; |
861 | | PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_curl_5ffuzzer_2eproto = { |
862 | | false, |
863 | | false, |
864 | | 5911, |
865 | | descriptor_table_protodef_curl_5ffuzzer_2eproto, |
866 | | "curl_fuzzer.proto", |
867 | | &descriptor_table_curl_5ffuzzer_2eproto_once, |
868 | | nullptr, |
869 | | 0, |
870 | | 14, |
871 | | schemas, |
872 | | file_default_instances, |
873 | | TableStruct_curl_5ffuzzer_2eproto::offsets, |
874 | | file_level_enum_descriptors_curl_5ffuzzer_2eproto, |
875 | | file_level_service_descriptors_curl_5ffuzzer_2eproto, |
876 | | }; |
877 | | namespace curl { |
878 | | namespace fuzzer { |
879 | | namespace proto { |
880 | 0 | const ::google::protobuf::EnumDescriptor* TlsCertificateChainProfile_descriptor() { |
881 | 0 | ::google::protobuf::internal::AssignDescriptors(&descriptor_table_curl_5ffuzzer_2eproto); |
882 | 0 | return file_level_enum_descriptors_curl_5ffuzzer_2eproto[0]; |
883 | 0 | } |
884 | | PROTOBUF_CONSTINIT const uint32_t TlsCertificateChainProfile_internal_data_[] = { |
885 | | 131072u, 0u, }; |
886 | 0 | bool TlsCertificateChainProfile_IsValid(int value) { |
887 | 0 | return 0 <= value && value <= 1; |
888 | 0 | } |
889 | 0 | const ::google::protobuf::EnumDescriptor* ApiDriveMode_descriptor() { |
890 | 0 | ::google::protobuf::internal::AssignDescriptors(&descriptor_table_curl_5ffuzzer_2eproto); |
891 | 0 | return file_level_enum_descriptors_curl_5ffuzzer_2eproto[1]; |
892 | 0 | } |
893 | | PROTOBUF_CONSTINIT const uint32_t ApiDriveMode_internal_data_[] = { |
894 | | 196608u, 0u, }; |
895 | 0 | bool ApiDriveMode_IsValid(int value) { |
896 | 0 | return 0 <= value && value <= 2; |
897 | 0 | } |
898 | 0 | const ::google::protobuf::EnumDescriptor* MultiDriveMode_descriptor() { |
899 | 0 | ::google::protobuf::internal::AssignDescriptors(&descriptor_table_curl_5ffuzzer_2eproto); |
900 | 0 | return file_level_enum_descriptors_curl_5ffuzzer_2eproto[2]; |
901 | 0 | } |
902 | | PROTOBUF_CONSTINIT const uint32_t MultiDriveMode_internal_data_[] = { |
903 | | 131072u, 0u, }; |
904 | 0 | bool MultiDriveMode_IsValid(int value) { |
905 | 0 | return 0 <= value && value <= 1; |
906 | 0 | } |
907 | 0 | const ::google::protobuf::EnumDescriptor* MultiActionKind_descriptor() { |
908 | 0 | ::google::protobuf::internal::AssignDescriptors(&descriptor_table_curl_5ffuzzer_2eproto); |
909 | 0 | return file_level_enum_descriptors_curl_5ffuzzer_2eproto[3]; |
910 | 0 | } |
911 | | PROTOBUF_CONSTINIT const uint32_t MultiActionKind_internal_data_[] = { |
912 | | 458752u, 0u, }; |
913 | 0 | bool MultiActionKind_IsValid(int value) { |
914 | 0 | return 0 <= value && value <= 6; |
915 | 0 | } |
916 | 0 | const ::google::protobuf::EnumDescriptor* UploadTerminal_descriptor() { |
917 | 0 | ::google::protobuf::internal::AssignDescriptors(&descriptor_table_curl_5ffuzzer_2eproto); |
918 | 0 | return file_level_enum_descriptors_curl_5ffuzzer_2eproto[4]; |
919 | 0 | } |
920 | | PROTOBUF_CONSTINIT const uint32_t UploadTerminal_internal_data_[] = { |
921 | | 196608u, 0u, }; |
922 | 0 | bool UploadTerminal_IsValid(int value) { |
923 | 0 | return 0 <= value && value <= 2; |
924 | 0 | } |
925 | 0 | const ::google::protobuf::EnumDescriptor* UploadSeekResult_descriptor() { |
926 | 0 | ::google::protobuf::internal::AssignDescriptors(&descriptor_table_curl_5ffuzzer_2eproto); |
927 | 0 | return file_level_enum_descriptors_curl_5ffuzzer_2eproto[5]; |
928 | 0 | } |
929 | | PROTOBUF_CONSTINIT const uint32_t UploadSeekResult_internal_data_[] = { |
930 | | 196608u, 0u, }; |
931 | 0 | bool UploadSeekResult_IsValid(int value) { |
932 | 0 | return 0 <= value && value <= 2; |
933 | 0 | } |
934 | 0 | const ::google::protobuf::EnumDescriptor* MimeEncoder_descriptor() { |
935 | 0 | ::google::protobuf::internal::AssignDescriptors(&descriptor_table_curl_5ffuzzer_2eproto); |
936 | 0 | return file_level_enum_descriptors_curl_5ffuzzer_2eproto[6]; |
937 | 0 | } |
938 | | PROTOBUF_CONSTINIT const uint32_t MimeEncoder_internal_data_[] = { |
939 | | 393216u, 0u, }; |
940 | 0 | bool MimeEncoder_IsValid(int value) { |
941 | 0 | return 0 <= value && value <= 5; |
942 | 0 | } |
943 | 0 | const ::google::protobuf::EnumDescriptor* Scheme_descriptor() { |
944 | 0 | ::google::protobuf::internal::AssignDescriptors(&descriptor_table_curl_5ffuzzer_2eproto); |
945 | 0 | return file_level_enum_descriptors_curl_5ffuzzer_2eproto[7]; |
946 | 0 | } |
947 | | PROTOBUF_CONSTINIT const uint32_t Scheme_internal_data_[] = { |
948 | | 524288u, 0u, }; |
949 | 0 | bool Scheme_IsValid(int value) { |
950 | 0 | return 0 <= value && value <= 7; |
951 | 0 | } |
952 | 0 | const ::google::protobuf::EnumDescriptor* CurlOptionId_descriptor() { |
953 | 0 | ::google::protobuf::internal::AssignDescriptors(&descriptor_table_curl_5ffuzzer_2eproto); |
954 | 0 | return file_level_enum_descriptors_curl_5ffuzzer_2eproto[8]; |
955 | 0 | } |
956 | | PROTOBUF_CONSTINIT const uint32_t CurlOptionId_internal_data_[] = { |
957 | | 65536u, 1900896u, 2214592512u, 2182806017u, 2149156376u, 9474u, 807408512u, 134350849u, 8405008u, 1180166u, 2963275776u, 2248147968u, 256u, 10230u, 10083u, 10331u, 10016u, 10147u, 10305u, 30117u, 10007u, 10022u, 10134u, 10174u, 10276u, 10328u, 30115u, 30270u, 10005u, 10015u, 10018u, 10036u, 10102u, 10135u, 10173u, 10220u, 10266u, 10298u, 10325u, 10330u, 10332u, 30116u, }; |
958 | 0 | bool CurlOptionId_IsValid(int value) { |
959 | 0 | return ::_pbi::ValidateEnum(value, CurlOptionId_internal_data_); |
960 | 0 | } |
961 | | // =================================================================== |
962 | | |
963 | | class Scenario::_Internal { |
964 | | public: |
965 | | using HasBits = |
966 | | decltype(std::declval<Scenario>()._impl_._has_bits_); |
967 | | static constexpr ::int32_t kHasBitsOffset = |
968 | | 8 * PROTOBUF_FIELD_OFFSET(Scenario, _impl_._has_bits_); |
969 | | }; |
970 | | |
971 | | Scenario::Scenario(::google::protobuf::Arena* arena) |
972 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
973 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
974 | | #else // PROTOBUF_CUSTOM_VTABLE |
975 | 139k | : ::google::protobuf::Message(arena) { |
976 | 139k | #endif // PROTOBUF_CUSTOM_VTABLE |
977 | 139k | SharedCtor(arena); |
978 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.Scenario) |
979 | 139k | } |
980 | | inline PROTOBUF_NDEBUG_INLINE Scenario::Impl_::Impl_( |
981 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
982 | | const Impl_& from, const ::curl::fuzzer::proto::Scenario& from_msg) |
983 | 0 | : _has_bits_{from._has_bits_}, |
984 | 0 | _cached_size_{0}, |
985 | 0 | options_{visibility, arena, from.options_}, |
986 | 0 | request_headers_{visibility, arena, from.request_headers_}, |
987 | 0 | subsequent_connections_{visibility, arena, from.subsequent_connections_}, |
988 | 0 | telnet_options_{visibility, arena, from.telnet_options_}, |
989 | 0 | host_path_(arena, from.host_path_) {} |
990 | | |
991 | | Scenario::Scenario( |
992 | | ::google::protobuf::Arena* arena, |
993 | | const Scenario& from) |
994 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
995 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
996 | | #else // PROTOBUF_CUSTOM_VTABLE |
997 | 0 | : ::google::protobuf::Message(arena) { |
998 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
999 | 0 | Scenario* const _this = this; |
1000 | 0 | (void)_this; |
1001 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
1002 | 0 | from._internal_metadata_); |
1003 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
1004 | 0 | ::uint32_t cached_has_bits = _impl_._has_bits_[0]; |
1005 | 0 | _impl_.connection_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::Connection>( |
1006 | 0 | arena, *from._impl_.connection_) |
1007 | 0 | : nullptr; |
1008 | 0 | _impl_.mime_post_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::MimePost>( |
1009 | 0 | arena, *from._impl_.mime_post_) |
1010 | 0 | : nullptr; |
1011 | 0 | _impl_.upload_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::UploadScript>( |
1012 | 0 | arena, *from._impl_.upload_) |
1013 | 0 | : nullptr; |
1014 | 0 | _impl_.api_plan_ = (cached_has_bits & 0x00000008u) ? ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::ApiPlan>( |
1015 | 0 | arena, *from._impl_.api_plan_) |
1016 | 0 | : nullptr; |
1017 | 0 | _impl_.multi_plan_ = (cached_has_bits & 0x00000010u) ? ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::MultiPlan>( |
1018 | 0 | arena, *from._impl_.multi_plan_) |
1019 | 0 | : nullptr; |
1020 | 0 | ::memcpy(reinterpret_cast<char *>(&_impl_) + |
1021 | 0 | offsetof(Impl_, scheme_), |
1022 | 0 | reinterpret_cast<const char *>(&from._impl_) + |
1023 | 0 | offsetof(Impl_, scheme_), |
1024 | 0 | offsetof(Impl_, tls_certificate_chain_) - |
1025 | 0 | offsetof(Impl_, scheme_) + |
1026 | 0 | sizeof(Impl_::tls_certificate_chain_)); |
1027 | | |
1028 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.Scenario) |
1029 | 0 | } |
1030 | | inline PROTOBUF_NDEBUG_INLINE Scenario::Impl_::Impl_( |
1031 | | ::google::protobuf::internal::InternalVisibility visibility, |
1032 | | ::google::protobuf::Arena* arena) |
1033 | 139k | : _cached_size_{0}, |
1034 | 139k | options_{visibility, arena}, |
1035 | 139k | request_headers_{visibility, arena}, |
1036 | 139k | subsequent_connections_{visibility, arena}, |
1037 | 139k | telnet_options_{visibility, arena}, |
1038 | 139k | host_path_(arena) {} |
1039 | | |
1040 | 139k | inline void Scenario::SharedCtor(::_pb::Arena* arena) { |
1041 | 139k | new (&_impl_) Impl_(internal_visibility(), arena); |
1042 | 139k | ::memset(reinterpret_cast<char *>(&_impl_) + |
1043 | 139k | offsetof(Impl_, connection_), |
1044 | 139k | 0, |
1045 | 139k | offsetof(Impl_, tls_certificate_chain_) - |
1046 | 139k | offsetof(Impl_, connection_) + |
1047 | 139k | sizeof(Impl_::tls_certificate_chain_)); |
1048 | 139k | } |
1049 | 139k | Scenario::~Scenario() { |
1050 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.Scenario) |
1051 | 139k | SharedDtor(*this); |
1052 | 139k | } |
1053 | 139k | inline void Scenario::SharedDtor(MessageLite& self) { |
1054 | 139k | Scenario& this_ = static_cast<Scenario&>(self); |
1055 | 139k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
1056 | 139k | ABSL_DCHECK(this_.GetArena() == nullptr); |
1057 | 139k | this_._impl_.host_path_.Destroy(); |
1058 | 139k | delete this_._impl_.connection_; |
1059 | 139k | delete this_._impl_.mime_post_; |
1060 | 139k | delete this_._impl_.upload_; |
1061 | 139k | delete this_._impl_.api_plan_; |
1062 | 139k | delete this_._impl_.multi_plan_; |
1063 | 139k | this_._impl_.~Impl_(); |
1064 | 139k | } |
1065 | | |
1066 | | inline void* Scenario::PlacementNew_(const void*, void* mem, |
1067 | 0 | ::google::protobuf::Arena* arena) { |
1068 | 0 | return ::new (mem) Scenario(arena); |
1069 | 0 | } |
1070 | 0 | constexpr auto Scenario::InternalNewImpl_() { |
1071 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
1072 | 0 | PROTOBUF_FIELD_OFFSET(Scenario, _impl_.options_) + |
1073 | 0 | decltype(Scenario::_impl_.options_):: |
1074 | 0 | InternalGetArenaOffset( |
1075 | 0 | ::google::protobuf::Message::internal_visibility()), |
1076 | 0 | PROTOBUF_FIELD_OFFSET(Scenario, _impl_.request_headers_) + |
1077 | 0 | decltype(Scenario::_impl_.request_headers_):: |
1078 | 0 | InternalGetArenaOffset( |
1079 | 0 | ::google::protobuf::Message::internal_visibility()), |
1080 | 0 | PROTOBUF_FIELD_OFFSET(Scenario, _impl_.subsequent_connections_) + |
1081 | 0 | decltype(Scenario::_impl_.subsequent_connections_):: |
1082 | 0 | InternalGetArenaOffset( |
1083 | 0 | ::google::protobuf::Message::internal_visibility()), |
1084 | 0 | PROTOBUF_FIELD_OFFSET(Scenario, _impl_.telnet_options_) + |
1085 | 0 | decltype(Scenario::_impl_.telnet_options_):: |
1086 | 0 | InternalGetArenaOffset( |
1087 | 0 | ::google::protobuf::Message::internal_visibility()), |
1088 | 0 | }); |
1089 | 0 | if (arena_bits.has_value()) { |
1090 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit( |
1091 | 0 | sizeof(Scenario), alignof(Scenario), *arena_bits); |
1092 | 0 | } else { |
1093 | 0 | return ::google::protobuf::internal::MessageCreator(&Scenario::PlacementNew_, |
1094 | 0 | sizeof(Scenario), |
1095 | 0 | alignof(Scenario)); |
1096 | 0 | } |
1097 | 0 | } |
1098 | | PROTOBUF_CONSTINIT |
1099 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1100 | | const ::google::protobuf::internal::ClassDataFull Scenario::_class_data_ = { |
1101 | | ::google::protobuf::internal::ClassData{ |
1102 | | &_Scenario_default_instance_._instance, |
1103 | | &_table_.header, |
1104 | | nullptr, // OnDemandRegisterArenaDtor |
1105 | | nullptr, // IsInitialized |
1106 | | &Scenario::MergeImpl, |
1107 | | ::google::protobuf::Message::GetNewImpl<Scenario>(), |
1108 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1109 | | &Scenario::SharedDtor, |
1110 | | ::google::protobuf::Message::GetClearImpl<Scenario>(), &Scenario::ByteSizeLong, |
1111 | | &Scenario::_InternalSerialize, |
1112 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1113 | | PROTOBUF_FIELD_OFFSET(Scenario, _impl_._cached_size_), |
1114 | | false, |
1115 | | }, |
1116 | | &Scenario::kDescriptorMethods, |
1117 | | &descriptor_table_curl_5ffuzzer_2eproto, |
1118 | | nullptr, // tracker |
1119 | | }; |
1120 | 1.19M | const ::google::protobuf::internal::ClassData* Scenario::GetClassData() const { |
1121 | 1.19M | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
1122 | 1.19M | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
1123 | 1.19M | return _class_data_.base(); |
1124 | 1.19M | } |
1125 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1126 | | const ::_pbi::TcParseTable<4, 12, 7, 0, 2> Scenario::_table_ = { |
1127 | | { |
1128 | | PROTOBUF_FIELD_OFFSET(Scenario, _impl_._has_bits_), |
1129 | | 0, // no _extensions_ |
1130 | | 12, 120, // max_field_number, fast_idx_mask |
1131 | | offsetof(decltype(_table_), field_lookup_table), |
1132 | | 4294963200, // skipmap |
1133 | | offsetof(decltype(_table_), field_entries), |
1134 | | 12, // num_field_entries |
1135 | | 7, // num_aux_entries |
1136 | | offsetof(decltype(_table_), aux_entries), |
1137 | | _class_data_.base(), |
1138 | | nullptr, // post_loop_handler |
1139 | | ::_pbi::TcParser::GenericFallback, // fallback |
1140 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
1141 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::Scenario>(), // to_prefetch |
1142 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
1143 | | }, {{ |
1144 | | {::_pbi::TcParser::MiniParse, {}}, |
1145 | | // .curl.fuzzer.proto.Scheme scheme = 1; |
1146 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Scenario, _impl_.scheme_), 63>(), |
1147 | | {8, 63, 0, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.scheme_)}}, |
1148 | | // bytes host_path = 2; |
1149 | | {::_pbi::TcParser::FastBS1, |
1150 | | {18, 63, 0, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.host_path_)}}, |
1151 | | // repeated .curl.fuzzer.proto.SetOption options = 3; |
1152 | | {::_pbi::TcParser::FastMtR1, |
1153 | | {26, 63, 0, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.options_)}}, |
1154 | | // .curl.fuzzer.proto.Connection connection = 4; |
1155 | | {::_pbi::TcParser::FastMtS1, |
1156 | | {34, 0, 1, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.connection_)}}, |
1157 | | // repeated bytes request_headers = 5; |
1158 | | {::_pbi::TcParser::FastBR1, |
1159 | | {42, 63, 0, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.request_headers_)}}, |
1160 | | // .curl.fuzzer.proto.MimePost mime_post = 6; |
1161 | | {::_pbi::TcParser::FastMtS1, |
1162 | | {50, 1, 2, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.mime_post_)}}, |
1163 | | // repeated .curl.fuzzer.proto.Connection subsequent_connections = 7; |
1164 | | {::_pbi::TcParser::FastMtR1, |
1165 | | {58, 63, 3, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.subsequent_connections_)}}, |
1166 | | // .curl.fuzzer.proto.UploadScript upload = 8; |
1167 | | {::_pbi::TcParser::FastMtS1, |
1168 | | {66, 2, 4, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.upload_)}}, |
1169 | | // repeated bytes telnet_options = 9; |
1170 | | {::_pbi::TcParser::FastBR1, |
1171 | | {74, 63, 0, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.telnet_options_)}}, |
1172 | | // .curl.fuzzer.proto.ApiPlan api_plan = 10; |
1173 | | {::_pbi::TcParser::FastMtS1, |
1174 | | {82, 3, 5, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.api_plan_)}}, |
1175 | | // .curl.fuzzer.proto.MultiPlan multi_plan = 11; |
1176 | | {::_pbi::TcParser::FastMtS1, |
1177 | | {90, 4, 6, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.multi_plan_)}}, |
1178 | | // .curl.fuzzer.proto.TlsCertificateChainProfile tls_certificate_chain = 12; |
1179 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Scenario, _impl_.tls_certificate_chain_), 63>(), |
1180 | | {96, 63, 0, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.tls_certificate_chain_)}}, |
1181 | | {::_pbi::TcParser::MiniParse, {}}, |
1182 | | {::_pbi::TcParser::MiniParse, {}}, |
1183 | | {::_pbi::TcParser::MiniParse, {}}, |
1184 | | }}, {{ |
1185 | | 65535, 65535 |
1186 | | }}, {{ |
1187 | | // .curl.fuzzer.proto.Scheme scheme = 1; |
1188 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.scheme_), -1, 0, |
1189 | | (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
1190 | | // bytes host_path = 2; |
1191 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.host_path_), -1, 0, |
1192 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
1193 | | // repeated .curl.fuzzer.proto.SetOption options = 3; |
1194 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.options_), -1, 0, |
1195 | | (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
1196 | | // .curl.fuzzer.proto.Connection connection = 4; |
1197 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.connection_), _Internal::kHasBitsOffset + 0, 1, |
1198 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
1199 | | // repeated bytes request_headers = 5; |
1200 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.request_headers_), -1, 0, |
1201 | | (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)}, |
1202 | | // .curl.fuzzer.proto.MimePost mime_post = 6; |
1203 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.mime_post_), _Internal::kHasBitsOffset + 1, 2, |
1204 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
1205 | | // repeated .curl.fuzzer.proto.Connection subsequent_connections = 7; |
1206 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.subsequent_connections_), -1, 3, |
1207 | | (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
1208 | | // .curl.fuzzer.proto.UploadScript upload = 8; |
1209 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.upload_), _Internal::kHasBitsOffset + 2, 4, |
1210 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
1211 | | // repeated bytes telnet_options = 9; |
1212 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.telnet_options_), -1, 0, |
1213 | | (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)}, |
1214 | | // .curl.fuzzer.proto.ApiPlan api_plan = 10; |
1215 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.api_plan_), _Internal::kHasBitsOffset + 3, 5, |
1216 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
1217 | | // .curl.fuzzer.proto.MultiPlan multi_plan = 11; |
1218 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.multi_plan_), _Internal::kHasBitsOffset + 4, 6, |
1219 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
1220 | | // .curl.fuzzer.proto.TlsCertificateChainProfile tls_certificate_chain = 12; |
1221 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.tls_certificate_chain_), -1, 0, |
1222 | | (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
1223 | | }}, {{ |
1224 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::SetOption>()}, |
1225 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::Connection>()}, |
1226 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::MimePost>()}, |
1227 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::Connection>()}, |
1228 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::UploadScript>()}, |
1229 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::ApiPlan>()}, |
1230 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::MultiPlan>()}, |
1231 | | }}, {{ |
1232 | | }}, |
1233 | | }; |
1234 | | |
1235 | 282k | PROTOBUF_NOINLINE void Scenario::Clear() { |
1236 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.Scenario) |
1237 | 282k | ::google::protobuf::internal::TSanWrite(&_impl_); |
1238 | 282k | ::uint32_t cached_has_bits = 0; |
1239 | | // Prevent compiler warnings about cached_has_bits being unused |
1240 | 282k | (void) cached_has_bits; |
1241 | | |
1242 | 282k | _impl_.options_.Clear(); |
1243 | 282k | _impl_.request_headers_.Clear(); |
1244 | 282k | _impl_.subsequent_connections_.Clear(); |
1245 | 282k | _impl_.telnet_options_.Clear(); |
1246 | 282k | _impl_.host_path_.ClearToEmpty(); |
1247 | 282k | cached_has_bits = _impl_._has_bits_[0]; |
1248 | 282k | if (cached_has_bits & 0x0000001fu) { |
1249 | 1.91k | if (cached_has_bits & 0x00000001u) { |
1250 | 1.10k | ABSL_DCHECK(_impl_.connection_ != nullptr); |
1251 | 1.10k | _impl_.connection_->Clear(); |
1252 | 1.10k | } |
1253 | 1.91k | if (cached_has_bits & 0x00000002u) { |
1254 | 616 | ABSL_DCHECK(_impl_.mime_post_ != nullptr); |
1255 | 616 | _impl_.mime_post_->Clear(); |
1256 | 616 | } |
1257 | 1.91k | if (cached_has_bits & 0x00000004u) { |
1258 | 326 | ABSL_DCHECK(_impl_.upload_ != nullptr); |
1259 | 326 | _impl_.upload_->Clear(); |
1260 | 326 | } |
1261 | 1.91k | if (cached_has_bits & 0x00000008u) { |
1262 | 360 | ABSL_DCHECK(_impl_.api_plan_ != nullptr); |
1263 | 360 | _impl_.api_plan_->Clear(); |
1264 | 360 | } |
1265 | 1.91k | if (cached_has_bits & 0x00000010u) { |
1266 | 74 | ABSL_DCHECK(_impl_.multi_plan_ != nullptr); |
1267 | 74 | _impl_.multi_plan_->Clear(); |
1268 | 74 | } |
1269 | 1.91k | } |
1270 | 282k | ::memset(&_impl_.scheme_, 0, static_cast<::size_t>( |
1271 | 282k | reinterpret_cast<char*>(&_impl_.tls_certificate_chain_) - |
1272 | 282k | reinterpret_cast<char*>(&_impl_.scheme_)) + sizeof(_impl_.tls_certificate_chain_)); |
1273 | 282k | _impl_._has_bits_.Clear(); |
1274 | 282k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
1275 | 282k | } |
1276 | | |
1277 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1278 | | ::uint8_t* Scenario::_InternalSerialize( |
1279 | | const MessageLite& base, ::uint8_t* target, |
1280 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
1281 | | const Scenario& this_ = static_cast<const Scenario&>(base); |
1282 | | #else // PROTOBUF_CUSTOM_VTABLE |
1283 | | ::uint8_t* Scenario::_InternalSerialize( |
1284 | | ::uint8_t* target, |
1285 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1286 | 0 | const Scenario& this_ = *this; |
1287 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1288 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.Scenario) |
1289 | 0 | ::uint32_t cached_has_bits = 0; |
1290 | 0 | (void)cached_has_bits; |
1291 | | |
1292 | | // .curl.fuzzer.proto.Scheme scheme = 1; |
1293 | 0 | if (this_._internal_scheme() != 0) { |
1294 | 0 | target = stream->EnsureSpace(target); |
1295 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
1296 | 0 | 1, this_._internal_scheme(), target); |
1297 | 0 | } |
1298 | | |
1299 | | // bytes host_path = 2; |
1300 | 0 | if (!this_._internal_host_path().empty()) { |
1301 | 0 | const std::string& _s = this_._internal_host_path(); |
1302 | 0 | target = stream->WriteBytesMaybeAliased(2, _s, target); |
1303 | 0 | } |
1304 | | |
1305 | | // repeated .curl.fuzzer.proto.SetOption options = 3; |
1306 | 0 | for (unsigned i = 0, n = static_cast<unsigned>( |
1307 | 0 | this_._internal_options_size()); |
1308 | 0 | i < n; i++) { |
1309 | 0 | const auto& repfield = this_._internal_options().Get(i); |
1310 | 0 | target = |
1311 | 0 | ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
1312 | 0 | 3, repfield, repfield.GetCachedSize(), |
1313 | 0 | target, stream); |
1314 | 0 | } |
1315 | |
|
1316 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
1317 | | // .curl.fuzzer.proto.Connection connection = 4; |
1318 | 0 | if (cached_has_bits & 0x00000001u) { |
1319 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
1320 | 0 | 4, *this_._impl_.connection_, this_._impl_.connection_->GetCachedSize(), target, |
1321 | 0 | stream); |
1322 | 0 | } |
1323 | | |
1324 | | // repeated bytes request_headers = 5; |
1325 | 0 | for (int i = 0, n = this_._internal_request_headers_size(); i < n; ++i) { |
1326 | 0 | const auto& s = this_._internal_request_headers().Get(i); |
1327 | 0 | target = stream->WriteBytes(5, s, target); |
1328 | 0 | } |
1329 | | |
1330 | | // .curl.fuzzer.proto.MimePost mime_post = 6; |
1331 | 0 | if (cached_has_bits & 0x00000002u) { |
1332 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
1333 | 0 | 6, *this_._impl_.mime_post_, this_._impl_.mime_post_->GetCachedSize(), target, |
1334 | 0 | stream); |
1335 | 0 | } |
1336 | | |
1337 | | // repeated .curl.fuzzer.proto.Connection subsequent_connections = 7; |
1338 | 0 | for (unsigned i = 0, n = static_cast<unsigned>( |
1339 | 0 | this_._internal_subsequent_connections_size()); |
1340 | 0 | i < n; i++) { |
1341 | 0 | const auto& repfield = this_._internal_subsequent_connections().Get(i); |
1342 | 0 | target = |
1343 | 0 | ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
1344 | 0 | 7, repfield, repfield.GetCachedSize(), |
1345 | 0 | target, stream); |
1346 | 0 | } |
1347 | | |
1348 | | // .curl.fuzzer.proto.UploadScript upload = 8; |
1349 | 0 | if (cached_has_bits & 0x00000004u) { |
1350 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
1351 | 0 | 8, *this_._impl_.upload_, this_._impl_.upload_->GetCachedSize(), target, |
1352 | 0 | stream); |
1353 | 0 | } |
1354 | | |
1355 | | // repeated bytes telnet_options = 9; |
1356 | 0 | for (int i = 0, n = this_._internal_telnet_options_size(); i < n; ++i) { |
1357 | 0 | const auto& s = this_._internal_telnet_options().Get(i); |
1358 | 0 | target = stream->WriteBytes(9, s, target); |
1359 | 0 | } |
1360 | | |
1361 | | // .curl.fuzzer.proto.ApiPlan api_plan = 10; |
1362 | 0 | if (cached_has_bits & 0x00000008u) { |
1363 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
1364 | 0 | 10, *this_._impl_.api_plan_, this_._impl_.api_plan_->GetCachedSize(), target, |
1365 | 0 | stream); |
1366 | 0 | } |
1367 | | |
1368 | | // .curl.fuzzer.proto.MultiPlan multi_plan = 11; |
1369 | 0 | if (cached_has_bits & 0x00000010u) { |
1370 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
1371 | 0 | 11, *this_._impl_.multi_plan_, this_._impl_.multi_plan_->GetCachedSize(), target, |
1372 | 0 | stream); |
1373 | 0 | } |
1374 | | |
1375 | | // .curl.fuzzer.proto.TlsCertificateChainProfile tls_certificate_chain = 12; |
1376 | 0 | if (this_._internal_tls_certificate_chain() != 0) { |
1377 | 0 | target = stream->EnsureSpace(target); |
1378 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
1379 | 0 | 12, this_._internal_tls_certificate_chain(), target); |
1380 | 0 | } |
1381 | |
|
1382 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
1383 | 0 | target = |
1384 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1385 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
1386 | 0 | } |
1387 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.Scenario) |
1388 | 0 | return target; |
1389 | 0 | } |
1390 | | |
1391 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1392 | | ::size_t Scenario::ByteSizeLong(const MessageLite& base) { |
1393 | | const Scenario& this_ = static_cast<const Scenario&>(base); |
1394 | | #else // PROTOBUF_CUSTOM_VTABLE |
1395 | 0 | ::size_t Scenario::ByteSizeLong() const { |
1396 | 0 | const Scenario& this_ = *this; |
1397 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1398 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.Scenario) |
1399 | 0 | ::size_t total_size = 0; |
1400 | |
|
1401 | 0 | ::uint32_t cached_has_bits = 0; |
1402 | | // Prevent compiler warnings about cached_has_bits being unused |
1403 | 0 | (void)cached_has_bits; |
1404 | |
|
1405 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
1406 | 0 | { |
1407 | | // repeated .curl.fuzzer.proto.SetOption options = 3; |
1408 | 0 | { |
1409 | 0 | total_size += 1UL * this_._internal_options_size(); |
1410 | 0 | for (const auto& msg : this_._internal_options()) { |
1411 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); |
1412 | 0 | } |
1413 | 0 | } |
1414 | | // repeated bytes request_headers = 5; |
1415 | 0 | { |
1416 | 0 | total_size += |
1417 | 0 | 1 * ::google::protobuf::internal::FromIntSize(this_._internal_request_headers().size()); |
1418 | 0 | for (int i = 0, n = this_._internal_request_headers().size(); i < n; ++i) { |
1419 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
1420 | 0 | this_._internal_request_headers().Get(i)); |
1421 | 0 | } |
1422 | 0 | } |
1423 | | // repeated .curl.fuzzer.proto.Connection subsequent_connections = 7; |
1424 | 0 | { |
1425 | 0 | total_size += 1UL * this_._internal_subsequent_connections_size(); |
1426 | 0 | for (const auto& msg : this_._internal_subsequent_connections()) { |
1427 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); |
1428 | 0 | } |
1429 | 0 | } |
1430 | | // repeated bytes telnet_options = 9; |
1431 | 0 | { |
1432 | 0 | total_size += |
1433 | 0 | 1 * ::google::protobuf::internal::FromIntSize(this_._internal_telnet_options().size()); |
1434 | 0 | for (int i = 0, n = this_._internal_telnet_options().size(); i < n; ++i) { |
1435 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
1436 | 0 | this_._internal_telnet_options().Get(i)); |
1437 | 0 | } |
1438 | 0 | } |
1439 | 0 | } |
1440 | 0 | { |
1441 | | // bytes host_path = 2; |
1442 | 0 | if (!this_._internal_host_path().empty()) { |
1443 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
1444 | 0 | this_._internal_host_path()); |
1445 | 0 | } |
1446 | 0 | } |
1447 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
1448 | 0 | if (cached_has_bits & 0x0000001fu) { |
1449 | | // .curl.fuzzer.proto.Connection connection = 4; |
1450 | 0 | if (cached_has_bits & 0x00000001u) { |
1451 | 0 | total_size += 1 + |
1452 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.connection_); |
1453 | 0 | } |
1454 | | // .curl.fuzzer.proto.MimePost mime_post = 6; |
1455 | 0 | if (cached_has_bits & 0x00000002u) { |
1456 | 0 | total_size += 1 + |
1457 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.mime_post_); |
1458 | 0 | } |
1459 | | // .curl.fuzzer.proto.UploadScript upload = 8; |
1460 | 0 | if (cached_has_bits & 0x00000004u) { |
1461 | 0 | total_size += 1 + |
1462 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.upload_); |
1463 | 0 | } |
1464 | | // .curl.fuzzer.proto.ApiPlan api_plan = 10; |
1465 | 0 | if (cached_has_bits & 0x00000008u) { |
1466 | 0 | total_size += 1 + |
1467 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.api_plan_); |
1468 | 0 | } |
1469 | | // .curl.fuzzer.proto.MultiPlan multi_plan = 11; |
1470 | 0 | if (cached_has_bits & 0x00000010u) { |
1471 | 0 | total_size += 1 + |
1472 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.multi_plan_); |
1473 | 0 | } |
1474 | 0 | } |
1475 | 0 | { |
1476 | | // .curl.fuzzer.proto.Scheme scheme = 1; |
1477 | 0 | if (this_._internal_scheme() != 0) { |
1478 | 0 | total_size += 1 + |
1479 | 0 | ::_pbi::WireFormatLite::EnumSize(this_._internal_scheme()); |
1480 | 0 | } |
1481 | | // .curl.fuzzer.proto.TlsCertificateChainProfile tls_certificate_chain = 12; |
1482 | 0 | if (this_._internal_tls_certificate_chain() != 0) { |
1483 | 0 | total_size += 1 + |
1484 | 0 | ::_pbi::WireFormatLite::EnumSize(this_._internal_tls_certificate_chain()); |
1485 | 0 | } |
1486 | 0 | } |
1487 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
1488 | 0 | &this_._impl_._cached_size_); |
1489 | 0 | } |
1490 | | |
1491 | 0 | void Scenario::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
1492 | 0 | auto* const _this = static_cast<Scenario*>(&to_msg); |
1493 | 0 | auto& from = static_cast<const Scenario&>(from_msg); |
1494 | 0 | ::google::protobuf::Arena* arena = _this->GetArena(); |
1495 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.Scenario) |
1496 | 0 | ABSL_DCHECK_NE(&from, _this); |
1497 | 0 | ::uint32_t cached_has_bits = 0; |
1498 | 0 | (void) cached_has_bits; |
1499 | |
|
1500 | 0 | _this->_internal_mutable_options()->MergeFrom( |
1501 | 0 | from._internal_options()); |
1502 | 0 | _this->_internal_mutable_request_headers()->MergeFrom(from._internal_request_headers()); |
1503 | 0 | _this->_internal_mutable_subsequent_connections()->MergeFrom( |
1504 | 0 | from._internal_subsequent_connections()); |
1505 | 0 | _this->_internal_mutable_telnet_options()->MergeFrom(from._internal_telnet_options()); |
1506 | 0 | if (!from._internal_host_path().empty()) { |
1507 | 0 | _this->_internal_set_host_path(from._internal_host_path()); |
1508 | 0 | } |
1509 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
1510 | 0 | if (cached_has_bits & 0x0000001fu) { |
1511 | 0 | if (cached_has_bits & 0x00000001u) { |
1512 | 0 | ABSL_DCHECK(from._impl_.connection_ != nullptr); |
1513 | 0 | if (_this->_impl_.connection_ == nullptr) { |
1514 | 0 | _this->_impl_.connection_ = |
1515 | 0 | ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::Connection>(arena, *from._impl_.connection_); |
1516 | 0 | } else { |
1517 | 0 | _this->_impl_.connection_->MergeFrom(*from._impl_.connection_); |
1518 | 0 | } |
1519 | 0 | } |
1520 | 0 | if (cached_has_bits & 0x00000002u) { |
1521 | 0 | ABSL_DCHECK(from._impl_.mime_post_ != nullptr); |
1522 | 0 | if (_this->_impl_.mime_post_ == nullptr) { |
1523 | 0 | _this->_impl_.mime_post_ = |
1524 | 0 | ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::MimePost>(arena, *from._impl_.mime_post_); |
1525 | 0 | } else { |
1526 | 0 | _this->_impl_.mime_post_->MergeFrom(*from._impl_.mime_post_); |
1527 | 0 | } |
1528 | 0 | } |
1529 | 0 | if (cached_has_bits & 0x00000004u) { |
1530 | 0 | ABSL_DCHECK(from._impl_.upload_ != nullptr); |
1531 | 0 | if (_this->_impl_.upload_ == nullptr) { |
1532 | 0 | _this->_impl_.upload_ = |
1533 | 0 | ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::UploadScript>(arena, *from._impl_.upload_); |
1534 | 0 | } else { |
1535 | 0 | _this->_impl_.upload_->MergeFrom(*from._impl_.upload_); |
1536 | 0 | } |
1537 | 0 | } |
1538 | 0 | if (cached_has_bits & 0x00000008u) { |
1539 | 0 | ABSL_DCHECK(from._impl_.api_plan_ != nullptr); |
1540 | 0 | if (_this->_impl_.api_plan_ == nullptr) { |
1541 | 0 | _this->_impl_.api_plan_ = |
1542 | 0 | ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::ApiPlan>(arena, *from._impl_.api_plan_); |
1543 | 0 | } else { |
1544 | 0 | _this->_impl_.api_plan_->MergeFrom(*from._impl_.api_plan_); |
1545 | 0 | } |
1546 | 0 | } |
1547 | 0 | if (cached_has_bits & 0x00000010u) { |
1548 | 0 | ABSL_DCHECK(from._impl_.multi_plan_ != nullptr); |
1549 | 0 | if (_this->_impl_.multi_plan_ == nullptr) { |
1550 | 0 | _this->_impl_.multi_plan_ = |
1551 | 0 | ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::MultiPlan>(arena, *from._impl_.multi_plan_); |
1552 | 0 | } else { |
1553 | 0 | _this->_impl_.multi_plan_->MergeFrom(*from._impl_.multi_plan_); |
1554 | 0 | } |
1555 | 0 | } |
1556 | 0 | } |
1557 | 0 | if (from._internal_scheme() != 0) { |
1558 | 0 | _this->_impl_.scheme_ = from._impl_.scheme_; |
1559 | 0 | } |
1560 | 0 | if (from._internal_tls_certificate_chain() != 0) { |
1561 | 0 | _this->_impl_.tls_certificate_chain_ = from._impl_.tls_certificate_chain_; |
1562 | 0 | } |
1563 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
1564 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
1565 | 0 | } |
1566 | | |
1567 | 0 | void Scenario::CopyFrom(const Scenario& from) { |
1568 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.Scenario) |
1569 | 0 | if (&from == this) return; |
1570 | 0 | Clear(); |
1571 | 0 | MergeFrom(from); |
1572 | 0 | } |
1573 | | |
1574 | | |
1575 | 0 | void Scenario::InternalSwap(Scenario* PROTOBUF_RESTRICT other) { |
1576 | 0 | using std::swap; |
1577 | 0 | auto* arena = GetArena(); |
1578 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
1579 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1580 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
1581 | 0 | _impl_.options_.InternalSwap(&other->_impl_.options_); |
1582 | 0 | _impl_.request_headers_.InternalSwap(&other->_impl_.request_headers_); |
1583 | 0 | _impl_.subsequent_connections_.InternalSwap(&other->_impl_.subsequent_connections_); |
1584 | 0 | _impl_.telnet_options_.InternalSwap(&other->_impl_.telnet_options_); |
1585 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.host_path_, &other->_impl_.host_path_, arena); |
1586 | 0 | ::google::protobuf::internal::memswap< |
1587 | 0 | PROTOBUF_FIELD_OFFSET(Scenario, _impl_.tls_certificate_chain_) |
1588 | 0 | + sizeof(Scenario::_impl_.tls_certificate_chain_) |
1589 | 0 | - PROTOBUF_FIELD_OFFSET(Scenario, _impl_.connection_)>( |
1590 | 0 | reinterpret_cast<char*>(&_impl_.connection_), |
1591 | 0 | reinterpret_cast<char*>(&other->_impl_.connection_)); |
1592 | 0 | } |
1593 | | |
1594 | 12 | ::google::protobuf::Metadata Scenario::GetMetadata() const { |
1595 | 12 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
1596 | 12 | } |
1597 | | // =================================================================== |
1598 | | |
1599 | | class ApiPlan::_Internal { |
1600 | | public: |
1601 | | }; |
1602 | | |
1603 | | ApiPlan::ApiPlan(::google::protobuf::Arena* arena) |
1604 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1605 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1606 | | #else // PROTOBUF_CUSTOM_VTABLE |
1607 | 0 | : ::google::protobuf::Message(arena) { |
1608 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1609 | 0 | SharedCtor(arena); |
1610 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.ApiPlan) |
1611 | 0 | } |
1612 | | inline PROTOBUF_NDEBUG_INLINE ApiPlan::Impl_::Impl_( |
1613 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
1614 | | const Impl_& from, const ::curl::fuzzer::proto::ApiPlan& from_msg) |
1615 | 0 | : share_data_selectors_{visibility, arena, from.share_data_selectors_}, |
1616 | 0 | _share_data_selectors_cached_byte_size_{0}, |
1617 | 0 | easy_info_selectors_{visibility, arena, from.easy_info_selectors_}, |
1618 | 0 | _easy_info_selectors_cached_byte_size_{0}, |
1619 | 0 | _cached_size_{0} {} |
1620 | | |
1621 | | ApiPlan::ApiPlan( |
1622 | | ::google::protobuf::Arena* arena, |
1623 | | const ApiPlan& from) |
1624 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1625 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1626 | | #else // PROTOBUF_CUSTOM_VTABLE |
1627 | 0 | : ::google::protobuf::Message(arena) { |
1628 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1629 | 0 | ApiPlan* const _this = this; |
1630 | 0 | (void)_this; |
1631 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
1632 | 0 | from._internal_metadata_); |
1633 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
1634 | 0 | ::memcpy(reinterpret_cast<char *>(&_impl_) + |
1635 | 0 | offsetof(Impl_, duplicate_easy_), |
1636 | 0 | reinterpret_cast<const char *>(&from._impl_) + |
1637 | 0 | offsetof(Impl_, duplicate_easy_), |
1638 | 0 | offsetof(Impl_, drive_mode_) - |
1639 | 0 | offsetof(Impl_, duplicate_easy_) + |
1640 | 0 | sizeof(Impl_::drive_mode_)); |
1641 | | |
1642 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.ApiPlan) |
1643 | 0 | } |
1644 | | inline PROTOBUF_NDEBUG_INLINE ApiPlan::Impl_::Impl_( |
1645 | | ::google::protobuf::internal::InternalVisibility visibility, |
1646 | | ::google::protobuf::Arena* arena) |
1647 | 0 | : share_data_selectors_{visibility, arena}, |
1648 | 0 | _share_data_selectors_cached_byte_size_{0}, |
1649 | 0 | easy_info_selectors_{visibility, arena}, |
1650 | 0 | _easy_info_selectors_cached_byte_size_{0}, |
1651 | 0 | _cached_size_{0} {} |
1652 | | |
1653 | 0 | inline void ApiPlan::SharedCtor(::_pb::Arena* arena) { |
1654 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
1655 | 0 | ::memset(reinterpret_cast<char *>(&_impl_) + |
1656 | 0 | offsetof(Impl_, duplicate_easy_), |
1657 | 0 | 0, |
1658 | 0 | offsetof(Impl_, drive_mode_) - |
1659 | 0 | offsetof(Impl_, duplicate_easy_) + |
1660 | 0 | sizeof(Impl_::drive_mode_)); |
1661 | 0 | } |
1662 | 6.44k | ApiPlan::~ApiPlan() { |
1663 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.ApiPlan) |
1664 | 6.44k | SharedDtor(*this); |
1665 | 6.44k | } |
1666 | 6.44k | inline void ApiPlan::SharedDtor(MessageLite& self) { |
1667 | 6.44k | ApiPlan& this_ = static_cast<ApiPlan&>(self); |
1668 | 6.44k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
1669 | 6.44k | ABSL_DCHECK(this_.GetArena() == nullptr); |
1670 | 6.44k | this_._impl_.~Impl_(); |
1671 | 6.44k | } |
1672 | | |
1673 | | inline void* ApiPlan::PlacementNew_(const void*, void* mem, |
1674 | 0 | ::google::protobuf::Arena* arena) { |
1675 | 0 | return ::new (mem) ApiPlan(arena); |
1676 | 0 | } |
1677 | 0 | constexpr auto ApiPlan::InternalNewImpl_() { |
1678 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
1679 | 0 | PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.share_data_selectors_) + |
1680 | 0 | decltype(ApiPlan::_impl_.share_data_selectors_):: |
1681 | 0 | InternalGetArenaOffset( |
1682 | 0 | ::google::protobuf::Message::internal_visibility()), |
1683 | 0 | PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.easy_info_selectors_) + |
1684 | 0 | decltype(ApiPlan::_impl_.easy_info_selectors_):: |
1685 | 0 | InternalGetArenaOffset( |
1686 | 0 | ::google::protobuf::Message::internal_visibility()), |
1687 | 0 | }); |
1688 | 0 | if (arena_bits.has_value()) { |
1689 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit( |
1690 | 0 | sizeof(ApiPlan), alignof(ApiPlan), *arena_bits); |
1691 | 0 | } else { |
1692 | 0 | return ::google::protobuf::internal::MessageCreator(&ApiPlan::PlacementNew_, |
1693 | 0 | sizeof(ApiPlan), |
1694 | 0 | alignof(ApiPlan)); |
1695 | 0 | } |
1696 | 0 | } |
1697 | | PROTOBUF_CONSTINIT |
1698 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1699 | | const ::google::protobuf::internal::ClassDataFull ApiPlan::_class_data_ = { |
1700 | | ::google::protobuf::internal::ClassData{ |
1701 | | &_ApiPlan_default_instance_._instance, |
1702 | | &_table_.header, |
1703 | | nullptr, // OnDemandRegisterArenaDtor |
1704 | | nullptr, // IsInitialized |
1705 | | &ApiPlan::MergeImpl, |
1706 | | ::google::protobuf::Message::GetNewImpl<ApiPlan>(), |
1707 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1708 | | &ApiPlan::SharedDtor, |
1709 | | ::google::protobuf::Message::GetClearImpl<ApiPlan>(), &ApiPlan::ByteSizeLong, |
1710 | | &ApiPlan::_InternalSerialize, |
1711 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1712 | | PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_._cached_size_), |
1713 | | false, |
1714 | | }, |
1715 | | &ApiPlan::kDescriptorMethods, |
1716 | | &descriptor_table_curl_5ffuzzer_2eproto, |
1717 | | nullptr, // tracker |
1718 | | }; |
1719 | 36.5k | const ::google::protobuf::internal::ClassData* ApiPlan::GetClassData() const { |
1720 | 36.5k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
1721 | 36.5k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
1722 | 36.5k | return _class_data_.base(); |
1723 | 36.5k | } |
1724 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1725 | | const ::_pbi::TcParseTable<3, 7, 0, 0, 2> ApiPlan::_table_ = { |
1726 | | { |
1727 | | 0, // no _has_bits_ |
1728 | | 0, // no _extensions_ |
1729 | | 7, 56, // max_field_number, fast_idx_mask |
1730 | | offsetof(decltype(_table_), field_lookup_table), |
1731 | | 4294967168, // skipmap |
1732 | | offsetof(decltype(_table_), field_entries), |
1733 | | 7, // num_field_entries |
1734 | | 0, // num_aux_entries |
1735 | | offsetof(decltype(_table_), field_names), // no aux_entries |
1736 | | _class_data_.base(), |
1737 | | nullptr, // post_loop_handler |
1738 | | ::_pbi::TcParser::GenericFallback, // fallback |
1739 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
1740 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::ApiPlan>(), // to_prefetch |
1741 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
1742 | | }, {{ |
1743 | | {::_pbi::TcParser::MiniParse, {}}, |
1744 | | // bool duplicate_easy = 1; |
1745 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ApiPlan, _impl_.duplicate_easy_), 63>(), |
1746 | | {8, 63, 0, PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.duplicate_easy_)}}, |
1747 | | // bool reset_easy = 2; |
1748 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ApiPlan, _impl_.reset_easy_), 63>(), |
1749 | | {16, 63, 0, PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.reset_easy_)}}, |
1750 | | // bool attach_share = 3; |
1751 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ApiPlan, _impl_.attach_share_), 63>(), |
1752 | | {24, 63, 0, PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.attach_share_)}}, |
1753 | | // repeated uint32 share_data_selectors = 4; |
1754 | | {::_pbi::TcParser::FastV32P1, |
1755 | | {34, 63, 0, PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.share_data_selectors_)}}, |
1756 | | // .curl.fuzzer.proto.ApiDriveMode drive_mode = 5; |
1757 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ApiPlan, _impl_.drive_mode_), 63>(), |
1758 | | {40, 63, 0, PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.drive_mode_)}}, |
1759 | | // bool wake_multi = 6; |
1760 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ApiPlan, _impl_.wake_multi_), 63>(), |
1761 | | {48, 63, 0, PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.wake_multi_)}}, |
1762 | | // repeated uint32 easy_info_selectors = 7; |
1763 | | {::_pbi::TcParser::FastV32P1, |
1764 | | {58, 63, 0, PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.easy_info_selectors_)}}, |
1765 | | }}, {{ |
1766 | | 65535, 65535 |
1767 | | }}, {{ |
1768 | | // bool duplicate_easy = 1; |
1769 | | {PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.duplicate_easy_), 0, 0, |
1770 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
1771 | | // bool reset_easy = 2; |
1772 | | {PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.reset_easy_), 0, 0, |
1773 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
1774 | | // bool attach_share = 3; |
1775 | | {PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.attach_share_), 0, 0, |
1776 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
1777 | | // repeated uint32 share_data_selectors = 4; |
1778 | | {PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.share_data_selectors_), 0, 0, |
1779 | | (0 | ::_fl::kFcRepeated | ::_fl::kPackedUInt32)}, |
1780 | | // .curl.fuzzer.proto.ApiDriveMode drive_mode = 5; |
1781 | | {PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.drive_mode_), 0, 0, |
1782 | | (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
1783 | | // bool wake_multi = 6; |
1784 | | {PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.wake_multi_), 0, 0, |
1785 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
1786 | | // repeated uint32 easy_info_selectors = 7; |
1787 | | {PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.easy_info_selectors_), 0, 0, |
1788 | | (0 | ::_fl::kFcRepeated | ::_fl::kPackedUInt32)}, |
1789 | | }}, |
1790 | | // no aux_entries |
1791 | | {{ |
1792 | | }}, |
1793 | | }; |
1794 | | |
1795 | 773 | PROTOBUF_NOINLINE void ApiPlan::Clear() { |
1796 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.ApiPlan) |
1797 | 773 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1798 | 773 | ::uint32_t cached_has_bits = 0; |
1799 | | // Prevent compiler warnings about cached_has_bits being unused |
1800 | 773 | (void) cached_has_bits; |
1801 | | |
1802 | 773 | _impl_.share_data_selectors_.Clear(); |
1803 | 773 | _impl_.easy_info_selectors_.Clear(); |
1804 | 773 | ::memset(&_impl_.duplicate_easy_, 0, static_cast<::size_t>( |
1805 | 773 | reinterpret_cast<char*>(&_impl_.drive_mode_) - |
1806 | 773 | reinterpret_cast<char*>(&_impl_.duplicate_easy_)) + sizeof(_impl_.drive_mode_)); |
1807 | 773 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
1808 | 773 | } |
1809 | | |
1810 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1811 | | ::uint8_t* ApiPlan::_InternalSerialize( |
1812 | | const MessageLite& base, ::uint8_t* target, |
1813 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
1814 | | const ApiPlan& this_ = static_cast<const ApiPlan&>(base); |
1815 | | #else // PROTOBUF_CUSTOM_VTABLE |
1816 | | ::uint8_t* ApiPlan::_InternalSerialize( |
1817 | | ::uint8_t* target, |
1818 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1819 | 0 | const ApiPlan& this_ = *this; |
1820 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1821 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.ApiPlan) |
1822 | 0 | ::uint32_t cached_has_bits = 0; |
1823 | 0 | (void)cached_has_bits; |
1824 | | |
1825 | | // bool duplicate_easy = 1; |
1826 | 0 | if (this_._internal_duplicate_easy() != 0) { |
1827 | 0 | target = stream->EnsureSpace(target); |
1828 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
1829 | 0 | 1, this_._internal_duplicate_easy(), target); |
1830 | 0 | } |
1831 | | |
1832 | | // bool reset_easy = 2; |
1833 | 0 | if (this_._internal_reset_easy() != 0) { |
1834 | 0 | target = stream->EnsureSpace(target); |
1835 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
1836 | 0 | 2, this_._internal_reset_easy(), target); |
1837 | 0 | } |
1838 | | |
1839 | | // bool attach_share = 3; |
1840 | 0 | if (this_._internal_attach_share() != 0) { |
1841 | 0 | target = stream->EnsureSpace(target); |
1842 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
1843 | 0 | 3, this_._internal_attach_share(), target); |
1844 | 0 | } |
1845 | | |
1846 | | // repeated uint32 share_data_selectors = 4; |
1847 | 0 | { |
1848 | 0 | int byte_size = this_._impl_._share_data_selectors_cached_byte_size_.Get(); |
1849 | 0 | if (byte_size > 0) { |
1850 | 0 | target = stream->WriteUInt32Packed( |
1851 | 0 | 4, this_._internal_share_data_selectors(), byte_size, target); |
1852 | 0 | } |
1853 | 0 | } |
1854 | | |
1855 | | // .curl.fuzzer.proto.ApiDriveMode drive_mode = 5; |
1856 | 0 | if (this_._internal_drive_mode() != 0) { |
1857 | 0 | target = stream->EnsureSpace(target); |
1858 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
1859 | 0 | 5, this_._internal_drive_mode(), target); |
1860 | 0 | } |
1861 | | |
1862 | | // bool wake_multi = 6; |
1863 | 0 | if (this_._internal_wake_multi() != 0) { |
1864 | 0 | target = stream->EnsureSpace(target); |
1865 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
1866 | 0 | 6, this_._internal_wake_multi(), target); |
1867 | 0 | } |
1868 | | |
1869 | | // repeated uint32 easy_info_selectors = 7; |
1870 | 0 | { |
1871 | 0 | int byte_size = this_._impl_._easy_info_selectors_cached_byte_size_.Get(); |
1872 | 0 | if (byte_size > 0) { |
1873 | 0 | target = stream->WriteUInt32Packed( |
1874 | 0 | 7, this_._internal_easy_info_selectors(), byte_size, target); |
1875 | 0 | } |
1876 | 0 | } |
1877 | |
|
1878 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
1879 | 0 | target = |
1880 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1881 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
1882 | 0 | } |
1883 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.ApiPlan) |
1884 | 0 | return target; |
1885 | 0 | } |
1886 | | |
1887 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1888 | | ::size_t ApiPlan::ByteSizeLong(const MessageLite& base) { |
1889 | | const ApiPlan& this_ = static_cast<const ApiPlan&>(base); |
1890 | | #else // PROTOBUF_CUSTOM_VTABLE |
1891 | 0 | ::size_t ApiPlan::ByteSizeLong() const { |
1892 | 0 | const ApiPlan& this_ = *this; |
1893 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1894 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.ApiPlan) |
1895 | 0 | ::size_t total_size = 0; |
1896 | |
|
1897 | 0 | ::uint32_t cached_has_bits = 0; |
1898 | | // Prevent compiler warnings about cached_has_bits being unused |
1899 | 0 | (void)cached_has_bits; |
1900 | |
|
1901 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
1902 | 0 | { |
1903 | | // repeated uint32 share_data_selectors = 4; |
1904 | 0 | { |
1905 | 0 | total_size += |
1906 | 0 | ::_pbi::WireFormatLite::UInt32SizeWithPackedTagSize( |
1907 | 0 | this_._internal_share_data_selectors(), 1, |
1908 | 0 | this_._impl_._share_data_selectors_cached_byte_size_); |
1909 | 0 | } |
1910 | | // repeated uint32 easy_info_selectors = 7; |
1911 | 0 | { |
1912 | 0 | total_size += |
1913 | 0 | ::_pbi::WireFormatLite::UInt32SizeWithPackedTagSize( |
1914 | 0 | this_._internal_easy_info_selectors(), 1, |
1915 | 0 | this_._impl_._easy_info_selectors_cached_byte_size_); |
1916 | 0 | } |
1917 | 0 | } |
1918 | 0 | { |
1919 | | // bool duplicate_easy = 1; |
1920 | 0 | if (this_._internal_duplicate_easy() != 0) { |
1921 | 0 | total_size += 2; |
1922 | 0 | } |
1923 | | // bool reset_easy = 2; |
1924 | 0 | if (this_._internal_reset_easy() != 0) { |
1925 | 0 | total_size += 2; |
1926 | 0 | } |
1927 | | // bool attach_share = 3; |
1928 | 0 | if (this_._internal_attach_share() != 0) { |
1929 | 0 | total_size += 2; |
1930 | 0 | } |
1931 | | // bool wake_multi = 6; |
1932 | 0 | if (this_._internal_wake_multi() != 0) { |
1933 | 0 | total_size += 2; |
1934 | 0 | } |
1935 | | // .curl.fuzzer.proto.ApiDriveMode drive_mode = 5; |
1936 | 0 | if (this_._internal_drive_mode() != 0) { |
1937 | 0 | total_size += 1 + |
1938 | 0 | ::_pbi::WireFormatLite::EnumSize(this_._internal_drive_mode()); |
1939 | 0 | } |
1940 | 0 | } |
1941 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
1942 | 0 | &this_._impl_._cached_size_); |
1943 | 0 | } |
1944 | | |
1945 | 0 | void ApiPlan::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
1946 | 0 | auto* const _this = static_cast<ApiPlan*>(&to_msg); |
1947 | 0 | auto& from = static_cast<const ApiPlan&>(from_msg); |
1948 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.ApiPlan) |
1949 | 0 | ABSL_DCHECK_NE(&from, _this); |
1950 | 0 | ::uint32_t cached_has_bits = 0; |
1951 | 0 | (void) cached_has_bits; |
1952 | |
|
1953 | 0 | _this->_internal_mutable_share_data_selectors()->MergeFrom(from._internal_share_data_selectors()); |
1954 | 0 | _this->_internal_mutable_easy_info_selectors()->MergeFrom(from._internal_easy_info_selectors()); |
1955 | 0 | if (from._internal_duplicate_easy() != 0) { |
1956 | 0 | _this->_impl_.duplicate_easy_ = from._impl_.duplicate_easy_; |
1957 | 0 | } |
1958 | 0 | if (from._internal_reset_easy() != 0) { |
1959 | 0 | _this->_impl_.reset_easy_ = from._impl_.reset_easy_; |
1960 | 0 | } |
1961 | 0 | if (from._internal_attach_share() != 0) { |
1962 | 0 | _this->_impl_.attach_share_ = from._impl_.attach_share_; |
1963 | 0 | } |
1964 | 0 | if (from._internal_wake_multi() != 0) { |
1965 | 0 | _this->_impl_.wake_multi_ = from._impl_.wake_multi_; |
1966 | 0 | } |
1967 | 0 | if (from._internal_drive_mode() != 0) { |
1968 | 0 | _this->_impl_.drive_mode_ = from._impl_.drive_mode_; |
1969 | 0 | } |
1970 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
1971 | 0 | } |
1972 | | |
1973 | 0 | void ApiPlan::CopyFrom(const ApiPlan& from) { |
1974 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.ApiPlan) |
1975 | 0 | if (&from == this) return; |
1976 | 0 | Clear(); |
1977 | 0 | MergeFrom(from); |
1978 | 0 | } |
1979 | | |
1980 | | |
1981 | 0 | void ApiPlan::InternalSwap(ApiPlan* PROTOBUF_RESTRICT other) { |
1982 | 0 | using std::swap; |
1983 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1984 | 0 | _impl_.share_data_selectors_.InternalSwap(&other->_impl_.share_data_selectors_); |
1985 | 0 | _impl_.easy_info_selectors_.InternalSwap(&other->_impl_.easy_info_selectors_); |
1986 | 0 | ::google::protobuf::internal::memswap< |
1987 | 0 | PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.drive_mode_) |
1988 | 0 | + sizeof(ApiPlan::_impl_.drive_mode_) |
1989 | 0 | - PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.duplicate_easy_)>( |
1990 | 0 | reinterpret_cast<char*>(&_impl_.duplicate_easy_), |
1991 | 0 | reinterpret_cast<char*>(&other->_impl_.duplicate_easy_)); |
1992 | 0 | } |
1993 | | |
1994 | 0 | ::google::protobuf::Metadata ApiPlan::GetMetadata() const { |
1995 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
1996 | 0 | } |
1997 | | // =================================================================== |
1998 | | |
1999 | | class MultiPlan::_Internal { |
2000 | | public: |
2001 | | }; |
2002 | | |
2003 | | MultiPlan::MultiPlan(::google::protobuf::Arena* arena) |
2004 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2005 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
2006 | | #else // PROTOBUF_CUSTOM_VTABLE |
2007 | 0 | : ::google::protobuf::Message(arena) { |
2008 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2009 | 0 | SharedCtor(arena); |
2010 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.MultiPlan) |
2011 | 0 | } |
2012 | | inline PROTOBUF_NDEBUG_INLINE MultiPlan::Impl_::Impl_( |
2013 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
2014 | | const Impl_& from, const ::curl::fuzzer::proto::MultiPlan& from_msg) |
2015 | 0 | : actions_{visibility, arena, from.actions_}, |
2016 | 0 | _cached_size_{0} {} |
2017 | | |
2018 | | MultiPlan::MultiPlan( |
2019 | | ::google::protobuf::Arena* arena, |
2020 | | const MultiPlan& from) |
2021 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2022 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
2023 | | #else // PROTOBUF_CUSTOM_VTABLE |
2024 | 0 | : ::google::protobuf::Message(arena) { |
2025 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2026 | 0 | MultiPlan* const _this = this; |
2027 | 0 | (void)_this; |
2028 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
2029 | 0 | from._internal_metadata_); |
2030 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
2031 | 0 | ::memcpy(reinterpret_cast<char *>(&_impl_) + |
2032 | 0 | offsetof(Impl_, transfer_count_), |
2033 | 0 | reinterpret_cast<const char *>(&from._impl_) + |
2034 | 0 | offsetof(Impl_, transfer_count_), |
2035 | 0 | offsetof(Impl_, wake_multi_) - |
2036 | 0 | offsetof(Impl_, transfer_count_) + |
2037 | 0 | sizeof(Impl_::wake_multi_)); |
2038 | | |
2039 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.MultiPlan) |
2040 | 0 | } |
2041 | | inline PROTOBUF_NDEBUG_INLINE MultiPlan::Impl_::Impl_( |
2042 | | ::google::protobuf::internal::InternalVisibility visibility, |
2043 | | ::google::protobuf::Arena* arena) |
2044 | 0 | : actions_{visibility, arena}, |
2045 | 0 | _cached_size_{0} {} |
2046 | | |
2047 | 0 | inline void MultiPlan::SharedCtor(::_pb::Arena* arena) { |
2048 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
2049 | 0 | ::memset(reinterpret_cast<char *>(&_impl_) + |
2050 | 0 | offsetof(Impl_, transfer_count_), |
2051 | 0 | 0, |
2052 | 0 | offsetof(Impl_, wake_multi_) - |
2053 | 0 | offsetof(Impl_, transfer_count_) + |
2054 | 0 | sizeof(Impl_::wake_multi_)); |
2055 | 0 | } |
2056 | 735 | MultiPlan::~MultiPlan() { |
2057 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.MultiPlan) |
2058 | 735 | SharedDtor(*this); |
2059 | 735 | } |
2060 | 735 | inline void MultiPlan::SharedDtor(MessageLite& self) { |
2061 | 735 | MultiPlan& this_ = static_cast<MultiPlan&>(self); |
2062 | 735 | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
2063 | 735 | ABSL_DCHECK(this_.GetArena() == nullptr); |
2064 | 735 | this_._impl_.~Impl_(); |
2065 | 735 | } |
2066 | | |
2067 | | inline void* MultiPlan::PlacementNew_(const void*, void* mem, |
2068 | 0 | ::google::protobuf::Arena* arena) { |
2069 | 0 | return ::new (mem) MultiPlan(arena); |
2070 | 0 | } |
2071 | 0 | constexpr auto MultiPlan::InternalNewImpl_() { |
2072 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
2073 | 0 | PROTOBUF_FIELD_OFFSET(MultiPlan, _impl_.actions_) + |
2074 | 0 | decltype(MultiPlan::_impl_.actions_):: |
2075 | 0 | InternalGetArenaOffset( |
2076 | 0 | ::google::protobuf::Message::internal_visibility()), |
2077 | 0 | }); |
2078 | 0 | if (arena_bits.has_value()) { |
2079 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit( |
2080 | 0 | sizeof(MultiPlan), alignof(MultiPlan), *arena_bits); |
2081 | 0 | } else { |
2082 | 0 | return ::google::protobuf::internal::MessageCreator(&MultiPlan::PlacementNew_, |
2083 | 0 | sizeof(MultiPlan), |
2084 | 0 | alignof(MultiPlan)); |
2085 | 0 | } |
2086 | 0 | } |
2087 | | PROTOBUF_CONSTINIT |
2088 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2089 | | const ::google::protobuf::internal::ClassDataFull MultiPlan::_class_data_ = { |
2090 | | ::google::protobuf::internal::ClassData{ |
2091 | | &_MultiPlan_default_instance_._instance, |
2092 | | &_table_.header, |
2093 | | nullptr, // OnDemandRegisterArenaDtor |
2094 | | nullptr, // IsInitialized |
2095 | | &MultiPlan::MergeImpl, |
2096 | | ::google::protobuf::Message::GetNewImpl<MultiPlan>(), |
2097 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2098 | | &MultiPlan::SharedDtor, |
2099 | | ::google::protobuf::Message::GetClearImpl<MultiPlan>(), &MultiPlan::ByteSizeLong, |
2100 | | &MultiPlan::_InternalSerialize, |
2101 | | #endif // PROTOBUF_CUSTOM_VTABLE |
2102 | | PROTOBUF_FIELD_OFFSET(MultiPlan, _impl_._cached_size_), |
2103 | | false, |
2104 | | }, |
2105 | | &MultiPlan::kDescriptorMethods, |
2106 | | &descriptor_table_curl_5ffuzzer_2eproto, |
2107 | | nullptr, // tracker |
2108 | | }; |
2109 | 3.97k | const ::google::protobuf::internal::ClassData* MultiPlan::GetClassData() const { |
2110 | 3.97k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
2111 | 3.97k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
2112 | 3.97k | return _class_data_.base(); |
2113 | 3.97k | } |
2114 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2115 | | const ::_pbi::TcParseTable<4, 9, 1, 0, 2> MultiPlan::_table_ = { |
2116 | | { |
2117 | | 0, // no _has_bits_ |
2118 | | 0, // no _extensions_ |
2119 | | 9, 120, // max_field_number, fast_idx_mask |
2120 | | offsetof(decltype(_table_), field_lookup_table), |
2121 | | 4294966784, // skipmap |
2122 | | offsetof(decltype(_table_), field_entries), |
2123 | | 9, // num_field_entries |
2124 | | 1, // num_aux_entries |
2125 | | offsetof(decltype(_table_), aux_entries), |
2126 | | _class_data_.base(), |
2127 | | nullptr, // post_loop_handler |
2128 | | ::_pbi::TcParser::GenericFallback, // fallback |
2129 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
2130 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::MultiPlan>(), // to_prefetch |
2131 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
2132 | | }, {{ |
2133 | | {::_pbi::TcParser::MiniParse, {}}, |
2134 | | // uint32 transfer_count = 1; |
2135 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MultiPlan, _impl_.transfer_count_), 63>(), |
2136 | | {8, 63, 0, PROTOBUF_FIELD_OFFSET(MultiPlan, _impl_.transfer_count_)}}, |
2137 | | // .curl.fuzzer.proto.MultiDriveMode drive_mode = 2; |
2138 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MultiPlan, _impl_.drive_mode_), 63>(), |
2139 | | {16, 63, 0, PROTOBUF_FIELD_OFFSET(MultiPlan, _impl_.drive_mode_)}}, |
2140 | | // uint32 max_host_connections = 3; |
2141 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MultiPlan, _impl_.max_host_connections_), 63>(), |
2142 | | {24, 63, 0, PROTOBUF_FIELD_OFFSET(MultiPlan, _impl_.max_host_connections_)}}, |
2143 | | // uint32 max_total_connections = 4; |
2144 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MultiPlan, _impl_.max_total_connections_), 63>(), |
2145 | | {32, 63, 0, PROTOBUF_FIELD_OFFSET(MultiPlan, _impl_.max_total_connections_)}}, |
2146 | | // uint32 connection_cache_size = 5; |
2147 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MultiPlan, _impl_.connection_cache_size_), 63>(), |
2148 | | {40, 63, 0, PROTOBUF_FIELD_OFFSET(MultiPlan, _impl_.connection_cache_size_)}}, |
2149 | | // bool keep_connections_open = 6; |
2150 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(MultiPlan, _impl_.keep_connections_open_), 63>(), |
2151 | | {48, 63, 0, PROTOBUF_FIELD_OFFSET(MultiPlan, _impl_.keep_connections_open_)}}, |
2152 | | // bool multiplex = 7; |
2153 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(MultiPlan, _impl_.multiplex_), 63>(), |
2154 | | {56, 63, 0, PROTOBUF_FIELD_OFFSET(MultiPlan, _impl_.multiplex_)}}, |
2155 | | // bool wake_multi = 8; |
2156 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(MultiPlan, _impl_.wake_multi_), 63>(), |
2157 | | {64, 63, 0, PROTOBUF_FIELD_OFFSET(MultiPlan, _impl_.wake_multi_)}}, |
2158 | | // repeated .curl.fuzzer.proto.MultiAction actions = 9; |
2159 | | {::_pbi::TcParser::FastMtR1, |
2160 | | {74, 63, 0, PROTOBUF_FIELD_OFFSET(MultiPlan, _impl_.actions_)}}, |
2161 | | {::_pbi::TcParser::MiniParse, {}}, |
2162 | | {::_pbi::TcParser::MiniParse, {}}, |
2163 | | {::_pbi::TcParser::MiniParse, {}}, |
2164 | | {::_pbi::TcParser::MiniParse, {}}, |
2165 | | {::_pbi::TcParser::MiniParse, {}}, |
2166 | | {::_pbi::TcParser::MiniParse, {}}, |
2167 | | }}, {{ |
2168 | | 65535, 65535 |
2169 | | }}, {{ |
2170 | | // uint32 transfer_count = 1; |
2171 | | {PROTOBUF_FIELD_OFFSET(MultiPlan, _impl_.transfer_count_), 0, 0, |
2172 | | (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, |
2173 | | // .curl.fuzzer.proto.MultiDriveMode drive_mode = 2; |
2174 | | {PROTOBUF_FIELD_OFFSET(MultiPlan, _impl_.drive_mode_), 0, 0, |
2175 | | (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
2176 | | // uint32 max_host_connections = 3; |
2177 | | {PROTOBUF_FIELD_OFFSET(MultiPlan, _impl_.max_host_connections_), 0, 0, |
2178 | | (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, |
2179 | | // uint32 max_total_connections = 4; |
2180 | | {PROTOBUF_FIELD_OFFSET(MultiPlan, _impl_.max_total_connections_), 0, 0, |
2181 | | (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, |
2182 | | // uint32 connection_cache_size = 5; |
2183 | | {PROTOBUF_FIELD_OFFSET(MultiPlan, _impl_.connection_cache_size_), 0, 0, |
2184 | | (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, |
2185 | | // bool keep_connections_open = 6; |
2186 | | {PROTOBUF_FIELD_OFFSET(MultiPlan, _impl_.keep_connections_open_), 0, 0, |
2187 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
2188 | | // bool multiplex = 7; |
2189 | | {PROTOBUF_FIELD_OFFSET(MultiPlan, _impl_.multiplex_), 0, 0, |
2190 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
2191 | | // bool wake_multi = 8; |
2192 | | {PROTOBUF_FIELD_OFFSET(MultiPlan, _impl_.wake_multi_), 0, 0, |
2193 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
2194 | | // repeated .curl.fuzzer.proto.MultiAction actions = 9; |
2195 | | {PROTOBUF_FIELD_OFFSET(MultiPlan, _impl_.actions_), 0, 0, |
2196 | | (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
2197 | | }}, {{ |
2198 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::MultiAction>()}, |
2199 | | }}, {{ |
2200 | | }}, |
2201 | | }; |
2202 | | |
2203 | 122 | PROTOBUF_NOINLINE void MultiPlan::Clear() { |
2204 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.MultiPlan) |
2205 | 122 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2206 | 122 | ::uint32_t cached_has_bits = 0; |
2207 | | // Prevent compiler warnings about cached_has_bits being unused |
2208 | 122 | (void) cached_has_bits; |
2209 | | |
2210 | 122 | _impl_.actions_.Clear(); |
2211 | 122 | ::memset(&_impl_.transfer_count_, 0, static_cast<::size_t>( |
2212 | 122 | reinterpret_cast<char*>(&_impl_.wake_multi_) - |
2213 | 122 | reinterpret_cast<char*>(&_impl_.transfer_count_)) + sizeof(_impl_.wake_multi_)); |
2214 | 122 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
2215 | 122 | } |
2216 | | |
2217 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2218 | | ::uint8_t* MultiPlan::_InternalSerialize( |
2219 | | const MessageLite& base, ::uint8_t* target, |
2220 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
2221 | | const MultiPlan& this_ = static_cast<const MultiPlan&>(base); |
2222 | | #else // PROTOBUF_CUSTOM_VTABLE |
2223 | | ::uint8_t* MultiPlan::_InternalSerialize( |
2224 | | ::uint8_t* target, |
2225 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
2226 | 0 | const MultiPlan& this_ = *this; |
2227 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2228 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.MultiPlan) |
2229 | 0 | ::uint32_t cached_has_bits = 0; |
2230 | 0 | (void)cached_has_bits; |
2231 | | |
2232 | | // uint32 transfer_count = 1; |
2233 | 0 | if (this_._internal_transfer_count() != 0) { |
2234 | 0 | target = stream->EnsureSpace(target); |
2235 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
2236 | 0 | 1, this_._internal_transfer_count(), target); |
2237 | 0 | } |
2238 | | |
2239 | | // .curl.fuzzer.proto.MultiDriveMode drive_mode = 2; |
2240 | 0 | if (this_._internal_drive_mode() != 0) { |
2241 | 0 | target = stream->EnsureSpace(target); |
2242 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
2243 | 0 | 2, this_._internal_drive_mode(), target); |
2244 | 0 | } |
2245 | | |
2246 | | // uint32 max_host_connections = 3; |
2247 | 0 | if (this_._internal_max_host_connections() != 0) { |
2248 | 0 | target = stream->EnsureSpace(target); |
2249 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
2250 | 0 | 3, this_._internal_max_host_connections(), target); |
2251 | 0 | } |
2252 | | |
2253 | | // uint32 max_total_connections = 4; |
2254 | 0 | if (this_._internal_max_total_connections() != 0) { |
2255 | 0 | target = stream->EnsureSpace(target); |
2256 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
2257 | 0 | 4, this_._internal_max_total_connections(), target); |
2258 | 0 | } |
2259 | | |
2260 | | // uint32 connection_cache_size = 5; |
2261 | 0 | if (this_._internal_connection_cache_size() != 0) { |
2262 | 0 | target = stream->EnsureSpace(target); |
2263 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
2264 | 0 | 5, this_._internal_connection_cache_size(), target); |
2265 | 0 | } |
2266 | | |
2267 | | // bool keep_connections_open = 6; |
2268 | 0 | if (this_._internal_keep_connections_open() != 0) { |
2269 | 0 | target = stream->EnsureSpace(target); |
2270 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
2271 | 0 | 6, this_._internal_keep_connections_open(), target); |
2272 | 0 | } |
2273 | | |
2274 | | // bool multiplex = 7; |
2275 | 0 | if (this_._internal_multiplex() != 0) { |
2276 | 0 | target = stream->EnsureSpace(target); |
2277 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
2278 | 0 | 7, this_._internal_multiplex(), target); |
2279 | 0 | } |
2280 | | |
2281 | | // bool wake_multi = 8; |
2282 | 0 | if (this_._internal_wake_multi() != 0) { |
2283 | 0 | target = stream->EnsureSpace(target); |
2284 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
2285 | 0 | 8, this_._internal_wake_multi(), target); |
2286 | 0 | } |
2287 | | |
2288 | | // repeated .curl.fuzzer.proto.MultiAction actions = 9; |
2289 | 0 | for (unsigned i = 0, n = static_cast<unsigned>( |
2290 | 0 | this_._internal_actions_size()); |
2291 | 0 | i < n; i++) { |
2292 | 0 | const auto& repfield = this_._internal_actions().Get(i); |
2293 | 0 | target = |
2294 | 0 | ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
2295 | 0 | 9, repfield, repfield.GetCachedSize(), |
2296 | 0 | target, stream); |
2297 | 0 | } |
2298 | |
|
2299 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
2300 | 0 | target = |
2301 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
2302 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
2303 | 0 | } |
2304 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.MultiPlan) |
2305 | 0 | return target; |
2306 | 0 | } |
2307 | | |
2308 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2309 | | ::size_t MultiPlan::ByteSizeLong(const MessageLite& base) { |
2310 | | const MultiPlan& this_ = static_cast<const MultiPlan&>(base); |
2311 | | #else // PROTOBUF_CUSTOM_VTABLE |
2312 | 0 | ::size_t MultiPlan::ByteSizeLong() const { |
2313 | 0 | const MultiPlan& this_ = *this; |
2314 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2315 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.MultiPlan) |
2316 | 0 | ::size_t total_size = 0; |
2317 | |
|
2318 | 0 | ::uint32_t cached_has_bits = 0; |
2319 | | // Prevent compiler warnings about cached_has_bits being unused |
2320 | 0 | (void)cached_has_bits; |
2321 | |
|
2322 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
2323 | 0 | { |
2324 | | // repeated .curl.fuzzer.proto.MultiAction actions = 9; |
2325 | 0 | { |
2326 | 0 | total_size += 1UL * this_._internal_actions_size(); |
2327 | 0 | for (const auto& msg : this_._internal_actions()) { |
2328 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); |
2329 | 0 | } |
2330 | 0 | } |
2331 | 0 | } |
2332 | 0 | { |
2333 | | // uint32 transfer_count = 1; |
2334 | 0 | if (this_._internal_transfer_count() != 0) { |
2335 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
2336 | 0 | this_._internal_transfer_count()); |
2337 | 0 | } |
2338 | | // .curl.fuzzer.proto.MultiDriveMode drive_mode = 2; |
2339 | 0 | if (this_._internal_drive_mode() != 0) { |
2340 | 0 | total_size += 1 + |
2341 | 0 | ::_pbi::WireFormatLite::EnumSize(this_._internal_drive_mode()); |
2342 | 0 | } |
2343 | | // uint32 max_host_connections = 3; |
2344 | 0 | if (this_._internal_max_host_connections() != 0) { |
2345 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
2346 | 0 | this_._internal_max_host_connections()); |
2347 | 0 | } |
2348 | | // uint32 max_total_connections = 4; |
2349 | 0 | if (this_._internal_max_total_connections() != 0) { |
2350 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
2351 | 0 | this_._internal_max_total_connections()); |
2352 | 0 | } |
2353 | | // uint32 connection_cache_size = 5; |
2354 | 0 | if (this_._internal_connection_cache_size() != 0) { |
2355 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
2356 | 0 | this_._internal_connection_cache_size()); |
2357 | 0 | } |
2358 | | // bool keep_connections_open = 6; |
2359 | 0 | if (this_._internal_keep_connections_open() != 0) { |
2360 | 0 | total_size += 2; |
2361 | 0 | } |
2362 | | // bool multiplex = 7; |
2363 | 0 | if (this_._internal_multiplex() != 0) { |
2364 | 0 | total_size += 2; |
2365 | 0 | } |
2366 | | // bool wake_multi = 8; |
2367 | 0 | if (this_._internal_wake_multi() != 0) { |
2368 | 0 | total_size += 2; |
2369 | 0 | } |
2370 | 0 | } |
2371 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
2372 | 0 | &this_._impl_._cached_size_); |
2373 | 0 | } |
2374 | | |
2375 | 0 | void MultiPlan::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
2376 | 0 | auto* const _this = static_cast<MultiPlan*>(&to_msg); |
2377 | 0 | auto& from = static_cast<const MultiPlan&>(from_msg); |
2378 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.MultiPlan) |
2379 | 0 | ABSL_DCHECK_NE(&from, _this); |
2380 | 0 | ::uint32_t cached_has_bits = 0; |
2381 | 0 | (void) cached_has_bits; |
2382 | |
|
2383 | 0 | _this->_internal_mutable_actions()->MergeFrom( |
2384 | 0 | from._internal_actions()); |
2385 | 0 | if (from._internal_transfer_count() != 0) { |
2386 | 0 | _this->_impl_.transfer_count_ = from._impl_.transfer_count_; |
2387 | 0 | } |
2388 | 0 | if (from._internal_drive_mode() != 0) { |
2389 | 0 | _this->_impl_.drive_mode_ = from._impl_.drive_mode_; |
2390 | 0 | } |
2391 | 0 | if (from._internal_max_host_connections() != 0) { |
2392 | 0 | _this->_impl_.max_host_connections_ = from._impl_.max_host_connections_; |
2393 | 0 | } |
2394 | 0 | if (from._internal_max_total_connections() != 0) { |
2395 | 0 | _this->_impl_.max_total_connections_ = from._impl_.max_total_connections_; |
2396 | 0 | } |
2397 | 0 | if (from._internal_connection_cache_size() != 0) { |
2398 | 0 | _this->_impl_.connection_cache_size_ = from._impl_.connection_cache_size_; |
2399 | 0 | } |
2400 | 0 | if (from._internal_keep_connections_open() != 0) { |
2401 | 0 | _this->_impl_.keep_connections_open_ = from._impl_.keep_connections_open_; |
2402 | 0 | } |
2403 | 0 | if (from._internal_multiplex() != 0) { |
2404 | 0 | _this->_impl_.multiplex_ = from._impl_.multiplex_; |
2405 | 0 | } |
2406 | 0 | if (from._internal_wake_multi() != 0) { |
2407 | 0 | _this->_impl_.wake_multi_ = from._impl_.wake_multi_; |
2408 | 0 | } |
2409 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
2410 | 0 | } |
2411 | | |
2412 | 0 | void MultiPlan::CopyFrom(const MultiPlan& from) { |
2413 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.MultiPlan) |
2414 | 0 | if (&from == this) return; |
2415 | 0 | Clear(); |
2416 | 0 | MergeFrom(from); |
2417 | 0 | } |
2418 | | |
2419 | | |
2420 | 0 | void MultiPlan::InternalSwap(MultiPlan* PROTOBUF_RESTRICT other) { |
2421 | 0 | using std::swap; |
2422 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
2423 | 0 | _impl_.actions_.InternalSwap(&other->_impl_.actions_); |
2424 | 0 | ::google::protobuf::internal::memswap< |
2425 | 0 | PROTOBUF_FIELD_OFFSET(MultiPlan, _impl_.wake_multi_) |
2426 | 0 | + sizeof(MultiPlan::_impl_.wake_multi_) |
2427 | 0 | - PROTOBUF_FIELD_OFFSET(MultiPlan, _impl_.transfer_count_)>( |
2428 | 0 | reinterpret_cast<char*>(&_impl_.transfer_count_), |
2429 | 0 | reinterpret_cast<char*>(&other->_impl_.transfer_count_)); |
2430 | 0 | } |
2431 | | |
2432 | 0 | ::google::protobuf::Metadata MultiPlan::GetMetadata() const { |
2433 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
2434 | 0 | } |
2435 | | // =================================================================== |
2436 | | |
2437 | | class MultiAction::_Internal { |
2438 | | public: |
2439 | | }; |
2440 | | |
2441 | | MultiAction::MultiAction(::google::protobuf::Arena* arena) |
2442 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2443 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
2444 | | #else // PROTOBUF_CUSTOM_VTABLE |
2445 | 0 | : ::google::protobuf::Message(arena) { |
2446 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2447 | 0 | SharedCtor(arena); |
2448 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.MultiAction) |
2449 | 0 | } |
2450 | | MultiAction::MultiAction( |
2451 | | ::google::protobuf::Arena* arena, const MultiAction& from) |
2452 | 0 | : MultiAction(arena) { |
2453 | 0 | MergeFrom(from); |
2454 | 0 | } |
2455 | | inline PROTOBUF_NDEBUG_INLINE MultiAction::Impl_::Impl_( |
2456 | | ::google::protobuf::internal::InternalVisibility visibility, |
2457 | | ::google::protobuf::Arena* arena) |
2458 | 0 | : _cached_size_{0} {} |
2459 | | |
2460 | 0 | inline void MultiAction::SharedCtor(::_pb::Arena* arena) { |
2461 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
2462 | 0 | ::memset(reinterpret_cast<char *>(&_impl_) + |
2463 | 0 | offsetof(Impl_, transfer_selector_), |
2464 | 0 | 0, |
2465 | 0 | offsetof(Impl_, kind_) - |
2466 | 0 | offsetof(Impl_, transfer_selector_) + |
2467 | 0 | sizeof(Impl_::kind_)); |
2468 | 0 | } |
2469 | 2.05k | MultiAction::~MultiAction() { |
2470 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.MultiAction) |
2471 | 2.05k | SharedDtor(*this); |
2472 | 2.05k | } |
2473 | 2.05k | inline void MultiAction::SharedDtor(MessageLite& self) { |
2474 | 2.05k | MultiAction& this_ = static_cast<MultiAction&>(self); |
2475 | 2.05k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
2476 | 2.05k | ABSL_DCHECK(this_.GetArena() == nullptr); |
2477 | 2.05k | this_._impl_.~Impl_(); |
2478 | 2.05k | } |
2479 | | |
2480 | | inline void* MultiAction::PlacementNew_(const void*, void* mem, |
2481 | 0 | ::google::protobuf::Arena* arena) { |
2482 | 0 | return ::new (mem) MultiAction(arena); |
2483 | 0 | } |
2484 | 0 | constexpr auto MultiAction::InternalNewImpl_() { |
2485 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(MultiAction), |
2486 | 0 | alignof(MultiAction)); |
2487 | 0 | } |
2488 | | PROTOBUF_CONSTINIT |
2489 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2490 | | const ::google::protobuf::internal::ClassDataFull MultiAction::_class_data_ = { |
2491 | | ::google::protobuf::internal::ClassData{ |
2492 | | &_MultiAction_default_instance_._instance, |
2493 | | &_table_.header, |
2494 | | nullptr, // OnDemandRegisterArenaDtor |
2495 | | nullptr, // IsInitialized |
2496 | | &MultiAction::MergeImpl, |
2497 | | ::google::protobuf::Message::GetNewImpl<MultiAction>(), |
2498 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2499 | | &MultiAction::SharedDtor, |
2500 | | ::google::protobuf::Message::GetClearImpl<MultiAction>(), &MultiAction::ByteSizeLong, |
2501 | | &MultiAction::_InternalSerialize, |
2502 | | #endif // PROTOBUF_CUSTOM_VTABLE |
2503 | | PROTOBUF_FIELD_OFFSET(MultiAction, _impl_._cached_size_), |
2504 | | false, |
2505 | | }, |
2506 | | &MultiAction::kDescriptorMethods, |
2507 | | &descriptor_table_curl_5ffuzzer_2eproto, |
2508 | | nullptr, // tracker |
2509 | | }; |
2510 | 9.17k | const ::google::protobuf::internal::ClassData* MultiAction::GetClassData() const { |
2511 | 9.17k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
2512 | 9.17k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
2513 | 9.17k | return _class_data_.base(); |
2514 | 9.17k | } |
2515 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2516 | | const ::_pbi::TcParseTable<1, 2, 0, 0, 2> MultiAction::_table_ = { |
2517 | | { |
2518 | | 0, // no _has_bits_ |
2519 | | 0, // no _extensions_ |
2520 | | 2, 8, // max_field_number, fast_idx_mask |
2521 | | offsetof(decltype(_table_), field_lookup_table), |
2522 | | 4294967292, // skipmap |
2523 | | offsetof(decltype(_table_), field_entries), |
2524 | | 2, // num_field_entries |
2525 | | 0, // num_aux_entries |
2526 | | offsetof(decltype(_table_), field_names), // no aux_entries |
2527 | | _class_data_.base(), |
2528 | | nullptr, // post_loop_handler |
2529 | | ::_pbi::TcParser::GenericFallback, // fallback |
2530 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
2531 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::MultiAction>(), // to_prefetch |
2532 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
2533 | | }, {{ |
2534 | | // .curl.fuzzer.proto.MultiActionKind kind = 2; |
2535 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MultiAction, _impl_.kind_), 63>(), |
2536 | | {16, 63, 0, PROTOBUF_FIELD_OFFSET(MultiAction, _impl_.kind_)}}, |
2537 | | // uint32 transfer_selector = 1; |
2538 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MultiAction, _impl_.transfer_selector_), 63>(), |
2539 | | {8, 63, 0, PROTOBUF_FIELD_OFFSET(MultiAction, _impl_.transfer_selector_)}}, |
2540 | | }}, {{ |
2541 | | 65535, 65535 |
2542 | | }}, {{ |
2543 | | // uint32 transfer_selector = 1; |
2544 | | {PROTOBUF_FIELD_OFFSET(MultiAction, _impl_.transfer_selector_), 0, 0, |
2545 | | (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, |
2546 | | // .curl.fuzzer.proto.MultiActionKind kind = 2; |
2547 | | {PROTOBUF_FIELD_OFFSET(MultiAction, _impl_.kind_), 0, 0, |
2548 | | (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
2549 | | }}, |
2550 | | // no aux_entries |
2551 | | {{ |
2552 | | }}, |
2553 | | }; |
2554 | | |
2555 | 591 | PROTOBUF_NOINLINE void MultiAction::Clear() { |
2556 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.MultiAction) |
2557 | 591 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2558 | 591 | ::uint32_t cached_has_bits = 0; |
2559 | | // Prevent compiler warnings about cached_has_bits being unused |
2560 | 591 | (void) cached_has_bits; |
2561 | | |
2562 | 591 | ::memset(&_impl_.transfer_selector_, 0, static_cast<::size_t>( |
2563 | 591 | reinterpret_cast<char*>(&_impl_.kind_) - |
2564 | 591 | reinterpret_cast<char*>(&_impl_.transfer_selector_)) + sizeof(_impl_.kind_)); |
2565 | 591 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
2566 | 591 | } |
2567 | | |
2568 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2569 | | ::uint8_t* MultiAction::_InternalSerialize( |
2570 | | const MessageLite& base, ::uint8_t* target, |
2571 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
2572 | | const MultiAction& this_ = static_cast<const MultiAction&>(base); |
2573 | | #else // PROTOBUF_CUSTOM_VTABLE |
2574 | | ::uint8_t* MultiAction::_InternalSerialize( |
2575 | | ::uint8_t* target, |
2576 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
2577 | 0 | const MultiAction& this_ = *this; |
2578 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2579 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.MultiAction) |
2580 | 0 | ::uint32_t cached_has_bits = 0; |
2581 | 0 | (void)cached_has_bits; |
2582 | | |
2583 | | // uint32 transfer_selector = 1; |
2584 | 0 | if (this_._internal_transfer_selector() != 0) { |
2585 | 0 | target = stream->EnsureSpace(target); |
2586 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
2587 | 0 | 1, this_._internal_transfer_selector(), target); |
2588 | 0 | } |
2589 | | |
2590 | | // .curl.fuzzer.proto.MultiActionKind kind = 2; |
2591 | 0 | if (this_._internal_kind() != 0) { |
2592 | 0 | target = stream->EnsureSpace(target); |
2593 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
2594 | 0 | 2, this_._internal_kind(), target); |
2595 | 0 | } |
2596 | |
|
2597 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
2598 | 0 | target = |
2599 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
2600 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
2601 | 0 | } |
2602 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.MultiAction) |
2603 | 0 | return target; |
2604 | 0 | } |
2605 | | |
2606 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2607 | | ::size_t MultiAction::ByteSizeLong(const MessageLite& base) { |
2608 | | const MultiAction& this_ = static_cast<const MultiAction&>(base); |
2609 | | #else // PROTOBUF_CUSTOM_VTABLE |
2610 | 0 | ::size_t MultiAction::ByteSizeLong() const { |
2611 | 0 | const MultiAction& this_ = *this; |
2612 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2613 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.MultiAction) |
2614 | 0 | ::size_t total_size = 0; |
2615 | |
|
2616 | 0 | ::uint32_t cached_has_bits = 0; |
2617 | | // Prevent compiler warnings about cached_has_bits being unused |
2618 | 0 | (void)cached_has_bits; |
2619 | |
|
2620 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
2621 | 0 | { |
2622 | | // uint32 transfer_selector = 1; |
2623 | 0 | if (this_._internal_transfer_selector() != 0) { |
2624 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
2625 | 0 | this_._internal_transfer_selector()); |
2626 | 0 | } |
2627 | | // .curl.fuzzer.proto.MultiActionKind kind = 2; |
2628 | 0 | if (this_._internal_kind() != 0) { |
2629 | 0 | total_size += 1 + |
2630 | 0 | ::_pbi::WireFormatLite::EnumSize(this_._internal_kind()); |
2631 | 0 | } |
2632 | 0 | } |
2633 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
2634 | 0 | &this_._impl_._cached_size_); |
2635 | 0 | } |
2636 | | |
2637 | 0 | void MultiAction::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
2638 | 0 | auto* const _this = static_cast<MultiAction*>(&to_msg); |
2639 | 0 | auto& from = static_cast<const MultiAction&>(from_msg); |
2640 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.MultiAction) |
2641 | 0 | ABSL_DCHECK_NE(&from, _this); |
2642 | 0 | ::uint32_t cached_has_bits = 0; |
2643 | 0 | (void) cached_has_bits; |
2644 | |
|
2645 | 0 | if (from._internal_transfer_selector() != 0) { |
2646 | 0 | _this->_impl_.transfer_selector_ = from._impl_.transfer_selector_; |
2647 | 0 | } |
2648 | 0 | if (from._internal_kind() != 0) { |
2649 | 0 | _this->_impl_.kind_ = from._impl_.kind_; |
2650 | 0 | } |
2651 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
2652 | 0 | } |
2653 | | |
2654 | 0 | void MultiAction::CopyFrom(const MultiAction& from) { |
2655 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.MultiAction) |
2656 | 0 | if (&from == this) return; |
2657 | 0 | Clear(); |
2658 | 0 | MergeFrom(from); |
2659 | 0 | } |
2660 | | |
2661 | | |
2662 | 0 | void MultiAction::InternalSwap(MultiAction* PROTOBUF_RESTRICT other) { |
2663 | 0 | using std::swap; |
2664 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
2665 | 0 | ::google::protobuf::internal::memswap< |
2666 | 0 | PROTOBUF_FIELD_OFFSET(MultiAction, _impl_.kind_) |
2667 | 0 | + sizeof(MultiAction::_impl_.kind_) |
2668 | 0 | - PROTOBUF_FIELD_OFFSET(MultiAction, _impl_.transfer_selector_)>( |
2669 | 0 | reinterpret_cast<char*>(&_impl_.transfer_selector_), |
2670 | 0 | reinterpret_cast<char*>(&other->_impl_.transfer_selector_)); |
2671 | 0 | } |
2672 | | |
2673 | 0 | ::google::protobuf::Metadata MultiAction::GetMetadata() const { |
2674 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
2675 | 0 | } |
2676 | | // =================================================================== |
2677 | | |
2678 | | class UploadScript::_Internal { |
2679 | | public: |
2680 | | }; |
2681 | | |
2682 | | UploadScript::UploadScript(::google::protobuf::Arena* arena) |
2683 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2684 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
2685 | | #else // PROTOBUF_CUSTOM_VTABLE |
2686 | 0 | : ::google::protobuf::Message(arena) { |
2687 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2688 | 0 | SharedCtor(arena); |
2689 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.UploadScript) |
2690 | 0 | } |
2691 | | inline PROTOBUF_NDEBUG_INLINE UploadScript::Impl_::Impl_( |
2692 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
2693 | | const Impl_& from, const ::curl::fuzzer::proto::UploadScript& from_msg) |
2694 | 0 | : read_sizes_{visibility, arena, from.read_sizes_}, |
2695 | 0 | _read_sizes_cached_byte_size_{0}, |
2696 | 0 | data_(arena, from.data_), |
2697 | 0 | _cached_size_{0} {} |
2698 | | |
2699 | | UploadScript::UploadScript( |
2700 | | ::google::protobuf::Arena* arena, |
2701 | | const UploadScript& from) |
2702 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2703 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
2704 | | #else // PROTOBUF_CUSTOM_VTABLE |
2705 | 0 | : ::google::protobuf::Message(arena) { |
2706 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2707 | 0 | UploadScript* const _this = this; |
2708 | 0 | (void)_this; |
2709 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
2710 | 0 | from._internal_metadata_); |
2711 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
2712 | 0 | ::memcpy(reinterpret_cast<char *>(&_impl_) + |
2713 | 0 | offsetof(Impl_, terminal_), |
2714 | 0 | reinterpret_cast<const char *>(&from._impl_) + |
2715 | 0 | offsetof(Impl_, terminal_), |
2716 | 0 | offsetof(Impl_, seek_result_) - |
2717 | 0 | offsetof(Impl_, terminal_) + |
2718 | 0 | sizeof(Impl_::seek_result_)); |
2719 | | |
2720 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.UploadScript) |
2721 | 0 | } |
2722 | | inline PROTOBUF_NDEBUG_INLINE UploadScript::Impl_::Impl_( |
2723 | | ::google::protobuf::internal::InternalVisibility visibility, |
2724 | | ::google::protobuf::Arena* arena) |
2725 | 0 | : read_sizes_{visibility, arena}, |
2726 | 0 | _read_sizes_cached_byte_size_{0}, |
2727 | 0 | data_(arena), |
2728 | 0 | _cached_size_{0} {} |
2729 | | |
2730 | 0 | inline void UploadScript::SharedCtor(::_pb::Arena* arena) { |
2731 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
2732 | 0 | ::memset(reinterpret_cast<char *>(&_impl_) + |
2733 | 0 | offsetof(Impl_, terminal_), |
2734 | 0 | 0, |
2735 | 0 | offsetof(Impl_, seek_result_) - |
2736 | 0 | offsetof(Impl_, terminal_) + |
2737 | 0 | sizeof(Impl_::seek_result_)); |
2738 | 0 | } |
2739 | 15.6k | UploadScript::~UploadScript() { |
2740 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.UploadScript) |
2741 | 15.6k | SharedDtor(*this); |
2742 | 15.6k | } |
2743 | 15.6k | inline void UploadScript::SharedDtor(MessageLite& self) { |
2744 | 15.6k | UploadScript& this_ = static_cast<UploadScript&>(self); |
2745 | 15.6k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
2746 | 15.6k | ABSL_DCHECK(this_.GetArena() == nullptr); |
2747 | 15.6k | this_._impl_.data_.Destroy(); |
2748 | 15.6k | this_._impl_.~Impl_(); |
2749 | 15.6k | } |
2750 | | |
2751 | | inline void* UploadScript::PlacementNew_(const void*, void* mem, |
2752 | 0 | ::google::protobuf::Arena* arena) { |
2753 | 0 | return ::new (mem) UploadScript(arena); |
2754 | 0 | } |
2755 | 0 | constexpr auto UploadScript::InternalNewImpl_() { |
2756 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
2757 | 0 | PROTOBUF_FIELD_OFFSET(UploadScript, _impl_.read_sizes_) + |
2758 | 0 | decltype(UploadScript::_impl_.read_sizes_):: |
2759 | 0 | InternalGetArenaOffset( |
2760 | 0 | ::google::protobuf::Message::internal_visibility()), |
2761 | 0 | }); |
2762 | 0 | if (arena_bits.has_value()) { |
2763 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit( |
2764 | 0 | sizeof(UploadScript), alignof(UploadScript), *arena_bits); |
2765 | 0 | } else { |
2766 | 0 | return ::google::protobuf::internal::MessageCreator(&UploadScript::PlacementNew_, |
2767 | 0 | sizeof(UploadScript), |
2768 | 0 | alignof(UploadScript)); |
2769 | 0 | } |
2770 | 0 | } |
2771 | | PROTOBUF_CONSTINIT |
2772 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2773 | | const ::google::protobuf::internal::ClassDataFull UploadScript::_class_data_ = { |
2774 | | ::google::protobuf::internal::ClassData{ |
2775 | | &_UploadScript_default_instance_._instance, |
2776 | | &_table_.header, |
2777 | | nullptr, // OnDemandRegisterArenaDtor |
2778 | | nullptr, // IsInitialized |
2779 | | &UploadScript::MergeImpl, |
2780 | | ::google::protobuf::Message::GetNewImpl<UploadScript>(), |
2781 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2782 | | &UploadScript::SharedDtor, |
2783 | | ::google::protobuf::Message::GetClearImpl<UploadScript>(), &UploadScript::ByteSizeLong, |
2784 | | &UploadScript::_InternalSerialize, |
2785 | | #endif // PROTOBUF_CUSTOM_VTABLE |
2786 | | PROTOBUF_FIELD_OFFSET(UploadScript, _impl_._cached_size_), |
2787 | | false, |
2788 | | }, |
2789 | | &UploadScript::kDescriptorMethods, |
2790 | | &descriptor_table_curl_5ffuzzer_2eproto, |
2791 | | nullptr, // tracker |
2792 | | }; |
2793 | 92.0k | const ::google::protobuf::internal::ClassData* UploadScript::GetClassData() const { |
2794 | 92.0k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
2795 | 92.0k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
2796 | 92.0k | return _class_data_.base(); |
2797 | 92.0k | } |
2798 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2799 | | const ::_pbi::TcParseTable<2, 4, 0, 0, 2> UploadScript::_table_ = { |
2800 | | { |
2801 | | 0, // no _has_bits_ |
2802 | | 0, // no _extensions_ |
2803 | | 4, 24, // max_field_number, fast_idx_mask |
2804 | | offsetof(decltype(_table_), field_lookup_table), |
2805 | | 4294967280, // skipmap |
2806 | | offsetof(decltype(_table_), field_entries), |
2807 | | 4, // num_field_entries |
2808 | | 0, // num_aux_entries |
2809 | | offsetof(decltype(_table_), field_names), // no aux_entries |
2810 | | _class_data_.base(), |
2811 | | nullptr, // post_loop_handler |
2812 | | ::_pbi::TcParser::GenericFallback, // fallback |
2813 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
2814 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::UploadScript>(), // to_prefetch |
2815 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
2816 | | }, {{ |
2817 | | // .curl.fuzzer.proto.UploadSeekResult seek_result = 4; |
2818 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(UploadScript, _impl_.seek_result_), 63>(), |
2819 | | {32, 63, 0, PROTOBUF_FIELD_OFFSET(UploadScript, _impl_.seek_result_)}}, |
2820 | | // bytes data = 1; |
2821 | | {::_pbi::TcParser::FastBS1, |
2822 | | {10, 63, 0, PROTOBUF_FIELD_OFFSET(UploadScript, _impl_.data_)}}, |
2823 | | // repeated uint32 read_sizes = 2; |
2824 | | {::_pbi::TcParser::FastV32P1, |
2825 | | {18, 63, 0, PROTOBUF_FIELD_OFFSET(UploadScript, _impl_.read_sizes_)}}, |
2826 | | // .curl.fuzzer.proto.UploadTerminal terminal = 3; |
2827 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(UploadScript, _impl_.terminal_), 63>(), |
2828 | | {24, 63, 0, PROTOBUF_FIELD_OFFSET(UploadScript, _impl_.terminal_)}}, |
2829 | | }}, {{ |
2830 | | 65535, 65535 |
2831 | | }}, {{ |
2832 | | // bytes data = 1; |
2833 | | {PROTOBUF_FIELD_OFFSET(UploadScript, _impl_.data_), 0, 0, |
2834 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
2835 | | // repeated uint32 read_sizes = 2; |
2836 | | {PROTOBUF_FIELD_OFFSET(UploadScript, _impl_.read_sizes_), 0, 0, |
2837 | | (0 | ::_fl::kFcRepeated | ::_fl::kPackedUInt32)}, |
2838 | | // .curl.fuzzer.proto.UploadTerminal terminal = 3; |
2839 | | {PROTOBUF_FIELD_OFFSET(UploadScript, _impl_.terminal_), 0, 0, |
2840 | | (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
2841 | | // .curl.fuzzer.proto.UploadSeekResult seek_result = 4; |
2842 | | {PROTOBUF_FIELD_OFFSET(UploadScript, _impl_.seek_result_), 0, 0, |
2843 | | (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
2844 | | }}, |
2845 | | // no aux_entries |
2846 | | {{ |
2847 | | }}, |
2848 | | }; |
2849 | | |
2850 | 332 | PROTOBUF_NOINLINE void UploadScript::Clear() { |
2851 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.UploadScript) |
2852 | 332 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2853 | 332 | ::uint32_t cached_has_bits = 0; |
2854 | | // Prevent compiler warnings about cached_has_bits being unused |
2855 | 332 | (void) cached_has_bits; |
2856 | | |
2857 | 332 | _impl_.read_sizes_.Clear(); |
2858 | 332 | _impl_.data_.ClearToEmpty(); |
2859 | 332 | ::memset(&_impl_.terminal_, 0, static_cast<::size_t>( |
2860 | 332 | reinterpret_cast<char*>(&_impl_.seek_result_) - |
2861 | 332 | reinterpret_cast<char*>(&_impl_.terminal_)) + sizeof(_impl_.seek_result_)); |
2862 | 332 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
2863 | 332 | } |
2864 | | |
2865 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2866 | | ::uint8_t* UploadScript::_InternalSerialize( |
2867 | | const MessageLite& base, ::uint8_t* target, |
2868 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
2869 | | const UploadScript& this_ = static_cast<const UploadScript&>(base); |
2870 | | #else // PROTOBUF_CUSTOM_VTABLE |
2871 | | ::uint8_t* UploadScript::_InternalSerialize( |
2872 | | ::uint8_t* target, |
2873 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
2874 | 0 | const UploadScript& this_ = *this; |
2875 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2876 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.UploadScript) |
2877 | 0 | ::uint32_t cached_has_bits = 0; |
2878 | 0 | (void)cached_has_bits; |
2879 | | |
2880 | | // bytes data = 1; |
2881 | 0 | if (!this_._internal_data().empty()) { |
2882 | 0 | const std::string& _s = this_._internal_data(); |
2883 | 0 | target = stream->WriteBytesMaybeAliased(1, _s, target); |
2884 | 0 | } |
2885 | | |
2886 | | // repeated uint32 read_sizes = 2; |
2887 | 0 | { |
2888 | 0 | int byte_size = this_._impl_._read_sizes_cached_byte_size_.Get(); |
2889 | 0 | if (byte_size > 0) { |
2890 | 0 | target = stream->WriteUInt32Packed( |
2891 | 0 | 2, this_._internal_read_sizes(), byte_size, target); |
2892 | 0 | } |
2893 | 0 | } |
2894 | | |
2895 | | // .curl.fuzzer.proto.UploadTerminal terminal = 3; |
2896 | 0 | if (this_._internal_terminal() != 0) { |
2897 | 0 | target = stream->EnsureSpace(target); |
2898 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
2899 | 0 | 3, this_._internal_terminal(), target); |
2900 | 0 | } |
2901 | | |
2902 | | // .curl.fuzzer.proto.UploadSeekResult seek_result = 4; |
2903 | 0 | if (this_._internal_seek_result() != 0) { |
2904 | 0 | target = stream->EnsureSpace(target); |
2905 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
2906 | 0 | 4, this_._internal_seek_result(), target); |
2907 | 0 | } |
2908 | |
|
2909 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
2910 | 0 | target = |
2911 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
2912 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
2913 | 0 | } |
2914 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.UploadScript) |
2915 | 0 | return target; |
2916 | 0 | } |
2917 | | |
2918 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2919 | | ::size_t UploadScript::ByteSizeLong(const MessageLite& base) { |
2920 | | const UploadScript& this_ = static_cast<const UploadScript&>(base); |
2921 | | #else // PROTOBUF_CUSTOM_VTABLE |
2922 | 0 | ::size_t UploadScript::ByteSizeLong() const { |
2923 | 0 | const UploadScript& this_ = *this; |
2924 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2925 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.UploadScript) |
2926 | 0 | ::size_t total_size = 0; |
2927 | |
|
2928 | 0 | ::uint32_t cached_has_bits = 0; |
2929 | | // Prevent compiler warnings about cached_has_bits being unused |
2930 | 0 | (void)cached_has_bits; |
2931 | |
|
2932 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
2933 | 0 | { |
2934 | | // repeated uint32 read_sizes = 2; |
2935 | 0 | { |
2936 | 0 | total_size += |
2937 | 0 | ::_pbi::WireFormatLite::UInt32SizeWithPackedTagSize( |
2938 | 0 | this_._internal_read_sizes(), 1, |
2939 | 0 | this_._impl_._read_sizes_cached_byte_size_); |
2940 | 0 | } |
2941 | 0 | } |
2942 | 0 | { |
2943 | | // bytes data = 1; |
2944 | 0 | if (!this_._internal_data().empty()) { |
2945 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
2946 | 0 | this_._internal_data()); |
2947 | 0 | } |
2948 | | // .curl.fuzzer.proto.UploadTerminal terminal = 3; |
2949 | 0 | if (this_._internal_terminal() != 0) { |
2950 | 0 | total_size += 1 + |
2951 | 0 | ::_pbi::WireFormatLite::EnumSize(this_._internal_terminal()); |
2952 | 0 | } |
2953 | | // .curl.fuzzer.proto.UploadSeekResult seek_result = 4; |
2954 | 0 | if (this_._internal_seek_result() != 0) { |
2955 | 0 | total_size += 1 + |
2956 | 0 | ::_pbi::WireFormatLite::EnumSize(this_._internal_seek_result()); |
2957 | 0 | } |
2958 | 0 | } |
2959 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
2960 | 0 | &this_._impl_._cached_size_); |
2961 | 0 | } |
2962 | | |
2963 | 0 | void UploadScript::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
2964 | 0 | auto* const _this = static_cast<UploadScript*>(&to_msg); |
2965 | 0 | auto& from = static_cast<const UploadScript&>(from_msg); |
2966 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.UploadScript) |
2967 | 0 | ABSL_DCHECK_NE(&from, _this); |
2968 | 0 | ::uint32_t cached_has_bits = 0; |
2969 | 0 | (void) cached_has_bits; |
2970 | |
|
2971 | 0 | _this->_internal_mutable_read_sizes()->MergeFrom(from._internal_read_sizes()); |
2972 | 0 | if (!from._internal_data().empty()) { |
2973 | 0 | _this->_internal_set_data(from._internal_data()); |
2974 | 0 | } |
2975 | 0 | if (from._internal_terminal() != 0) { |
2976 | 0 | _this->_impl_.terminal_ = from._impl_.terminal_; |
2977 | 0 | } |
2978 | 0 | if (from._internal_seek_result() != 0) { |
2979 | 0 | _this->_impl_.seek_result_ = from._impl_.seek_result_; |
2980 | 0 | } |
2981 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
2982 | 0 | } |
2983 | | |
2984 | 0 | void UploadScript::CopyFrom(const UploadScript& from) { |
2985 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.UploadScript) |
2986 | 0 | if (&from == this) return; |
2987 | 0 | Clear(); |
2988 | 0 | MergeFrom(from); |
2989 | 0 | } |
2990 | | |
2991 | | |
2992 | 0 | void UploadScript::InternalSwap(UploadScript* PROTOBUF_RESTRICT other) { |
2993 | 0 | using std::swap; |
2994 | 0 | auto* arena = GetArena(); |
2995 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
2996 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
2997 | 0 | _impl_.read_sizes_.InternalSwap(&other->_impl_.read_sizes_); |
2998 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena); |
2999 | 0 | ::google::protobuf::internal::memswap< |
3000 | 0 | PROTOBUF_FIELD_OFFSET(UploadScript, _impl_.seek_result_) |
3001 | 0 | + sizeof(UploadScript::_impl_.seek_result_) |
3002 | 0 | - PROTOBUF_FIELD_OFFSET(UploadScript, _impl_.terminal_)>( |
3003 | 0 | reinterpret_cast<char*>(&_impl_.terminal_), |
3004 | 0 | reinterpret_cast<char*>(&other->_impl_.terminal_)); |
3005 | 0 | } |
3006 | | |
3007 | 0 | ::google::protobuf::Metadata UploadScript::GetMetadata() const { |
3008 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
3009 | 0 | } |
3010 | | // =================================================================== |
3011 | | |
3012 | | class MimePost::_Internal { |
3013 | | public: |
3014 | | }; |
3015 | | |
3016 | | MimePost::MimePost(::google::protobuf::Arena* arena) |
3017 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3018 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
3019 | | #else // PROTOBUF_CUSTOM_VTABLE |
3020 | 0 | : ::google::protobuf::Message(arena) { |
3021 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3022 | 0 | SharedCtor(arena); |
3023 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.MimePost) |
3024 | 0 | } |
3025 | | inline PROTOBUF_NDEBUG_INLINE MimePost::Impl_::Impl_( |
3026 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
3027 | | const Impl_& from, const ::curl::fuzzer::proto::MimePost& from_msg) |
3028 | 0 | : parts_{visibility, arena, from.parts_}, |
3029 | 0 | _cached_size_{0} {} |
3030 | | |
3031 | | MimePost::MimePost( |
3032 | | ::google::protobuf::Arena* arena, |
3033 | | const MimePost& from) |
3034 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3035 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
3036 | | #else // PROTOBUF_CUSTOM_VTABLE |
3037 | 0 | : ::google::protobuf::Message(arena) { |
3038 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3039 | 0 | MimePost* const _this = this; |
3040 | 0 | (void)_this; |
3041 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
3042 | 0 | from._internal_metadata_); |
3043 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
3044 | | |
3045 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.MimePost) |
3046 | 0 | } |
3047 | | inline PROTOBUF_NDEBUG_INLINE MimePost::Impl_::Impl_( |
3048 | | ::google::protobuf::internal::InternalVisibility visibility, |
3049 | | ::google::protobuf::Arena* arena) |
3050 | 0 | : parts_{visibility, arena}, |
3051 | 0 | _cached_size_{0} {} |
3052 | | |
3053 | 0 | inline void MimePost::SharedCtor(::_pb::Arena* arena) { |
3054 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
3055 | 0 | } |
3056 | 20.6k | MimePost::~MimePost() { |
3057 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.MimePost) |
3058 | 20.6k | SharedDtor(*this); |
3059 | 20.6k | } |
3060 | 20.6k | inline void MimePost::SharedDtor(MessageLite& self) { |
3061 | 20.6k | MimePost& this_ = static_cast<MimePost&>(self); |
3062 | 20.6k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
3063 | 20.6k | ABSL_DCHECK(this_.GetArena() == nullptr); |
3064 | 20.6k | this_._impl_.~Impl_(); |
3065 | 20.6k | } |
3066 | | |
3067 | | inline void* MimePost::PlacementNew_(const void*, void* mem, |
3068 | 0 | ::google::protobuf::Arena* arena) { |
3069 | 0 | return ::new (mem) MimePost(arena); |
3070 | 0 | } |
3071 | 0 | constexpr auto MimePost::InternalNewImpl_() { |
3072 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
3073 | 0 | PROTOBUF_FIELD_OFFSET(MimePost, _impl_.parts_) + |
3074 | 0 | decltype(MimePost::_impl_.parts_):: |
3075 | 0 | InternalGetArenaOffset( |
3076 | 0 | ::google::protobuf::Message::internal_visibility()), |
3077 | 0 | }); |
3078 | 0 | if (arena_bits.has_value()) { |
3079 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit( |
3080 | 0 | sizeof(MimePost), alignof(MimePost), *arena_bits); |
3081 | 0 | } else { |
3082 | 0 | return ::google::protobuf::internal::MessageCreator(&MimePost::PlacementNew_, |
3083 | 0 | sizeof(MimePost), |
3084 | 0 | alignof(MimePost)); |
3085 | 0 | } |
3086 | 0 | } |
3087 | | PROTOBUF_CONSTINIT |
3088 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
3089 | | const ::google::protobuf::internal::ClassDataFull MimePost::_class_data_ = { |
3090 | | ::google::protobuf::internal::ClassData{ |
3091 | | &_MimePost_default_instance_._instance, |
3092 | | &_table_.header, |
3093 | | nullptr, // OnDemandRegisterArenaDtor |
3094 | | nullptr, // IsInitialized |
3095 | | &MimePost::MergeImpl, |
3096 | | ::google::protobuf::Message::GetNewImpl<MimePost>(), |
3097 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3098 | | &MimePost::SharedDtor, |
3099 | | ::google::protobuf::Message::GetClearImpl<MimePost>(), &MimePost::ByteSizeLong, |
3100 | | &MimePost::_InternalSerialize, |
3101 | | #endif // PROTOBUF_CUSTOM_VTABLE |
3102 | | PROTOBUF_FIELD_OFFSET(MimePost, _impl_._cached_size_), |
3103 | | false, |
3104 | | }, |
3105 | | &MimePost::kDescriptorMethods, |
3106 | | &descriptor_table_curl_5ffuzzer_2eproto, |
3107 | | nullptr, // tracker |
3108 | | }; |
3109 | 120k | const ::google::protobuf::internal::ClassData* MimePost::GetClassData() const { |
3110 | 120k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
3111 | 120k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
3112 | 120k | return _class_data_.base(); |
3113 | 120k | } |
3114 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
3115 | | const ::_pbi::TcParseTable<0, 1, 1, 0, 2> MimePost::_table_ = { |
3116 | | { |
3117 | | 0, // no _has_bits_ |
3118 | | 0, // no _extensions_ |
3119 | | 1, 0, // max_field_number, fast_idx_mask |
3120 | | offsetof(decltype(_table_), field_lookup_table), |
3121 | | 4294967294, // skipmap |
3122 | | offsetof(decltype(_table_), field_entries), |
3123 | | 1, // num_field_entries |
3124 | | 1, // num_aux_entries |
3125 | | offsetof(decltype(_table_), aux_entries), |
3126 | | _class_data_.base(), |
3127 | | nullptr, // post_loop_handler |
3128 | | ::_pbi::TcParser::GenericFallback, // fallback |
3129 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
3130 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::MimePost>(), // to_prefetch |
3131 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
3132 | | }, {{ |
3133 | | // repeated .curl.fuzzer.proto.MimePart parts = 1; |
3134 | | {::_pbi::TcParser::FastMtR1, |
3135 | | {10, 63, 0, PROTOBUF_FIELD_OFFSET(MimePost, _impl_.parts_)}}, |
3136 | | }}, {{ |
3137 | | 65535, 65535 |
3138 | | }}, {{ |
3139 | | // repeated .curl.fuzzer.proto.MimePart parts = 1; |
3140 | | {PROTOBUF_FIELD_OFFSET(MimePost, _impl_.parts_), 0, 0, |
3141 | | (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
3142 | | }}, {{ |
3143 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::MimePart>()}, |
3144 | | }}, {{ |
3145 | | }}, |
3146 | | }; |
3147 | | |
3148 | 808 | PROTOBUF_NOINLINE void MimePost::Clear() { |
3149 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.MimePost) |
3150 | 808 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3151 | 808 | ::uint32_t cached_has_bits = 0; |
3152 | | // Prevent compiler warnings about cached_has_bits being unused |
3153 | 808 | (void) cached_has_bits; |
3154 | | |
3155 | 808 | _impl_.parts_.Clear(); |
3156 | 808 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
3157 | 808 | } |
3158 | | |
3159 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3160 | | ::uint8_t* MimePost::_InternalSerialize( |
3161 | | const MessageLite& base, ::uint8_t* target, |
3162 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
3163 | | const MimePost& this_ = static_cast<const MimePost&>(base); |
3164 | | #else // PROTOBUF_CUSTOM_VTABLE |
3165 | | ::uint8_t* MimePost::_InternalSerialize( |
3166 | | ::uint8_t* target, |
3167 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
3168 | 0 | const MimePost& this_ = *this; |
3169 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3170 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.MimePost) |
3171 | 0 | ::uint32_t cached_has_bits = 0; |
3172 | 0 | (void)cached_has_bits; |
3173 | | |
3174 | | // repeated .curl.fuzzer.proto.MimePart parts = 1; |
3175 | 0 | for (unsigned i = 0, n = static_cast<unsigned>( |
3176 | 0 | this_._internal_parts_size()); |
3177 | 0 | i < n; i++) { |
3178 | 0 | const auto& repfield = this_._internal_parts().Get(i); |
3179 | 0 | target = |
3180 | 0 | ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
3181 | 0 | 1, repfield, repfield.GetCachedSize(), |
3182 | 0 | target, stream); |
3183 | 0 | } |
3184 | |
|
3185 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
3186 | 0 | target = |
3187 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
3188 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
3189 | 0 | } |
3190 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.MimePost) |
3191 | 0 | return target; |
3192 | 0 | } |
3193 | | |
3194 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3195 | | ::size_t MimePost::ByteSizeLong(const MessageLite& base) { |
3196 | | const MimePost& this_ = static_cast<const MimePost&>(base); |
3197 | | #else // PROTOBUF_CUSTOM_VTABLE |
3198 | 0 | ::size_t MimePost::ByteSizeLong() const { |
3199 | 0 | const MimePost& this_ = *this; |
3200 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3201 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.MimePost) |
3202 | 0 | ::size_t total_size = 0; |
3203 | |
|
3204 | 0 | ::uint32_t cached_has_bits = 0; |
3205 | | // Prevent compiler warnings about cached_has_bits being unused |
3206 | 0 | (void)cached_has_bits; |
3207 | |
|
3208 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
3209 | 0 | { |
3210 | | // repeated .curl.fuzzer.proto.MimePart parts = 1; |
3211 | 0 | { |
3212 | 0 | total_size += 1UL * this_._internal_parts_size(); |
3213 | 0 | for (const auto& msg : this_._internal_parts()) { |
3214 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); |
3215 | 0 | } |
3216 | 0 | } |
3217 | 0 | } |
3218 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
3219 | 0 | &this_._impl_._cached_size_); |
3220 | 0 | } |
3221 | | |
3222 | 0 | void MimePost::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
3223 | 0 | auto* const _this = static_cast<MimePost*>(&to_msg); |
3224 | 0 | auto& from = static_cast<const MimePost&>(from_msg); |
3225 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.MimePost) |
3226 | 0 | ABSL_DCHECK_NE(&from, _this); |
3227 | 0 | ::uint32_t cached_has_bits = 0; |
3228 | 0 | (void) cached_has_bits; |
3229 | |
|
3230 | 0 | _this->_internal_mutable_parts()->MergeFrom( |
3231 | 0 | from._internal_parts()); |
3232 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
3233 | 0 | } |
3234 | | |
3235 | 0 | void MimePost::CopyFrom(const MimePost& from) { |
3236 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.MimePost) |
3237 | 0 | if (&from == this) return; |
3238 | 0 | Clear(); |
3239 | 0 | MergeFrom(from); |
3240 | 0 | } |
3241 | | |
3242 | | |
3243 | 0 | void MimePost::InternalSwap(MimePost* PROTOBUF_RESTRICT other) { |
3244 | 0 | using std::swap; |
3245 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
3246 | 0 | _impl_.parts_.InternalSwap(&other->_impl_.parts_); |
3247 | 0 | } |
3248 | | |
3249 | 0 | ::google::protobuf::Metadata MimePost::GetMetadata() const { |
3250 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
3251 | 0 | } |
3252 | | // =================================================================== |
3253 | | |
3254 | | class MimePart::_Internal { |
3255 | | public: |
3256 | | static constexpr ::int32_t kOneofCaseOffset = |
3257 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimePart, _impl_._oneof_case_); |
3258 | | }; |
3259 | | |
3260 | 0 | void MimePart::set_allocated_subparts(::curl::fuzzer::proto::MimeSubparts* subparts) { |
3261 | 0 | ::google::protobuf::Arena* message_arena = GetArena(); |
3262 | 0 | clear_content(); |
3263 | 0 | if (subparts) { |
3264 | 0 | ::google::protobuf::Arena* submessage_arena = subparts->GetArena(); |
3265 | 0 | if (message_arena != submessage_arena) { |
3266 | 0 | subparts = ::google::protobuf::internal::GetOwnedMessage(message_arena, subparts, submessage_arena); |
3267 | 0 | } |
3268 | 0 | set_has_subparts(); |
3269 | 0 | _impl_.content_.subparts_ = subparts; |
3270 | 0 | } |
3271 | | // @@protoc_insertion_point(field_set_allocated:curl.fuzzer.proto.MimePart.subparts) |
3272 | 0 | } |
3273 | | MimePart::MimePart(::google::protobuf::Arena* arena) |
3274 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3275 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
3276 | | #else // PROTOBUF_CUSTOM_VTABLE |
3277 | 0 | : ::google::protobuf::Message(arena) { |
3278 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3279 | 0 | SharedCtor(arena); |
3280 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.MimePart) |
3281 | 0 | } |
3282 | | inline PROTOBUF_NDEBUG_INLINE MimePart::Impl_::Impl_( |
3283 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
3284 | | const Impl_& from, const ::curl::fuzzer::proto::MimePart& from_msg) |
3285 | 0 | : headers_{visibility, arena, from.headers_}, |
3286 | 0 | name_(arena, from.name_), |
3287 | 0 | filename_(arena, from.filename_), |
3288 | 0 | content_type_(arena, from.content_type_), |
3289 | 0 | content_{}, |
3290 | 0 | _cached_size_{0}, |
3291 | 0 | _oneof_case_{from._oneof_case_[0]} {} |
3292 | | |
3293 | | MimePart::MimePart( |
3294 | | ::google::protobuf::Arena* arena, |
3295 | | const MimePart& from) |
3296 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3297 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
3298 | | #else // PROTOBUF_CUSTOM_VTABLE |
3299 | 0 | : ::google::protobuf::Message(arena) { |
3300 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3301 | 0 | MimePart* const _this = this; |
3302 | 0 | (void)_this; |
3303 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
3304 | 0 | from._internal_metadata_); |
3305 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
3306 | 0 | _impl_.encoder_ = from._impl_.encoder_; |
3307 | 0 | switch (content_case()) { |
3308 | 0 | case CONTENT_NOT_SET: |
3309 | 0 | break; |
3310 | 0 | case kData: |
3311 | 0 | new (&_impl_.content_.data_) decltype(_impl_.content_.data_){arena, from._impl_.content_.data_}; |
3312 | 0 | break; |
3313 | 0 | case kSubparts: |
3314 | 0 | _impl_.content_.subparts_ = ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::MimeSubparts>(arena, *from._impl_.content_.subparts_); |
3315 | 0 | break; |
3316 | 0 | } |
3317 | | |
3318 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.MimePart) |
3319 | 0 | } |
3320 | | inline PROTOBUF_NDEBUG_INLINE MimePart::Impl_::Impl_( |
3321 | | ::google::protobuf::internal::InternalVisibility visibility, |
3322 | | ::google::protobuf::Arena* arena) |
3323 | 0 | : headers_{visibility, arena}, |
3324 | 0 | name_(arena), |
3325 | 0 | filename_(arena), |
3326 | 0 | content_type_(arena), |
3327 | 0 | content_{}, |
3328 | 0 | _cached_size_{0}, |
3329 | 0 | _oneof_case_{} {} |
3330 | | |
3331 | 0 | inline void MimePart::SharedCtor(::_pb::Arena* arena) { |
3332 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
3333 | 0 | _impl_.encoder_ = {}; |
3334 | 0 | } |
3335 | 50.4k | MimePart::~MimePart() { |
3336 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.MimePart) |
3337 | 50.4k | SharedDtor(*this); |
3338 | 50.4k | } |
3339 | 50.4k | inline void MimePart::SharedDtor(MessageLite& self) { |
3340 | 50.4k | MimePart& this_ = static_cast<MimePart&>(self); |
3341 | 50.4k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
3342 | 50.4k | ABSL_DCHECK(this_.GetArena() == nullptr); |
3343 | 50.4k | this_._impl_.name_.Destroy(); |
3344 | 50.4k | this_._impl_.filename_.Destroy(); |
3345 | 50.4k | this_._impl_.content_type_.Destroy(); |
3346 | 50.4k | if (this_.has_content()) { |
3347 | 25.6k | this_.clear_content(); |
3348 | 25.6k | } |
3349 | 50.4k | this_._impl_.~Impl_(); |
3350 | 50.4k | } |
3351 | | |
3352 | 38.4k | void MimePart::clear_content() { |
3353 | | // @@protoc_insertion_point(one_of_clear_start:curl.fuzzer.proto.MimePart) |
3354 | 38.4k | ::google::protobuf::internal::TSanWrite(&_impl_); |
3355 | 38.4k | switch (content_case()) { |
3356 | 7.55k | case kData: { |
3357 | 7.55k | _impl_.content_.data_.Destroy(); |
3358 | 7.55k | break; |
3359 | 0 | } |
3360 | 23.5k | case kSubparts: { |
3361 | 23.5k | if (GetArena() == nullptr) { |
3362 | 23.5k | delete _impl_.content_.subparts_; |
3363 | 23.5k | } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { |
3364 | 0 | ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.content_.subparts_); |
3365 | 0 | } |
3366 | 23.5k | break; |
3367 | 0 | } |
3368 | 7.29k | case CONTENT_NOT_SET: { |
3369 | 7.29k | break; |
3370 | 0 | } |
3371 | 38.4k | } |
3372 | 38.4k | _impl_._oneof_case_[0] = CONTENT_NOT_SET; |
3373 | 38.4k | } |
3374 | | |
3375 | | |
3376 | | inline void* MimePart::PlacementNew_(const void*, void* mem, |
3377 | 0 | ::google::protobuf::Arena* arena) { |
3378 | 0 | return ::new (mem) MimePart(arena); |
3379 | 0 | } |
3380 | 0 | constexpr auto MimePart::InternalNewImpl_() { |
3381 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
3382 | 0 | PROTOBUF_FIELD_OFFSET(MimePart, _impl_.headers_) + |
3383 | 0 | decltype(MimePart::_impl_.headers_):: |
3384 | 0 | InternalGetArenaOffset( |
3385 | 0 | ::google::protobuf::Message::internal_visibility()), |
3386 | 0 | }); |
3387 | 0 | if (arena_bits.has_value()) { |
3388 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit( |
3389 | 0 | sizeof(MimePart), alignof(MimePart), *arena_bits); |
3390 | 0 | } else { |
3391 | 0 | return ::google::protobuf::internal::MessageCreator(&MimePart::PlacementNew_, |
3392 | 0 | sizeof(MimePart), |
3393 | 0 | alignof(MimePart)); |
3394 | 0 | } |
3395 | 0 | } |
3396 | | PROTOBUF_CONSTINIT |
3397 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
3398 | | const ::google::protobuf::internal::ClassDataFull MimePart::_class_data_ = { |
3399 | | ::google::protobuf::internal::ClassData{ |
3400 | | &_MimePart_default_instance_._instance, |
3401 | | &_table_.header, |
3402 | | nullptr, // OnDemandRegisterArenaDtor |
3403 | | nullptr, // IsInitialized |
3404 | | &MimePart::MergeImpl, |
3405 | | ::google::protobuf::Message::GetNewImpl<MimePart>(), |
3406 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3407 | | &MimePart::SharedDtor, |
3408 | | ::google::protobuf::Message::GetClearImpl<MimePart>(), &MimePart::ByteSizeLong, |
3409 | | &MimePart::_InternalSerialize, |
3410 | | #endif // PROTOBUF_CUSTOM_VTABLE |
3411 | | PROTOBUF_FIELD_OFFSET(MimePart, _impl_._cached_size_), |
3412 | | false, |
3413 | | }, |
3414 | | &MimePart::kDescriptorMethods, |
3415 | | &descriptor_table_curl_5ffuzzer_2eproto, |
3416 | | nullptr, // tracker |
3417 | | }; |
3418 | 247k | const ::google::protobuf::internal::ClassData* MimePart::GetClassData() const { |
3419 | 247k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
3420 | 247k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
3421 | 247k | return _class_data_.base(); |
3422 | 247k | } |
3423 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
3424 | | const ::_pbi::TcParseTable<3, 7, 1, 0, 2> MimePart::_table_ = { |
3425 | | { |
3426 | | 0, // no _has_bits_ |
3427 | | 0, // no _extensions_ |
3428 | | 7, 56, // max_field_number, fast_idx_mask |
3429 | | offsetof(decltype(_table_), field_lookup_table), |
3430 | | 4294967168, // skipmap |
3431 | | offsetof(decltype(_table_), field_entries), |
3432 | | 7, // num_field_entries |
3433 | | 1, // num_aux_entries |
3434 | | offsetof(decltype(_table_), aux_entries), |
3435 | | _class_data_.base(), |
3436 | | nullptr, // post_loop_handler |
3437 | | ::_pbi::TcParser::GenericFallback, // fallback |
3438 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
3439 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::MimePart>(), // to_prefetch |
3440 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
3441 | | }, {{ |
3442 | | {::_pbi::TcParser::MiniParse, {}}, |
3443 | | // bytes name = 1; |
3444 | | {::_pbi::TcParser::FastBS1, |
3445 | | {10, 63, 0, PROTOBUF_FIELD_OFFSET(MimePart, _impl_.name_)}}, |
3446 | | {::_pbi::TcParser::MiniParse, {}}, |
3447 | | // bytes filename = 3; |
3448 | | {::_pbi::TcParser::FastBS1, |
3449 | | {26, 63, 0, PROTOBUF_FIELD_OFFSET(MimePart, _impl_.filename_)}}, |
3450 | | // bytes content_type = 4; |
3451 | | {::_pbi::TcParser::FastBS1, |
3452 | | {34, 63, 0, PROTOBUF_FIELD_OFFSET(MimePart, _impl_.content_type_)}}, |
3453 | | // .curl.fuzzer.proto.MimeEncoder encoder = 5; |
3454 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MimePart, _impl_.encoder_), 63>(), |
3455 | | {40, 63, 0, PROTOBUF_FIELD_OFFSET(MimePart, _impl_.encoder_)}}, |
3456 | | // repeated bytes headers = 6; |
3457 | | {::_pbi::TcParser::FastBR1, |
3458 | | {50, 63, 0, PROTOBUF_FIELD_OFFSET(MimePart, _impl_.headers_)}}, |
3459 | | {::_pbi::TcParser::MiniParse, {}}, |
3460 | | }}, {{ |
3461 | | 65535, 65535 |
3462 | | }}, {{ |
3463 | | // bytes name = 1; |
3464 | | {PROTOBUF_FIELD_OFFSET(MimePart, _impl_.name_), 0, 0, |
3465 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
3466 | | // bytes data = 2; |
3467 | | {PROTOBUF_FIELD_OFFSET(MimePart, _impl_.content_.data_), _Internal::kOneofCaseOffset + 0, 0, |
3468 | | (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)}, |
3469 | | // bytes filename = 3; |
3470 | | {PROTOBUF_FIELD_OFFSET(MimePart, _impl_.filename_), 0, 0, |
3471 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
3472 | | // bytes content_type = 4; |
3473 | | {PROTOBUF_FIELD_OFFSET(MimePart, _impl_.content_type_), 0, 0, |
3474 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
3475 | | // .curl.fuzzer.proto.MimeEncoder encoder = 5; |
3476 | | {PROTOBUF_FIELD_OFFSET(MimePart, _impl_.encoder_), 0, 0, |
3477 | | (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
3478 | | // repeated bytes headers = 6; |
3479 | | {PROTOBUF_FIELD_OFFSET(MimePart, _impl_.headers_), 0, 0, |
3480 | | (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)}, |
3481 | | // .curl.fuzzer.proto.MimeSubparts subparts = 7; |
3482 | | {PROTOBUF_FIELD_OFFSET(MimePart, _impl_.content_.subparts_), _Internal::kOneofCaseOffset + 0, 0, |
3483 | | (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, |
3484 | | }}, {{ |
3485 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::MimeSubparts>()}, |
3486 | | }}, {{ |
3487 | | }}, |
3488 | | }; |
3489 | | |
3490 | 12.7k | PROTOBUF_NOINLINE void MimePart::Clear() { |
3491 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.MimePart) |
3492 | 12.7k | ::google::protobuf::internal::TSanWrite(&_impl_); |
3493 | 12.7k | ::uint32_t cached_has_bits = 0; |
3494 | | // Prevent compiler warnings about cached_has_bits being unused |
3495 | 12.7k | (void) cached_has_bits; |
3496 | | |
3497 | 12.7k | _impl_.headers_.Clear(); |
3498 | 12.7k | _impl_.name_.ClearToEmpty(); |
3499 | 12.7k | _impl_.filename_.ClearToEmpty(); |
3500 | 12.7k | _impl_.content_type_.ClearToEmpty(); |
3501 | 12.7k | _impl_.encoder_ = 0; |
3502 | 12.7k | clear_content(); |
3503 | 12.7k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
3504 | 12.7k | } |
3505 | | |
3506 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3507 | | ::uint8_t* MimePart::_InternalSerialize( |
3508 | | const MessageLite& base, ::uint8_t* target, |
3509 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
3510 | | const MimePart& this_ = static_cast<const MimePart&>(base); |
3511 | | #else // PROTOBUF_CUSTOM_VTABLE |
3512 | | ::uint8_t* MimePart::_InternalSerialize( |
3513 | | ::uint8_t* target, |
3514 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
3515 | 0 | const MimePart& this_ = *this; |
3516 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3517 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.MimePart) |
3518 | 0 | ::uint32_t cached_has_bits = 0; |
3519 | 0 | (void)cached_has_bits; |
3520 | | |
3521 | | // bytes name = 1; |
3522 | 0 | if (!this_._internal_name().empty()) { |
3523 | 0 | const std::string& _s = this_._internal_name(); |
3524 | 0 | target = stream->WriteBytesMaybeAliased(1, _s, target); |
3525 | 0 | } |
3526 | | |
3527 | | // bytes data = 2; |
3528 | 0 | if (this_.content_case() == kData) { |
3529 | 0 | const std::string& _s = this_._internal_data(); |
3530 | 0 | target = stream->WriteBytesMaybeAliased(2, _s, target); |
3531 | 0 | } |
3532 | | |
3533 | | // bytes filename = 3; |
3534 | 0 | if (!this_._internal_filename().empty()) { |
3535 | 0 | const std::string& _s = this_._internal_filename(); |
3536 | 0 | target = stream->WriteBytesMaybeAliased(3, _s, target); |
3537 | 0 | } |
3538 | | |
3539 | | // bytes content_type = 4; |
3540 | 0 | if (!this_._internal_content_type().empty()) { |
3541 | 0 | const std::string& _s = this_._internal_content_type(); |
3542 | 0 | target = stream->WriteBytesMaybeAliased(4, _s, target); |
3543 | 0 | } |
3544 | | |
3545 | | // .curl.fuzzer.proto.MimeEncoder encoder = 5; |
3546 | 0 | if (this_._internal_encoder() != 0) { |
3547 | 0 | target = stream->EnsureSpace(target); |
3548 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
3549 | 0 | 5, this_._internal_encoder(), target); |
3550 | 0 | } |
3551 | | |
3552 | | // repeated bytes headers = 6; |
3553 | 0 | for (int i = 0, n = this_._internal_headers_size(); i < n; ++i) { |
3554 | 0 | const auto& s = this_._internal_headers().Get(i); |
3555 | 0 | target = stream->WriteBytes(6, s, target); |
3556 | 0 | } |
3557 | | |
3558 | | // .curl.fuzzer.proto.MimeSubparts subparts = 7; |
3559 | 0 | if (this_.content_case() == kSubparts) { |
3560 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
3561 | 0 | 7, *this_._impl_.content_.subparts_, this_._impl_.content_.subparts_->GetCachedSize(), target, |
3562 | 0 | stream); |
3563 | 0 | } |
3564 | |
|
3565 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
3566 | 0 | target = |
3567 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
3568 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
3569 | 0 | } |
3570 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.MimePart) |
3571 | 0 | return target; |
3572 | 0 | } |
3573 | | |
3574 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3575 | | ::size_t MimePart::ByteSizeLong(const MessageLite& base) { |
3576 | | const MimePart& this_ = static_cast<const MimePart&>(base); |
3577 | | #else // PROTOBUF_CUSTOM_VTABLE |
3578 | 0 | ::size_t MimePart::ByteSizeLong() const { |
3579 | 0 | const MimePart& this_ = *this; |
3580 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3581 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.MimePart) |
3582 | 0 | ::size_t total_size = 0; |
3583 | |
|
3584 | 0 | ::uint32_t cached_has_bits = 0; |
3585 | | // Prevent compiler warnings about cached_has_bits being unused |
3586 | 0 | (void)cached_has_bits; |
3587 | |
|
3588 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
3589 | 0 | { |
3590 | | // repeated bytes headers = 6; |
3591 | 0 | { |
3592 | 0 | total_size += |
3593 | 0 | 1 * ::google::protobuf::internal::FromIntSize(this_._internal_headers().size()); |
3594 | 0 | for (int i = 0, n = this_._internal_headers().size(); i < n; ++i) { |
3595 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
3596 | 0 | this_._internal_headers().Get(i)); |
3597 | 0 | } |
3598 | 0 | } |
3599 | 0 | } |
3600 | 0 | { |
3601 | | // bytes name = 1; |
3602 | 0 | if (!this_._internal_name().empty()) { |
3603 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
3604 | 0 | this_._internal_name()); |
3605 | 0 | } |
3606 | | // bytes filename = 3; |
3607 | 0 | if (!this_._internal_filename().empty()) { |
3608 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
3609 | 0 | this_._internal_filename()); |
3610 | 0 | } |
3611 | | // bytes content_type = 4; |
3612 | 0 | if (!this_._internal_content_type().empty()) { |
3613 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
3614 | 0 | this_._internal_content_type()); |
3615 | 0 | } |
3616 | | // .curl.fuzzer.proto.MimeEncoder encoder = 5; |
3617 | 0 | if (this_._internal_encoder() != 0) { |
3618 | 0 | total_size += 1 + |
3619 | 0 | ::_pbi::WireFormatLite::EnumSize(this_._internal_encoder()); |
3620 | 0 | } |
3621 | 0 | } |
3622 | 0 | switch (this_.content_case()) { |
3623 | | // bytes data = 2; |
3624 | 0 | case kData: { |
3625 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
3626 | 0 | this_._internal_data()); |
3627 | 0 | break; |
3628 | 0 | } |
3629 | | // .curl.fuzzer.proto.MimeSubparts subparts = 7; |
3630 | 0 | case kSubparts: { |
3631 | 0 | total_size += 1 + |
3632 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.content_.subparts_); |
3633 | 0 | break; |
3634 | 0 | } |
3635 | 0 | case CONTENT_NOT_SET: { |
3636 | 0 | break; |
3637 | 0 | } |
3638 | 0 | } |
3639 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
3640 | 0 | &this_._impl_._cached_size_); |
3641 | 0 | } |
3642 | | |
3643 | 0 | void MimePart::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
3644 | 0 | auto* const _this = static_cast<MimePart*>(&to_msg); |
3645 | 0 | auto& from = static_cast<const MimePart&>(from_msg); |
3646 | 0 | ::google::protobuf::Arena* arena = _this->GetArena(); |
3647 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.MimePart) |
3648 | 0 | ABSL_DCHECK_NE(&from, _this); |
3649 | 0 | ::uint32_t cached_has_bits = 0; |
3650 | 0 | (void) cached_has_bits; |
3651 | |
|
3652 | 0 | _this->_internal_mutable_headers()->MergeFrom(from._internal_headers()); |
3653 | 0 | if (!from._internal_name().empty()) { |
3654 | 0 | _this->_internal_set_name(from._internal_name()); |
3655 | 0 | } |
3656 | 0 | if (!from._internal_filename().empty()) { |
3657 | 0 | _this->_internal_set_filename(from._internal_filename()); |
3658 | 0 | } |
3659 | 0 | if (!from._internal_content_type().empty()) { |
3660 | 0 | _this->_internal_set_content_type(from._internal_content_type()); |
3661 | 0 | } |
3662 | 0 | if (from._internal_encoder() != 0) { |
3663 | 0 | _this->_impl_.encoder_ = from._impl_.encoder_; |
3664 | 0 | } |
3665 | 0 | if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { |
3666 | 0 | const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; |
3667 | 0 | const bool oneof_needs_init = oneof_to_case != oneof_from_case; |
3668 | 0 | if (oneof_needs_init) { |
3669 | 0 | if (oneof_to_case != 0) { |
3670 | 0 | _this->clear_content(); |
3671 | 0 | } |
3672 | 0 | _this->_impl_._oneof_case_[0] = oneof_from_case; |
3673 | 0 | } |
3674 | |
|
3675 | 0 | switch (oneof_from_case) { |
3676 | 0 | case kData: { |
3677 | 0 | if (oneof_needs_init) { |
3678 | 0 | _this->_impl_.content_.data_.InitDefault(); |
3679 | 0 | } |
3680 | 0 | _this->_impl_.content_.data_.Set(from._internal_data(), arena); |
3681 | 0 | break; |
3682 | 0 | } |
3683 | 0 | case kSubparts: { |
3684 | 0 | if (oneof_needs_init) { |
3685 | 0 | _this->_impl_.content_.subparts_ = |
3686 | 0 | ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::MimeSubparts>(arena, *from._impl_.content_.subparts_); |
3687 | 0 | } else { |
3688 | 0 | _this->_impl_.content_.subparts_->MergeFrom(from._internal_subparts()); |
3689 | 0 | } |
3690 | 0 | break; |
3691 | 0 | } |
3692 | 0 | case CONTENT_NOT_SET: |
3693 | 0 | break; |
3694 | 0 | } |
3695 | 0 | } |
3696 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
3697 | 0 | } |
3698 | | |
3699 | 0 | void MimePart::CopyFrom(const MimePart& from) { |
3700 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.MimePart) |
3701 | 0 | if (&from == this) return; |
3702 | 0 | Clear(); |
3703 | 0 | MergeFrom(from); |
3704 | 0 | } |
3705 | | |
3706 | | |
3707 | 0 | void MimePart::InternalSwap(MimePart* PROTOBUF_RESTRICT other) { |
3708 | 0 | using std::swap; |
3709 | 0 | auto* arena = GetArena(); |
3710 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
3711 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
3712 | 0 | _impl_.headers_.InternalSwap(&other->_impl_.headers_); |
3713 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); |
3714 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.filename_, &other->_impl_.filename_, arena); |
3715 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.content_type_, &other->_impl_.content_type_, arena); |
3716 | 0 | swap(_impl_.encoder_, other->_impl_.encoder_); |
3717 | 0 | swap(_impl_.content_, other->_impl_.content_); |
3718 | 0 | swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); |
3719 | 0 | } |
3720 | | |
3721 | 0 | ::google::protobuf::Metadata MimePart::GetMetadata() const { |
3722 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
3723 | 0 | } |
3724 | | // =================================================================== |
3725 | | |
3726 | | class MimeSubparts::_Internal { |
3727 | | public: |
3728 | | }; |
3729 | | |
3730 | | MimeSubparts::MimeSubparts(::google::protobuf::Arena* arena) |
3731 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3732 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
3733 | | #else // PROTOBUF_CUSTOM_VTABLE |
3734 | 0 | : ::google::protobuf::Message(arena) { |
3735 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3736 | 0 | SharedCtor(arena); |
3737 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.MimeSubparts) |
3738 | 0 | } |
3739 | | inline PROTOBUF_NDEBUG_INLINE MimeSubparts::Impl_::Impl_( |
3740 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
3741 | | const Impl_& from, const ::curl::fuzzer::proto::MimeSubparts& from_msg) |
3742 | 0 | : parts_{visibility, arena, from.parts_}, |
3743 | 0 | _cached_size_{0} {} |
3744 | | |
3745 | | MimeSubparts::MimeSubparts( |
3746 | | ::google::protobuf::Arena* arena, |
3747 | | const MimeSubparts& from) |
3748 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3749 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
3750 | | #else // PROTOBUF_CUSTOM_VTABLE |
3751 | 0 | : ::google::protobuf::Message(arena) { |
3752 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3753 | 0 | MimeSubparts* const _this = this; |
3754 | 0 | (void)_this; |
3755 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
3756 | 0 | from._internal_metadata_); |
3757 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
3758 | | |
3759 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.MimeSubparts) |
3760 | 0 | } |
3761 | | inline PROTOBUF_NDEBUG_INLINE MimeSubparts::Impl_::Impl_( |
3762 | | ::google::protobuf::internal::InternalVisibility visibility, |
3763 | | ::google::protobuf::Arena* arena) |
3764 | 0 | : parts_{visibility, arena}, |
3765 | 0 | _cached_size_{0} {} |
3766 | | |
3767 | 0 | inline void MimeSubparts::SharedCtor(::_pb::Arena* arena) { |
3768 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
3769 | 0 | } |
3770 | 25.3k | MimeSubparts::~MimeSubparts() { |
3771 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.MimeSubparts) |
3772 | 25.3k | SharedDtor(*this); |
3773 | 25.3k | } |
3774 | 25.3k | inline void MimeSubparts::SharedDtor(MessageLite& self) { |
3775 | 25.3k | MimeSubparts& this_ = static_cast<MimeSubparts&>(self); |
3776 | 25.3k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
3777 | 25.3k | ABSL_DCHECK(this_.GetArena() == nullptr); |
3778 | 25.3k | this_._impl_.~Impl_(); |
3779 | 25.3k | } |
3780 | | |
3781 | | inline void* MimeSubparts::PlacementNew_(const void*, void* mem, |
3782 | 0 | ::google::protobuf::Arena* arena) { |
3783 | 0 | return ::new (mem) MimeSubparts(arena); |
3784 | 0 | } |
3785 | 0 | constexpr auto MimeSubparts::InternalNewImpl_() { |
3786 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
3787 | 0 | PROTOBUF_FIELD_OFFSET(MimeSubparts, _impl_.parts_) + |
3788 | 0 | decltype(MimeSubparts::_impl_.parts_):: |
3789 | 0 | InternalGetArenaOffset( |
3790 | 0 | ::google::protobuf::Message::internal_visibility()), |
3791 | 0 | }); |
3792 | 0 | if (arena_bits.has_value()) { |
3793 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit( |
3794 | 0 | sizeof(MimeSubparts), alignof(MimeSubparts), *arena_bits); |
3795 | 0 | } else { |
3796 | 0 | return ::google::protobuf::internal::MessageCreator(&MimeSubparts::PlacementNew_, |
3797 | 0 | sizeof(MimeSubparts), |
3798 | 0 | alignof(MimeSubparts)); |
3799 | 0 | } |
3800 | 0 | } |
3801 | | PROTOBUF_CONSTINIT |
3802 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
3803 | | const ::google::protobuf::internal::ClassDataFull MimeSubparts::_class_data_ = { |
3804 | | ::google::protobuf::internal::ClassData{ |
3805 | | &_MimeSubparts_default_instance_._instance, |
3806 | | &_table_.header, |
3807 | | nullptr, // OnDemandRegisterArenaDtor |
3808 | | nullptr, // IsInitialized |
3809 | | &MimeSubparts::MergeImpl, |
3810 | | ::google::protobuf::Message::GetNewImpl<MimeSubparts>(), |
3811 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3812 | | &MimeSubparts::SharedDtor, |
3813 | | ::google::protobuf::Message::GetClearImpl<MimeSubparts>(), &MimeSubparts::ByteSizeLong, |
3814 | | &MimeSubparts::_InternalSerialize, |
3815 | | #endif // PROTOBUF_CUSTOM_VTABLE |
3816 | | PROTOBUF_FIELD_OFFSET(MimeSubparts, _impl_._cached_size_), |
3817 | | false, |
3818 | | }, |
3819 | | &MimeSubparts::kDescriptorMethods, |
3820 | | &descriptor_table_curl_5ffuzzer_2eproto, |
3821 | | nullptr, // tracker |
3822 | | }; |
3823 | 125k | const ::google::protobuf::internal::ClassData* MimeSubparts::GetClassData() const { |
3824 | 125k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
3825 | 125k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
3826 | 125k | return _class_data_.base(); |
3827 | 125k | } |
3828 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
3829 | | const ::_pbi::TcParseTable<0, 1, 1, 0, 2> MimeSubparts::_table_ = { |
3830 | | { |
3831 | | 0, // no _has_bits_ |
3832 | | 0, // no _extensions_ |
3833 | | 1, 0, // max_field_number, fast_idx_mask |
3834 | | offsetof(decltype(_table_), field_lookup_table), |
3835 | | 4294967294, // skipmap |
3836 | | offsetof(decltype(_table_), field_entries), |
3837 | | 1, // num_field_entries |
3838 | | 1, // num_aux_entries |
3839 | | offsetof(decltype(_table_), aux_entries), |
3840 | | _class_data_.base(), |
3841 | | nullptr, // post_loop_handler |
3842 | | ::_pbi::TcParser::GenericFallback, // fallback |
3843 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
3844 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::MimeSubparts>(), // to_prefetch |
3845 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
3846 | | }, {{ |
3847 | | // repeated .curl.fuzzer.proto.MimeDataPart parts = 1; |
3848 | | {::_pbi::TcParser::FastMtR1, |
3849 | | {10, 63, 0, PROTOBUF_FIELD_OFFSET(MimeSubparts, _impl_.parts_)}}, |
3850 | | }}, {{ |
3851 | | 65535, 65535 |
3852 | | }}, {{ |
3853 | | // repeated .curl.fuzzer.proto.MimeDataPart parts = 1; |
3854 | | {PROTOBUF_FIELD_OFFSET(MimeSubparts, _impl_.parts_), 0, 0, |
3855 | | (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
3856 | | }}, {{ |
3857 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::MimeDataPart>()}, |
3858 | | }}, {{ |
3859 | | }}, |
3860 | | }; |
3861 | | |
3862 | 0 | PROTOBUF_NOINLINE void MimeSubparts::Clear() { |
3863 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.MimeSubparts) |
3864 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3865 | 0 | ::uint32_t cached_has_bits = 0; |
3866 | | // Prevent compiler warnings about cached_has_bits being unused |
3867 | 0 | (void) cached_has_bits; |
3868 | |
|
3869 | 0 | _impl_.parts_.Clear(); |
3870 | 0 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
3871 | 0 | } |
3872 | | |
3873 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3874 | | ::uint8_t* MimeSubparts::_InternalSerialize( |
3875 | | const MessageLite& base, ::uint8_t* target, |
3876 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
3877 | | const MimeSubparts& this_ = static_cast<const MimeSubparts&>(base); |
3878 | | #else // PROTOBUF_CUSTOM_VTABLE |
3879 | | ::uint8_t* MimeSubparts::_InternalSerialize( |
3880 | | ::uint8_t* target, |
3881 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
3882 | 0 | const MimeSubparts& this_ = *this; |
3883 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3884 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.MimeSubparts) |
3885 | 0 | ::uint32_t cached_has_bits = 0; |
3886 | 0 | (void)cached_has_bits; |
3887 | | |
3888 | | // repeated .curl.fuzzer.proto.MimeDataPart parts = 1; |
3889 | 0 | for (unsigned i = 0, n = static_cast<unsigned>( |
3890 | 0 | this_._internal_parts_size()); |
3891 | 0 | i < n; i++) { |
3892 | 0 | const auto& repfield = this_._internal_parts().Get(i); |
3893 | 0 | target = |
3894 | 0 | ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
3895 | 0 | 1, repfield, repfield.GetCachedSize(), |
3896 | 0 | target, stream); |
3897 | 0 | } |
3898 | |
|
3899 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
3900 | 0 | target = |
3901 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
3902 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
3903 | 0 | } |
3904 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.MimeSubparts) |
3905 | 0 | return target; |
3906 | 0 | } |
3907 | | |
3908 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3909 | | ::size_t MimeSubparts::ByteSizeLong(const MessageLite& base) { |
3910 | | const MimeSubparts& this_ = static_cast<const MimeSubparts&>(base); |
3911 | | #else // PROTOBUF_CUSTOM_VTABLE |
3912 | 0 | ::size_t MimeSubparts::ByteSizeLong() const { |
3913 | 0 | const MimeSubparts& this_ = *this; |
3914 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3915 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.MimeSubparts) |
3916 | 0 | ::size_t total_size = 0; |
3917 | |
|
3918 | 0 | ::uint32_t cached_has_bits = 0; |
3919 | | // Prevent compiler warnings about cached_has_bits being unused |
3920 | 0 | (void)cached_has_bits; |
3921 | |
|
3922 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
3923 | 0 | { |
3924 | | // repeated .curl.fuzzer.proto.MimeDataPart parts = 1; |
3925 | 0 | { |
3926 | 0 | total_size += 1UL * this_._internal_parts_size(); |
3927 | 0 | for (const auto& msg : this_._internal_parts()) { |
3928 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); |
3929 | 0 | } |
3930 | 0 | } |
3931 | 0 | } |
3932 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
3933 | 0 | &this_._impl_._cached_size_); |
3934 | 0 | } |
3935 | | |
3936 | 0 | void MimeSubparts::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
3937 | 0 | auto* const _this = static_cast<MimeSubparts*>(&to_msg); |
3938 | 0 | auto& from = static_cast<const MimeSubparts&>(from_msg); |
3939 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.MimeSubparts) |
3940 | 0 | ABSL_DCHECK_NE(&from, _this); |
3941 | 0 | ::uint32_t cached_has_bits = 0; |
3942 | 0 | (void) cached_has_bits; |
3943 | |
|
3944 | 0 | _this->_internal_mutable_parts()->MergeFrom( |
3945 | 0 | from._internal_parts()); |
3946 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
3947 | 0 | } |
3948 | | |
3949 | 0 | void MimeSubparts::CopyFrom(const MimeSubparts& from) { |
3950 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.MimeSubparts) |
3951 | 0 | if (&from == this) return; |
3952 | 0 | Clear(); |
3953 | 0 | MergeFrom(from); |
3954 | 0 | } |
3955 | | |
3956 | | |
3957 | 0 | void MimeSubparts::InternalSwap(MimeSubparts* PROTOBUF_RESTRICT other) { |
3958 | 0 | using std::swap; |
3959 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
3960 | 0 | _impl_.parts_.InternalSwap(&other->_impl_.parts_); |
3961 | 0 | } |
3962 | | |
3963 | 0 | ::google::protobuf::Metadata MimeSubparts::GetMetadata() const { |
3964 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
3965 | 0 | } |
3966 | | // =================================================================== |
3967 | | |
3968 | | class MimeDataPart::_Internal { |
3969 | | public: |
3970 | | }; |
3971 | | |
3972 | | MimeDataPart::MimeDataPart(::google::protobuf::Arena* arena) |
3973 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3974 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
3975 | | #else // PROTOBUF_CUSTOM_VTABLE |
3976 | 0 | : ::google::protobuf::Message(arena) { |
3977 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3978 | 0 | SharedCtor(arena); |
3979 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.MimeDataPart) |
3980 | 0 | } |
3981 | | inline PROTOBUF_NDEBUG_INLINE MimeDataPart::Impl_::Impl_( |
3982 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
3983 | | const Impl_& from, const ::curl::fuzzer::proto::MimeDataPart& from_msg) |
3984 | 0 | : headers_{visibility, arena, from.headers_}, |
3985 | 0 | name_(arena, from.name_), |
3986 | 0 | data_(arena, from.data_), |
3987 | 0 | filename_(arena, from.filename_), |
3988 | 0 | content_type_(arena, from.content_type_), |
3989 | 0 | _cached_size_{0} {} |
3990 | | |
3991 | | MimeDataPart::MimeDataPart( |
3992 | | ::google::protobuf::Arena* arena, |
3993 | | const MimeDataPart& from) |
3994 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3995 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
3996 | | #else // PROTOBUF_CUSTOM_VTABLE |
3997 | 0 | : ::google::protobuf::Message(arena) { |
3998 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3999 | 0 | MimeDataPart* const _this = this; |
4000 | 0 | (void)_this; |
4001 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
4002 | 0 | from._internal_metadata_); |
4003 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
4004 | 0 | _impl_.encoder_ = from._impl_.encoder_; |
4005 | | |
4006 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.MimeDataPart) |
4007 | 0 | } |
4008 | | inline PROTOBUF_NDEBUG_INLINE MimeDataPart::Impl_::Impl_( |
4009 | | ::google::protobuf::internal::InternalVisibility visibility, |
4010 | | ::google::protobuf::Arena* arena) |
4011 | 0 | : headers_{visibility, arena}, |
4012 | 0 | name_(arena), |
4013 | 0 | data_(arena), |
4014 | 0 | filename_(arena), |
4015 | 0 | content_type_(arena), |
4016 | 0 | _cached_size_{0} {} |
4017 | | |
4018 | 0 | inline void MimeDataPart::SharedCtor(::_pb::Arena* arena) { |
4019 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
4020 | 0 | _impl_.encoder_ = {}; |
4021 | 0 | } |
4022 | 53.8k | MimeDataPart::~MimeDataPart() { |
4023 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.MimeDataPart) |
4024 | 53.8k | SharedDtor(*this); |
4025 | 53.8k | } |
4026 | 53.8k | inline void MimeDataPart::SharedDtor(MessageLite& self) { |
4027 | 53.8k | MimeDataPart& this_ = static_cast<MimeDataPart&>(self); |
4028 | 53.8k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
4029 | 53.8k | ABSL_DCHECK(this_.GetArena() == nullptr); |
4030 | 53.8k | this_._impl_.name_.Destroy(); |
4031 | 53.8k | this_._impl_.data_.Destroy(); |
4032 | 53.8k | this_._impl_.filename_.Destroy(); |
4033 | 53.8k | this_._impl_.content_type_.Destroy(); |
4034 | 53.8k | this_._impl_.~Impl_(); |
4035 | 53.8k | } |
4036 | | |
4037 | | inline void* MimeDataPart::PlacementNew_(const void*, void* mem, |
4038 | 0 | ::google::protobuf::Arena* arena) { |
4039 | 0 | return ::new (mem) MimeDataPart(arena); |
4040 | 0 | } |
4041 | 0 | constexpr auto MimeDataPart::InternalNewImpl_() { |
4042 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
4043 | 0 | PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.headers_) + |
4044 | 0 | decltype(MimeDataPart::_impl_.headers_):: |
4045 | 0 | InternalGetArenaOffset( |
4046 | 0 | ::google::protobuf::Message::internal_visibility()), |
4047 | 0 | }); |
4048 | 0 | if (arena_bits.has_value()) { |
4049 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit( |
4050 | 0 | sizeof(MimeDataPart), alignof(MimeDataPart), *arena_bits); |
4051 | 0 | } else { |
4052 | 0 | return ::google::protobuf::internal::MessageCreator(&MimeDataPart::PlacementNew_, |
4053 | 0 | sizeof(MimeDataPart), |
4054 | 0 | alignof(MimeDataPart)); |
4055 | 0 | } |
4056 | 0 | } |
4057 | | PROTOBUF_CONSTINIT |
4058 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
4059 | | const ::google::protobuf::internal::ClassDataFull MimeDataPart::_class_data_ = { |
4060 | | ::google::protobuf::internal::ClassData{ |
4061 | | &_MimeDataPart_default_instance_._instance, |
4062 | | &_table_.header, |
4063 | | nullptr, // OnDemandRegisterArenaDtor |
4064 | | nullptr, // IsInitialized |
4065 | | &MimeDataPart::MergeImpl, |
4066 | | ::google::protobuf::Message::GetNewImpl<MimeDataPart>(), |
4067 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4068 | | &MimeDataPart::SharedDtor, |
4069 | | ::google::protobuf::Message::GetClearImpl<MimeDataPart>(), &MimeDataPart::ByteSizeLong, |
4070 | | &MimeDataPart::_InternalSerialize, |
4071 | | #endif // PROTOBUF_CUSTOM_VTABLE |
4072 | | PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_._cached_size_), |
4073 | | false, |
4074 | | }, |
4075 | | &MimeDataPart::kDescriptorMethods, |
4076 | | &descriptor_table_curl_5ffuzzer_2eproto, |
4077 | | nullptr, // tracker |
4078 | | }; |
4079 | 304k | const ::google::protobuf::internal::ClassData* MimeDataPart::GetClassData() const { |
4080 | 304k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
4081 | 304k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
4082 | 304k | return _class_data_.base(); |
4083 | 304k | } |
4084 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
4085 | | const ::_pbi::TcParseTable<3, 6, 0, 0, 2> MimeDataPart::_table_ = { |
4086 | | { |
4087 | | 0, // no _has_bits_ |
4088 | | 0, // no _extensions_ |
4089 | | 6, 56, // max_field_number, fast_idx_mask |
4090 | | offsetof(decltype(_table_), field_lookup_table), |
4091 | | 4294967232, // skipmap |
4092 | | offsetof(decltype(_table_), field_entries), |
4093 | | 6, // num_field_entries |
4094 | | 0, // num_aux_entries |
4095 | | offsetof(decltype(_table_), field_names), // no aux_entries |
4096 | | _class_data_.base(), |
4097 | | nullptr, // post_loop_handler |
4098 | | ::_pbi::TcParser::GenericFallback, // fallback |
4099 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
4100 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::MimeDataPart>(), // to_prefetch |
4101 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
4102 | | }, {{ |
4103 | | {::_pbi::TcParser::MiniParse, {}}, |
4104 | | // bytes name = 1; |
4105 | | {::_pbi::TcParser::FastBS1, |
4106 | | {10, 63, 0, PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.name_)}}, |
4107 | | // bytes data = 2; |
4108 | | {::_pbi::TcParser::FastBS1, |
4109 | | {18, 63, 0, PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.data_)}}, |
4110 | | // bytes filename = 3; |
4111 | | {::_pbi::TcParser::FastBS1, |
4112 | | {26, 63, 0, PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.filename_)}}, |
4113 | | // bytes content_type = 4; |
4114 | | {::_pbi::TcParser::FastBS1, |
4115 | | {34, 63, 0, PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.content_type_)}}, |
4116 | | // .curl.fuzzer.proto.MimeEncoder encoder = 5; |
4117 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MimeDataPart, _impl_.encoder_), 63>(), |
4118 | | {40, 63, 0, PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.encoder_)}}, |
4119 | | // repeated bytes headers = 6; |
4120 | | {::_pbi::TcParser::FastBR1, |
4121 | | {50, 63, 0, PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.headers_)}}, |
4122 | | {::_pbi::TcParser::MiniParse, {}}, |
4123 | | }}, {{ |
4124 | | 65535, 65535 |
4125 | | }}, {{ |
4126 | | // bytes name = 1; |
4127 | | {PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.name_), 0, 0, |
4128 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
4129 | | // bytes data = 2; |
4130 | | {PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.data_), 0, 0, |
4131 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
4132 | | // bytes filename = 3; |
4133 | | {PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.filename_), 0, 0, |
4134 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
4135 | | // bytes content_type = 4; |
4136 | | {PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.content_type_), 0, 0, |
4137 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
4138 | | // .curl.fuzzer.proto.MimeEncoder encoder = 5; |
4139 | | {PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.encoder_), 0, 0, |
4140 | | (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
4141 | | // repeated bytes headers = 6; |
4142 | | {PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.headers_), 0, 0, |
4143 | | (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)}, |
4144 | | }}, |
4145 | | // no aux_entries |
4146 | | {{ |
4147 | | }}, |
4148 | | }; |
4149 | | |
4150 | 0 | PROTOBUF_NOINLINE void MimeDataPart::Clear() { |
4151 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.MimeDataPart) |
4152 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
4153 | 0 | ::uint32_t cached_has_bits = 0; |
4154 | | // Prevent compiler warnings about cached_has_bits being unused |
4155 | 0 | (void) cached_has_bits; |
4156 | |
|
4157 | 0 | _impl_.headers_.Clear(); |
4158 | 0 | _impl_.name_.ClearToEmpty(); |
4159 | 0 | _impl_.data_.ClearToEmpty(); |
4160 | 0 | _impl_.filename_.ClearToEmpty(); |
4161 | 0 | _impl_.content_type_.ClearToEmpty(); |
4162 | 0 | _impl_.encoder_ = 0; |
4163 | 0 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
4164 | 0 | } |
4165 | | |
4166 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4167 | | ::uint8_t* MimeDataPart::_InternalSerialize( |
4168 | | const MessageLite& base, ::uint8_t* target, |
4169 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
4170 | | const MimeDataPart& this_ = static_cast<const MimeDataPart&>(base); |
4171 | | #else // PROTOBUF_CUSTOM_VTABLE |
4172 | | ::uint8_t* MimeDataPart::_InternalSerialize( |
4173 | | ::uint8_t* target, |
4174 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
4175 | 0 | const MimeDataPart& this_ = *this; |
4176 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4177 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.MimeDataPart) |
4178 | 0 | ::uint32_t cached_has_bits = 0; |
4179 | 0 | (void)cached_has_bits; |
4180 | | |
4181 | | // bytes name = 1; |
4182 | 0 | if (!this_._internal_name().empty()) { |
4183 | 0 | const std::string& _s = this_._internal_name(); |
4184 | 0 | target = stream->WriteBytesMaybeAliased(1, _s, target); |
4185 | 0 | } |
4186 | | |
4187 | | // bytes data = 2; |
4188 | 0 | if (!this_._internal_data().empty()) { |
4189 | 0 | const std::string& _s = this_._internal_data(); |
4190 | 0 | target = stream->WriteBytesMaybeAliased(2, _s, target); |
4191 | 0 | } |
4192 | | |
4193 | | // bytes filename = 3; |
4194 | 0 | if (!this_._internal_filename().empty()) { |
4195 | 0 | const std::string& _s = this_._internal_filename(); |
4196 | 0 | target = stream->WriteBytesMaybeAliased(3, _s, target); |
4197 | 0 | } |
4198 | | |
4199 | | // bytes content_type = 4; |
4200 | 0 | if (!this_._internal_content_type().empty()) { |
4201 | 0 | const std::string& _s = this_._internal_content_type(); |
4202 | 0 | target = stream->WriteBytesMaybeAliased(4, _s, target); |
4203 | 0 | } |
4204 | | |
4205 | | // .curl.fuzzer.proto.MimeEncoder encoder = 5; |
4206 | 0 | if (this_._internal_encoder() != 0) { |
4207 | 0 | target = stream->EnsureSpace(target); |
4208 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
4209 | 0 | 5, this_._internal_encoder(), target); |
4210 | 0 | } |
4211 | | |
4212 | | // repeated bytes headers = 6; |
4213 | 0 | for (int i = 0, n = this_._internal_headers_size(); i < n; ++i) { |
4214 | 0 | const auto& s = this_._internal_headers().Get(i); |
4215 | 0 | target = stream->WriteBytes(6, s, target); |
4216 | 0 | } |
4217 | |
|
4218 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
4219 | 0 | target = |
4220 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
4221 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
4222 | 0 | } |
4223 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.MimeDataPart) |
4224 | 0 | return target; |
4225 | 0 | } |
4226 | | |
4227 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4228 | | ::size_t MimeDataPart::ByteSizeLong(const MessageLite& base) { |
4229 | | const MimeDataPart& this_ = static_cast<const MimeDataPart&>(base); |
4230 | | #else // PROTOBUF_CUSTOM_VTABLE |
4231 | 0 | ::size_t MimeDataPart::ByteSizeLong() const { |
4232 | 0 | const MimeDataPart& this_ = *this; |
4233 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4234 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.MimeDataPart) |
4235 | 0 | ::size_t total_size = 0; |
4236 | |
|
4237 | 0 | ::uint32_t cached_has_bits = 0; |
4238 | | // Prevent compiler warnings about cached_has_bits being unused |
4239 | 0 | (void)cached_has_bits; |
4240 | |
|
4241 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
4242 | 0 | { |
4243 | | // repeated bytes headers = 6; |
4244 | 0 | { |
4245 | 0 | total_size += |
4246 | 0 | 1 * ::google::protobuf::internal::FromIntSize(this_._internal_headers().size()); |
4247 | 0 | for (int i = 0, n = this_._internal_headers().size(); i < n; ++i) { |
4248 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
4249 | 0 | this_._internal_headers().Get(i)); |
4250 | 0 | } |
4251 | 0 | } |
4252 | 0 | } |
4253 | 0 | { |
4254 | | // bytes name = 1; |
4255 | 0 | if (!this_._internal_name().empty()) { |
4256 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
4257 | 0 | this_._internal_name()); |
4258 | 0 | } |
4259 | | // bytes data = 2; |
4260 | 0 | if (!this_._internal_data().empty()) { |
4261 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
4262 | 0 | this_._internal_data()); |
4263 | 0 | } |
4264 | | // bytes filename = 3; |
4265 | 0 | if (!this_._internal_filename().empty()) { |
4266 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
4267 | 0 | this_._internal_filename()); |
4268 | 0 | } |
4269 | | // bytes content_type = 4; |
4270 | 0 | if (!this_._internal_content_type().empty()) { |
4271 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
4272 | 0 | this_._internal_content_type()); |
4273 | 0 | } |
4274 | | // .curl.fuzzer.proto.MimeEncoder encoder = 5; |
4275 | 0 | if (this_._internal_encoder() != 0) { |
4276 | 0 | total_size += 1 + |
4277 | 0 | ::_pbi::WireFormatLite::EnumSize(this_._internal_encoder()); |
4278 | 0 | } |
4279 | 0 | } |
4280 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
4281 | 0 | &this_._impl_._cached_size_); |
4282 | 0 | } |
4283 | | |
4284 | 0 | void MimeDataPart::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
4285 | 0 | auto* const _this = static_cast<MimeDataPart*>(&to_msg); |
4286 | 0 | auto& from = static_cast<const MimeDataPart&>(from_msg); |
4287 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.MimeDataPart) |
4288 | 0 | ABSL_DCHECK_NE(&from, _this); |
4289 | 0 | ::uint32_t cached_has_bits = 0; |
4290 | 0 | (void) cached_has_bits; |
4291 | |
|
4292 | 0 | _this->_internal_mutable_headers()->MergeFrom(from._internal_headers()); |
4293 | 0 | if (!from._internal_name().empty()) { |
4294 | 0 | _this->_internal_set_name(from._internal_name()); |
4295 | 0 | } |
4296 | 0 | if (!from._internal_data().empty()) { |
4297 | 0 | _this->_internal_set_data(from._internal_data()); |
4298 | 0 | } |
4299 | 0 | if (!from._internal_filename().empty()) { |
4300 | 0 | _this->_internal_set_filename(from._internal_filename()); |
4301 | 0 | } |
4302 | 0 | if (!from._internal_content_type().empty()) { |
4303 | 0 | _this->_internal_set_content_type(from._internal_content_type()); |
4304 | 0 | } |
4305 | 0 | if (from._internal_encoder() != 0) { |
4306 | 0 | _this->_impl_.encoder_ = from._impl_.encoder_; |
4307 | 0 | } |
4308 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
4309 | 0 | } |
4310 | | |
4311 | 0 | void MimeDataPart::CopyFrom(const MimeDataPart& from) { |
4312 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.MimeDataPart) |
4313 | 0 | if (&from == this) return; |
4314 | 0 | Clear(); |
4315 | 0 | MergeFrom(from); |
4316 | 0 | } |
4317 | | |
4318 | | |
4319 | 0 | void MimeDataPart::InternalSwap(MimeDataPart* PROTOBUF_RESTRICT other) { |
4320 | 0 | using std::swap; |
4321 | 0 | auto* arena = GetArena(); |
4322 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
4323 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
4324 | 0 | _impl_.headers_.InternalSwap(&other->_impl_.headers_); |
4325 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); |
4326 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena); |
4327 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.filename_, &other->_impl_.filename_, arena); |
4328 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.content_type_, &other->_impl_.content_type_, arena); |
4329 | 0 | swap(_impl_.encoder_, other->_impl_.encoder_); |
4330 | 0 | } |
4331 | | |
4332 | 0 | ::google::protobuf::Metadata MimeDataPart::GetMetadata() const { |
4333 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
4334 | 0 | } |
4335 | | // =================================================================== |
4336 | | |
4337 | | class SetOption::_Internal { |
4338 | | public: |
4339 | | static constexpr ::int32_t kOneofCaseOffset = |
4340 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::SetOption, _impl_._oneof_case_); |
4341 | | }; |
4342 | | |
4343 | | SetOption::SetOption(::google::protobuf::Arena* arena) |
4344 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4345 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
4346 | | #else // PROTOBUF_CUSTOM_VTABLE |
4347 | 0 | : ::google::protobuf::Message(arena) { |
4348 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4349 | 0 | SharedCtor(arena); |
4350 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.SetOption) |
4351 | 0 | } |
4352 | | inline PROTOBUF_NDEBUG_INLINE SetOption::Impl_::Impl_( |
4353 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
4354 | | const Impl_& from, const ::curl::fuzzer::proto::SetOption& from_msg) |
4355 | 0 | : value_{}, |
4356 | 0 | _cached_size_{0}, |
4357 | 0 | _oneof_case_{from._oneof_case_[0]} {} |
4358 | | |
4359 | | SetOption::SetOption( |
4360 | | ::google::protobuf::Arena* arena, |
4361 | | const SetOption& from) |
4362 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4363 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
4364 | | #else // PROTOBUF_CUSTOM_VTABLE |
4365 | 0 | : ::google::protobuf::Message(arena) { |
4366 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4367 | 0 | SetOption* const _this = this; |
4368 | 0 | (void)_this; |
4369 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
4370 | 0 | from._internal_metadata_); |
4371 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
4372 | 0 | _impl_.option_id_ = from._impl_.option_id_; |
4373 | 0 | switch (value_case()) { |
4374 | 0 | case VALUE_NOT_SET: |
4375 | 0 | break; |
4376 | 0 | case kStringValue: |
4377 | 0 | new (&_impl_.value_.string_value_) decltype(_impl_.value_.string_value_){arena, from._impl_.value_.string_value_}; |
4378 | 0 | break; |
4379 | 0 | case kUintValue: |
4380 | 0 | _impl_.value_.uint_value_ = from._impl_.value_.uint_value_; |
4381 | 0 | break; |
4382 | 0 | case kBoolValue: |
4383 | 0 | _impl_.value_.bool_value_ = from._impl_.value_.bool_value_; |
4384 | 0 | break; |
4385 | 0 | } |
4386 | | |
4387 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.SetOption) |
4388 | 0 | } |
4389 | | inline PROTOBUF_NDEBUG_INLINE SetOption::Impl_::Impl_( |
4390 | | ::google::protobuf::internal::InternalVisibility visibility, |
4391 | | ::google::protobuf::Arena* arena) |
4392 | 0 | : value_{}, |
4393 | 0 | _cached_size_{0}, |
4394 | 0 | _oneof_case_{} {} |
4395 | | |
4396 | 0 | inline void SetOption::SharedCtor(::_pb::Arena* arena) { |
4397 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
4398 | 0 | _impl_.option_id_ = {}; |
4399 | 0 | } |
4400 | 582k | SetOption::~SetOption() { |
4401 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.SetOption) |
4402 | 582k | SharedDtor(*this); |
4403 | 582k | } |
4404 | 582k | inline void SetOption::SharedDtor(MessageLite& self) { |
4405 | 582k | SetOption& this_ = static_cast<SetOption&>(self); |
4406 | 582k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
4407 | 582k | ABSL_DCHECK(this_.GetArena() == nullptr); |
4408 | 582k | if (this_.has_value()) { |
4409 | 483k | this_.clear_value(); |
4410 | 483k | } |
4411 | 582k | this_._impl_.~Impl_(); |
4412 | 582k | } |
4413 | | |
4414 | 542k | void SetOption::clear_value() { |
4415 | | // @@protoc_insertion_point(one_of_clear_start:curl.fuzzer.proto.SetOption) |
4416 | 542k | ::google::protobuf::internal::TSanWrite(&_impl_); |
4417 | 542k | switch (value_case()) { |
4418 | 179k | case kStringValue: { |
4419 | 179k | _impl_.value_.string_value_.Destroy(); |
4420 | 179k | break; |
4421 | 0 | } |
4422 | 203k | case kUintValue: { |
4423 | | // No need to clear |
4424 | 203k | break; |
4425 | 0 | } |
4426 | 143k | case kBoolValue: { |
4427 | | // No need to clear |
4428 | 143k | break; |
4429 | 0 | } |
4430 | 15.8k | case VALUE_NOT_SET: { |
4431 | 15.8k | break; |
4432 | 0 | } |
4433 | 542k | } |
4434 | 542k | _impl_._oneof_case_[0] = VALUE_NOT_SET; |
4435 | 542k | } |
4436 | | |
4437 | | |
4438 | | inline void* SetOption::PlacementNew_(const void*, void* mem, |
4439 | 0 | ::google::protobuf::Arena* arena) { |
4440 | 0 | return ::new (mem) SetOption(arena); |
4441 | 0 | } |
4442 | 0 | constexpr auto SetOption::InternalNewImpl_() { |
4443 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetOption), |
4444 | 0 | alignof(SetOption)); |
4445 | 0 | } |
4446 | | PROTOBUF_CONSTINIT |
4447 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
4448 | | const ::google::protobuf::internal::ClassDataFull SetOption::_class_data_ = { |
4449 | | ::google::protobuf::internal::ClassData{ |
4450 | | &_SetOption_default_instance_._instance, |
4451 | | &_table_.header, |
4452 | | nullptr, // OnDemandRegisterArenaDtor |
4453 | | nullptr, // IsInitialized |
4454 | | &SetOption::MergeImpl, |
4455 | | ::google::protobuf::Message::GetNewImpl<SetOption>(), |
4456 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4457 | | &SetOption::SharedDtor, |
4458 | | ::google::protobuf::Message::GetClearImpl<SetOption>(), &SetOption::ByteSizeLong, |
4459 | | &SetOption::_InternalSerialize, |
4460 | | #endif // PROTOBUF_CUSTOM_VTABLE |
4461 | | PROTOBUF_FIELD_OFFSET(SetOption, _impl_._cached_size_), |
4462 | | false, |
4463 | | }, |
4464 | | &SetOption::kDescriptorMethods, |
4465 | | &descriptor_table_curl_5ffuzzer_2eproto, |
4466 | | nullptr, // tracker |
4467 | | }; |
4468 | 3.19M | const ::google::protobuf::internal::ClassData* SetOption::GetClassData() const { |
4469 | 3.19M | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
4470 | 3.19M | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
4471 | 3.19M | return _class_data_.base(); |
4472 | 3.19M | } |
4473 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
4474 | | const ::_pbi::TcParseTable<0, 4, 0, 0, 2> SetOption::_table_ = { |
4475 | | { |
4476 | | 0, // no _has_bits_ |
4477 | | 0, // no _extensions_ |
4478 | | 12, 0, // max_field_number, fast_idx_mask |
4479 | | offsetof(decltype(_table_), field_lookup_table), |
4480 | | 4294963710, // skipmap |
4481 | | offsetof(decltype(_table_), field_entries), |
4482 | | 4, // num_field_entries |
4483 | | 0, // num_aux_entries |
4484 | | offsetof(decltype(_table_), field_names), // no aux_entries |
4485 | | _class_data_.base(), |
4486 | | nullptr, // post_loop_handler |
4487 | | ::_pbi::TcParser::GenericFallback, // fallback |
4488 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
4489 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::SetOption>(), // to_prefetch |
4490 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
4491 | | }, {{ |
4492 | | // .curl.fuzzer.proto.CurlOptionId option_id = 1; |
4493 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SetOption, _impl_.option_id_), 63>(), |
4494 | | {8, 63, 0, PROTOBUF_FIELD_OFFSET(SetOption, _impl_.option_id_)}}, |
4495 | | }}, {{ |
4496 | | 65535, 65535 |
4497 | | }}, {{ |
4498 | | // .curl.fuzzer.proto.CurlOptionId option_id = 1; |
4499 | | {PROTOBUF_FIELD_OFFSET(SetOption, _impl_.option_id_), 0, 0, |
4500 | | (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
4501 | | // bytes string_value = 10; |
4502 | | {PROTOBUF_FIELD_OFFSET(SetOption, _impl_.value_.string_value_), _Internal::kOneofCaseOffset + 0, 0, |
4503 | | (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)}, |
4504 | | // uint64 uint_value = 11; |
4505 | | {PROTOBUF_FIELD_OFFSET(SetOption, _impl_.value_.uint_value_), _Internal::kOneofCaseOffset + 0, 0, |
4506 | | (0 | ::_fl::kFcOneof | ::_fl::kUInt64)}, |
4507 | | // bool bool_value = 12; |
4508 | | {PROTOBUF_FIELD_OFFSET(SetOption, _impl_.value_.bool_value_), _Internal::kOneofCaseOffset + 0, 0, |
4509 | | (0 | ::_fl::kFcOneof | ::_fl::kBool)}, |
4510 | | }}, |
4511 | | // no aux_entries |
4512 | | {{ |
4513 | | }}, |
4514 | | }; |
4515 | | |
4516 | 49.9k | PROTOBUF_NOINLINE void SetOption::Clear() { |
4517 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.SetOption) |
4518 | 49.9k | ::google::protobuf::internal::TSanWrite(&_impl_); |
4519 | 49.9k | ::uint32_t cached_has_bits = 0; |
4520 | | // Prevent compiler warnings about cached_has_bits being unused |
4521 | 49.9k | (void) cached_has_bits; |
4522 | | |
4523 | 49.9k | _impl_.option_id_ = 0; |
4524 | 49.9k | clear_value(); |
4525 | 49.9k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
4526 | 49.9k | } |
4527 | | |
4528 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4529 | | ::uint8_t* SetOption::_InternalSerialize( |
4530 | | const MessageLite& base, ::uint8_t* target, |
4531 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
4532 | | const SetOption& this_ = static_cast<const SetOption&>(base); |
4533 | | #else // PROTOBUF_CUSTOM_VTABLE |
4534 | | ::uint8_t* SetOption::_InternalSerialize( |
4535 | | ::uint8_t* target, |
4536 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
4537 | 0 | const SetOption& this_ = *this; |
4538 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4539 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.SetOption) |
4540 | 0 | ::uint32_t cached_has_bits = 0; |
4541 | 0 | (void)cached_has_bits; |
4542 | | |
4543 | | // .curl.fuzzer.proto.CurlOptionId option_id = 1; |
4544 | 0 | if (this_._internal_option_id() != 0) { |
4545 | 0 | target = stream->EnsureSpace(target); |
4546 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
4547 | 0 | 1, this_._internal_option_id(), target); |
4548 | 0 | } |
4549 | |
|
4550 | 0 | switch (this_.value_case()) { |
4551 | 0 | case kStringValue: { |
4552 | 0 | const std::string& _s = this_._internal_string_value(); |
4553 | 0 | target = stream->WriteBytesMaybeAliased(10, _s, target); |
4554 | 0 | break; |
4555 | 0 | } |
4556 | 0 | case kUintValue: { |
4557 | 0 | target = stream->EnsureSpace(target); |
4558 | 0 | target = ::_pbi::WireFormatLite::WriteUInt64ToArray( |
4559 | 0 | 11, this_._internal_uint_value(), target); |
4560 | 0 | break; |
4561 | 0 | } |
4562 | 0 | case kBoolValue: { |
4563 | 0 | target = stream->EnsureSpace(target); |
4564 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
4565 | 0 | 12, this_._internal_bool_value(), target); |
4566 | 0 | break; |
4567 | 0 | } |
4568 | 0 | default: |
4569 | 0 | break; |
4570 | 0 | } |
4571 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
4572 | 0 | target = |
4573 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
4574 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
4575 | 0 | } |
4576 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.SetOption) |
4577 | 0 | return target; |
4578 | 0 | } |
4579 | | |
4580 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4581 | | ::size_t SetOption::ByteSizeLong(const MessageLite& base) { |
4582 | | const SetOption& this_ = static_cast<const SetOption&>(base); |
4583 | | #else // PROTOBUF_CUSTOM_VTABLE |
4584 | 0 | ::size_t SetOption::ByteSizeLong() const { |
4585 | 0 | const SetOption& this_ = *this; |
4586 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4587 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.SetOption) |
4588 | 0 | ::size_t total_size = 0; |
4589 | |
|
4590 | 0 | ::uint32_t cached_has_bits = 0; |
4591 | | // Prevent compiler warnings about cached_has_bits being unused |
4592 | 0 | (void)cached_has_bits; |
4593 | |
|
4594 | 0 | { |
4595 | | // .curl.fuzzer.proto.CurlOptionId option_id = 1; |
4596 | 0 | if (this_._internal_option_id() != 0) { |
4597 | 0 | total_size += 1 + |
4598 | 0 | ::_pbi::WireFormatLite::EnumSize(this_._internal_option_id()); |
4599 | 0 | } |
4600 | 0 | } |
4601 | 0 | switch (this_.value_case()) { |
4602 | | // bytes string_value = 10; |
4603 | 0 | case kStringValue: { |
4604 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
4605 | 0 | this_._internal_string_value()); |
4606 | 0 | break; |
4607 | 0 | } |
4608 | | // uint64 uint_value = 11; |
4609 | 0 | case kUintValue: { |
4610 | 0 | total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( |
4611 | 0 | this_._internal_uint_value()); |
4612 | 0 | break; |
4613 | 0 | } |
4614 | | // bool bool_value = 12; |
4615 | 0 | case kBoolValue: { |
4616 | 0 | total_size += 2; |
4617 | 0 | break; |
4618 | 0 | } |
4619 | 0 | case VALUE_NOT_SET: { |
4620 | 0 | break; |
4621 | 0 | } |
4622 | 0 | } |
4623 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
4624 | 0 | &this_._impl_._cached_size_); |
4625 | 0 | } |
4626 | | |
4627 | 0 | void SetOption::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
4628 | 0 | auto* const _this = static_cast<SetOption*>(&to_msg); |
4629 | 0 | auto& from = static_cast<const SetOption&>(from_msg); |
4630 | 0 | ::google::protobuf::Arena* arena = _this->GetArena(); |
4631 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.SetOption) |
4632 | 0 | ABSL_DCHECK_NE(&from, _this); |
4633 | 0 | ::uint32_t cached_has_bits = 0; |
4634 | 0 | (void) cached_has_bits; |
4635 | |
|
4636 | 0 | if (from._internal_option_id() != 0) { |
4637 | 0 | _this->_impl_.option_id_ = from._impl_.option_id_; |
4638 | 0 | } |
4639 | 0 | if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { |
4640 | 0 | const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; |
4641 | 0 | const bool oneof_needs_init = oneof_to_case != oneof_from_case; |
4642 | 0 | if (oneof_needs_init) { |
4643 | 0 | if (oneof_to_case != 0) { |
4644 | 0 | _this->clear_value(); |
4645 | 0 | } |
4646 | 0 | _this->_impl_._oneof_case_[0] = oneof_from_case; |
4647 | 0 | } |
4648 | |
|
4649 | 0 | switch (oneof_from_case) { |
4650 | 0 | case kStringValue: { |
4651 | 0 | if (oneof_needs_init) { |
4652 | 0 | _this->_impl_.value_.string_value_.InitDefault(); |
4653 | 0 | } |
4654 | 0 | _this->_impl_.value_.string_value_.Set(from._internal_string_value(), arena); |
4655 | 0 | break; |
4656 | 0 | } |
4657 | 0 | case kUintValue: { |
4658 | 0 | _this->_impl_.value_.uint_value_ = from._impl_.value_.uint_value_; |
4659 | 0 | break; |
4660 | 0 | } |
4661 | 0 | case kBoolValue: { |
4662 | 0 | _this->_impl_.value_.bool_value_ = from._impl_.value_.bool_value_; |
4663 | 0 | break; |
4664 | 0 | } |
4665 | 0 | case VALUE_NOT_SET: |
4666 | 0 | break; |
4667 | 0 | } |
4668 | 0 | } |
4669 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
4670 | 0 | } |
4671 | | |
4672 | 0 | void SetOption::CopyFrom(const SetOption& from) { |
4673 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.SetOption) |
4674 | 0 | if (&from == this) return; |
4675 | 0 | Clear(); |
4676 | 0 | MergeFrom(from); |
4677 | 0 | } |
4678 | | |
4679 | | |
4680 | 0 | void SetOption::InternalSwap(SetOption* PROTOBUF_RESTRICT other) { |
4681 | 0 | using std::swap; |
4682 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
4683 | 0 | swap(_impl_.option_id_, other->_impl_.option_id_); |
4684 | 0 | swap(_impl_.value_, other->_impl_.value_); |
4685 | 0 | swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); |
4686 | 0 | } |
4687 | | |
4688 | 0 | ::google::protobuf::Metadata SetOption::GetMetadata() const { |
4689 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
4690 | 0 | } |
4691 | | // =================================================================== |
4692 | | |
4693 | | class Connection::_Internal { |
4694 | | public: |
4695 | | using HasBits = |
4696 | | decltype(std::declval<Connection>()._impl_._has_bits_); |
4697 | | static constexpr ::int32_t kHasBitsOffset = |
4698 | | 8 * PROTOBUF_FIELD_OFFSET(Connection, _impl_._has_bits_); |
4699 | | }; |
4700 | | |
4701 | | Connection::Connection(::google::protobuf::Arena* arena) |
4702 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4703 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
4704 | | #else // PROTOBUF_CUSTOM_VTABLE |
4705 | 5.41k | : ::google::protobuf::Message(arena) { |
4706 | 5.41k | #endif // PROTOBUF_CUSTOM_VTABLE |
4707 | 5.41k | SharedCtor(arena); |
4708 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.Connection) |
4709 | 5.41k | } |
4710 | | inline PROTOBUF_NDEBUG_INLINE Connection::Impl_::Impl_( |
4711 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
4712 | | const Impl_& from, const ::curl::fuzzer::proto::Connection& from_msg) |
4713 | 0 | : _has_bits_{from._has_bits_}, |
4714 | 0 | _cached_size_{0}, |
4715 | 0 | on_readable_{visibility, arena, from.on_readable_}, |
4716 | 0 | server_frames_{visibility, arena, from.server_frames_}, |
4717 | 0 | initial_response_(arena, from.initial_response_) {} |
4718 | | |
4719 | | Connection::Connection( |
4720 | | ::google::protobuf::Arena* arena, |
4721 | | const Connection& from) |
4722 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4723 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
4724 | | #else // PROTOBUF_CUSTOM_VTABLE |
4725 | 0 | : ::google::protobuf::Message(arena) { |
4726 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4727 | 0 | Connection* const _this = this; |
4728 | 0 | (void)_this; |
4729 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
4730 | 0 | from._internal_metadata_); |
4731 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
4732 | 0 | ::uint32_t cached_has_bits = _impl_._has_bits_[0]; |
4733 | 0 | _impl_.backpressure_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::BackpressureConfig>( |
4734 | 0 | arena, *from._impl_.backpressure_) |
4735 | 0 | : nullptr; |
4736 | 0 | _impl_.manual_probes_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::WsManualProbes>( |
4737 | 0 | arena, *from._impl_.manual_probes_) |
4738 | 0 | : nullptr; |
4739 | | |
4740 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.Connection) |
4741 | 0 | } |
4742 | | inline PROTOBUF_NDEBUG_INLINE Connection::Impl_::Impl_( |
4743 | | ::google::protobuf::internal::InternalVisibility visibility, |
4744 | | ::google::protobuf::Arena* arena) |
4745 | 5.41k | : _cached_size_{0}, |
4746 | 5.41k | on_readable_{visibility, arena}, |
4747 | 5.41k | server_frames_{visibility, arena}, |
4748 | 5.41k | initial_response_(arena) {} |
4749 | | |
4750 | 5.41k | inline void Connection::SharedCtor(::_pb::Arena* arena) { |
4751 | 5.41k | new (&_impl_) Impl_(internal_visibility(), arena); |
4752 | 5.41k | ::memset(reinterpret_cast<char *>(&_impl_) + |
4753 | 5.41k | offsetof(Impl_, backpressure_), |
4754 | 5.41k | 0, |
4755 | 5.41k | offsetof(Impl_, manual_probes_) - |
4756 | 5.41k | offsetof(Impl_, backpressure_) + |
4757 | 5.41k | sizeof(Impl_::manual_probes_)); |
4758 | 5.41k | } |
4759 | 221k | Connection::~Connection() { |
4760 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.Connection) |
4761 | 221k | SharedDtor(*this); |
4762 | 221k | } |
4763 | 221k | inline void Connection::SharedDtor(MessageLite& self) { |
4764 | 221k | Connection& this_ = static_cast<Connection&>(self); |
4765 | 221k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
4766 | 221k | ABSL_DCHECK(this_.GetArena() == nullptr); |
4767 | 221k | this_._impl_.initial_response_.Destroy(); |
4768 | 221k | delete this_._impl_.backpressure_; |
4769 | 221k | delete this_._impl_.manual_probes_; |
4770 | 221k | this_._impl_.~Impl_(); |
4771 | 221k | } |
4772 | | |
4773 | | inline void* Connection::PlacementNew_(const void*, void* mem, |
4774 | 0 | ::google::protobuf::Arena* arena) { |
4775 | 0 | return ::new (mem) Connection(arena); |
4776 | 0 | } |
4777 | 0 | constexpr auto Connection::InternalNewImpl_() { |
4778 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
4779 | 0 | PROTOBUF_FIELD_OFFSET(Connection, _impl_.on_readable_) + |
4780 | 0 | decltype(Connection::_impl_.on_readable_):: |
4781 | 0 | InternalGetArenaOffset( |
4782 | 0 | ::google::protobuf::Message::internal_visibility()), |
4783 | 0 | PROTOBUF_FIELD_OFFSET(Connection, _impl_.server_frames_) + |
4784 | 0 | decltype(Connection::_impl_.server_frames_):: |
4785 | 0 | InternalGetArenaOffset( |
4786 | 0 | ::google::protobuf::Message::internal_visibility()), |
4787 | 0 | }); |
4788 | 0 | if (arena_bits.has_value()) { |
4789 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit( |
4790 | 0 | sizeof(Connection), alignof(Connection), *arena_bits); |
4791 | 0 | } else { |
4792 | 0 | return ::google::protobuf::internal::MessageCreator(&Connection::PlacementNew_, |
4793 | 0 | sizeof(Connection), |
4794 | 0 | alignof(Connection)); |
4795 | 0 | } |
4796 | 0 | } |
4797 | | PROTOBUF_CONSTINIT |
4798 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
4799 | | const ::google::protobuf::internal::ClassDataFull Connection::_class_data_ = { |
4800 | | ::google::protobuf::internal::ClassData{ |
4801 | | &_Connection_default_instance_._instance, |
4802 | | &_table_.header, |
4803 | | nullptr, // OnDemandRegisterArenaDtor |
4804 | | nullptr, // IsInitialized |
4805 | | &Connection::MergeImpl, |
4806 | | ::google::protobuf::Message::GetNewImpl<Connection>(), |
4807 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4808 | | &Connection::SharedDtor, |
4809 | | ::google::protobuf::Message::GetClearImpl<Connection>(), &Connection::ByteSizeLong, |
4810 | | &Connection::_InternalSerialize, |
4811 | | #endif // PROTOBUF_CUSTOM_VTABLE |
4812 | | PROTOBUF_FIELD_OFFSET(Connection, _impl_._cached_size_), |
4813 | | false, |
4814 | | }, |
4815 | | &Connection::kDescriptorMethods, |
4816 | | &descriptor_table_curl_5ffuzzer_2eproto, |
4817 | | nullptr, // tracker |
4818 | | }; |
4819 | 1.11M | const ::google::protobuf::internal::ClassData* Connection::GetClassData() const { |
4820 | 1.11M | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
4821 | 1.11M | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
4822 | 1.11M | return _class_data_.base(); |
4823 | 1.11M | } |
4824 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
4825 | | const ::_pbi::TcParseTable<3, 5, 3, 0, 2> Connection::_table_ = { |
4826 | | { |
4827 | | PROTOBUF_FIELD_OFFSET(Connection, _impl_._has_bits_), |
4828 | | 0, // no _extensions_ |
4829 | | 5, 56, // max_field_number, fast_idx_mask |
4830 | | offsetof(decltype(_table_), field_lookup_table), |
4831 | | 4294967264, // skipmap |
4832 | | offsetof(decltype(_table_), field_entries), |
4833 | | 5, // num_field_entries |
4834 | | 3, // num_aux_entries |
4835 | | offsetof(decltype(_table_), aux_entries), |
4836 | | _class_data_.base(), |
4837 | | nullptr, // post_loop_handler |
4838 | | ::_pbi::TcParser::GenericFallback, // fallback |
4839 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
4840 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::Connection>(), // to_prefetch |
4841 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
4842 | | }, {{ |
4843 | | {::_pbi::TcParser::MiniParse, {}}, |
4844 | | // bytes initial_response = 1; |
4845 | | {::_pbi::TcParser::FastBS1, |
4846 | | {10, 63, 0, PROTOBUF_FIELD_OFFSET(Connection, _impl_.initial_response_)}}, |
4847 | | // repeated bytes on_readable = 2; |
4848 | | {::_pbi::TcParser::FastBR1, |
4849 | | {18, 63, 0, PROTOBUF_FIELD_OFFSET(Connection, _impl_.on_readable_)}}, |
4850 | | // repeated .curl.fuzzer.proto.WebSocketFrame server_frames = 3; |
4851 | | {::_pbi::TcParser::FastMtR1, |
4852 | | {26, 63, 0, PROTOBUF_FIELD_OFFSET(Connection, _impl_.server_frames_)}}, |
4853 | | // .curl.fuzzer.proto.BackpressureConfig backpressure = 4; |
4854 | | {::_pbi::TcParser::FastMtS1, |
4855 | | {34, 0, 1, PROTOBUF_FIELD_OFFSET(Connection, _impl_.backpressure_)}}, |
4856 | | // .curl.fuzzer.proto.WsManualProbes manual_probes = 5; |
4857 | | {::_pbi::TcParser::FastMtS1, |
4858 | | {42, 1, 2, PROTOBUF_FIELD_OFFSET(Connection, _impl_.manual_probes_)}}, |
4859 | | {::_pbi::TcParser::MiniParse, {}}, |
4860 | | {::_pbi::TcParser::MiniParse, {}}, |
4861 | | }}, {{ |
4862 | | 65535, 65535 |
4863 | | }}, {{ |
4864 | | // bytes initial_response = 1; |
4865 | | {PROTOBUF_FIELD_OFFSET(Connection, _impl_.initial_response_), -1, 0, |
4866 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
4867 | | // repeated bytes on_readable = 2; |
4868 | | {PROTOBUF_FIELD_OFFSET(Connection, _impl_.on_readable_), -1, 0, |
4869 | | (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)}, |
4870 | | // repeated .curl.fuzzer.proto.WebSocketFrame server_frames = 3; |
4871 | | {PROTOBUF_FIELD_OFFSET(Connection, _impl_.server_frames_), -1, 0, |
4872 | | (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
4873 | | // .curl.fuzzer.proto.BackpressureConfig backpressure = 4; |
4874 | | {PROTOBUF_FIELD_OFFSET(Connection, _impl_.backpressure_), _Internal::kHasBitsOffset + 0, 1, |
4875 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
4876 | | // .curl.fuzzer.proto.WsManualProbes manual_probes = 5; |
4877 | | {PROTOBUF_FIELD_OFFSET(Connection, _impl_.manual_probes_), _Internal::kHasBitsOffset + 1, 2, |
4878 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
4879 | | }}, {{ |
4880 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::WebSocketFrame>()}, |
4881 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::BackpressureConfig>()}, |
4882 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::WsManualProbes>()}, |
4883 | | }}, {{ |
4884 | | }}, |
4885 | | }; |
4886 | | |
4887 | 38.5k | PROTOBUF_NOINLINE void Connection::Clear() { |
4888 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.Connection) |
4889 | 38.5k | ::google::protobuf::internal::TSanWrite(&_impl_); |
4890 | 38.5k | ::uint32_t cached_has_bits = 0; |
4891 | | // Prevent compiler warnings about cached_has_bits being unused |
4892 | 38.5k | (void) cached_has_bits; |
4893 | | |
4894 | 38.5k | _impl_.on_readable_.Clear(); |
4895 | 38.5k | _impl_.server_frames_.Clear(); |
4896 | 38.5k | _impl_.initial_response_.ClearToEmpty(); |
4897 | 38.5k | cached_has_bits = _impl_._has_bits_[0]; |
4898 | 38.5k | if (cached_has_bits & 0x00000003u) { |
4899 | 10.0k | if (cached_has_bits & 0x00000001u) { |
4900 | 6.51k | ABSL_DCHECK(_impl_.backpressure_ != nullptr); |
4901 | 6.51k | _impl_.backpressure_->Clear(); |
4902 | 6.51k | } |
4903 | 10.0k | if (cached_has_bits & 0x00000002u) { |
4904 | 3.86k | ABSL_DCHECK(_impl_.manual_probes_ != nullptr); |
4905 | 3.86k | _impl_.manual_probes_->Clear(); |
4906 | 3.86k | } |
4907 | 10.0k | } |
4908 | 38.5k | _impl_._has_bits_.Clear(); |
4909 | 38.5k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
4910 | 38.5k | } |
4911 | | |
4912 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4913 | | ::uint8_t* Connection::_InternalSerialize( |
4914 | | const MessageLite& base, ::uint8_t* target, |
4915 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
4916 | | const Connection& this_ = static_cast<const Connection&>(base); |
4917 | | #else // PROTOBUF_CUSTOM_VTABLE |
4918 | | ::uint8_t* Connection::_InternalSerialize( |
4919 | | ::uint8_t* target, |
4920 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
4921 | 0 | const Connection& this_ = *this; |
4922 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4923 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.Connection) |
4924 | 0 | ::uint32_t cached_has_bits = 0; |
4925 | 0 | (void)cached_has_bits; |
4926 | | |
4927 | | // bytes initial_response = 1; |
4928 | 0 | if (!this_._internal_initial_response().empty()) { |
4929 | 0 | const std::string& _s = this_._internal_initial_response(); |
4930 | 0 | target = stream->WriteBytesMaybeAliased(1, _s, target); |
4931 | 0 | } |
4932 | | |
4933 | | // repeated bytes on_readable = 2; |
4934 | 0 | for (int i = 0, n = this_._internal_on_readable_size(); i < n; ++i) { |
4935 | 0 | const auto& s = this_._internal_on_readable().Get(i); |
4936 | 0 | target = stream->WriteBytes(2, s, target); |
4937 | 0 | } |
4938 | | |
4939 | | // repeated .curl.fuzzer.proto.WebSocketFrame server_frames = 3; |
4940 | 0 | for (unsigned i = 0, n = static_cast<unsigned>( |
4941 | 0 | this_._internal_server_frames_size()); |
4942 | 0 | i < n; i++) { |
4943 | 0 | const auto& repfield = this_._internal_server_frames().Get(i); |
4944 | 0 | target = |
4945 | 0 | ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
4946 | 0 | 3, repfield, repfield.GetCachedSize(), |
4947 | 0 | target, stream); |
4948 | 0 | } |
4949 | |
|
4950 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
4951 | | // .curl.fuzzer.proto.BackpressureConfig backpressure = 4; |
4952 | 0 | if (cached_has_bits & 0x00000001u) { |
4953 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
4954 | 0 | 4, *this_._impl_.backpressure_, this_._impl_.backpressure_->GetCachedSize(), target, |
4955 | 0 | stream); |
4956 | 0 | } |
4957 | | |
4958 | | // .curl.fuzzer.proto.WsManualProbes manual_probes = 5; |
4959 | 0 | if (cached_has_bits & 0x00000002u) { |
4960 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
4961 | 0 | 5, *this_._impl_.manual_probes_, this_._impl_.manual_probes_->GetCachedSize(), target, |
4962 | 0 | stream); |
4963 | 0 | } |
4964 | |
|
4965 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
4966 | 0 | target = |
4967 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
4968 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
4969 | 0 | } |
4970 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.Connection) |
4971 | 0 | return target; |
4972 | 0 | } |
4973 | | |
4974 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4975 | | ::size_t Connection::ByteSizeLong(const MessageLite& base) { |
4976 | | const Connection& this_ = static_cast<const Connection&>(base); |
4977 | | #else // PROTOBUF_CUSTOM_VTABLE |
4978 | 0 | ::size_t Connection::ByteSizeLong() const { |
4979 | 0 | const Connection& this_ = *this; |
4980 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4981 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.Connection) |
4982 | 0 | ::size_t total_size = 0; |
4983 | |
|
4984 | 0 | ::uint32_t cached_has_bits = 0; |
4985 | | // Prevent compiler warnings about cached_has_bits being unused |
4986 | 0 | (void)cached_has_bits; |
4987 | |
|
4988 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
4989 | 0 | { |
4990 | | // repeated bytes on_readable = 2; |
4991 | 0 | { |
4992 | 0 | total_size += |
4993 | 0 | 1 * ::google::protobuf::internal::FromIntSize(this_._internal_on_readable().size()); |
4994 | 0 | for (int i = 0, n = this_._internal_on_readable().size(); i < n; ++i) { |
4995 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
4996 | 0 | this_._internal_on_readable().Get(i)); |
4997 | 0 | } |
4998 | 0 | } |
4999 | | // repeated .curl.fuzzer.proto.WebSocketFrame server_frames = 3; |
5000 | 0 | { |
5001 | 0 | total_size += 1UL * this_._internal_server_frames_size(); |
5002 | 0 | for (const auto& msg : this_._internal_server_frames()) { |
5003 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); |
5004 | 0 | } |
5005 | 0 | } |
5006 | 0 | } |
5007 | 0 | { |
5008 | | // bytes initial_response = 1; |
5009 | 0 | if (!this_._internal_initial_response().empty()) { |
5010 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
5011 | 0 | this_._internal_initial_response()); |
5012 | 0 | } |
5013 | 0 | } |
5014 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
5015 | 0 | if (cached_has_bits & 0x00000003u) { |
5016 | | // .curl.fuzzer.proto.BackpressureConfig backpressure = 4; |
5017 | 0 | if (cached_has_bits & 0x00000001u) { |
5018 | 0 | total_size += 1 + |
5019 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.backpressure_); |
5020 | 0 | } |
5021 | | // .curl.fuzzer.proto.WsManualProbes manual_probes = 5; |
5022 | 0 | if (cached_has_bits & 0x00000002u) { |
5023 | 0 | total_size += 1 + |
5024 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.manual_probes_); |
5025 | 0 | } |
5026 | 0 | } |
5027 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
5028 | 0 | &this_._impl_._cached_size_); |
5029 | 0 | } |
5030 | | |
5031 | 0 | void Connection::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
5032 | 0 | auto* const _this = static_cast<Connection*>(&to_msg); |
5033 | 0 | auto& from = static_cast<const Connection&>(from_msg); |
5034 | 0 | ::google::protobuf::Arena* arena = _this->GetArena(); |
5035 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.Connection) |
5036 | 0 | ABSL_DCHECK_NE(&from, _this); |
5037 | 0 | ::uint32_t cached_has_bits = 0; |
5038 | 0 | (void) cached_has_bits; |
5039 | |
|
5040 | 0 | _this->_internal_mutable_on_readable()->MergeFrom(from._internal_on_readable()); |
5041 | 0 | _this->_internal_mutable_server_frames()->MergeFrom( |
5042 | 0 | from._internal_server_frames()); |
5043 | 0 | if (!from._internal_initial_response().empty()) { |
5044 | 0 | _this->_internal_set_initial_response(from._internal_initial_response()); |
5045 | 0 | } |
5046 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
5047 | 0 | if (cached_has_bits & 0x00000003u) { |
5048 | 0 | if (cached_has_bits & 0x00000001u) { |
5049 | 0 | ABSL_DCHECK(from._impl_.backpressure_ != nullptr); |
5050 | 0 | if (_this->_impl_.backpressure_ == nullptr) { |
5051 | 0 | _this->_impl_.backpressure_ = |
5052 | 0 | ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::BackpressureConfig>(arena, *from._impl_.backpressure_); |
5053 | 0 | } else { |
5054 | 0 | _this->_impl_.backpressure_->MergeFrom(*from._impl_.backpressure_); |
5055 | 0 | } |
5056 | 0 | } |
5057 | 0 | if (cached_has_bits & 0x00000002u) { |
5058 | 0 | ABSL_DCHECK(from._impl_.manual_probes_ != nullptr); |
5059 | 0 | if (_this->_impl_.manual_probes_ == nullptr) { |
5060 | 0 | _this->_impl_.manual_probes_ = |
5061 | 0 | ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::WsManualProbes>(arena, *from._impl_.manual_probes_); |
5062 | 0 | } else { |
5063 | 0 | _this->_impl_.manual_probes_->MergeFrom(*from._impl_.manual_probes_); |
5064 | 0 | } |
5065 | 0 | } |
5066 | 0 | } |
5067 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
5068 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
5069 | 0 | } |
5070 | | |
5071 | 0 | void Connection::CopyFrom(const Connection& from) { |
5072 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.Connection) |
5073 | 0 | if (&from == this) return; |
5074 | 0 | Clear(); |
5075 | 0 | MergeFrom(from); |
5076 | 0 | } |
5077 | | |
5078 | | |
5079 | 0 | void Connection::InternalSwap(Connection* PROTOBUF_RESTRICT other) { |
5080 | 0 | using std::swap; |
5081 | 0 | auto* arena = GetArena(); |
5082 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
5083 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
5084 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
5085 | 0 | _impl_.on_readable_.InternalSwap(&other->_impl_.on_readable_); |
5086 | 0 | _impl_.server_frames_.InternalSwap(&other->_impl_.server_frames_); |
5087 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.initial_response_, &other->_impl_.initial_response_, arena); |
5088 | 0 | ::google::protobuf::internal::memswap< |
5089 | 0 | PROTOBUF_FIELD_OFFSET(Connection, _impl_.manual_probes_) |
5090 | 0 | + sizeof(Connection::_impl_.manual_probes_) |
5091 | 0 | - PROTOBUF_FIELD_OFFSET(Connection, _impl_.backpressure_)>( |
5092 | 0 | reinterpret_cast<char*>(&_impl_.backpressure_), |
5093 | 0 | reinterpret_cast<char*>(&other->_impl_.backpressure_)); |
5094 | 0 | } |
5095 | | |
5096 | 0 | ::google::protobuf::Metadata Connection::GetMetadata() const { |
5097 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
5098 | 0 | } |
5099 | | // =================================================================== |
5100 | | |
5101 | | class WsManualProbes::_Internal { |
5102 | | public: |
5103 | | }; |
5104 | | |
5105 | | WsManualProbes::WsManualProbes(::google::protobuf::Arena* arena) |
5106 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
5107 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
5108 | | #else // PROTOBUF_CUSTOM_VTABLE |
5109 | 0 | : ::google::protobuf::Message(arena) { |
5110 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
5111 | 0 | SharedCtor(arena); |
5112 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.WsManualProbes) |
5113 | 0 | } |
5114 | | WsManualProbes::WsManualProbes( |
5115 | | ::google::protobuf::Arena* arena, const WsManualProbes& from) |
5116 | 0 | : WsManualProbes(arena) { |
5117 | 0 | MergeFrom(from); |
5118 | 0 | } |
5119 | | inline PROTOBUF_NDEBUG_INLINE WsManualProbes::Impl_::Impl_( |
5120 | | ::google::protobuf::internal::InternalVisibility visibility, |
5121 | | ::google::protobuf::Arena* arena) |
5122 | 0 | : _cached_size_{0} {} |
5123 | | |
5124 | 0 | inline void WsManualProbes::SharedCtor(::_pb::Arena* arena) { |
5125 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
5126 | 0 | ::memset(reinterpret_cast<char *>(&_impl_) + |
5127 | 0 | offsetof(Impl_, flag_matrix_), |
5128 | 0 | 0, |
5129 | 0 | offsetof(Impl_, raw_send_) - |
5130 | 0 | offsetof(Impl_, flag_matrix_) + |
5131 | 0 | sizeof(Impl_::raw_send_)); |
5132 | 0 | } |
5133 | 22.0k | WsManualProbes::~WsManualProbes() { |
5134 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.WsManualProbes) |
5135 | 22.0k | SharedDtor(*this); |
5136 | 22.0k | } |
5137 | 22.0k | inline void WsManualProbes::SharedDtor(MessageLite& self) { |
5138 | 22.0k | WsManualProbes& this_ = static_cast<WsManualProbes&>(self); |
5139 | 22.0k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
5140 | 22.0k | ABSL_DCHECK(this_.GetArena() == nullptr); |
5141 | 22.0k | this_._impl_.~Impl_(); |
5142 | 22.0k | } |
5143 | | |
5144 | | inline void* WsManualProbes::PlacementNew_(const void*, void* mem, |
5145 | 0 | ::google::protobuf::Arena* arena) { |
5146 | 0 | return ::new (mem) WsManualProbes(arena); |
5147 | 0 | } |
5148 | 0 | constexpr auto WsManualProbes::InternalNewImpl_() { |
5149 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(WsManualProbes), |
5150 | 0 | alignof(WsManualProbes)); |
5151 | 0 | } |
5152 | | PROTOBUF_CONSTINIT |
5153 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
5154 | | const ::google::protobuf::internal::ClassDataFull WsManualProbes::_class_data_ = { |
5155 | | ::google::protobuf::internal::ClassData{ |
5156 | | &_WsManualProbes_default_instance_._instance, |
5157 | | &_table_.header, |
5158 | | nullptr, // OnDemandRegisterArenaDtor |
5159 | | nullptr, // IsInitialized |
5160 | | &WsManualProbes::MergeImpl, |
5161 | | ::google::protobuf::Message::GetNewImpl<WsManualProbes>(), |
5162 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
5163 | | &WsManualProbes::SharedDtor, |
5164 | | ::google::protobuf::Message::GetClearImpl<WsManualProbes>(), &WsManualProbes::ByteSizeLong, |
5165 | | &WsManualProbes::_InternalSerialize, |
5166 | | #endif // PROTOBUF_CUSTOM_VTABLE |
5167 | | PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_._cached_size_), |
5168 | | false, |
5169 | | }, |
5170 | | &WsManualProbes::kDescriptorMethods, |
5171 | | &descriptor_table_curl_5ffuzzer_2eproto, |
5172 | | nullptr, // tracker |
5173 | | }; |
5174 | 109k | const ::google::protobuf::internal::ClassData* WsManualProbes::GetClassData() const { |
5175 | 109k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
5176 | 109k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
5177 | 109k | return _class_data_.base(); |
5178 | 109k | } |
5179 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
5180 | | const ::_pbi::TcParseTable<2, 3, 0, 0, 2> WsManualProbes::_table_ = { |
5181 | | { |
5182 | | 0, // no _has_bits_ |
5183 | | 0, // no _extensions_ |
5184 | | 3, 24, // max_field_number, fast_idx_mask |
5185 | | offsetof(decltype(_table_), field_lookup_table), |
5186 | | 4294967288, // skipmap |
5187 | | offsetof(decltype(_table_), field_entries), |
5188 | | 3, // num_field_entries |
5189 | | 0, // num_aux_entries |
5190 | | offsetof(decltype(_table_), field_names), // no aux_entries |
5191 | | _class_data_.base(), |
5192 | | nullptr, // post_loop_handler |
5193 | | ::_pbi::TcParser::GenericFallback, // fallback |
5194 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
5195 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::WsManualProbes>(), // to_prefetch |
5196 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
5197 | | }, {{ |
5198 | | {::_pbi::TcParser::MiniParse, {}}, |
5199 | | // bool flag_matrix = 1; |
5200 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WsManualProbes, _impl_.flag_matrix_), 63>(), |
5201 | | {8, 63, 0, PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.flag_matrix_)}}, |
5202 | | // bool unaligned_send = 2; |
5203 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WsManualProbes, _impl_.unaligned_send_), 63>(), |
5204 | | {16, 63, 0, PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.unaligned_send_)}}, |
5205 | | // bool raw_send = 3; |
5206 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WsManualProbes, _impl_.raw_send_), 63>(), |
5207 | | {24, 63, 0, PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.raw_send_)}}, |
5208 | | }}, {{ |
5209 | | 65535, 65535 |
5210 | | }}, {{ |
5211 | | // bool flag_matrix = 1; |
5212 | | {PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.flag_matrix_), 0, 0, |
5213 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
5214 | | // bool unaligned_send = 2; |
5215 | | {PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.unaligned_send_), 0, 0, |
5216 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
5217 | | // bool raw_send = 3; |
5218 | | {PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.raw_send_), 0, 0, |
5219 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
5220 | | }}, |
5221 | | // no aux_entries |
5222 | | {{ |
5223 | | }}, |
5224 | | }; |
5225 | | |
5226 | 3.87k | PROTOBUF_NOINLINE void WsManualProbes::Clear() { |
5227 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.WsManualProbes) |
5228 | 3.87k | ::google::protobuf::internal::TSanWrite(&_impl_); |
5229 | 3.87k | ::uint32_t cached_has_bits = 0; |
5230 | | // Prevent compiler warnings about cached_has_bits being unused |
5231 | 3.87k | (void) cached_has_bits; |
5232 | | |
5233 | 3.87k | ::memset(&_impl_.flag_matrix_, 0, static_cast<::size_t>( |
5234 | 3.87k | reinterpret_cast<char*>(&_impl_.raw_send_) - |
5235 | 3.87k | reinterpret_cast<char*>(&_impl_.flag_matrix_)) + sizeof(_impl_.raw_send_)); |
5236 | 3.87k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
5237 | 3.87k | } |
5238 | | |
5239 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
5240 | | ::uint8_t* WsManualProbes::_InternalSerialize( |
5241 | | const MessageLite& base, ::uint8_t* target, |
5242 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
5243 | | const WsManualProbes& this_ = static_cast<const WsManualProbes&>(base); |
5244 | | #else // PROTOBUF_CUSTOM_VTABLE |
5245 | | ::uint8_t* WsManualProbes::_InternalSerialize( |
5246 | | ::uint8_t* target, |
5247 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
5248 | 0 | const WsManualProbes& this_ = *this; |
5249 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
5250 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.WsManualProbes) |
5251 | 0 | ::uint32_t cached_has_bits = 0; |
5252 | 0 | (void)cached_has_bits; |
5253 | | |
5254 | | // bool flag_matrix = 1; |
5255 | 0 | if (this_._internal_flag_matrix() != 0) { |
5256 | 0 | target = stream->EnsureSpace(target); |
5257 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
5258 | 0 | 1, this_._internal_flag_matrix(), target); |
5259 | 0 | } |
5260 | | |
5261 | | // bool unaligned_send = 2; |
5262 | 0 | if (this_._internal_unaligned_send() != 0) { |
5263 | 0 | target = stream->EnsureSpace(target); |
5264 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
5265 | 0 | 2, this_._internal_unaligned_send(), target); |
5266 | 0 | } |
5267 | | |
5268 | | // bool raw_send = 3; |
5269 | 0 | if (this_._internal_raw_send() != 0) { |
5270 | 0 | target = stream->EnsureSpace(target); |
5271 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
5272 | 0 | 3, this_._internal_raw_send(), target); |
5273 | 0 | } |
5274 | |
|
5275 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
5276 | 0 | target = |
5277 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
5278 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
5279 | 0 | } |
5280 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.WsManualProbes) |
5281 | 0 | return target; |
5282 | 0 | } |
5283 | | |
5284 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
5285 | | ::size_t WsManualProbes::ByteSizeLong(const MessageLite& base) { |
5286 | | const WsManualProbes& this_ = static_cast<const WsManualProbes&>(base); |
5287 | | #else // PROTOBUF_CUSTOM_VTABLE |
5288 | 0 | ::size_t WsManualProbes::ByteSizeLong() const { |
5289 | 0 | const WsManualProbes& this_ = *this; |
5290 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
5291 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.WsManualProbes) |
5292 | 0 | ::size_t total_size = 0; |
5293 | |
|
5294 | 0 | ::uint32_t cached_has_bits = 0; |
5295 | | // Prevent compiler warnings about cached_has_bits being unused |
5296 | 0 | (void)cached_has_bits; |
5297 | |
|
5298 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
5299 | 0 | { |
5300 | | // bool flag_matrix = 1; |
5301 | 0 | if (this_._internal_flag_matrix() != 0) { |
5302 | 0 | total_size += 2; |
5303 | 0 | } |
5304 | | // bool unaligned_send = 2; |
5305 | 0 | if (this_._internal_unaligned_send() != 0) { |
5306 | 0 | total_size += 2; |
5307 | 0 | } |
5308 | | // bool raw_send = 3; |
5309 | 0 | if (this_._internal_raw_send() != 0) { |
5310 | 0 | total_size += 2; |
5311 | 0 | } |
5312 | 0 | } |
5313 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
5314 | 0 | &this_._impl_._cached_size_); |
5315 | 0 | } |
5316 | | |
5317 | 0 | void WsManualProbes::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
5318 | 0 | auto* const _this = static_cast<WsManualProbes*>(&to_msg); |
5319 | 0 | auto& from = static_cast<const WsManualProbes&>(from_msg); |
5320 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.WsManualProbes) |
5321 | 0 | ABSL_DCHECK_NE(&from, _this); |
5322 | 0 | ::uint32_t cached_has_bits = 0; |
5323 | 0 | (void) cached_has_bits; |
5324 | |
|
5325 | 0 | if (from._internal_flag_matrix() != 0) { |
5326 | 0 | _this->_impl_.flag_matrix_ = from._impl_.flag_matrix_; |
5327 | 0 | } |
5328 | 0 | if (from._internal_unaligned_send() != 0) { |
5329 | 0 | _this->_impl_.unaligned_send_ = from._impl_.unaligned_send_; |
5330 | 0 | } |
5331 | 0 | if (from._internal_raw_send() != 0) { |
5332 | 0 | _this->_impl_.raw_send_ = from._impl_.raw_send_; |
5333 | 0 | } |
5334 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
5335 | 0 | } |
5336 | | |
5337 | 0 | void WsManualProbes::CopyFrom(const WsManualProbes& from) { |
5338 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.WsManualProbes) |
5339 | 0 | if (&from == this) return; |
5340 | 0 | Clear(); |
5341 | 0 | MergeFrom(from); |
5342 | 0 | } |
5343 | | |
5344 | | |
5345 | 0 | void WsManualProbes::InternalSwap(WsManualProbes* PROTOBUF_RESTRICT other) { |
5346 | 0 | using std::swap; |
5347 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
5348 | 0 | ::google::protobuf::internal::memswap< |
5349 | 0 | PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.raw_send_) |
5350 | 0 | + sizeof(WsManualProbes::_impl_.raw_send_) |
5351 | 0 | - PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.flag_matrix_)>( |
5352 | 0 | reinterpret_cast<char*>(&_impl_.flag_matrix_), |
5353 | 0 | reinterpret_cast<char*>(&other->_impl_.flag_matrix_)); |
5354 | 0 | } |
5355 | | |
5356 | 0 | ::google::protobuf::Metadata WsManualProbes::GetMetadata() const { |
5357 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
5358 | 0 | } |
5359 | | // =================================================================== |
5360 | | |
5361 | | class BackpressureConfig::_Internal { |
5362 | | public: |
5363 | | }; |
5364 | | |
5365 | | BackpressureConfig::BackpressureConfig(::google::protobuf::Arena* arena) |
5366 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
5367 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
5368 | | #else // PROTOBUF_CUSTOM_VTABLE |
5369 | 199 | : ::google::protobuf::Message(arena) { |
5370 | 199 | #endif // PROTOBUF_CUSTOM_VTABLE |
5371 | 199 | SharedCtor(arena); |
5372 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.BackpressureConfig) |
5373 | 199 | } |
5374 | | BackpressureConfig::BackpressureConfig( |
5375 | | ::google::protobuf::Arena* arena, const BackpressureConfig& from) |
5376 | 0 | : BackpressureConfig(arena) { |
5377 | 0 | MergeFrom(from); |
5378 | 0 | } |
5379 | | inline PROTOBUF_NDEBUG_INLINE BackpressureConfig::Impl_::Impl_( |
5380 | | ::google::protobuf::internal::InternalVisibility visibility, |
5381 | | ::google::protobuf::Arena* arena) |
5382 | 199 | : _cached_size_{0} {} |
5383 | | |
5384 | 199 | inline void BackpressureConfig::SharedCtor(::_pb::Arena* arena) { |
5385 | 199 | new (&_impl_) Impl_(internal_visibility(), arena); |
5386 | 199 | ::memset(reinterpret_cast<char *>(&_impl_) + |
5387 | 199 | offsetof(Impl_, recv_buf_bytes_), |
5388 | 199 | 0, |
5389 | 199 | offsetof(Impl_, drain_limit_) - |
5390 | 199 | offsetof(Impl_, recv_buf_bytes_) + |
5391 | 199 | sizeof(Impl_::drain_limit_)); |
5392 | 199 | } |
5393 | 28.5k | BackpressureConfig::~BackpressureConfig() { |
5394 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.BackpressureConfig) |
5395 | 28.5k | SharedDtor(*this); |
5396 | 28.5k | } |
5397 | 28.5k | inline void BackpressureConfig::SharedDtor(MessageLite& self) { |
5398 | 28.5k | BackpressureConfig& this_ = static_cast<BackpressureConfig&>(self); |
5399 | 28.5k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
5400 | 28.5k | ABSL_DCHECK(this_.GetArena() == nullptr); |
5401 | 28.5k | this_._impl_.~Impl_(); |
5402 | 28.5k | } |
5403 | | |
5404 | | inline void* BackpressureConfig::PlacementNew_(const void*, void* mem, |
5405 | 0 | ::google::protobuf::Arena* arena) { |
5406 | 0 | return ::new (mem) BackpressureConfig(arena); |
5407 | 0 | } |
5408 | 0 | constexpr auto BackpressureConfig::InternalNewImpl_() { |
5409 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(BackpressureConfig), |
5410 | 0 | alignof(BackpressureConfig)); |
5411 | 0 | } |
5412 | | PROTOBUF_CONSTINIT |
5413 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
5414 | | const ::google::protobuf::internal::ClassDataFull BackpressureConfig::_class_data_ = { |
5415 | | ::google::protobuf::internal::ClassData{ |
5416 | | &_BackpressureConfig_default_instance_._instance, |
5417 | | &_table_.header, |
5418 | | nullptr, // OnDemandRegisterArenaDtor |
5419 | | nullptr, // IsInitialized |
5420 | | &BackpressureConfig::MergeImpl, |
5421 | | ::google::protobuf::Message::GetNewImpl<BackpressureConfig>(), |
5422 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
5423 | | &BackpressureConfig::SharedDtor, |
5424 | | ::google::protobuf::Message::GetClearImpl<BackpressureConfig>(), &BackpressureConfig::ByteSizeLong, |
5425 | | &BackpressureConfig::_InternalSerialize, |
5426 | | #endif // PROTOBUF_CUSTOM_VTABLE |
5427 | | PROTOBUF_FIELD_OFFSET(BackpressureConfig, _impl_._cached_size_), |
5428 | | false, |
5429 | | }, |
5430 | | &BackpressureConfig::kDescriptorMethods, |
5431 | | &descriptor_table_curl_5ffuzzer_2eproto, |
5432 | | nullptr, // tracker |
5433 | | }; |
5434 | 139k | const ::google::protobuf::internal::ClassData* BackpressureConfig::GetClassData() const { |
5435 | 139k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
5436 | 139k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
5437 | 139k | return _class_data_.base(); |
5438 | 139k | } |
5439 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
5440 | | const ::_pbi::TcParseTable<1, 2, 0, 0, 2> BackpressureConfig::_table_ = { |
5441 | | { |
5442 | | 0, // no _has_bits_ |
5443 | | 0, // no _extensions_ |
5444 | | 2, 8, // max_field_number, fast_idx_mask |
5445 | | offsetof(decltype(_table_), field_lookup_table), |
5446 | | 4294967292, // skipmap |
5447 | | offsetof(decltype(_table_), field_entries), |
5448 | | 2, // num_field_entries |
5449 | | 0, // num_aux_entries |
5450 | | offsetof(decltype(_table_), field_names), // no aux_entries |
5451 | | _class_data_.base(), |
5452 | | nullptr, // post_loop_handler |
5453 | | ::_pbi::TcParser::GenericFallback, // fallback |
5454 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
5455 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::BackpressureConfig>(), // to_prefetch |
5456 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
5457 | | }, {{ |
5458 | | // uint32 drain_limit = 2; |
5459 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(BackpressureConfig, _impl_.drain_limit_), 63>(), |
5460 | | {16, 63, 0, PROTOBUF_FIELD_OFFSET(BackpressureConfig, _impl_.drain_limit_)}}, |
5461 | | // uint32 recv_buf_bytes = 1; |
5462 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(BackpressureConfig, _impl_.recv_buf_bytes_), 63>(), |
5463 | | {8, 63, 0, PROTOBUF_FIELD_OFFSET(BackpressureConfig, _impl_.recv_buf_bytes_)}}, |
5464 | | }}, {{ |
5465 | | 65535, 65535 |
5466 | | }}, {{ |
5467 | | // uint32 recv_buf_bytes = 1; |
5468 | | {PROTOBUF_FIELD_OFFSET(BackpressureConfig, _impl_.recv_buf_bytes_), 0, 0, |
5469 | | (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, |
5470 | | // uint32 drain_limit = 2; |
5471 | | {PROTOBUF_FIELD_OFFSET(BackpressureConfig, _impl_.drain_limit_), 0, 0, |
5472 | | (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, |
5473 | | }}, |
5474 | | // no aux_entries |
5475 | | {{ |
5476 | | }}, |
5477 | | }; |
5478 | | |
5479 | 6.66k | PROTOBUF_NOINLINE void BackpressureConfig::Clear() { |
5480 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.BackpressureConfig) |
5481 | 6.66k | ::google::protobuf::internal::TSanWrite(&_impl_); |
5482 | 6.66k | ::uint32_t cached_has_bits = 0; |
5483 | | // Prevent compiler warnings about cached_has_bits being unused |
5484 | 6.66k | (void) cached_has_bits; |
5485 | | |
5486 | 6.66k | ::memset(&_impl_.recv_buf_bytes_, 0, static_cast<::size_t>( |
5487 | 6.66k | reinterpret_cast<char*>(&_impl_.drain_limit_) - |
5488 | 6.66k | reinterpret_cast<char*>(&_impl_.recv_buf_bytes_)) + sizeof(_impl_.drain_limit_)); |
5489 | 6.66k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
5490 | 6.66k | } |
5491 | | |
5492 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
5493 | | ::uint8_t* BackpressureConfig::_InternalSerialize( |
5494 | | const MessageLite& base, ::uint8_t* target, |
5495 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
5496 | | const BackpressureConfig& this_ = static_cast<const BackpressureConfig&>(base); |
5497 | | #else // PROTOBUF_CUSTOM_VTABLE |
5498 | | ::uint8_t* BackpressureConfig::_InternalSerialize( |
5499 | | ::uint8_t* target, |
5500 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
5501 | 0 | const BackpressureConfig& this_ = *this; |
5502 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
5503 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.BackpressureConfig) |
5504 | 0 | ::uint32_t cached_has_bits = 0; |
5505 | 0 | (void)cached_has_bits; |
5506 | | |
5507 | | // uint32 recv_buf_bytes = 1; |
5508 | 0 | if (this_._internal_recv_buf_bytes() != 0) { |
5509 | 0 | target = stream->EnsureSpace(target); |
5510 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
5511 | 0 | 1, this_._internal_recv_buf_bytes(), target); |
5512 | 0 | } |
5513 | | |
5514 | | // uint32 drain_limit = 2; |
5515 | 0 | if (this_._internal_drain_limit() != 0) { |
5516 | 0 | target = stream->EnsureSpace(target); |
5517 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
5518 | 0 | 2, this_._internal_drain_limit(), target); |
5519 | 0 | } |
5520 | |
|
5521 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
5522 | 0 | target = |
5523 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
5524 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
5525 | 0 | } |
5526 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.BackpressureConfig) |
5527 | 0 | return target; |
5528 | 0 | } |
5529 | | |
5530 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
5531 | | ::size_t BackpressureConfig::ByteSizeLong(const MessageLite& base) { |
5532 | | const BackpressureConfig& this_ = static_cast<const BackpressureConfig&>(base); |
5533 | | #else // PROTOBUF_CUSTOM_VTABLE |
5534 | 0 | ::size_t BackpressureConfig::ByteSizeLong() const { |
5535 | 0 | const BackpressureConfig& this_ = *this; |
5536 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
5537 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.BackpressureConfig) |
5538 | 0 | ::size_t total_size = 0; |
5539 | |
|
5540 | 0 | ::uint32_t cached_has_bits = 0; |
5541 | | // Prevent compiler warnings about cached_has_bits being unused |
5542 | 0 | (void)cached_has_bits; |
5543 | |
|
5544 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
5545 | 0 | { |
5546 | | // uint32 recv_buf_bytes = 1; |
5547 | 0 | if (this_._internal_recv_buf_bytes() != 0) { |
5548 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
5549 | 0 | this_._internal_recv_buf_bytes()); |
5550 | 0 | } |
5551 | | // uint32 drain_limit = 2; |
5552 | 0 | if (this_._internal_drain_limit() != 0) { |
5553 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
5554 | 0 | this_._internal_drain_limit()); |
5555 | 0 | } |
5556 | 0 | } |
5557 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
5558 | 0 | &this_._impl_._cached_size_); |
5559 | 0 | } |
5560 | | |
5561 | 0 | void BackpressureConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
5562 | 0 | auto* const _this = static_cast<BackpressureConfig*>(&to_msg); |
5563 | 0 | auto& from = static_cast<const BackpressureConfig&>(from_msg); |
5564 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.BackpressureConfig) |
5565 | 0 | ABSL_DCHECK_NE(&from, _this); |
5566 | 0 | ::uint32_t cached_has_bits = 0; |
5567 | 0 | (void) cached_has_bits; |
5568 | |
|
5569 | 0 | if (from._internal_recv_buf_bytes() != 0) { |
5570 | 0 | _this->_impl_.recv_buf_bytes_ = from._impl_.recv_buf_bytes_; |
5571 | 0 | } |
5572 | 0 | if (from._internal_drain_limit() != 0) { |
5573 | 0 | _this->_impl_.drain_limit_ = from._impl_.drain_limit_; |
5574 | 0 | } |
5575 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
5576 | 0 | } |
5577 | | |
5578 | 0 | void BackpressureConfig::CopyFrom(const BackpressureConfig& from) { |
5579 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.BackpressureConfig) |
5580 | 0 | if (&from == this) return; |
5581 | 0 | Clear(); |
5582 | 0 | MergeFrom(from); |
5583 | 0 | } |
5584 | | |
5585 | | |
5586 | 0 | void BackpressureConfig::InternalSwap(BackpressureConfig* PROTOBUF_RESTRICT other) { |
5587 | 0 | using std::swap; |
5588 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
5589 | 0 | ::google::protobuf::internal::memswap< |
5590 | 0 | PROTOBUF_FIELD_OFFSET(BackpressureConfig, _impl_.drain_limit_) |
5591 | 0 | + sizeof(BackpressureConfig::_impl_.drain_limit_) |
5592 | 0 | - PROTOBUF_FIELD_OFFSET(BackpressureConfig, _impl_.recv_buf_bytes_)>( |
5593 | 0 | reinterpret_cast<char*>(&_impl_.recv_buf_bytes_), |
5594 | 0 | reinterpret_cast<char*>(&other->_impl_.recv_buf_bytes_)); |
5595 | 0 | } |
5596 | | |
5597 | 0 | ::google::protobuf::Metadata BackpressureConfig::GetMetadata() const { |
5598 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
5599 | 0 | } |
5600 | | // =================================================================== |
5601 | | |
5602 | | class WebSocketFrame::_Internal { |
5603 | | public: |
5604 | | }; |
5605 | | |
5606 | | WebSocketFrame::WebSocketFrame(::google::protobuf::Arena* arena) |
5607 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
5608 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
5609 | | #else // PROTOBUF_CUSTOM_VTABLE |
5610 | 0 | : ::google::protobuf::Message(arena) { |
5611 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
5612 | 0 | SharedCtor(arena); |
5613 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.WebSocketFrame) |
5614 | 0 | } |
5615 | | inline PROTOBUF_NDEBUG_INLINE WebSocketFrame::Impl_::Impl_( |
5616 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
5617 | | const Impl_& from, const ::curl::fuzzer::proto::WebSocketFrame& from_msg) |
5618 | 0 | : payload_(arena, from.payload_), |
5619 | 0 | _cached_size_{0} {} |
5620 | | |
5621 | | WebSocketFrame::WebSocketFrame( |
5622 | | ::google::protobuf::Arena* arena, |
5623 | | const WebSocketFrame& from) |
5624 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
5625 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
5626 | | #else // PROTOBUF_CUSTOM_VTABLE |
5627 | 0 | : ::google::protobuf::Message(arena) { |
5628 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
5629 | 0 | WebSocketFrame* const _this = this; |
5630 | 0 | (void)_this; |
5631 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
5632 | 0 | from._internal_metadata_); |
5633 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
5634 | 0 | ::memcpy(reinterpret_cast<char *>(&_impl_) + |
5635 | 0 | offsetof(Impl_, fin_), |
5636 | 0 | reinterpret_cast<const char *>(&from._impl_) + |
5637 | 0 | offsetof(Impl_, fin_), |
5638 | 0 | offsetof(Impl_, length_form_) - |
5639 | 0 | offsetof(Impl_, fin_) + |
5640 | 0 | sizeof(Impl_::length_form_)); |
5641 | | |
5642 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.WebSocketFrame) |
5643 | 0 | } |
5644 | | inline PROTOBUF_NDEBUG_INLINE WebSocketFrame::Impl_::Impl_( |
5645 | | ::google::protobuf::internal::InternalVisibility visibility, |
5646 | | ::google::protobuf::Arena* arena) |
5647 | 0 | : payload_(arena), |
5648 | 0 | _cached_size_{0} {} |
5649 | | |
5650 | 0 | inline void WebSocketFrame::SharedCtor(::_pb::Arena* arena) { |
5651 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
5652 | 0 | ::memset(reinterpret_cast<char *>(&_impl_) + |
5653 | 0 | offsetof(Impl_, fin_), |
5654 | 0 | 0, |
5655 | 0 | offsetof(Impl_, length_form_) - |
5656 | 0 | offsetof(Impl_, fin_) + |
5657 | 0 | sizeof(Impl_::length_form_)); |
5658 | 0 | } |
5659 | 94.6k | WebSocketFrame::~WebSocketFrame() { |
5660 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.WebSocketFrame) |
5661 | 94.6k | SharedDtor(*this); |
5662 | 94.6k | } |
5663 | 94.6k | inline void WebSocketFrame::SharedDtor(MessageLite& self) { |
5664 | 94.6k | WebSocketFrame& this_ = static_cast<WebSocketFrame&>(self); |
5665 | 94.6k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
5666 | 94.6k | ABSL_DCHECK(this_.GetArena() == nullptr); |
5667 | 94.6k | this_._impl_.payload_.Destroy(); |
5668 | 94.6k | this_._impl_.~Impl_(); |
5669 | 94.6k | } |
5670 | | |
5671 | | inline void* WebSocketFrame::PlacementNew_(const void*, void* mem, |
5672 | 0 | ::google::protobuf::Arena* arena) { |
5673 | 0 | return ::new (mem) WebSocketFrame(arena); |
5674 | 0 | } |
5675 | 0 | constexpr auto WebSocketFrame::InternalNewImpl_() { |
5676 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(WebSocketFrame), |
5677 | 0 | alignof(WebSocketFrame)); |
5678 | 0 | } |
5679 | | PROTOBUF_CONSTINIT |
5680 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
5681 | | const ::google::protobuf::internal::ClassDataFull WebSocketFrame::_class_data_ = { |
5682 | | ::google::protobuf::internal::ClassData{ |
5683 | | &_WebSocketFrame_default_instance_._instance, |
5684 | | &_table_.header, |
5685 | | nullptr, // OnDemandRegisterArenaDtor |
5686 | | nullptr, // IsInitialized |
5687 | | &WebSocketFrame::MergeImpl, |
5688 | | ::google::protobuf::Message::GetNewImpl<WebSocketFrame>(), |
5689 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
5690 | | &WebSocketFrame::SharedDtor, |
5691 | | ::google::protobuf::Message::GetClearImpl<WebSocketFrame>(), &WebSocketFrame::ByteSizeLong, |
5692 | | &WebSocketFrame::_InternalSerialize, |
5693 | | #endif // PROTOBUF_CUSTOM_VTABLE |
5694 | | PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_._cached_size_), |
5695 | | false, |
5696 | | }, |
5697 | | &WebSocketFrame::kDescriptorMethods, |
5698 | | &descriptor_table_curl_5ffuzzer_2eproto, |
5699 | | nullptr, // tracker |
5700 | | }; |
5701 | 482k | const ::google::protobuf::internal::ClassData* WebSocketFrame::GetClassData() const { |
5702 | 482k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
5703 | 482k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
5704 | 482k | return _class_data_.base(); |
5705 | 482k | } |
5706 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
5707 | | const ::_pbi::TcParseTable<4, 9, 0, 0, 2> WebSocketFrame::_table_ = { |
5708 | | { |
5709 | | 0, // no _has_bits_ |
5710 | | 0, // no _extensions_ |
5711 | | 9, 120, // max_field_number, fast_idx_mask |
5712 | | offsetof(decltype(_table_), field_lookup_table), |
5713 | | 4294966784, // skipmap |
5714 | | offsetof(decltype(_table_), field_entries), |
5715 | | 9, // num_field_entries |
5716 | | 0, // num_aux_entries |
5717 | | offsetof(decltype(_table_), field_names), // no aux_entries |
5718 | | _class_data_.base(), |
5719 | | nullptr, // post_loop_handler |
5720 | | ::_pbi::TcParser::GenericFallback, // fallback |
5721 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
5722 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::WebSocketFrame>(), // to_prefetch |
5723 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
5724 | | }, {{ |
5725 | | {::_pbi::TcParser::MiniParse, {}}, |
5726 | | // bool fin = 1; |
5727 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WebSocketFrame, _impl_.fin_), 63>(), |
5728 | | {8, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.fin_)}}, |
5729 | | // bool rsv1 = 2; |
5730 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WebSocketFrame, _impl_.rsv1_), 63>(), |
5731 | | {16, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.rsv1_)}}, |
5732 | | // bool rsv2 = 3; |
5733 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WebSocketFrame, _impl_.rsv2_), 63>(), |
5734 | | {24, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.rsv2_)}}, |
5735 | | // bool rsv3 = 4; |
5736 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WebSocketFrame, _impl_.rsv3_), 63>(), |
5737 | | {32, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.rsv3_)}}, |
5738 | | // uint32 opcode = 5; |
5739 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(WebSocketFrame, _impl_.opcode_), 63>(), |
5740 | | {40, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.opcode_)}}, |
5741 | | // bool masked = 6; |
5742 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WebSocketFrame, _impl_.masked_), 63>(), |
5743 | | {48, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.masked_)}}, |
5744 | | // uint32 mask_key = 7; |
5745 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(WebSocketFrame, _impl_.mask_key_), 63>(), |
5746 | | {56, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.mask_key_)}}, |
5747 | | // bytes payload = 8; |
5748 | | {::_pbi::TcParser::FastBS1, |
5749 | | {66, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.payload_)}}, |
5750 | | // uint32 length_form = 9; |
5751 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(WebSocketFrame, _impl_.length_form_), 63>(), |
5752 | | {72, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.length_form_)}}, |
5753 | | {::_pbi::TcParser::MiniParse, {}}, |
5754 | | {::_pbi::TcParser::MiniParse, {}}, |
5755 | | {::_pbi::TcParser::MiniParse, {}}, |
5756 | | {::_pbi::TcParser::MiniParse, {}}, |
5757 | | {::_pbi::TcParser::MiniParse, {}}, |
5758 | | {::_pbi::TcParser::MiniParse, {}}, |
5759 | | }}, {{ |
5760 | | 65535, 65535 |
5761 | | }}, {{ |
5762 | | // bool fin = 1; |
5763 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.fin_), 0, 0, |
5764 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
5765 | | // bool rsv1 = 2; |
5766 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.rsv1_), 0, 0, |
5767 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
5768 | | // bool rsv2 = 3; |
5769 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.rsv2_), 0, 0, |
5770 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
5771 | | // bool rsv3 = 4; |
5772 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.rsv3_), 0, 0, |
5773 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
5774 | | // uint32 opcode = 5; |
5775 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.opcode_), 0, 0, |
5776 | | (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, |
5777 | | // bool masked = 6; |
5778 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.masked_), 0, 0, |
5779 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
5780 | | // uint32 mask_key = 7; |
5781 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.mask_key_), 0, 0, |
5782 | | (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, |
5783 | | // bytes payload = 8; |
5784 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.payload_), 0, 0, |
5785 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
5786 | | // uint32 length_form = 9; |
5787 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.length_form_), 0, 0, |
5788 | | (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, |
5789 | | }}, |
5790 | | // no aux_entries |
5791 | | {{ |
5792 | | }}, |
5793 | | }; |
5794 | | |
5795 | 16.7k | PROTOBUF_NOINLINE void WebSocketFrame::Clear() { |
5796 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.WebSocketFrame) |
5797 | 16.7k | ::google::protobuf::internal::TSanWrite(&_impl_); |
5798 | 16.7k | ::uint32_t cached_has_bits = 0; |
5799 | | // Prevent compiler warnings about cached_has_bits being unused |
5800 | 16.7k | (void) cached_has_bits; |
5801 | | |
5802 | 16.7k | _impl_.payload_.ClearToEmpty(); |
5803 | 16.7k | ::memset(&_impl_.fin_, 0, static_cast<::size_t>( |
5804 | 16.7k | reinterpret_cast<char*>(&_impl_.length_form_) - |
5805 | 16.7k | reinterpret_cast<char*>(&_impl_.fin_)) + sizeof(_impl_.length_form_)); |
5806 | 16.7k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
5807 | 16.7k | } |
5808 | | |
5809 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
5810 | | ::uint8_t* WebSocketFrame::_InternalSerialize( |
5811 | | const MessageLite& base, ::uint8_t* target, |
5812 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
5813 | | const WebSocketFrame& this_ = static_cast<const WebSocketFrame&>(base); |
5814 | | #else // PROTOBUF_CUSTOM_VTABLE |
5815 | | ::uint8_t* WebSocketFrame::_InternalSerialize( |
5816 | | ::uint8_t* target, |
5817 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
5818 | 0 | const WebSocketFrame& this_ = *this; |
5819 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
5820 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.WebSocketFrame) |
5821 | 0 | ::uint32_t cached_has_bits = 0; |
5822 | 0 | (void)cached_has_bits; |
5823 | | |
5824 | | // bool fin = 1; |
5825 | 0 | if (this_._internal_fin() != 0) { |
5826 | 0 | target = stream->EnsureSpace(target); |
5827 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
5828 | 0 | 1, this_._internal_fin(), target); |
5829 | 0 | } |
5830 | | |
5831 | | // bool rsv1 = 2; |
5832 | 0 | if (this_._internal_rsv1() != 0) { |
5833 | 0 | target = stream->EnsureSpace(target); |
5834 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
5835 | 0 | 2, this_._internal_rsv1(), target); |
5836 | 0 | } |
5837 | | |
5838 | | // bool rsv2 = 3; |
5839 | 0 | if (this_._internal_rsv2() != 0) { |
5840 | 0 | target = stream->EnsureSpace(target); |
5841 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
5842 | 0 | 3, this_._internal_rsv2(), target); |
5843 | 0 | } |
5844 | | |
5845 | | // bool rsv3 = 4; |
5846 | 0 | if (this_._internal_rsv3() != 0) { |
5847 | 0 | target = stream->EnsureSpace(target); |
5848 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
5849 | 0 | 4, this_._internal_rsv3(), target); |
5850 | 0 | } |
5851 | | |
5852 | | // uint32 opcode = 5; |
5853 | 0 | if (this_._internal_opcode() != 0) { |
5854 | 0 | target = stream->EnsureSpace(target); |
5855 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
5856 | 0 | 5, this_._internal_opcode(), target); |
5857 | 0 | } |
5858 | | |
5859 | | // bool masked = 6; |
5860 | 0 | if (this_._internal_masked() != 0) { |
5861 | 0 | target = stream->EnsureSpace(target); |
5862 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
5863 | 0 | 6, this_._internal_masked(), target); |
5864 | 0 | } |
5865 | | |
5866 | | // uint32 mask_key = 7; |
5867 | 0 | if (this_._internal_mask_key() != 0) { |
5868 | 0 | target = stream->EnsureSpace(target); |
5869 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
5870 | 0 | 7, this_._internal_mask_key(), target); |
5871 | 0 | } |
5872 | | |
5873 | | // bytes payload = 8; |
5874 | 0 | if (!this_._internal_payload().empty()) { |
5875 | 0 | const std::string& _s = this_._internal_payload(); |
5876 | 0 | target = stream->WriteBytesMaybeAliased(8, _s, target); |
5877 | 0 | } |
5878 | | |
5879 | | // uint32 length_form = 9; |
5880 | 0 | if (this_._internal_length_form() != 0) { |
5881 | 0 | target = stream->EnsureSpace(target); |
5882 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
5883 | 0 | 9, this_._internal_length_form(), target); |
5884 | 0 | } |
5885 | |
|
5886 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
5887 | 0 | target = |
5888 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
5889 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
5890 | 0 | } |
5891 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.WebSocketFrame) |
5892 | 0 | return target; |
5893 | 0 | } |
5894 | | |
5895 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
5896 | | ::size_t WebSocketFrame::ByteSizeLong(const MessageLite& base) { |
5897 | | const WebSocketFrame& this_ = static_cast<const WebSocketFrame&>(base); |
5898 | | #else // PROTOBUF_CUSTOM_VTABLE |
5899 | 0 | ::size_t WebSocketFrame::ByteSizeLong() const { |
5900 | 0 | const WebSocketFrame& this_ = *this; |
5901 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
5902 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.WebSocketFrame) |
5903 | 0 | ::size_t total_size = 0; |
5904 | |
|
5905 | 0 | ::uint32_t cached_has_bits = 0; |
5906 | | // Prevent compiler warnings about cached_has_bits being unused |
5907 | 0 | (void)cached_has_bits; |
5908 | |
|
5909 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
5910 | 0 | { |
5911 | | // bytes payload = 8; |
5912 | 0 | if (!this_._internal_payload().empty()) { |
5913 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
5914 | 0 | this_._internal_payload()); |
5915 | 0 | } |
5916 | | // bool fin = 1; |
5917 | 0 | if (this_._internal_fin() != 0) { |
5918 | 0 | total_size += 2; |
5919 | 0 | } |
5920 | | // bool rsv1 = 2; |
5921 | 0 | if (this_._internal_rsv1() != 0) { |
5922 | 0 | total_size += 2; |
5923 | 0 | } |
5924 | | // bool rsv2 = 3; |
5925 | 0 | if (this_._internal_rsv2() != 0) { |
5926 | 0 | total_size += 2; |
5927 | 0 | } |
5928 | | // bool rsv3 = 4; |
5929 | 0 | if (this_._internal_rsv3() != 0) { |
5930 | 0 | total_size += 2; |
5931 | 0 | } |
5932 | | // uint32 opcode = 5; |
5933 | 0 | if (this_._internal_opcode() != 0) { |
5934 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
5935 | 0 | this_._internal_opcode()); |
5936 | 0 | } |
5937 | | // bool masked = 6; |
5938 | 0 | if (this_._internal_masked() != 0) { |
5939 | 0 | total_size += 2; |
5940 | 0 | } |
5941 | | // uint32 mask_key = 7; |
5942 | 0 | if (this_._internal_mask_key() != 0) { |
5943 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
5944 | 0 | this_._internal_mask_key()); |
5945 | 0 | } |
5946 | | // uint32 length_form = 9; |
5947 | 0 | if (this_._internal_length_form() != 0) { |
5948 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
5949 | 0 | this_._internal_length_form()); |
5950 | 0 | } |
5951 | 0 | } |
5952 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
5953 | 0 | &this_._impl_._cached_size_); |
5954 | 0 | } |
5955 | | |
5956 | 0 | void WebSocketFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
5957 | 0 | auto* const _this = static_cast<WebSocketFrame*>(&to_msg); |
5958 | 0 | auto& from = static_cast<const WebSocketFrame&>(from_msg); |
5959 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.WebSocketFrame) |
5960 | 0 | ABSL_DCHECK_NE(&from, _this); |
5961 | 0 | ::uint32_t cached_has_bits = 0; |
5962 | 0 | (void) cached_has_bits; |
5963 | |
|
5964 | 0 | if (!from._internal_payload().empty()) { |
5965 | 0 | _this->_internal_set_payload(from._internal_payload()); |
5966 | 0 | } |
5967 | 0 | if (from._internal_fin() != 0) { |
5968 | 0 | _this->_impl_.fin_ = from._impl_.fin_; |
5969 | 0 | } |
5970 | 0 | if (from._internal_rsv1() != 0) { |
5971 | 0 | _this->_impl_.rsv1_ = from._impl_.rsv1_; |
5972 | 0 | } |
5973 | 0 | if (from._internal_rsv2() != 0) { |
5974 | 0 | _this->_impl_.rsv2_ = from._impl_.rsv2_; |
5975 | 0 | } |
5976 | 0 | if (from._internal_rsv3() != 0) { |
5977 | 0 | _this->_impl_.rsv3_ = from._impl_.rsv3_; |
5978 | 0 | } |
5979 | 0 | if (from._internal_opcode() != 0) { |
5980 | 0 | _this->_impl_.opcode_ = from._impl_.opcode_; |
5981 | 0 | } |
5982 | 0 | if (from._internal_masked() != 0) { |
5983 | 0 | _this->_impl_.masked_ = from._impl_.masked_; |
5984 | 0 | } |
5985 | 0 | if (from._internal_mask_key() != 0) { |
5986 | 0 | _this->_impl_.mask_key_ = from._impl_.mask_key_; |
5987 | 0 | } |
5988 | 0 | if (from._internal_length_form() != 0) { |
5989 | 0 | _this->_impl_.length_form_ = from._impl_.length_form_; |
5990 | 0 | } |
5991 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
5992 | 0 | } |
5993 | | |
5994 | 0 | void WebSocketFrame::CopyFrom(const WebSocketFrame& from) { |
5995 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.WebSocketFrame) |
5996 | 0 | if (&from == this) return; |
5997 | 0 | Clear(); |
5998 | 0 | MergeFrom(from); |
5999 | 0 | } |
6000 | | |
6001 | | |
6002 | 0 | void WebSocketFrame::InternalSwap(WebSocketFrame* PROTOBUF_RESTRICT other) { |
6003 | 0 | using std::swap; |
6004 | 0 | auto* arena = GetArena(); |
6005 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
6006 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
6007 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.payload_, &other->_impl_.payload_, arena); |
6008 | 0 | ::google::protobuf::internal::memswap< |
6009 | 0 | PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.length_form_) |
6010 | 0 | + sizeof(WebSocketFrame::_impl_.length_form_) |
6011 | 0 | - PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.fin_)>( |
6012 | 0 | reinterpret_cast<char*>(&_impl_.fin_), |
6013 | 0 | reinterpret_cast<char*>(&other->_impl_.fin_)); |
6014 | 0 | } |
6015 | | |
6016 | 0 | ::google::protobuf::Metadata WebSocketFrame::GetMetadata() const { |
6017 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
6018 | 0 | } |
6019 | | // @@protoc_insertion_point(namespace_scope) |
6020 | | } // namespace proto |
6021 | | } // namespace fuzzer |
6022 | | } // namespace curl |
6023 | | namespace google { |
6024 | | namespace protobuf { |
6025 | | } // namespace protobuf |
6026 | | } // namespace google |
6027 | | // @@protoc_insertion_point(global_scope) |
6028 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type |
6029 | | _static_init2_ PROTOBUF_UNUSED = |
6030 | | (::_pbi::AddDescriptors(&descriptor_table_curl_5ffuzzer_2eproto), |
6031 | | ::std::false_type{}); |
6032 | | #include "google/protobuf/port_undef.inc" |