/src/mosquitto/fuzzing/libcommon/libcommon_fuzz_topic_matching.pb.cc
Line | Count | Source |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // NO CHECKED-IN PROTOBUF GENCODE |
3 | | // source: libcommon_fuzz_topic_matching.proto |
4 | | // Protobuf C++ Version: 5.29.3 |
5 | | |
6 | | #include "libcommon_fuzz_topic_matching.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 fuzz_topic_matches_sub { |
28 | | |
29 | | inline constexpr FuzzerInput::Impl_::Impl_( |
30 | | ::_pbi::ConstantInitialized) noexcept |
31 | | : _cached_size_{0}, |
32 | | string1_( |
33 | | &::google::protobuf::internal::fixed_address_empty_string, |
34 | | ::_pbi::ConstantInitialized()), |
35 | | string2_( |
36 | | &::google::protobuf::internal::fixed_address_empty_string, |
37 | | ::_pbi::ConstantInitialized()), |
38 | | username_( |
39 | | &::google::protobuf::internal::fixed_address_empty_string, |
40 | | ::_pbi::ConstantInitialized()), |
41 | | clientid_( |
42 | | &::google::protobuf::internal::fixed_address_empty_string, |
43 | | ::_pbi::ConstantInitialized()) {} |
44 | | |
45 | | template <typename> |
46 | | PROTOBUF_CONSTEXPR FuzzerInput::FuzzerInput(::_pbi::ConstantInitialized) |
47 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
48 | | : ::google::protobuf::Message(_class_data_.base()), |
49 | | #else // PROTOBUF_CUSTOM_VTABLE |
50 | | : ::google::protobuf::Message(), |
51 | | #endif // PROTOBUF_CUSTOM_VTABLE |
52 | | _impl_(::_pbi::ConstantInitialized()) { |
53 | | } |
54 | | struct FuzzerInputDefaultTypeInternal { |
55 | 0 | PROTOBUF_CONSTEXPR FuzzerInputDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
56 | 0 | ~FuzzerInputDefaultTypeInternal() {} |
57 | | union { |
58 | | FuzzerInput _instance; |
59 | | }; |
60 | | }; |
61 | | |
62 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
63 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FuzzerInputDefaultTypeInternal _FuzzerInput_default_instance_; |
64 | | } // namespace fuzz_topic_matches_sub |
65 | | static constexpr const ::_pb::EnumDescriptor** |
66 | | file_level_enum_descriptors_libcommon_5ffuzz_5ftopic_5fmatching_2eproto = nullptr; |
67 | | static constexpr const ::_pb::ServiceDescriptor** |
68 | | file_level_service_descriptors_libcommon_5ffuzz_5ftopic_5fmatching_2eproto = nullptr; |
69 | | const ::uint32_t |
70 | | TableStruct_libcommon_5ffuzz_5ftopic_5fmatching_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( |
71 | | protodesc_cold) = { |
72 | | PROTOBUF_FIELD_OFFSET(::fuzz_topic_matches_sub::FuzzerInput, _impl_._has_bits_), |
73 | | PROTOBUF_FIELD_OFFSET(::fuzz_topic_matches_sub::FuzzerInput, _internal_metadata_), |
74 | | ~0u, // no _extensions_ |
75 | | ~0u, // no _oneof_case_ |
76 | | ~0u, // no _weak_field_map_ |
77 | | ~0u, // no _inlined_string_donated_ |
78 | | ~0u, // no _split_ |
79 | | ~0u, // no sizeof(Split) |
80 | | PROTOBUF_FIELD_OFFSET(::fuzz_topic_matches_sub::FuzzerInput, _impl_.string1_), |
81 | | PROTOBUF_FIELD_OFFSET(::fuzz_topic_matches_sub::FuzzerInput, _impl_.string2_), |
82 | | PROTOBUF_FIELD_OFFSET(::fuzz_topic_matches_sub::FuzzerInput, _impl_.username_), |
83 | | PROTOBUF_FIELD_OFFSET(::fuzz_topic_matches_sub::FuzzerInput, _impl_.clientid_), |
84 | | 0, |
85 | | 1, |
86 | | 2, |
87 | | 3, |
88 | | }; |
89 | | |
90 | | static const ::_pbi::MigrationSchema |
91 | | schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
92 | | {0, 12, -1, sizeof(::fuzz_topic_matches_sub::FuzzerInput)}, |
93 | | }; |
94 | | static const ::_pb::Message* const file_default_instances[] = { |
95 | | &::fuzz_topic_matches_sub::_FuzzerInput_default_instance_._instance, |
96 | | }; |
97 | | const char descriptor_table_protodef_libcommon_5ffuzz_5ftopic_5fmatching_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( |
98 | | protodesc_cold) = { |
99 | | "\n#libcommon_fuzz_topic_matching.proto\022\026f" |
100 | | "uzz_topic_matches_sub\"S\n\013FuzzerInput\022\017\n\007" |
101 | | "string1\030\001 \002(\t\022\017\n\007string2\030\002 \002(\t\022\020\n\010userna" |
102 | | "me\030\003 \001(\t\022\020\n\010clientid\030\004 \001(\t" |
103 | | }; |
104 | | static ::absl::once_flag descriptor_table_libcommon_5ffuzz_5ftopic_5fmatching_2eproto_once; |
105 | | PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_libcommon_5ffuzz_5ftopic_5fmatching_2eproto = { |
106 | | false, |
107 | | false, |
108 | | 146, |
109 | | descriptor_table_protodef_libcommon_5ffuzz_5ftopic_5fmatching_2eproto, |
110 | | "libcommon_fuzz_topic_matching.proto", |
111 | | &descriptor_table_libcommon_5ffuzz_5ftopic_5fmatching_2eproto_once, |
112 | | nullptr, |
113 | | 0, |
114 | | 1, |
115 | | schemas, |
116 | | file_default_instances, |
117 | | TableStruct_libcommon_5ffuzz_5ftopic_5fmatching_2eproto::offsets, |
118 | | file_level_enum_descriptors_libcommon_5ffuzz_5ftopic_5fmatching_2eproto, |
119 | | file_level_service_descriptors_libcommon_5ffuzz_5ftopic_5fmatching_2eproto, |
120 | | }; |
121 | | namespace fuzz_topic_matches_sub { |
122 | | // =================================================================== |
123 | | |
124 | | class FuzzerInput::_Internal { |
125 | | public: |
126 | | using HasBits = |
127 | | decltype(std::declval<FuzzerInput>()._impl_._has_bits_); |
128 | | static constexpr ::int32_t kHasBitsOffset = |
129 | | 8 * PROTOBUF_FIELD_OFFSET(FuzzerInput, _impl_._has_bits_); |
130 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
131 | 0 | return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; |
132 | 0 | } |
133 | | }; |
134 | | |
135 | | FuzzerInput::FuzzerInput(::google::protobuf::Arena* arena) |
136 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
137 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
138 | | #else // PROTOBUF_CUSTOM_VTABLE |
139 | 949 | : ::google::protobuf::Message(arena) { |
140 | 949 | #endif // PROTOBUF_CUSTOM_VTABLE |
141 | 949 | SharedCtor(arena); |
142 | | // @@protoc_insertion_point(arena_constructor:fuzz_topic_matches_sub.FuzzerInput) |
143 | 949 | } |
144 | | inline PROTOBUF_NDEBUG_INLINE FuzzerInput::Impl_::Impl_( |
145 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
146 | | const Impl_& from, const ::fuzz_topic_matches_sub::FuzzerInput& from_msg) |
147 | 0 | : _has_bits_{from._has_bits_}, |
148 | 0 | _cached_size_{0}, |
149 | 0 | string1_(arena, from.string1_), |
150 | 0 | string2_(arena, from.string2_), |
151 | 0 | username_(arena, from.username_), |
152 | 0 | clientid_(arena, from.clientid_) {} |
153 | | |
154 | | FuzzerInput::FuzzerInput( |
155 | | ::google::protobuf::Arena* arena, |
156 | | const FuzzerInput& from) |
157 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
158 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
159 | | #else // PROTOBUF_CUSTOM_VTABLE |
160 | 0 | : ::google::protobuf::Message(arena) { |
161 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
162 | 0 | FuzzerInput* const _this = this; |
163 | 0 | (void)_this; |
164 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
165 | 0 | from._internal_metadata_); |
166 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
167 | | |
168 | | // @@protoc_insertion_point(copy_constructor:fuzz_topic_matches_sub.FuzzerInput) |
169 | 0 | } |
170 | | inline PROTOBUF_NDEBUG_INLINE FuzzerInput::Impl_::Impl_( |
171 | | ::google::protobuf::internal::InternalVisibility visibility, |
172 | | ::google::protobuf::Arena* arena) |
173 | 949 | : _cached_size_{0}, |
174 | 949 | string1_(arena), |
175 | 949 | string2_(arena), |
176 | 949 | username_(arena), |
177 | 949 | clientid_(arena) {} |
178 | | |
179 | 949 | inline void FuzzerInput::SharedCtor(::_pb::Arena* arena) { |
180 | 949 | new (&_impl_) Impl_(internal_visibility(), arena); |
181 | 949 | } |
182 | 949 | FuzzerInput::~FuzzerInput() { |
183 | | // @@protoc_insertion_point(destructor:fuzz_topic_matches_sub.FuzzerInput) |
184 | 949 | SharedDtor(*this); |
185 | 949 | } |
186 | 949 | inline void FuzzerInput::SharedDtor(MessageLite& self) { |
187 | 949 | FuzzerInput& this_ = static_cast<FuzzerInput&>(self); |
188 | 949 | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
189 | 949 | ABSL_DCHECK(this_.GetArena() == nullptr); |
190 | 949 | this_._impl_.string1_.Destroy(); |
191 | 949 | this_._impl_.string2_.Destroy(); |
192 | 949 | this_._impl_.username_.Destroy(); |
193 | 949 | this_._impl_.clientid_.Destroy(); |
194 | 949 | this_._impl_.~Impl_(); |
195 | 949 | } |
196 | | |
197 | | inline void* FuzzerInput::PlacementNew_(const void*, void* mem, |
198 | 0 | ::google::protobuf::Arena* arena) { |
199 | 0 | return ::new (mem) FuzzerInput(arena); |
200 | 0 | } |
201 | 0 | constexpr auto FuzzerInput::InternalNewImpl_() { |
202 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(FuzzerInput), |
203 | 0 | alignof(FuzzerInput)); |
204 | 0 | } |
205 | | PROTOBUF_CONSTINIT |
206 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
207 | | const ::google::protobuf::internal::ClassDataFull FuzzerInput::_class_data_ = { |
208 | | ::google::protobuf::internal::ClassData{ |
209 | | &_FuzzerInput_default_instance_._instance, |
210 | | &_table_.header, |
211 | | nullptr, // OnDemandRegisterArenaDtor |
212 | | FuzzerInput::IsInitializedImpl, |
213 | | &FuzzerInput::MergeImpl, |
214 | | ::google::protobuf::Message::GetNewImpl<FuzzerInput>(), |
215 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
216 | | &FuzzerInput::SharedDtor, |
217 | | ::google::protobuf::Message::GetClearImpl<FuzzerInput>(), &FuzzerInput::ByteSizeLong, |
218 | | &FuzzerInput::_InternalSerialize, |
219 | | #endif // PROTOBUF_CUSTOM_VTABLE |
220 | | PROTOBUF_FIELD_OFFSET(FuzzerInput, _impl_._cached_size_), |
221 | | false, |
222 | | }, |
223 | | &FuzzerInput::kDescriptorMethods, |
224 | | &descriptor_table_libcommon_5ffuzz_5ftopic_5fmatching_2eproto, |
225 | | nullptr, // tracker |
226 | | }; |
227 | 13.3k | const ::google::protobuf::internal::ClassData* FuzzerInput::GetClassData() const { |
228 | 13.3k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
229 | 13.3k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
230 | 13.3k | return _class_data_.base(); |
231 | 13.3k | } |
232 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
233 | | const ::_pbi::TcParseTable<2, 4, 0, 73, 2> FuzzerInput::_table_ = { |
234 | | { |
235 | | PROTOBUF_FIELD_OFFSET(FuzzerInput, _impl_._has_bits_), |
236 | | 0, // no _extensions_ |
237 | | 4, 24, // max_field_number, fast_idx_mask |
238 | | offsetof(decltype(_table_), field_lookup_table), |
239 | | 4294967280, // skipmap |
240 | | offsetof(decltype(_table_), field_entries), |
241 | | 4, // num_field_entries |
242 | | 0, // num_aux_entries |
243 | | offsetof(decltype(_table_), field_names), // no aux_entries |
244 | | _class_data_.base(), |
245 | | nullptr, // post_loop_handler |
246 | | ::_pbi::TcParser::GenericFallback, // fallback |
247 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
248 | | ::_pbi::TcParser::GetTable<::fuzz_topic_matches_sub::FuzzerInput>(), // to_prefetch |
249 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
250 | | }, {{ |
251 | | // optional string clientid = 4; |
252 | | {::_pbi::TcParser::FastSS1, |
253 | | {34, 3, 0, PROTOBUF_FIELD_OFFSET(FuzzerInput, _impl_.clientid_)}}, |
254 | | // required string string1 = 1; |
255 | | {::_pbi::TcParser::FastSS1, |
256 | | {10, 0, 0, PROTOBUF_FIELD_OFFSET(FuzzerInput, _impl_.string1_)}}, |
257 | | // required string string2 = 2; |
258 | | {::_pbi::TcParser::FastSS1, |
259 | | {18, 1, 0, PROTOBUF_FIELD_OFFSET(FuzzerInput, _impl_.string2_)}}, |
260 | | // optional string username = 3; |
261 | | {::_pbi::TcParser::FastSS1, |
262 | | {26, 2, 0, PROTOBUF_FIELD_OFFSET(FuzzerInput, _impl_.username_)}}, |
263 | | }}, {{ |
264 | | 65535, 65535 |
265 | | }}, {{ |
266 | | // required string string1 = 1; |
267 | | {PROTOBUF_FIELD_OFFSET(FuzzerInput, _impl_.string1_), _Internal::kHasBitsOffset + 0, 0, |
268 | | (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, |
269 | | // required string string2 = 2; |
270 | | {PROTOBUF_FIELD_OFFSET(FuzzerInput, _impl_.string2_), _Internal::kHasBitsOffset + 1, 0, |
271 | | (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, |
272 | | // optional string username = 3; |
273 | | {PROTOBUF_FIELD_OFFSET(FuzzerInput, _impl_.username_), _Internal::kHasBitsOffset + 2, 0, |
274 | | (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, |
275 | | // optional string clientid = 4; |
276 | | {PROTOBUF_FIELD_OFFSET(FuzzerInput, _impl_.clientid_), _Internal::kHasBitsOffset + 3, 0, |
277 | | (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, |
278 | | }}, |
279 | | // no aux_entries |
280 | | {{ |
281 | | "\42\7\7\10\10\0\0\0" |
282 | | "fuzz_topic_matches_sub.FuzzerInput" |
283 | | "string1" |
284 | | "string2" |
285 | | "username" |
286 | | "clientid" |
287 | | }}, |
288 | | }; |
289 | | |
290 | 1.94k | PROTOBUF_NOINLINE void FuzzerInput::Clear() { |
291 | | // @@protoc_insertion_point(message_clear_start:fuzz_topic_matches_sub.FuzzerInput) |
292 | 1.94k | ::google::protobuf::internal::TSanWrite(&_impl_); |
293 | 1.94k | ::uint32_t cached_has_bits = 0; |
294 | | // Prevent compiler warnings about cached_has_bits being unused |
295 | 1.94k | (void) cached_has_bits; |
296 | | |
297 | 1.94k | cached_has_bits = _impl_._has_bits_[0]; |
298 | 1.94k | if (cached_has_bits & 0x0000000fu) { |
299 | 11 | if (cached_has_bits & 0x00000001u) { |
300 | 8 | _impl_.string1_.ClearNonDefaultToEmpty(); |
301 | 8 | } |
302 | 11 | if (cached_has_bits & 0x00000002u) { |
303 | 7 | _impl_.string2_.ClearNonDefaultToEmpty(); |
304 | 7 | } |
305 | 11 | if (cached_has_bits & 0x00000004u) { |
306 | 4 | _impl_.username_.ClearNonDefaultToEmpty(); |
307 | 4 | } |
308 | 11 | if (cached_has_bits & 0x00000008u) { |
309 | 4 | _impl_.clientid_.ClearNonDefaultToEmpty(); |
310 | 4 | } |
311 | 11 | } |
312 | 1.94k | _impl_._has_bits_.Clear(); |
313 | 1.94k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
314 | 1.94k | } |
315 | | |
316 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
317 | | ::uint8_t* FuzzerInput::_InternalSerialize( |
318 | | const MessageLite& base, ::uint8_t* target, |
319 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
320 | | const FuzzerInput& this_ = static_cast<const FuzzerInput&>(base); |
321 | | #else // PROTOBUF_CUSTOM_VTABLE |
322 | | ::uint8_t* FuzzerInput::_InternalSerialize( |
323 | | ::uint8_t* target, |
324 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
325 | 0 | const FuzzerInput& this_ = *this; |
326 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
327 | | // @@protoc_insertion_point(serialize_to_array_start:fuzz_topic_matches_sub.FuzzerInput) |
328 | 0 | ::uint32_t cached_has_bits = 0; |
329 | 0 | (void)cached_has_bits; |
330 | |
|
331 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
332 | | // required string string1 = 1; |
333 | 0 | if (cached_has_bits & 0x00000001u) { |
334 | 0 | const std::string& _s = this_._internal_string1(); |
335 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, |
336 | 0 | "fuzz_topic_matches_sub.FuzzerInput.string1"); |
337 | 0 | target = stream->WriteStringMaybeAliased(1, _s, target); |
338 | 0 | } |
339 | | |
340 | | // required string string2 = 2; |
341 | 0 | if (cached_has_bits & 0x00000002u) { |
342 | 0 | const std::string& _s = this_._internal_string2(); |
343 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, |
344 | 0 | "fuzz_topic_matches_sub.FuzzerInput.string2"); |
345 | 0 | target = stream->WriteStringMaybeAliased(2, _s, target); |
346 | 0 | } |
347 | | |
348 | | // optional string username = 3; |
349 | 0 | if (cached_has_bits & 0x00000004u) { |
350 | 0 | const std::string& _s = this_._internal_username(); |
351 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, |
352 | 0 | "fuzz_topic_matches_sub.FuzzerInput.username"); |
353 | 0 | target = stream->WriteStringMaybeAliased(3, _s, target); |
354 | 0 | } |
355 | | |
356 | | // optional string clientid = 4; |
357 | 0 | if (cached_has_bits & 0x00000008u) { |
358 | 0 | const std::string& _s = this_._internal_clientid(); |
359 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, |
360 | 0 | "fuzz_topic_matches_sub.FuzzerInput.clientid"); |
361 | 0 | target = stream->WriteStringMaybeAliased(4, _s, target); |
362 | 0 | } |
363 | |
|
364 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
365 | 0 | target = |
366 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
367 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
368 | 0 | } |
369 | | // @@protoc_insertion_point(serialize_to_array_end:fuzz_topic_matches_sub.FuzzerInput) |
370 | 0 | return target; |
371 | 0 | } |
372 | | |
373 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
374 | | ::size_t FuzzerInput::ByteSizeLong(const MessageLite& base) { |
375 | | const FuzzerInput& this_ = static_cast<const FuzzerInput&>(base); |
376 | | #else // PROTOBUF_CUSTOM_VTABLE |
377 | 0 | ::size_t FuzzerInput::ByteSizeLong() const { |
378 | 0 | const FuzzerInput& this_ = *this; |
379 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
380 | | // @@protoc_insertion_point(message_byte_size_start:fuzz_topic_matches_sub.FuzzerInput) |
381 | 0 | ::size_t total_size = 0; |
382 | |
|
383 | 0 | ::uint32_t cached_has_bits = 0; |
384 | | // Prevent compiler warnings about cached_has_bits being unused |
385 | 0 | (void)cached_has_bits; |
386 | |
|
387 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
388 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
389 | 0 | if (cached_has_bits & 0x00000003u) { |
390 | | // required string string1 = 1; |
391 | 0 | if (cached_has_bits & 0x00000001u) { |
392 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( |
393 | 0 | this_._internal_string1()); |
394 | 0 | } |
395 | | // required string string2 = 2; |
396 | 0 | if (cached_has_bits & 0x00000002u) { |
397 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( |
398 | 0 | this_._internal_string2()); |
399 | 0 | } |
400 | 0 | } |
401 | 0 | if (cached_has_bits & 0x0000000cu) { |
402 | | // optional string username = 3; |
403 | 0 | if (cached_has_bits & 0x00000004u) { |
404 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( |
405 | 0 | this_._internal_username()); |
406 | 0 | } |
407 | | // optional string clientid = 4; |
408 | 0 | if (cached_has_bits & 0x00000008u) { |
409 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( |
410 | 0 | this_._internal_clientid()); |
411 | 0 | } |
412 | 0 | } |
413 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
414 | 0 | &this_._impl_._cached_size_); |
415 | 0 | } |
416 | | |
417 | 0 | void FuzzerInput::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
418 | 0 | auto* const _this = static_cast<FuzzerInput*>(&to_msg); |
419 | 0 | auto& from = static_cast<const FuzzerInput&>(from_msg); |
420 | | // @@protoc_insertion_point(class_specific_merge_from_start:fuzz_topic_matches_sub.FuzzerInput) |
421 | 0 | ABSL_DCHECK_NE(&from, _this); |
422 | 0 | ::uint32_t cached_has_bits = 0; |
423 | 0 | (void) cached_has_bits; |
424 | |
|
425 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
426 | 0 | if (cached_has_bits & 0x0000000fu) { |
427 | 0 | if (cached_has_bits & 0x00000001u) { |
428 | 0 | _this->_internal_set_string1(from._internal_string1()); |
429 | 0 | } |
430 | 0 | if (cached_has_bits & 0x00000002u) { |
431 | 0 | _this->_internal_set_string2(from._internal_string2()); |
432 | 0 | } |
433 | 0 | if (cached_has_bits & 0x00000004u) { |
434 | 0 | _this->_internal_set_username(from._internal_username()); |
435 | 0 | } |
436 | 0 | if (cached_has_bits & 0x00000008u) { |
437 | 0 | _this->_internal_set_clientid(from._internal_clientid()); |
438 | 0 | } |
439 | 0 | } |
440 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
441 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
442 | 0 | } |
443 | | |
444 | 0 | void FuzzerInput::CopyFrom(const FuzzerInput& from) { |
445 | | // @@protoc_insertion_point(class_specific_copy_from_start:fuzz_topic_matches_sub.FuzzerInput) |
446 | 0 | if (&from == this) return; |
447 | 0 | Clear(); |
448 | 0 | MergeFrom(from); |
449 | 0 | } |
450 | | |
451 | | PROTOBUF_NOINLINE bool FuzzerInput::IsInitializedImpl( |
452 | 0 | const MessageLite& msg) { |
453 | 0 | auto& this_ = static_cast<const FuzzerInput&>(msg); |
454 | 0 | if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { |
455 | 0 | return false; |
456 | 0 | } |
457 | 0 | return true; |
458 | 0 | } |
459 | | |
460 | 0 | void FuzzerInput::InternalSwap(FuzzerInput* PROTOBUF_RESTRICT other) { |
461 | 0 | using std::swap; |
462 | 0 | auto* arena = GetArena(); |
463 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
464 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
465 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
466 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.string1_, &other->_impl_.string1_, arena); |
467 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.string2_, &other->_impl_.string2_, arena); |
468 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.username_, &other->_impl_.username_, arena); |
469 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.clientid_, &other->_impl_.clientid_, arena); |
470 | 0 | } |
471 | | |
472 | 0 | ::google::protobuf::Metadata FuzzerInput::GetMetadata() const { |
473 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
474 | 0 | } |
475 | | // @@protoc_insertion_point(namespace_scope) |
476 | | } // namespace fuzz_topic_matches_sub |
477 | | namespace google { |
478 | | namespace protobuf { |
479 | | } // namespace protobuf |
480 | | } // namespace google |
481 | | // @@protoc_insertion_point(global_scope) |
482 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type |
483 | | _static_init2_ PROTOBUF_UNUSED = |
484 | | (::_pbi::AddDescriptors(&descriptor_table_libcommon_5ffuzz_5ftopic_5fmatching_2eproto), |
485 | | ::std::false_type{}); |
486 | | #include "google/protobuf/port_undef.inc" |