/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 MimeDataPart::Impl_::Impl_( |
152 | | ::_pbi::ConstantInitialized) noexcept |
153 | | : headers_{}, |
154 | | name_( |
155 | | &::google::protobuf::internal::fixed_address_empty_string, |
156 | | ::_pbi::ConstantInitialized()), |
157 | | data_( |
158 | | &::google::protobuf::internal::fixed_address_empty_string, |
159 | | ::_pbi::ConstantInitialized()), |
160 | | filename_( |
161 | | &::google::protobuf::internal::fixed_address_empty_string, |
162 | | ::_pbi::ConstantInitialized()), |
163 | | content_type_( |
164 | | &::google::protobuf::internal::fixed_address_empty_string, |
165 | | ::_pbi::ConstantInitialized()), |
166 | | encoder_{static_cast< ::curl::fuzzer::proto::MimeEncoder >(0)}, |
167 | | _cached_size_{0} {} |
168 | | |
169 | | template <typename> |
170 | | PROTOBUF_CONSTEXPR MimeDataPart::MimeDataPart(::_pbi::ConstantInitialized) |
171 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
172 | | : ::google::protobuf::Message(_class_data_.base()), |
173 | | #else // PROTOBUF_CUSTOM_VTABLE |
174 | | : ::google::protobuf::Message(), |
175 | | #endif // PROTOBUF_CUSTOM_VTABLE |
176 | | _impl_(::_pbi::ConstantInitialized()) { |
177 | | } |
178 | | struct MimeDataPartDefaultTypeInternal { |
179 | 0 | PROTOBUF_CONSTEXPR MimeDataPartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
180 | 0 | ~MimeDataPartDefaultTypeInternal() {} |
181 | | union { |
182 | | MimeDataPart _instance; |
183 | | }; |
184 | | }; |
185 | | |
186 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
187 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MimeDataPartDefaultTypeInternal _MimeDataPart_default_instance_; |
188 | | |
189 | | inline constexpr BackpressureConfig::Impl_::Impl_( |
190 | | ::_pbi::ConstantInitialized) noexcept |
191 | | : recv_buf_bytes_{0u}, |
192 | | drain_limit_{0u}, |
193 | | _cached_size_{0} {} |
194 | | |
195 | | template <typename> |
196 | | PROTOBUF_CONSTEXPR BackpressureConfig::BackpressureConfig(::_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 BackpressureConfigDefaultTypeInternal { |
205 | 0 | PROTOBUF_CONSTEXPR BackpressureConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
206 | 0 | ~BackpressureConfigDefaultTypeInternal() {} |
207 | | union { |
208 | | BackpressureConfig _instance; |
209 | | }; |
210 | | }; |
211 | | |
212 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
213 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BackpressureConfigDefaultTypeInternal _BackpressureConfig_default_instance_; |
214 | | |
215 | | inline constexpr ApiPlan::Impl_::Impl_( |
216 | | ::_pbi::ConstantInitialized) noexcept |
217 | | : share_data_selectors_{}, |
218 | | _share_data_selectors_cached_byte_size_{0}, |
219 | | easy_info_selectors_{}, |
220 | | _easy_info_selectors_cached_byte_size_{0}, |
221 | | duplicate_easy_{false}, |
222 | | reset_easy_{false}, |
223 | | attach_share_{false}, |
224 | | wake_multi_{false}, |
225 | | drive_mode_{static_cast< ::curl::fuzzer::proto::ApiDriveMode >(0)}, |
226 | | _cached_size_{0} {} |
227 | | |
228 | | template <typename> |
229 | | PROTOBUF_CONSTEXPR ApiPlan::ApiPlan(::_pbi::ConstantInitialized) |
230 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
231 | | : ::google::protobuf::Message(_class_data_.base()), |
232 | | #else // PROTOBUF_CUSTOM_VTABLE |
233 | | : ::google::protobuf::Message(), |
234 | | #endif // PROTOBUF_CUSTOM_VTABLE |
235 | | _impl_(::_pbi::ConstantInitialized()) { |
236 | | } |
237 | | struct ApiPlanDefaultTypeInternal { |
238 | 0 | PROTOBUF_CONSTEXPR ApiPlanDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
239 | 0 | ~ApiPlanDefaultTypeInternal() {} |
240 | | union { |
241 | | ApiPlan _instance; |
242 | | }; |
243 | | }; |
244 | | |
245 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
246 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ApiPlanDefaultTypeInternal _ApiPlan_default_instance_; |
247 | | |
248 | | inline constexpr MimeSubparts::Impl_::Impl_( |
249 | | ::_pbi::ConstantInitialized) noexcept |
250 | | : parts_{}, |
251 | | _cached_size_{0} {} |
252 | | |
253 | | template <typename> |
254 | | PROTOBUF_CONSTEXPR MimeSubparts::MimeSubparts(::_pbi::ConstantInitialized) |
255 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
256 | | : ::google::protobuf::Message(_class_data_.base()), |
257 | | #else // PROTOBUF_CUSTOM_VTABLE |
258 | | : ::google::protobuf::Message(), |
259 | | #endif // PROTOBUF_CUSTOM_VTABLE |
260 | | _impl_(::_pbi::ConstantInitialized()) { |
261 | | } |
262 | | struct MimeSubpartsDefaultTypeInternal { |
263 | 0 | PROTOBUF_CONSTEXPR MimeSubpartsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
264 | 0 | ~MimeSubpartsDefaultTypeInternal() {} |
265 | | union { |
266 | | MimeSubparts _instance; |
267 | | }; |
268 | | }; |
269 | | |
270 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
271 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MimeSubpartsDefaultTypeInternal _MimeSubparts_default_instance_; |
272 | | |
273 | | inline constexpr Connection::Impl_::Impl_( |
274 | | ::_pbi::ConstantInitialized) noexcept |
275 | | : _cached_size_{0}, |
276 | | on_readable_{}, |
277 | | server_frames_{}, |
278 | | initial_response_( |
279 | | &::google::protobuf::internal::fixed_address_empty_string, |
280 | | ::_pbi::ConstantInitialized()), |
281 | | backpressure_{nullptr}, |
282 | | manual_probes_{nullptr} {} |
283 | | |
284 | | template <typename> |
285 | | PROTOBUF_CONSTEXPR Connection::Connection(::_pbi::ConstantInitialized) |
286 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
287 | | : ::google::protobuf::Message(_class_data_.base()), |
288 | | #else // PROTOBUF_CUSTOM_VTABLE |
289 | | : ::google::protobuf::Message(), |
290 | | #endif // PROTOBUF_CUSTOM_VTABLE |
291 | | _impl_(::_pbi::ConstantInitialized()) { |
292 | | } |
293 | | struct ConnectionDefaultTypeInternal { |
294 | 0 | PROTOBUF_CONSTEXPR ConnectionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
295 | 0 | ~ConnectionDefaultTypeInternal() {} |
296 | | union { |
297 | | Connection _instance; |
298 | | }; |
299 | | }; |
300 | | |
301 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
302 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionDefaultTypeInternal _Connection_default_instance_; |
303 | | |
304 | | inline constexpr MimePart::Impl_::Impl_( |
305 | | ::_pbi::ConstantInitialized) noexcept |
306 | | : headers_{}, |
307 | | name_( |
308 | | &::google::protobuf::internal::fixed_address_empty_string, |
309 | | ::_pbi::ConstantInitialized()), |
310 | | filename_( |
311 | | &::google::protobuf::internal::fixed_address_empty_string, |
312 | | ::_pbi::ConstantInitialized()), |
313 | | content_type_( |
314 | | &::google::protobuf::internal::fixed_address_empty_string, |
315 | | ::_pbi::ConstantInitialized()), |
316 | | encoder_{static_cast< ::curl::fuzzer::proto::MimeEncoder >(0)}, |
317 | | content_{}, |
318 | | _cached_size_{0}, |
319 | | _oneof_case_{} {} |
320 | | |
321 | | template <typename> |
322 | | PROTOBUF_CONSTEXPR MimePart::MimePart(::_pbi::ConstantInitialized) |
323 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
324 | | : ::google::protobuf::Message(_class_data_.base()), |
325 | | #else // PROTOBUF_CUSTOM_VTABLE |
326 | | : ::google::protobuf::Message(), |
327 | | #endif // PROTOBUF_CUSTOM_VTABLE |
328 | | _impl_(::_pbi::ConstantInitialized()) { |
329 | | } |
330 | | struct MimePartDefaultTypeInternal { |
331 | 0 | PROTOBUF_CONSTEXPR MimePartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
332 | 0 | ~MimePartDefaultTypeInternal() {} |
333 | | union { |
334 | | MimePart _instance; |
335 | | }; |
336 | | }; |
337 | | |
338 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
339 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MimePartDefaultTypeInternal _MimePart_default_instance_; |
340 | | |
341 | | inline constexpr MimePost::Impl_::Impl_( |
342 | | ::_pbi::ConstantInitialized) noexcept |
343 | | : parts_{}, |
344 | | _cached_size_{0} {} |
345 | | |
346 | | template <typename> |
347 | | PROTOBUF_CONSTEXPR MimePost::MimePost(::_pbi::ConstantInitialized) |
348 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
349 | | : ::google::protobuf::Message(_class_data_.base()), |
350 | | #else // PROTOBUF_CUSTOM_VTABLE |
351 | | : ::google::protobuf::Message(), |
352 | | #endif // PROTOBUF_CUSTOM_VTABLE |
353 | | _impl_(::_pbi::ConstantInitialized()) { |
354 | | } |
355 | | struct MimePostDefaultTypeInternal { |
356 | 0 | PROTOBUF_CONSTEXPR MimePostDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
357 | 0 | ~MimePostDefaultTypeInternal() {} |
358 | | union { |
359 | | MimePost _instance; |
360 | | }; |
361 | | }; |
362 | | |
363 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
364 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MimePostDefaultTypeInternal _MimePost_default_instance_; |
365 | | |
366 | | inline constexpr Scenario::Impl_::Impl_( |
367 | | ::_pbi::ConstantInitialized) noexcept |
368 | | : _cached_size_{0}, |
369 | | options_{}, |
370 | | request_headers_{}, |
371 | | subsequent_connections_{}, |
372 | | telnet_options_{}, |
373 | | host_path_( |
374 | | &::google::protobuf::internal::fixed_address_empty_string, |
375 | | ::_pbi::ConstantInitialized()), |
376 | | connection_{nullptr}, |
377 | | mime_post_{nullptr}, |
378 | | upload_{nullptr}, |
379 | | api_plan_{nullptr}, |
380 | | scheme_{static_cast< ::curl::fuzzer::proto::Scheme >(0)} {} |
381 | | |
382 | | template <typename> |
383 | | PROTOBUF_CONSTEXPR Scenario::Scenario(::_pbi::ConstantInitialized) |
384 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
385 | | : ::google::protobuf::Message(_class_data_.base()), |
386 | | #else // PROTOBUF_CUSTOM_VTABLE |
387 | | : ::google::protobuf::Message(), |
388 | | #endif // PROTOBUF_CUSTOM_VTABLE |
389 | | _impl_(::_pbi::ConstantInitialized()) { |
390 | | } |
391 | | struct ScenarioDefaultTypeInternal { |
392 | 0 | PROTOBUF_CONSTEXPR ScenarioDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
393 | 0 | ~ScenarioDefaultTypeInternal() {} |
394 | | union { |
395 | | Scenario _instance; |
396 | | }; |
397 | | }; |
398 | | |
399 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
400 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ScenarioDefaultTypeInternal _Scenario_default_instance_; |
401 | | } // namespace proto |
402 | | } // namespace fuzzer |
403 | | } // namespace curl |
404 | | static const ::_pb::EnumDescriptor* file_level_enum_descriptors_curl_5ffuzzer_2eproto[6]; |
405 | | static constexpr const ::_pb::ServiceDescriptor** |
406 | | file_level_service_descriptors_curl_5ffuzzer_2eproto = nullptr; |
407 | | const ::uint32_t |
408 | | TableStruct_curl_5ffuzzer_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( |
409 | | protodesc_cold) = { |
410 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_._has_bits_), |
411 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _internal_metadata_), |
412 | | ~0u, // no _extensions_ |
413 | | ~0u, // no _oneof_case_ |
414 | | ~0u, // no _weak_field_map_ |
415 | | ~0u, // no _inlined_string_donated_ |
416 | | ~0u, // no _split_ |
417 | | ~0u, // no sizeof(Split) |
418 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.scheme_), |
419 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.host_path_), |
420 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.options_), |
421 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.connection_), |
422 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.request_headers_), |
423 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.mime_post_), |
424 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.subsequent_connections_), |
425 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.upload_), |
426 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.telnet_options_), |
427 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.api_plan_), |
428 | | ~0u, |
429 | | ~0u, |
430 | | ~0u, |
431 | | 0, |
432 | | ~0u, |
433 | | 1, |
434 | | ~0u, |
435 | | 2, |
436 | | ~0u, |
437 | | 3, |
438 | | ~0u, // no _has_bits_ |
439 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::ApiPlan, _internal_metadata_), |
440 | | ~0u, // no _extensions_ |
441 | | ~0u, // no _oneof_case_ |
442 | | ~0u, // no _weak_field_map_ |
443 | | ~0u, // no _inlined_string_donated_ |
444 | | ~0u, // no _split_ |
445 | | ~0u, // no sizeof(Split) |
446 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::ApiPlan, _impl_.duplicate_easy_), |
447 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::ApiPlan, _impl_.reset_easy_), |
448 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::ApiPlan, _impl_.attach_share_), |
449 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::ApiPlan, _impl_.share_data_selectors_), |
450 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::ApiPlan, _impl_.drive_mode_), |
451 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::ApiPlan, _impl_.wake_multi_), |
452 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::ApiPlan, _impl_.easy_info_selectors_), |
453 | | ~0u, // no _has_bits_ |
454 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::UploadScript, _internal_metadata_), |
455 | | ~0u, // no _extensions_ |
456 | | ~0u, // no _oneof_case_ |
457 | | ~0u, // no _weak_field_map_ |
458 | | ~0u, // no _inlined_string_donated_ |
459 | | ~0u, // no _split_ |
460 | | ~0u, // no sizeof(Split) |
461 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::UploadScript, _impl_.data_), |
462 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::UploadScript, _impl_.read_sizes_), |
463 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::UploadScript, _impl_.terminal_), |
464 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::UploadScript, _impl_.seek_result_), |
465 | | ~0u, // no _has_bits_ |
466 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimePost, _internal_metadata_), |
467 | | ~0u, // no _extensions_ |
468 | | ~0u, // no _oneof_case_ |
469 | | ~0u, // no _weak_field_map_ |
470 | | ~0u, // no _inlined_string_donated_ |
471 | | ~0u, // no _split_ |
472 | | ~0u, // no sizeof(Split) |
473 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimePost, _impl_.parts_), |
474 | | ~0u, // no _has_bits_ |
475 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimePart, _internal_metadata_), |
476 | | ~0u, // no _extensions_ |
477 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimePart, _impl_._oneof_case_[0]), |
478 | | ~0u, // no _weak_field_map_ |
479 | | ~0u, // no _inlined_string_donated_ |
480 | | ~0u, // no _split_ |
481 | | ~0u, // no sizeof(Split) |
482 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimePart, _impl_.name_), |
483 | | ::_pbi::kInvalidFieldOffsetTag, |
484 | | ::_pbi::kInvalidFieldOffsetTag, |
485 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimePart, _impl_.filename_), |
486 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimePart, _impl_.content_type_), |
487 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimePart, _impl_.encoder_), |
488 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimePart, _impl_.headers_), |
489 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimePart, _impl_.content_), |
490 | | ~0u, // no _has_bits_ |
491 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimeSubparts, _internal_metadata_), |
492 | | ~0u, // no _extensions_ |
493 | | ~0u, // no _oneof_case_ |
494 | | ~0u, // no _weak_field_map_ |
495 | | ~0u, // no _inlined_string_donated_ |
496 | | ~0u, // no _split_ |
497 | | ~0u, // no sizeof(Split) |
498 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimeSubparts, _impl_.parts_), |
499 | | ~0u, // no _has_bits_ |
500 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimeDataPart, _internal_metadata_), |
501 | | ~0u, // no _extensions_ |
502 | | ~0u, // no _oneof_case_ |
503 | | ~0u, // no _weak_field_map_ |
504 | | ~0u, // no _inlined_string_donated_ |
505 | | ~0u, // no _split_ |
506 | | ~0u, // no sizeof(Split) |
507 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimeDataPart, _impl_.name_), |
508 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimeDataPart, _impl_.data_), |
509 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimeDataPart, _impl_.filename_), |
510 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimeDataPart, _impl_.content_type_), |
511 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimeDataPart, _impl_.encoder_), |
512 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimeDataPart, _impl_.headers_), |
513 | | ~0u, // no _has_bits_ |
514 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::SetOption, _internal_metadata_), |
515 | | ~0u, // no _extensions_ |
516 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::SetOption, _impl_._oneof_case_[0]), |
517 | | ~0u, // no _weak_field_map_ |
518 | | ~0u, // no _inlined_string_donated_ |
519 | | ~0u, // no _split_ |
520 | | ~0u, // no sizeof(Split) |
521 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::SetOption, _impl_.option_id_), |
522 | | ::_pbi::kInvalidFieldOffsetTag, |
523 | | ::_pbi::kInvalidFieldOffsetTag, |
524 | | ::_pbi::kInvalidFieldOffsetTag, |
525 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::SetOption, _impl_.value_), |
526 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Connection, _impl_._has_bits_), |
527 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Connection, _internal_metadata_), |
528 | | ~0u, // no _extensions_ |
529 | | ~0u, // no _oneof_case_ |
530 | | ~0u, // no _weak_field_map_ |
531 | | ~0u, // no _inlined_string_donated_ |
532 | | ~0u, // no _split_ |
533 | | ~0u, // no sizeof(Split) |
534 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Connection, _impl_.initial_response_), |
535 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Connection, _impl_.on_readable_), |
536 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Connection, _impl_.server_frames_), |
537 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Connection, _impl_.backpressure_), |
538 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Connection, _impl_.manual_probes_), |
539 | | ~0u, |
540 | | ~0u, |
541 | | ~0u, |
542 | | 0, |
543 | | 1, |
544 | | ~0u, // no _has_bits_ |
545 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WsManualProbes, _internal_metadata_), |
546 | | ~0u, // no _extensions_ |
547 | | ~0u, // no _oneof_case_ |
548 | | ~0u, // no _weak_field_map_ |
549 | | ~0u, // no _inlined_string_donated_ |
550 | | ~0u, // no _split_ |
551 | | ~0u, // no sizeof(Split) |
552 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WsManualProbes, _impl_.flag_matrix_), |
553 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WsManualProbes, _impl_.unaligned_send_), |
554 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WsManualProbes, _impl_.raw_send_), |
555 | | ~0u, // no _has_bits_ |
556 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::BackpressureConfig, _internal_metadata_), |
557 | | ~0u, // no _extensions_ |
558 | | ~0u, // no _oneof_case_ |
559 | | ~0u, // no _weak_field_map_ |
560 | | ~0u, // no _inlined_string_donated_ |
561 | | ~0u, // no _split_ |
562 | | ~0u, // no sizeof(Split) |
563 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::BackpressureConfig, _impl_.recv_buf_bytes_), |
564 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::BackpressureConfig, _impl_.drain_limit_), |
565 | | ~0u, // no _has_bits_ |
566 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _internal_metadata_), |
567 | | ~0u, // no _extensions_ |
568 | | ~0u, // no _oneof_case_ |
569 | | ~0u, // no _weak_field_map_ |
570 | | ~0u, // no _inlined_string_donated_ |
571 | | ~0u, // no _split_ |
572 | | ~0u, // no sizeof(Split) |
573 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.fin_), |
574 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.rsv1_), |
575 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.rsv2_), |
576 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.rsv3_), |
577 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.opcode_), |
578 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.masked_), |
579 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.mask_key_), |
580 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.payload_), |
581 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.length_form_), |
582 | | }; |
583 | | |
584 | | static const ::_pbi::MigrationSchema |
585 | | schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
586 | | {0, 18, -1, sizeof(::curl::fuzzer::proto::Scenario)}, |
587 | | {28, -1, -1, sizeof(::curl::fuzzer::proto::ApiPlan)}, |
588 | | {43, -1, -1, sizeof(::curl::fuzzer::proto::UploadScript)}, |
589 | | {55, -1, -1, sizeof(::curl::fuzzer::proto::MimePost)}, |
590 | | {64, -1, -1, sizeof(::curl::fuzzer::proto::MimePart)}, |
591 | | {80, -1, -1, sizeof(::curl::fuzzer::proto::MimeSubparts)}, |
592 | | {89, -1, -1, sizeof(::curl::fuzzer::proto::MimeDataPart)}, |
593 | | {103, -1, -1, sizeof(::curl::fuzzer::proto::SetOption)}, |
594 | | {116, 129, -1, sizeof(::curl::fuzzer::proto::Connection)}, |
595 | | {134, -1, -1, sizeof(::curl::fuzzer::proto::WsManualProbes)}, |
596 | | {145, -1, -1, sizeof(::curl::fuzzer::proto::BackpressureConfig)}, |
597 | | {155, -1, -1, sizeof(::curl::fuzzer::proto::WebSocketFrame)}, |
598 | | }; |
599 | | static const ::_pb::Message* const file_default_instances[] = { |
600 | | &::curl::fuzzer::proto::_Scenario_default_instance_._instance, |
601 | | &::curl::fuzzer::proto::_ApiPlan_default_instance_._instance, |
602 | | &::curl::fuzzer::proto::_UploadScript_default_instance_._instance, |
603 | | &::curl::fuzzer::proto::_MimePost_default_instance_._instance, |
604 | | &::curl::fuzzer::proto::_MimePart_default_instance_._instance, |
605 | | &::curl::fuzzer::proto::_MimeSubparts_default_instance_._instance, |
606 | | &::curl::fuzzer::proto::_MimeDataPart_default_instance_._instance, |
607 | | &::curl::fuzzer::proto::_SetOption_default_instance_._instance, |
608 | | &::curl::fuzzer::proto::_Connection_default_instance_._instance, |
609 | | &::curl::fuzzer::proto::_WsManualProbes_default_instance_._instance, |
610 | | &::curl::fuzzer::proto::_BackpressureConfig_default_instance_._instance, |
611 | | &::curl::fuzzer::proto::_WebSocketFrame_default_instance_._instance, |
612 | | }; |
613 | | const char descriptor_table_protodef_curl_5ffuzzer_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( |
614 | | protodesc_cold) = { |
615 | | "\n\021curl_fuzzer.proto\022\021curl.fuzzer.proto\"\251" |
616 | | "\003\n\010Scenario\022)\n\006scheme\030\001 \001(\0162\031.curl.fuzze" |
617 | | "r.proto.Scheme\022\021\n\thost_path\030\002 \001(\014\022-\n\007opt" |
618 | | "ions\030\003 \003(\0132\034.curl.fuzzer.proto.SetOption" |
619 | | "\0221\n\nconnection\030\004 \001(\0132\035.curl.fuzzer.proto" |
620 | | ".Connection\022\027\n\017request_headers\030\005 \003(\014\022.\n\t" |
621 | | "mime_post\030\006 \001(\0132\033.curl.fuzzer.proto.Mime" |
622 | | "Post\022=\n\026subsequent_connections\030\007 \003(\0132\035.c" |
623 | | "url.fuzzer.proto.Connection\022/\n\006upload\030\010 " |
624 | | "\001(\0132\037.curl.fuzzer.proto.UploadScript\022\026\n\016" |
625 | | "telnet_options\030\t \003(\014\022,\n\010api_plan\030\n \001(\0132\032" |
626 | | ".curl.fuzzer.proto.ApiPlan\"\317\001\n\007ApiPlan\022\026" |
627 | | "\n\016duplicate_easy\030\001 \001(\010\022\022\n\nreset_easy\030\002 \001" |
628 | | "(\010\022\024\n\014attach_share\030\003 \001(\010\022\034\n\024share_data_s" |
629 | | "electors\030\004 \003(\r\0223\n\ndrive_mode\030\005 \001(\0162\037.cur" |
630 | | "l.fuzzer.proto.ApiDriveMode\022\022\n\nwake_mult" |
631 | | "i\030\006 \001(\010\022\033\n\023easy_info_selectors\030\007 \003(\r\"\237\001\n" |
632 | | "\014UploadScript\022\014\n\004data\030\001 \001(\014\022\022\n\nread_size" |
633 | | "s\030\002 \003(\r\0223\n\010terminal\030\003 \001(\0162!.curl.fuzzer." |
634 | | "proto.UploadTerminal\0228\n\013seek_result\030\004 \001(" |
635 | | "\0162#.curl.fuzzer.proto.UploadSeekResult\"6" |
636 | | "\n\010MimePost\022*\n\005parts\030\001 \003(\0132\033.curl.fuzzer." |
637 | | "proto.MimePart\"\322\001\n\010MimePart\022\014\n\004name\030\001 \001(" |
638 | | "\014\022\016\n\004data\030\002 \001(\014H\000\0223\n\010subparts\030\007 \001(\0132\037.cu" |
639 | | "rl.fuzzer.proto.MimeSubpartsH\000\022\020\n\010filena" |
640 | | "me\030\003 \001(\014\022\024\n\014content_type\030\004 \001(\014\022/\n\007encode" |
641 | | "r\030\005 \001(\0162\036.curl.fuzzer.proto.MimeEncoder\022" |
642 | | "\017\n\007headers\030\006 \003(\014B\t\n\007content\">\n\014MimeSubpa" |
643 | | "rts\022.\n\005parts\030\001 \003(\0132\037.curl.fuzzer.proto.M" |
644 | | "imeDataPart\"\224\001\n\014MimeDataPart\022\014\n\004name\030\001 \001" |
645 | | "(\014\022\014\n\004data\030\002 \001(\014\022\020\n\010filename\030\003 \001(\014\022\024\n\014co" |
646 | | "ntent_type\030\004 \001(\014\022/\n\007encoder\030\005 \001(\0162\036.curl" |
647 | | ".fuzzer.proto.MimeEncoder\022\017\n\007headers\030\006 \003" |
648 | | "(\014\"\214\001\n\tSetOption\0222\n\toption_id\030\001 \001(\0162\037.cu" |
649 | | "rl.fuzzer.proto.CurlOptionId\022\026\n\014string_v" |
650 | | "alue\030\n \001(\014H\000\022\024\n\nuint_value\030\013 \001(\004H\000\022\024\n\nbo" |
651 | | "ol_value\030\014 \001(\010H\000B\007\n\005value\"\354\001\n\nConnection" |
652 | | "\022\030\n\020initial_response\030\001 \001(\014\022\023\n\013on_readabl" |
653 | | "e\030\002 \003(\014\0228\n\rserver_frames\030\003 \003(\0132!.curl.fu" |
654 | | "zzer.proto.WebSocketFrame\022;\n\014backpressur" |
655 | | "e\030\004 \001(\0132%.curl.fuzzer.proto.Backpressure" |
656 | | "Config\0228\n\rmanual_probes\030\005 \001(\0132!.curl.fuz" |
657 | | "zer.proto.WsManualProbes\"O\n\016WsManualProb" |
658 | | "es\022\023\n\013flag_matrix\030\001 \001(\010\022\026\n\016unaligned_sen" |
659 | | "d\030\002 \001(\010\022\020\n\010raw_send\030\003 \001(\010\"A\n\022Backpressur" |
660 | | "eConfig\022\026\n\016recv_buf_bytes\030\001 \001(\r\022\023\n\013drain" |
661 | | "_limit\030\002 \001(\r\"\237\001\n\016WebSocketFrame\022\013\n\003fin\030\001" |
662 | | " \001(\010\022\014\n\004rsv1\030\002 \001(\010\022\014\n\004rsv2\030\003 \001(\010\022\014\n\004rsv3" |
663 | | "\030\004 \001(\010\022\016\n\006opcode\030\005 \001(\r\022\016\n\006masked\030\006 \001(\010\022\020" |
664 | | "\n\010mask_key\030\007 \001(\r\022\017\n\007payload\030\010 \001(\014\022\023\n\013len" |
665 | | "gth_form\030\t \001(\r*c\n\014ApiDriveMode\022\033\n\027API_DR" |
666 | | "IVE_MULTI_PERFORM\020\000\022\032\n\026API_DRIVE_MULTI_S" |
667 | | "OCKET\020\001\022\032\n\026API_DRIVE_EASY_PERFORM\020\002*_\n\016U" |
668 | | "ploadTerminal\022\027\n\023UPLOAD_TERMINAL_EOF\020\000\022\031" |
669 | | "\n\025UPLOAD_TERMINAL_ABORT\020\001\022\031\n\025UPLOAD_TERM" |
670 | | "INAL_PAUSE\020\002*V\n\020UploadSeekResult\022\022\n\016UPLO" |
671 | | "AD_SEEK_OK\020\000\022\030\n\024UPLOAD_SEEK_CANTSEEK\020\001\022\024" |
672 | | "\n\020UPLOAD_SEEK_FAIL\020\002*\256\001\n\013MimeEncoder\022\034\n\030" |
673 | | "MIME_ENCODER_UNSPECIFIED\020\000\022\027\n\023MIME_ENCOD" |
674 | | "ER_BINARY\020\001\022\025\n\021MIME_ENCODER_8BIT\020\002\022\025\n\021MI" |
675 | | "ME_ENCODER_7BIT\020\003\022\027\n\023MIME_ENCODER_BASE64" |
676 | | "\020\004\022!\n\035MIME_ENCODER_QUOTED_PRINTABLE\020\005*\226\001" |
677 | | "\n\006Scheme\022\026\n\022SCHEME_UNSPECIFIED\020\000\022\017\n\013SCHE" |
678 | | "ME_HTTP\020\001\022\020\n\014SCHEME_HTTPS\020\002\022\r\n\tSCHEME_WS" |
679 | | "\020\003\022\016\n\nSCHEME_WSS\020\004\022\021\n\rSCHEME_TELNET\020\005\022\016\n" |
680 | | "\nSCHEME_FTP\020\006\022\017\n\013SCHEME_TFTP\020\007*\271\021\n\014CurlO" |
681 | | "ptionId\022\033\n\027CURL_OPTION_UNSPECIFIED\020\000\022\032\n\025" |
682 | | "CURLOPT_CUSTOMREQUEST\020\264N\022\023\n\017CURLOPT_HTTP" |
683 | | "GET\020P\022\022\n\016CURLOPT_NOBODY\020,\022\020\n\014CURLOPT_POS" |
684 | | "T\020/\022\027\n\022CURLOPT_POSTFIELDS\020\237N\022\032\n\026CURLOPT_" |
685 | | "FOLLOWLOCATION\0204\022\025\n\021CURLOPT_MAXREDIRS\020D\022" |
686 | | "\026\n\021CURLOPT_USERAGENT\020\242N\022\034\n\027CURLOPT_ACCEP" |
687 | | "T_ENCODING\020\366N\022\022\n\016CURLOPT_HEADER\020*\022\027\n\023CUR" |
688 | | "LOPT_FAILONERROR\020-\022\030\n\024CURLOPT_HTTP_VERSI" |
689 | | "ON\020T\022\033\n\026CURLOPT_HTTP09_ALLOWED\020\235\002\022\027\n\023CUR" |
690 | | "LOPT_AUTOREFERER\020:\022\024\n\017CURLOPT_REFERER\020\240N" |
691 | | "\022\031\n\024CURLOPT_CONNECT_ONLY\020\215\001\022\027\n\022CURLOPT_W" |
692 | | "S_OPTIONS\020\300\002\022\022\n\016CURLOPT_UPLOAD\020.\022\036\n\030CURL" |
693 | | "OPT_INFILESIZE_LARGE\020\243\353\001\022\020\n\014CURLOPT_CRLF" |
694 | | "\020\033\022\032\n\026CURLOPT_SSL_VERIFYPEER\020@\022\032\n\026CURLOP" |
695 | | "T_SSL_VERIFYHOST\020Q\022\025\n\020CURLOPT_CERTINFO\020\254" |
696 | | "\001\022\026\n\022CURLOPT_SSLVERSION\020 \022\034\n\027CURLOPT_SSL" |
697 | | "_CIPHER_LIST\020\343N\022\032\n\025CURLOPT_TLS13_CIPHERS" |
698 | | "\020\244P\022\032\n\025CURLOPT_SSL_EC_CURVES\020\272P\022%\n CURLO" |
699 | | "PT_SSL_SIGNATURE_ALGORITHMS\020\330P\022 \n\033CURLOP" |
700 | | "T_SSL_SESSIONID_CACHE\020\226\001\022\034\n\027CURLOPT_SSL_" |
701 | | "ENABLE_ALPN\020\342\001\022\030\n\023CURLOPT_SSL_OPTIONS\020\330\001" |
702 | | "\022\034\n\027CURLOPT_PINNEDPUBLICKEY\020\366O\022\023\n\016CURLOP" |
703 | | "T_COOKIE\020\246N\022\027\n\022CURLOPT_COOKIELIST\020\227O\022\031\n\025" |
704 | | "CURLOPT_COOKIESESSION\020`\022\024\n\020CURLOPT_HTTPA" |
705 | | "UTH\020k\022\024\n\017CURLOPT_USERPWD\020\225N\022\025\n\020CURLOPT_U" |
706 | | "SERNAME\020\275O\022\025\n\020CURLOPT_PASSWORD\020\276O\022\035\n\031CUR" |
707 | | "LOPT_UNRESTRICTED_AUTH\020i\022\033\n\026CURLOPT_XOAU" |
708 | | "TH2_BEARER\020\354O\022\026\n\021CURLOPT_AWS_SIGV4\020\301P\022\031\n" |
709 | | "\025CURLOPT_TIMECONDITION\020!\022\035\n\027CURLOPT_TIME" |
710 | | "VALUE_LARGE\020\276\354\001\022\030\n\023CURLOPT_ALTSVC_CTRL\020\236" |
711 | | "\002\022\026\n\021CURLOPT_HSTS_CTRL\020\253\002\022\022\n\rCURLOPT_RAN" |
712 | | "GE\020\227N\022\037\n\031CURLOPT_RESUME_FROM_LARGE\020\244\353\001\022\024" |
713 | | "\n\020CURLOPT_FILETIME\020E\022\033\n\026CURLOPT_REQUEST_" |
714 | | "TARGET\020\232P\022\027\n\022CURLOPT_PATH_AS_IS\020\352\001\022\"\n\035CU" |
715 | | "RLOPT_EXPECT_100_TIMEOUT_MS\020\343\001\022\"\n\035CURLOP" |
716 | | "T_KEEP_SENDING_ON_ERROR\020\365\001\022\026\n\021CURLOPT_PO" |
717 | | "STREDIR\020\241\001\022\036\n\031CURLOPT_TRANSFER_ENCODING\020" |
718 | | "\317\001\022#\n\036CURLOPT_HTTP_TRANSFER_DECODING\020\235\001\022" |
719 | | "\"\n\035CURLOPT_HTTP_CONTENT_DECODING\020\236\001\022\"\n\035C" |
720 | | "URLOPT_IGNORE_CONTENT_LENGTH\020\210\001\022%\n CURLO" |
721 | | "PT_DISALLOW_USERNAME_IN_URL\020\226\002\022\031\n\025CURLOP" |
722 | | "T_FRESH_CONNECT\020J\022\030\n\024CURLOPT_FORBID_REUS" |
723 | | "E\020K\022\030\n\023CURLOPT_MAXAGE_CONN\020\240\002\022\035\n\030CURLOPT" |
724 | | "_MAXLIFETIME_CONN\020\272\002\022\036\n\031CURLOPT_UPLOAD_B" |
725 | | "UFFERSIZE\020\230\002\022\031\n\024CURLOPT_MIME_OPTIONS\020\273\002\022" |
726 | | "\037\n\031CURLOPT_MAXFILESIZE_LARGE\020\245\353\001\022\026\n\022CURL" |
727 | | "OPT_BUFFERSIZE\020b\022\027\n\023CURLOPT_DIRLISTONLY\020" |
728 | | "0\022\022\n\016CURLOPT_APPEND\0202\022\030\n\024CURLOPT_TRANSFE" |
729 | | "RTEXT\0205\022\030\n\024CURLOPT_FTP_USE_EPSV\020U\022#\n\037CUR" |
730 | | "LOPT_FTP_CREATE_MISSING_DIRS\020n\022\030\n\023CURLOP" |
731 | | "T_FTP_ACCOUNT\020\226O\022\035\n\030CURLOPT_FTP_SKIP_PAS" |
732 | | "V_IP\020\211\001\022\033\n\026CURLOPT_FTP_FILEMETHOD\020\212\001\022$\n\037" |
733 | | "CURLOPT_FTP_ALTERNATIVE_TO_USER\020\243O\022\031\n\024CU" |
734 | | "RLOPT_FTP_USE_PRET\020\274\001\022\032\n\025CURLOPT_WILDCAR" |
735 | | "DMATCH\020\305\001\022\031\n\024CURLOPT_TFTP_BLKSIZE\020\262\001\022\034\n\027" |
736 | | "CURLOPT_TFTP_NO_OPTIONS\020\362\001b\006proto3" |
737 | | }; |
738 | | static ::absl::once_flag descriptor_table_curl_5ffuzzer_2eproto_once; |
739 | | PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_curl_5ffuzzer_2eproto = { |
740 | | false, |
741 | | false, |
742 | | 4874, |
743 | | descriptor_table_protodef_curl_5ffuzzer_2eproto, |
744 | | "curl_fuzzer.proto", |
745 | | &descriptor_table_curl_5ffuzzer_2eproto_once, |
746 | | nullptr, |
747 | | 0, |
748 | | 12, |
749 | | schemas, |
750 | | file_default_instances, |
751 | | TableStruct_curl_5ffuzzer_2eproto::offsets, |
752 | | file_level_enum_descriptors_curl_5ffuzzer_2eproto, |
753 | | file_level_service_descriptors_curl_5ffuzzer_2eproto, |
754 | | }; |
755 | | namespace curl { |
756 | | namespace fuzzer { |
757 | | namespace proto { |
758 | 0 | const ::google::protobuf::EnumDescriptor* ApiDriveMode_descriptor() { |
759 | 0 | ::google::protobuf::internal::AssignDescriptors(&descriptor_table_curl_5ffuzzer_2eproto); |
760 | 0 | return file_level_enum_descriptors_curl_5ffuzzer_2eproto[0]; |
761 | 0 | } |
762 | | PROTOBUF_CONSTINIT const uint32_t ApiDriveMode_internal_data_[] = { |
763 | | 196608u, 0u, }; |
764 | 0 | bool ApiDriveMode_IsValid(int value) { |
765 | 0 | return 0 <= value && value <= 2; |
766 | 0 | } |
767 | 0 | const ::google::protobuf::EnumDescriptor* UploadTerminal_descriptor() { |
768 | 0 | ::google::protobuf::internal::AssignDescriptors(&descriptor_table_curl_5ffuzzer_2eproto); |
769 | 0 | return file_level_enum_descriptors_curl_5ffuzzer_2eproto[1]; |
770 | 0 | } |
771 | | PROTOBUF_CONSTINIT const uint32_t UploadTerminal_internal_data_[] = { |
772 | | 196608u, 0u, }; |
773 | 0 | bool UploadTerminal_IsValid(int value) { |
774 | 0 | return 0 <= value && value <= 2; |
775 | 0 | } |
776 | 0 | const ::google::protobuf::EnumDescriptor* UploadSeekResult_descriptor() { |
777 | 0 | ::google::protobuf::internal::AssignDescriptors(&descriptor_table_curl_5ffuzzer_2eproto); |
778 | 0 | return file_level_enum_descriptors_curl_5ffuzzer_2eproto[2]; |
779 | 0 | } |
780 | | PROTOBUF_CONSTINIT const uint32_t UploadSeekResult_internal_data_[] = { |
781 | | 196608u, 0u, }; |
782 | 0 | bool UploadSeekResult_IsValid(int value) { |
783 | 0 | return 0 <= value && value <= 2; |
784 | 0 | } |
785 | 0 | const ::google::protobuf::EnumDescriptor* MimeEncoder_descriptor() { |
786 | 0 | ::google::protobuf::internal::AssignDescriptors(&descriptor_table_curl_5ffuzzer_2eproto); |
787 | 0 | return file_level_enum_descriptors_curl_5ffuzzer_2eproto[3]; |
788 | 0 | } |
789 | | PROTOBUF_CONSTINIT const uint32_t MimeEncoder_internal_data_[] = { |
790 | | 393216u, 0u, }; |
791 | 0 | bool MimeEncoder_IsValid(int value) { |
792 | 0 | return 0 <= value && value <= 5; |
793 | 0 | } |
794 | 0 | const ::google::protobuf::EnumDescriptor* Scheme_descriptor() { |
795 | 0 | ::google::protobuf::internal::AssignDescriptors(&descriptor_table_curl_5ffuzzer_2eproto); |
796 | 0 | return file_level_enum_descriptors_curl_5ffuzzer_2eproto[4]; |
797 | 0 | } |
798 | | PROTOBUF_CONSTINIT const uint32_t Scheme_internal_data_[] = { |
799 | | 524288u, 0u, }; |
800 | 0 | bool Scheme_IsValid(int value) { |
801 | 0 | return 0 <= value && value <= 7; |
802 | 0 | } |
803 | 0 | const ::google::protobuf::EnumDescriptor* CurlOptionId_descriptor() { |
804 | 0 | ::google::protobuf::internal::AssignDescriptors(&descriptor_table_curl_5ffuzzer_2eproto); |
805 | 0 | return file_level_enum_descriptors_curl_5ffuzzer_2eproto[5]; |
806 | 0 | } |
807 | | PROTOBUF_CONSTINIT const uint32_t CurlOptionId_internal_data_[] = { |
808 | | 65536u, 1638720u, 2214592512u, 2182806017u, 2149156376u, 9474u, 807408512u, 134350849u, 8405008u, 1180166u, 2963275776u, 2248147968u, 10230u, 10083u, 30115u, 10016u, 10147u, 10305u, 30117u, 10007u, 10022u, 10134u, 10174u, 10276u, 10328u, 30116u, 30270u, 10005u, 10015u, 10018u, 10036u, 10102u, 10135u, 10173u, 10220u, 10266u, 10298u, }; |
809 | 0 | bool CurlOptionId_IsValid(int value) { |
810 | 0 | return ::_pbi::ValidateEnum(value, CurlOptionId_internal_data_); |
811 | 0 | } |
812 | | // =================================================================== |
813 | | |
814 | | class Scenario::_Internal { |
815 | | public: |
816 | | using HasBits = |
817 | | decltype(std::declval<Scenario>()._impl_._has_bits_); |
818 | | static constexpr ::int32_t kHasBitsOffset = |
819 | | 8 * PROTOBUF_FIELD_OFFSET(Scenario, _impl_._has_bits_); |
820 | | }; |
821 | | |
822 | | Scenario::Scenario(::google::protobuf::Arena* arena) |
823 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
824 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
825 | | #else // PROTOBUF_CUSTOM_VTABLE |
826 | 38.5k | : ::google::protobuf::Message(arena) { |
827 | 38.5k | #endif // PROTOBUF_CUSTOM_VTABLE |
828 | 38.5k | SharedCtor(arena); |
829 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.Scenario) |
830 | 38.5k | } |
831 | | inline PROTOBUF_NDEBUG_INLINE Scenario::Impl_::Impl_( |
832 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
833 | | const Impl_& from, const ::curl::fuzzer::proto::Scenario& from_msg) |
834 | 0 | : _has_bits_{from._has_bits_}, |
835 | 0 | _cached_size_{0}, |
836 | 0 | options_{visibility, arena, from.options_}, |
837 | 0 | request_headers_{visibility, arena, from.request_headers_}, |
838 | 0 | subsequent_connections_{visibility, arena, from.subsequent_connections_}, |
839 | 0 | telnet_options_{visibility, arena, from.telnet_options_}, |
840 | 0 | host_path_(arena, from.host_path_) {} |
841 | | |
842 | | Scenario::Scenario( |
843 | | ::google::protobuf::Arena* arena, |
844 | | const Scenario& from) |
845 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
846 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
847 | | #else // PROTOBUF_CUSTOM_VTABLE |
848 | 0 | : ::google::protobuf::Message(arena) { |
849 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
850 | 0 | Scenario* const _this = this; |
851 | 0 | (void)_this; |
852 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
853 | 0 | from._internal_metadata_); |
854 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
855 | 0 | ::uint32_t cached_has_bits = _impl_._has_bits_[0]; |
856 | 0 | _impl_.connection_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::Connection>( |
857 | 0 | arena, *from._impl_.connection_) |
858 | 0 | : nullptr; |
859 | 0 | _impl_.mime_post_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::MimePost>( |
860 | 0 | arena, *from._impl_.mime_post_) |
861 | 0 | : nullptr; |
862 | 0 | _impl_.upload_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::UploadScript>( |
863 | 0 | arena, *from._impl_.upload_) |
864 | 0 | : nullptr; |
865 | 0 | _impl_.api_plan_ = (cached_has_bits & 0x00000008u) ? ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::ApiPlan>( |
866 | 0 | arena, *from._impl_.api_plan_) |
867 | 0 | : nullptr; |
868 | 0 | _impl_.scheme_ = from._impl_.scheme_; |
869 | | |
870 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.Scenario) |
871 | 0 | } |
872 | | inline PROTOBUF_NDEBUG_INLINE Scenario::Impl_::Impl_( |
873 | | ::google::protobuf::internal::InternalVisibility visibility, |
874 | | ::google::protobuf::Arena* arena) |
875 | 38.5k | : _cached_size_{0}, |
876 | 38.5k | options_{visibility, arena}, |
877 | 38.5k | request_headers_{visibility, arena}, |
878 | 38.5k | subsequent_connections_{visibility, arena}, |
879 | 38.5k | telnet_options_{visibility, arena}, |
880 | 38.5k | host_path_(arena) {} |
881 | | |
882 | 38.5k | inline void Scenario::SharedCtor(::_pb::Arena* arena) { |
883 | 38.5k | new (&_impl_) Impl_(internal_visibility(), arena); |
884 | 38.5k | ::memset(reinterpret_cast<char *>(&_impl_) + |
885 | 38.5k | offsetof(Impl_, connection_), |
886 | 38.5k | 0, |
887 | 38.5k | offsetof(Impl_, scheme_) - |
888 | 38.5k | offsetof(Impl_, connection_) + |
889 | 38.5k | sizeof(Impl_::scheme_)); |
890 | 38.5k | } |
891 | 38.5k | Scenario::~Scenario() { |
892 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.Scenario) |
893 | 38.5k | SharedDtor(*this); |
894 | 38.5k | } |
895 | 38.5k | inline void Scenario::SharedDtor(MessageLite& self) { |
896 | 38.5k | Scenario& this_ = static_cast<Scenario&>(self); |
897 | 38.5k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
898 | 38.5k | ABSL_DCHECK(this_.GetArena() == nullptr); |
899 | 38.5k | this_._impl_.host_path_.Destroy(); |
900 | 38.5k | delete this_._impl_.connection_; |
901 | 38.5k | delete this_._impl_.mime_post_; |
902 | 38.5k | delete this_._impl_.upload_; |
903 | 38.5k | delete this_._impl_.api_plan_; |
904 | 38.5k | this_._impl_.~Impl_(); |
905 | 38.5k | } |
906 | | |
907 | | inline void* Scenario::PlacementNew_(const void*, void* mem, |
908 | 0 | ::google::protobuf::Arena* arena) { |
909 | 0 | return ::new (mem) Scenario(arena); |
910 | 0 | } |
911 | 0 | constexpr auto Scenario::InternalNewImpl_() { |
912 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
913 | 0 | PROTOBUF_FIELD_OFFSET(Scenario, _impl_.options_) + |
914 | 0 | decltype(Scenario::_impl_.options_):: |
915 | 0 | InternalGetArenaOffset( |
916 | 0 | ::google::protobuf::Message::internal_visibility()), |
917 | 0 | PROTOBUF_FIELD_OFFSET(Scenario, _impl_.request_headers_) + |
918 | 0 | decltype(Scenario::_impl_.request_headers_):: |
919 | 0 | InternalGetArenaOffset( |
920 | 0 | ::google::protobuf::Message::internal_visibility()), |
921 | 0 | PROTOBUF_FIELD_OFFSET(Scenario, _impl_.subsequent_connections_) + |
922 | 0 | decltype(Scenario::_impl_.subsequent_connections_):: |
923 | 0 | InternalGetArenaOffset( |
924 | 0 | ::google::protobuf::Message::internal_visibility()), |
925 | 0 | PROTOBUF_FIELD_OFFSET(Scenario, _impl_.telnet_options_) + |
926 | 0 | decltype(Scenario::_impl_.telnet_options_):: |
927 | 0 | InternalGetArenaOffset( |
928 | 0 | ::google::protobuf::Message::internal_visibility()), |
929 | 0 | }); |
930 | 0 | if (arena_bits.has_value()) { |
931 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit( |
932 | 0 | sizeof(Scenario), alignof(Scenario), *arena_bits); |
933 | 0 | } else { |
934 | 0 | return ::google::protobuf::internal::MessageCreator(&Scenario::PlacementNew_, |
935 | 0 | sizeof(Scenario), |
936 | 0 | alignof(Scenario)); |
937 | 0 | } |
938 | 0 | } |
939 | | PROTOBUF_CONSTINIT |
940 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
941 | | const ::google::protobuf::internal::ClassDataFull Scenario::_class_data_ = { |
942 | | ::google::protobuf::internal::ClassData{ |
943 | | &_Scenario_default_instance_._instance, |
944 | | &_table_.header, |
945 | | nullptr, // OnDemandRegisterArenaDtor |
946 | | nullptr, // IsInitialized |
947 | | &Scenario::MergeImpl, |
948 | | ::google::protobuf::Message::GetNewImpl<Scenario>(), |
949 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
950 | | &Scenario::SharedDtor, |
951 | | ::google::protobuf::Message::GetClearImpl<Scenario>(), &Scenario::ByteSizeLong, |
952 | | &Scenario::_InternalSerialize, |
953 | | #endif // PROTOBUF_CUSTOM_VTABLE |
954 | | PROTOBUF_FIELD_OFFSET(Scenario, _impl_._cached_size_), |
955 | | false, |
956 | | }, |
957 | | &Scenario::kDescriptorMethods, |
958 | | &descriptor_table_curl_5ffuzzer_2eproto, |
959 | | nullptr, // tracker |
960 | | }; |
961 | 314k | const ::google::protobuf::internal::ClassData* Scenario::GetClassData() const { |
962 | 314k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
963 | 314k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
964 | 314k | return _class_data_.base(); |
965 | 314k | } |
966 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
967 | | const ::_pbi::TcParseTable<4, 10, 6, 0, 2> Scenario::_table_ = { |
968 | | { |
969 | | PROTOBUF_FIELD_OFFSET(Scenario, _impl_._has_bits_), |
970 | | 0, // no _extensions_ |
971 | | 10, 120, // max_field_number, fast_idx_mask |
972 | | offsetof(decltype(_table_), field_lookup_table), |
973 | | 4294966272, // skipmap |
974 | | offsetof(decltype(_table_), field_entries), |
975 | | 10, // num_field_entries |
976 | | 6, // num_aux_entries |
977 | | offsetof(decltype(_table_), aux_entries), |
978 | | _class_data_.base(), |
979 | | nullptr, // post_loop_handler |
980 | | ::_pbi::TcParser::GenericFallback, // fallback |
981 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
982 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::Scenario>(), // to_prefetch |
983 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
984 | | }, {{ |
985 | | {::_pbi::TcParser::MiniParse, {}}, |
986 | | // .curl.fuzzer.proto.Scheme scheme = 1; |
987 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Scenario, _impl_.scheme_), 63>(), |
988 | | {8, 63, 0, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.scheme_)}}, |
989 | | // bytes host_path = 2; |
990 | | {::_pbi::TcParser::FastBS1, |
991 | | {18, 63, 0, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.host_path_)}}, |
992 | | // repeated .curl.fuzzer.proto.SetOption options = 3; |
993 | | {::_pbi::TcParser::FastMtR1, |
994 | | {26, 63, 0, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.options_)}}, |
995 | | // .curl.fuzzer.proto.Connection connection = 4; |
996 | | {::_pbi::TcParser::FastMtS1, |
997 | | {34, 0, 1, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.connection_)}}, |
998 | | // repeated bytes request_headers = 5; |
999 | | {::_pbi::TcParser::FastBR1, |
1000 | | {42, 63, 0, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.request_headers_)}}, |
1001 | | // .curl.fuzzer.proto.MimePost mime_post = 6; |
1002 | | {::_pbi::TcParser::FastMtS1, |
1003 | | {50, 1, 2, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.mime_post_)}}, |
1004 | | // repeated .curl.fuzzer.proto.Connection subsequent_connections = 7; |
1005 | | {::_pbi::TcParser::FastMtR1, |
1006 | | {58, 63, 3, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.subsequent_connections_)}}, |
1007 | | // .curl.fuzzer.proto.UploadScript upload = 8; |
1008 | | {::_pbi::TcParser::FastMtS1, |
1009 | | {66, 2, 4, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.upload_)}}, |
1010 | | // repeated bytes telnet_options = 9; |
1011 | | {::_pbi::TcParser::FastBR1, |
1012 | | {74, 63, 0, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.telnet_options_)}}, |
1013 | | // .curl.fuzzer.proto.ApiPlan api_plan = 10; |
1014 | | {::_pbi::TcParser::FastMtS1, |
1015 | | {82, 3, 5, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.api_plan_)}}, |
1016 | | {::_pbi::TcParser::MiniParse, {}}, |
1017 | | {::_pbi::TcParser::MiniParse, {}}, |
1018 | | {::_pbi::TcParser::MiniParse, {}}, |
1019 | | {::_pbi::TcParser::MiniParse, {}}, |
1020 | | {::_pbi::TcParser::MiniParse, {}}, |
1021 | | }}, {{ |
1022 | | 65535, 65535 |
1023 | | }}, {{ |
1024 | | // .curl.fuzzer.proto.Scheme scheme = 1; |
1025 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.scheme_), -1, 0, |
1026 | | (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
1027 | | // bytes host_path = 2; |
1028 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.host_path_), -1, 0, |
1029 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
1030 | | // repeated .curl.fuzzer.proto.SetOption options = 3; |
1031 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.options_), -1, 0, |
1032 | | (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
1033 | | // .curl.fuzzer.proto.Connection connection = 4; |
1034 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.connection_), _Internal::kHasBitsOffset + 0, 1, |
1035 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
1036 | | // repeated bytes request_headers = 5; |
1037 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.request_headers_), -1, 0, |
1038 | | (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)}, |
1039 | | // .curl.fuzzer.proto.MimePost mime_post = 6; |
1040 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.mime_post_), _Internal::kHasBitsOffset + 1, 2, |
1041 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
1042 | | // repeated .curl.fuzzer.proto.Connection subsequent_connections = 7; |
1043 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.subsequent_connections_), -1, 3, |
1044 | | (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
1045 | | // .curl.fuzzer.proto.UploadScript upload = 8; |
1046 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.upload_), _Internal::kHasBitsOffset + 2, 4, |
1047 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
1048 | | // repeated bytes telnet_options = 9; |
1049 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.telnet_options_), -1, 0, |
1050 | | (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)}, |
1051 | | // .curl.fuzzer.proto.ApiPlan api_plan = 10; |
1052 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.api_plan_), _Internal::kHasBitsOffset + 3, 5, |
1053 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
1054 | | }}, {{ |
1055 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::SetOption>()}, |
1056 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::Connection>()}, |
1057 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::MimePost>()}, |
1058 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::Connection>()}, |
1059 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::UploadScript>()}, |
1060 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::ApiPlan>()}, |
1061 | | }}, {{ |
1062 | | }}, |
1063 | | }; |
1064 | | |
1065 | 77.2k | PROTOBUF_NOINLINE void Scenario::Clear() { |
1066 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.Scenario) |
1067 | 77.2k | ::google::protobuf::internal::TSanWrite(&_impl_); |
1068 | 77.2k | ::uint32_t cached_has_bits = 0; |
1069 | | // Prevent compiler warnings about cached_has_bits being unused |
1070 | 77.2k | (void) cached_has_bits; |
1071 | | |
1072 | 77.2k | _impl_.options_.Clear(); |
1073 | 77.2k | _impl_.request_headers_.Clear(); |
1074 | 77.2k | _impl_.subsequent_connections_.Clear(); |
1075 | 77.2k | _impl_.telnet_options_.Clear(); |
1076 | 77.2k | _impl_.host_path_.ClearToEmpty(); |
1077 | 77.2k | cached_has_bits = _impl_._has_bits_[0]; |
1078 | 77.2k | if (cached_has_bits & 0x0000000fu) { |
1079 | 139 | if (cached_has_bits & 0x00000001u) { |
1080 | 88 | ABSL_DCHECK(_impl_.connection_ != nullptr); |
1081 | 88 | _impl_.connection_->Clear(); |
1082 | 88 | } |
1083 | 139 | if (cached_has_bits & 0x00000002u) { |
1084 | 18 | ABSL_DCHECK(_impl_.mime_post_ != nullptr); |
1085 | 18 | _impl_.mime_post_->Clear(); |
1086 | 18 | } |
1087 | 139 | if (cached_has_bits & 0x00000004u) { |
1088 | 20 | ABSL_DCHECK(_impl_.upload_ != nullptr); |
1089 | 20 | _impl_.upload_->Clear(); |
1090 | 20 | } |
1091 | 139 | if (cached_has_bits & 0x00000008u) { |
1092 | 38 | ABSL_DCHECK(_impl_.api_plan_ != nullptr); |
1093 | 38 | _impl_.api_plan_->Clear(); |
1094 | 38 | } |
1095 | 139 | } |
1096 | 77.2k | _impl_.scheme_ = 0; |
1097 | 77.2k | _impl_._has_bits_.Clear(); |
1098 | 77.2k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
1099 | 77.2k | } |
1100 | | |
1101 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1102 | | ::uint8_t* Scenario::_InternalSerialize( |
1103 | | const MessageLite& base, ::uint8_t* target, |
1104 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
1105 | | const Scenario& this_ = static_cast<const Scenario&>(base); |
1106 | | #else // PROTOBUF_CUSTOM_VTABLE |
1107 | | ::uint8_t* Scenario::_InternalSerialize( |
1108 | | ::uint8_t* target, |
1109 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1110 | 0 | const Scenario& this_ = *this; |
1111 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1112 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.Scenario) |
1113 | 0 | ::uint32_t cached_has_bits = 0; |
1114 | 0 | (void)cached_has_bits; |
1115 | | |
1116 | | // .curl.fuzzer.proto.Scheme scheme = 1; |
1117 | 0 | if (this_._internal_scheme() != 0) { |
1118 | 0 | target = stream->EnsureSpace(target); |
1119 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
1120 | 0 | 1, this_._internal_scheme(), target); |
1121 | 0 | } |
1122 | | |
1123 | | // bytes host_path = 2; |
1124 | 0 | if (!this_._internal_host_path().empty()) { |
1125 | 0 | const std::string& _s = this_._internal_host_path(); |
1126 | 0 | target = stream->WriteBytesMaybeAliased(2, _s, target); |
1127 | 0 | } |
1128 | | |
1129 | | // repeated .curl.fuzzer.proto.SetOption options = 3; |
1130 | 0 | for (unsigned i = 0, n = static_cast<unsigned>( |
1131 | 0 | this_._internal_options_size()); |
1132 | 0 | i < n; i++) { |
1133 | 0 | const auto& repfield = this_._internal_options().Get(i); |
1134 | 0 | target = |
1135 | 0 | ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
1136 | 0 | 3, repfield, repfield.GetCachedSize(), |
1137 | 0 | target, stream); |
1138 | 0 | } |
1139 | |
|
1140 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
1141 | | // .curl.fuzzer.proto.Connection connection = 4; |
1142 | 0 | if (cached_has_bits & 0x00000001u) { |
1143 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
1144 | 0 | 4, *this_._impl_.connection_, this_._impl_.connection_->GetCachedSize(), target, |
1145 | 0 | stream); |
1146 | 0 | } |
1147 | | |
1148 | | // repeated bytes request_headers = 5; |
1149 | 0 | for (int i = 0, n = this_._internal_request_headers_size(); i < n; ++i) { |
1150 | 0 | const auto& s = this_._internal_request_headers().Get(i); |
1151 | 0 | target = stream->WriteBytes(5, s, target); |
1152 | 0 | } |
1153 | | |
1154 | | // .curl.fuzzer.proto.MimePost mime_post = 6; |
1155 | 0 | if (cached_has_bits & 0x00000002u) { |
1156 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
1157 | 0 | 6, *this_._impl_.mime_post_, this_._impl_.mime_post_->GetCachedSize(), target, |
1158 | 0 | stream); |
1159 | 0 | } |
1160 | | |
1161 | | // repeated .curl.fuzzer.proto.Connection subsequent_connections = 7; |
1162 | 0 | for (unsigned i = 0, n = static_cast<unsigned>( |
1163 | 0 | this_._internal_subsequent_connections_size()); |
1164 | 0 | i < n; i++) { |
1165 | 0 | const auto& repfield = this_._internal_subsequent_connections().Get(i); |
1166 | 0 | target = |
1167 | 0 | ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
1168 | 0 | 7, repfield, repfield.GetCachedSize(), |
1169 | 0 | target, stream); |
1170 | 0 | } |
1171 | | |
1172 | | // .curl.fuzzer.proto.UploadScript upload = 8; |
1173 | 0 | if (cached_has_bits & 0x00000004u) { |
1174 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
1175 | 0 | 8, *this_._impl_.upload_, this_._impl_.upload_->GetCachedSize(), target, |
1176 | 0 | stream); |
1177 | 0 | } |
1178 | | |
1179 | | // repeated bytes telnet_options = 9; |
1180 | 0 | for (int i = 0, n = this_._internal_telnet_options_size(); i < n; ++i) { |
1181 | 0 | const auto& s = this_._internal_telnet_options().Get(i); |
1182 | 0 | target = stream->WriteBytes(9, s, target); |
1183 | 0 | } |
1184 | | |
1185 | | // .curl.fuzzer.proto.ApiPlan api_plan = 10; |
1186 | 0 | if (cached_has_bits & 0x00000008u) { |
1187 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
1188 | 0 | 10, *this_._impl_.api_plan_, this_._impl_.api_plan_->GetCachedSize(), target, |
1189 | 0 | stream); |
1190 | 0 | } |
1191 | |
|
1192 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
1193 | 0 | target = |
1194 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1195 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
1196 | 0 | } |
1197 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.Scenario) |
1198 | 0 | return target; |
1199 | 0 | } |
1200 | | |
1201 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1202 | | ::size_t Scenario::ByteSizeLong(const MessageLite& base) { |
1203 | | const Scenario& this_ = static_cast<const Scenario&>(base); |
1204 | | #else // PROTOBUF_CUSTOM_VTABLE |
1205 | 0 | ::size_t Scenario::ByteSizeLong() const { |
1206 | 0 | const Scenario& this_ = *this; |
1207 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1208 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.Scenario) |
1209 | 0 | ::size_t total_size = 0; |
1210 | |
|
1211 | 0 | ::uint32_t cached_has_bits = 0; |
1212 | | // Prevent compiler warnings about cached_has_bits being unused |
1213 | 0 | (void)cached_has_bits; |
1214 | |
|
1215 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
1216 | 0 | { |
1217 | | // repeated .curl.fuzzer.proto.SetOption options = 3; |
1218 | 0 | { |
1219 | 0 | total_size += 1UL * this_._internal_options_size(); |
1220 | 0 | for (const auto& msg : this_._internal_options()) { |
1221 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); |
1222 | 0 | } |
1223 | 0 | } |
1224 | | // repeated bytes request_headers = 5; |
1225 | 0 | { |
1226 | 0 | total_size += |
1227 | 0 | 1 * ::google::protobuf::internal::FromIntSize(this_._internal_request_headers().size()); |
1228 | 0 | for (int i = 0, n = this_._internal_request_headers().size(); i < n; ++i) { |
1229 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
1230 | 0 | this_._internal_request_headers().Get(i)); |
1231 | 0 | } |
1232 | 0 | } |
1233 | | // repeated .curl.fuzzer.proto.Connection subsequent_connections = 7; |
1234 | 0 | { |
1235 | 0 | total_size += 1UL * this_._internal_subsequent_connections_size(); |
1236 | 0 | for (const auto& msg : this_._internal_subsequent_connections()) { |
1237 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); |
1238 | 0 | } |
1239 | 0 | } |
1240 | | // repeated bytes telnet_options = 9; |
1241 | 0 | { |
1242 | 0 | total_size += |
1243 | 0 | 1 * ::google::protobuf::internal::FromIntSize(this_._internal_telnet_options().size()); |
1244 | 0 | for (int i = 0, n = this_._internal_telnet_options().size(); i < n; ++i) { |
1245 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
1246 | 0 | this_._internal_telnet_options().Get(i)); |
1247 | 0 | } |
1248 | 0 | } |
1249 | 0 | } |
1250 | 0 | { |
1251 | | // bytes host_path = 2; |
1252 | 0 | if (!this_._internal_host_path().empty()) { |
1253 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
1254 | 0 | this_._internal_host_path()); |
1255 | 0 | } |
1256 | 0 | } |
1257 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
1258 | 0 | if (cached_has_bits & 0x0000000fu) { |
1259 | | // .curl.fuzzer.proto.Connection connection = 4; |
1260 | 0 | if (cached_has_bits & 0x00000001u) { |
1261 | 0 | total_size += 1 + |
1262 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.connection_); |
1263 | 0 | } |
1264 | | // .curl.fuzzer.proto.MimePost mime_post = 6; |
1265 | 0 | if (cached_has_bits & 0x00000002u) { |
1266 | 0 | total_size += 1 + |
1267 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.mime_post_); |
1268 | 0 | } |
1269 | | // .curl.fuzzer.proto.UploadScript upload = 8; |
1270 | 0 | if (cached_has_bits & 0x00000004u) { |
1271 | 0 | total_size += 1 + |
1272 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.upload_); |
1273 | 0 | } |
1274 | | // .curl.fuzzer.proto.ApiPlan api_plan = 10; |
1275 | 0 | if (cached_has_bits & 0x00000008u) { |
1276 | 0 | total_size += 1 + |
1277 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.api_plan_); |
1278 | 0 | } |
1279 | 0 | } |
1280 | 0 | { |
1281 | | // .curl.fuzzer.proto.Scheme scheme = 1; |
1282 | 0 | if (this_._internal_scheme() != 0) { |
1283 | 0 | total_size += 1 + |
1284 | 0 | ::_pbi::WireFormatLite::EnumSize(this_._internal_scheme()); |
1285 | 0 | } |
1286 | 0 | } |
1287 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
1288 | 0 | &this_._impl_._cached_size_); |
1289 | 0 | } |
1290 | | |
1291 | 0 | void Scenario::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
1292 | 0 | auto* const _this = static_cast<Scenario*>(&to_msg); |
1293 | 0 | auto& from = static_cast<const Scenario&>(from_msg); |
1294 | 0 | ::google::protobuf::Arena* arena = _this->GetArena(); |
1295 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.Scenario) |
1296 | 0 | ABSL_DCHECK_NE(&from, _this); |
1297 | 0 | ::uint32_t cached_has_bits = 0; |
1298 | 0 | (void) cached_has_bits; |
1299 | |
|
1300 | 0 | _this->_internal_mutable_options()->MergeFrom( |
1301 | 0 | from._internal_options()); |
1302 | 0 | _this->_internal_mutable_request_headers()->MergeFrom(from._internal_request_headers()); |
1303 | 0 | _this->_internal_mutable_subsequent_connections()->MergeFrom( |
1304 | 0 | from._internal_subsequent_connections()); |
1305 | 0 | _this->_internal_mutable_telnet_options()->MergeFrom(from._internal_telnet_options()); |
1306 | 0 | if (!from._internal_host_path().empty()) { |
1307 | 0 | _this->_internal_set_host_path(from._internal_host_path()); |
1308 | 0 | } |
1309 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
1310 | 0 | if (cached_has_bits & 0x0000000fu) { |
1311 | 0 | if (cached_has_bits & 0x00000001u) { |
1312 | 0 | ABSL_DCHECK(from._impl_.connection_ != nullptr); |
1313 | 0 | if (_this->_impl_.connection_ == nullptr) { |
1314 | 0 | _this->_impl_.connection_ = |
1315 | 0 | ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::Connection>(arena, *from._impl_.connection_); |
1316 | 0 | } else { |
1317 | 0 | _this->_impl_.connection_->MergeFrom(*from._impl_.connection_); |
1318 | 0 | } |
1319 | 0 | } |
1320 | 0 | if (cached_has_bits & 0x00000002u) { |
1321 | 0 | ABSL_DCHECK(from._impl_.mime_post_ != nullptr); |
1322 | 0 | if (_this->_impl_.mime_post_ == nullptr) { |
1323 | 0 | _this->_impl_.mime_post_ = |
1324 | 0 | ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::MimePost>(arena, *from._impl_.mime_post_); |
1325 | 0 | } else { |
1326 | 0 | _this->_impl_.mime_post_->MergeFrom(*from._impl_.mime_post_); |
1327 | 0 | } |
1328 | 0 | } |
1329 | 0 | if (cached_has_bits & 0x00000004u) { |
1330 | 0 | ABSL_DCHECK(from._impl_.upload_ != nullptr); |
1331 | 0 | if (_this->_impl_.upload_ == nullptr) { |
1332 | 0 | _this->_impl_.upload_ = |
1333 | 0 | ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::UploadScript>(arena, *from._impl_.upload_); |
1334 | 0 | } else { |
1335 | 0 | _this->_impl_.upload_->MergeFrom(*from._impl_.upload_); |
1336 | 0 | } |
1337 | 0 | } |
1338 | 0 | if (cached_has_bits & 0x00000008u) { |
1339 | 0 | ABSL_DCHECK(from._impl_.api_plan_ != nullptr); |
1340 | 0 | if (_this->_impl_.api_plan_ == nullptr) { |
1341 | 0 | _this->_impl_.api_plan_ = |
1342 | 0 | ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::ApiPlan>(arena, *from._impl_.api_plan_); |
1343 | 0 | } else { |
1344 | 0 | _this->_impl_.api_plan_->MergeFrom(*from._impl_.api_plan_); |
1345 | 0 | } |
1346 | 0 | } |
1347 | 0 | } |
1348 | 0 | if (from._internal_scheme() != 0) { |
1349 | 0 | _this->_impl_.scheme_ = from._impl_.scheme_; |
1350 | 0 | } |
1351 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
1352 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
1353 | 0 | } |
1354 | | |
1355 | 0 | void Scenario::CopyFrom(const Scenario& from) { |
1356 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.Scenario) |
1357 | 0 | if (&from == this) return; |
1358 | 0 | Clear(); |
1359 | 0 | MergeFrom(from); |
1360 | 0 | } |
1361 | | |
1362 | | |
1363 | 0 | void Scenario::InternalSwap(Scenario* PROTOBUF_RESTRICT other) { |
1364 | 0 | using std::swap; |
1365 | 0 | auto* arena = GetArena(); |
1366 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
1367 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1368 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
1369 | 0 | _impl_.options_.InternalSwap(&other->_impl_.options_); |
1370 | 0 | _impl_.request_headers_.InternalSwap(&other->_impl_.request_headers_); |
1371 | 0 | _impl_.subsequent_connections_.InternalSwap(&other->_impl_.subsequent_connections_); |
1372 | 0 | _impl_.telnet_options_.InternalSwap(&other->_impl_.telnet_options_); |
1373 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.host_path_, &other->_impl_.host_path_, arena); |
1374 | 0 | ::google::protobuf::internal::memswap< |
1375 | 0 | PROTOBUF_FIELD_OFFSET(Scenario, _impl_.scheme_) |
1376 | 0 | + sizeof(Scenario::_impl_.scheme_) |
1377 | 0 | - PROTOBUF_FIELD_OFFSET(Scenario, _impl_.connection_)>( |
1378 | 0 | reinterpret_cast<char*>(&_impl_.connection_), |
1379 | 0 | reinterpret_cast<char*>(&other->_impl_.connection_)); |
1380 | 0 | } |
1381 | | |
1382 | 6 | ::google::protobuf::Metadata Scenario::GetMetadata() const { |
1383 | 6 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
1384 | 6 | } |
1385 | | // =================================================================== |
1386 | | |
1387 | | class ApiPlan::_Internal { |
1388 | | public: |
1389 | | }; |
1390 | | |
1391 | | ApiPlan::ApiPlan(::google::protobuf::Arena* arena) |
1392 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1393 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1394 | | #else // PROTOBUF_CUSTOM_VTABLE |
1395 | 0 | : ::google::protobuf::Message(arena) { |
1396 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1397 | 0 | SharedCtor(arena); |
1398 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.ApiPlan) |
1399 | 0 | } |
1400 | | inline PROTOBUF_NDEBUG_INLINE ApiPlan::Impl_::Impl_( |
1401 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
1402 | | const Impl_& from, const ::curl::fuzzer::proto::ApiPlan& from_msg) |
1403 | 0 | : share_data_selectors_{visibility, arena, from.share_data_selectors_}, |
1404 | 0 | _share_data_selectors_cached_byte_size_{0}, |
1405 | 0 | easy_info_selectors_{visibility, arena, from.easy_info_selectors_}, |
1406 | 0 | _easy_info_selectors_cached_byte_size_{0}, |
1407 | 0 | _cached_size_{0} {} |
1408 | | |
1409 | | ApiPlan::ApiPlan( |
1410 | | ::google::protobuf::Arena* arena, |
1411 | | const ApiPlan& from) |
1412 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1413 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1414 | | #else // PROTOBUF_CUSTOM_VTABLE |
1415 | 0 | : ::google::protobuf::Message(arena) { |
1416 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1417 | 0 | ApiPlan* const _this = this; |
1418 | 0 | (void)_this; |
1419 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
1420 | 0 | from._internal_metadata_); |
1421 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
1422 | 0 | ::memcpy(reinterpret_cast<char *>(&_impl_) + |
1423 | 0 | offsetof(Impl_, duplicate_easy_), |
1424 | 0 | reinterpret_cast<const char *>(&from._impl_) + |
1425 | 0 | offsetof(Impl_, duplicate_easy_), |
1426 | 0 | offsetof(Impl_, drive_mode_) - |
1427 | 0 | offsetof(Impl_, duplicate_easy_) + |
1428 | 0 | sizeof(Impl_::drive_mode_)); |
1429 | | |
1430 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.ApiPlan) |
1431 | 0 | } |
1432 | | inline PROTOBUF_NDEBUG_INLINE ApiPlan::Impl_::Impl_( |
1433 | | ::google::protobuf::internal::InternalVisibility visibility, |
1434 | | ::google::protobuf::Arena* arena) |
1435 | 0 | : share_data_selectors_{visibility, arena}, |
1436 | 0 | _share_data_selectors_cached_byte_size_{0}, |
1437 | 0 | easy_info_selectors_{visibility, arena}, |
1438 | 0 | _easy_info_selectors_cached_byte_size_{0}, |
1439 | 0 | _cached_size_{0} {} |
1440 | | |
1441 | 0 | inline void ApiPlan::SharedCtor(::_pb::Arena* arena) { |
1442 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
1443 | 0 | ::memset(reinterpret_cast<char *>(&_impl_) + |
1444 | 0 | offsetof(Impl_, duplicate_easy_), |
1445 | 0 | 0, |
1446 | 0 | offsetof(Impl_, drive_mode_) - |
1447 | 0 | offsetof(Impl_, duplicate_easy_) + |
1448 | 0 | sizeof(Impl_::drive_mode_)); |
1449 | 0 | } |
1450 | 49 | ApiPlan::~ApiPlan() { |
1451 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.ApiPlan) |
1452 | 49 | SharedDtor(*this); |
1453 | 49 | } |
1454 | 49 | inline void ApiPlan::SharedDtor(MessageLite& self) { |
1455 | 49 | ApiPlan& this_ = static_cast<ApiPlan&>(self); |
1456 | 49 | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
1457 | 49 | ABSL_DCHECK(this_.GetArena() == nullptr); |
1458 | 49 | this_._impl_.~Impl_(); |
1459 | 49 | } |
1460 | | |
1461 | | inline void* ApiPlan::PlacementNew_(const void*, void* mem, |
1462 | 0 | ::google::protobuf::Arena* arena) { |
1463 | 0 | return ::new (mem) ApiPlan(arena); |
1464 | 0 | } |
1465 | 0 | constexpr auto ApiPlan::InternalNewImpl_() { |
1466 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
1467 | 0 | PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.share_data_selectors_) + |
1468 | 0 | decltype(ApiPlan::_impl_.share_data_selectors_):: |
1469 | 0 | InternalGetArenaOffset( |
1470 | 0 | ::google::protobuf::Message::internal_visibility()), |
1471 | 0 | PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.easy_info_selectors_) + |
1472 | 0 | decltype(ApiPlan::_impl_.easy_info_selectors_):: |
1473 | 0 | InternalGetArenaOffset( |
1474 | 0 | ::google::protobuf::Message::internal_visibility()), |
1475 | 0 | }); |
1476 | 0 | if (arena_bits.has_value()) { |
1477 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit( |
1478 | 0 | sizeof(ApiPlan), alignof(ApiPlan), *arena_bits); |
1479 | 0 | } else { |
1480 | 0 | return ::google::protobuf::internal::MessageCreator(&ApiPlan::PlacementNew_, |
1481 | 0 | sizeof(ApiPlan), |
1482 | 0 | alignof(ApiPlan)); |
1483 | 0 | } |
1484 | 0 | } |
1485 | | PROTOBUF_CONSTINIT |
1486 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1487 | | const ::google::protobuf::internal::ClassDataFull ApiPlan::_class_data_ = { |
1488 | | ::google::protobuf::internal::ClassData{ |
1489 | | &_ApiPlan_default_instance_._instance, |
1490 | | &_table_.header, |
1491 | | nullptr, // OnDemandRegisterArenaDtor |
1492 | | nullptr, // IsInitialized |
1493 | | &ApiPlan::MergeImpl, |
1494 | | ::google::protobuf::Message::GetNewImpl<ApiPlan>(), |
1495 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1496 | | &ApiPlan::SharedDtor, |
1497 | | ::google::protobuf::Message::GetClearImpl<ApiPlan>(), &ApiPlan::ByteSizeLong, |
1498 | | &ApiPlan::_InternalSerialize, |
1499 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1500 | | PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_._cached_size_), |
1501 | | false, |
1502 | | }, |
1503 | | &ApiPlan::kDescriptorMethods, |
1504 | | &descriptor_table_curl_5ffuzzer_2eproto, |
1505 | | nullptr, // tracker |
1506 | | }; |
1507 | 73 | const ::google::protobuf::internal::ClassData* ApiPlan::GetClassData() const { |
1508 | 73 | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
1509 | 73 | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
1510 | 73 | return _class_data_.base(); |
1511 | 73 | } |
1512 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1513 | | const ::_pbi::TcParseTable<3, 7, 0, 0, 2> ApiPlan::_table_ = { |
1514 | | { |
1515 | | 0, // no _has_bits_ |
1516 | | 0, // no _extensions_ |
1517 | | 7, 56, // max_field_number, fast_idx_mask |
1518 | | offsetof(decltype(_table_), field_lookup_table), |
1519 | | 4294967168, // skipmap |
1520 | | offsetof(decltype(_table_), field_entries), |
1521 | | 7, // num_field_entries |
1522 | | 0, // num_aux_entries |
1523 | | offsetof(decltype(_table_), field_names), // no aux_entries |
1524 | | _class_data_.base(), |
1525 | | nullptr, // post_loop_handler |
1526 | | ::_pbi::TcParser::GenericFallback, // fallback |
1527 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
1528 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::ApiPlan>(), // to_prefetch |
1529 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
1530 | | }, {{ |
1531 | | {::_pbi::TcParser::MiniParse, {}}, |
1532 | | // bool duplicate_easy = 1; |
1533 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ApiPlan, _impl_.duplicate_easy_), 63>(), |
1534 | | {8, 63, 0, PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.duplicate_easy_)}}, |
1535 | | // bool reset_easy = 2; |
1536 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ApiPlan, _impl_.reset_easy_), 63>(), |
1537 | | {16, 63, 0, PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.reset_easy_)}}, |
1538 | | // bool attach_share = 3; |
1539 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ApiPlan, _impl_.attach_share_), 63>(), |
1540 | | {24, 63, 0, PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.attach_share_)}}, |
1541 | | // repeated uint32 share_data_selectors = 4; |
1542 | | {::_pbi::TcParser::FastV32P1, |
1543 | | {34, 63, 0, PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.share_data_selectors_)}}, |
1544 | | // .curl.fuzzer.proto.ApiDriveMode drive_mode = 5; |
1545 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ApiPlan, _impl_.drive_mode_), 63>(), |
1546 | | {40, 63, 0, PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.drive_mode_)}}, |
1547 | | // bool wake_multi = 6; |
1548 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ApiPlan, _impl_.wake_multi_), 63>(), |
1549 | | {48, 63, 0, PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.wake_multi_)}}, |
1550 | | // repeated uint32 easy_info_selectors = 7; |
1551 | | {::_pbi::TcParser::FastV32P1, |
1552 | | {58, 63, 0, PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.easy_info_selectors_)}}, |
1553 | | }}, {{ |
1554 | | 65535, 65535 |
1555 | | }}, {{ |
1556 | | // bool duplicate_easy = 1; |
1557 | | {PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.duplicate_easy_), 0, 0, |
1558 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
1559 | | // bool reset_easy = 2; |
1560 | | {PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.reset_easy_), 0, 0, |
1561 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
1562 | | // bool attach_share = 3; |
1563 | | {PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.attach_share_), 0, 0, |
1564 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
1565 | | // repeated uint32 share_data_selectors = 4; |
1566 | | {PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.share_data_selectors_), 0, 0, |
1567 | | (0 | ::_fl::kFcRepeated | ::_fl::kPackedUInt32)}, |
1568 | | // .curl.fuzzer.proto.ApiDriveMode drive_mode = 5; |
1569 | | {PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.drive_mode_), 0, 0, |
1570 | | (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
1571 | | // bool wake_multi = 6; |
1572 | | {PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.wake_multi_), 0, 0, |
1573 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
1574 | | // repeated uint32 easy_info_selectors = 7; |
1575 | | {PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.easy_info_selectors_), 0, 0, |
1576 | | (0 | ::_fl::kFcRepeated | ::_fl::kPackedUInt32)}, |
1577 | | }}, |
1578 | | // no aux_entries |
1579 | | {{ |
1580 | | }}, |
1581 | | }; |
1582 | | |
1583 | 38 | PROTOBUF_NOINLINE void ApiPlan::Clear() { |
1584 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.ApiPlan) |
1585 | 38 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1586 | 38 | ::uint32_t cached_has_bits = 0; |
1587 | | // Prevent compiler warnings about cached_has_bits being unused |
1588 | 38 | (void) cached_has_bits; |
1589 | | |
1590 | 38 | _impl_.share_data_selectors_.Clear(); |
1591 | 38 | _impl_.easy_info_selectors_.Clear(); |
1592 | 38 | ::memset(&_impl_.duplicate_easy_, 0, static_cast<::size_t>( |
1593 | 38 | reinterpret_cast<char*>(&_impl_.drive_mode_) - |
1594 | 38 | reinterpret_cast<char*>(&_impl_.duplicate_easy_)) + sizeof(_impl_.drive_mode_)); |
1595 | 38 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
1596 | 38 | } |
1597 | | |
1598 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1599 | | ::uint8_t* ApiPlan::_InternalSerialize( |
1600 | | const MessageLite& base, ::uint8_t* target, |
1601 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
1602 | | const ApiPlan& this_ = static_cast<const ApiPlan&>(base); |
1603 | | #else // PROTOBUF_CUSTOM_VTABLE |
1604 | | ::uint8_t* ApiPlan::_InternalSerialize( |
1605 | | ::uint8_t* target, |
1606 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1607 | 0 | const ApiPlan& this_ = *this; |
1608 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1609 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.ApiPlan) |
1610 | 0 | ::uint32_t cached_has_bits = 0; |
1611 | 0 | (void)cached_has_bits; |
1612 | | |
1613 | | // bool duplicate_easy = 1; |
1614 | 0 | if (this_._internal_duplicate_easy() != 0) { |
1615 | 0 | target = stream->EnsureSpace(target); |
1616 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
1617 | 0 | 1, this_._internal_duplicate_easy(), target); |
1618 | 0 | } |
1619 | | |
1620 | | // bool reset_easy = 2; |
1621 | 0 | if (this_._internal_reset_easy() != 0) { |
1622 | 0 | target = stream->EnsureSpace(target); |
1623 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
1624 | 0 | 2, this_._internal_reset_easy(), target); |
1625 | 0 | } |
1626 | | |
1627 | | // bool attach_share = 3; |
1628 | 0 | if (this_._internal_attach_share() != 0) { |
1629 | 0 | target = stream->EnsureSpace(target); |
1630 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
1631 | 0 | 3, this_._internal_attach_share(), target); |
1632 | 0 | } |
1633 | | |
1634 | | // repeated uint32 share_data_selectors = 4; |
1635 | 0 | { |
1636 | 0 | int byte_size = this_._impl_._share_data_selectors_cached_byte_size_.Get(); |
1637 | 0 | if (byte_size > 0) { |
1638 | 0 | target = stream->WriteUInt32Packed( |
1639 | 0 | 4, this_._internal_share_data_selectors(), byte_size, target); |
1640 | 0 | } |
1641 | 0 | } |
1642 | | |
1643 | | // .curl.fuzzer.proto.ApiDriveMode drive_mode = 5; |
1644 | 0 | if (this_._internal_drive_mode() != 0) { |
1645 | 0 | target = stream->EnsureSpace(target); |
1646 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
1647 | 0 | 5, this_._internal_drive_mode(), target); |
1648 | 0 | } |
1649 | | |
1650 | | // bool wake_multi = 6; |
1651 | 0 | if (this_._internal_wake_multi() != 0) { |
1652 | 0 | target = stream->EnsureSpace(target); |
1653 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
1654 | 0 | 6, this_._internal_wake_multi(), target); |
1655 | 0 | } |
1656 | | |
1657 | | // repeated uint32 easy_info_selectors = 7; |
1658 | 0 | { |
1659 | 0 | int byte_size = this_._impl_._easy_info_selectors_cached_byte_size_.Get(); |
1660 | 0 | if (byte_size > 0) { |
1661 | 0 | target = stream->WriteUInt32Packed( |
1662 | 0 | 7, this_._internal_easy_info_selectors(), byte_size, target); |
1663 | 0 | } |
1664 | 0 | } |
1665 | |
|
1666 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
1667 | 0 | target = |
1668 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1669 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
1670 | 0 | } |
1671 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.ApiPlan) |
1672 | 0 | return target; |
1673 | 0 | } |
1674 | | |
1675 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1676 | | ::size_t ApiPlan::ByteSizeLong(const MessageLite& base) { |
1677 | | const ApiPlan& this_ = static_cast<const ApiPlan&>(base); |
1678 | | #else // PROTOBUF_CUSTOM_VTABLE |
1679 | 0 | ::size_t ApiPlan::ByteSizeLong() const { |
1680 | 0 | const ApiPlan& this_ = *this; |
1681 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1682 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.ApiPlan) |
1683 | 0 | ::size_t total_size = 0; |
1684 | |
|
1685 | 0 | ::uint32_t cached_has_bits = 0; |
1686 | | // Prevent compiler warnings about cached_has_bits being unused |
1687 | 0 | (void)cached_has_bits; |
1688 | |
|
1689 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
1690 | 0 | { |
1691 | | // repeated uint32 share_data_selectors = 4; |
1692 | 0 | { |
1693 | 0 | total_size += |
1694 | 0 | ::_pbi::WireFormatLite::UInt32SizeWithPackedTagSize( |
1695 | 0 | this_._internal_share_data_selectors(), 1, |
1696 | 0 | this_._impl_._share_data_selectors_cached_byte_size_); |
1697 | 0 | } |
1698 | | // repeated uint32 easy_info_selectors = 7; |
1699 | 0 | { |
1700 | 0 | total_size += |
1701 | 0 | ::_pbi::WireFormatLite::UInt32SizeWithPackedTagSize( |
1702 | 0 | this_._internal_easy_info_selectors(), 1, |
1703 | 0 | this_._impl_._easy_info_selectors_cached_byte_size_); |
1704 | 0 | } |
1705 | 0 | } |
1706 | 0 | { |
1707 | | // bool duplicate_easy = 1; |
1708 | 0 | if (this_._internal_duplicate_easy() != 0) { |
1709 | 0 | total_size += 2; |
1710 | 0 | } |
1711 | | // bool reset_easy = 2; |
1712 | 0 | if (this_._internal_reset_easy() != 0) { |
1713 | 0 | total_size += 2; |
1714 | 0 | } |
1715 | | // bool attach_share = 3; |
1716 | 0 | if (this_._internal_attach_share() != 0) { |
1717 | 0 | total_size += 2; |
1718 | 0 | } |
1719 | | // bool wake_multi = 6; |
1720 | 0 | if (this_._internal_wake_multi() != 0) { |
1721 | 0 | total_size += 2; |
1722 | 0 | } |
1723 | | // .curl.fuzzer.proto.ApiDriveMode drive_mode = 5; |
1724 | 0 | if (this_._internal_drive_mode() != 0) { |
1725 | 0 | total_size += 1 + |
1726 | 0 | ::_pbi::WireFormatLite::EnumSize(this_._internal_drive_mode()); |
1727 | 0 | } |
1728 | 0 | } |
1729 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
1730 | 0 | &this_._impl_._cached_size_); |
1731 | 0 | } |
1732 | | |
1733 | 0 | void ApiPlan::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
1734 | 0 | auto* const _this = static_cast<ApiPlan*>(&to_msg); |
1735 | 0 | auto& from = static_cast<const ApiPlan&>(from_msg); |
1736 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.ApiPlan) |
1737 | 0 | ABSL_DCHECK_NE(&from, _this); |
1738 | 0 | ::uint32_t cached_has_bits = 0; |
1739 | 0 | (void) cached_has_bits; |
1740 | |
|
1741 | 0 | _this->_internal_mutable_share_data_selectors()->MergeFrom(from._internal_share_data_selectors()); |
1742 | 0 | _this->_internal_mutable_easy_info_selectors()->MergeFrom(from._internal_easy_info_selectors()); |
1743 | 0 | if (from._internal_duplicate_easy() != 0) { |
1744 | 0 | _this->_impl_.duplicate_easy_ = from._impl_.duplicate_easy_; |
1745 | 0 | } |
1746 | 0 | if (from._internal_reset_easy() != 0) { |
1747 | 0 | _this->_impl_.reset_easy_ = from._impl_.reset_easy_; |
1748 | 0 | } |
1749 | 0 | if (from._internal_attach_share() != 0) { |
1750 | 0 | _this->_impl_.attach_share_ = from._impl_.attach_share_; |
1751 | 0 | } |
1752 | 0 | if (from._internal_wake_multi() != 0) { |
1753 | 0 | _this->_impl_.wake_multi_ = from._impl_.wake_multi_; |
1754 | 0 | } |
1755 | 0 | if (from._internal_drive_mode() != 0) { |
1756 | 0 | _this->_impl_.drive_mode_ = from._impl_.drive_mode_; |
1757 | 0 | } |
1758 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
1759 | 0 | } |
1760 | | |
1761 | 0 | void ApiPlan::CopyFrom(const ApiPlan& from) { |
1762 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.ApiPlan) |
1763 | 0 | if (&from == this) return; |
1764 | 0 | Clear(); |
1765 | 0 | MergeFrom(from); |
1766 | 0 | } |
1767 | | |
1768 | | |
1769 | 0 | void ApiPlan::InternalSwap(ApiPlan* PROTOBUF_RESTRICT other) { |
1770 | 0 | using std::swap; |
1771 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1772 | 0 | _impl_.share_data_selectors_.InternalSwap(&other->_impl_.share_data_selectors_); |
1773 | 0 | _impl_.easy_info_selectors_.InternalSwap(&other->_impl_.easy_info_selectors_); |
1774 | 0 | ::google::protobuf::internal::memswap< |
1775 | 0 | PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.drive_mode_) |
1776 | 0 | + sizeof(ApiPlan::_impl_.drive_mode_) |
1777 | 0 | - PROTOBUF_FIELD_OFFSET(ApiPlan, _impl_.duplicate_easy_)>( |
1778 | 0 | reinterpret_cast<char*>(&_impl_.duplicate_easy_), |
1779 | 0 | reinterpret_cast<char*>(&other->_impl_.duplicate_easy_)); |
1780 | 0 | } |
1781 | | |
1782 | 0 | ::google::protobuf::Metadata ApiPlan::GetMetadata() const { |
1783 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
1784 | 0 | } |
1785 | | // =================================================================== |
1786 | | |
1787 | | class UploadScript::_Internal { |
1788 | | public: |
1789 | | }; |
1790 | | |
1791 | | UploadScript::UploadScript(::google::protobuf::Arena* arena) |
1792 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1793 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1794 | | #else // PROTOBUF_CUSTOM_VTABLE |
1795 | 0 | : ::google::protobuf::Message(arena) { |
1796 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1797 | 0 | SharedCtor(arena); |
1798 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.UploadScript) |
1799 | 0 | } |
1800 | | inline PROTOBUF_NDEBUG_INLINE UploadScript::Impl_::Impl_( |
1801 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
1802 | | const Impl_& from, const ::curl::fuzzer::proto::UploadScript& from_msg) |
1803 | 0 | : read_sizes_{visibility, arena, from.read_sizes_}, |
1804 | 0 | _read_sizes_cached_byte_size_{0}, |
1805 | 0 | data_(arena, from.data_), |
1806 | 0 | _cached_size_{0} {} |
1807 | | |
1808 | | UploadScript::UploadScript( |
1809 | | ::google::protobuf::Arena* arena, |
1810 | | const UploadScript& from) |
1811 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1812 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1813 | | #else // PROTOBUF_CUSTOM_VTABLE |
1814 | 0 | : ::google::protobuf::Message(arena) { |
1815 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1816 | 0 | UploadScript* const _this = this; |
1817 | 0 | (void)_this; |
1818 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
1819 | 0 | from._internal_metadata_); |
1820 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
1821 | 0 | ::memcpy(reinterpret_cast<char *>(&_impl_) + |
1822 | 0 | offsetof(Impl_, terminal_), |
1823 | 0 | reinterpret_cast<const char *>(&from._impl_) + |
1824 | 0 | offsetof(Impl_, terminal_), |
1825 | 0 | offsetof(Impl_, seek_result_) - |
1826 | 0 | offsetof(Impl_, terminal_) + |
1827 | 0 | sizeof(Impl_::seek_result_)); |
1828 | | |
1829 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.UploadScript) |
1830 | 0 | } |
1831 | | inline PROTOBUF_NDEBUG_INLINE UploadScript::Impl_::Impl_( |
1832 | | ::google::protobuf::internal::InternalVisibility visibility, |
1833 | | ::google::protobuf::Arena* arena) |
1834 | 0 | : read_sizes_{visibility, arena}, |
1835 | 0 | _read_sizes_cached_byte_size_{0}, |
1836 | 0 | data_(arena), |
1837 | 0 | _cached_size_{0} {} |
1838 | | |
1839 | 0 | inline void UploadScript::SharedCtor(::_pb::Arena* arena) { |
1840 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
1841 | 0 | ::memset(reinterpret_cast<char *>(&_impl_) + |
1842 | 0 | offsetof(Impl_, terminal_), |
1843 | 0 | 0, |
1844 | 0 | offsetof(Impl_, seek_result_) - |
1845 | 0 | offsetof(Impl_, terminal_) + |
1846 | 0 | sizeof(Impl_::seek_result_)); |
1847 | 0 | } |
1848 | 4.47k | UploadScript::~UploadScript() { |
1849 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.UploadScript) |
1850 | 4.47k | SharedDtor(*this); |
1851 | 4.47k | } |
1852 | 4.47k | inline void UploadScript::SharedDtor(MessageLite& self) { |
1853 | 4.47k | UploadScript& this_ = static_cast<UploadScript&>(self); |
1854 | 4.47k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
1855 | 4.47k | ABSL_DCHECK(this_.GetArena() == nullptr); |
1856 | 4.47k | this_._impl_.data_.Destroy(); |
1857 | 4.47k | this_._impl_.~Impl_(); |
1858 | 4.47k | } |
1859 | | |
1860 | | inline void* UploadScript::PlacementNew_(const void*, void* mem, |
1861 | 0 | ::google::protobuf::Arena* arena) { |
1862 | 0 | return ::new (mem) UploadScript(arena); |
1863 | 0 | } |
1864 | 0 | constexpr auto UploadScript::InternalNewImpl_() { |
1865 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
1866 | 0 | PROTOBUF_FIELD_OFFSET(UploadScript, _impl_.read_sizes_) + |
1867 | 0 | decltype(UploadScript::_impl_.read_sizes_):: |
1868 | 0 | InternalGetArenaOffset( |
1869 | 0 | ::google::protobuf::Message::internal_visibility()), |
1870 | 0 | }); |
1871 | 0 | if (arena_bits.has_value()) { |
1872 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit( |
1873 | 0 | sizeof(UploadScript), alignof(UploadScript), *arena_bits); |
1874 | 0 | } else { |
1875 | 0 | return ::google::protobuf::internal::MessageCreator(&UploadScript::PlacementNew_, |
1876 | 0 | sizeof(UploadScript), |
1877 | 0 | alignof(UploadScript)); |
1878 | 0 | } |
1879 | 0 | } |
1880 | | PROTOBUF_CONSTINIT |
1881 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1882 | | const ::google::protobuf::internal::ClassDataFull UploadScript::_class_data_ = { |
1883 | | ::google::protobuf::internal::ClassData{ |
1884 | | &_UploadScript_default_instance_._instance, |
1885 | | &_table_.header, |
1886 | | nullptr, // OnDemandRegisterArenaDtor |
1887 | | nullptr, // IsInitialized |
1888 | | &UploadScript::MergeImpl, |
1889 | | ::google::protobuf::Message::GetNewImpl<UploadScript>(), |
1890 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1891 | | &UploadScript::SharedDtor, |
1892 | | ::google::protobuf::Message::GetClearImpl<UploadScript>(), &UploadScript::ByteSizeLong, |
1893 | | &UploadScript::_InternalSerialize, |
1894 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1895 | | PROTOBUF_FIELD_OFFSET(UploadScript, _impl_._cached_size_), |
1896 | | false, |
1897 | | }, |
1898 | | &UploadScript::kDescriptorMethods, |
1899 | | &descriptor_table_curl_5ffuzzer_2eproto, |
1900 | | nullptr, // tracker |
1901 | | }; |
1902 | 26.7k | const ::google::protobuf::internal::ClassData* UploadScript::GetClassData() const { |
1903 | 26.7k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
1904 | 26.7k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
1905 | 26.7k | return _class_data_.base(); |
1906 | 26.7k | } |
1907 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1908 | | const ::_pbi::TcParseTable<2, 4, 0, 0, 2> UploadScript::_table_ = { |
1909 | | { |
1910 | | 0, // no _has_bits_ |
1911 | | 0, // no _extensions_ |
1912 | | 4, 24, // max_field_number, fast_idx_mask |
1913 | | offsetof(decltype(_table_), field_lookup_table), |
1914 | | 4294967280, // skipmap |
1915 | | offsetof(decltype(_table_), field_entries), |
1916 | | 4, // num_field_entries |
1917 | | 0, // num_aux_entries |
1918 | | offsetof(decltype(_table_), field_names), // no aux_entries |
1919 | | _class_data_.base(), |
1920 | | nullptr, // post_loop_handler |
1921 | | ::_pbi::TcParser::GenericFallback, // fallback |
1922 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
1923 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::UploadScript>(), // to_prefetch |
1924 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
1925 | | }, {{ |
1926 | | // .curl.fuzzer.proto.UploadSeekResult seek_result = 4; |
1927 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(UploadScript, _impl_.seek_result_), 63>(), |
1928 | | {32, 63, 0, PROTOBUF_FIELD_OFFSET(UploadScript, _impl_.seek_result_)}}, |
1929 | | // bytes data = 1; |
1930 | | {::_pbi::TcParser::FastBS1, |
1931 | | {10, 63, 0, PROTOBUF_FIELD_OFFSET(UploadScript, _impl_.data_)}}, |
1932 | | // repeated uint32 read_sizes = 2; |
1933 | | {::_pbi::TcParser::FastV32P1, |
1934 | | {18, 63, 0, PROTOBUF_FIELD_OFFSET(UploadScript, _impl_.read_sizes_)}}, |
1935 | | // .curl.fuzzer.proto.UploadTerminal terminal = 3; |
1936 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(UploadScript, _impl_.terminal_), 63>(), |
1937 | | {24, 63, 0, PROTOBUF_FIELD_OFFSET(UploadScript, _impl_.terminal_)}}, |
1938 | | }}, {{ |
1939 | | 65535, 65535 |
1940 | | }}, {{ |
1941 | | // bytes data = 1; |
1942 | | {PROTOBUF_FIELD_OFFSET(UploadScript, _impl_.data_), 0, 0, |
1943 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
1944 | | // repeated uint32 read_sizes = 2; |
1945 | | {PROTOBUF_FIELD_OFFSET(UploadScript, _impl_.read_sizes_), 0, 0, |
1946 | | (0 | ::_fl::kFcRepeated | ::_fl::kPackedUInt32)}, |
1947 | | // .curl.fuzzer.proto.UploadTerminal terminal = 3; |
1948 | | {PROTOBUF_FIELD_OFFSET(UploadScript, _impl_.terminal_), 0, 0, |
1949 | | (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
1950 | | // .curl.fuzzer.proto.UploadSeekResult seek_result = 4; |
1951 | | {PROTOBUF_FIELD_OFFSET(UploadScript, _impl_.seek_result_), 0, 0, |
1952 | | (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
1953 | | }}, |
1954 | | // no aux_entries |
1955 | | {{ |
1956 | | }}, |
1957 | | }; |
1958 | | |
1959 | 20 | PROTOBUF_NOINLINE void UploadScript::Clear() { |
1960 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.UploadScript) |
1961 | 20 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1962 | 20 | ::uint32_t cached_has_bits = 0; |
1963 | | // Prevent compiler warnings about cached_has_bits being unused |
1964 | 20 | (void) cached_has_bits; |
1965 | | |
1966 | 20 | _impl_.read_sizes_.Clear(); |
1967 | 20 | _impl_.data_.ClearToEmpty(); |
1968 | 20 | ::memset(&_impl_.terminal_, 0, static_cast<::size_t>( |
1969 | 20 | reinterpret_cast<char*>(&_impl_.seek_result_) - |
1970 | 20 | reinterpret_cast<char*>(&_impl_.terminal_)) + sizeof(_impl_.seek_result_)); |
1971 | 20 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
1972 | 20 | } |
1973 | | |
1974 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1975 | | ::uint8_t* UploadScript::_InternalSerialize( |
1976 | | const MessageLite& base, ::uint8_t* target, |
1977 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
1978 | | const UploadScript& this_ = static_cast<const UploadScript&>(base); |
1979 | | #else // PROTOBUF_CUSTOM_VTABLE |
1980 | | ::uint8_t* UploadScript::_InternalSerialize( |
1981 | | ::uint8_t* target, |
1982 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1983 | 0 | const UploadScript& this_ = *this; |
1984 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1985 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.UploadScript) |
1986 | 0 | ::uint32_t cached_has_bits = 0; |
1987 | 0 | (void)cached_has_bits; |
1988 | | |
1989 | | // bytes data = 1; |
1990 | 0 | if (!this_._internal_data().empty()) { |
1991 | 0 | const std::string& _s = this_._internal_data(); |
1992 | 0 | target = stream->WriteBytesMaybeAliased(1, _s, target); |
1993 | 0 | } |
1994 | | |
1995 | | // repeated uint32 read_sizes = 2; |
1996 | 0 | { |
1997 | 0 | int byte_size = this_._impl_._read_sizes_cached_byte_size_.Get(); |
1998 | 0 | if (byte_size > 0) { |
1999 | 0 | target = stream->WriteUInt32Packed( |
2000 | 0 | 2, this_._internal_read_sizes(), byte_size, target); |
2001 | 0 | } |
2002 | 0 | } |
2003 | | |
2004 | | // .curl.fuzzer.proto.UploadTerminal terminal = 3; |
2005 | 0 | if (this_._internal_terminal() != 0) { |
2006 | 0 | target = stream->EnsureSpace(target); |
2007 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
2008 | 0 | 3, this_._internal_terminal(), target); |
2009 | 0 | } |
2010 | | |
2011 | | // .curl.fuzzer.proto.UploadSeekResult seek_result = 4; |
2012 | 0 | if (this_._internal_seek_result() != 0) { |
2013 | 0 | target = stream->EnsureSpace(target); |
2014 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
2015 | 0 | 4, this_._internal_seek_result(), target); |
2016 | 0 | } |
2017 | |
|
2018 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
2019 | 0 | target = |
2020 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
2021 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
2022 | 0 | } |
2023 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.UploadScript) |
2024 | 0 | return target; |
2025 | 0 | } |
2026 | | |
2027 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2028 | | ::size_t UploadScript::ByteSizeLong(const MessageLite& base) { |
2029 | | const UploadScript& this_ = static_cast<const UploadScript&>(base); |
2030 | | #else // PROTOBUF_CUSTOM_VTABLE |
2031 | 0 | ::size_t UploadScript::ByteSizeLong() const { |
2032 | 0 | const UploadScript& this_ = *this; |
2033 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2034 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.UploadScript) |
2035 | 0 | ::size_t total_size = 0; |
2036 | |
|
2037 | 0 | ::uint32_t cached_has_bits = 0; |
2038 | | // Prevent compiler warnings about cached_has_bits being unused |
2039 | 0 | (void)cached_has_bits; |
2040 | |
|
2041 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
2042 | 0 | { |
2043 | | // repeated uint32 read_sizes = 2; |
2044 | 0 | { |
2045 | 0 | total_size += |
2046 | 0 | ::_pbi::WireFormatLite::UInt32SizeWithPackedTagSize( |
2047 | 0 | this_._internal_read_sizes(), 1, |
2048 | 0 | this_._impl_._read_sizes_cached_byte_size_); |
2049 | 0 | } |
2050 | 0 | } |
2051 | 0 | { |
2052 | | // bytes data = 1; |
2053 | 0 | if (!this_._internal_data().empty()) { |
2054 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
2055 | 0 | this_._internal_data()); |
2056 | 0 | } |
2057 | | // .curl.fuzzer.proto.UploadTerminal terminal = 3; |
2058 | 0 | if (this_._internal_terminal() != 0) { |
2059 | 0 | total_size += 1 + |
2060 | 0 | ::_pbi::WireFormatLite::EnumSize(this_._internal_terminal()); |
2061 | 0 | } |
2062 | | // .curl.fuzzer.proto.UploadSeekResult seek_result = 4; |
2063 | 0 | if (this_._internal_seek_result() != 0) { |
2064 | 0 | total_size += 1 + |
2065 | 0 | ::_pbi::WireFormatLite::EnumSize(this_._internal_seek_result()); |
2066 | 0 | } |
2067 | 0 | } |
2068 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
2069 | 0 | &this_._impl_._cached_size_); |
2070 | 0 | } |
2071 | | |
2072 | 0 | void UploadScript::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
2073 | 0 | auto* const _this = static_cast<UploadScript*>(&to_msg); |
2074 | 0 | auto& from = static_cast<const UploadScript&>(from_msg); |
2075 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.UploadScript) |
2076 | 0 | ABSL_DCHECK_NE(&from, _this); |
2077 | 0 | ::uint32_t cached_has_bits = 0; |
2078 | 0 | (void) cached_has_bits; |
2079 | |
|
2080 | 0 | _this->_internal_mutable_read_sizes()->MergeFrom(from._internal_read_sizes()); |
2081 | 0 | if (!from._internal_data().empty()) { |
2082 | 0 | _this->_internal_set_data(from._internal_data()); |
2083 | 0 | } |
2084 | 0 | if (from._internal_terminal() != 0) { |
2085 | 0 | _this->_impl_.terminal_ = from._impl_.terminal_; |
2086 | 0 | } |
2087 | 0 | if (from._internal_seek_result() != 0) { |
2088 | 0 | _this->_impl_.seek_result_ = from._impl_.seek_result_; |
2089 | 0 | } |
2090 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
2091 | 0 | } |
2092 | | |
2093 | 0 | void UploadScript::CopyFrom(const UploadScript& from) { |
2094 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.UploadScript) |
2095 | 0 | if (&from == this) return; |
2096 | 0 | Clear(); |
2097 | 0 | MergeFrom(from); |
2098 | 0 | } |
2099 | | |
2100 | | |
2101 | 0 | void UploadScript::InternalSwap(UploadScript* PROTOBUF_RESTRICT other) { |
2102 | 0 | using std::swap; |
2103 | 0 | auto* arena = GetArena(); |
2104 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
2105 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
2106 | 0 | _impl_.read_sizes_.InternalSwap(&other->_impl_.read_sizes_); |
2107 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena); |
2108 | 0 | ::google::protobuf::internal::memswap< |
2109 | 0 | PROTOBUF_FIELD_OFFSET(UploadScript, _impl_.seek_result_) |
2110 | 0 | + sizeof(UploadScript::_impl_.seek_result_) |
2111 | 0 | - PROTOBUF_FIELD_OFFSET(UploadScript, _impl_.terminal_)>( |
2112 | 0 | reinterpret_cast<char*>(&_impl_.terminal_), |
2113 | 0 | reinterpret_cast<char*>(&other->_impl_.terminal_)); |
2114 | 0 | } |
2115 | | |
2116 | 0 | ::google::protobuf::Metadata UploadScript::GetMetadata() const { |
2117 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
2118 | 0 | } |
2119 | | // =================================================================== |
2120 | | |
2121 | | class MimePost::_Internal { |
2122 | | public: |
2123 | | }; |
2124 | | |
2125 | | MimePost::MimePost(::google::protobuf::Arena* arena) |
2126 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2127 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
2128 | | #else // PROTOBUF_CUSTOM_VTABLE |
2129 | 0 | : ::google::protobuf::Message(arena) { |
2130 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2131 | 0 | SharedCtor(arena); |
2132 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.MimePost) |
2133 | 0 | } |
2134 | | inline PROTOBUF_NDEBUG_INLINE MimePost::Impl_::Impl_( |
2135 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
2136 | | const Impl_& from, const ::curl::fuzzer::proto::MimePost& from_msg) |
2137 | 0 | : parts_{visibility, arena, from.parts_}, |
2138 | 0 | _cached_size_{0} {} |
2139 | | |
2140 | | MimePost::MimePost( |
2141 | | ::google::protobuf::Arena* arena, |
2142 | | const MimePost& from) |
2143 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2144 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
2145 | | #else // PROTOBUF_CUSTOM_VTABLE |
2146 | 0 | : ::google::protobuf::Message(arena) { |
2147 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2148 | 0 | MimePost* const _this = this; |
2149 | 0 | (void)_this; |
2150 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
2151 | 0 | from._internal_metadata_); |
2152 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
2153 | | |
2154 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.MimePost) |
2155 | 0 | } |
2156 | | inline PROTOBUF_NDEBUG_INLINE MimePost::Impl_::Impl_( |
2157 | | ::google::protobuf::internal::InternalVisibility visibility, |
2158 | | ::google::protobuf::Arena* arena) |
2159 | 0 | : parts_{visibility, arena}, |
2160 | 0 | _cached_size_{0} {} |
2161 | | |
2162 | 0 | inline void MimePost::SharedCtor(::_pb::Arena* arena) { |
2163 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
2164 | 0 | } |
2165 | 5.25k | MimePost::~MimePost() { |
2166 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.MimePost) |
2167 | 5.25k | SharedDtor(*this); |
2168 | 5.25k | } |
2169 | 5.25k | inline void MimePost::SharedDtor(MessageLite& self) { |
2170 | 5.25k | MimePost& this_ = static_cast<MimePost&>(self); |
2171 | 5.25k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
2172 | 5.25k | ABSL_DCHECK(this_.GetArena() == nullptr); |
2173 | 5.25k | this_._impl_.~Impl_(); |
2174 | 5.25k | } |
2175 | | |
2176 | | inline void* MimePost::PlacementNew_(const void*, void* mem, |
2177 | 0 | ::google::protobuf::Arena* arena) { |
2178 | 0 | return ::new (mem) MimePost(arena); |
2179 | 0 | } |
2180 | 0 | constexpr auto MimePost::InternalNewImpl_() { |
2181 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
2182 | 0 | PROTOBUF_FIELD_OFFSET(MimePost, _impl_.parts_) + |
2183 | 0 | decltype(MimePost::_impl_.parts_):: |
2184 | 0 | InternalGetArenaOffset( |
2185 | 0 | ::google::protobuf::Message::internal_visibility()), |
2186 | 0 | }); |
2187 | 0 | if (arena_bits.has_value()) { |
2188 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit( |
2189 | 0 | sizeof(MimePost), alignof(MimePost), *arena_bits); |
2190 | 0 | } else { |
2191 | 0 | return ::google::protobuf::internal::MessageCreator(&MimePost::PlacementNew_, |
2192 | 0 | sizeof(MimePost), |
2193 | 0 | alignof(MimePost)); |
2194 | 0 | } |
2195 | 0 | } |
2196 | | PROTOBUF_CONSTINIT |
2197 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2198 | | const ::google::protobuf::internal::ClassDataFull MimePost::_class_data_ = { |
2199 | | ::google::protobuf::internal::ClassData{ |
2200 | | &_MimePost_default_instance_._instance, |
2201 | | &_table_.header, |
2202 | | nullptr, // OnDemandRegisterArenaDtor |
2203 | | nullptr, // IsInitialized |
2204 | | &MimePost::MergeImpl, |
2205 | | ::google::protobuf::Message::GetNewImpl<MimePost>(), |
2206 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2207 | | &MimePost::SharedDtor, |
2208 | | ::google::protobuf::Message::GetClearImpl<MimePost>(), &MimePost::ByteSizeLong, |
2209 | | &MimePost::_InternalSerialize, |
2210 | | #endif // PROTOBUF_CUSTOM_VTABLE |
2211 | | PROTOBUF_FIELD_OFFSET(MimePost, _impl_._cached_size_), |
2212 | | false, |
2213 | | }, |
2214 | | &MimePost::kDescriptorMethods, |
2215 | | &descriptor_table_curl_5ffuzzer_2eproto, |
2216 | | nullptr, // tracker |
2217 | | }; |
2218 | 31.4k | const ::google::protobuf::internal::ClassData* MimePost::GetClassData() const { |
2219 | 31.4k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
2220 | 31.4k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
2221 | 31.4k | return _class_data_.base(); |
2222 | 31.4k | } |
2223 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2224 | | const ::_pbi::TcParseTable<0, 1, 1, 0, 2> MimePost::_table_ = { |
2225 | | { |
2226 | | 0, // no _has_bits_ |
2227 | | 0, // no _extensions_ |
2228 | | 1, 0, // max_field_number, fast_idx_mask |
2229 | | offsetof(decltype(_table_), field_lookup_table), |
2230 | | 4294967294, // skipmap |
2231 | | offsetof(decltype(_table_), field_entries), |
2232 | | 1, // num_field_entries |
2233 | | 1, // num_aux_entries |
2234 | | offsetof(decltype(_table_), aux_entries), |
2235 | | _class_data_.base(), |
2236 | | nullptr, // post_loop_handler |
2237 | | ::_pbi::TcParser::GenericFallback, // fallback |
2238 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
2239 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::MimePost>(), // to_prefetch |
2240 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
2241 | | }, {{ |
2242 | | // repeated .curl.fuzzer.proto.MimePart parts = 1; |
2243 | | {::_pbi::TcParser::FastMtR1, |
2244 | | {10, 63, 0, PROTOBUF_FIELD_OFFSET(MimePost, _impl_.parts_)}}, |
2245 | | }}, {{ |
2246 | | 65535, 65535 |
2247 | | }}, {{ |
2248 | | // repeated .curl.fuzzer.proto.MimePart parts = 1; |
2249 | | {PROTOBUF_FIELD_OFFSET(MimePost, _impl_.parts_), 0, 0, |
2250 | | (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
2251 | | }}, {{ |
2252 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::MimePart>()}, |
2253 | | }}, {{ |
2254 | | }}, |
2255 | | }; |
2256 | | |
2257 | 18 | PROTOBUF_NOINLINE void MimePost::Clear() { |
2258 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.MimePost) |
2259 | 18 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2260 | 18 | ::uint32_t cached_has_bits = 0; |
2261 | | // Prevent compiler warnings about cached_has_bits being unused |
2262 | 18 | (void) cached_has_bits; |
2263 | | |
2264 | 18 | _impl_.parts_.Clear(); |
2265 | 18 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
2266 | 18 | } |
2267 | | |
2268 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2269 | | ::uint8_t* MimePost::_InternalSerialize( |
2270 | | const MessageLite& base, ::uint8_t* target, |
2271 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
2272 | | const MimePost& this_ = static_cast<const MimePost&>(base); |
2273 | | #else // PROTOBUF_CUSTOM_VTABLE |
2274 | | ::uint8_t* MimePost::_InternalSerialize( |
2275 | | ::uint8_t* target, |
2276 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
2277 | 0 | const MimePost& this_ = *this; |
2278 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2279 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.MimePost) |
2280 | 0 | ::uint32_t cached_has_bits = 0; |
2281 | 0 | (void)cached_has_bits; |
2282 | | |
2283 | | // repeated .curl.fuzzer.proto.MimePart parts = 1; |
2284 | 0 | for (unsigned i = 0, n = static_cast<unsigned>( |
2285 | 0 | this_._internal_parts_size()); |
2286 | 0 | i < n; i++) { |
2287 | 0 | const auto& repfield = this_._internal_parts().Get(i); |
2288 | 0 | target = |
2289 | 0 | ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
2290 | 0 | 1, repfield, repfield.GetCachedSize(), |
2291 | 0 | target, stream); |
2292 | 0 | } |
2293 | |
|
2294 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
2295 | 0 | target = |
2296 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
2297 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
2298 | 0 | } |
2299 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.MimePost) |
2300 | 0 | return target; |
2301 | 0 | } |
2302 | | |
2303 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2304 | | ::size_t MimePost::ByteSizeLong(const MessageLite& base) { |
2305 | | const MimePost& this_ = static_cast<const MimePost&>(base); |
2306 | | #else // PROTOBUF_CUSTOM_VTABLE |
2307 | 0 | ::size_t MimePost::ByteSizeLong() const { |
2308 | 0 | const MimePost& this_ = *this; |
2309 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2310 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.MimePost) |
2311 | 0 | ::size_t total_size = 0; |
2312 | |
|
2313 | 0 | ::uint32_t cached_has_bits = 0; |
2314 | | // Prevent compiler warnings about cached_has_bits being unused |
2315 | 0 | (void)cached_has_bits; |
2316 | |
|
2317 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
2318 | 0 | { |
2319 | | // repeated .curl.fuzzer.proto.MimePart parts = 1; |
2320 | 0 | { |
2321 | 0 | total_size += 1UL * this_._internal_parts_size(); |
2322 | 0 | for (const auto& msg : this_._internal_parts()) { |
2323 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); |
2324 | 0 | } |
2325 | 0 | } |
2326 | 0 | } |
2327 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
2328 | 0 | &this_._impl_._cached_size_); |
2329 | 0 | } |
2330 | | |
2331 | 0 | void MimePost::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
2332 | 0 | auto* const _this = static_cast<MimePost*>(&to_msg); |
2333 | 0 | auto& from = static_cast<const MimePost&>(from_msg); |
2334 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.MimePost) |
2335 | 0 | ABSL_DCHECK_NE(&from, _this); |
2336 | 0 | ::uint32_t cached_has_bits = 0; |
2337 | 0 | (void) cached_has_bits; |
2338 | |
|
2339 | 0 | _this->_internal_mutable_parts()->MergeFrom( |
2340 | 0 | from._internal_parts()); |
2341 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
2342 | 0 | } |
2343 | | |
2344 | 0 | void MimePost::CopyFrom(const MimePost& from) { |
2345 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.MimePost) |
2346 | 0 | if (&from == this) return; |
2347 | 0 | Clear(); |
2348 | 0 | MergeFrom(from); |
2349 | 0 | } |
2350 | | |
2351 | | |
2352 | 0 | void MimePost::InternalSwap(MimePost* PROTOBUF_RESTRICT other) { |
2353 | 0 | using std::swap; |
2354 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
2355 | 0 | _impl_.parts_.InternalSwap(&other->_impl_.parts_); |
2356 | 0 | } |
2357 | | |
2358 | 0 | ::google::protobuf::Metadata MimePost::GetMetadata() const { |
2359 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
2360 | 0 | } |
2361 | | // =================================================================== |
2362 | | |
2363 | | class MimePart::_Internal { |
2364 | | public: |
2365 | | static constexpr ::int32_t kOneofCaseOffset = |
2366 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::MimePart, _impl_._oneof_case_); |
2367 | | }; |
2368 | | |
2369 | 0 | void MimePart::set_allocated_subparts(::curl::fuzzer::proto::MimeSubparts* subparts) { |
2370 | 0 | ::google::protobuf::Arena* message_arena = GetArena(); |
2371 | 0 | clear_content(); |
2372 | 0 | if (subparts) { |
2373 | 0 | ::google::protobuf::Arena* submessage_arena = subparts->GetArena(); |
2374 | 0 | if (message_arena != submessage_arena) { |
2375 | 0 | subparts = ::google::protobuf::internal::GetOwnedMessage(message_arena, subparts, submessage_arena); |
2376 | 0 | } |
2377 | 0 | set_has_subparts(); |
2378 | 0 | _impl_.content_.subparts_ = subparts; |
2379 | 0 | } |
2380 | | // @@protoc_insertion_point(field_set_allocated:curl.fuzzer.proto.MimePart.subparts) |
2381 | 0 | } |
2382 | | MimePart::MimePart(::google::protobuf::Arena* arena) |
2383 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2384 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
2385 | | #else // PROTOBUF_CUSTOM_VTABLE |
2386 | 0 | : ::google::protobuf::Message(arena) { |
2387 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2388 | 0 | SharedCtor(arena); |
2389 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.MimePart) |
2390 | 0 | } |
2391 | | inline PROTOBUF_NDEBUG_INLINE MimePart::Impl_::Impl_( |
2392 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
2393 | | const Impl_& from, const ::curl::fuzzer::proto::MimePart& from_msg) |
2394 | 0 | : headers_{visibility, arena, from.headers_}, |
2395 | 0 | name_(arena, from.name_), |
2396 | 0 | filename_(arena, from.filename_), |
2397 | 0 | content_type_(arena, from.content_type_), |
2398 | 0 | content_{}, |
2399 | 0 | _cached_size_{0}, |
2400 | 0 | _oneof_case_{from._oneof_case_[0]} {} |
2401 | | |
2402 | | MimePart::MimePart( |
2403 | | ::google::protobuf::Arena* arena, |
2404 | | const MimePart& from) |
2405 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2406 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
2407 | | #else // PROTOBUF_CUSTOM_VTABLE |
2408 | 0 | : ::google::protobuf::Message(arena) { |
2409 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2410 | 0 | MimePart* const _this = this; |
2411 | 0 | (void)_this; |
2412 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
2413 | 0 | from._internal_metadata_); |
2414 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
2415 | 0 | _impl_.encoder_ = from._impl_.encoder_; |
2416 | 0 | switch (content_case()) { |
2417 | 0 | case CONTENT_NOT_SET: |
2418 | 0 | break; |
2419 | 0 | case kData: |
2420 | 0 | new (&_impl_.content_.data_) decltype(_impl_.content_.data_){arena, from._impl_.content_.data_}; |
2421 | 0 | break; |
2422 | 0 | case kSubparts: |
2423 | 0 | _impl_.content_.subparts_ = ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::MimeSubparts>(arena, *from._impl_.content_.subparts_); |
2424 | 0 | break; |
2425 | 0 | } |
2426 | | |
2427 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.MimePart) |
2428 | 0 | } |
2429 | | inline PROTOBUF_NDEBUG_INLINE MimePart::Impl_::Impl_( |
2430 | | ::google::protobuf::internal::InternalVisibility visibility, |
2431 | | ::google::protobuf::Arena* arena) |
2432 | 0 | : headers_{visibility, arena}, |
2433 | 0 | name_(arena), |
2434 | 0 | filename_(arena), |
2435 | 0 | content_type_(arena), |
2436 | 0 | content_{}, |
2437 | 0 | _cached_size_{0}, |
2438 | 0 | _oneof_case_{} {} |
2439 | | |
2440 | 0 | inline void MimePart::SharedCtor(::_pb::Arena* arena) { |
2441 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
2442 | 0 | _impl_.encoder_ = {}; |
2443 | 0 | } |
2444 | 10.4k | MimePart::~MimePart() { |
2445 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.MimePart) |
2446 | 10.4k | SharedDtor(*this); |
2447 | 10.4k | } |
2448 | 10.4k | inline void MimePart::SharedDtor(MessageLite& self) { |
2449 | 10.4k | MimePart& this_ = static_cast<MimePart&>(self); |
2450 | 10.4k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
2451 | 10.4k | ABSL_DCHECK(this_.GetArena() == nullptr); |
2452 | 10.4k | this_._impl_.name_.Destroy(); |
2453 | 10.4k | this_._impl_.filename_.Destroy(); |
2454 | 10.4k | this_._impl_.content_type_.Destroy(); |
2455 | 10.4k | if (this_.has_content()) { |
2456 | 7.46k | this_.clear_content(); |
2457 | 7.46k | } |
2458 | 10.4k | this_._impl_.~Impl_(); |
2459 | 10.4k | } |
2460 | | |
2461 | 7.51k | void MimePart::clear_content() { |
2462 | | // @@protoc_insertion_point(one_of_clear_start:curl.fuzzer.proto.MimePart) |
2463 | 7.51k | ::google::protobuf::internal::TSanWrite(&_impl_); |
2464 | 7.51k | switch (content_case()) { |
2465 | 1.88k | case kData: { |
2466 | 1.88k | _impl_.content_.data_.Destroy(); |
2467 | 1.88k | break; |
2468 | 0 | } |
2469 | 5.61k | case kSubparts: { |
2470 | 5.61k | if (GetArena() == nullptr) { |
2471 | 5.61k | delete _impl_.content_.subparts_; |
2472 | 5.61k | } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { |
2473 | 0 | ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.content_.subparts_); |
2474 | 0 | } |
2475 | 5.61k | break; |
2476 | 0 | } |
2477 | 12 | case CONTENT_NOT_SET: { |
2478 | 12 | break; |
2479 | 0 | } |
2480 | 7.51k | } |
2481 | 7.51k | _impl_._oneof_case_[0] = CONTENT_NOT_SET; |
2482 | 7.51k | } |
2483 | | |
2484 | | |
2485 | | inline void* MimePart::PlacementNew_(const void*, void* mem, |
2486 | 0 | ::google::protobuf::Arena* arena) { |
2487 | 0 | return ::new (mem) MimePart(arena); |
2488 | 0 | } |
2489 | 0 | constexpr auto MimePart::InternalNewImpl_() { |
2490 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
2491 | 0 | PROTOBUF_FIELD_OFFSET(MimePart, _impl_.headers_) + |
2492 | 0 | decltype(MimePart::_impl_.headers_):: |
2493 | 0 | InternalGetArenaOffset( |
2494 | 0 | ::google::protobuf::Message::internal_visibility()), |
2495 | 0 | }); |
2496 | 0 | if (arena_bits.has_value()) { |
2497 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit( |
2498 | 0 | sizeof(MimePart), alignof(MimePart), *arena_bits); |
2499 | 0 | } else { |
2500 | 0 | return ::google::protobuf::internal::MessageCreator(&MimePart::PlacementNew_, |
2501 | 0 | sizeof(MimePart), |
2502 | 0 | alignof(MimePart)); |
2503 | 0 | } |
2504 | 0 | } |
2505 | | PROTOBUF_CONSTINIT |
2506 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2507 | | const ::google::protobuf::internal::ClassDataFull MimePart::_class_data_ = { |
2508 | | ::google::protobuf::internal::ClassData{ |
2509 | | &_MimePart_default_instance_._instance, |
2510 | | &_table_.header, |
2511 | | nullptr, // OnDemandRegisterArenaDtor |
2512 | | nullptr, // IsInitialized |
2513 | | &MimePart::MergeImpl, |
2514 | | ::google::protobuf::Message::GetNewImpl<MimePart>(), |
2515 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2516 | | &MimePart::SharedDtor, |
2517 | | ::google::protobuf::Message::GetClearImpl<MimePart>(), &MimePart::ByteSizeLong, |
2518 | | &MimePart::_InternalSerialize, |
2519 | | #endif // PROTOBUF_CUSTOM_VTABLE |
2520 | | PROTOBUF_FIELD_OFFSET(MimePart, _impl_._cached_size_), |
2521 | | false, |
2522 | | }, |
2523 | | &MimePart::kDescriptorMethods, |
2524 | | &descriptor_table_curl_5ffuzzer_2eproto, |
2525 | | nullptr, // tracker |
2526 | | }; |
2527 | 62.4k | const ::google::protobuf::internal::ClassData* MimePart::GetClassData() const { |
2528 | 62.4k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
2529 | 62.4k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
2530 | 62.4k | return _class_data_.base(); |
2531 | 62.4k | } |
2532 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2533 | | const ::_pbi::TcParseTable<3, 7, 1, 0, 2> MimePart::_table_ = { |
2534 | | { |
2535 | | 0, // no _has_bits_ |
2536 | | 0, // no _extensions_ |
2537 | | 7, 56, // max_field_number, fast_idx_mask |
2538 | | offsetof(decltype(_table_), field_lookup_table), |
2539 | | 4294967168, // skipmap |
2540 | | offsetof(decltype(_table_), field_entries), |
2541 | | 7, // num_field_entries |
2542 | | 1, // num_aux_entries |
2543 | | offsetof(decltype(_table_), aux_entries), |
2544 | | _class_data_.base(), |
2545 | | nullptr, // post_loop_handler |
2546 | | ::_pbi::TcParser::GenericFallback, // fallback |
2547 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
2548 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::MimePart>(), // to_prefetch |
2549 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
2550 | | }, {{ |
2551 | | {::_pbi::TcParser::MiniParse, {}}, |
2552 | | // bytes name = 1; |
2553 | | {::_pbi::TcParser::FastBS1, |
2554 | | {10, 63, 0, PROTOBUF_FIELD_OFFSET(MimePart, _impl_.name_)}}, |
2555 | | {::_pbi::TcParser::MiniParse, {}}, |
2556 | | // bytes filename = 3; |
2557 | | {::_pbi::TcParser::FastBS1, |
2558 | | {26, 63, 0, PROTOBUF_FIELD_OFFSET(MimePart, _impl_.filename_)}}, |
2559 | | // bytes content_type = 4; |
2560 | | {::_pbi::TcParser::FastBS1, |
2561 | | {34, 63, 0, PROTOBUF_FIELD_OFFSET(MimePart, _impl_.content_type_)}}, |
2562 | | // .curl.fuzzer.proto.MimeEncoder encoder = 5; |
2563 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MimePart, _impl_.encoder_), 63>(), |
2564 | | {40, 63, 0, PROTOBUF_FIELD_OFFSET(MimePart, _impl_.encoder_)}}, |
2565 | | // repeated bytes headers = 6; |
2566 | | {::_pbi::TcParser::FastBR1, |
2567 | | {50, 63, 0, PROTOBUF_FIELD_OFFSET(MimePart, _impl_.headers_)}}, |
2568 | | {::_pbi::TcParser::MiniParse, {}}, |
2569 | | }}, {{ |
2570 | | 65535, 65535 |
2571 | | }}, {{ |
2572 | | // bytes name = 1; |
2573 | | {PROTOBUF_FIELD_OFFSET(MimePart, _impl_.name_), 0, 0, |
2574 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
2575 | | // bytes data = 2; |
2576 | | {PROTOBUF_FIELD_OFFSET(MimePart, _impl_.content_.data_), _Internal::kOneofCaseOffset + 0, 0, |
2577 | | (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)}, |
2578 | | // bytes filename = 3; |
2579 | | {PROTOBUF_FIELD_OFFSET(MimePart, _impl_.filename_), 0, 0, |
2580 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
2581 | | // bytes content_type = 4; |
2582 | | {PROTOBUF_FIELD_OFFSET(MimePart, _impl_.content_type_), 0, 0, |
2583 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
2584 | | // .curl.fuzzer.proto.MimeEncoder encoder = 5; |
2585 | | {PROTOBUF_FIELD_OFFSET(MimePart, _impl_.encoder_), 0, 0, |
2586 | | (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
2587 | | // repeated bytes headers = 6; |
2588 | | {PROTOBUF_FIELD_OFFSET(MimePart, _impl_.headers_), 0, 0, |
2589 | | (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)}, |
2590 | | // .curl.fuzzer.proto.MimeSubparts subparts = 7; |
2591 | | {PROTOBUF_FIELD_OFFSET(MimePart, _impl_.content_.subparts_), _Internal::kOneofCaseOffset + 0, 0, |
2592 | | (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, |
2593 | | }}, {{ |
2594 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::MimeSubparts>()}, |
2595 | | }}, {{ |
2596 | | }}, |
2597 | | }; |
2598 | | |
2599 | 49 | PROTOBUF_NOINLINE void MimePart::Clear() { |
2600 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.MimePart) |
2601 | 49 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2602 | 49 | ::uint32_t cached_has_bits = 0; |
2603 | | // Prevent compiler warnings about cached_has_bits being unused |
2604 | 49 | (void) cached_has_bits; |
2605 | | |
2606 | 49 | _impl_.headers_.Clear(); |
2607 | 49 | _impl_.name_.ClearToEmpty(); |
2608 | 49 | _impl_.filename_.ClearToEmpty(); |
2609 | 49 | _impl_.content_type_.ClearToEmpty(); |
2610 | 49 | _impl_.encoder_ = 0; |
2611 | 49 | clear_content(); |
2612 | 49 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
2613 | 49 | } |
2614 | | |
2615 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2616 | | ::uint8_t* MimePart::_InternalSerialize( |
2617 | | const MessageLite& base, ::uint8_t* target, |
2618 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
2619 | | const MimePart& this_ = static_cast<const MimePart&>(base); |
2620 | | #else // PROTOBUF_CUSTOM_VTABLE |
2621 | | ::uint8_t* MimePart::_InternalSerialize( |
2622 | | ::uint8_t* target, |
2623 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
2624 | 0 | const MimePart& this_ = *this; |
2625 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2626 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.MimePart) |
2627 | 0 | ::uint32_t cached_has_bits = 0; |
2628 | 0 | (void)cached_has_bits; |
2629 | | |
2630 | | // bytes name = 1; |
2631 | 0 | if (!this_._internal_name().empty()) { |
2632 | 0 | const std::string& _s = this_._internal_name(); |
2633 | 0 | target = stream->WriteBytesMaybeAliased(1, _s, target); |
2634 | 0 | } |
2635 | | |
2636 | | // bytes data = 2; |
2637 | 0 | if (this_.content_case() == kData) { |
2638 | 0 | const std::string& _s = this_._internal_data(); |
2639 | 0 | target = stream->WriteBytesMaybeAliased(2, _s, target); |
2640 | 0 | } |
2641 | | |
2642 | | // bytes filename = 3; |
2643 | 0 | if (!this_._internal_filename().empty()) { |
2644 | 0 | const std::string& _s = this_._internal_filename(); |
2645 | 0 | target = stream->WriteBytesMaybeAliased(3, _s, target); |
2646 | 0 | } |
2647 | | |
2648 | | // bytes content_type = 4; |
2649 | 0 | if (!this_._internal_content_type().empty()) { |
2650 | 0 | const std::string& _s = this_._internal_content_type(); |
2651 | 0 | target = stream->WriteBytesMaybeAliased(4, _s, target); |
2652 | 0 | } |
2653 | | |
2654 | | // .curl.fuzzer.proto.MimeEncoder encoder = 5; |
2655 | 0 | if (this_._internal_encoder() != 0) { |
2656 | 0 | target = stream->EnsureSpace(target); |
2657 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
2658 | 0 | 5, this_._internal_encoder(), target); |
2659 | 0 | } |
2660 | | |
2661 | | // repeated bytes headers = 6; |
2662 | 0 | for (int i = 0, n = this_._internal_headers_size(); i < n; ++i) { |
2663 | 0 | const auto& s = this_._internal_headers().Get(i); |
2664 | 0 | target = stream->WriteBytes(6, s, target); |
2665 | 0 | } |
2666 | | |
2667 | | // .curl.fuzzer.proto.MimeSubparts subparts = 7; |
2668 | 0 | if (this_.content_case() == kSubparts) { |
2669 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
2670 | 0 | 7, *this_._impl_.content_.subparts_, this_._impl_.content_.subparts_->GetCachedSize(), target, |
2671 | 0 | stream); |
2672 | 0 | } |
2673 | |
|
2674 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
2675 | 0 | target = |
2676 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
2677 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
2678 | 0 | } |
2679 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.MimePart) |
2680 | 0 | return target; |
2681 | 0 | } |
2682 | | |
2683 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2684 | | ::size_t MimePart::ByteSizeLong(const MessageLite& base) { |
2685 | | const MimePart& this_ = static_cast<const MimePart&>(base); |
2686 | | #else // PROTOBUF_CUSTOM_VTABLE |
2687 | 0 | ::size_t MimePart::ByteSizeLong() const { |
2688 | 0 | const MimePart& this_ = *this; |
2689 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2690 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.MimePart) |
2691 | 0 | ::size_t total_size = 0; |
2692 | |
|
2693 | 0 | ::uint32_t cached_has_bits = 0; |
2694 | | // Prevent compiler warnings about cached_has_bits being unused |
2695 | 0 | (void)cached_has_bits; |
2696 | |
|
2697 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
2698 | 0 | { |
2699 | | // repeated bytes headers = 6; |
2700 | 0 | { |
2701 | 0 | total_size += |
2702 | 0 | 1 * ::google::protobuf::internal::FromIntSize(this_._internal_headers().size()); |
2703 | 0 | for (int i = 0, n = this_._internal_headers().size(); i < n; ++i) { |
2704 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
2705 | 0 | this_._internal_headers().Get(i)); |
2706 | 0 | } |
2707 | 0 | } |
2708 | 0 | } |
2709 | 0 | { |
2710 | | // bytes name = 1; |
2711 | 0 | if (!this_._internal_name().empty()) { |
2712 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
2713 | 0 | this_._internal_name()); |
2714 | 0 | } |
2715 | | // bytes filename = 3; |
2716 | 0 | if (!this_._internal_filename().empty()) { |
2717 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
2718 | 0 | this_._internal_filename()); |
2719 | 0 | } |
2720 | | // bytes content_type = 4; |
2721 | 0 | if (!this_._internal_content_type().empty()) { |
2722 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
2723 | 0 | this_._internal_content_type()); |
2724 | 0 | } |
2725 | | // .curl.fuzzer.proto.MimeEncoder encoder = 5; |
2726 | 0 | if (this_._internal_encoder() != 0) { |
2727 | 0 | total_size += 1 + |
2728 | 0 | ::_pbi::WireFormatLite::EnumSize(this_._internal_encoder()); |
2729 | 0 | } |
2730 | 0 | } |
2731 | 0 | switch (this_.content_case()) { |
2732 | | // bytes data = 2; |
2733 | 0 | case kData: { |
2734 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
2735 | 0 | this_._internal_data()); |
2736 | 0 | break; |
2737 | 0 | } |
2738 | | // .curl.fuzzer.proto.MimeSubparts subparts = 7; |
2739 | 0 | case kSubparts: { |
2740 | 0 | total_size += 1 + |
2741 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.content_.subparts_); |
2742 | 0 | break; |
2743 | 0 | } |
2744 | 0 | case CONTENT_NOT_SET: { |
2745 | 0 | break; |
2746 | 0 | } |
2747 | 0 | } |
2748 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
2749 | 0 | &this_._impl_._cached_size_); |
2750 | 0 | } |
2751 | | |
2752 | 0 | void MimePart::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
2753 | 0 | auto* const _this = static_cast<MimePart*>(&to_msg); |
2754 | 0 | auto& from = static_cast<const MimePart&>(from_msg); |
2755 | 0 | ::google::protobuf::Arena* arena = _this->GetArena(); |
2756 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.MimePart) |
2757 | 0 | ABSL_DCHECK_NE(&from, _this); |
2758 | 0 | ::uint32_t cached_has_bits = 0; |
2759 | 0 | (void) cached_has_bits; |
2760 | |
|
2761 | 0 | _this->_internal_mutable_headers()->MergeFrom(from._internal_headers()); |
2762 | 0 | if (!from._internal_name().empty()) { |
2763 | 0 | _this->_internal_set_name(from._internal_name()); |
2764 | 0 | } |
2765 | 0 | if (!from._internal_filename().empty()) { |
2766 | 0 | _this->_internal_set_filename(from._internal_filename()); |
2767 | 0 | } |
2768 | 0 | if (!from._internal_content_type().empty()) { |
2769 | 0 | _this->_internal_set_content_type(from._internal_content_type()); |
2770 | 0 | } |
2771 | 0 | if (from._internal_encoder() != 0) { |
2772 | 0 | _this->_impl_.encoder_ = from._impl_.encoder_; |
2773 | 0 | } |
2774 | 0 | if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { |
2775 | 0 | const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; |
2776 | 0 | const bool oneof_needs_init = oneof_to_case != oneof_from_case; |
2777 | 0 | if (oneof_needs_init) { |
2778 | 0 | if (oneof_to_case != 0) { |
2779 | 0 | _this->clear_content(); |
2780 | 0 | } |
2781 | 0 | _this->_impl_._oneof_case_[0] = oneof_from_case; |
2782 | 0 | } |
2783 | |
|
2784 | 0 | switch (oneof_from_case) { |
2785 | 0 | case kData: { |
2786 | 0 | if (oneof_needs_init) { |
2787 | 0 | _this->_impl_.content_.data_.InitDefault(); |
2788 | 0 | } |
2789 | 0 | _this->_impl_.content_.data_.Set(from._internal_data(), arena); |
2790 | 0 | break; |
2791 | 0 | } |
2792 | 0 | case kSubparts: { |
2793 | 0 | if (oneof_needs_init) { |
2794 | 0 | _this->_impl_.content_.subparts_ = |
2795 | 0 | ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::MimeSubparts>(arena, *from._impl_.content_.subparts_); |
2796 | 0 | } else { |
2797 | 0 | _this->_impl_.content_.subparts_->MergeFrom(from._internal_subparts()); |
2798 | 0 | } |
2799 | 0 | break; |
2800 | 0 | } |
2801 | 0 | case CONTENT_NOT_SET: |
2802 | 0 | break; |
2803 | 0 | } |
2804 | 0 | } |
2805 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
2806 | 0 | } |
2807 | | |
2808 | 0 | void MimePart::CopyFrom(const MimePart& from) { |
2809 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.MimePart) |
2810 | 0 | if (&from == this) return; |
2811 | 0 | Clear(); |
2812 | 0 | MergeFrom(from); |
2813 | 0 | } |
2814 | | |
2815 | | |
2816 | 0 | void MimePart::InternalSwap(MimePart* PROTOBUF_RESTRICT other) { |
2817 | 0 | using std::swap; |
2818 | 0 | auto* arena = GetArena(); |
2819 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
2820 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
2821 | 0 | _impl_.headers_.InternalSwap(&other->_impl_.headers_); |
2822 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); |
2823 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.filename_, &other->_impl_.filename_, arena); |
2824 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.content_type_, &other->_impl_.content_type_, arena); |
2825 | 0 | swap(_impl_.encoder_, other->_impl_.encoder_); |
2826 | 0 | swap(_impl_.content_, other->_impl_.content_); |
2827 | 0 | swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); |
2828 | 0 | } |
2829 | | |
2830 | 0 | ::google::protobuf::Metadata MimePart::GetMetadata() const { |
2831 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
2832 | 0 | } |
2833 | | // =================================================================== |
2834 | | |
2835 | | class MimeSubparts::_Internal { |
2836 | | public: |
2837 | | }; |
2838 | | |
2839 | | MimeSubparts::MimeSubparts(::google::protobuf::Arena* arena) |
2840 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2841 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
2842 | | #else // PROTOBUF_CUSTOM_VTABLE |
2843 | 0 | : ::google::protobuf::Message(arena) { |
2844 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2845 | 0 | SharedCtor(arena); |
2846 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.MimeSubparts) |
2847 | 0 | } |
2848 | | inline PROTOBUF_NDEBUG_INLINE MimeSubparts::Impl_::Impl_( |
2849 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
2850 | | const Impl_& from, const ::curl::fuzzer::proto::MimeSubparts& from_msg) |
2851 | 0 | : parts_{visibility, arena, from.parts_}, |
2852 | 0 | _cached_size_{0} {} |
2853 | | |
2854 | | MimeSubparts::MimeSubparts( |
2855 | | ::google::protobuf::Arena* arena, |
2856 | | const MimeSubparts& from) |
2857 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2858 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
2859 | | #else // PROTOBUF_CUSTOM_VTABLE |
2860 | 0 | : ::google::protobuf::Message(arena) { |
2861 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2862 | 0 | MimeSubparts* const _this = this; |
2863 | 0 | (void)_this; |
2864 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
2865 | 0 | from._internal_metadata_); |
2866 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
2867 | | |
2868 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.MimeSubparts) |
2869 | 0 | } |
2870 | | inline PROTOBUF_NDEBUG_INLINE MimeSubparts::Impl_::Impl_( |
2871 | | ::google::protobuf::internal::InternalVisibility visibility, |
2872 | | ::google::protobuf::Arena* arena) |
2873 | 0 | : parts_{visibility, arena}, |
2874 | 0 | _cached_size_{0} {} |
2875 | | |
2876 | 0 | inline void MimeSubparts::SharedCtor(::_pb::Arena* arena) { |
2877 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
2878 | 0 | } |
2879 | 5.61k | MimeSubparts::~MimeSubparts() { |
2880 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.MimeSubparts) |
2881 | 5.61k | SharedDtor(*this); |
2882 | 5.61k | } |
2883 | 5.61k | inline void MimeSubparts::SharedDtor(MessageLite& self) { |
2884 | 5.61k | MimeSubparts& this_ = static_cast<MimeSubparts&>(self); |
2885 | 5.61k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
2886 | 5.61k | ABSL_DCHECK(this_.GetArena() == nullptr); |
2887 | 5.61k | this_._impl_.~Impl_(); |
2888 | 5.61k | } |
2889 | | |
2890 | | inline void* MimeSubparts::PlacementNew_(const void*, void* mem, |
2891 | 0 | ::google::protobuf::Arena* arena) { |
2892 | 0 | return ::new (mem) MimeSubparts(arena); |
2893 | 0 | } |
2894 | 0 | constexpr auto MimeSubparts::InternalNewImpl_() { |
2895 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
2896 | 0 | PROTOBUF_FIELD_OFFSET(MimeSubparts, _impl_.parts_) + |
2897 | 0 | decltype(MimeSubparts::_impl_.parts_):: |
2898 | 0 | InternalGetArenaOffset( |
2899 | 0 | ::google::protobuf::Message::internal_visibility()), |
2900 | 0 | }); |
2901 | 0 | if (arena_bits.has_value()) { |
2902 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit( |
2903 | 0 | sizeof(MimeSubparts), alignof(MimeSubparts), *arena_bits); |
2904 | 0 | } else { |
2905 | 0 | return ::google::protobuf::internal::MessageCreator(&MimeSubparts::PlacementNew_, |
2906 | 0 | sizeof(MimeSubparts), |
2907 | 0 | alignof(MimeSubparts)); |
2908 | 0 | } |
2909 | 0 | } |
2910 | | PROTOBUF_CONSTINIT |
2911 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2912 | | const ::google::protobuf::internal::ClassDataFull MimeSubparts::_class_data_ = { |
2913 | | ::google::protobuf::internal::ClassData{ |
2914 | | &_MimeSubparts_default_instance_._instance, |
2915 | | &_table_.header, |
2916 | | nullptr, // OnDemandRegisterArenaDtor |
2917 | | nullptr, // IsInitialized |
2918 | | &MimeSubparts::MergeImpl, |
2919 | | ::google::protobuf::Message::GetNewImpl<MimeSubparts>(), |
2920 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2921 | | &MimeSubparts::SharedDtor, |
2922 | | ::google::protobuf::Message::GetClearImpl<MimeSubparts>(), &MimeSubparts::ByteSizeLong, |
2923 | | &MimeSubparts::_InternalSerialize, |
2924 | | #endif // PROTOBUF_CUSTOM_VTABLE |
2925 | | PROTOBUF_FIELD_OFFSET(MimeSubparts, _impl_._cached_size_), |
2926 | | false, |
2927 | | }, |
2928 | | &MimeSubparts::kDescriptorMethods, |
2929 | | &descriptor_table_curl_5ffuzzer_2eproto, |
2930 | | nullptr, // tracker |
2931 | | }; |
2932 | 33.6k | const ::google::protobuf::internal::ClassData* MimeSubparts::GetClassData() const { |
2933 | 33.6k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
2934 | 33.6k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
2935 | 33.6k | return _class_data_.base(); |
2936 | 33.6k | } |
2937 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2938 | | const ::_pbi::TcParseTable<0, 1, 1, 0, 2> MimeSubparts::_table_ = { |
2939 | | { |
2940 | | 0, // no _has_bits_ |
2941 | | 0, // no _extensions_ |
2942 | | 1, 0, // max_field_number, fast_idx_mask |
2943 | | offsetof(decltype(_table_), field_lookup_table), |
2944 | | 4294967294, // skipmap |
2945 | | offsetof(decltype(_table_), field_entries), |
2946 | | 1, // num_field_entries |
2947 | | 1, // num_aux_entries |
2948 | | offsetof(decltype(_table_), aux_entries), |
2949 | | _class_data_.base(), |
2950 | | nullptr, // post_loop_handler |
2951 | | ::_pbi::TcParser::GenericFallback, // fallback |
2952 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
2953 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::MimeSubparts>(), // to_prefetch |
2954 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
2955 | | }, {{ |
2956 | | // repeated .curl.fuzzer.proto.MimeDataPart parts = 1; |
2957 | | {::_pbi::TcParser::FastMtR1, |
2958 | | {10, 63, 0, PROTOBUF_FIELD_OFFSET(MimeSubparts, _impl_.parts_)}}, |
2959 | | }}, {{ |
2960 | | 65535, 65535 |
2961 | | }}, {{ |
2962 | | // repeated .curl.fuzzer.proto.MimeDataPart parts = 1; |
2963 | | {PROTOBUF_FIELD_OFFSET(MimeSubparts, _impl_.parts_), 0, 0, |
2964 | | (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
2965 | | }}, {{ |
2966 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::MimeDataPart>()}, |
2967 | | }}, {{ |
2968 | | }}, |
2969 | | }; |
2970 | | |
2971 | 0 | PROTOBUF_NOINLINE void MimeSubparts::Clear() { |
2972 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.MimeSubparts) |
2973 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2974 | 0 | ::uint32_t cached_has_bits = 0; |
2975 | | // Prevent compiler warnings about cached_has_bits being unused |
2976 | 0 | (void) cached_has_bits; |
2977 | |
|
2978 | 0 | _impl_.parts_.Clear(); |
2979 | 0 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
2980 | 0 | } |
2981 | | |
2982 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2983 | | ::uint8_t* MimeSubparts::_InternalSerialize( |
2984 | | const MessageLite& base, ::uint8_t* target, |
2985 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
2986 | | const MimeSubparts& this_ = static_cast<const MimeSubparts&>(base); |
2987 | | #else // PROTOBUF_CUSTOM_VTABLE |
2988 | | ::uint8_t* MimeSubparts::_InternalSerialize( |
2989 | | ::uint8_t* target, |
2990 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
2991 | 0 | const MimeSubparts& this_ = *this; |
2992 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2993 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.MimeSubparts) |
2994 | 0 | ::uint32_t cached_has_bits = 0; |
2995 | 0 | (void)cached_has_bits; |
2996 | | |
2997 | | // repeated .curl.fuzzer.proto.MimeDataPart parts = 1; |
2998 | 0 | for (unsigned i = 0, n = static_cast<unsigned>( |
2999 | 0 | this_._internal_parts_size()); |
3000 | 0 | i < n; i++) { |
3001 | 0 | const auto& repfield = this_._internal_parts().Get(i); |
3002 | 0 | target = |
3003 | 0 | ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
3004 | 0 | 1, repfield, repfield.GetCachedSize(), |
3005 | 0 | target, stream); |
3006 | 0 | } |
3007 | |
|
3008 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
3009 | 0 | target = |
3010 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
3011 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
3012 | 0 | } |
3013 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.MimeSubparts) |
3014 | 0 | return target; |
3015 | 0 | } |
3016 | | |
3017 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3018 | | ::size_t MimeSubparts::ByteSizeLong(const MessageLite& base) { |
3019 | | const MimeSubparts& this_ = static_cast<const MimeSubparts&>(base); |
3020 | | #else // PROTOBUF_CUSTOM_VTABLE |
3021 | 0 | ::size_t MimeSubparts::ByteSizeLong() const { |
3022 | 0 | const MimeSubparts& this_ = *this; |
3023 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3024 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.MimeSubparts) |
3025 | 0 | ::size_t total_size = 0; |
3026 | |
|
3027 | 0 | ::uint32_t cached_has_bits = 0; |
3028 | | // Prevent compiler warnings about cached_has_bits being unused |
3029 | 0 | (void)cached_has_bits; |
3030 | |
|
3031 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
3032 | 0 | { |
3033 | | // repeated .curl.fuzzer.proto.MimeDataPart parts = 1; |
3034 | 0 | { |
3035 | 0 | total_size += 1UL * this_._internal_parts_size(); |
3036 | 0 | for (const auto& msg : this_._internal_parts()) { |
3037 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); |
3038 | 0 | } |
3039 | 0 | } |
3040 | 0 | } |
3041 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
3042 | 0 | &this_._impl_._cached_size_); |
3043 | 0 | } |
3044 | | |
3045 | 0 | void MimeSubparts::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
3046 | 0 | auto* const _this = static_cast<MimeSubparts*>(&to_msg); |
3047 | 0 | auto& from = static_cast<const MimeSubparts&>(from_msg); |
3048 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.MimeSubparts) |
3049 | 0 | ABSL_DCHECK_NE(&from, _this); |
3050 | 0 | ::uint32_t cached_has_bits = 0; |
3051 | 0 | (void) cached_has_bits; |
3052 | |
|
3053 | 0 | _this->_internal_mutable_parts()->MergeFrom( |
3054 | 0 | from._internal_parts()); |
3055 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
3056 | 0 | } |
3057 | | |
3058 | 0 | void MimeSubparts::CopyFrom(const MimeSubparts& from) { |
3059 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.MimeSubparts) |
3060 | 0 | if (&from == this) return; |
3061 | 0 | Clear(); |
3062 | 0 | MergeFrom(from); |
3063 | 0 | } |
3064 | | |
3065 | | |
3066 | 0 | void MimeSubparts::InternalSwap(MimeSubparts* PROTOBUF_RESTRICT other) { |
3067 | 0 | using std::swap; |
3068 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
3069 | 0 | _impl_.parts_.InternalSwap(&other->_impl_.parts_); |
3070 | 0 | } |
3071 | | |
3072 | 0 | ::google::protobuf::Metadata MimeSubparts::GetMetadata() const { |
3073 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
3074 | 0 | } |
3075 | | // =================================================================== |
3076 | | |
3077 | | class MimeDataPart::_Internal { |
3078 | | public: |
3079 | | }; |
3080 | | |
3081 | | MimeDataPart::MimeDataPart(::google::protobuf::Arena* arena) |
3082 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3083 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
3084 | | #else // PROTOBUF_CUSTOM_VTABLE |
3085 | 0 | : ::google::protobuf::Message(arena) { |
3086 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3087 | 0 | SharedCtor(arena); |
3088 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.MimeDataPart) |
3089 | 0 | } |
3090 | | inline PROTOBUF_NDEBUG_INLINE MimeDataPart::Impl_::Impl_( |
3091 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
3092 | | const Impl_& from, const ::curl::fuzzer::proto::MimeDataPart& from_msg) |
3093 | 0 | : headers_{visibility, arena, from.headers_}, |
3094 | 0 | name_(arena, from.name_), |
3095 | 0 | data_(arena, from.data_), |
3096 | 0 | filename_(arena, from.filename_), |
3097 | 0 | content_type_(arena, from.content_type_), |
3098 | 0 | _cached_size_{0} {} |
3099 | | |
3100 | | MimeDataPart::MimeDataPart( |
3101 | | ::google::protobuf::Arena* arena, |
3102 | | const MimeDataPart& from) |
3103 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3104 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
3105 | | #else // PROTOBUF_CUSTOM_VTABLE |
3106 | 0 | : ::google::protobuf::Message(arena) { |
3107 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3108 | 0 | MimeDataPart* const _this = this; |
3109 | 0 | (void)_this; |
3110 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
3111 | 0 | from._internal_metadata_); |
3112 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
3113 | 0 | _impl_.encoder_ = from._impl_.encoder_; |
3114 | | |
3115 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.MimeDataPart) |
3116 | 0 | } |
3117 | | inline PROTOBUF_NDEBUG_INLINE MimeDataPart::Impl_::Impl_( |
3118 | | ::google::protobuf::internal::InternalVisibility visibility, |
3119 | | ::google::protobuf::Arena* arena) |
3120 | 0 | : headers_{visibility, arena}, |
3121 | 0 | name_(arena), |
3122 | 0 | data_(arena), |
3123 | 0 | filename_(arena), |
3124 | 0 | content_type_(arena), |
3125 | 0 | _cached_size_{0} {} |
3126 | | |
3127 | 0 | inline void MimeDataPart::SharedCtor(::_pb::Arena* arena) { |
3128 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
3129 | 0 | _impl_.encoder_ = {}; |
3130 | 0 | } |
3131 | 14.1k | MimeDataPart::~MimeDataPart() { |
3132 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.MimeDataPart) |
3133 | 14.1k | SharedDtor(*this); |
3134 | 14.1k | } |
3135 | 14.1k | inline void MimeDataPart::SharedDtor(MessageLite& self) { |
3136 | 14.1k | MimeDataPart& this_ = static_cast<MimeDataPart&>(self); |
3137 | 14.1k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
3138 | 14.1k | ABSL_DCHECK(this_.GetArena() == nullptr); |
3139 | 14.1k | this_._impl_.name_.Destroy(); |
3140 | 14.1k | this_._impl_.data_.Destroy(); |
3141 | 14.1k | this_._impl_.filename_.Destroy(); |
3142 | 14.1k | this_._impl_.content_type_.Destroy(); |
3143 | 14.1k | this_._impl_.~Impl_(); |
3144 | 14.1k | } |
3145 | | |
3146 | | inline void* MimeDataPart::PlacementNew_(const void*, void* mem, |
3147 | 0 | ::google::protobuf::Arena* arena) { |
3148 | 0 | return ::new (mem) MimeDataPart(arena); |
3149 | 0 | } |
3150 | 0 | constexpr auto MimeDataPart::InternalNewImpl_() { |
3151 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
3152 | 0 | PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.headers_) + |
3153 | 0 | decltype(MimeDataPart::_impl_.headers_):: |
3154 | 0 | InternalGetArenaOffset( |
3155 | 0 | ::google::protobuf::Message::internal_visibility()), |
3156 | 0 | }); |
3157 | 0 | if (arena_bits.has_value()) { |
3158 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit( |
3159 | 0 | sizeof(MimeDataPart), alignof(MimeDataPart), *arena_bits); |
3160 | 0 | } else { |
3161 | 0 | return ::google::protobuf::internal::MessageCreator(&MimeDataPart::PlacementNew_, |
3162 | 0 | sizeof(MimeDataPart), |
3163 | 0 | alignof(MimeDataPart)); |
3164 | 0 | } |
3165 | 0 | } |
3166 | | PROTOBUF_CONSTINIT |
3167 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
3168 | | const ::google::protobuf::internal::ClassDataFull MimeDataPart::_class_data_ = { |
3169 | | ::google::protobuf::internal::ClassData{ |
3170 | | &_MimeDataPart_default_instance_._instance, |
3171 | | &_table_.header, |
3172 | | nullptr, // OnDemandRegisterArenaDtor |
3173 | | nullptr, // IsInitialized |
3174 | | &MimeDataPart::MergeImpl, |
3175 | | ::google::protobuf::Message::GetNewImpl<MimeDataPart>(), |
3176 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3177 | | &MimeDataPart::SharedDtor, |
3178 | | ::google::protobuf::Message::GetClearImpl<MimeDataPart>(), &MimeDataPart::ByteSizeLong, |
3179 | | &MimeDataPart::_InternalSerialize, |
3180 | | #endif // PROTOBUF_CUSTOM_VTABLE |
3181 | | PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_._cached_size_), |
3182 | | false, |
3183 | | }, |
3184 | | &MimeDataPart::kDescriptorMethods, |
3185 | | &descriptor_table_curl_5ffuzzer_2eproto, |
3186 | | nullptr, // tracker |
3187 | | }; |
3188 | 84.8k | const ::google::protobuf::internal::ClassData* MimeDataPart::GetClassData() const { |
3189 | 84.8k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
3190 | 84.8k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
3191 | 84.8k | return _class_data_.base(); |
3192 | 84.8k | } |
3193 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
3194 | | const ::_pbi::TcParseTable<3, 6, 0, 0, 2> MimeDataPart::_table_ = { |
3195 | | { |
3196 | | 0, // no _has_bits_ |
3197 | | 0, // no _extensions_ |
3198 | | 6, 56, // max_field_number, fast_idx_mask |
3199 | | offsetof(decltype(_table_), field_lookup_table), |
3200 | | 4294967232, // skipmap |
3201 | | offsetof(decltype(_table_), field_entries), |
3202 | | 6, // num_field_entries |
3203 | | 0, // num_aux_entries |
3204 | | offsetof(decltype(_table_), field_names), // no aux_entries |
3205 | | _class_data_.base(), |
3206 | | nullptr, // post_loop_handler |
3207 | | ::_pbi::TcParser::GenericFallback, // fallback |
3208 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
3209 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::MimeDataPart>(), // to_prefetch |
3210 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
3211 | | }, {{ |
3212 | | {::_pbi::TcParser::MiniParse, {}}, |
3213 | | // bytes name = 1; |
3214 | | {::_pbi::TcParser::FastBS1, |
3215 | | {10, 63, 0, PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.name_)}}, |
3216 | | // bytes data = 2; |
3217 | | {::_pbi::TcParser::FastBS1, |
3218 | | {18, 63, 0, PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.data_)}}, |
3219 | | // bytes filename = 3; |
3220 | | {::_pbi::TcParser::FastBS1, |
3221 | | {26, 63, 0, PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.filename_)}}, |
3222 | | // bytes content_type = 4; |
3223 | | {::_pbi::TcParser::FastBS1, |
3224 | | {34, 63, 0, PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.content_type_)}}, |
3225 | | // .curl.fuzzer.proto.MimeEncoder encoder = 5; |
3226 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MimeDataPart, _impl_.encoder_), 63>(), |
3227 | | {40, 63, 0, PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.encoder_)}}, |
3228 | | // repeated bytes headers = 6; |
3229 | | {::_pbi::TcParser::FastBR1, |
3230 | | {50, 63, 0, PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.headers_)}}, |
3231 | | {::_pbi::TcParser::MiniParse, {}}, |
3232 | | }}, {{ |
3233 | | 65535, 65535 |
3234 | | }}, {{ |
3235 | | // bytes name = 1; |
3236 | | {PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.name_), 0, 0, |
3237 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
3238 | | // bytes data = 2; |
3239 | | {PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.data_), 0, 0, |
3240 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
3241 | | // bytes filename = 3; |
3242 | | {PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.filename_), 0, 0, |
3243 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
3244 | | // bytes content_type = 4; |
3245 | | {PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.content_type_), 0, 0, |
3246 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
3247 | | // .curl.fuzzer.proto.MimeEncoder encoder = 5; |
3248 | | {PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.encoder_), 0, 0, |
3249 | | (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
3250 | | // repeated bytes headers = 6; |
3251 | | {PROTOBUF_FIELD_OFFSET(MimeDataPart, _impl_.headers_), 0, 0, |
3252 | | (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)}, |
3253 | | }}, |
3254 | | // no aux_entries |
3255 | | {{ |
3256 | | }}, |
3257 | | }; |
3258 | | |
3259 | 0 | PROTOBUF_NOINLINE void MimeDataPart::Clear() { |
3260 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.MimeDataPart) |
3261 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3262 | 0 | ::uint32_t cached_has_bits = 0; |
3263 | | // Prevent compiler warnings about cached_has_bits being unused |
3264 | 0 | (void) cached_has_bits; |
3265 | |
|
3266 | 0 | _impl_.headers_.Clear(); |
3267 | 0 | _impl_.name_.ClearToEmpty(); |
3268 | 0 | _impl_.data_.ClearToEmpty(); |
3269 | 0 | _impl_.filename_.ClearToEmpty(); |
3270 | 0 | _impl_.content_type_.ClearToEmpty(); |
3271 | 0 | _impl_.encoder_ = 0; |
3272 | 0 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
3273 | 0 | } |
3274 | | |
3275 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3276 | | ::uint8_t* MimeDataPart::_InternalSerialize( |
3277 | | const MessageLite& base, ::uint8_t* target, |
3278 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
3279 | | const MimeDataPart& this_ = static_cast<const MimeDataPart&>(base); |
3280 | | #else // PROTOBUF_CUSTOM_VTABLE |
3281 | | ::uint8_t* MimeDataPart::_InternalSerialize( |
3282 | | ::uint8_t* target, |
3283 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
3284 | 0 | const MimeDataPart& this_ = *this; |
3285 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3286 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.MimeDataPart) |
3287 | 0 | ::uint32_t cached_has_bits = 0; |
3288 | 0 | (void)cached_has_bits; |
3289 | | |
3290 | | // bytes name = 1; |
3291 | 0 | if (!this_._internal_name().empty()) { |
3292 | 0 | const std::string& _s = this_._internal_name(); |
3293 | 0 | target = stream->WriteBytesMaybeAliased(1, _s, target); |
3294 | 0 | } |
3295 | | |
3296 | | // bytes data = 2; |
3297 | 0 | if (!this_._internal_data().empty()) { |
3298 | 0 | const std::string& _s = this_._internal_data(); |
3299 | 0 | target = stream->WriteBytesMaybeAliased(2, _s, target); |
3300 | 0 | } |
3301 | | |
3302 | | // bytes filename = 3; |
3303 | 0 | if (!this_._internal_filename().empty()) { |
3304 | 0 | const std::string& _s = this_._internal_filename(); |
3305 | 0 | target = stream->WriteBytesMaybeAliased(3, _s, target); |
3306 | 0 | } |
3307 | | |
3308 | | // bytes content_type = 4; |
3309 | 0 | if (!this_._internal_content_type().empty()) { |
3310 | 0 | const std::string& _s = this_._internal_content_type(); |
3311 | 0 | target = stream->WriteBytesMaybeAliased(4, _s, target); |
3312 | 0 | } |
3313 | | |
3314 | | // .curl.fuzzer.proto.MimeEncoder encoder = 5; |
3315 | 0 | if (this_._internal_encoder() != 0) { |
3316 | 0 | target = stream->EnsureSpace(target); |
3317 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
3318 | 0 | 5, this_._internal_encoder(), target); |
3319 | 0 | } |
3320 | | |
3321 | | // repeated bytes headers = 6; |
3322 | 0 | for (int i = 0, n = this_._internal_headers_size(); i < n; ++i) { |
3323 | 0 | const auto& s = this_._internal_headers().Get(i); |
3324 | 0 | target = stream->WriteBytes(6, s, target); |
3325 | 0 | } |
3326 | |
|
3327 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
3328 | 0 | target = |
3329 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
3330 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
3331 | 0 | } |
3332 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.MimeDataPart) |
3333 | 0 | return target; |
3334 | 0 | } |
3335 | | |
3336 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3337 | | ::size_t MimeDataPart::ByteSizeLong(const MessageLite& base) { |
3338 | | const MimeDataPart& this_ = static_cast<const MimeDataPart&>(base); |
3339 | | #else // PROTOBUF_CUSTOM_VTABLE |
3340 | 0 | ::size_t MimeDataPart::ByteSizeLong() const { |
3341 | 0 | const MimeDataPart& this_ = *this; |
3342 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3343 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.MimeDataPart) |
3344 | 0 | ::size_t total_size = 0; |
3345 | |
|
3346 | 0 | ::uint32_t cached_has_bits = 0; |
3347 | | // Prevent compiler warnings about cached_has_bits being unused |
3348 | 0 | (void)cached_has_bits; |
3349 | |
|
3350 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
3351 | 0 | { |
3352 | | // repeated bytes headers = 6; |
3353 | 0 | { |
3354 | 0 | total_size += |
3355 | 0 | 1 * ::google::protobuf::internal::FromIntSize(this_._internal_headers().size()); |
3356 | 0 | for (int i = 0, n = this_._internal_headers().size(); i < n; ++i) { |
3357 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
3358 | 0 | this_._internal_headers().Get(i)); |
3359 | 0 | } |
3360 | 0 | } |
3361 | 0 | } |
3362 | 0 | { |
3363 | | // bytes name = 1; |
3364 | 0 | if (!this_._internal_name().empty()) { |
3365 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
3366 | 0 | this_._internal_name()); |
3367 | 0 | } |
3368 | | // bytes data = 2; |
3369 | 0 | if (!this_._internal_data().empty()) { |
3370 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
3371 | 0 | this_._internal_data()); |
3372 | 0 | } |
3373 | | // bytes filename = 3; |
3374 | 0 | if (!this_._internal_filename().empty()) { |
3375 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
3376 | 0 | this_._internal_filename()); |
3377 | 0 | } |
3378 | | // bytes content_type = 4; |
3379 | 0 | if (!this_._internal_content_type().empty()) { |
3380 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
3381 | 0 | this_._internal_content_type()); |
3382 | 0 | } |
3383 | | // .curl.fuzzer.proto.MimeEncoder encoder = 5; |
3384 | 0 | if (this_._internal_encoder() != 0) { |
3385 | 0 | total_size += 1 + |
3386 | 0 | ::_pbi::WireFormatLite::EnumSize(this_._internal_encoder()); |
3387 | 0 | } |
3388 | 0 | } |
3389 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
3390 | 0 | &this_._impl_._cached_size_); |
3391 | 0 | } |
3392 | | |
3393 | 0 | void MimeDataPart::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
3394 | 0 | auto* const _this = static_cast<MimeDataPart*>(&to_msg); |
3395 | 0 | auto& from = static_cast<const MimeDataPart&>(from_msg); |
3396 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.MimeDataPart) |
3397 | 0 | ABSL_DCHECK_NE(&from, _this); |
3398 | 0 | ::uint32_t cached_has_bits = 0; |
3399 | 0 | (void) cached_has_bits; |
3400 | |
|
3401 | 0 | _this->_internal_mutable_headers()->MergeFrom(from._internal_headers()); |
3402 | 0 | if (!from._internal_name().empty()) { |
3403 | 0 | _this->_internal_set_name(from._internal_name()); |
3404 | 0 | } |
3405 | 0 | if (!from._internal_data().empty()) { |
3406 | 0 | _this->_internal_set_data(from._internal_data()); |
3407 | 0 | } |
3408 | 0 | if (!from._internal_filename().empty()) { |
3409 | 0 | _this->_internal_set_filename(from._internal_filename()); |
3410 | 0 | } |
3411 | 0 | if (!from._internal_content_type().empty()) { |
3412 | 0 | _this->_internal_set_content_type(from._internal_content_type()); |
3413 | 0 | } |
3414 | 0 | if (from._internal_encoder() != 0) { |
3415 | 0 | _this->_impl_.encoder_ = from._impl_.encoder_; |
3416 | 0 | } |
3417 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
3418 | 0 | } |
3419 | | |
3420 | 0 | void MimeDataPart::CopyFrom(const MimeDataPart& from) { |
3421 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.MimeDataPart) |
3422 | 0 | if (&from == this) return; |
3423 | 0 | Clear(); |
3424 | 0 | MergeFrom(from); |
3425 | 0 | } |
3426 | | |
3427 | | |
3428 | 0 | void MimeDataPart::InternalSwap(MimeDataPart* PROTOBUF_RESTRICT other) { |
3429 | 0 | using std::swap; |
3430 | 0 | auto* arena = GetArena(); |
3431 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
3432 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
3433 | 0 | _impl_.headers_.InternalSwap(&other->_impl_.headers_); |
3434 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); |
3435 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena); |
3436 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.filename_, &other->_impl_.filename_, arena); |
3437 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.content_type_, &other->_impl_.content_type_, arena); |
3438 | 0 | swap(_impl_.encoder_, other->_impl_.encoder_); |
3439 | 0 | } |
3440 | | |
3441 | 0 | ::google::protobuf::Metadata MimeDataPart::GetMetadata() const { |
3442 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
3443 | 0 | } |
3444 | | // =================================================================== |
3445 | | |
3446 | | class SetOption::_Internal { |
3447 | | public: |
3448 | | static constexpr ::int32_t kOneofCaseOffset = |
3449 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::SetOption, _impl_._oneof_case_); |
3450 | | }; |
3451 | | |
3452 | | SetOption::SetOption(::google::protobuf::Arena* arena) |
3453 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3454 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
3455 | | #else // PROTOBUF_CUSTOM_VTABLE |
3456 | 0 | : ::google::protobuf::Message(arena) { |
3457 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3458 | 0 | SharedCtor(arena); |
3459 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.SetOption) |
3460 | 0 | } |
3461 | | inline PROTOBUF_NDEBUG_INLINE SetOption::Impl_::Impl_( |
3462 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
3463 | | const Impl_& from, const ::curl::fuzzer::proto::SetOption& from_msg) |
3464 | 0 | : value_{}, |
3465 | 0 | _cached_size_{0}, |
3466 | 0 | _oneof_case_{from._oneof_case_[0]} {} |
3467 | | |
3468 | | SetOption::SetOption( |
3469 | | ::google::protobuf::Arena* arena, |
3470 | | const SetOption& from) |
3471 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3472 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
3473 | | #else // PROTOBUF_CUSTOM_VTABLE |
3474 | 0 | : ::google::protobuf::Message(arena) { |
3475 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3476 | 0 | SetOption* const _this = this; |
3477 | 0 | (void)_this; |
3478 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
3479 | 0 | from._internal_metadata_); |
3480 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
3481 | 0 | _impl_.option_id_ = from._impl_.option_id_; |
3482 | 0 | switch (value_case()) { |
3483 | 0 | case VALUE_NOT_SET: |
3484 | 0 | break; |
3485 | 0 | case kStringValue: |
3486 | 0 | new (&_impl_.value_.string_value_) decltype(_impl_.value_.string_value_){arena, from._impl_.value_.string_value_}; |
3487 | 0 | break; |
3488 | 0 | case kUintValue: |
3489 | 0 | _impl_.value_.uint_value_ = from._impl_.value_.uint_value_; |
3490 | 0 | break; |
3491 | 0 | case kBoolValue: |
3492 | 0 | _impl_.value_.bool_value_ = from._impl_.value_.bool_value_; |
3493 | 0 | break; |
3494 | 0 | } |
3495 | | |
3496 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.SetOption) |
3497 | 0 | } |
3498 | | inline PROTOBUF_NDEBUG_INLINE SetOption::Impl_::Impl_( |
3499 | | ::google::protobuf::internal::InternalVisibility visibility, |
3500 | | ::google::protobuf::Arena* arena) |
3501 | 0 | : value_{}, |
3502 | 0 | _cached_size_{0}, |
3503 | 0 | _oneof_case_{} {} |
3504 | | |
3505 | 0 | inline void SetOption::SharedCtor(::_pb::Arena* arena) { |
3506 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
3507 | 0 | _impl_.option_id_ = {}; |
3508 | 0 | } |
3509 | 97.8k | SetOption::~SetOption() { |
3510 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.SetOption) |
3511 | 97.8k | SharedDtor(*this); |
3512 | 97.8k | } |
3513 | 97.8k | inline void SetOption::SharedDtor(MessageLite& self) { |
3514 | 97.8k | SetOption& this_ = static_cast<SetOption&>(self); |
3515 | 97.8k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
3516 | 97.8k | ABSL_DCHECK(this_.GetArena() == nullptr); |
3517 | 97.8k | if (this_.has_value()) { |
3518 | 82.0k | this_.clear_value(); |
3519 | 82.0k | } |
3520 | 97.8k | this_._impl_.~Impl_(); |
3521 | 97.8k | } |
3522 | | |
3523 | 85.3k | void SetOption::clear_value() { |
3524 | | // @@protoc_insertion_point(one_of_clear_start:curl.fuzzer.proto.SetOption) |
3525 | 85.3k | ::google::protobuf::internal::TSanWrite(&_impl_); |
3526 | 85.3k | switch (value_case()) { |
3527 | 24.2k | case kStringValue: { |
3528 | 24.2k | _impl_.value_.string_value_.Destroy(); |
3529 | 24.2k | break; |
3530 | 0 | } |
3531 | 38.5k | case kUintValue: { |
3532 | | // No need to clear |
3533 | 38.5k | break; |
3534 | 0 | } |
3535 | 20.4k | case kBoolValue: { |
3536 | | // No need to clear |
3537 | 20.4k | break; |
3538 | 0 | } |
3539 | 2.07k | case VALUE_NOT_SET: { |
3540 | 2.07k | break; |
3541 | 0 | } |
3542 | 85.3k | } |
3543 | 85.3k | _impl_._oneof_case_[0] = VALUE_NOT_SET; |
3544 | 85.3k | } |
3545 | | |
3546 | | |
3547 | | inline void* SetOption::PlacementNew_(const void*, void* mem, |
3548 | 0 | ::google::protobuf::Arena* arena) { |
3549 | 0 | return ::new (mem) SetOption(arena); |
3550 | 0 | } |
3551 | 0 | constexpr auto SetOption::InternalNewImpl_() { |
3552 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetOption), |
3553 | 0 | alignof(SetOption)); |
3554 | 0 | } |
3555 | | PROTOBUF_CONSTINIT |
3556 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
3557 | | const ::google::protobuf::internal::ClassDataFull SetOption::_class_data_ = { |
3558 | | ::google::protobuf::internal::ClassData{ |
3559 | | &_SetOption_default_instance_._instance, |
3560 | | &_table_.header, |
3561 | | nullptr, // OnDemandRegisterArenaDtor |
3562 | | nullptr, // IsInitialized |
3563 | | &SetOption::MergeImpl, |
3564 | | ::google::protobuf::Message::GetNewImpl<SetOption>(), |
3565 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3566 | | &SetOption::SharedDtor, |
3567 | | ::google::protobuf::Message::GetClearImpl<SetOption>(), &SetOption::ByteSizeLong, |
3568 | | &SetOption::_InternalSerialize, |
3569 | | #endif // PROTOBUF_CUSTOM_VTABLE |
3570 | | PROTOBUF_FIELD_OFFSET(SetOption, _impl_._cached_size_), |
3571 | | false, |
3572 | | }, |
3573 | | &SetOption::kDescriptorMethods, |
3574 | | &descriptor_table_curl_5ffuzzer_2eproto, |
3575 | | nullptr, // tracker |
3576 | | }; |
3577 | 567k | const ::google::protobuf::internal::ClassData* SetOption::GetClassData() const { |
3578 | 567k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
3579 | 567k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
3580 | 567k | return _class_data_.base(); |
3581 | 567k | } |
3582 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
3583 | | const ::_pbi::TcParseTable<0, 4, 0, 0, 2> SetOption::_table_ = { |
3584 | | { |
3585 | | 0, // no _has_bits_ |
3586 | | 0, // no _extensions_ |
3587 | | 12, 0, // max_field_number, fast_idx_mask |
3588 | | offsetof(decltype(_table_), field_lookup_table), |
3589 | | 4294963710, // skipmap |
3590 | | offsetof(decltype(_table_), field_entries), |
3591 | | 4, // num_field_entries |
3592 | | 0, // num_aux_entries |
3593 | | offsetof(decltype(_table_), field_names), // no aux_entries |
3594 | | _class_data_.base(), |
3595 | | nullptr, // post_loop_handler |
3596 | | ::_pbi::TcParser::GenericFallback, // fallback |
3597 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
3598 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::SetOption>(), // to_prefetch |
3599 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
3600 | | }, {{ |
3601 | | // .curl.fuzzer.proto.CurlOptionId option_id = 1; |
3602 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SetOption, _impl_.option_id_), 63>(), |
3603 | | {8, 63, 0, PROTOBUF_FIELD_OFFSET(SetOption, _impl_.option_id_)}}, |
3604 | | }}, {{ |
3605 | | 65535, 65535 |
3606 | | }}, {{ |
3607 | | // .curl.fuzzer.proto.CurlOptionId option_id = 1; |
3608 | | {PROTOBUF_FIELD_OFFSET(SetOption, _impl_.option_id_), 0, 0, |
3609 | | (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
3610 | | // bytes string_value = 10; |
3611 | | {PROTOBUF_FIELD_OFFSET(SetOption, _impl_.value_.string_value_), _Internal::kOneofCaseOffset + 0, 0, |
3612 | | (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)}, |
3613 | | // uint64 uint_value = 11; |
3614 | | {PROTOBUF_FIELD_OFFSET(SetOption, _impl_.value_.uint_value_), _Internal::kOneofCaseOffset + 0, 0, |
3615 | | (0 | ::_fl::kFcOneof | ::_fl::kUInt64)}, |
3616 | | // bool bool_value = 12; |
3617 | | {PROTOBUF_FIELD_OFFSET(SetOption, _impl_.value_.bool_value_), _Internal::kOneofCaseOffset + 0, 0, |
3618 | | (0 | ::_fl::kFcOneof | ::_fl::kBool)}, |
3619 | | }}, |
3620 | | // no aux_entries |
3621 | | {{ |
3622 | | }}, |
3623 | | }; |
3624 | | |
3625 | 3.23k | PROTOBUF_NOINLINE void SetOption::Clear() { |
3626 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.SetOption) |
3627 | 3.23k | ::google::protobuf::internal::TSanWrite(&_impl_); |
3628 | 3.23k | ::uint32_t cached_has_bits = 0; |
3629 | | // Prevent compiler warnings about cached_has_bits being unused |
3630 | 3.23k | (void) cached_has_bits; |
3631 | | |
3632 | 3.23k | _impl_.option_id_ = 0; |
3633 | 3.23k | clear_value(); |
3634 | 3.23k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
3635 | 3.23k | } |
3636 | | |
3637 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3638 | | ::uint8_t* SetOption::_InternalSerialize( |
3639 | | const MessageLite& base, ::uint8_t* target, |
3640 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
3641 | | const SetOption& this_ = static_cast<const SetOption&>(base); |
3642 | | #else // PROTOBUF_CUSTOM_VTABLE |
3643 | | ::uint8_t* SetOption::_InternalSerialize( |
3644 | | ::uint8_t* target, |
3645 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
3646 | 0 | const SetOption& this_ = *this; |
3647 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3648 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.SetOption) |
3649 | 0 | ::uint32_t cached_has_bits = 0; |
3650 | 0 | (void)cached_has_bits; |
3651 | | |
3652 | | // .curl.fuzzer.proto.CurlOptionId option_id = 1; |
3653 | 0 | if (this_._internal_option_id() != 0) { |
3654 | 0 | target = stream->EnsureSpace(target); |
3655 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
3656 | 0 | 1, this_._internal_option_id(), target); |
3657 | 0 | } |
3658 | |
|
3659 | 0 | switch (this_.value_case()) { |
3660 | 0 | case kStringValue: { |
3661 | 0 | const std::string& _s = this_._internal_string_value(); |
3662 | 0 | target = stream->WriteBytesMaybeAliased(10, _s, target); |
3663 | 0 | break; |
3664 | 0 | } |
3665 | 0 | case kUintValue: { |
3666 | 0 | target = stream->EnsureSpace(target); |
3667 | 0 | target = ::_pbi::WireFormatLite::WriteUInt64ToArray( |
3668 | 0 | 11, this_._internal_uint_value(), target); |
3669 | 0 | break; |
3670 | 0 | } |
3671 | 0 | case kBoolValue: { |
3672 | 0 | target = stream->EnsureSpace(target); |
3673 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
3674 | 0 | 12, this_._internal_bool_value(), target); |
3675 | 0 | break; |
3676 | 0 | } |
3677 | 0 | default: |
3678 | 0 | break; |
3679 | 0 | } |
3680 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
3681 | 0 | target = |
3682 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
3683 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
3684 | 0 | } |
3685 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.SetOption) |
3686 | 0 | return target; |
3687 | 0 | } |
3688 | | |
3689 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3690 | | ::size_t SetOption::ByteSizeLong(const MessageLite& base) { |
3691 | | const SetOption& this_ = static_cast<const SetOption&>(base); |
3692 | | #else // PROTOBUF_CUSTOM_VTABLE |
3693 | 0 | ::size_t SetOption::ByteSizeLong() const { |
3694 | 0 | const SetOption& this_ = *this; |
3695 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3696 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.SetOption) |
3697 | 0 | ::size_t total_size = 0; |
3698 | |
|
3699 | 0 | ::uint32_t cached_has_bits = 0; |
3700 | | // Prevent compiler warnings about cached_has_bits being unused |
3701 | 0 | (void)cached_has_bits; |
3702 | |
|
3703 | 0 | { |
3704 | | // .curl.fuzzer.proto.CurlOptionId option_id = 1; |
3705 | 0 | if (this_._internal_option_id() != 0) { |
3706 | 0 | total_size += 1 + |
3707 | 0 | ::_pbi::WireFormatLite::EnumSize(this_._internal_option_id()); |
3708 | 0 | } |
3709 | 0 | } |
3710 | 0 | switch (this_.value_case()) { |
3711 | | // bytes string_value = 10; |
3712 | 0 | case kStringValue: { |
3713 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
3714 | 0 | this_._internal_string_value()); |
3715 | 0 | break; |
3716 | 0 | } |
3717 | | // uint64 uint_value = 11; |
3718 | 0 | case kUintValue: { |
3719 | 0 | total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( |
3720 | 0 | this_._internal_uint_value()); |
3721 | 0 | break; |
3722 | 0 | } |
3723 | | // bool bool_value = 12; |
3724 | 0 | case kBoolValue: { |
3725 | 0 | total_size += 2; |
3726 | 0 | break; |
3727 | 0 | } |
3728 | 0 | case VALUE_NOT_SET: { |
3729 | 0 | break; |
3730 | 0 | } |
3731 | 0 | } |
3732 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
3733 | 0 | &this_._impl_._cached_size_); |
3734 | 0 | } |
3735 | | |
3736 | 0 | void SetOption::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
3737 | 0 | auto* const _this = static_cast<SetOption*>(&to_msg); |
3738 | 0 | auto& from = static_cast<const SetOption&>(from_msg); |
3739 | 0 | ::google::protobuf::Arena* arena = _this->GetArena(); |
3740 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.SetOption) |
3741 | 0 | ABSL_DCHECK_NE(&from, _this); |
3742 | 0 | ::uint32_t cached_has_bits = 0; |
3743 | 0 | (void) cached_has_bits; |
3744 | |
|
3745 | 0 | if (from._internal_option_id() != 0) { |
3746 | 0 | _this->_impl_.option_id_ = from._impl_.option_id_; |
3747 | 0 | } |
3748 | 0 | if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { |
3749 | 0 | const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; |
3750 | 0 | const bool oneof_needs_init = oneof_to_case != oneof_from_case; |
3751 | 0 | if (oneof_needs_init) { |
3752 | 0 | if (oneof_to_case != 0) { |
3753 | 0 | _this->clear_value(); |
3754 | 0 | } |
3755 | 0 | _this->_impl_._oneof_case_[0] = oneof_from_case; |
3756 | 0 | } |
3757 | |
|
3758 | 0 | switch (oneof_from_case) { |
3759 | 0 | case kStringValue: { |
3760 | 0 | if (oneof_needs_init) { |
3761 | 0 | _this->_impl_.value_.string_value_.InitDefault(); |
3762 | 0 | } |
3763 | 0 | _this->_impl_.value_.string_value_.Set(from._internal_string_value(), arena); |
3764 | 0 | break; |
3765 | 0 | } |
3766 | 0 | case kUintValue: { |
3767 | 0 | _this->_impl_.value_.uint_value_ = from._impl_.value_.uint_value_; |
3768 | 0 | break; |
3769 | 0 | } |
3770 | 0 | case kBoolValue: { |
3771 | 0 | _this->_impl_.value_.bool_value_ = from._impl_.value_.bool_value_; |
3772 | 0 | break; |
3773 | 0 | } |
3774 | 0 | case VALUE_NOT_SET: |
3775 | 0 | break; |
3776 | 0 | } |
3777 | 0 | } |
3778 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
3779 | 0 | } |
3780 | | |
3781 | 0 | void SetOption::CopyFrom(const SetOption& from) { |
3782 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.SetOption) |
3783 | 0 | if (&from == this) return; |
3784 | 0 | Clear(); |
3785 | 0 | MergeFrom(from); |
3786 | 0 | } |
3787 | | |
3788 | | |
3789 | 0 | void SetOption::InternalSwap(SetOption* PROTOBUF_RESTRICT other) { |
3790 | 0 | using std::swap; |
3791 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
3792 | 0 | swap(_impl_.option_id_, other->_impl_.option_id_); |
3793 | 0 | swap(_impl_.value_, other->_impl_.value_); |
3794 | 0 | swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); |
3795 | 0 | } |
3796 | | |
3797 | 0 | ::google::protobuf::Metadata SetOption::GetMetadata() const { |
3798 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
3799 | 0 | } |
3800 | | // =================================================================== |
3801 | | |
3802 | | class Connection::_Internal { |
3803 | | public: |
3804 | | using HasBits = |
3805 | | decltype(std::declval<Connection>()._impl_._has_bits_); |
3806 | | static constexpr ::int32_t kHasBitsOffset = |
3807 | | 8 * PROTOBUF_FIELD_OFFSET(Connection, _impl_._has_bits_); |
3808 | | }; |
3809 | | |
3810 | | Connection::Connection(::google::protobuf::Arena* arena) |
3811 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3812 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
3813 | | #else // PROTOBUF_CUSTOM_VTABLE |
3814 | 2.46k | : ::google::protobuf::Message(arena) { |
3815 | 2.46k | #endif // PROTOBUF_CUSTOM_VTABLE |
3816 | 2.46k | SharedCtor(arena); |
3817 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.Connection) |
3818 | 2.46k | } |
3819 | | inline PROTOBUF_NDEBUG_INLINE Connection::Impl_::Impl_( |
3820 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
3821 | | const Impl_& from, const ::curl::fuzzer::proto::Connection& from_msg) |
3822 | 0 | : _has_bits_{from._has_bits_}, |
3823 | 0 | _cached_size_{0}, |
3824 | 0 | on_readable_{visibility, arena, from.on_readable_}, |
3825 | 0 | server_frames_{visibility, arena, from.server_frames_}, |
3826 | 0 | initial_response_(arena, from.initial_response_) {} |
3827 | | |
3828 | | Connection::Connection( |
3829 | | ::google::protobuf::Arena* arena, |
3830 | | const Connection& from) |
3831 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3832 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
3833 | | #else // PROTOBUF_CUSTOM_VTABLE |
3834 | 0 | : ::google::protobuf::Message(arena) { |
3835 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3836 | 0 | Connection* const _this = this; |
3837 | 0 | (void)_this; |
3838 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
3839 | 0 | from._internal_metadata_); |
3840 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
3841 | 0 | ::uint32_t cached_has_bits = _impl_._has_bits_[0]; |
3842 | 0 | _impl_.backpressure_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::BackpressureConfig>( |
3843 | 0 | arena, *from._impl_.backpressure_) |
3844 | 0 | : nullptr; |
3845 | 0 | _impl_.manual_probes_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::WsManualProbes>( |
3846 | 0 | arena, *from._impl_.manual_probes_) |
3847 | 0 | : nullptr; |
3848 | | |
3849 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.Connection) |
3850 | 0 | } |
3851 | | inline PROTOBUF_NDEBUG_INLINE Connection::Impl_::Impl_( |
3852 | | ::google::protobuf::internal::InternalVisibility visibility, |
3853 | | ::google::protobuf::Arena* arena) |
3854 | 2.46k | : _cached_size_{0}, |
3855 | 2.46k | on_readable_{visibility, arena}, |
3856 | 2.46k | server_frames_{visibility, arena}, |
3857 | 2.46k | initial_response_(arena) {} |
3858 | | |
3859 | 2.46k | inline void Connection::SharedCtor(::_pb::Arena* arena) { |
3860 | 2.46k | new (&_impl_) Impl_(internal_visibility(), arena); |
3861 | 2.46k | ::memset(reinterpret_cast<char *>(&_impl_) + |
3862 | 2.46k | offsetof(Impl_, backpressure_), |
3863 | 2.46k | 0, |
3864 | 2.46k | offsetof(Impl_, manual_probes_) - |
3865 | 2.46k | offsetof(Impl_, backpressure_) + |
3866 | 2.46k | sizeof(Impl_::manual_probes_)); |
3867 | 2.46k | } |
3868 | 44.2k | Connection::~Connection() { |
3869 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.Connection) |
3870 | 44.2k | SharedDtor(*this); |
3871 | 44.2k | } |
3872 | 44.2k | inline void Connection::SharedDtor(MessageLite& self) { |
3873 | 44.2k | Connection& this_ = static_cast<Connection&>(self); |
3874 | 44.2k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
3875 | 44.2k | ABSL_DCHECK(this_.GetArena() == nullptr); |
3876 | 44.2k | this_._impl_.initial_response_.Destroy(); |
3877 | 44.2k | delete this_._impl_.backpressure_; |
3878 | 44.2k | delete this_._impl_.manual_probes_; |
3879 | 44.2k | this_._impl_.~Impl_(); |
3880 | 44.2k | } |
3881 | | |
3882 | | inline void* Connection::PlacementNew_(const void*, void* mem, |
3883 | 0 | ::google::protobuf::Arena* arena) { |
3884 | 0 | return ::new (mem) Connection(arena); |
3885 | 0 | } |
3886 | 0 | constexpr auto Connection::InternalNewImpl_() { |
3887 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
3888 | 0 | PROTOBUF_FIELD_OFFSET(Connection, _impl_.on_readable_) + |
3889 | 0 | decltype(Connection::_impl_.on_readable_):: |
3890 | 0 | InternalGetArenaOffset( |
3891 | 0 | ::google::protobuf::Message::internal_visibility()), |
3892 | 0 | PROTOBUF_FIELD_OFFSET(Connection, _impl_.server_frames_) + |
3893 | 0 | decltype(Connection::_impl_.server_frames_):: |
3894 | 0 | InternalGetArenaOffset( |
3895 | 0 | ::google::protobuf::Message::internal_visibility()), |
3896 | 0 | }); |
3897 | 0 | if (arena_bits.has_value()) { |
3898 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit( |
3899 | 0 | sizeof(Connection), alignof(Connection), *arena_bits); |
3900 | 0 | } else { |
3901 | 0 | return ::google::protobuf::internal::MessageCreator(&Connection::PlacementNew_, |
3902 | 0 | sizeof(Connection), |
3903 | 0 | alignof(Connection)); |
3904 | 0 | } |
3905 | 0 | } |
3906 | | PROTOBUF_CONSTINIT |
3907 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
3908 | | const ::google::protobuf::internal::ClassDataFull Connection::_class_data_ = { |
3909 | | ::google::protobuf::internal::ClassData{ |
3910 | | &_Connection_default_instance_._instance, |
3911 | | &_table_.header, |
3912 | | nullptr, // OnDemandRegisterArenaDtor |
3913 | | nullptr, // IsInitialized |
3914 | | &Connection::MergeImpl, |
3915 | | ::google::protobuf::Message::GetNewImpl<Connection>(), |
3916 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3917 | | &Connection::SharedDtor, |
3918 | | ::google::protobuf::Message::GetClearImpl<Connection>(), &Connection::ByteSizeLong, |
3919 | | &Connection::_InternalSerialize, |
3920 | | #endif // PROTOBUF_CUSTOM_VTABLE |
3921 | | PROTOBUF_FIELD_OFFSET(Connection, _impl_._cached_size_), |
3922 | | false, |
3923 | | }, |
3924 | | &Connection::kDescriptorMethods, |
3925 | | &descriptor_table_curl_5ffuzzer_2eproto, |
3926 | | nullptr, // tracker |
3927 | | }; |
3928 | 249k | const ::google::protobuf::internal::ClassData* Connection::GetClassData() const { |
3929 | 249k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
3930 | 249k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
3931 | 249k | return _class_data_.base(); |
3932 | 249k | } |
3933 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
3934 | | const ::_pbi::TcParseTable<3, 5, 3, 0, 2> Connection::_table_ = { |
3935 | | { |
3936 | | PROTOBUF_FIELD_OFFSET(Connection, _impl_._has_bits_), |
3937 | | 0, // no _extensions_ |
3938 | | 5, 56, // max_field_number, fast_idx_mask |
3939 | | offsetof(decltype(_table_), field_lookup_table), |
3940 | | 4294967264, // skipmap |
3941 | | offsetof(decltype(_table_), field_entries), |
3942 | | 5, // num_field_entries |
3943 | | 3, // num_aux_entries |
3944 | | offsetof(decltype(_table_), aux_entries), |
3945 | | _class_data_.base(), |
3946 | | nullptr, // post_loop_handler |
3947 | | ::_pbi::TcParser::GenericFallback, // fallback |
3948 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
3949 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::Connection>(), // to_prefetch |
3950 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
3951 | | }, {{ |
3952 | | {::_pbi::TcParser::MiniParse, {}}, |
3953 | | // bytes initial_response = 1; |
3954 | | {::_pbi::TcParser::FastBS1, |
3955 | | {10, 63, 0, PROTOBUF_FIELD_OFFSET(Connection, _impl_.initial_response_)}}, |
3956 | | // repeated bytes on_readable = 2; |
3957 | | {::_pbi::TcParser::FastBR1, |
3958 | | {18, 63, 0, PROTOBUF_FIELD_OFFSET(Connection, _impl_.on_readable_)}}, |
3959 | | // repeated .curl.fuzzer.proto.WebSocketFrame server_frames = 3; |
3960 | | {::_pbi::TcParser::FastMtR1, |
3961 | | {26, 63, 0, PROTOBUF_FIELD_OFFSET(Connection, _impl_.server_frames_)}}, |
3962 | | // .curl.fuzzer.proto.BackpressureConfig backpressure = 4; |
3963 | | {::_pbi::TcParser::FastMtS1, |
3964 | | {34, 0, 1, PROTOBUF_FIELD_OFFSET(Connection, _impl_.backpressure_)}}, |
3965 | | // .curl.fuzzer.proto.WsManualProbes manual_probes = 5; |
3966 | | {::_pbi::TcParser::FastMtS1, |
3967 | | {42, 1, 2, PROTOBUF_FIELD_OFFSET(Connection, _impl_.manual_probes_)}}, |
3968 | | {::_pbi::TcParser::MiniParse, {}}, |
3969 | | {::_pbi::TcParser::MiniParse, {}}, |
3970 | | }}, {{ |
3971 | | 65535, 65535 |
3972 | | }}, {{ |
3973 | | // bytes initial_response = 1; |
3974 | | {PROTOBUF_FIELD_OFFSET(Connection, _impl_.initial_response_), -1, 0, |
3975 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
3976 | | // repeated bytes on_readable = 2; |
3977 | | {PROTOBUF_FIELD_OFFSET(Connection, _impl_.on_readable_), -1, 0, |
3978 | | (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)}, |
3979 | | // repeated .curl.fuzzer.proto.WebSocketFrame server_frames = 3; |
3980 | | {PROTOBUF_FIELD_OFFSET(Connection, _impl_.server_frames_), -1, 0, |
3981 | | (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
3982 | | // .curl.fuzzer.proto.BackpressureConfig backpressure = 4; |
3983 | | {PROTOBUF_FIELD_OFFSET(Connection, _impl_.backpressure_), _Internal::kHasBitsOffset + 0, 1, |
3984 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
3985 | | // .curl.fuzzer.proto.WsManualProbes manual_probes = 5; |
3986 | | {PROTOBUF_FIELD_OFFSET(Connection, _impl_.manual_probes_), _Internal::kHasBitsOffset + 1, 2, |
3987 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
3988 | | }}, {{ |
3989 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::WebSocketFrame>()}, |
3990 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::BackpressureConfig>()}, |
3991 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::WsManualProbes>()}, |
3992 | | }}, {{ |
3993 | | }}, |
3994 | | }; |
3995 | | |
3996 | 156 | PROTOBUF_NOINLINE void Connection::Clear() { |
3997 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.Connection) |
3998 | 156 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3999 | 156 | ::uint32_t cached_has_bits = 0; |
4000 | | // Prevent compiler warnings about cached_has_bits being unused |
4001 | 156 | (void) cached_has_bits; |
4002 | | |
4003 | 156 | _impl_.on_readable_.Clear(); |
4004 | 156 | _impl_.server_frames_.Clear(); |
4005 | 156 | _impl_.initial_response_.ClearToEmpty(); |
4006 | 156 | cached_has_bits = _impl_._has_bits_[0]; |
4007 | 156 | if (cached_has_bits & 0x00000003u) { |
4008 | 25 | if (cached_has_bits & 0x00000001u) { |
4009 | 22 | ABSL_DCHECK(_impl_.backpressure_ != nullptr); |
4010 | 22 | _impl_.backpressure_->Clear(); |
4011 | 22 | } |
4012 | 25 | if (cached_has_bits & 0x00000002u) { |
4013 | 8 | ABSL_DCHECK(_impl_.manual_probes_ != nullptr); |
4014 | 8 | _impl_.manual_probes_->Clear(); |
4015 | 8 | } |
4016 | 25 | } |
4017 | 156 | _impl_._has_bits_.Clear(); |
4018 | 156 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
4019 | 156 | } |
4020 | | |
4021 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4022 | | ::uint8_t* Connection::_InternalSerialize( |
4023 | | const MessageLite& base, ::uint8_t* target, |
4024 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
4025 | | const Connection& this_ = static_cast<const Connection&>(base); |
4026 | | #else // PROTOBUF_CUSTOM_VTABLE |
4027 | | ::uint8_t* Connection::_InternalSerialize( |
4028 | | ::uint8_t* target, |
4029 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
4030 | 0 | const Connection& this_ = *this; |
4031 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4032 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.Connection) |
4033 | 0 | ::uint32_t cached_has_bits = 0; |
4034 | 0 | (void)cached_has_bits; |
4035 | | |
4036 | | // bytes initial_response = 1; |
4037 | 0 | if (!this_._internal_initial_response().empty()) { |
4038 | 0 | const std::string& _s = this_._internal_initial_response(); |
4039 | 0 | target = stream->WriteBytesMaybeAliased(1, _s, target); |
4040 | 0 | } |
4041 | | |
4042 | | // repeated bytes on_readable = 2; |
4043 | 0 | for (int i = 0, n = this_._internal_on_readable_size(); i < n; ++i) { |
4044 | 0 | const auto& s = this_._internal_on_readable().Get(i); |
4045 | 0 | target = stream->WriteBytes(2, s, target); |
4046 | 0 | } |
4047 | | |
4048 | | // repeated .curl.fuzzer.proto.WebSocketFrame server_frames = 3; |
4049 | 0 | for (unsigned i = 0, n = static_cast<unsigned>( |
4050 | 0 | this_._internal_server_frames_size()); |
4051 | 0 | i < n; i++) { |
4052 | 0 | const auto& repfield = this_._internal_server_frames().Get(i); |
4053 | 0 | target = |
4054 | 0 | ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
4055 | 0 | 3, repfield, repfield.GetCachedSize(), |
4056 | 0 | target, stream); |
4057 | 0 | } |
4058 | |
|
4059 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
4060 | | // .curl.fuzzer.proto.BackpressureConfig backpressure = 4; |
4061 | 0 | if (cached_has_bits & 0x00000001u) { |
4062 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
4063 | 0 | 4, *this_._impl_.backpressure_, this_._impl_.backpressure_->GetCachedSize(), target, |
4064 | 0 | stream); |
4065 | 0 | } |
4066 | | |
4067 | | // .curl.fuzzer.proto.WsManualProbes manual_probes = 5; |
4068 | 0 | if (cached_has_bits & 0x00000002u) { |
4069 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
4070 | 0 | 5, *this_._impl_.manual_probes_, this_._impl_.manual_probes_->GetCachedSize(), target, |
4071 | 0 | stream); |
4072 | 0 | } |
4073 | |
|
4074 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
4075 | 0 | target = |
4076 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
4077 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
4078 | 0 | } |
4079 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.Connection) |
4080 | 0 | return target; |
4081 | 0 | } |
4082 | | |
4083 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4084 | | ::size_t Connection::ByteSizeLong(const MessageLite& base) { |
4085 | | const Connection& this_ = static_cast<const Connection&>(base); |
4086 | | #else // PROTOBUF_CUSTOM_VTABLE |
4087 | 0 | ::size_t Connection::ByteSizeLong() const { |
4088 | 0 | const Connection& this_ = *this; |
4089 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4090 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.Connection) |
4091 | 0 | ::size_t total_size = 0; |
4092 | |
|
4093 | 0 | ::uint32_t cached_has_bits = 0; |
4094 | | // Prevent compiler warnings about cached_has_bits being unused |
4095 | 0 | (void)cached_has_bits; |
4096 | |
|
4097 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
4098 | 0 | { |
4099 | | // repeated bytes on_readable = 2; |
4100 | 0 | { |
4101 | 0 | total_size += |
4102 | 0 | 1 * ::google::protobuf::internal::FromIntSize(this_._internal_on_readable().size()); |
4103 | 0 | for (int i = 0, n = this_._internal_on_readable().size(); i < n; ++i) { |
4104 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
4105 | 0 | this_._internal_on_readable().Get(i)); |
4106 | 0 | } |
4107 | 0 | } |
4108 | | // repeated .curl.fuzzer.proto.WebSocketFrame server_frames = 3; |
4109 | 0 | { |
4110 | 0 | total_size += 1UL * this_._internal_server_frames_size(); |
4111 | 0 | for (const auto& msg : this_._internal_server_frames()) { |
4112 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); |
4113 | 0 | } |
4114 | 0 | } |
4115 | 0 | } |
4116 | 0 | { |
4117 | | // bytes initial_response = 1; |
4118 | 0 | if (!this_._internal_initial_response().empty()) { |
4119 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
4120 | 0 | this_._internal_initial_response()); |
4121 | 0 | } |
4122 | 0 | } |
4123 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
4124 | 0 | if (cached_has_bits & 0x00000003u) { |
4125 | | // .curl.fuzzer.proto.BackpressureConfig backpressure = 4; |
4126 | 0 | if (cached_has_bits & 0x00000001u) { |
4127 | 0 | total_size += 1 + |
4128 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.backpressure_); |
4129 | 0 | } |
4130 | | // .curl.fuzzer.proto.WsManualProbes manual_probes = 5; |
4131 | 0 | if (cached_has_bits & 0x00000002u) { |
4132 | 0 | total_size += 1 + |
4133 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.manual_probes_); |
4134 | 0 | } |
4135 | 0 | } |
4136 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
4137 | 0 | &this_._impl_._cached_size_); |
4138 | 0 | } |
4139 | | |
4140 | 0 | void Connection::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
4141 | 0 | auto* const _this = static_cast<Connection*>(&to_msg); |
4142 | 0 | auto& from = static_cast<const Connection&>(from_msg); |
4143 | 0 | ::google::protobuf::Arena* arena = _this->GetArena(); |
4144 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.Connection) |
4145 | 0 | ABSL_DCHECK_NE(&from, _this); |
4146 | 0 | ::uint32_t cached_has_bits = 0; |
4147 | 0 | (void) cached_has_bits; |
4148 | |
|
4149 | 0 | _this->_internal_mutable_on_readable()->MergeFrom(from._internal_on_readable()); |
4150 | 0 | _this->_internal_mutable_server_frames()->MergeFrom( |
4151 | 0 | from._internal_server_frames()); |
4152 | 0 | if (!from._internal_initial_response().empty()) { |
4153 | 0 | _this->_internal_set_initial_response(from._internal_initial_response()); |
4154 | 0 | } |
4155 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
4156 | 0 | if (cached_has_bits & 0x00000003u) { |
4157 | 0 | if (cached_has_bits & 0x00000001u) { |
4158 | 0 | ABSL_DCHECK(from._impl_.backpressure_ != nullptr); |
4159 | 0 | if (_this->_impl_.backpressure_ == nullptr) { |
4160 | 0 | _this->_impl_.backpressure_ = |
4161 | 0 | ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::BackpressureConfig>(arena, *from._impl_.backpressure_); |
4162 | 0 | } else { |
4163 | 0 | _this->_impl_.backpressure_->MergeFrom(*from._impl_.backpressure_); |
4164 | 0 | } |
4165 | 0 | } |
4166 | 0 | if (cached_has_bits & 0x00000002u) { |
4167 | 0 | ABSL_DCHECK(from._impl_.manual_probes_ != nullptr); |
4168 | 0 | if (_this->_impl_.manual_probes_ == nullptr) { |
4169 | 0 | _this->_impl_.manual_probes_ = |
4170 | 0 | ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::WsManualProbes>(arena, *from._impl_.manual_probes_); |
4171 | 0 | } else { |
4172 | 0 | _this->_impl_.manual_probes_->MergeFrom(*from._impl_.manual_probes_); |
4173 | 0 | } |
4174 | 0 | } |
4175 | 0 | } |
4176 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
4177 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
4178 | 0 | } |
4179 | | |
4180 | 0 | void Connection::CopyFrom(const Connection& from) { |
4181 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.Connection) |
4182 | 0 | if (&from == this) return; |
4183 | 0 | Clear(); |
4184 | 0 | MergeFrom(from); |
4185 | 0 | } |
4186 | | |
4187 | | |
4188 | 0 | void Connection::InternalSwap(Connection* PROTOBUF_RESTRICT other) { |
4189 | 0 | using std::swap; |
4190 | 0 | auto* arena = GetArena(); |
4191 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
4192 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
4193 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
4194 | 0 | _impl_.on_readable_.InternalSwap(&other->_impl_.on_readable_); |
4195 | 0 | _impl_.server_frames_.InternalSwap(&other->_impl_.server_frames_); |
4196 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.initial_response_, &other->_impl_.initial_response_, arena); |
4197 | 0 | ::google::protobuf::internal::memswap< |
4198 | 0 | PROTOBUF_FIELD_OFFSET(Connection, _impl_.manual_probes_) |
4199 | 0 | + sizeof(Connection::_impl_.manual_probes_) |
4200 | 0 | - PROTOBUF_FIELD_OFFSET(Connection, _impl_.backpressure_)>( |
4201 | 0 | reinterpret_cast<char*>(&_impl_.backpressure_), |
4202 | 0 | reinterpret_cast<char*>(&other->_impl_.backpressure_)); |
4203 | 0 | } |
4204 | | |
4205 | 0 | ::google::protobuf::Metadata Connection::GetMetadata() const { |
4206 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
4207 | 0 | } |
4208 | | // =================================================================== |
4209 | | |
4210 | | class WsManualProbes::_Internal { |
4211 | | public: |
4212 | | }; |
4213 | | |
4214 | | WsManualProbes::WsManualProbes(::google::protobuf::Arena* arena) |
4215 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4216 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
4217 | | #else // PROTOBUF_CUSTOM_VTABLE |
4218 | 0 | : ::google::protobuf::Message(arena) { |
4219 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4220 | 0 | SharedCtor(arena); |
4221 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.WsManualProbes) |
4222 | 0 | } |
4223 | | WsManualProbes::WsManualProbes( |
4224 | | ::google::protobuf::Arena* arena, const WsManualProbes& from) |
4225 | 0 | : WsManualProbes(arena) { |
4226 | 0 | MergeFrom(from); |
4227 | 0 | } |
4228 | | inline PROTOBUF_NDEBUG_INLINE WsManualProbes::Impl_::Impl_( |
4229 | | ::google::protobuf::internal::InternalVisibility visibility, |
4230 | | ::google::protobuf::Arena* arena) |
4231 | 0 | : _cached_size_{0} {} |
4232 | | |
4233 | 0 | inline void WsManualProbes::SharedCtor(::_pb::Arena* arena) { |
4234 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
4235 | 0 | ::memset(reinterpret_cast<char *>(&_impl_) + |
4236 | 0 | offsetof(Impl_, flag_matrix_), |
4237 | 0 | 0, |
4238 | 0 | offsetof(Impl_, raw_send_) - |
4239 | 0 | offsetof(Impl_, flag_matrix_) + |
4240 | 0 | sizeof(Impl_::raw_send_)); |
4241 | 0 | } |
4242 | 4.92k | WsManualProbes::~WsManualProbes() { |
4243 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.WsManualProbes) |
4244 | 4.92k | SharedDtor(*this); |
4245 | 4.92k | } |
4246 | 4.92k | inline void WsManualProbes::SharedDtor(MessageLite& self) { |
4247 | 4.92k | WsManualProbes& this_ = static_cast<WsManualProbes&>(self); |
4248 | 4.92k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
4249 | 4.92k | ABSL_DCHECK(this_.GetArena() == nullptr); |
4250 | 4.92k | this_._impl_.~Impl_(); |
4251 | 4.92k | } |
4252 | | |
4253 | | inline void* WsManualProbes::PlacementNew_(const void*, void* mem, |
4254 | 0 | ::google::protobuf::Arena* arena) { |
4255 | 0 | return ::new (mem) WsManualProbes(arena); |
4256 | 0 | } |
4257 | 0 | constexpr auto WsManualProbes::InternalNewImpl_() { |
4258 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(WsManualProbes), |
4259 | 0 | alignof(WsManualProbes)); |
4260 | 0 | } |
4261 | | PROTOBUF_CONSTINIT |
4262 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
4263 | | const ::google::protobuf::internal::ClassDataFull WsManualProbes::_class_data_ = { |
4264 | | ::google::protobuf::internal::ClassData{ |
4265 | | &_WsManualProbes_default_instance_._instance, |
4266 | | &_table_.header, |
4267 | | nullptr, // OnDemandRegisterArenaDtor |
4268 | | nullptr, // IsInitialized |
4269 | | &WsManualProbes::MergeImpl, |
4270 | | ::google::protobuf::Message::GetNewImpl<WsManualProbes>(), |
4271 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4272 | | &WsManualProbes::SharedDtor, |
4273 | | ::google::protobuf::Message::GetClearImpl<WsManualProbes>(), &WsManualProbes::ByteSizeLong, |
4274 | | &WsManualProbes::_InternalSerialize, |
4275 | | #endif // PROTOBUF_CUSTOM_VTABLE |
4276 | | PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_._cached_size_), |
4277 | | false, |
4278 | | }, |
4279 | | &WsManualProbes::kDescriptorMethods, |
4280 | | &descriptor_table_curl_5ffuzzer_2eproto, |
4281 | | nullptr, // tracker |
4282 | | }; |
4283 | 29.5k | const ::google::protobuf::internal::ClassData* WsManualProbes::GetClassData() const { |
4284 | 29.5k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
4285 | 29.5k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
4286 | 29.5k | return _class_data_.base(); |
4287 | 29.5k | } |
4288 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
4289 | | const ::_pbi::TcParseTable<2, 3, 0, 0, 2> WsManualProbes::_table_ = { |
4290 | | { |
4291 | | 0, // no _has_bits_ |
4292 | | 0, // no _extensions_ |
4293 | | 3, 24, // max_field_number, fast_idx_mask |
4294 | | offsetof(decltype(_table_), field_lookup_table), |
4295 | | 4294967288, // skipmap |
4296 | | offsetof(decltype(_table_), field_entries), |
4297 | | 3, // num_field_entries |
4298 | | 0, // num_aux_entries |
4299 | | offsetof(decltype(_table_), field_names), // no aux_entries |
4300 | | _class_data_.base(), |
4301 | | nullptr, // post_loop_handler |
4302 | | ::_pbi::TcParser::GenericFallback, // fallback |
4303 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
4304 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::WsManualProbes>(), // to_prefetch |
4305 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
4306 | | }, {{ |
4307 | | {::_pbi::TcParser::MiniParse, {}}, |
4308 | | // bool flag_matrix = 1; |
4309 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WsManualProbes, _impl_.flag_matrix_), 63>(), |
4310 | | {8, 63, 0, PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.flag_matrix_)}}, |
4311 | | // bool unaligned_send = 2; |
4312 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WsManualProbes, _impl_.unaligned_send_), 63>(), |
4313 | | {16, 63, 0, PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.unaligned_send_)}}, |
4314 | | // bool raw_send = 3; |
4315 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WsManualProbes, _impl_.raw_send_), 63>(), |
4316 | | {24, 63, 0, PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.raw_send_)}}, |
4317 | | }}, {{ |
4318 | | 65535, 65535 |
4319 | | }}, {{ |
4320 | | // bool flag_matrix = 1; |
4321 | | {PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.flag_matrix_), 0, 0, |
4322 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
4323 | | // bool unaligned_send = 2; |
4324 | | {PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.unaligned_send_), 0, 0, |
4325 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
4326 | | // bool raw_send = 3; |
4327 | | {PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.raw_send_), 0, 0, |
4328 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
4329 | | }}, |
4330 | | // no aux_entries |
4331 | | {{ |
4332 | | }}, |
4333 | | }; |
4334 | | |
4335 | 8 | PROTOBUF_NOINLINE void WsManualProbes::Clear() { |
4336 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.WsManualProbes) |
4337 | 8 | ::google::protobuf::internal::TSanWrite(&_impl_); |
4338 | 8 | ::uint32_t cached_has_bits = 0; |
4339 | | // Prevent compiler warnings about cached_has_bits being unused |
4340 | 8 | (void) cached_has_bits; |
4341 | | |
4342 | 8 | ::memset(&_impl_.flag_matrix_, 0, static_cast<::size_t>( |
4343 | 8 | reinterpret_cast<char*>(&_impl_.raw_send_) - |
4344 | 8 | reinterpret_cast<char*>(&_impl_.flag_matrix_)) + sizeof(_impl_.raw_send_)); |
4345 | 8 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
4346 | 8 | } |
4347 | | |
4348 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4349 | | ::uint8_t* WsManualProbes::_InternalSerialize( |
4350 | | const MessageLite& base, ::uint8_t* target, |
4351 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
4352 | | const WsManualProbes& this_ = static_cast<const WsManualProbes&>(base); |
4353 | | #else // PROTOBUF_CUSTOM_VTABLE |
4354 | | ::uint8_t* WsManualProbes::_InternalSerialize( |
4355 | | ::uint8_t* target, |
4356 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
4357 | 0 | const WsManualProbes& this_ = *this; |
4358 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4359 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.WsManualProbes) |
4360 | 0 | ::uint32_t cached_has_bits = 0; |
4361 | 0 | (void)cached_has_bits; |
4362 | | |
4363 | | // bool flag_matrix = 1; |
4364 | 0 | if (this_._internal_flag_matrix() != 0) { |
4365 | 0 | target = stream->EnsureSpace(target); |
4366 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
4367 | 0 | 1, this_._internal_flag_matrix(), target); |
4368 | 0 | } |
4369 | | |
4370 | | // bool unaligned_send = 2; |
4371 | 0 | if (this_._internal_unaligned_send() != 0) { |
4372 | 0 | target = stream->EnsureSpace(target); |
4373 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
4374 | 0 | 2, this_._internal_unaligned_send(), target); |
4375 | 0 | } |
4376 | | |
4377 | | // bool raw_send = 3; |
4378 | 0 | if (this_._internal_raw_send() != 0) { |
4379 | 0 | target = stream->EnsureSpace(target); |
4380 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
4381 | 0 | 3, this_._internal_raw_send(), target); |
4382 | 0 | } |
4383 | |
|
4384 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
4385 | 0 | target = |
4386 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
4387 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
4388 | 0 | } |
4389 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.WsManualProbes) |
4390 | 0 | return target; |
4391 | 0 | } |
4392 | | |
4393 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4394 | | ::size_t WsManualProbes::ByteSizeLong(const MessageLite& base) { |
4395 | | const WsManualProbes& this_ = static_cast<const WsManualProbes&>(base); |
4396 | | #else // PROTOBUF_CUSTOM_VTABLE |
4397 | 0 | ::size_t WsManualProbes::ByteSizeLong() const { |
4398 | 0 | const WsManualProbes& this_ = *this; |
4399 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4400 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.WsManualProbes) |
4401 | 0 | ::size_t total_size = 0; |
4402 | |
|
4403 | 0 | ::uint32_t cached_has_bits = 0; |
4404 | | // Prevent compiler warnings about cached_has_bits being unused |
4405 | 0 | (void)cached_has_bits; |
4406 | |
|
4407 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
4408 | 0 | { |
4409 | | // bool flag_matrix = 1; |
4410 | 0 | if (this_._internal_flag_matrix() != 0) { |
4411 | 0 | total_size += 2; |
4412 | 0 | } |
4413 | | // bool unaligned_send = 2; |
4414 | 0 | if (this_._internal_unaligned_send() != 0) { |
4415 | 0 | total_size += 2; |
4416 | 0 | } |
4417 | | // bool raw_send = 3; |
4418 | 0 | if (this_._internal_raw_send() != 0) { |
4419 | 0 | total_size += 2; |
4420 | 0 | } |
4421 | 0 | } |
4422 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
4423 | 0 | &this_._impl_._cached_size_); |
4424 | 0 | } |
4425 | | |
4426 | 0 | void WsManualProbes::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
4427 | 0 | auto* const _this = static_cast<WsManualProbes*>(&to_msg); |
4428 | 0 | auto& from = static_cast<const WsManualProbes&>(from_msg); |
4429 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.WsManualProbes) |
4430 | 0 | ABSL_DCHECK_NE(&from, _this); |
4431 | 0 | ::uint32_t cached_has_bits = 0; |
4432 | 0 | (void) cached_has_bits; |
4433 | |
|
4434 | 0 | if (from._internal_flag_matrix() != 0) { |
4435 | 0 | _this->_impl_.flag_matrix_ = from._impl_.flag_matrix_; |
4436 | 0 | } |
4437 | 0 | if (from._internal_unaligned_send() != 0) { |
4438 | 0 | _this->_impl_.unaligned_send_ = from._impl_.unaligned_send_; |
4439 | 0 | } |
4440 | 0 | if (from._internal_raw_send() != 0) { |
4441 | 0 | _this->_impl_.raw_send_ = from._impl_.raw_send_; |
4442 | 0 | } |
4443 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
4444 | 0 | } |
4445 | | |
4446 | 0 | void WsManualProbes::CopyFrom(const WsManualProbes& from) { |
4447 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.WsManualProbes) |
4448 | 0 | if (&from == this) return; |
4449 | 0 | Clear(); |
4450 | 0 | MergeFrom(from); |
4451 | 0 | } |
4452 | | |
4453 | | |
4454 | 0 | void WsManualProbes::InternalSwap(WsManualProbes* PROTOBUF_RESTRICT other) { |
4455 | 0 | using std::swap; |
4456 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
4457 | 0 | ::google::protobuf::internal::memswap< |
4458 | 0 | PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.raw_send_) |
4459 | 0 | + sizeof(WsManualProbes::_impl_.raw_send_) |
4460 | 0 | - PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.flag_matrix_)>( |
4461 | 0 | reinterpret_cast<char*>(&_impl_.flag_matrix_), |
4462 | 0 | reinterpret_cast<char*>(&other->_impl_.flag_matrix_)); |
4463 | 0 | } |
4464 | | |
4465 | 0 | ::google::protobuf::Metadata WsManualProbes::GetMetadata() const { |
4466 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
4467 | 0 | } |
4468 | | // =================================================================== |
4469 | | |
4470 | | class BackpressureConfig::_Internal { |
4471 | | public: |
4472 | | }; |
4473 | | |
4474 | | BackpressureConfig::BackpressureConfig(::google::protobuf::Arena* arena) |
4475 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4476 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
4477 | | #else // PROTOBUF_CUSTOM_VTABLE |
4478 | 0 | : ::google::protobuf::Message(arena) { |
4479 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4480 | 0 | SharedCtor(arena); |
4481 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.BackpressureConfig) |
4482 | 0 | } |
4483 | | BackpressureConfig::BackpressureConfig( |
4484 | | ::google::protobuf::Arena* arena, const BackpressureConfig& from) |
4485 | 0 | : BackpressureConfig(arena) { |
4486 | 0 | MergeFrom(from); |
4487 | 0 | } |
4488 | | inline PROTOBUF_NDEBUG_INLINE BackpressureConfig::Impl_::Impl_( |
4489 | | ::google::protobuf::internal::InternalVisibility visibility, |
4490 | | ::google::protobuf::Arena* arena) |
4491 | 0 | : _cached_size_{0} {} |
4492 | | |
4493 | 0 | inline void BackpressureConfig::SharedCtor(::_pb::Arena* arena) { |
4494 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
4495 | 0 | ::memset(reinterpret_cast<char *>(&_impl_) + |
4496 | 0 | offsetof(Impl_, recv_buf_bytes_), |
4497 | 0 | 0, |
4498 | 0 | offsetof(Impl_, drain_limit_) - |
4499 | 0 | offsetof(Impl_, recv_buf_bytes_) + |
4500 | 0 | sizeof(Impl_::drain_limit_)); |
4501 | 0 | } |
4502 | 7.17k | BackpressureConfig::~BackpressureConfig() { |
4503 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.BackpressureConfig) |
4504 | 7.17k | SharedDtor(*this); |
4505 | 7.17k | } |
4506 | 7.17k | inline void BackpressureConfig::SharedDtor(MessageLite& self) { |
4507 | 7.17k | BackpressureConfig& this_ = static_cast<BackpressureConfig&>(self); |
4508 | 7.17k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
4509 | 7.17k | ABSL_DCHECK(this_.GetArena() == nullptr); |
4510 | 7.17k | this_._impl_.~Impl_(); |
4511 | 7.17k | } |
4512 | | |
4513 | | inline void* BackpressureConfig::PlacementNew_(const void*, void* mem, |
4514 | 0 | ::google::protobuf::Arena* arena) { |
4515 | 0 | return ::new (mem) BackpressureConfig(arena); |
4516 | 0 | } |
4517 | 0 | constexpr auto BackpressureConfig::InternalNewImpl_() { |
4518 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(BackpressureConfig), |
4519 | 0 | alignof(BackpressureConfig)); |
4520 | 0 | } |
4521 | | PROTOBUF_CONSTINIT |
4522 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
4523 | | const ::google::protobuf::internal::ClassDataFull BackpressureConfig::_class_data_ = { |
4524 | | ::google::protobuf::internal::ClassData{ |
4525 | | &_BackpressureConfig_default_instance_._instance, |
4526 | | &_table_.header, |
4527 | | nullptr, // OnDemandRegisterArenaDtor |
4528 | | nullptr, // IsInitialized |
4529 | | &BackpressureConfig::MergeImpl, |
4530 | | ::google::protobuf::Message::GetNewImpl<BackpressureConfig>(), |
4531 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4532 | | &BackpressureConfig::SharedDtor, |
4533 | | ::google::protobuf::Message::GetClearImpl<BackpressureConfig>(), &BackpressureConfig::ByteSizeLong, |
4534 | | &BackpressureConfig::_InternalSerialize, |
4535 | | #endif // PROTOBUF_CUSTOM_VTABLE |
4536 | | PROTOBUF_FIELD_OFFSET(BackpressureConfig, _impl_._cached_size_), |
4537 | | false, |
4538 | | }, |
4539 | | &BackpressureConfig::kDescriptorMethods, |
4540 | | &descriptor_table_curl_5ffuzzer_2eproto, |
4541 | | nullptr, // tracker |
4542 | | }; |
4543 | 42.8k | const ::google::protobuf::internal::ClassData* BackpressureConfig::GetClassData() const { |
4544 | 42.8k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
4545 | 42.8k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
4546 | 42.8k | return _class_data_.base(); |
4547 | 42.8k | } |
4548 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
4549 | | const ::_pbi::TcParseTable<1, 2, 0, 0, 2> BackpressureConfig::_table_ = { |
4550 | | { |
4551 | | 0, // no _has_bits_ |
4552 | | 0, // no _extensions_ |
4553 | | 2, 8, // max_field_number, fast_idx_mask |
4554 | | offsetof(decltype(_table_), field_lookup_table), |
4555 | | 4294967292, // skipmap |
4556 | | offsetof(decltype(_table_), field_entries), |
4557 | | 2, // num_field_entries |
4558 | | 0, // num_aux_entries |
4559 | | offsetof(decltype(_table_), field_names), // no aux_entries |
4560 | | _class_data_.base(), |
4561 | | nullptr, // post_loop_handler |
4562 | | ::_pbi::TcParser::GenericFallback, // fallback |
4563 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
4564 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::BackpressureConfig>(), // to_prefetch |
4565 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
4566 | | }, {{ |
4567 | | // uint32 drain_limit = 2; |
4568 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(BackpressureConfig, _impl_.drain_limit_), 63>(), |
4569 | | {16, 63, 0, PROTOBUF_FIELD_OFFSET(BackpressureConfig, _impl_.drain_limit_)}}, |
4570 | | // uint32 recv_buf_bytes = 1; |
4571 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(BackpressureConfig, _impl_.recv_buf_bytes_), 63>(), |
4572 | | {8, 63, 0, PROTOBUF_FIELD_OFFSET(BackpressureConfig, _impl_.recv_buf_bytes_)}}, |
4573 | | }}, {{ |
4574 | | 65535, 65535 |
4575 | | }}, {{ |
4576 | | // uint32 recv_buf_bytes = 1; |
4577 | | {PROTOBUF_FIELD_OFFSET(BackpressureConfig, _impl_.recv_buf_bytes_), 0, 0, |
4578 | | (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, |
4579 | | // uint32 drain_limit = 2; |
4580 | | {PROTOBUF_FIELD_OFFSET(BackpressureConfig, _impl_.drain_limit_), 0, 0, |
4581 | | (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, |
4582 | | }}, |
4583 | | // no aux_entries |
4584 | | {{ |
4585 | | }}, |
4586 | | }; |
4587 | | |
4588 | 22 | PROTOBUF_NOINLINE void BackpressureConfig::Clear() { |
4589 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.BackpressureConfig) |
4590 | 22 | ::google::protobuf::internal::TSanWrite(&_impl_); |
4591 | 22 | ::uint32_t cached_has_bits = 0; |
4592 | | // Prevent compiler warnings about cached_has_bits being unused |
4593 | 22 | (void) cached_has_bits; |
4594 | | |
4595 | 22 | ::memset(&_impl_.recv_buf_bytes_, 0, static_cast<::size_t>( |
4596 | 22 | reinterpret_cast<char*>(&_impl_.drain_limit_) - |
4597 | 22 | reinterpret_cast<char*>(&_impl_.recv_buf_bytes_)) + sizeof(_impl_.drain_limit_)); |
4598 | 22 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
4599 | 22 | } |
4600 | | |
4601 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4602 | | ::uint8_t* BackpressureConfig::_InternalSerialize( |
4603 | | const MessageLite& base, ::uint8_t* target, |
4604 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
4605 | | const BackpressureConfig& this_ = static_cast<const BackpressureConfig&>(base); |
4606 | | #else // PROTOBUF_CUSTOM_VTABLE |
4607 | | ::uint8_t* BackpressureConfig::_InternalSerialize( |
4608 | | ::uint8_t* target, |
4609 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
4610 | 0 | const BackpressureConfig& this_ = *this; |
4611 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4612 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.BackpressureConfig) |
4613 | 0 | ::uint32_t cached_has_bits = 0; |
4614 | 0 | (void)cached_has_bits; |
4615 | | |
4616 | | // uint32 recv_buf_bytes = 1; |
4617 | 0 | if (this_._internal_recv_buf_bytes() != 0) { |
4618 | 0 | target = stream->EnsureSpace(target); |
4619 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
4620 | 0 | 1, this_._internal_recv_buf_bytes(), target); |
4621 | 0 | } |
4622 | | |
4623 | | // uint32 drain_limit = 2; |
4624 | 0 | if (this_._internal_drain_limit() != 0) { |
4625 | 0 | target = stream->EnsureSpace(target); |
4626 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
4627 | 0 | 2, this_._internal_drain_limit(), target); |
4628 | 0 | } |
4629 | |
|
4630 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
4631 | 0 | target = |
4632 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
4633 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
4634 | 0 | } |
4635 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.BackpressureConfig) |
4636 | 0 | return target; |
4637 | 0 | } |
4638 | | |
4639 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4640 | | ::size_t BackpressureConfig::ByteSizeLong(const MessageLite& base) { |
4641 | | const BackpressureConfig& this_ = static_cast<const BackpressureConfig&>(base); |
4642 | | #else // PROTOBUF_CUSTOM_VTABLE |
4643 | 0 | ::size_t BackpressureConfig::ByteSizeLong() const { |
4644 | 0 | const BackpressureConfig& this_ = *this; |
4645 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4646 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.BackpressureConfig) |
4647 | 0 | ::size_t total_size = 0; |
4648 | |
|
4649 | 0 | ::uint32_t cached_has_bits = 0; |
4650 | | // Prevent compiler warnings about cached_has_bits being unused |
4651 | 0 | (void)cached_has_bits; |
4652 | |
|
4653 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
4654 | 0 | { |
4655 | | // uint32 recv_buf_bytes = 1; |
4656 | 0 | if (this_._internal_recv_buf_bytes() != 0) { |
4657 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
4658 | 0 | this_._internal_recv_buf_bytes()); |
4659 | 0 | } |
4660 | | // uint32 drain_limit = 2; |
4661 | 0 | if (this_._internal_drain_limit() != 0) { |
4662 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
4663 | 0 | this_._internal_drain_limit()); |
4664 | 0 | } |
4665 | 0 | } |
4666 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
4667 | 0 | &this_._impl_._cached_size_); |
4668 | 0 | } |
4669 | | |
4670 | 0 | void BackpressureConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
4671 | 0 | auto* const _this = static_cast<BackpressureConfig*>(&to_msg); |
4672 | 0 | auto& from = static_cast<const BackpressureConfig&>(from_msg); |
4673 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.BackpressureConfig) |
4674 | 0 | ABSL_DCHECK_NE(&from, _this); |
4675 | 0 | ::uint32_t cached_has_bits = 0; |
4676 | 0 | (void) cached_has_bits; |
4677 | |
|
4678 | 0 | if (from._internal_recv_buf_bytes() != 0) { |
4679 | 0 | _this->_impl_.recv_buf_bytes_ = from._impl_.recv_buf_bytes_; |
4680 | 0 | } |
4681 | 0 | if (from._internal_drain_limit() != 0) { |
4682 | 0 | _this->_impl_.drain_limit_ = from._impl_.drain_limit_; |
4683 | 0 | } |
4684 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
4685 | 0 | } |
4686 | | |
4687 | 0 | void BackpressureConfig::CopyFrom(const BackpressureConfig& from) { |
4688 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.BackpressureConfig) |
4689 | 0 | if (&from == this) return; |
4690 | 0 | Clear(); |
4691 | 0 | MergeFrom(from); |
4692 | 0 | } |
4693 | | |
4694 | | |
4695 | 0 | void BackpressureConfig::InternalSwap(BackpressureConfig* PROTOBUF_RESTRICT other) { |
4696 | 0 | using std::swap; |
4697 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
4698 | 0 | ::google::protobuf::internal::memswap< |
4699 | 0 | PROTOBUF_FIELD_OFFSET(BackpressureConfig, _impl_.drain_limit_) |
4700 | 0 | + sizeof(BackpressureConfig::_impl_.drain_limit_) |
4701 | 0 | - PROTOBUF_FIELD_OFFSET(BackpressureConfig, _impl_.recv_buf_bytes_)>( |
4702 | 0 | reinterpret_cast<char*>(&_impl_.recv_buf_bytes_), |
4703 | 0 | reinterpret_cast<char*>(&other->_impl_.recv_buf_bytes_)); |
4704 | 0 | } |
4705 | | |
4706 | 0 | ::google::protobuf::Metadata BackpressureConfig::GetMetadata() const { |
4707 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
4708 | 0 | } |
4709 | | // =================================================================== |
4710 | | |
4711 | | class WebSocketFrame::_Internal { |
4712 | | public: |
4713 | | }; |
4714 | | |
4715 | | WebSocketFrame::WebSocketFrame(::google::protobuf::Arena* arena) |
4716 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4717 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
4718 | | #else // PROTOBUF_CUSTOM_VTABLE |
4719 | 0 | : ::google::protobuf::Message(arena) { |
4720 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4721 | 0 | SharedCtor(arena); |
4722 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.WebSocketFrame) |
4723 | 0 | } |
4724 | | inline PROTOBUF_NDEBUG_INLINE WebSocketFrame::Impl_::Impl_( |
4725 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
4726 | | const Impl_& from, const ::curl::fuzzer::proto::WebSocketFrame& from_msg) |
4727 | 0 | : payload_(arena, from.payload_), |
4728 | 0 | _cached_size_{0} {} |
4729 | | |
4730 | | WebSocketFrame::WebSocketFrame( |
4731 | | ::google::protobuf::Arena* arena, |
4732 | | const WebSocketFrame& from) |
4733 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4734 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
4735 | | #else // PROTOBUF_CUSTOM_VTABLE |
4736 | 0 | : ::google::protobuf::Message(arena) { |
4737 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4738 | 0 | WebSocketFrame* const _this = this; |
4739 | 0 | (void)_this; |
4740 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
4741 | 0 | from._internal_metadata_); |
4742 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
4743 | 0 | ::memcpy(reinterpret_cast<char *>(&_impl_) + |
4744 | 0 | offsetof(Impl_, fin_), |
4745 | 0 | reinterpret_cast<const char *>(&from._impl_) + |
4746 | 0 | offsetof(Impl_, fin_), |
4747 | 0 | offsetof(Impl_, length_form_) - |
4748 | 0 | offsetof(Impl_, fin_) + |
4749 | 0 | sizeof(Impl_::length_form_)); |
4750 | | |
4751 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.WebSocketFrame) |
4752 | 0 | } |
4753 | | inline PROTOBUF_NDEBUG_INLINE WebSocketFrame::Impl_::Impl_( |
4754 | | ::google::protobuf::internal::InternalVisibility visibility, |
4755 | | ::google::protobuf::Arena* arena) |
4756 | 0 | : payload_(arena), |
4757 | 0 | _cached_size_{0} {} |
4758 | | |
4759 | 0 | inline void WebSocketFrame::SharedCtor(::_pb::Arena* arena) { |
4760 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
4761 | 0 | ::memset(reinterpret_cast<char *>(&_impl_) + |
4762 | 0 | offsetof(Impl_, fin_), |
4763 | 0 | 0, |
4764 | 0 | offsetof(Impl_, length_form_) - |
4765 | 0 | offsetof(Impl_, fin_) + |
4766 | 0 | sizeof(Impl_::length_form_)); |
4767 | 0 | } |
4768 | 17.7k | WebSocketFrame::~WebSocketFrame() { |
4769 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.WebSocketFrame) |
4770 | 17.7k | SharedDtor(*this); |
4771 | 17.7k | } |
4772 | 17.7k | inline void WebSocketFrame::SharedDtor(MessageLite& self) { |
4773 | 17.7k | WebSocketFrame& this_ = static_cast<WebSocketFrame&>(self); |
4774 | 17.7k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
4775 | 17.7k | ABSL_DCHECK(this_.GetArena() == nullptr); |
4776 | 17.7k | this_._impl_.payload_.Destroy(); |
4777 | 17.7k | this_._impl_.~Impl_(); |
4778 | 17.7k | } |
4779 | | |
4780 | | inline void* WebSocketFrame::PlacementNew_(const void*, void* mem, |
4781 | 0 | ::google::protobuf::Arena* arena) { |
4782 | 0 | return ::new (mem) WebSocketFrame(arena); |
4783 | 0 | } |
4784 | 0 | constexpr auto WebSocketFrame::InternalNewImpl_() { |
4785 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(WebSocketFrame), |
4786 | 0 | alignof(WebSocketFrame)); |
4787 | 0 | } |
4788 | | PROTOBUF_CONSTINIT |
4789 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
4790 | | const ::google::protobuf::internal::ClassDataFull WebSocketFrame::_class_data_ = { |
4791 | | ::google::protobuf::internal::ClassData{ |
4792 | | &_WebSocketFrame_default_instance_._instance, |
4793 | | &_table_.header, |
4794 | | nullptr, // OnDemandRegisterArenaDtor |
4795 | | nullptr, // IsInitialized |
4796 | | &WebSocketFrame::MergeImpl, |
4797 | | ::google::protobuf::Message::GetNewImpl<WebSocketFrame>(), |
4798 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4799 | | &WebSocketFrame::SharedDtor, |
4800 | | ::google::protobuf::Message::GetClearImpl<WebSocketFrame>(), &WebSocketFrame::ByteSizeLong, |
4801 | | &WebSocketFrame::_InternalSerialize, |
4802 | | #endif // PROTOBUF_CUSTOM_VTABLE |
4803 | | PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_._cached_size_), |
4804 | | false, |
4805 | | }, |
4806 | | &WebSocketFrame::kDescriptorMethods, |
4807 | | &descriptor_table_curl_5ffuzzer_2eproto, |
4808 | | nullptr, // tracker |
4809 | | }; |
4810 | 102k | const ::google::protobuf::internal::ClassData* WebSocketFrame::GetClassData() const { |
4811 | 102k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
4812 | 102k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
4813 | 102k | return _class_data_.base(); |
4814 | 102k | } |
4815 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
4816 | | const ::_pbi::TcParseTable<4, 9, 0, 0, 2> WebSocketFrame::_table_ = { |
4817 | | { |
4818 | | 0, // no _has_bits_ |
4819 | | 0, // no _extensions_ |
4820 | | 9, 120, // max_field_number, fast_idx_mask |
4821 | | offsetof(decltype(_table_), field_lookup_table), |
4822 | | 4294966784, // skipmap |
4823 | | offsetof(decltype(_table_), field_entries), |
4824 | | 9, // num_field_entries |
4825 | | 0, // num_aux_entries |
4826 | | offsetof(decltype(_table_), field_names), // no aux_entries |
4827 | | _class_data_.base(), |
4828 | | nullptr, // post_loop_handler |
4829 | | ::_pbi::TcParser::GenericFallback, // fallback |
4830 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
4831 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::WebSocketFrame>(), // to_prefetch |
4832 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
4833 | | }, {{ |
4834 | | {::_pbi::TcParser::MiniParse, {}}, |
4835 | | // bool fin = 1; |
4836 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WebSocketFrame, _impl_.fin_), 63>(), |
4837 | | {8, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.fin_)}}, |
4838 | | // bool rsv1 = 2; |
4839 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WebSocketFrame, _impl_.rsv1_), 63>(), |
4840 | | {16, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.rsv1_)}}, |
4841 | | // bool rsv2 = 3; |
4842 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WebSocketFrame, _impl_.rsv2_), 63>(), |
4843 | | {24, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.rsv2_)}}, |
4844 | | // bool rsv3 = 4; |
4845 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WebSocketFrame, _impl_.rsv3_), 63>(), |
4846 | | {32, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.rsv3_)}}, |
4847 | | // uint32 opcode = 5; |
4848 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(WebSocketFrame, _impl_.opcode_), 63>(), |
4849 | | {40, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.opcode_)}}, |
4850 | | // bool masked = 6; |
4851 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WebSocketFrame, _impl_.masked_), 63>(), |
4852 | | {48, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.masked_)}}, |
4853 | | // uint32 mask_key = 7; |
4854 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(WebSocketFrame, _impl_.mask_key_), 63>(), |
4855 | | {56, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.mask_key_)}}, |
4856 | | // bytes payload = 8; |
4857 | | {::_pbi::TcParser::FastBS1, |
4858 | | {66, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.payload_)}}, |
4859 | | // uint32 length_form = 9; |
4860 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(WebSocketFrame, _impl_.length_form_), 63>(), |
4861 | | {72, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.length_form_)}}, |
4862 | | {::_pbi::TcParser::MiniParse, {}}, |
4863 | | {::_pbi::TcParser::MiniParse, {}}, |
4864 | | {::_pbi::TcParser::MiniParse, {}}, |
4865 | | {::_pbi::TcParser::MiniParse, {}}, |
4866 | | {::_pbi::TcParser::MiniParse, {}}, |
4867 | | {::_pbi::TcParser::MiniParse, {}}, |
4868 | | }}, {{ |
4869 | | 65535, 65535 |
4870 | | }}, {{ |
4871 | | // bool fin = 1; |
4872 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.fin_), 0, 0, |
4873 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
4874 | | // bool rsv1 = 2; |
4875 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.rsv1_), 0, 0, |
4876 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
4877 | | // bool rsv2 = 3; |
4878 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.rsv2_), 0, 0, |
4879 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
4880 | | // bool rsv3 = 4; |
4881 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.rsv3_), 0, 0, |
4882 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
4883 | | // uint32 opcode = 5; |
4884 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.opcode_), 0, 0, |
4885 | | (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, |
4886 | | // bool masked = 6; |
4887 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.masked_), 0, 0, |
4888 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
4889 | | // uint32 mask_key = 7; |
4890 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.mask_key_), 0, 0, |
4891 | | (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, |
4892 | | // bytes payload = 8; |
4893 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.payload_), 0, 0, |
4894 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
4895 | | // uint32 length_form = 9; |
4896 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.length_form_), 0, 0, |
4897 | | (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, |
4898 | | }}, |
4899 | | // no aux_entries |
4900 | | {{ |
4901 | | }}, |
4902 | | }; |
4903 | | |
4904 | 663 | PROTOBUF_NOINLINE void WebSocketFrame::Clear() { |
4905 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.WebSocketFrame) |
4906 | 663 | ::google::protobuf::internal::TSanWrite(&_impl_); |
4907 | 663 | ::uint32_t cached_has_bits = 0; |
4908 | | // Prevent compiler warnings about cached_has_bits being unused |
4909 | 663 | (void) cached_has_bits; |
4910 | | |
4911 | 663 | _impl_.payload_.ClearToEmpty(); |
4912 | 663 | ::memset(&_impl_.fin_, 0, static_cast<::size_t>( |
4913 | 663 | reinterpret_cast<char*>(&_impl_.length_form_) - |
4914 | 663 | reinterpret_cast<char*>(&_impl_.fin_)) + sizeof(_impl_.length_form_)); |
4915 | 663 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
4916 | 663 | } |
4917 | | |
4918 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4919 | | ::uint8_t* WebSocketFrame::_InternalSerialize( |
4920 | | const MessageLite& base, ::uint8_t* target, |
4921 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
4922 | | const WebSocketFrame& this_ = static_cast<const WebSocketFrame&>(base); |
4923 | | #else // PROTOBUF_CUSTOM_VTABLE |
4924 | | ::uint8_t* WebSocketFrame::_InternalSerialize( |
4925 | | ::uint8_t* target, |
4926 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
4927 | 0 | const WebSocketFrame& this_ = *this; |
4928 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4929 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.WebSocketFrame) |
4930 | 0 | ::uint32_t cached_has_bits = 0; |
4931 | 0 | (void)cached_has_bits; |
4932 | | |
4933 | | // bool fin = 1; |
4934 | 0 | if (this_._internal_fin() != 0) { |
4935 | 0 | target = stream->EnsureSpace(target); |
4936 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
4937 | 0 | 1, this_._internal_fin(), target); |
4938 | 0 | } |
4939 | | |
4940 | | // bool rsv1 = 2; |
4941 | 0 | if (this_._internal_rsv1() != 0) { |
4942 | 0 | target = stream->EnsureSpace(target); |
4943 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
4944 | 0 | 2, this_._internal_rsv1(), target); |
4945 | 0 | } |
4946 | | |
4947 | | // bool rsv2 = 3; |
4948 | 0 | if (this_._internal_rsv2() != 0) { |
4949 | 0 | target = stream->EnsureSpace(target); |
4950 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
4951 | 0 | 3, this_._internal_rsv2(), target); |
4952 | 0 | } |
4953 | | |
4954 | | // bool rsv3 = 4; |
4955 | 0 | if (this_._internal_rsv3() != 0) { |
4956 | 0 | target = stream->EnsureSpace(target); |
4957 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
4958 | 0 | 4, this_._internal_rsv3(), target); |
4959 | 0 | } |
4960 | | |
4961 | | // uint32 opcode = 5; |
4962 | 0 | if (this_._internal_opcode() != 0) { |
4963 | 0 | target = stream->EnsureSpace(target); |
4964 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
4965 | 0 | 5, this_._internal_opcode(), target); |
4966 | 0 | } |
4967 | | |
4968 | | // bool masked = 6; |
4969 | 0 | if (this_._internal_masked() != 0) { |
4970 | 0 | target = stream->EnsureSpace(target); |
4971 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
4972 | 0 | 6, this_._internal_masked(), target); |
4973 | 0 | } |
4974 | | |
4975 | | // uint32 mask_key = 7; |
4976 | 0 | if (this_._internal_mask_key() != 0) { |
4977 | 0 | target = stream->EnsureSpace(target); |
4978 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
4979 | 0 | 7, this_._internal_mask_key(), target); |
4980 | 0 | } |
4981 | | |
4982 | | // bytes payload = 8; |
4983 | 0 | if (!this_._internal_payload().empty()) { |
4984 | 0 | const std::string& _s = this_._internal_payload(); |
4985 | 0 | target = stream->WriteBytesMaybeAliased(8, _s, target); |
4986 | 0 | } |
4987 | | |
4988 | | // uint32 length_form = 9; |
4989 | 0 | if (this_._internal_length_form() != 0) { |
4990 | 0 | target = stream->EnsureSpace(target); |
4991 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
4992 | 0 | 9, this_._internal_length_form(), target); |
4993 | 0 | } |
4994 | |
|
4995 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
4996 | 0 | target = |
4997 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
4998 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
4999 | 0 | } |
5000 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.WebSocketFrame) |
5001 | 0 | return target; |
5002 | 0 | } |
5003 | | |
5004 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
5005 | | ::size_t WebSocketFrame::ByteSizeLong(const MessageLite& base) { |
5006 | | const WebSocketFrame& this_ = static_cast<const WebSocketFrame&>(base); |
5007 | | #else // PROTOBUF_CUSTOM_VTABLE |
5008 | 0 | ::size_t WebSocketFrame::ByteSizeLong() const { |
5009 | 0 | const WebSocketFrame& this_ = *this; |
5010 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
5011 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.WebSocketFrame) |
5012 | 0 | ::size_t total_size = 0; |
5013 | |
|
5014 | 0 | ::uint32_t cached_has_bits = 0; |
5015 | | // Prevent compiler warnings about cached_has_bits being unused |
5016 | 0 | (void)cached_has_bits; |
5017 | |
|
5018 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
5019 | 0 | { |
5020 | | // bytes payload = 8; |
5021 | 0 | if (!this_._internal_payload().empty()) { |
5022 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
5023 | 0 | this_._internal_payload()); |
5024 | 0 | } |
5025 | | // bool fin = 1; |
5026 | 0 | if (this_._internal_fin() != 0) { |
5027 | 0 | total_size += 2; |
5028 | 0 | } |
5029 | | // bool rsv1 = 2; |
5030 | 0 | if (this_._internal_rsv1() != 0) { |
5031 | 0 | total_size += 2; |
5032 | 0 | } |
5033 | | // bool rsv2 = 3; |
5034 | 0 | if (this_._internal_rsv2() != 0) { |
5035 | 0 | total_size += 2; |
5036 | 0 | } |
5037 | | // bool rsv3 = 4; |
5038 | 0 | if (this_._internal_rsv3() != 0) { |
5039 | 0 | total_size += 2; |
5040 | 0 | } |
5041 | | // uint32 opcode = 5; |
5042 | 0 | if (this_._internal_opcode() != 0) { |
5043 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
5044 | 0 | this_._internal_opcode()); |
5045 | 0 | } |
5046 | | // bool masked = 6; |
5047 | 0 | if (this_._internal_masked() != 0) { |
5048 | 0 | total_size += 2; |
5049 | 0 | } |
5050 | | // uint32 mask_key = 7; |
5051 | 0 | if (this_._internal_mask_key() != 0) { |
5052 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
5053 | 0 | this_._internal_mask_key()); |
5054 | 0 | } |
5055 | | // uint32 length_form = 9; |
5056 | 0 | if (this_._internal_length_form() != 0) { |
5057 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
5058 | 0 | this_._internal_length_form()); |
5059 | 0 | } |
5060 | 0 | } |
5061 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
5062 | 0 | &this_._impl_._cached_size_); |
5063 | 0 | } |
5064 | | |
5065 | 0 | void WebSocketFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
5066 | 0 | auto* const _this = static_cast<WebSocketFrame*>(&to_msg); |
5067 | 0 | auto& from = static_cast<const WebSocketFrame&>(from_msg); |
5068 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.WebSocketFrame) |
5069 | 0 | ABSL_DCHECK_NE(&from, _this); |
5070 | 0 | ::uint32_t cached_has_bits = 0; |
5071 | 0 | (void) cached_has_bits; |
5072 | |
|
5073 | 0 | if (!from._internal_payload().empty()) { |
5074 | 0 | _this->_internal_set_payload(from._internal_payload()); |
5075 | 0 | } |
5076 | 0 | if (from._internal_fin() != 0) { |
5077 | 0 | _this->_impl_.fin_ = from._impl_.fin_; |
5078 | 0 | } |
5079 | 0 | if (from._internal_rsv1() != 0) { |
5080 | 0 | _this->_impl_.rsv1_ = from._impl_.rsv1_; |
5081 | 0 | } |
5082 | 0 | if (from._internal_rsv2() != 0) { |
5083 | 0 | _this->_impl_.rsv2_ = from._impl_.rsv2_; |
5084 | 0 | } |
5085 | 0 | if (from._internal_rsv3() != 0) { |
5086 | 0 | _this->_impl_.rsv3_ = from._impl_.rsv3_; |
5087 | 0 | } |
5088 | 0 | if (from._internal_opcode() != 0) { |
5089 | 0 | _this->_impl_.opcode_ = from._impl_.opcode_; |
5090 | 0 | } |
5091 | 0 | if (from._internal_masked() != 0) { |
5092 | 0 | _this->_impl_.masked_ = from._impl_.masked_; |
5093 | 0 | } |
5094 | 0 | if (from._internal_mask_key() != 0) { |
5095 | 0 | _this->_impl_.mask_key_ = from._impl_.mask_key_; |
5096 | 0 | } |
5097 | 0 | if (from._internal_length_form() != 0) { |
5098 | 0 | _this->_impl_.length_form_ = from._impl_.length_form_; |
5099 | 0 | } |
5100 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
5101 | 0 | } |
5102 | | |
5103 | 0 | void WebSocketFrame::CopyFrom(const WebSocketFrame& from) { |
5104 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.WebSocketFrame) |
5105 | 0 | if (&from == this) return; |
5106 | 0 | Clear(); |
5107 | 0 | MergeFrom(from); |
5108 | 0 | } |
5109 | | |
5110 | | |
5111 | 0 | void WebSocketFrame::InternalSwap(WebSocketFrame* PROTOBUF_RESTRICT other) { |
5112 | 0 | using std::swap; |
5113 | 0 | auto* arena = GetArena(); |
5114 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
5115 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
5116 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.payload_, &other->_impl_.payload_, arena); |
5117 | 0 | ::google::protobuf::internal::memswap< |
5118 | 0 | PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.length_form_) |
5119 | 0 | + sizeof(WebSocketFrame::_impl_.length_form_) |
5120 | 0 | - PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.fin_)>( |
5121 | 0 | reinterpret_cast<char*>(&_impl_.fin_), |
5122 | 0 | reinterpret_cast<char*>(&other->_impl_.fin_)); |
5123 | 0 | } |
5124 | | |
5125 | 0 | ::google::protobuf::Metadata WebSocketFrame::GetMetadata() const { |
5126 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
5127 | 0 | } |
5128 | | // @@protoc_insertion_point(namespace_scope) |
5129 | | } // namespace proto |
5130 | | } // namespace fuzzer |
5131 | | } // namespace curl |
5132 | | namespace google { |
5133 | | namespace protobuf { |
5134 | | } // namespace protobuf |
5135 | | } // namespace google |
5136 | | // @@protoc_insertion_point(global_scope) |
5137 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type |
5138 | | _static_init2_ PROTOBUF_UNUSED = |
5139 | | (::_pbi::AddDescriptors(&descriptor_table_curl_5ffuzzer_2eproto), |
5140 | | ::std::false_type{}); |
5141 | | #include "google/protobuf/port_undef.inc" |