/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 SetOption::Impl_::Impl_( |
94 | | ::_pbi::ConstantInitialized) noexcept |
95 | | : option_id_{static_cast< ::curl::fuzzer::proto::CurlOptionId >(0)}, |
96 | | value_{}, |
97 | | _cached_size_{0}, |
98 | | _oneof_case_{} {} |
99 | | |
100 | | template <typename> |
101 | | PROTOBUF_CONSTEXPR SetOption::SetOption(::_pbi::ConstantInitialized) |
102 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
103 | | : ::google::protobuf::Message(_class_data_.base()), |
104 | | #else // PROTOBUF_CUSTOM_VTABLE |
105 | | : ::google::protobuf::Message(), |
106 | | #endif // PROTOBUF_CUSTOM_VTABLE |
107 | | _impl_(::_pbi::ConstantInitialized()) { |
108 | | } |
109 | | struct SetOptionDefaultTypeInternal { |
110 | 0 | PROTOBUF_CONSTEXPR SetOptionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
111 | 0 | ~SetOptionDefaultTypeInternal() {} |
112 | | union { |
113 | | SetOption _instance; |
114 | | }; |
115 | | }; |
116 | | |
117 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
118 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetOptionDefaultTypeInternal _SetOption_default_instance_; |
119 | | |
120 | | inline constexpr BackpressureConfig::Impl_::Impl_( |
121 | | ::_pbi::ConstantInitialized) noexcept |
122 | | : recv_buf_bytes_{0u}, |
123 | | drain_limit_{0u}, |
124 | | _cached_size_{0} {} |
125 | | |
126 | | template <typename> |
127 | | PROTOBUF_CONSTEXPR BackpressureConfig::BackpressureConfig(::_pbi::ConstantInitialized) |
128 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
129 | | : ::google::protobuf::Message(_class_data_.base()), |
130 | | #else // PROTOBUF_CUSTOM_VTABLE |
131 | | : ::google::protobuf::Message(), |
132 | | #endif // PROTOBUF_CUSTOM_VTABLE |
133 | | _impl_(::_pbi::ConstantInitialized()) { |
134 | | } |
135 | | struct BackpressureConfigDefaultTypeInternal { |
136 | 0 | PROTOBUF_CONSTEXPR BackpressureConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
137 | 0 | ~BackpressureConfigDefaultTypeInternal() {} |
138 | | union { |
139 | | BackpressureConfig _instance; |
140 | | }; |
141 | | }; |
142 | | |
143 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
144 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BackpressureConfigDefaultTypeInternal _BackpressureConfig_default_instance_; |
145 | | |
146 | | inline constexpr Connection::Impl_::Impl_( |
147 | | ::_pbi::ConstantInitialized) noexcept |
148 | | : _cached_size_{0}, |
149 | | on_readable_{}, |
150 | | server_frames_{}, |
151 | | initial_response_( |
152 | | &::google::protobuf::internal::fixed_address_empty_string, |
153 | | ::_pbi::ConstantInitialized()), |
154 | | backpressure_{nullptr}, |
155 | | manual_probes_{nullptr} {} |
156 | | |
157 | | template <typename> |
158 | | PROTOBUF_CONSTEXPR Connection::Connection(::_pbi::ConstantInitialized) |
159 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
160 | | : ::google::protobuf::Message(_class_data_.base()), |
161 | | #else // PROTOBUF_CUSTOM_VTABLE |
162 | | : ::google::protobuf::Message(), |
163 | | #endif // PROTOBUF_CUSTOM_VTABLE |
164 | | _impl_(::_pbi::ConstantInitialized()) { |
165 | | } |
166 | | struct ConnectionDefaultTypeInternal { |
167 | 0 | PROTOBUF_CONSTEXPR ConnectionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
168 | 0 | ~ConnectionDefaultTypeInternal() {} |
169 | | union { |
170 | | Connection _instance; |
171 | | }; |
172 | | }; |
173 | | |
174 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
175 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionDefaultTypeInternal _Connection_default_instance_; |
176 | | |
177 | | inline constexpr Scenario::Impl_::Impl_( |
178 | | ::_pbi::ConstantInitialized) noexcept |
179 | | : _cached_size_{0}, |
180 | | options_{}, |
181 | | host_path_( |
182 | | &::google::protobuf::internal::fixed_address_empty_string, |
183 | | ::_pbi::ConstantInitialized()), |
184 | | connection_{nullptr}, |
185 | | scheme_{static_cast< ::curl::fuzzer::proto::Scheme >(0)} {} |
186 | | |
187 | | template <typename> |
188 | | PROTOBUF_CONSTEXPR Scenario::Scenario(::_pbi::ConstantInitialized) |
189 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
190 | | : ::google::protobuf::Message(_class_data_.base()), |
191 | | #else // PROTOBUF_CUSTOM_VTABLE |
192 | | : ::google::protobuf::Message(), |
193 | | #endif // PROTOBUF_CUSTOM_VTABLE |
194 | | _impl_(::_pbi::ConstantInitialized()) { |
195 | | } |
196 | | struct ScenarioDefaultTypeInternal { |
197 | 0 | PROTOBUF_CONSTEXPR ScenarioDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
198 | 0 | ~ScenarioDefaultTypeInternal() {} |
199 | | union { |
200 | | Scenario _instance; |
201 | | }; |
202 | | }; |
203 | | |
204 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
205 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ScenarioDefaultTypeInternal _Scenario_default_instance_; |
206 | | } // namespace proto |
207 | | } // namespace fuzzer |
208 | | } // namespace curl |
209 | | static const ::_pb::EnumDescriptor* file_level_enum_descriptors_curl_5ffuzzer_2eproto[2]; |
210 | | static constexpr const ::_pb::ServiceDescriptor** |
211 | | file_level_service_descriptors_curl_5ffuzzer_2eproto = nullptr; |
212 | | const ::uint32_t |
213 | | TableStruct_curl_5ffuzzer_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( |
214 | | protodesc_cold) = { |
215 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_._has_bits_), |
216 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _internal_metadata_), |
217 | | ~0u, // no _extensions_ |
218 | | ~0u, // no _oneof_case_ |
219 | | ~0u, // no _weak_field_map_ |
220 | | ~0u, // no _inlined_string_donated_ |
221 | | ~0u, // no _split_ |
222 | | ~0u, // no sizeof(Split) |
223 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.scheme_), |
224 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.host_path_), |
225 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.options_), |
226 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Scenario, _impl_.connection_), |
227 | | ~0u, |
228 | | ~0u, |
229 | | ~0u, |
230 | | 0, |
231 | | ~0u, // no _has_bits_ |
232 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::SetOption, _internal_metadata_), |
233 | | ~0u, // no _extensions_ |
234 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::SetOption, _impl_._oneof_case_[0]), |
235 | | ~0u, // no _weak_field_map_ |
236 | | ~0u, // no _inlined_string_donated_ |
237 | | ~0u, // no _split_ |
238 | | ~0u, // no sizeof(Split) |
239 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::SetOption, _impl_.option_id_), |
240 | | ::_pbi::kInvalidFieldOffsetTag, |
241 | | ::_pbi::kInvalidFieldOffsetTag, |
242 | | ::_pbi::kInvalidFieldOffsetTag, |
243 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::SetOption, _impl_.value_), |
244 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Connection, _impl_._has_bits_), |
245 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Connection, _internal_metadata_), |
246 | | ~0u, // no _extensions_ |
247 | | ~0u, // no _oneof_case_ |
248 | | ~0u, // no _weak_field_map_ |
249 | | ~0u, // no _inlined_string_donated_ |
250 | | ~0u, // no _split_ |
251 | | ~0u, // no sizeof(Split) |
252 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Connection, _impl_.initial_response_), |
253 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Connection, _impl_.on_readable_), |
254 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Connection, _impl_.server_frames_), |
255 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Connection, _impl_.backpressure_), |
256 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::Connection, _impl_.manual_probes_), |
257 | | ~0u, |
258 | | ~0u, |
259 | | ~0u, |
260 | | 0, |
261 | | 1, |
262 | | ~0u, // no _has_bits_ |
263 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WsManualProbes, _internal_metadata_), |
264 | | ~0u, // no _extensions_ |
265 | | ~0u, // no _oneof_case_ |
266 | | ~0u, // no _weak_field_map_ |
267 | | ~0u, // no _inlined_string_donated_ |
268 | | ~0u, // no _split_ |
269 | | ~0u, // no sizeof(Split) |
270 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WsManualProbes, _impl_.flag_matrix_), |
271 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WsManualProbes, _impl_.unaligned_send_), |
272 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WsManualProbes, _impl_.raw_send_), |
273 | | ~0u, // no _has_bits_ |
274 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::BackpressureConfig, _internal_metadata_), |
275 | | ~0u, // no _extensions_ |
276 | | ~0u, // no _oneof_case_ |
277 | | ~0u, // no _weak_field_map_ |
278 | | ~0u, // no _inlined_string_donated_ |
279 | | ~0u, // no _split_ |
280 | | ~0u, // no sizeof(Split) |
281 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::BackpressureConfig, _impl_.recv_buf_bytes_), |
282 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::BackpressureConfig, _impl_.drain_limit_), |
283 | | ~0u, // no _has_bits_ |
284 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _internal_metadata_), |
285 | | ~0u, // no _extensions_ |
286 | | ~0u, // no _oneof_case_ |
287 | | ~0u, // no _weak_field_map_ |
288 | | ~0u, // no _inlined_string_donated_ |
289 | | ~0u, // no _split_ |
290 | | ~0u, // no sizeof(Split) |
291 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.fin_), |
292 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.rsv1_), |
293 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.rsv2_), |
294 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.rsv3_), |
295 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.opcode_), |
296 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.masked_), |
297 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.mask_key_), |
298 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.payload_), |
299 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::WebSocketFrame, _impl_.length_form_), |
300 | | }; |
301 | | |
302 | | static const ::_pbi::MigrationSchema |
303 | | schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
304 | | {0, 12, -1, sizeof(::curl::fuzzer::proto::Scenario)}, |
305 | | {16, -1, -1, sizeof(::curl::fuzzer::proto::SetOption)}, |
306 | | {29, 42, -1, sizeof(::curl::fuzzer::proto::Connection)}, |
307 | | {47, -1, -1, sizeof(::curl::fuzzer::proto::WsManualProbes)}, |
308 | | {58, -1, -1, sizeof(::curl::fuzzer::proto::BackpressureConfig)}, |
309 | | {68, -1, -1, sizeof(::curl::fuzzer::proto::WebSocketFrame)}, |
310 | | }; |
311 | | static const ::_pb::Message* const file_default_instances[] = { |
312 | | &::curl::fuzzer::proto::_Scenario_default_instance_._instance, |
313 | | &::curl::fuzzer::proto::_SetOption_default_instance_._instance, |
314 | | &::curl::fuzzer::proto::_Connection_default_instance_._instance, |
315 | | &::curl::fuzzer::proto::_WsManualProbes_default_instance_._instance, |
316 | | &::curl::fuzzer::proto::_BackpressureConfig_default_instance_._instance, |
317 | | &::curl::fuzzer::proto::_WebSocketFrame_default_instance_._instance, |
318 | | }; |
319 | | const char descriptor_table_protodef_curl_5ffuzzer_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( |
320 | | protodesc_cold) = { |
321 | | "\n\021curl_fuzzer.proto\022\021curl.fuzzer.proto\"\252" |
322 | | "\001\n\010Scenario\022)\n\006scheme\030\001 \001(\0162\031.curl.fuzze" |
323 | | "r.proto.Scheme\022\021\n\thost_path\030\002 \001(\014\022-\n\007opt" |
324 | | "ions\030\003 \003(\0132\034.curl.fuzzer.proto.SetOption" |
325 | | "\0221\n\nconnection\030\004 \001(\0132\035.curl.fuzzer.proto" |
326 | | ".Connection\"\214\001\n\tSetOption\0222\n\toption_id\030\001" |
327 | | " \001(\0162\037.curl.fuzzer.proto.CurlOptionId\022\026\n" |
328 | | "\014string_value\030\n \001(\014H\000\022\024\n\nuint_value\030\013 \001(" |
329 | | "\004H\000\022\024\n\nbool_value\030\014 \001(\010H\000B\007\n\005value\"\354\001\n\nC" |
330 | | "onnection\022\030\n\020initial_response\030\001 \001(\014\022\023\n\013o" |
331 | | "n_readable\030\002 \003(\014\0228\n\rserver_frames\030\003 \003(\0132" |
332 | | "!.curl.fuzzer.proto.WebSocketFrame\022;\n\014ba" |
333 | | "ckpressure\030\004 \001(\0132%.curl.fuzzer.proto.Bac" |
334 | | "kpressureConfig\0228\n\rmanual_probes\030\005 \001(\0132!" |
335 | | ".curl.fuzzer.proto.WsManualProbes\"O\n\016WsM" |
336 | | "anualProbes\022\023\n\013flag_matrix\030\001 \001(\010\022\026\n\016unal" |
337 | | "igned_send\030\002 \001(\010\022\020\n\010raw_send\030\003 \001(\010\"A\n\022Ba" |
338 | | "ckpressureConfig\022\026\n\016recv_buf_bytes\030\001 \001(\r" |
339 | | "\022\023\n\013drain_limit\030\002 \001(\r\"\237\001\n\016WebSocketFrame" |
340 | | "\022\013\n\003fin\030\001 \001(\010\022\014\n\004rsv1\030\002 \001(\010\022\014\n\004rsv2\030\003 \001(" |
341 | | "\010\022\014\n\004rsv3\030\004 \001(\010\022\016\n\006opcode\030\005 \001(\r\022\016\n\006maske" |
342 | | "d\030\006 \001(\010\022\020\n\010mask_key\030\007 \001(\r\022\017\n\007payload\030\010 \001" |
343 | | "(\014\022\023\n\013length_form\030\t \001(\r*b\n\006Scheme\022\026\n\022SCH" |
344 | | "EME_UNSPECIFIED\020\000\022\017\n\013SCHEME_HTTP\020\001\022\020\n\014SC" |
345 | | "HEME_HTTPS\020\002\022\r\n\tSCHEME_WS\020\003\022\016\n\nSCHEME_WS" |
346 | | "S\020\004*\377\003\n\014CurlOptionId\022\033\n\027CURL_OPTION_UNSP" |
347 | | "ECIFIED\020\000\022\032\n\025CURLOPT_CUSTOMREQUEST\020\264N\022\023\n" |
348 | | "\017CURLOPT_HTTPGET\020P\022\022\n\016CURLOPT_NOBODY\020,\022\020" |
349 | | "\n\014CURLOPT_POST\020/\022\027\n\022CURLOPT_POSTFIELDS\020\237" |
350 | | "N\022\032\n\026CURLOPT_FOLLOWLOCATION\0204\022\025\n\021CURLOPT" |
351 | | "_MAXREDIRS\020D\022\026\n\021CURLOPT_USERAGENT\020\242N\022\034\n\027" |
352 | | "CURLOPT_ACCEPT_ENCODING\020\366N\022\022\n\016CURLOPT_HE" |
353 | | "ADER\020*\022\027\n\023CURLOPT_FAILONERROR\020-\022\030\n\024CURLO" |
354 | | "PT_HTTP_VERSION\020T\022\033\n\026CURLOPT_HTTP09_ALLO" |
355 | | "WED\020\235\002\022\027\n\023CURLOPT_AUTOREFERER\020:\022\024\n\017CURLO" |
356 | | "PT_REFERER\020\240N\022\031\n\024CURLOPT_CONNECT_ONLY\020\215\001" |
357 | | "\022\027\n\022CURLOPT_WS_OPTIONS\020\300\002\022\022\n\016CURLOPT_UPL" |
358 | | "OAD\020.\022\036\n\030CURLOPT_INFILESIZE_LARGE\020\243\353\001b\006p" |
359 | | "roto3" |
360 | | }; |
361 | | static ::absl::once_flag descriptor_table_curl_5ffuzzer_2eproto_once; |
362 | | PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_curl_5ffuzzer_2eproto = { |
363 | | false, |
364 | | false, |
365 | | 1525, |
366 | | descriptor_table_protodef_curl_5ffuzzer_2eproto, |
367 | | "curl_fuzzer.proto", |
368 | | &descriptor_table_curl_5ffuzzer_2eproto_once, |
369 | | nullptr, |
370 | | 0, |
371 | | 6, |
372 | | schemas, |
373 | | file_default_instances, |
374 | | TableStruct_curl_5ffuzzer_2eproto::offsets, |
375 | | file_level_enum_descriptors_curl_5ffuzzer_2eproto, |
376 | | file_level_service_descriptors_curl_5ffuzzer_2eproto, |
377 | | }; |
378 | | namespace curl { |
379 | | namespace fuzzer { |
380 | | namespace proto { |
381 | 0 | const ::google::protobuf::EnumDescriptor* Scheme_descriptor() { |
382 | 0 | ::google::protobuf::internal::AssignDescriptors(&descriptor_table_curl_5ffuzzer_2eproto); |
383 | 0 | return file_level_enum_descriptors_curl_5ffuzzer_2eproto[0]; |
384 | 0 | } |
385 | | PROTOBUF_CONSTINIT const uint32_t Scheme_internal_data_[] = { |
386 | | 327680u, 0u, }; |
387 | 0 | bool Scheme_IsValid(int value) { |
388 | 0 | return 0 <= value && value <= 4; |
389 | 0 | } |
390 | 0 | const ::google::protobuf::EnumDescriptor* CurlOptionId_descriptor() { |
391 | 0 | ::google::protobuf::internal::AssignDescriptors(&descriptor_table_curl_5ffuzzer_2eproto); |
392 | 0 | return file_level_enum_descriptors_curl_5ffuzzer_2eproto[1]; |
393 | 0 | } |
394 | | PROTOBUF_CONSTINIT const uint32_t CurlOptionId_internal_data_[] = { |
395 | | 65536u, 589920u, 0u, 34109952u, 557064u, 10018u, 10015u, 10102u, 285u, 10016u, 10036u, 30115u, 141u, 320u, }; |
396 | 0 | bool CurlOptionId_IsValid(int value) { |
397 | 0 | return ::_pbi::ValidateEnum(value, CurlOptionId_internal_data_); |
398 | 0 | } |
399 | | // =================================================================== |
400 | | |
401 | | class Scenario::_Internal { |
402 | | public: |
403 | | using HasBits = |
404 | | decltype(std::declval<Scenario>()._impl_._has_bits_); |
405 | | static constexpr ::int32_t kHasBitsOffset = |
406 | | 8 * PROTOBUF_FIELD_OFFSET(Scenario, _impl_._has_bits_); |
407 | | }; |
408 | | |
409 | | Scenario::Scenario(::google::protobuf::Arena* arena) |
410 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
411 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
412 | | #else // PROTOBUF_CUSTOM_VTABLE |
413 | 3.37k | : ::google::protobuf::Message(arena) { |
414 | 3.37k | #endif // PROTOBUF_CUSTOM_VTABLE |
415 | 3.37k | SharedCtor(arena); |
416 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.Scenario) |
417 | 3.37k | } |
418 | | inline PROTOBUF_NDEBUG_INLINE Scenario::Impl_::Impl_( |
419 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
420 | | const Impl_& from, const ::curl::fuzzer::proto::Scenario& from_msg) |
421 | 0 | : _has_bits_{from._has_bits_}, |
422 | 0 | _cached_size_{0}, |
423 | 0 | options_{visibility, arena, from.options_}, |
424 | 0 | host_path_(arena, from.host_path_) {} |
425 | | |
426 | | Scenario::Scenario( |
427 | | ::google::protobuf::Arena* arena, |
428 | | const Scenario& from) |
429 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
430 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
431 | | #else // PROTOBUF_CUSTOM_VTABLE |
432 | 0 | : ::google::protobuf::Message(arena) { |
433 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
434 | 0 | Scenario* const _this = this; |
435 | 0 | (void)_this; |
436 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
437 | 0 | from._internal_metadata_); |
438 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
439 | 0 | ::uint32_t cached_has_bits = _impl_._has_bits_[0]; |
440 | 0 | _impl_.connection_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::Connection>( |
441 | 0 | arena, *from._impl_.connection_) |
442 | 0 | : nullptr; |
443 | 0 | _impl_.scheme_ = from._impl_.scheme_; |
444 | | |
445 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.Scenario) |
446 | 0 | } |
447 | | inline PROTOBUF_NDEBUG_INLINE Scenario::Impl_::Impl_( |
448 | | ::google::protobuf::internal::InternalVisibility visibility, |
449 | | ::google::protobuf::Arena* arena) |
450 | 3.37k | : _cached_size_{0}, |
451 | 3.37k | options_{visibility, arena}, |
452 | 3.37k | host_path_(arena) {} |
453 | | |
454 | 3.37k | inline void Scenario::SharedCtor(::_pb::Arena* arena) { |
455 | 3.37k | new (&_impl_) Impl_(internal_visibility(), arena); |
456 | 3.37k | ::memset(reinterpret_cast<char *>(&_impl_) + |
457 | 3.37k | offsetof(Impl_, connection_), |
458 | 3.37k | 0, |
459 | 3.37k | offsetof(Impl_, scheme_) - |
460 | 3.37k | offsetof(Impl_, connection_) + |
461 | 3.37k | sizeof(Impl_::scheme_)); |
462 | 3.37k | } |
463 | 3.37k | Scenario::~Scenario() { |
464 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.Scenario) |
465 | 3.37k | SharedDtor(*this); |
466 | 3.37k | } |
467 | 3.37k | inline void Scenario::SharedDtor(MessageLite& self) { |
468 | 3.37k | Scenario& this_ = static_cast<Scenario&>(self); |
469 | 3.37k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
470 | 3.37k | ABSL_DCHECK(this_.GetArena() == nullptr); |
471 | 3.37k | this_._impl_.host_path_.Destroy(); |
472 | 3.37k | delete this_._impl_.connection_; |
473 | 3.37k | this_._impl_.~Impl_(); |
474 | 3.37k | } |
475 | | |
476 | | inline void* Scenario::PlacementNew_(const void*, void* mem, |
477 | 0 | ::google::protobuf::Arena* arena) { |
478 | 0 | return ::new (mem) Scenario(arena); |
479 | 0 | } |
480 | 0 | constexpr auto Scenario::InternalNewImpl_() { |
481 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
482 | 0 | PROTOBUF_FIELD_OFFSET(Scenario, _impl_.options_) + |
483 | 0 | decltype(Scenario::_impl_.options_):: |
484 | 0 | InternalGetArenaOffset( |
485 | 0 | ::google::protobuf::Message::internal_visibility()), |
486 | 0 | }); |
487 | 0 | if (arena_bits.has_value()) { |
488 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit( |
489 | 0 | sizeof(Scenario), alignof(Scenario), *arena_bits); |
490 | 0 | } else { |
491 | 0 | return ::google::protobuf::internal::MessageCreator(&Scenario::PlacementNew_, |
492 | 0 | sizeof(Scenario), |
493 | 0 | alignof(Scenario)); |
494 | 0 | } |
495 | 0 | } |
496 | | PROTOBUF_CONSTINIT |
497 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
498 | | const ::google::protobuf::internal::ClassDataFull Scenario::_class_data_ = { |
499 | | ::google::protobuf::internal::ClassData{ |
500 | | &_Scenario_default_instance_._instance, |
501 | | &_table_.header, |
502 | | nullptr, // OnDemandRegisterArenaDtor |
503 | | nullptr, // IsInitialized |
504 | | &Scenario::MergeImpl, |
505 | | ::google::protobuf::Message::GetNewImpl<Scenario>(), |
506 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
507 | | &Scenario::SharedDtor, |
508 | | ::google::protobuf::Message::GetClearImpl<Scenario>(), &Scenario::ByteSizeLong, |
509 | | &Scenario::_InternalSerialize, |
510 | | #endif // PROTOBUF_CUSTOM_VTABLE |
511 | | PROTOBUF_FIELD_OFFSET(Scenario, _impl_._cached_size_), |
512 | | false, |
513 | | }, |
514 | | &Scenario::kDescriptorMethods, |
515 | | &descriptor_table_curl_5ffuzzer_2eproto, |
516 | | nullptr, // tracker |
517 | | }; |
518 | 23.1k | const ::google::protobuf::internal::ClassData* Scenario::GetClassData() const { |
519 | 23.1k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
520 | 23.1k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
521 | 23.1k | return _class_data_.base(); |
522 | 23.1k | } |
523 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
524 | | const ::_pbi::TcParseTable<2, 4, 2, 0, 2> Scenario::_table_ = { |
525 | | { |
526 | | PROTOBUF_FIELD_OFFSET(Scenario, _impl_._has_bits_), |
527 | | 0, // no _extensions_ |
528 | | 4, 24, // max_field_number, fast_idx_mask |
529 | | offsetof(decltype(_table_), field_lookup_table), |
530 | | 4294967280, // skipmap |
531 | | offsetof(decltype(_table_), field_entries), |
532 | | 4, // num_field_entries |
533 | | 2, // num_aux_entries |
534 | | offsetof(decltype(_table_), aux_entries), |
535 | | _class_data_.base(), |
536 | | nullptr, // post_loop_handler |
537 | | ::_pbi::TcParser::GenericFallback, // fallback |
538 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
539 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::Scenario>(), // to_prefetch |
540 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
541 | | }, {{ |
542 | | // .curl.fuzzer.proto.Connection connection = 4; |
543 | | {::_pbi::TcParser::FastMtS1, |
544 | | {34, 0, 1, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.connection_)}}, |
545 | | // .curl.fuzzer.proto.Scheme scheme = 1; |
546 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Scenario, _impl_.scheme_), 63>(), |
547 | | {8, 63, 0, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.scheme_)}}, |
548 | | // bytes host_path = 2; |
549 | | {::_pbi::TcParser::FastBS1, |
550 | | {18, 63, 0, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.host_path_)}}, |
551 | | // repeated .curl.fuzzer.proto.SetOption options = 3; |
552 | | {::_pbi::TcParser::FastMtR1, |
553 | | {26, 63, 0, PROTOBUF_FIELD_OFFSET(Scenario, _impl_.options_)}}, |
554 | | }}, {{ |
555 | | 65535, 65535 |
556 | | }}, {{ |
557 | | // .curl.fuzzer.proto.Scheme scheme = 1; |
558 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.scheme_), -1, 0, |
559 | | (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
560 | | // bytes host_path = 2; |
561 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.host_path_), -1, 0, |
562 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
563 | | // repeated .curl.fuzzer.proto.SetOption options = 3; |
564 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.options_), -1, 0, |
565 | | (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
566 | | // .curl.fuzzer.proto.Connection connection = 4; |
567 | | {PROTOBUF_FIELD_OFFSET(Scenario, _impl_.connection_), _Internal::kHasBitsOffset + 0, 1, |
568 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
569 | | }}, {{ |
570 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::SetOption>()}, |
571 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::Connection>()}, |
572 | | }}, {{ |
573 | | }}, |
574 | | }; |
575 | | |
576 | 6.80k | PROTOBUF_NOINLINE void Scenario::Clear() { |
577 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.Scenario) |
578 | 6.80k | ::google::protobuf::internal::TSanWrite(&_impl_); |
579 | 6.80k | ::uint32_t cached_has_bits = 0; |
580 | | // Prevent compiler warnings about cached_has_bits being unused |
581 | 6.80k | (void) cached_has_bits; |
582 | | |
583 | 6.80k | _impl_.options_.Clear(); |
584 | 6.80k | _impl_.host_path_.ClearToEmpty(); |
585 | 6.80k | cached_has_bits = _impl_._has_bits_[0]; |
586 | 6.80k | if (cached_has_bits & 0x00000001u) { |
587 | 51 | ABSL_DCHECK(_impl_.connection_ != nullptr); |
588 | 51 | _impl_.connection_->Clear(); |
589 | 51 | } |
590 | 6.80k | _impl_.scheme_ = 0; |
591 | 6.80k | _impl_._has_bits_.Clear(); |
592 | 6.80k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
593 | 6.80k | } |
594 | | |
595 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
596 | | ::uint8_t* Scenario::_InternalSerialize( |
597 | | const MessageLite& base, ::uint8_t* target, |
598 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
599 | | const Scenario& this_ = static_cast<const Scenario&>(base); |
600 | | #else // PROTOBUF_CUSTOM_VTABLE |
601 | | ::uint8_t* Scenario::_InternalSerialize( |
602 | | ::uint8_t* target, |
603 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
604 | 0 | const Scenario& this_ = *this; |
605 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
606 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.Scenario) |
607 | 0 | ::uint32_t cached_has_bits = 0; |
608 | 0 | (void)cached_has_bits; |
609 | | |
610 | | // .curl.fuzzer.proto.Scheme scheme = 1; |
611 | 0 | if (this_._internal_scheme() != 0) { |
612 | 0 | target = stream->EnsureSpace(target); |
613 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
614 | 0 | 1, this_._internal_scheme(), target); |
615 | 0 | } |
616 | | |
617 | | // bytes host_path = 2; |
618 | 0 | if (!this_._internal_host_path().empty()) { |
619 | 0 | const std::string& _s = this_._internal_host_path(); |
620 | 0 | target = stream->WriteBytesMaybeAliased(2, _s, target); |
621 | 0 | } |
622 | | |
623 | | // repeated .curl.fuzzer.proto.SetOption options = 3; |
624 | 0 | for (unsigned i = 0, n = static_cast<unsigned>( |
625 | 0 | this_._internal_options_size()); |
626 | 0 | i < n; i++) { |
627 | 0 | const auto& repfield = this_._internal_options().Get(i); |
628 | 0 | target = |
629 | 0 | ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
630 | 0 | 3, repfield, repfield.GetCachedSize(), |
631 | 0 | target, stream); |
632 | 0 | } |
633 | |
|
634 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
635 | | // .curl.fuzzer.proto.Connection connection = 4; |
636 | 0 | if (cached_has_bits & 0x00000001u) { |
637 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
638 | 0 | 4, *this_._impl_.connection_, this_._impl_.connection_->GetCachedSize(), target, |
639 | 0 | stream); |
640 | 0 | } |
641 | |
|
642 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
643 | 0 | target = |
644 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
645 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
646 | 0 | } |
647 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.Scenario) |
648 | 0 | return target; |
649 | 0 | } |
650 | | |
651 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
652 | | ::size_t Scenario::ByteSizeLong(const MessageLite& base) { |
653 | | const Scenario& this_ = static_cast<const Scenario&>(base); |
654 | | #else // PROTOBUF_CUSTOM_VTABLE |
655 | 0 | ::size_t Scenario::ByteSizeLong() const { |
656 | 0 | const Scenario& this_ = *this; |
657 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
658 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.Scenario) |
659 | 0 | ::size_t total_size = 0; |
660 | |
|
661 | 0 | ::uint32_t cached_has_bits = 0; |
662 | | // Prevent compiler warnings about cached_has_bits being unused |
663 | 0 | (void)cached_has_bits; |
664 | |
|
665 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
666 | 0 | { |
667 | | // repeated .curl.fuzzer.proto.SetOption options = 3; |
668 | 0 | { |
669 | 0 | total_size += 1UL * this_._internal_options_size(); |
670 | 0 | for (const auto& msg : this_._internal_options()) { |
671 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); |
672 | 0 | } |
673 | 0 | } |
674 | 0 | } |
675 | 0 | { |
676 | | // bytes host_path = 2; |
677 | 0 | if (!this_._internal_host_path().empty()) { |
678 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
679 | 0 | this_._internal_host_path()); |
680 | 0 | } |
681 | 0 | } |
682 | 0 | { |
683 | | // .curl.fuzzer.proto.Connection connection = 4; |
684 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
685 | 0 | if (cached_has_bits & 0x00000001u) { |
686 | 0 | total_size += 1 + |
687 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.connection_); |
688 | 0 | } |
689 | 0 | } |
690 | 0 | { |
691 | | // .curl.fuzzer.proto.Scheme scheme = 1; |
692 | 0 | if (this_._internal_scheme() != 0) { |
693 | 0 | total_size += 1 + |
694 | 0 | ::_pbi::WireFormatLite::EnumSize(this_._internal_scheme()); |
695 | 0 | } |
696 | 0 | } |
697 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
698 | 0 | &this_._impl_._cached_size_); |
699 | 0 | } |
700 | | |
701 | 0 | void Scenario::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
702 | 0 | auto* const _this = static_cast<Scenario*>(&to_msg); |
703 | 0 | auto& from = static_cast<const Scenario&>(from_msg); |
704 | 0 | ::google::protobuf::Arena* arena = _this->GetArena(); |
705 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.Scenario) |
706 | 0 | ABSL_DCHECK_NE(&from, _this); |
707 | 0 | ::uint32_t cached_has_bits = 0; |
708 | 0 | (void) cached_has_bits; |
709 | |
|
710 | 0 | _this->_internal_mutable_options()->MergeFrom( |
711 | 0 | from._internal_options()); |
712 | 0 | if (!from._internal_host_path().empty()) { |
713 | 0 | _this->_internal_set_host_path(from._internal_host_path()); |
714 | 0 | } |
715 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
716 | 0 | if (cached_has_bits & 0x00000001u) { |
717 | 0 | ABSL_DCHECK(from._impl_.connection_ != nullptr); |
718 | 0 | if (_this->_impl_.connection_ == nullptr) { |
719 | 0 | _this->_impl_.connection_ = |
720 | 0 | ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::Connection>(arena, *from._impl_.connection_); |
721 | 0 | } else { |
722 | 0 | _this->_impl_.connection_->MergeFrom(*from._impl_.connection_); |
723 | 0 | } |
724 | 0 | } |
725 | 0 | if (from._internal_scheme() != 0) { |
726 | 0 | _this->_impl_.scheme_ = from._impl_.scheme_; |
727 | 0 | } |
728 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
729 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
730 | 0 | } |
731 | | |
732 | 0 | void Scenario::CopyFrom(const Scenario& from) { |
733 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.Scenario) |
734 | 0 | if (&from == this) return; |
735 | 0 | Clear(); |
736 | 0 | MergeFrom(from); |
737 | 0 | } |
738 | | |
739 | | |
740 | 0 | void Scenario::InternalSwap(Scenario* PROTOBUF_RESTRICT other) { |
741 | 0 | using std::swap; |
742 | 0 | auto* arena = GetArena(); |
743 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
744 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
745 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
746 | 0 | _impl_.options_.InternalSwap(&other->_impl_.options_); |
747 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.host_path_, &other->_impl_.host_path_, arena); |
748 | 0 | ::google::protobuf::internal::memswap< |
749 | 0 | PROTOBUF_FIELD_OFFSET(Scenario, _impl_.scheme_) |
750 | 0 | + sizeof(Scenario::_impl_.scheme_) |
751 | 0 | - PROTOBUF_FIELD_OFFSET(Scenario, _impl_.connection_)>( |
752 | 0 | reinterpret_cast<char*>(&_impl_.connection_), |
753 | 0 | reinterpret_cast<char*>(&other->_impl_.connection_)); |
754 | 0 | } |
755 | | |
756 | 0 | ::google::protobuf::Metadata Scenario::GetMetadata() const { |
757 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
758 | 0 | } |
759 | | // =================================================================== |
760 | | |
761 | | class SetOption::_Internal { |
762 | | public: |
763 | | static constexpr ::int32_t kOneofCaseOffset = |
764 | | PROTOBUF_FIELD_OFFSET(::curl::fuzzer::proto::SetOption, _impl_._oneof_case_); |
765 | | }; |
766 | | |
767 | | SetOption::SetOption(::google::protobuf::Arena* arena) |
768 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
769 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
770 | | #else // PROTOBUF_CUSTOM_VTABLE |
771 | 0 | : ::google::protobuf::Message(arena) { |
772 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
773 | 0 | SharedCtor(arena); |
774 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.SetOption) |
775 | 0 | } |
776 | | inline PROTOBUF_NDEBUG_INLINE SetOption::Impl_::Impl_( |
777 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
778 | | const Impl_& from, const ::curl::fuzzer::proto::SetOption& from_msg) |
779 | 0 | : value_{}, |
780 | 0 | _cached_size_{0}, |
781 | 0 | _oneof_case_{from._oneof_case_[0]} {} |
782 | | |
783 | | SetOption::SetOption( |
784 | | ::google::protobuf::Arena* arena, |
785 | | const SetOption& from) |
786 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
787 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
788 | | #else // PROTOBUF_CUSTOM_VTABLE |
789 | 0 | : ::google::protobuf::Message(arena) { |
790 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
791 | 0 | SetOption* const _this = this; |
792 | 0 | (void)_this; |
793 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
794 | 0 | from._internal_metadata_); |
795 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
796 | 0 | _impl_.option_id_ = from._impl_.option_id_; |
797 | 0 | switch (value_case()) { |
798 | 0 | case VALUE_NOT_SET: |
799 | 0 | break; |
800 | 0 | case kStringValue: |
801 | 0 | new (&_impl_.value_.string_value_) decltype(_impl_.value_.string_value_){arena, from._impl_.value_.string_value_}; |
802 | 0 | break; |
803 | 0 | case kUintValue: |
804 | 0 | _impl_.value_.uint_value_ = from._impl_.value_.uint_value_; |
805 | 0 | break; |
806 | 0 | case kBoolValue: |
807 | 0 | _impl_.value_.bool_value_ = from._impl_.value_.bool_value_; |
808 | 0 | break; |
809 | 0 | } |
810 | | |
811 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.SetOption) |
812 | 0 | } |
813 | | inline PROTOBUF_NDEBUG_INLINE SetOption::Impl_::Impl_( |
814 | | ::google::protobuf::internal::InternalVisibility visibility, |
815 | | ::google::protobuf::Arena* arena) |
816 | 0 | : value_{}, |
817 | 0 | _cached_size_{0}, |
818 | 0 | _oneof_case_{} {} |
819 | | |
820 | 0 | inline void SetOption::SharedCtor(::_pb::Arena* arena) { |
821 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
822 | 0 | _impl_.option_id_ = {}; |
823 | 0 | } |
824 | 56.6k | SetOption::~SetOption() { |
825 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.SetOption) |
826 | 56.6k | SharedDtor(*this); |
827 | 56.6k | } |
828 | 56.6k | inline void SetOption::SharedDtor(MessageLite& self) { |
829 | 56.6k | SetOption& this_ = static_cast<SetOption&>(self); |
830 | 56.6k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
831 | 56.6k | ABSL_DCHECK(this_.GetArena() == nullptr); |
832 | 56.6k | if (this_.has_value()) { |
833 | 14.4k | this_.clear_value(); |
834 | 14.4k | } |
835 | 56.6k | this_._impl_.~Impl_(); |
836 | 56.6k | } |
837 | | |
838 | 23.6k | void SetOption::clear_value() { |
839 | | // @@protoc_insertion_point(one_of_clear_start:curl.fuzzer.proto.SetOption) |
840 | 23.6k | ::google::protobuf::internal::TSanWrite(&_impl_); |
841 | 23.6k | switch (value_case()) { |
842 | 3.29k | case kStringValue: { |
843 | 3.29k | _impl_.value_.string_value_.Destroy(); |
844 | 3.29k | break; |
845 | 0 | } |
846 | 3.98k | case kUintValue: { |
847 | | // No need to clear |
848 | 3.98k | break; |
849 | 0 | } |
850 | 8.54k | case kBoolValue: { |
851 | | // No need to clear |
852 | 8.54k | break; |
853 | 0 | } |
854 | 7.83k | case VALUE_NOT_SET: { |
855 | 7.83k | break; |
856 | 0 | } |
857 | 23.6k | } |
858 | 23.6k | _impl_._oneof_case_[0] = VALUE_NOT_SET; |
859 | 23.6k | } |
860 | | |
861 | | |
862 | | inline void* SetOption::PlacementNew_(const void*, void* mem, |
863 | 0 | ::google::protobuf::Arena* arena) { |
864 | 0 | return ::new (mem) SetOption(arena); |
865 | 0 | } |
866 | 0 | constexpr auto SetOption::InternalNewImpl_() { |
867 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetOption), |
868 | 0 | alignof(SetOption)); |
869 | 0 | } |
870 | | PROTOBUF_CONSTINIT |
871 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
872 | | const ::google::protobuf::internal::ClassDataFull SetOption::_class_data_ = { |
873 | | ::google::protobuf::internal::ClassData{ |
874 | | &_SetOption_default_instance_._instance, |
875 | | &_table_.header, |
876 | | nullptr, // OnDemandRegisterArenaDtor |
877 | | nullptr, // IsInitialized |
878 | | &SetOption::MergeImpl, |
879 | | ::google::protobuf::Message::GetNewImpl<SetOption>(), |
880 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
881 | | &SetOption::SharedDtor, |
882 | | ::google::protobuf::Message::GetClearImpl<SetOption>(), &SetOption::ByteSizeLong, |
883 | | &SetOption::_InternalSerialize, |
884 | | #endif // PROTOBUF_CUSTOM_VTABLE |
885 | | PROTOBUF_FIELD_OFFSET(SetOption, _impl_._cached_size_), |
886 | | false, |
887 | | }, |
888 | | &SetOption::kDescriptorMethods, |
889 | | &descriptor_table_curl_5ffuzzer_2eproto, |
890 | | nullptr, // tracker |
891 | | }; |
892 | 284k | const ::google::protobuf::internal::ClassData* SetOption::GetClassData() const { |
893 | 284k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
894 | 284k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
895 | 284k | return _class_data_.base(); |
896 | 284k | } |
897 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
898 | | const ::_pbi::TcParseTable<0, 4, 0, 0, 2> SetOption::_table_ = { |
899 | | { |
900 | | 0, // no _has_bits_ |
901 | | 0, // no _extensions_ |
902 | | 12, 0, // max_field_number, fast_idx_mask |
903 | | offsetof(decltype(_table_), field_lookup_table), |
904 | | 4294963710, // skipmap |
905 | | offsetof(decltype(_table_), field_entries), |
906 | | 4, // num_field_entries |
907 | | 0, // num_aux_entries |
908 | | offsetof(decltype(_table_), field_names), // no aux_entries |
909 | | _class_data_.base(), |
910 | | nullptr, // post_loop_handler |
911 | | ::_pbi::TcParser::GenericFallback, // fallback |
912 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
913 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::SetOption>(), // to_prefetch |
914 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
915 | | }, {{ |
916 | | // .curl.fuzzer.proto.CurlOptionId option_id = 1; |
917 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SetOption, _impl_.option_id_), 63>(), |
918 | | {8, 63, 0, PROTOBUF_FIELD_OFFSET(SetOption, _impl_.option_id_)}}, |
919 | | }}, {{ |
920 | | 65535, 65535 |
921 | | }}, {{ |
922 | | // .curl.fuzzer.proto.CurlOptionId option_id = 1; |
923 | | {PROTOBUF_FIELD_OFFSET(SetOption, _impl_.option_id_), 0, 0, |
924 | | (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
925 | | // bytes string_value = 10; |
926 | | {PROTOBUF_FIELD_OFFSET(SetOption, _impl_.value_.string_value_), _Internal::kOneofCaseOffset + 0, 0, |
927 | | (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)}, |
928 | | // uint64 uint_value = 11; |
929 | | {PROTOBUF_FIELD_OFFSET(SetOption, _impl_.value_.uint_value_), _Internal::kOneofCaseOffset + 0, 0, |
930 | | (0 | ::_fl::kFcOneof | ::_fl::kUInt64)}, |
931 | | // bool bool_value = 12; |
932 | | {PROTOBUF_FIELD_OFFSET(SetOption, _impl_.value_.bool_value_), _Internal::kOneofCaseOffset + 0, 0, |
933 | | (0 | ::_fl::kFcOneof | ::_fl::kBool)}, |
934 | | }}, |
935 | | // no aux_entries |
936 | | {{ |
937 | | }}, |
938 | | }; |
939 | | |
940 | 9.22k | PROTOBUF_NOINLINE void SetOption::Clear() { |
941 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.SetOption) |
942 | 9.22k | ::google::protobuf::internal::TSanWrite(&_impl_); |
943 | 9.22k | ::uint32_t cached_has_bits = 0; |
944 | | // Prevent compiler warnings about cached_has_bits being unused |
945 | 9.22k | (void) cached_has_bits; |
946 | | |
947 | 9.22k | _impl_.option_id_ = 0; |
948 | 9.22k | clear_value(); |
949 | 9.22k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
950 | 9.22k | } |
951 | | |
952 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
953 | | ::uint8_t* SetOption::_InternalSerialize( |
954 | | const MessageLite& base, ::uint8_t* target, |
955 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
956 | | const SetOption& this_ = static_cast<const SetOption&>(base); |
957 | | #else // PROTOBUF_CUSTOM_VTABLE |
958 | | ::uint8_t* SetOption::_InternalSerialize( |
959 | | ::uint8_t* target, |
960 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
961 | 0 | const SetOption& this_ = *this; |
962 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
963 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.SetOption) |
964 | 0 | ::uint32_t cached_has_bits = 0; |
965 | 0 | (void)cached_has_bits; |
966 | | |
967 | | // .curl.fuzzer.proto.CurlOptionId option_id = 1; |
968 | 0 | if (this_._internal_option_id() != 0) { |
969 | 0 | target = stream->EnsureSpace(target); |
970 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
971 | 0 | 1, this_._internal_option_id(), target); |
972 | 0 | } |
973 | |
|
974 | 0 | switch (this_.value_case()) { |
975 | 0 | case kStringValue: { |
976 | 0 | const std::string& _s = this_._internal_string_value(); |
977 | 0 | target = stream->WriteBytesMaybeAliased(10, _s, target); |
978 | 0 | break; |
979 | 0 | } |
980 | 0 | case kUintValue: { |
981 | 0 | target = stream->EnsureSpace(target); |
982 | 0 | target = ::_pbi::WireFormatLite::WriteUInt64ToArray( |
983 | 0 | 11, this_._internal_uint_value(), target); |
984 | 0 | break; |
985 | 0 | } |
986 | 0 | case kBoolValue: { |
987 | 0 | target = stream->EnsureSpace(target); |
988 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
989 | 0 | 12, this_._internal_bool_value(), target); |
990 | 0 | break; |
991 | 0 | } |
992 | 0 | default: |
993 | 0 | break; |
994 | 0 | } |
995 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
996 | 0 | target = |
997 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
998 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
999 | 0 | } |
1000 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.SetOption) |
1001 | 0 | return target; |
1002 | 0 | } |
1003 | | |
1004 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1005 | | ::size_t SetOption::ByteSizeLong(const MessageLite& base) { |
1006 | | const SetOption& this_ = static_cast<const SetOption&>(base); |
1007 | | #else // PROTOBUF_CUSTOM_VTABLE |
1008 | 0 | ::size_t SetOption::ByteSizeLong() const { |
1009 | 0 | const SetOption& this_ = *this; |
1010 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1011 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.SetOption) |
1012 | 0 | ::size_t total_size = 0; |
1013 | |
|
1014 | 0 | ::uint32_t cached_has_bits = 0; |
1015 | | // Prevent compiler warnings about cached_has_bits being unused |
1016 | 0 | (void)cached_has_bits; |
1017 | |
|
1018 | 0 | { |
1019 | | // .curl.fuzzer.proto.CurlOptionId option_id = 1; |
1020 | 0 | if (this_._internal_option_id() != 0) { |
1021 | 0 | total_size += 1 + |
1022 | 0 | ::_pbi::WireFormatLite::EnumSize(this_._internal_option_id()); |
1023 | 0 | } |
1024 | 0 | } |
1025 | 0 | switch (this_.value_case()) { |
1026 | | // bytes string_value = 10; |
1027 | 0 | case kStringValue: { |
1028 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
1029 | 0 | this_._internal_string_value()); |
1030 | 0 | break; |
1031 | 0 | } |
1032 | | // uint64 uint_value = 11; |
1033 | 0 | case kUintValue: { |
1034 | 0 | total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( |
1035 | 0 | this_._internal_uint_value()); |
1036 | 0 | break; |
1037 | 0 | } |
1038 | | // bool bool_value = 12; |
1039 | 0 | case kBoolValue: { |
1040 | 0 | total_size += 2; |
1041 | 0 | break; |
1042 | 0 | } |
1043 | 0 | case VALUE_NOT_SET: { |
1044 | 0 | break; |
1045 | 0 | } |
1046 | 0 | } |
1047 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
1048 | 0 | &this_._impl_._cached_size_); |
1049 | 0 | } |
1050 | | |
1051 | 0 | void SetOption::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
1052 | 0 | auto* const _this = static_cast<SetOption*>(&to_msg); |
1053 | 0 | auto& from = static_cast<const SetOption&>(from_msg); |
1054 | 0 | ::google::protobuf::Arena* arena = _this->GetArena(); |
1055 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.SetOption) |
1056 | 0 | ABSL_DCHECK_NE(&from, _this); |
1057 | 0 | ::uint32_t cached_has_bits = 0; |
1058 | 0 | (void) cached_has_bits; |
1059 | |
|
1060 | 0 | if (from._internal_option_id() != 0) { |
1061 | 0 | _this->_impl_.option_id_ = from._impl_.option_id_; |
1062 | 0 | } |
1063 | 0 | if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { |
1064 | 0 | const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; |
1065 | 0 | const bool oneof_needs_init = oneof_to_case != oneof_from_case; |
1066 | 0 | if (oneof_needs_init) { |
1067 | 0 | if (oneof_to_case != 0) { |
1068 | 0 | _this->clear_value(); |
1069 | 0 | } |
1070 | 0 | _this->_impl_._oneof_case_[0] = oneof_from_case; |
1071 | 0 | } |
1072 | |
|
1073 | 0 | switch (oneof_from_case) { |
1074 | 0 | case kStringValue: { |
1075 | 0 | if (oneof_needs_init) { |
1076 | 0 | _this->_impl_.value_.string_value_.InitDefault(); |
1077 | 0 | } |
1078 | 0 | _this->_impl_.value_.string_value_.Set(from._internal_string_value(), arena); |
1079 | 0 | break; |
1080 | 0 | } |
1081 | 0 | case kUintValue: { |
1082 | 0 | _this->_impl_.value_.uint_value_ = from._impl_.value_.uint_value_; |
1083 | 0 | break; |
1084 | 0 | } |
1085 | 0 | case kBoolValue: { |
1086 | 0 | _this->_impl_.value_.bool_value_ = from._impl_.value_.bool_value_; |
1087 | 0 | break; |
1088 | 0 | } |
1089 | 0 | case VALUE_NOT_SET: |
1090 | 0 | break; |
1091 | 0 | } |
1092 | 0 | } |
1093 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
1094 | 0 | } |
1095 | | |
1096 | 0 | void SetOption::CopyFrom(const SetOption& from) { |
1097 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.SetOption) |
1098 | 0 | if (&from == this) return; |
1099 | 0 | Clear(); |
1100 | 0 | MergeFrom(from); |
1101 | 0 | } |
1102 | | |
1103 | | |
1104 | 0 | void SetOption::InternalSwap(SetOption* PROTOBUF_RESTRICT other) { |
1105 | 0 | using std::swap; |
1106 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1107 | 0 | swap(_impl_.option_id_, other->_impl_.option_id_); |
1108 | 0 | swap(_impl_.value_, other->_impl_.value_); |
1109 | 0 | swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); |
1110 | 0 | } |
1111 | | |
1112 | 0 | ::google::protobuf::Metadata SetOption::GetMetadata() const { |
1113 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
1114 | 0 | } |
1115 | | // =================================================================== |
1116 | | |
1117 | | class Connection::_Internal { |
1118 | | public: |
1119 | | using HasBits = |
1120 | | decltype(std::declval<Connection>()._impl_._has_bits_); |
1121 | | static constexpr ::int32_t kHasBitsOffset = |
1122 | | 8 * PROTOBUF_FIELD_OFFSET(Connection, _impl_._has_bits_); |
1123 | | }; |
1124 | | |
1125 | | Connection::Connection(::google::protobuf::Arena* arena) |
1126 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1127 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1128 | | #else // PROTOBUF_CUSTOM_VTABLE |
1129 | 0 | : ::google::protobuf::Message(arena) { |
1130 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1131 | 0 | SharedCtor(arena); |
1132 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.Connection) |
1133 | 0 | } |
1134 | | inline PROTOBUF_NDEBUG_INLINE Connection::Impl_::Impl_( |
1135 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
1136 | | const Impl_& from, const ::curl::fuzzer::proto::Connection& from_msg) |
1137 | 0 | : _has_bits_{from._has_bits_}, |
1138 | 0 | _cached_size_{0}, |
1139 | 0 | on_readable_{visibility, arena, from.on_readable_}, |
1140 | 0 | server_frames_{visibility, arena, from.server_frames_}, |
1141 | 0 | initial_response_(arena, from.initial_response_) {} |
1142 | | |
1143 | | Connection::Connection( |
1144 | | ::google::protobuf::Arena* arena, |
1145 | | const Connection& from) |
1146 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1147 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1148 | | #else // PROTOBUF_CUSTOM_VTABLE |
1149 | 0 | : ::google::protobuf::Message(arena) { |
1150 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1151 | 0 | Connection* const _this = this; |
1152 | 0 | (void)_this; |
1153 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
1154 | 0 | from._internal_metadata_); |
1155 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
1156 | 0 | ::uint32_t cached_has_bits = _impl_._has_bits_[0]; |
1157 | 0 | _impl_.backpressure_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::BackpressureConfig>( |
1158 | 0 | arena, *from._impl_.backpressure_) |
1159 | 0 | : nullptr; |
1160 | 0 | _impl_.manual_probes_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::WsManualProbes>( |
1161 | 0 | arena, *from._impl_.manual_probes_) |
1162 | 0 | : nullptr; |
1163 | | |
1164 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.Connection) |
1165 | 0 | } |
1166 | | inline PROTOBUF_NDEBUG_INLINE Connection::Impl_::Impl_( |
1167 | | ::google::protobuf::internal::InternalVisibility visibility, |
1168 | | ::google::protobuf::Arena* arena) |
1169 | 0 | : _cached_size_{0}, |
1170 | 0 | on_readable_{visibility, arena}, |
1171 | 0 | server_frames_{visibility, arena}, |
1172 | 0 | initial_response_(arena) {} |
1173 | | |
1174 | 0 | inline void Connection::SharedCtor(::_pb::Arena* arena) { |
1175 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
1176 | 0 | ::memset(reinterpret_cast<char *>(&_impl_) + |
1177 | 0 | offsetof(Impl_, backpressure_), |
1178 | 0 | 0, |
1179 | 0 | offsetof(Impl_, manual_probes_) - |
1180 | 0 | offsetof(Impl_, backpressure_) + |
1181 | 0 | sizeof(Impl_::manual_probes_)); |
1182 | 0 | } |
1183 | 2.40k | Connection::~Connection() { |
1184 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.Connection) |
1185 | 2.40k | SharedDtor(*this); |
1186 | 2.40k | } |
1187 | 2.40k | inline void Connection::SharedDtor(MessageLite& self) { |
1188 | 2.40k | Connection& this_ = static_cast<Connection&>(self); |
1189 | 2.40k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
1190 | 2.40k | ABSL_DCHECK(this_.GetArena() == nullptr); |
1191 | 2.40k | this_._impl_.initial_response_.Destroy(); |
1192 | 2.40k | delete this_._impl_.backpressure_; |
1193 | 2.40k | delete this_._impl_.manual_probes_; |
1194 | 2.40k | this_._impl_.~Impl_(); |
1195 | 2.40k | } |
1196 | | |
1197 | | inline void* Connection::PlacementNew_(const void*, void* mem, |
1198 | 0 | ::google::protobuf::Arena* arena) { |
1199 | 0 | return ::new (mem) Connection(arena); |
1200 | 0 | } |
1201 | 0 | constexpr auto Connection::InternalNewImpl_() { |
1202 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
1203 | 0 | PROTOBUF_FIELD_OFFSET(Connection, _impl_.on_readable_) + |
1204 | 0 | decltype(Connection::_impl_.on_readable_):: |
1205 | 0 | InternalGetArenaOffset( |
1206 | 0 | ::google::protobuf::Message::internal_visibility()), |
1207 | 0 | PROTOBUF_FIELD_OFFSET(Connection, _impl_.server_frames_) + |
1208 | 0 | decltype(Connection::_impl_.server_frames_):: |
1209 | 0 | InternalGetArenaOffset( |
1210 | 0 | ::google::protobuf::Message::internal_visibility()), |
1211 | 0 | }); |
1212 | 0 | if (arena_bits.has_value()) { |
1213 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit( |
1214 | 0 | sizeof(Connection), alignof(Connection), *arena_bits); |
1215 | 0 | } else { |
1216 | 0 | return ::google::protobuf::internal::MessageCreator(&Connection::PlacementNew_, |
1217 | 0 | sizeof(Connection), |
1218 | 0 | alignof(Connection)); |
1219 | 0 | } |
1220 | 0 | } |
1221 | | PROTOBUF_CONSTINIT |
1222 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1223 | | const ::google::protobuf::internal::ClassDataFull Connection::_class_data_ = { |
1224 | | ::google::protobuf::internal::ClassData{ |
1225 | | &_Connection_default_instance_._instance, |
1226 | | &_table_.header, |
1227 | | nullptr, // OnDemandRegisterArenaDtor |
1228 | | nullptr, // IsInitialized |
1229 | | &Connection::MergeImpl, |
1230 | | ::google::protobuf::Message::GetNewImpl<Connection>(), |
1231 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1232 | | &Connection::SharedDtor, |
1233 | | ::google::protobuf::Message::GetClearImpl<Connection>(), &Connection::ByteSizeLong, |
1234 | | &Connection::_InternalSerialize, |
1235 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1236 | | PROTOBUF_FIELD_OFFSET(Connection, _impl_._cached_size_), |
1237 | | false, |
1238 | | }, |
1239 | | &Connection::kDescriptorMethods, |
1240 | | &descriptor_table_curl_5ffuzzer_2eproto, |
1241 | | nullptr, // tracker |
1242 | | }; |
1243 | 14.1k | const ::google::protobuf::internal::ClassData* Connection::GetClassData() const { |
1244 | 14.1k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
1245 | 14.1k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
1246 | 14.1k | return _class_data_.base(); |
1247 | 14.1k | } |
1248 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1249 | | const ::_pbi::TcParseTable<3, 5, 3, 0, 2> Connection::_table_ = { |
1250 | | { |
1251 | | PROTOBUF_FIELD_OFFSET(Connection, _impl_._has_bits_), |
1252 | | 0, // no _extensions_ |
1253 | | 5, 56, // max_field_number, fast_idx_mask |
1254 | | offsetof(decltype(_table_), field_lookup_table), |
1255 | | 4294967264, // skipmap |
1256 | | offsetof(decltype(_table_), field_entries), |
1257 | | 5, // num_field_entries |
1258 | | 3, // num_aux_entries |
1259 | | offsetof(decltype(_table_), aux_entries), |
1260 | | _class_data_.base(), |
1261 | | nullptr, // post_loop_handler |
1262 | | ::_pbi::TcParser::GenericFallback, // fallback |
1263 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
1264 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::Connection>(), // to_prefetch |
1265 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
1266 | | }, {{ |
1267 | | {::_pbi::TcParser::MiniParse, {}}, |
1268 | | // bytes initial_response = 1; |
1269 | | {::_pbi::TcParser::FastBS1, |
1270 | | {10, 63, 0, PROTOBUF_FIELD_OFFSET(Connection, _impl_.initial_response_)}}, |
1271 | | // repeated bytes on_readable = 2; |
1272 | | {::_pbi::TcParser::FastBR1, |
1273 | | {18, 63, 0, PROTOBUF_FIELD_OFFSET(Connection, _impl_.on_readable_)}}, |
1274 | | // repeated .curl.fuzzer.proto.WebSocketFrame server_frames = 3; |
1275 | | {::_pbi::TcParser::FastMtR1, |
1276 | | {26, 63, 0, PROTOBUF_FIELD_OFFSET(Connection, _impl_.server_frames_)}}, |
1277 | | // .curl.fuzzer.proto.BackpressureConfig backpressure = 4; |
1278 | | {::_pbi::TcParser::FastMtS1, |
1279 | | {34, 0, 1, PROTOBUF_FIELD_OFFSET(Connection, _impl_.backpressure_)}}, |
1280 | | // .curl.fuzzer.proto.WsManualProbes manual_probes = 5; |
1281 | | {::_pbi::TcParser::FastMtS1, |
1282 | | {42, 1, 2, PROTOBUF_FIELD_OFFSET(Connection, _impl_.manual_probes_)}}, |
1283 | | {::_pbi::TcParser::MiniParse, {}}, |
1284 | | {::_pbi::TcParser::MiniParse, {}}, |
1285 | | }}, {{ |
1286 | | 65535, 65535 |
1287 | | }}, {{ |
1288 | | // bytes initial_response = 1; |
1289 | | {PROTOBUF_FIELD_OFFSET(Connection, _impl_.initial_response_), -1, 0, |
1290 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
1291 | | // repeated bytes on_readable = 2; |
1292 | | {PROTOBUF_FIELD_OFFSET(Connection, _impl_.on_readable_), -1, 0, |
1293 | | (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)}, |
1294 | | // repeated .curl.fuzzer.proto.WebSocketFrame server_frames = 3; |
1295 | | {PROTOBUF_FIELD_OFFSET(Connection, _impl_.server_frames_), -1, 0, |
1296 | | (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
1297 | | // .curl.fuzzer.proto.BackpressureConfig backpressure = 4; |
1298 | | {PROTOBUF_FIELD_OFFSET(Connection, _impl_.backpressure_), _Internal::kHasBitsOffset + 0, 1, |
1299 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
1300 | | // .curl.fuzzer.proto.WsManualProbes manual_probes = 5; |
1301 | | {PROTOBUF_FIELD_OFFSET(Connection, _impl_.manual_probes_), _Internal::kHasBitsOffset + 1, 2, |
1302 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
1303 | | }}, {{ |
1304 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::WebSocketFrame>()}, |
1305 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::BackpressureConfig>()}, |
1306 | | {::_pbi::TcParser::GetTable<::curl::fuzzer::proto::WsManualProbes>()}, |
1307 | | }}, {{ |
1308 | | }}, |
1309 | | }; |
1310 | | |
1311 | 51 | PROTOBUF_NOINLINE void Connection::Clear() { |
1312 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.Connection) |
1313 | 51 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1314 | 51 | ::uint32_t cached_has_bits = 0; |
1315 | | // Prevent compiler warnings about cached_has_bits being unused |
1316 | 51 | (void) cached_has_bits; |
1317 | | |
1318 | 51 | _impl_.on_readable_.Clear(); |
1319 | 51 | _impl_.server_frames_.Clear(); |
1320 | 51 | _impl_.initial_response_.ClearToEmpty(); |
1321 | 51 | cached_has_bits = _impl_._has_bits_[0]; |
1322 | 51 | if (cached_has_bits & 0x00000003u) { |
1323 | 9 | if (cached_has_bits & 0x00000001u) { |
1324 | 8 | ABSL_DCHECK(_impl_.backpressure_ != nullptr); |
1325 | 8 | _impl_.backpressure_->Clear(); |
1326 | 8 | } |
1327 | 9 | if (cached_has_bits & 0x00000002u) { |
1328 | 1 | ABSL_DCHECK(_impl_.manual_probes_ != nullptr); |
1329 | 1 | _impl_.manual_probes_->Clear(); |
1330 | 1 | } |
1331 | 9 | } |
1332 | 51 | _impl_._has_bits_.Clear(); |
1333 | 51 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
1334 | 51 | } |
1335 | | |
1336 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1337 | | ::uint8_t* Connection::_InternalSerialize( |
1338 | | const MessageLite& base, ::uint8_t* target, |
1339 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
1340 | | const Connection& this_ = static_cast<const Connection&>(base); |
1341 | | #else // PROTOBUF_CUSTOM_VTABLE |
1342 | | ::uint8_t* Connection::_InternalSerialize( |
1343 | | ::uint8_t* target, |
1344 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1345 | 0 | const Connection& this_ = *this; |
1346 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1347 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.Connection) |
1348 | 0 | ::uint32_t cached_has_bits = 0; |
1349 | 0 | (void)cached_has_bits; |
1350 | | |
1351 | | // bytes initial_response = 1; |
1352 | 0 | if (!this_._internal_initial_response().empty()) { |
1353 | 0 | const std::string& _s = this_._internal_initial_response(); |
1354 | 0 | target = stream->WriteBytesMaybeAliased(1, _s, target); |
1355 | 0 | } |
1356 | | |
1357 | | // repeated bytes on_readable = 2; |
1358 | 0 | for (int i = 0, n = this_._internal_on_readable_size(); i < n; ++i) { |
1359 | 0 | const auto& s = this_._internal_on_readable().Get(i); |
1360 | 0 | target = stream->WriteBytes(2, s, target); |
1361 | 0 | } |
1362 | | |
1363 | | // repeated .curl.fuzzer.proto.WebSocketFrame server_frames = 3; |
1364 | 0 | for (unsigned i = 0, n = static_cast<unsigned>( |
1365 | 0 | this_._internal_server_frames_size()); |
1366 | 0 | i < n; i++) { |
1367 | 0 | const auto& repfield = this_._internal_server_frames().Get(i); |
1368 | 0 | target = |
1369 | 0 | ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
1370 | 0 | 3, repfield, repfield.GetCachedSize(), |
1371 | 0 | target, stream); |
1372 | 0 | } |
1373 | |
|
1374 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
1375 | | // .curl.fuzzer.proto.BackpressureConfig backpressure = 4; |
1376 | 0 | if (cached_has_bits & 0x00000001u) { |
1377 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
1378 | 0 | 4, *this_._impl_.backpressure_, this_._impl_.backpressure_->GetCachedSize(), target, |
1379 | 0 | stream); |
1380 | 0 | } |
1381 | | |
1382 | | // .curl.fuzzer.proto.WsManualProbes manual_probes = 5; |
1383 | 0 | if (cached_has_bits & 0x00000002u) { |
1384 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
1385 | 0 | 5, *this_._impl_.manual_probes_, this_._impl_.manual_probes_->GetCachedSize(), target, |
1386 | 0 | stream); |
1387 | 0 | } |
1388 | |
|
1389 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
1390 | 0 | target = |
1391 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1392 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
1393 | 0 | } |
1394 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.Connection) |
1395 | 0 | return target; |
1396 | 0 | } |
1397 | | |
1398 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1399 | | ::size_t Connection::ByteSizeLong(const MessageLite& base) { |
1400 | | const Connection& this_ = static_cast<const Connection&>(base); |
1401 | | #else // PROTOBUF_CUSTOM_VTABLE |
1402 | 0 | ::size_t Connection::ByteSizeLong() const { |
1403 | 0 | const Connection& this_ = *this; |
1404 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1405 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.Connection) |
1406 | 0 | ::size_t total_size = 0; |
1407 | |
|
1408 | 0 | ::uint32_t cached_has_bits = 0; |
1409 | | // Prevent compiler warnings about cached_has_bits being unused |
1410 | 0 | (void)cached_has_bits; |
1411 | |
|
1412 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
1413 | 0 | { |
1414 | | // repeated bytes on_readable = 2; |
1415 | 0 | { |
1416 | 0 | total_size += |
1417 | 0 | 1 * ::google::protobuf::internal::FromIntSize(this_._internal_on_readable().size()); |
1418 | 0 | for (int i = 0, n = this_._internal_on_readable().size(); i < n; ++i) { |
1419 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
1420 | 0 | this_._internal_on_readable().Get(i)); |
1421 | 0 | } |
1422 | 0 | } |
1423 | | // repeated .curl.fuzzer.proto.WebSocketFrame server_frames = 3; |
1424 | 0 | { |
1425 | 0 | total_size += 1UL * this_._internal_server_frames_size(); |
1426 | 0 | for (const auto& msg : this_._internal_server_frames()) { |
1427 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); |
1428 | 0 | } |
1429 | 0 | } |
1430 | 0 | } |
1431 | 0 | { |
1432 | | // bytes initial_response = 1; |
1433 | 0 | if (!this_._internal_initial_response().empty()) { |
1434 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
1435 | 0 | this_._internal_initial_response()); |
1436 | 0 | } |
1437 | 0 | } |
1438 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
1439 | 0 | if (cached_has_bits & 0x00000003u) { |
1440 | | // .curl.fuzzer.proto.BackpressureConfig backpressure = 4; |
1441 | 0 | if (cached_has_bits & 0x00000001u) { |
1442 | 0 | total_size += 1 + |
1443 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.backpressure_); |
1444 | 0 | } |
1445 | | // .curl.fuzzer.proto.WsManualProbes manual_probes = 5; |
1446 | 0 | if (cached_has_bits & 0x00000002u) { |
1447 | 0 | total_size += 1 + |
1448 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.manual_probes_); |
1449 | 0 | } |
1450 | 0 | } |
1451 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
1452 | 0 | &this_._impl_._cached_size_); |
1453 | 0 | } |
1454 | | |
1455 | 0 | void Connection::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
1456 | 0 | auto* const _this = static_cast<Connection*>(&to_msg); |
1457 | 0 | auto& from = static_cast<const Connection&>(from_msg); |
1458 | 0 | ::google::protobuf::Arena* arena = _this->GetArena(); |
1459 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.Connection) |
1460 | 0 | ABSL_DCHECK_NE(&from, _this); |
1461 | 0 | ::uint32_t cached_has_bits = 0; |
1462 | 0 | (void) cached_has_bits; |
1463 | |
|
1464 | 0 | _this->_internal_mutable_on_readable()->MergeFrom(from._internal_on_readable()); |
1465 | 0 | _this->_internal_mutable_server_frames()->MergeFrom( |
1466 | 0 | from._internal_server_frames()); |
1467 | 0 | if (!from._internal_initial_response().empty()) { |
1468 | 0 | _this->_internal_set_initial_response(from._internal_initial_response()); |
1469 | 0 | } |
1470 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
1471 | 0 | if (cached_has_bits & 0x00000003u) { |
1472 | 0 | if (cached_has_bits & 0x00000001u) { |
1473 | 0 | ABSL_DCHECK(from._impl_.backpressure_ != nullptr); |
1474 | 0 | if (_this->_impl_.backpressure_ == nullptr) { |
1475 | 0 | _this->_impl_.backpressure_ = |
1476 | 0 | ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::BackpressureConfig>(arena, *from._impl_.backpressure_); |
1477 | 0 | } else { |
1478 | 0 | _this->_impl_.backpressure_->MergeFrom(*from._impl_.backpressure_); |
1479 | 0 | } |
1480 | 0 | } |
1481 | 0 | if (cached_has_bits & 0x00000002u) { |
1482 | 0 | ABSL_DCHECK(from._impl_.manual_probes_ != nullptr); |
1483 | 0 | if (_this->_impl_.manual_probes_ == nullptr) { |
1484 | 0 | _this->_impl_.manual_probes_ = |
1485 | 0 | ::google::protobuf::Message::CopyConstruct<::curl::fuzzer::proto::WsManualProbes>(arena, *from._impl_.manual_probes_); |
1486 | 0 | } else { |
1487 | 0 | _this->_impl_.manual_probes_->MergeFrom(*from._impl_.manual_probes_); |
1488 | 0 | } |
1489 | 0 | } |
1490 | 0 | } |
1491 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
1492 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
1493 | 0 | } |
1494 | | |
1495 | 0 | void Connection::CopyFrom(const Connection& from) { |
1496 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.Connection) |
1497 | 0 | if (&from == this) return; |
1498 | 0 | Clear(); |
1499 | 0 | MergeFrom(from); |
1500 | 0 | } |
1501 | | |
1502 | | |
1503 | 0 | void Connection::InternalSwap(Connection* PROTOBUF_RESTRICT other) { |
1504 | 0 | using std::swap; |
1505 | 0 | auto* arena = GetArena(); |
1506 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
1507 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1508 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
1509 | 0 | _impl_.on_readable_.InternalSwap(&other->_impl_.on_readable_); |
1510 | 0 | _impl_.server_frames_.InternalSwap(&other->_impl_.server_frames_); |
1511 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.initial_response_, &other->_impl_.initial_response_, arena); |
1512 | 0 | ::google::protobuf::internal::memswap< |
1513 | 0 | PROTOBUF_FIELD_OFFSET(Connection, _impl_.manual_probes_) |
1514 | 0 | + sizeof(Connection::_impl_.manual_probes_) |
1515 | 0 | - PROTOBUF_FIELD_OFFSET(Connection, _impl_.backpressure_)>( |
1516 | 0 | reinterpret_cast<char*>(&_impl_.backpressure_), |
1517 | 0 | reinterpret_cast<char*>(&other->_impl_.backpressure_)); |
1518 | 0 | } |
1519 | | |
1520 | 0 | ::google::protobuf::Metadata Connection::GetMetadata() const { |
1521 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
1522 | 0 | } |
1523 | | // =================================================================== |
1524 | | |
1525 | | class WsManualProbes::_Internal { |
1526 | | public: |
1527 | | }; |
1528 | | |
1529 | | WsManualProbes::WsManualProbes(::google::protobuf::Arena* arena) |
1530 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1531 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1532 | | #else // PROTOBUF_CUSTOM_VTABLE |
1533 | 0 | : ::google::protobuf::Message(arena) { |
1534 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1535 | 0 | SharedCtor(arena); |
1536 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.WsManualProbes) |
1537 | 0 | } |
1538 | | WsManualProbes::WsManualProbes( |
1539 | | ::google::protobuf::Arena* arena, const WsManualProbes& from) |
1540 | 0 | : WsManualProbes(arena) { |
1541 | 0 | MergeFrom(from); |
1542 | 0 | } |
1543 | | inline PROTOBUF_NDEBUG_INLINE WsManualProbes::Impl_::Impl_( |
1544 | | ::google::protobuf::internal::InternalVisibility visibility, |
1545 | | ::google::protobuf::Arena* arena) |
1546 | 0 | : _cached_size_{0} {} |
1547 | | |
1548 | 0 | inline void WsManualProbes::SharedCtor(::_pb::Arena* arena) { |
1549 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
1550 | 0 | ::memset(reinterpret_cast<char *>(&_impl_) + |
1551 | 0 | offsetof(Impl_, flag_matrix_), |
1552 | 0 | 0, |
1553 | 0 | offsetof(Impl_, raw_send_) - |
1554 | 0 | offsetof(Impl_, flag_matrix_) + |
1555 | 0 | sizeof(Impl_::raw_send_)); |
1556 | 0 | } |
1557 | 4 | WsManualProbes::~WsManualProbes() { |
1558 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.WsManualProbes) |
1559 | 4 | SharedDtor(*this); |
1560 | 4 | } |
1561 | 4 | inline void WsManualProbes::SharedDtor(MessageLite& self) { |
1562 | 4 | WsManualProbes& this_ = static_cast<WsManualProbes&>(self); |
1563 | 4 | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
1564 | 4 | ABSL_DCHECK(this_.GetArena() == nullptr); |
1565 | 4 | this_._impl_.~Impl_(); |
1566 | 4 | } |
1567 | | |
1568 | | inline void* WsManualProbes::PlacementNew_(const void*, void* mem, |
1569 | 0 | ::google::protobuf::Arena* arena) { |
1570 | 0 | return ::new (mem) WsManualProbes(arena); |
1571 | 0 | } |
1572 | 0 | constexpr auto WsManualProbes::InternalNewImpl_() { |
1573 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(WsManualProbes), |
1574 | 0 | alignof(WsManualProbes)); |
1575 | 0 | } |
1576 | | PROTOBUF_CONSTINIT |
1577 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1578 | | const ::google::protobuf::internal::ClassDataFull WsManualProbes::_class_data_ = { |
1579 | | ::google::protobuf::internal::ClassData{ |
1580 | | &_WsManualProbes_default_instance_._instance, |
1581 | | &_table_.header, |
1582 | | nullptr, // OnDemandRegisterArenaDtor |
1583 | | nullptr, // IsInitialized |
1584 | | &WsManualProbes::MergeImpl, |
1585 | | ::google::protobuf::Message::GetNewImpl<WsManualProbes>(), |
1586 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1587 | | &WsManualProbes::SharedDtor, |
1588 | | ::google::protobuf::Message::GetClearImpl<WsManualProbes>(), &WsManualProbes::ByteSizeLong, |
1589 | | &WsManualProbes::_InternalSerialize, |
1590 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1591 | | PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_._cached_size_), |
1592 | | false, |
1593 | | }, |
1594 | | &WsManualProbes::kDescriptorMethods, |
1595 | | &descriptor_table_curl_5ffuzzer_2eproto, |
1596 | | nullptr, // tracker |
1597 | | }; |
1598 | 19 | const ::google::protobuf::internal::ClassData* WsManualProbes::GetClassData() const { |
1599 | 19 | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
1600 | 19 | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
1601 | 19 | return _class_data_.base(); |
1602 | 19 | } |
1603 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1604 | | const ::_pbi::TcParseTable<2, 3, 0, 0, 2> WsManualProbes::_table_ = { |
1605 | | { |
1606 | | 0, // no _has_bits_ |
1607 | | 0, // no _extensions_ |
1608 | | 3, 24, // max_field_number, fast_idx_mask |
1609 | | offsetof(decltype(_table_), field_lookup_table), |
1610 | | 4294967288, // skipmap |
1611 | | offsetof(decltype(_table_), field_entries), |
1612 | | 3, // num_field_entries |
1613 | | 0, // num_aux_entries |
1614 | | offsetof(decltype(_table_), field_names), // no aux_entries |
1615 | | _class_data_.base(), |
1616 | | nullptr, // post_loop_handler |
1617 | | ::_pbi::TcParser::GenericFallback, // fallback |
1618 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
1619 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::WsManualProbes>(), // to_prefetch |
1620 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
1621 | | }, {{ |
1622 | | {::_pbi::TcParser::MiniParse, {}}, |
1623 | | // bool flag_matrix = 1; |
1624 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WsManualProbes, _impl_.flag_matrix_), 63>(), |
1625 | | {8, 63, 0, PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.flag_matrix_)}}, |
1626 | | // bool unaligned_send = 2; |
1627 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WsManualProbes, _impl_.unaligned_send_), 63>(), |
1628 | | {16, 63, 0, PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.unaligned_send_)}}, |
1629 | | // bool raw_send = 3; |
1630 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WsManualProbes, _impl_.raw_send_), 63>(), |
1631 | | {24, 63, 0, PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.raw_send_)}}, |
1632 | | }}, {{ |
1633 | | 65535, 65535 |
1634 | | }}, {{ |
1635 | | // bool flag_matrix = 1; |
1636 | | {PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.flag_matrix_), 0, 0, |
1637 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
1638 | | // bool unaligned_send = 2; |
1639 | | {PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.unaligned_send_), 0, 0, |
1640 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
1641 | | // bool raw_send = 3; |
1642 | | {PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.raw_send_), 0, 0, |
1643 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
1644 | | }}, |
1645 | | // no aux_entries |
1646 | | {{ |
1647 | | }}, |
1648 | | }; |
1649 | | |
1650 | 1 | PROTOBUF_NOINLINE void WsManualProbes::Clear() { |
1651 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.WsManualProbes) |
1652 | 1 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1653 | 1 | ::uint32_t cached_has_bits = 0; |
1654 | | // Prevent compiler warnings about cached_has_bits being unused |
1655 | 1 | (void) cached_has_bits; |
1656 | | |
1657 | 1 | ::memset(&_impl_.flag_matrix_, 0, static_cast<::size_t>( |
1658 | 1 | reinterpret_cast<char*>(&_impl_.raw_send_) - |
1659 | 1 | reinterpret_cast<char*>(&_impl_.flag_matrix_)) + sizeof(_impl_.raw_send_)); |
1660 | 1 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
1661 | 1 | } |
1662 | | |
1663 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1664 | | ::uint8_t* WsManualProbes::_InternalSerialize( |
1665 | | const MessageLite& base, ::uint8_t* target, |
1666 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
1667 | | const WsManualProbes& this_ = static_cast<const WsManualProbes&>(base); |
1668 | | #else // PROTOBUF_CUSTOM_VTABLE |
1669 | | ::uint8_t* WsManualProbes::_InternalSerialize( |
1670 | | ::uint8_t* target, |
1671 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1672 | 0 | const WsManualProbes& this_ = *this; |
1673 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1674 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.WsManualProbes) |
1675 | 0 | ::uint32_t cached_has_bits = 0; |
1676 | 0 | (void)cached_has_bits; |
1677 | | |
1678 | | // bool flag_matrix = 1; |
1679 | 0 | if (this_._internal_flag_matrix() != 0) { |
1680 | 0 | target = stream->EnsureSpace(target); |
1681 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
1682 | 0 | 1, this_._internal_flag_matrix(), target); |
1683 | 0 | } |
1684 | | |
1685 | | // bool unaligned_send = 2; |
1686 | 0 | if (this_._internal_unaligned_send() != 0) { |
1687 | 0 | target = stream->EnsureSpace(target); |
1688 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
1689 | 0 | 2, this_._internal_unaligned_send(), target); |
1690 | 0 | } |
1691 | | |
1692 | | // bool raw_send = 3; |
1693 | 0 | if (this_._internal_raw_send() != 0) { |
1694 | 0 | target = stream->EnsureSpace(target); |
1695 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
1696 | 0 | 3, this_._internal_raw_send(), target); |
1697 | 0 | } |
1698 | |
|
1699 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
1700 | 0 | target = |
1701 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1702 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
1703 | 0 | } |
1704 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.WsManualProbes) |
1705 | 0 | return target; |
1706 | 0 | } |
1707 | | |
1708 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1709 | | ::size_t WsManualProbes::ByteSizeLong(const MessageLite& base) { |
1710 | | const WsManualProbes& this_ = static_cast<const WsManualProbes&>(base); |
1711 | | #else // PROTOBUF_CUSTOM_VTABLE |
1712 | 0 | ::size_t WsManualProbes::ByteSizeLong() const { |
1713 | 0 | const WsManualProbes& this_ = *this; |
1714 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1715 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.WsManualProbes) |
1716 | 0 | ::size_t total_size = 0; |
1717 | |
|
1718 | 0 | ::uint32_t cached_has_bits = 0; |
1719 | | // Prevent compiler warnings about cached_has_bits being unused |
1720 | 0 | (void)cached_has_bits; |
1721 | |
|
1722 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
1723 | 0 | { |
1724 | | // bool flag_matrix = 1; |
1725 | 0 | if (this_._internal_flag_matrix() != 0) { |
1726 | 0 | total_size += 2; |
1727 | 0 | } |
1728 | | // bool unaligned_send = 2; |
1729 | 0 | if (this_._internal_unaligned_send() != 0) { |
1730 | 0 | total_size += 2; |
1731 | 0 | } |
1732 | | // bool raw_send = 3; |
1733 | 0 | if (this_._internal_raw_send() != 0) { |
1734 | 0 | total_size += 2; |
1735 | 0 | } |
1736 | 0 | } |
1737 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
1738 | 0 | &this_._impl_._cached_size_); |
1739 | 0 | } |
1740 | | |
1741 | 0 | void WsManualProbes::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
1742 | 0 | auto* const _this = static_cast<WsManualProbes*>(&to_msg); |
1743 | 0 | auto& from = static_cast<const WsManualProbes&>(from_msg); |
1744 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.WsManualProbes) |
1745 | 0 | ABSL_DCHECK_NE(&from, _this); |
1746 | 0 | ::uint32_t cached_has_bits = 0; |
1747 | 0 | (void) cached_has_bits; |
1748 | |
|
1749 | 0 | if (from._internal_flag_matrix() != 0) { |
1750 | 0 | _this->_impl_.flag_matrix_ = from._impl_.flag_matrix_; |
1751 | 0 | } |
1752 | 0 | if (from._internal_unaligned_send() != 0) { |
1753 | 0 | _this->_impl_.unaligned_send_ = from._impl_.unaligned_send_; |
1754 | 0 | } |
1755 | 0 | if (from._internal_raw_send() != 0) { |
1756 | 0 | _this->_impl_.raw_send_ = from._impl_.raw_send_; |
1757 | 0 | } |
1758 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
1759 | 0 | } |
1760 | | |
1761 | 0 | void WsManualProbes::CopyFrom(const WsManualProbes& from) { |
1762 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.WsManualProbes) |
1763 | 0 | if (&from == this) return; |
1764 | 0 | Clear(); |
1765 | 0 | MergeFrom(from); |
1766 | 0 | } |
1767 | | |
1768 | | |
1769 | 0 | void WsManualProbes::InternalSwap(WsManualProbes* PROTOBUF_RESTRICT other) { |
1770 | 0 | using std::swap; |
1771 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1772 | 0 | ::google::protobuf::internal::memswap< |
1773 | 0 | PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.raw_send_) |
1774 | 0 | + sizeof(WsManualProbes::_impl_.raw_send_) |
1775 | 0 | - PROTOBUF_FIELD_OFFSET(WsManualProbes, _impl_.flag_matrix_)>( |
1776 | 0 | reinterpret_cast<char*>(&_impl_.flag_matrix_), |
1777 | 0 | reinterpret_cast<char*>(&other->_impl_.flag_matrix_)); |
1778 | 0 | } |
1779 | | |
1780 | 0 | ::google::protobuf::Metadata WsManualProbes::GetMetadata() const { |
1781 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
1782 | 0 | } |
1783 | | // =================================================================== |
1784 | | |
1785 | | class BackpressureConfig::_Internal { |
1786 | | public: |
1787 | | }; |
1788 | | |
1789 | | BackpressureConfig::BackpressureConfig(::google::protobuf::Arena* arena) |
1790 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1791 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1792 | | #else // PROTOBUF_CUSTOM_VTABLE |
1793 | 0 | : ::google::protobuf::Message(arena) { |
1794 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1795 | 0 | SharedCtor(arena); |
1796 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.BackpressureConfig) |
1797 | 0 | } |
1798 | | BackpressureConfig::BackpressureConfig( |
1799 | | ::google::protobuf::Arena* arena, const BackpressureConfig& from) |
1800 | 0 | : BackpressureConfig(arena) { |
1801 | 0 | MergeFrom(from); |
1802 | 0 | } |
1803 | | inline PROTOBUF_NDEBUG_INLINE BackpressureConfig::Impl_::Impl_( |
1804 | | ::google::protobuf::internal::InternalVisibility visibility, |
1805 | | ::google::protobuf::Arena* arena) |
1806 | 0 | : _cached_size_{0} {} |
1807 | | |
1808 | 0 | inline void BackpressureConfig::SharedCtor(::_pb::Arena* arena) { |
1809 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
1810 | 0 | ::memset(reinterpret_cast<char *>(&_impl_) + |
1811 | 0 | offsetof(Impl_, recv_buf_bytes_), |
1812 | 0 | 0, |
1813 | 0 | offsetof(Impl_, drain_limit_) - |
1814 | 0 | offsetof(Impl_, recv_buf_bytes_) + |
1815 | 0 | sizeof(Impl_::drain_limit_)); |
1816 | 0 | } |
1817 | 19 | BackpressureConfig::~BackpressureConfig() { |
1818 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.BackpressureConfig) |
1819 | 19 | SharedDtor(*this); |
1820 | 19 | } |
1821 | 19 | inline void BackpressureConfig::SharedDtor(MessageLite& self) { |
1822 | 19 | BackpressureConfig& this_ = static_cast<BackpressureConfig&>(self); |
1823 | 19 | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
1824 | 19 | ABSL_DCHECK(this_.GetArena() == nullptr); |
1825 | 19 | this_._impl_.~Impl_(); |
1826 | 19 | } |
1827 | | |
1828 | | inline void* BackpressureConfig::PlacementNew_(const void*, void* mem, |
1829 | 0 | ::google::protobuf::Arena* arena) { |
1830 | 0 | return ::new (mem) BackpressureConfig(arena); |
1831 | 0 | } |
1832 | 0 | constexpr auto BackpressureConfig::InternalNewImpl_() { |
1833 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(BackpressureConfig), |
1834 | 0 | alignof(BackpressureConfig)); |
1835 | 0 | } |
1836 | | PROTOBUF_CONSTINIT |
1837 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1838 | | const ::google::protobuf::internal::ClassDataFull BackpressureConfig::_class_data_ = { |
1839 | | ::google::protobuf::internal::ClassData{ |
1840 | | &_BackpressureConfig_default_instance_._instance, |
1841 | | &_table_.header, |
1842 | | nullptr, // OnDemandRegisterArenaDtor |
1843 | | nullptr, // IsInitialized |
1844 | | &BackpressureConfig::MergeImpl, |
1845 | | ::google::protobuf::Message::GetNewImpl<BackpressureConfig>(), |
1846 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1847 | | &BackpressureConfig::SharedDtor, |
1848 | | ::google::protobuf::Message::GetClearImpl<BackpressureConfig>(), &BackpressureConfig::ByteSizeLong, |
1849 | | &BackpressureConfig::_InternalSerialize, |
1850 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1851 | | PROTOBUF_FIELD_OFFSET(BackpressureConfig, _impl_._cached_size_), |
1852 | | false, |
1853 | | }, |
1854 | | &BackpressureConfig::kDescriptorMethods, |
1855 | | &descriptor_table_curl_5ffuzzer_2eproto, |
1856 | | nullptr, // tracker |
1857 | | }; |
1858 | 67 | const ::google::protobuf::internal::ClassData* BackpressureConfig::GetClassData() const { |
1859 | 67 | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
1860 | 67 | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
1861 | 67 | return _class_data_.base(); |
1862 | 67 | } |
1863 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1864 | | const ::_pbi::TcParseTable<1, 2, 0, 0, 2> BackpressureConfig::_table_ = { |
1865 | | { |
1866 | | 0, // no _has_bits_ |
1867 | | 0, // no _extensions_ |
1868 | | 2, 8, // max_field_number, fast_idx_mask |
1869 | | offsetof(decltype(_table_), field_lookup_table), |
1870 | | 4294967292, // skipmap |
1871 | | offsetof(decltype(_table_), field_entries), |
1872 | | 2, // num_field_entries |
1873 | | 0, // num_aux_entries |
1874 | | offsetof(decltype(_table_), field_names), // no aux_entries |
1875 | | _class_data_.base(), |
1876 | | nullptr, // post_loop_handler |
1877 | | ::_pbi::TcParser::GenericFallback, // fallback |
1878 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
1879 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::BackpressureConfig>(), // to_prefetch |
1880 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
1881 | | }, {{ |
1882 | | // uint32 drain_limit = 2; |
1883 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(BackpressureConfig, _impl_.drain_limit_), 63>(), |
1884 | | {16, 63, 0, PROTOBUF_FIELD_OFFSET(BackpressureConfig, _impl_.drain_limit_)}}, |
1885 | | // uint32 recv_buf_bytes = 1; |
1886 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(BackpressureConfig, _impl_.recv_buf_bytes_), 63>(), |
1887 | | {8, 63, 0, PROTOBUF_FIELD_OFFSET(BackpressureConfig, _impl_.recv_buf_bytes_)}}, |
1888 | | }}, {{ |
1889 | | 65535, 65535 |
1890 | | }}, {{ |
1891 | | // uint32 recv_buf_bytes = 1; |
1892 | | {PROTOBUF_FIELD_OFFSET(BackpressureConfig, _impl_.recv_buf_bytes_), 0, 0, |
1893 | | (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, |
1894 | | // uint32 drain_limit = 2; |
1895 | | {PROTOBUF_FIELD_OFFSET(BackpressureConfig, _impl_.drain_limit_), 0, 0, |
1896 | | (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, |
1897 | | }}, |
1898 | | // no aux_entries |
1899 | | {{ |
1900 | | }}, |
1901 | | }; |
1902 | | |
1903 | 8 | PROTOBUF_NOINLINE void BackpressureConfig::Clear() { |
1904 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.BackpressureConfig) |
1905 | 8 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1906 | 8 | ::uint32_t cached_has_bits = 0; |
1907 | | // Prevent compiler warnings about cached_has_bits being unused |
1908 | 8 | (void) cached_has_bits; |
1909 | | |
1910 | 8 | ::memset(&_impl_.recv_buf_bytes_, 0, static_cast<::size_t>( |
1911 | 8 | reinterpret_cast<char*>(&_impl_.drain_limit_) - |
1912 | 8 | reinterpret_cast<char*>(&_impl_.recv_buf_bytes_)) + sizeof(_impl_.drain_limit_)); |
1913 | 8 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
1914 | 8 | } |
1915 | | |
1916 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1917 | | ::uint8_t* BackpressureConfig::_InternalSerialize( |
1918 | | const MessageLite& base, ::uint8_t* target, |
1919 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
1920 | | const BackpressureConfig& this_ = static_cast<const BackpressureConfig&>(base); |
1921 | | #else // PROTOBUF_CUSTOM_VTABLE |
1922 | | ::uint8_t* BackpressureConfig::_InternalSerialize( |
1923 | | ::uint8_t* target, |
1924 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1925 | 0 | const BackpressureConfig& this_ = *this; |
1926 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1927 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.BackpressureConfig) |
1928 | 0 | ::uint32_t cached_has_bits = 0; |
1929 | 0 | (void)cached_has_bits; |
1930 | | |
1931 | | // uint32 recv_buf_bytes = 1; |
1932 | 0 | if (this_._internal_recv_buf_bytes() != 0) { |
1933 | 0 | target = stream->EnsureSpace(target); |
1934 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
1935 | 0 | 1, this_._internal_recv_buf_bytes(), target); |
1936 | 0 | } |
1937 | | |
1938 | | // uint32 drain_limit = 2; |
1939 | 0 | if (this_._internal_drain_limit() != 0) { |
1940 | 0 | target = stream->EnsureSpace(target); |
1941 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
1942 | 0 | 2, this_._internal_drain_limit(), target); |
1943 | 0 | } |
1944 | |
|
1945 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
1946 | 0 | target = |
1947 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1948 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
1949 | 0 | } |
1950 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.BackpressureConfig) |
1951 | 0 | return target; |
1952 | 0 | } |
1953 | | |
1954 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1955 | | ::size_t BackpressureConfig::ByteSizeLong(const MessageLite& base) { |
1956 | | const BackpressureConfig& this_ = static_cast<const BackpressureConfig&>(base); |
1957 | | #else // PROTOBUF_CUSTOM_VTABLE |
1958 | 0 | ::size_t BackpressureConfig::ByteSizeLong() const { |
1959 | 0 | const BackpressureConfig& this_ = *this; |
1960 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1961 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.BackpressureConfig) |
1962 | 0 | ::size_t total_size = 0; |
1963 | |
|
1964 | 0 | ::uint32_t cached_has_bits = 0; |
1965 | | // Prevent compiler warnings about cached_has_bits being unused |
1966 | 0 | (void)cached_has_bits; |
1967 | |
|
1968 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
1969 | 0 | { |
1970 | | // uint32 recv_buf_bytes = 1; |
1971 | 0 | if (this_._internal_recv_buf_bytes() != 0) { |
1972 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
1973 | 0 | this_._internal_recv_buf_bytes()); |
1974 | 0 | } |
1975 | | // uint32 drain_limit = 2; |
1976 | 0 | if (this_._internal_drain_limit() != 0) { |
1977 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
1978 | 0 | this_._internal_drain_limit()); |
1979 | 0 | } |
1980 | 0 | } |
1981 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
1982 | 0 | &this_._impl_._cached_size_); |
1983 | 0 | } |
1984 | | |
1985 | 0 | void BackpressureConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
1986 | 0 | auto* const _this = static_cast<BackpressureConfig*>(&to_msg); |
1987 | 0 | auto& from = static_cast<const BackpressureConfig&>(from_msg); |
1988 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.BackpressureConfig) |
1989 | 0 | ABSL_DCHECK_NE(&from, _this); |
1990 | 0 | ::uint32_t cached_has_bits = 0; |
1991 | 0 | (void) cached_has_bits; |
1992 | |
|
1993 | 0 | if (from._internal_recv_buf_bytes() != 0) { |
1994 | 0 | _this->_impl_.recv_buf_bytes_ = from._impl_.recv_buf_bytes_; |
1995 | 0 | } |
1996 | 0 | if (from._internal_drain_limit() != 0) { |
1997 | 0 | _this->_impl_.drain_limit_ = from._impl_.drain_limit_; |
1998 | 0 | } |
1999 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
2000 | 0 | } |
2001 | | |
2002 | 0 | void BackpressureConfig::CopyFrom(const BackpressureConfig& from) { |
2003 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.BackpressureConfig) |
2004 | 0 | if (&from == this) return; |
2005 | 0 | Clear(); |
2006 | 0 | MergeFrom(from); |
2007 | 0 | } |
2008 | | |
2009 | | |
2010 | 0 | void BackpressureConfig::InternalSwap(BackpressureConfig* PROTOBUF_RESTRICT other) { |
2011 | 0 | using std::swap; |
2012 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
2013 | 0 | ::google::protobuf::internal::memswap< |
2014 | 0 | PROTOBUF_FIELD_OFFSET(BackpressureConfig, _impl_.drain_limit_) |
2015 | 0 | + sizeof(BackpressureConfig::_impl_.drain_limit_) |
2016 | 0 | - PROTOBUF_FIELD_OFFSET(BackpressureConfig, _impl_.recv_buf_bytes_)>( |
2017 | 0 | reinterpret_cast<char*>(&_impl_.recv_buf_bytes_), |
2018 | 0 | reinterpret_cast<char*>(&other->_impl_.recv_buf_bytes_)); |
2019 | 0 | } |
2020 | | |
2021 | 0 | ::google::protobuf::Metadata BackpressureConfig::GetMetadata() const { |
2022 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
2023 | 0 | } |
2024 | | // =================================================================== |
2025 | | |
2026 | | class WebSocketFrame::_Internal { |
2027 | | public: |
2028 | | }; |
2029 | | |
2030 | | WebSocketFrame::WebSocketFrame(::google::protobuf::Arena* arena) |
2031 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2032 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
2033 | | #else // PROTOBUF_CUSTOM_VTABLE |
2034 | 0 | : ::google::protobuf::Message(arena) { |
2035 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2036 | 0 | SharedCtor(arena); |
2037 | | // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.WebSocketFrame) |
2038 | 0 | } |
2039 | | inline PROTOBUF_NDEBUG_INLINE WebSocketFrame::Impl_::Impl_( |
2040 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
2041 | | const Impl_& from, const ::curl::fuzzer::proto::WebSocketFrame& from_msg) |
2042 | 0 | : payload_(arena, from.payload_), |
2043 | 0 | _cached_size_{0} {} |
2044 | | |
2045 | | WebSocketFrame::WebSocketFrame( |
2046 | | ::google::protobuf::Arena* arena, |
2047 | | const WebSocketFrame& from) |
2048 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2049 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
2050 | | #else // PROTOBUF_CUSTOM_VTABLE |
2051 | 0 | : ::google::protobuf::Message(arena) { |
2052 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2053 | 0 | WebSocketFrame* const _this = this; |
2054 | 0 | (void)_this; |
2055 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
2056 | 0 | from._internal_metadata_); |
2057 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
2058 | 0 | ::memcpy(reinterpret_cast<char *>(&_impl_) + |
2059 | 0 | offsetof(Impl_, fin_), |
2060 | 0 | reinterpret_cast<const char *>(&from._impl_) + |
2061 | 0 | offsetof(Impl_, fin_), |
2062 | 0 | offsetof(Impl_, length_form_) - |
2063 | 0 | offsetof(Impl_, fin_) + |
2064 | 0 | sizeof(Impl_::length_form_)); |
2065 | | |
2066 | | // @@protoc_insertion_point(copy_constructor:curl.fuzzer.proto.WebSocketFrame) |
2067 | 0 | } |
2068 | | inline PROTOBUF_NDEBUG_INLINE WebSocketFrame::Impl_::Impl_( |
2069 | | ::google::protobuf::internal::InternalVisibility visibility, |
2070 | | ::google::protobuf::Arena* arena) |
2071 | 0 | : payload_(arena), |
2072 | 0 | _cached_size_{0} {} |
2073 | | |
2074 | 0 | inline void WebSocketFrame::SharedCtor(::_pb::Arena* arena) { |
2075 | 0 | new (&_impl_) Impl_(internal_visibility(), arena); |
2076 | 0 | ::memset(reinterpret_cast<char *>(&_impl_) + |
2077 | 0 | offsetof(Impl_, fin_), |
2078 | 0 | 0, |
2079 | 0 | offsetof(Impl_, length_form_) - |
2080 | 0 | offsetof(Impl_, fin_) + |
2081 | 0 | sizeof(Impl_::length_form_)); |
2082 | 0 | } |
2083 | 3.98k | WebSocketFrame::~WebSocketFrame() { |
2084 | | // @@protoc_insertion_point(destructor:curl.fuzzer.proto.WebSocketFrame) |
2085 | 3.98k | SharedDtor(*this); |
2086 | 3.98k | } |
2087 | 3.98k | inline void WebSocketFrame::SharedDtor(MessageLite& self) { |
2088 | 3.98k | WebSocketFrame& this_ = static_cast<WebSocketFrame&>(self); |
2089 | 3.98k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
2090 | 3.98k | ABSL_DCHECK(this_.GetArena() == nullptr); |
2091 | 3.98k | this_._impl_.payload_.Destroy(); |
2092 | 3.98k | this_._impl_.~Impl_(); |
2093 | 3.98k | } |
2094 | | |
2095 | | inline void* WebSocketFrame::PlacementNew_(const void*, void* mem, |
2096 | 0 | ::google::protobuf::Arena* arena) { |
2097 | 0 | return ::new (mem) WebSocketFrame(arena); |
2098 | 0 | } |
2099 | 0 | constexpr auto WebSocketFrame::InternalNewImpl_() { |
2100 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(WebSocketFrame), |
2101 | 0 | alignof(WebSocketFrame)); |
2102 | 0 | } |
2103 | | PROTOBUF_CONSTINIT |
2104 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2105 | | const ::google::protobuf::internal::ClassDataFull WebSocketFrame::_class_data_ = { |
2106 | | ::google::protobuf::internal::ClassData{ |
2107 | | &_WebSocketFrame_default_instance_._instance, |
2108 | | &_table_.header, |
2109 | | nullptr, // OnDemandRegisterArenaDtor |
2110 | | nullptr, // IsInitialized |
2111 | | &WebSocketFrame::MergeImpl, |
2112 | | ::google::protobuf::Message::GetNewImpl<WebSocketFrame>(), |
2113 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2114 | | &WebSocketFrame::SharedDtor, |
2115 | | ::google::protobuf::Message::GetClearImpl<WebSocketFrame>(), &WebSocketFrame::ByteSizeLong, |
2116 | | &WebSocketFrame::_InternalSerialize, |
2117 | | #endif // PROTOBUF_CUSTOM_VTABLE |
2118 | | PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_._cached_size_), |
2119 | | false, |
2120 | | }, |
2121 | | &WebSocketFrame::kDescriptorMethods, |
2122 | | &descriptor_table_curl_5ffuzzer_2eproto, |
2123 | | nullptr, // tracker |
2124 | | }; |
2125 | 14.1k | const ::google::protobuf::internal::ClassData* WebSocketFrame::GetClassData() const { |
2126 | 14.1k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
2127 | 14.1k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
2128 | 14.1k | return _class_data_.base(); |
2129 | 14.1k | } |
2130 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2131 | | const ::_pbi::TcParseTable<4, 9, 0, 0, 2> WebSocketFrame::_table_ = { |
2132 | | { |
2133 | | 0, // no _has_bits_ |
2134 | | 0, // no _extensions_ |
2135 | | 9, 120, // max_field_number, fast_idx_mask |
2136 | | offsetof(decltype(_table_), field_lookup_table), |
2137 | | 4294966784, // skipmap |
2138 | | offsetof(decltype(_table_), field_entries), |
2139 | | 9, // num_field_entries |
2140 | | 0, // num_aux_entries |
2141 | | offsetof(decltype(_table_), field_names), // no aux_entries |
2142 | | _class_data_.base(), |
2143 | | nullptr, // post_loop_handler |
2144 | | ::_pbi::TcParser::GenericFallback, // fallback |
2145 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
2146 | | ::_pbi::TcParser::GetTable<::curl::fuzzer::proto::WebSocketFrame>(), // to_prefetch |
2147 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
2148 | | }, {{ |
2149 | | {::_pbi::TcParser::MiniParse, {}}, |
2150 | | // bool fin = 1; |
2151 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WebSocketFrame, _impl_.fin_), 63>(), |
2152 | | {8, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.fin_)}}, |
2153 | | // bool rsv1 = 2; |
2154 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WebSocketFrame, _impl_.rsv1_), 63>(), |
2155 | | {16, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.rsv1_)}}, |
2156 | | // bool rsv2 = 3; |
2157 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WebSocketFrame, _impl_.rsv2_), 63>(), |
2158 | | {24, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.rsv2_)}}, |
2159 | | // bool rsv3 = 4; |
2160 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WebSocketFrame, _impl_.rsv3_), 63>(), |
2161 | | {32, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.rsv3_)}}, |
2162 | | // uint32 opcode = 5; |
2163 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(WebSocketFrame, _impl_.opcode_), 63>(), |
2164 | | {40, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.opcode_)}}, |
2165 | | // bool masked = 6; |
2166 | | {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(WebSocketFrame, _impl_.masked_), 63>(), |
2167 | | {48, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.masked_)}}, |
2168 | | // uint32 mask_key = 7; |
2169 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(WebSocketFrame, _impl_.mask_key_), 63>(), |
2170 | | {56, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.mask_key_)}}, |
2171 | | // bytes payload = 8; |
2172 | | {::_pbi::TcParser::FastBS1, |
2173 | | {66, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.payload_)}}, |
2174 | | // uint32 length_form = 9; |
2175 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(WebSocketFrame, _impl_.length_form_), 63>(), |
2176 | | {72, 63, 0, PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.length_form_)}}, |
2177 | | {::_pbi::TcParser::MiniParse, {}}, |
2178 | | {::_pbi::TcParser::MiniParse, {}}, |
2179 | | {::_pbi::TcParser::MiniParse, {}}, |
2180 | | {::_pbi::TcParser::MiniParse, {}}, |
2181 | | {::_pbi::TcParser::MiniParse, {}}, |
2182 | | {::_pbi::TcParser::MiniParse, {}}, |
2183 | | }}, {{ |
2184 | | 65535, 65535 |
2185 | | }}, {{ |
2186 | | // bool fin = 1; |
2187 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.fin_), 0, 0, |
2188 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
2189 | | // bool rsv1 = 2; |
2190 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.rsv1_), 0, 0, |
2191 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
2192 | | // bool rsv2 = 3; |
2193 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.rsv2_), 0, 0, |
2194 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
2195 | | // bool rsv3 = 4; |
2196 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.rsv3_), 0, 0, |
2197 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
2198 | | // uint32 opcode = 5; |
2199 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.opcode_), 0, 0, |
2200 | | (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, |
2201 | | // bool masked = 6; |
2202 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.masked_), 0, 0, |
2203 | | (0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
2204 | | // uint32 mask_key = 7; |
2205 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.mask_key_), 0, 0, |
2206 | | (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, |
2207 | | // bytes payload = 8; |
2208 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.payload_), 0, 0, |
2209 | | (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, |
2210 | | // uint32 length_form = 9; |
2211 | | {PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.length_form_), 0, 0, |
2212 | | (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, |
2213 | | }}, |
2214 | | // no aux_entries |
2215 | | {{ |
2216 | | }}, |
2217 | | }; |
2218 | | |
2219 | 1.62k | PROTOBUF_NOINLINE void WebSocketFrame::Clear() { |
2220 | | // @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.WebSocketFrame) |
2221 | 1.62k | ::google::protobuf::internal::TSanWrite(&_impl_); |
2222 | 1.62k | ::uint32_t cached_has_bits = 0; |
2223 | | // Prevent compiler warnings about cached_has_bits being unused |
2224 | 1.62k | (void) cached_has_bits; |
2225 | | |
2226 | 1.62k | _impl_.payload_.ClearToEmpty(); |
2227 | 1.62k | ::memset(&_impl_.fin_, 0, static_cast<::size_t>( |
2228 | 1.62k | reinterpret_cast<char*>(&_impl_.length_form_) - |
2229 | 1.62k | reinterpret_cast<char*>(&_impl_.fin_)) + sizeof(_impl_.length_form_)); |
2230 | 1.62k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
2231 | 1.62k | } |
2232 | | |
2233 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2234 | | ::uint8_t* WebSocketFrame::_InternalSerialize( |
2235 | | const MessageLite& base, ::uint8_t* target, |
2236 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
2237 | | const WebSocketFrame& this_ = static_cast<const WebSocketFrame&>(base); |
2238 | | #else // PROTOBUF_CUSTOM_VTABLE |
2239 | | ::uint8_t* WebSocketFrame::_InternalSerialize( |
2240 | | ::uint8_t* target, |
2241 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
2242 | 0 | const WebSocketFrame& this_ = *this; |
2243 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2244 | | // @@protoc_insertion_point(serialize_to_array_start:curl.fuzzer.proto.WebSocketFrame) |
2245 | 0 | ::uint32_t cached_has_bits = 0; |
2246 | 0 | (void)cached_has_bits; |
2247 | | |
2248 | | // bool fin = 1; |
2249 | 0 | if (this_._internal_fin() != 0) { |
2250 | 0 | target = stream->EnsureSpace(target); |
2251 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
2252 | 0 | 1, this_._internal_fin(), target); |
2253 | 0 | } |
2254 | | |
2255 | | // bool rsv1 = 2; |
2256 | 0 | if (this_._internal_rsv1() != 0) { |
2257 | 0 | target = stream->EnsureSpace(target); |
2258 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
2259 | 0 | 2, this_._internal_rsv1(), target); |
2260 | 0 | } |
2261 | | |
2262 | | // bool rsv2 = 3; |
2263 | 0 | if (this_._internal_rsv2() != 0) { |
2264 | 0 | target = stream->EnsureSpace(target); |
2265 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
2266 | 0 | 3, this_._internal_rsv2(), target); |
2267 | 0 | } |
2268 | | |
2269 | | // bool rsv3 = 4; |
2270 | 0 | if (this_._internal_rsv3() != 0) { |
2271 | 0 | target = stream->EnsureSpace(target); |
2272 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
2273 | 0 | 4, this_._internal_rsv3(), target); |
2274 | 0 | } |
2275 | | |
2276 | | // uint32 opcode = 5; |
2277 | 0 | if (this_._internal_opcode() != 0) { |
2278 | 0 | target = stream->EnsureSpace(target); |
2279 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
2280 | 0 | 5, this_._internal_opcode(), target); |
2281 | 0 | } |
2282 | | |
2283 | | // bool masked = 6; |
2284 | 0 | if (this_._internal_masked() != 0) { |
2285 | 0 | target = stream->EnsureSpace(target); |
2286 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
2287 | 0 | 6, this_._internal_masked(), target); |
2288 | 0 | } |
2289 | | |
2290 | | // uint32 mask_key = 7; |
2291 | 0 | if (this_._internal_mask_key() != 0) { |
2292 | 0 | target = stream->EnsureSpace(target); |
2293 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
2294 | 0 | 7, this_._internal_mask_key(), target); |
2295 | 0 | } |
2296 | | |
2297 | | // bytes payload = 8; |
2298 | 0 | if (!this_._internal_payload().empty()) { |
2299 | 0 | const std::string& _s = this_._internal_payload(); |
2300 | 0 | target = stream->WriteBytesMaybeAliased(8, _s, target); |
2301 | 0 | } |
2302 | | |
2303 | | // uint32 length_form = 9; |
2304 | 0 | if (this_._internal_length_form() != 0) { |
2305 | 0 | target = stream->EnsureSpace(target); |
2306 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
2307 | 0 | 9, this_._internal_length_form(), target); |
2308 | 0 | } |
2309 | |
|
2310 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
2311 | 0 | target = |
2312 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
2313 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
2314 | 0 | } |
2315 | | // @@protoc_insertion_point(serialize_to_array_end:curl.fuzzer.proto.WebSocketFrame) |
2316 | 0 | return target; |
2317 | 0 | } |
2318 | | |
2319 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2320 | | ::size_t WebSocketFrame::ByteSizeLong(const MessageLite& base) { |
2321 | | const WebSocketFrame& this_ = static_cast<const WebSocketFrame&>(base); |
2322 | | #else // PROTOBUF_CUSTOM_VTABLE |
2323 | 0 | ::size_t WebSocketFrame::ByteSizeLong() const { |
2324 | 0 | const WebSocketFrame& this_ = *this; |
2325 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2326 | | // @@protoc_insertion_point(message_byte_size_start:curl.fuzzer.proto.WebSocketFrame) |
2327 | 0 | ::size_t total_size = 0; |
2328 | |
|
2329 | 0 | ::uint32_t cached_has_bits = 0; |
2330 | | // Prevent compiler warnings about cached_has_bits being unused |
2331 | 0 | (void)cached_has_bits; |
2332 | |
|
2333 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
2334 | 0 | { |
2335 | | // bytes payload = 8; |
2336 | 0 | if (!this_._internal_payload().empty()) { |
2337 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
2338 | 0 | this_._internal_payload()); |
2339 | 0 | } |
2340 | | // bool fin = 1; |
2341 | 0 | if (this_._internal_fin() != 0) { |
2342 | 0 | total_size += 2; |
2343 | 0 | } |
2344 | | // bool rsv1 = 2; |
2345 | 0 | if (this_._internal_rsv1() != 0) { |
2346 | 0 | total_size += 2; |
2347 | 0 | } |
2348 | | // bool rsv2 = 3; |
2349 | 0 | if (this_._internal_rsv2() != 0) { |
2350 | 0 | total_size += 2; |
2351 | 0 | } |
2352 | | // bool rsv3 = 4; |
2353 | 0 | if (this_._internal_rsv3() != 0) { |
2354 | 0 | total_size += 2; |
2355 | 0 | } |
2356 | | // uint32 opcode = 5; |
2357 | 0 | if (this_._internal_opcode() != 0) { |
2358 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
2359 | 0 | this_._internal_opcode()); |
2360 | 0 | } |
2361 | | // bool masked = 6; |
2362 | 0 | if (this_._internal_masked() != 0) { |
2363 | 0 | total_size += 2; |
2364 | 0 | } |
2365 | | // uint32 mask_key = 7; |
2366 | 0 | if (this_._internal_mask_key() != 0) { |
2367 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
2368 | 0 | this_._internal_mask_key()); |
2369 | 0 | } |
2370 | | // uint32 length_form = 9; |
2371 | 0 | if (this_._internal_length_form() != 0) { |
2372 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
2373 | 0 | this_._internal_length_form()); |
2374 | 0 | } |
2375 | 0 | } |
2376 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
2377 | 0 | &this_._impl_._cached_size_); |
2378 | 0 | } |
2379 | | |
2380 | 0 | void WebSocketFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
2381 | 0 | auto* const _this = static_cast<WebSocketFrame*>(&to_msg); |
2382 | 0 | auto& from = static_cast<const WebSocketFrame&>(from_msg); |
2383 | | // @@protoc_insertion_point(class_specific_merge_from_start:curl.fuzzer.proto.WebSocketFrame) |
2384 | 0 | ABSL_DCHECK_NE(&from, _this); |
2385 | 0 | ::uint32_t cached_has_bits = 0; |
2386 | 0 | (void) cached_has_bits; |
2387 | |
|
2388 | 0 | if (!from._internal_payload().empty()) { |
2389 | 0 | _this->_internal_set_payload(from._internal_payload()); |
2390 | 0 | } |
2391 | 0 | if (from._internal_fin() != 0) { |
2392 | 0 | _this->_impl_.fin_ = from._impl_.fin_; |
2393 | 0 | } |
2394 | 0 | if (from._internal_rsv1() != 0) { |
2395 | 0 | _this->_impl_.rsv1_ = from._impl_.rsv1_; |
2396 | 0 | } |
2397 | 0 | if (from._internal_rsv2() != 0) { |
2398 | 0 | _this->_impl_.rsv2_ = from._impl_.rsv2_; |
2399 | 0 | } |
2400 | 0 | if (from._internal_rsv3() != 0) { |
2401 | 0 | _this->_impl_.rsv3_ = from._impl_.rsv3_; |
2402 | 0 | } |
2403 | 0 | if (from._internal_opcode() != 0) { |
2404 | 0 | _this->_impl_.opcode_ = from._impl_.opcode_; |
2405 | 0 | } |
2406 | 0 | if (from._internal_masked() != 0) { |
2407 | 0 | _this->_impl_.masked_ = from._impl_.masked_; |
2408 | 0 | } |
2409 | 0 | if (from._internal_mask_key() != 0) { |
2410 | 0 | _this->_impl_.mask_key_ = from._impl_.mask_key_; |
2411 | 0 | } |
2412 | 0 | if (from._internal_length_form() != 0) { |
2413 | 0 | _this->_impl_.length_form_ = from._impl_.length_form_; |
2414 | 0 | } |
2415 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
2416 | 0 | } |
2417 | | |
2418 | 0 | void WebSocketFrame::CopyFrom(const WebSocketFrame& from) { |
2419 | | // @@protoc_insertion_point(class_specific_copy_from_start:curl.fuzzer.proto.WebSocketFrame) |
2420 | 0 | if (&from == this) return; |
2421 | 0 | Clear(); |
2422 | 0 | MergeFrom(from); |
2423 | 0 | } |
2424 | | |
2425 | | |
2426 | 0 | void WebSocketFrame::InternalSwap(WebSocketFrame* PROTOBUF_RESTRICT other) { |
2427 | 0 | using std::swap; |
2428 | 0 | auto* arena = GetArena(); |
2429 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
2430 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
2431 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.payload_, &other->_impl_.payload_, arena); |
2432 | 0 | ::google::protobuf::internal::memswap< |
2433 | 0 | PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.length_form_) |
2434 | 0 | + sizeof(WebSocketFrame::_impl_.length_form_) |
2435 | 0 | - PROTOBUF_FIELD_OFFSET(WebSocketFrame, _impl_.fin_)>( |
2436 | 0 | reinterpret_cast<char*>(&_impl_.fin_), |
2437 | 0 | reinterpret_cast<char*>(&other->_impl_.fin_)); |
2438 | 0 | } |
2439 | | |
2440 | 0 | ::google::protobuf::Metadata WebSocketFrame::GetMetadata() const { |
2441 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
2442 | 0 | } |
2443 | | // @@protoc_insertion_point(namespace_scope) |
2444 | | } // namespace proto |
2445 | | } // namespace fuzzer |
2446 | | } // namespace curl |
2447 | | namespace google { |
2448 | | namespace protobuf { |
2449 | | } // namespace protobuf |
2450 | | } // namespace google |
2451 | | // @@protoc_insertion_point(global_scope) |
2452 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type |
2453 | | _static_init2_ PROTOBUF_UNUSED = |
2454 | | (::_pbi::AddDescriptors(&descriptor_table_curl_5ffuzzer_2eproto), |
2455 | | ::std::false_type{}); |
2456 | | #include "google/protobuf/port_undef.inc" |