/src/genfiles/png_fuzz_proto.pb.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // NO CHECKED-IN PROTOBUF GENCODE |
3 | | // source: png_fuzz_proto.proto |
4 | | // Protobuf C++ Version: 5.29.3 |
5 | | |
6 | | #ifndef png_5ffuzz_5fproto_2eproto_2epb_2eh |
7 | | #define png_5ffuzz_5fproto_2eproto_2epb_2eh |
8 | | |
9 | | #include <limits> |
10 | | #include <string> |
11 | | #include <type_traits> |
12 | | #include <utility> |
13 | | |
14 | | #include "google/protobuf/runtime_version.h" |
15 | | #if PROTOBUF_VERSION != 5029003 |
16 | | #error "Protobuf C++ gencode is built with an incompatible version of" |
17 | | #error "Protobuf C++ headers/runtime. See" |
18 | | #error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" |
19 | | #endif |
20 | | #include "google/protobuf/io/coded_stream.h" |
21 | | #include "google/protobuf/arena.h" |
22 | | #include "google/protobuf/arenastring.h" |
23 | | #include "google/protobuf/generated_message_tctable_decl.h" |
24 | | #include "google/protobuf/generated_message_util.h" |
25 | | #include "google/protobuf/metadata_lite.h" |
26 | | #include "google/protobuf/generated_message_reflection.h" |
27 | | #include "google/protobuf/message.h" |
28 | | #include "google/protobuf/message_lite.h" |
29 | | #include "google/protobuf/repeated_field.h" // IWYU pragma: export |
30 | | #include "google/protobuf/extension_set.h" // IWYU pragma: export |
31 | | #include "google/protobuf/unknown_field_set.h" |
32 | | // @@protoc_insertion_point(includes) |
33 | | |
34 | | // Must be included last. |
35 | | #include "google/protobuf/port_def.inc" |
36 | | |
37 | | #define PROTOBUF_INTERNAL_EXPORT_png_5ffuzz_5fproto_2eproto |
38 | | |
39 | | namespace google { |
40 | | namespace protobuf { |
41 | | namespace internal { |
42 | | template <typename T> |
43 | | ::absl::string_view GetAnyMessageName(); |
44 | | } // namespace internal |
45 | | } // namespace protobuf |
46 | | } // namespace google |
47 | | |
48 | | // Internal implementation detail -- do not use these members. |
49 | | struct TableStruct_png_5ffuzz_5fproto_2eproto { |
50 | | static const ::uint32_t offsets[]; |
51 | | }; |
52 | | extern const ::google::protobuf::internal::DescriptorTable |
53 | | descriptor_table_png_5ffuzz_5fproto_2eproto; |
54 | | class IDAT; |
55 | | struct IDATDefaultTypeInternal; |
56 | | extern IDATDefaultTypeInternal _IDAT_default_instance_; |
57 | | class IHDR; |
58 | | struct IHDRDefaultTypeInternal; |
59 | | extern IHDRDefaultTypeInternal _IHDR_default_instance_; |
60 | | class OtherChunk; |
61 | | struct OtherChunkDefaultTypeInternal; |
62 | | extern OtherChunkDefaultTypeInternal _OtherChunk_default_instance_; |
63 | | class PLTE; |
64 | | struct PLTEDefaultTypeInternal; |
65 | | extern PLTEDefaultTypeInternal _PLTE_default_instance_; |
66 | | class PngChunk; |
67 | | struct PngChunkDefaultTypeInternal; |
68 | | extern PngChunkDefaultTypeInternal _PngChunk_default_instance_; |
69 | | class PngProto; |
70 | | struct PngProtoDefaultTypeInternal; |
71 | | extern PngProtoDefaultTypeInternal _PngProto_default_instance_; |
72 | | class iCCP; |
73 | | struct iCCPDefaultTypeInternal; |
74 | | extern iCCPDefaultTypeInternal _iCCP_default_instance_; |
75 | | namespace google { |
76 | | namespace protobuf { |
77 | | } // namespace protobuf |
78 | | } // namespace google |
79 | | |
80 | | |
81 | | // =================================================================== |
82 | | |
83 | | |
84 | | // ------------------------------------------------------------------- |
85 | | |
86 | | class iCCP final : public ::google::protobuf::Message |
87 | | /* @@protoc_insertion_point(class_definition:iCCP) */ { |
88 | | public: |
89 | 0 | inline iCCP() : iCCP(nullptr) {} |
90 | | ~iCCP() PROTOBUF_FINAL; |
91 | | |
92 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
93 | | void operator delete(iCCP* msg, std::destroying_delete_t) { |
94 | | SharedDtor(*msg); |
95 | | ::google::protobuf::internal::SizedDelete(msg, sizeof(iCCP)); |
96 | | } |
97 | | #endif |
98 | | |
99 | | template <typename = void> |
100 | | explicit PROTOBUF_CONSTEXPR iCCP( |
101 | | ::google::protobuf::internal::ConstantInitialized); |
102 | | |
103 | 0 | inline iCCP(const iCCP& from) : iCCP(nullptr, from) {} |
104 | | inline iCCP(iCCP&& from) noexcept |
105 | 0 | : iCCP(nullptr, std::move(from)) {} |
106 | 0 | inline iCCP& operator=(const iCCP& from) { |
107 | 0 | CopyFrom(from); |
108 | 0 | return *this; |
109 | 0 | } |
110 | 0 | inline iCCP& operator=(iCCP&& from) noexcept { |
111 | 0 | if (this == &from) return *this; |
112 | 0 | if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { |
113 | 0 | InternalSwap(&from); |
114 | 0 | } else { |
115 | 0 | CopyFrom(from); |
116 | 0 | } |
117 | 0 | return *this; |
118 | 0 | } |
119 | | |
120 | | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const |
121 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
122 | 0 | return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); |
123 | 0 | } |
124 | | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() |
125 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
126 | 0 | return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); |
127 | 0 | } |
128 | | |
129 | 0 | static const ::google::protobuf::Descriptor* descriptor() { |
130 | 0 | return GetDescriptor(); |
131 | 0 | } |
132 | 0 | static const ::google::protobuf::Descriptor* GetDescriptor() { |
133 | 0 | return default_instance().GetMetadata().descriptor; |
134 | 0 | } |
135 | 0 | static const ::google::protobuf::Reflection* GetReflection() { |
136 | 0 | return default_instance().GetMetadata().reflection; |
137 | 0 | } |
138 | 0 | static const iCCP& default_instance() { |
139 | 0 | return *internal_default_instance(); |
140 | 0 | } |
141 | 0 | static inline const iCCP* internal_default_instance() { |
142 | 0 | return reinterpret_cast<const iCCP*>( |
143 | 0 | &_iCCP_default_instance_); |
144 | 0 | } |
145 | | static constexpr int kIndexInFileMessages = 3; |
146 | 0 | friend void swap(iCCP& a, iCCP& b) { a.Swap(&b); } |
147 | 0 | inline void Swap(iCCP* other) { |
148 | 0 | if (other == this) return; |
149 | 0 | if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { |
150 | 0 | InternalSwap(other); |
151 | 0 | } else { |
152 | 0 | ::google::protobuf::internal::GenericSwap(this, other); |
153 | 0 | } |
154 | 0 | } |
155 | 0 | void UnsafeArenaSwap(iCCP* other) { |
156 | 0 | if (other == this) return; |
157 | 0 | ABSL_DCHECK(GetArena() == other->GetArena()); |
158 | 0 | InternalSwap(other); |
159 | 0 | } |
160 | | |
161 | | // implements Message ---------------------------------------------- |
162 | | |
163 | 0 | iCCP* New(::google::protobuf::Arena* arena = nullptr) const { |
164 | 0 | return ::google::protobuf::Message::DefaultConstruct<iCCP>(arena); |
165 | 0 | } |
166 | | using ::google::protobuf::Message::CopyFrom; |
167 | | void CopyFrom(const iCCP& from); |
168 | | using ::google::protobuf::Message::MergeFrom; |
169 | 0 | void MergeFrom(const iCCP& from) { iCCP::MergeImpl(*this, from); } |
170 | | |
171 | | private: |
172 | | static void MergeImpl( |
173 | | ::google::protobuf::MessageLite& to_msg, |
174 | | const ::google::protobuf::MessageLite& from_msg); |
175 | | |
176 | | public: |
177 | 0 | bool IsInitialized() const { |
178 | 0 | return IsInitializedImpl(*this); |
179 | 0 | } |
180 | | |
181 | | private: |
182 | | static bool IsInitializedImpl(const MessageLite& msg); |
183 | | |
184 | | public: |
185 | | ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; |
186 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
187 | | private: |
188 | | static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); |
189 | | static ::uint8_t* _InternalSerialize( |
190 | | const MessageLite& msg, ::uint8_t* target, |
191 | | ::google::protobuf::io::EpsCopyOutputStream* stream); |
192 | | |
193 | | public: |
194 | | ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } |
195 | | ::uint8_t* _InternalSerialize( |
196 | | ::uint8_t* target, |
197 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
198 | | return _InternalSerialize(*this, target, stream); |
199 | | } |
200 | | #else // PROTOBUF_CUSTOM_VTABLE |
201 | | ::size_t ByteSizeLong() const final; |
202 | | ::uint8_t* _InternalSerialize( |
203 | | ::uint8_t* target, |
204 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const final; |
205 | | #endif // PROTOBUF_CUSTOM_VTABLE |
206 | 0 | int GetCachedSize() const { return _impl_._cached_size_.Get(); } |
207 | | |
208 | | private: |
209 | | void SharedCtor(::google::protobuf::Arena* arena); |
210 | | static void SharedDtor(MessageLite& self); |
211 | | void InternalSwap(iCCP* other); |
212 | | private: |
213 | | template <typename T> |
214 | | friend ::absl::string_view( |
215 | | ::google::protobuf::internal::GetAnyMessageName)(); |
216 | 0 | static ::absl::string_view FullMessageName() { return "iCCP"; } |
217 | | |
218 | | protected: |
219 | | explicit iCCP(::google::protobuf::Arena* arena); |
220 | | iCCP(::google::protobuf::Arena* arena, const iCCP& from); |
221 | | iCCP(::google::protobuf::Arena* arena, iCCP&& from) noexcept |
222 | 0 | : iCCP(arena) { |
223 | 0 | *this = ::std::move(from); |
224 | 0 | } |
225 | | const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; |
226 | | static void* PlacementNew_(const void*, void* mem, |
227 | | ::google::protobuf::Arena* arena); |
228 | | static constexpr auto InternalNewImpl_(); |
229 | | static const ::google::protobuf::internal::ClassDataFull _class_data_; |
230 | | |
231 | | public: |
232 | | ::google::protobuf::Metadata GetMetadata() const; |
233 | | // nested types ---------------------------------------------------- |
234 | | |
235 | | // accessors ------------------------------------------------------- |
236 | | enum : int { |
237 | | kDataFieldNumber = 2, |
238 | | }; |
239 | | // required bytes data = 2; |
240 | | bool has_data() const; |
241 | | void clear_data() ; |
242 | | const std::string& data() const; |
243 | | template <typename Arg_ = const std::string&, typename... Args_> |
244 | | void set_data(Arg_&& arg, Args_... args); |
245 | | std::string* mutable_data(); |
246 | | PROTOBUF_NODISCARD std::string* release_data(); |
247 | | void set_allocated_data(std::string* value); |
248 | | |
249 | | private: |
250 | | const std::string& _internal_data() const; |
251 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_data( |
252 | | const std::string& value); |
253 | | std::string* _internal_mutable_data(); |
254 | | |
255 | | public: |
256 | | // @@protoc_insertion_point(class_scope:iCCP) |
257 | | private: |
258 | | class _Internal; |
259 | | friend class ::google::protobuf::internal::TcParser; |
260 | | static const ::google::protobuf::internal::TcParseTable< |
261 | | 0, 1, 0, |
262 | | 0, 2> |
263 | | _table_; |
264 | | |
265 | | friend class ::google::protobuf::MessageLite; |
266 | | friend class ::google::protobuf::Arena; |
267 | | template <typename T> |
268 | | friend class ::google::protobuf::Arena::InternalHelper; |
269 | | using InternalArenaConstructable_ = void; |
270 | | using DestructorSkippable_ = void; |
271 | | struct Impl_ { |
272 | | inline explicit constexpr Impl_( |
273 | | ::google::protobuf::internal::ConstantInitialized) noexcept; |
274 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
275 | | ::google::protobuf::Arena* arena); |
276 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
277 | | ::google::protobuf::Arena* arena, const Impl_& from, |
278 | | const iCCP& from_msg); |
279 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
280 | | ::google::protobuf::internal::CachedSize _cached_size_; |
281 | | ::google::protobuf::internal::ArenaStringPtr data_; |
282 | | PROTOBUF_TSAN_DECLARE_MEMBER |
283 | | }; |
284 | | union { Impl_ _impl_; }; |
285 | | friend struct ::TableStruct_png_5ffuzz_5fproto_2eproto; |
286 | | }; |
287 | | // ------------------------------------------------------------------- |
288 | | |
289 | | class PLTE final : public ::google::protobuf::Message |
290 | | /* @@protoc_insertion_point(class_definition:PLTE) */ { |
291 | | public: |
292 | 0 | inline PLTE() : PLTE(nullptr) {} |
293 | | ~PLTE() PROTOBUF_FINAL; |
294 | | |
295 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
296 | | void operator delete(PLTE* msg, std::destroying_delete_t) { |
297 | | SharedDtor(*msg); |
298 | | ::google::protobuf::internal::SizedDelete(msg, sizeof(PLTE)); |
299 | | } |
300 | | #endif |
301 | | |
302 | | template <typename = void> |
303 | | explicit PROTOBUF_CONSTEXPR PLTE( |
304 | | ::google::protobuf::internal::ConstantInitialized); |
305 | | |
306 | 0 | inline PLTE(const PLTE& from) : PLTE(nullptr, from) {} |
307 | | inline PLTE(PLTE&& from) noexcept |
308 | 0 | : PLTE(nullptr, std::move(from)) {} |
309 | 0 | inline PLTE& operator=(const PLTE& from) { |
310 | 0 | CopyFrom(from); |
311 | 0 | return *this; |
312 | 0 | } |
313 | 0 | inline PLTE& operator=(PLTE&& from) noexcept { |
314 | 0 | if (this == &from) return *this; |
315 | 0 | if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { |
316 | 0 | InternalSwap(&from); |
317 | 0 | } else { |
318 | 0 | CopyFrom(from); |
319 | 0 | } |
320 | 0 | return *this; |
321 | 0 | } |
322 | | |
323 | | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const |
324 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
325 | 0 | return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); |
326 | 0 | } |
327 | | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() |
328 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
329 | 0 | return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); |
330 | 0 | } |
331 | | |
332 | 0 | static const ::google::protobuf::Descriptor* descriptor() { |
333 | 0 | return GetDescriptor(); |
334 | 0 | } |
335 | 0 | static const ::google::protobuf::Descriptor* GetDescriptor() { |
336 | 0 | return default_instance().GetMetadata().descriptor; |
337 | 0 | } |
338 | 0 | static const ::google::protobuf::Reflection* GetReflection() { |
339 | 0 | return default_instance().GetMetadata().reflection; |
340 | 0 | } |
341 | 0 | static const PLTE& default_instance() { |
342 | 0 | return *internal_default_instance(); |
343 | 0 | } |
344 | 0 | static inline const PLTE* internal_default_instance() { |
345 | 0 | return reinterpret_cast<const PLTE*>( |
346 | 0 | &_PLTE_default_instance_); |
347 | 0 | } |
348 | | static constexpr int kIndexInFileMessages = 1; |
349 | 0 | friend void swap(PLTE& a, PLTE& b) { a.Swap(&b); } |
350 | 0 | inline void Swap(PLTE* other) { |
351 | 0 | if (other == this) return; |
352 | 0 | if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { |
353 | 0 | InternalSwap(other); |
354 | 0 | } else { |
355 | 0 | ::google::protobuf::internal::GenericSwap(this, other); |
356 | 0 | } |
357 | 0 | } |
358 | 0 | void UnsafeArenaSwap(PLTE* other) { |
359 | 0 | if (other == this) return; |
360 | 0 | ABSL_DCHECK(GetArena() == other->GetArena()); |
361 | 0 | InternalSwap(other); |
362 | 0 | } |
363 | | |
364 | | // implements Message ---------------------------------------------- |
365 | | |
366 | 0 | PLTE* New(::google::protobuf::Arena* arena = nullptr) const { |
367 | 0 | return ::google::protobuf::Message::DefaultConstruct<PLTE>(arena); |
368 | 0 | } |
369 | | using ::google::protobuf::Message::CopyFrom; |
370 | | void CopyFrom(const PLTE& from); |
371 | | using ::google::protobuf::Message::MergeFrom; |
372 | 0 | void MergeFrom(const PLTE& from) { PLTE::MergeImpl(*this, from); } |
373 | | |
374 | | private: |
375 | | static void MergeImpl( |
376 | | ::google::protobuf::MessageLite& to_msg, |
377 | | const ::google::protobuf::MessageLite& from_msg); |
378 | | |
379 | | public: |
380 | 0 | bool IsInitialized() const { |
381 | 0 | return IsInitializedImpl(*this); |
382 | 0 | } |
383 | | |
384 | | private: |
385 | | static bool IsInitializedImpl(const MessageLite& msg); |
386 | | |
387 | | public: |
388 | | ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; |
389 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
390 | | private: |
391 | | static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); |
392 | | static ::uint8_t* _InternalSerialize( |
393 | | const MessageLite& msg, ::uint8_t* target, |
394 | | ::google::protobuf::io::EpsCopyOutputStream* stream); |
395 | | |
396 | | public: |
397 | | ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } |
398 | | ::uint8_t* _InternalSerialize( |
399 | | ::uint8_t* target, |
400 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
401 | | return _InternalSerialize(*this, target, stream); |
402 | | } |
403 | | #else // PROTOBUF_CUSTOM_VTABLE |
404 | | ::size_t ByteSizeLong() const final; |
405 | | ::uint8_t* _InternalSerialize( |
406 | | ::uint8_t* target, |
407 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const final; |
408 | | #endif // PROTOBUF_CUSTOM_VTABLE |
409 | 0 | int GetCachedSize() const { return _impl_._cached_size_.Get(); } |
410 | | |
411 | | private: |
412 | | void SharedCtor(::google::protobuf::Arena* arena); |
413 | | static void SharedDtor(MessageLite& self); |
414 | | void InternalSwap(PLTE* other); |
415 | | private: |
416 | | template <typename T> |
417 | | friend ::absl::string_view( |
418 | | ::google::protobuf::internal::GetAnyMessageName)(); |
419 | 0 | static ::absl::string_view FullMessageName() { return "PLTE"; } |
420 | | |
421 | | protected: |
422 | | explicit PLTE(::google::protobuf::Arena* arena); |
423 | | PLTE(::google::protobuf::Arena* arena, const PLTE& from); |
424 | | PLTE(::google::protobuf::Arena* arena, PLTE&& from) noexcept |
425 | 0 | : PLTE(arena) { |
426 | 0 | *this = ::std::move(from); |
427 | 0 | } |
428 | | const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; |
429 | | static void* PlacementNew_(const void*, void* mem, |
430 | | ::google::protobuf::Arena* arena); |
431 | | static constexpr auto InternalNewImpl_(); |
432 | | static const ::google::protobuf::internal::ClassDataFull _class_data_; |
433 | | |
434 | | public: |
435 | | ::google::protobuf::Metadata GetMetadata() const; |
436 | | // nested types ---------------------------------------------------- |
437 | | |
438 | | // accessors ------------------------------------------------------- |
439 | | enum : int { |
440 | | kDataFieldNumber = 1, |
441 | | }; |
442 | | // required bytes data = 1; |
443 | | bool has_data() const; |
444 | | void clear_data() ; |
445 | | const std::string& data() const; |
446 | | template <typename Arg_ = const std::string&, typename... Args_> |
447 | | void set_data(Arg_&& arg, Args_... args); |
448 | | std::string* mutable_data(); |
449 | | PROTOBUF_NODISCARD std::string* release_data(); |
450 | | void set_allocated_data(std::string* value); |
451 | | |
452 | | private: |
453 | | const std::string& _internal_data() const; |
454 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_data( |
455 | | const std::string& value); |
456 | | std::string* _internal_mutable_data(); |
457 | | |
458 | | public: |
459 | | // @@protoc_insertion_point(class_scope:PLTE) |
460 | | private: |
461 | | class _Internal; |
462 | | friend class ::google::protobuf::internal::TcParser; |
463 | | static const ::google::protobuf::internal::TcParseTable< |
464 | | 0, 1, 0, |
465 | | 0, 2> |
466 | | _table_; |
467 | | |
468 | | friend class ::google::protobuf::MessageLite; |
469 | | friend class ::google::protobuf::Arena; |
470 | | template <typename T> |
471 | | friend class ::google::protobuf::Arena::InternalHelper; |
472 | | using InternalArenaConstructable_ = void; |
473 | | using DestructorSkippable_ = void; |
474 | | struct Impl_ { |
475 | | inline explicit constexpr Impl_( |
476 | | ::google::protobuf::internal::ConstantInitialized) noexcept; |
477 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
478 | | ::google::protobuf::Arena* arena); |
479 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
480 | | ::google::protobuf::Arena* arena, const Impl_& from, |
481 | | const PLTE& from_msg); |
482 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
483 | | ::google::protobuf::internal::CachedSize _cached_size_; |
484 | | ::google::protobuf::internal::ArenaStringPtr data_; |
485 | | PROTOBUF_TSAN_DECLARE_MEMBER |
486 | | }; |
487 | | union { Impl_ _impl_; }; |
488 | | friend struct ::TableStruct_png_5ffuzz_5fproto_2eproto; |
489 | | }; |
490 | | // ------------------------------------------------------------------- |
491 | | |
492 | | class OtherChunk final : public ::google::protobuf::Message |
493 | | /* @@protoc_insertion_point(class_definition:OtherChunk) */ { |
494 | | public: |
495 | 0 | inline OtherChunk() : OtherChunk(nullptr) {} |
496 | | ~OtherChunk() PROTOBUF_FINAL; |
497 | | |
498 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
499 | | void operator delete(OtherChunk* msg, std::destroying_delete_t) { |
500 | | SharedDtor(*msg); |
501 | | ::google::protobuf::internal::SizedDelete(msg, sizeof(OtherChunk)); |
502 | | } |
503 | | #endif |
504 | | |
505 | | template <typename = void> |
506 | | explicit PROTOBUF_CONSTEXPR OtherChunk( |
507 | | ::google::protobuf::internal::ConstantInitialized); |
508 | | |
509 | 0 | inline OtherChunk(const OtherChunk& from) : OtherChunk(nullptr, from) {} |
510 | | inline OtherChunk(OtherChunk&& from) noexcept |
511 | 0 | : OtherChunk(nullptr, std::move(from)) {} |
512 | 0 | inline OtherChunk& operator=(const OtherChunk& from) { |
513 | 0 | CopyFrom(from); |
514 | 0 | return *this; |
515 | 0 | } |
516 | 0 | inline OtherChunk& operator=(OtherChunk&& from) noexcept { |
517 | 0 | if (this == &from) return *this; |
518 | 0 | if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { |
519 | 0 | InternalSwap(&from); |
520 | 0 | } else { |
521 | 0 | CopyFrom(from); |
522 | 0 | } |
523 | 0 | return *this; |
524 | 0 | } |
525 | | |
526 | | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const |
527 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
528 | 0 | return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); |
529 | 0 | } |
530 | | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() |
531 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
532 | 0 | return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); |
533 | 0 | } |
534 | | |
535 | 2 | static const ::google::protobuf::Descriptor* descriptor() { |
536 | 2 | return GetDescriptor(); |
537 | 2 | } |
538 | 2 | static const ::google::protobuf::Descriptor* GetDescriptor() { |
539 | 2 | return default_instance().GetMetadata().descriptor; |
540 | 2 | } |
541 | 0 | static const ::google::protobuf::Reflection* GetReflection() { |
542 | 0 | return default_instance().GetMetadata().reflection; |
543 | 0 | } |
544 | 2 | static const OtherChunk& default_instance() { |
545 | 2 | return *internal_default_instance(); |
546 | 2 | } |
547 | | enum TypeCase { |
548 | | kKnownType = 1, |
549 | | kUnknownType = 2, |
550 | | TYPE_NOT_SET = 0, |
551 | | }; |
552 | 2 | static inline const OtherChunk* internal_default_instance() { |
553 | 2 | return reinterpret_cast<const OtherChunk*>( |
554 | 2 | &_OtherChunk_default_instance_); |
555 | 2 | } |
556 | | static constexpr int kIndexInFileMessages = 4; |
557 | 0 | friend void swap(OtherChunk& a, OtherChunk& b) { a.Swap(&b); } |
558 | 0 | inline void Swap(OtherChunk* other) { |
559 | 0 | if (other == this) return; |
560 | 0 | if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { |
561 | 0 | InternalSwap(other); |
562 | 0 | } else { |
563 | 0 | ::google::protobuf::internal::GenericSwap(this, other); |
564 | 0 | } |
565 | 0 | } |
566 | 0 | void UnsafeArenaSwap(OtherChunk* other) { |
567 | 0 | if (other == this) return; |
568 | 0 | ABSL_DCHECK(GetArena() == other->GetArena()); |
569 | 0 | InternalSwap(other); |
570 | 0 | } |
571 | | |
572 | | // implements Message ---------------------------------------------- |
573 | | |
574 | 0 | OtherChunk* New(::google::protobuf::Arena* arena = nullptr) const { |
575 | 0 | return ::google::protobuf::Message::DefaultConstruct<OtherChunk>(arena); |
576 | 0 | } |
577 | | using ::google::protobuf::Message::CopyFrom; |
578 | | void CopyFrom(const OtherChunk& from); |
579 | | using ::google::protobuf::Message::MergeFrom; |
580 | 0 | void MergeFrom(const OtherChunk& from) { OtherChunk::MergeImpl(*this, from); } |
581 | | |
582 | | private: |
583 | | static void MergeImpl( |
584 | | ::google::protobuf::MessageLite& to_msg, |
585 | | const ::google::protobuf::MessageLite& from_msg); |
586 | | |
587 | | public: |
588 | 0 | bool IsInitialized() const { |
589 | 0 | return IsInitializedImpl(*this); |
590 | 0 | } |
591 | | |
592 | | private: |
593 | | static bool IsInitializedImpl(const MessageLite& msg); |
594 | | |
595 | | public: |
596 | | ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; |
597 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
598 | | private: |
599 | | static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); |
600 | | static ::uint8_t* _InternalSerialize( |
601 | | const MessageLite& msg, ::uint8_t* target, |
602 | | ::google::protobuf::io::EpsCopyOutputStream* stream); |
603 | | |
604 | | public: |
605 | | ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } |
606 | | ::uint8_t* _InternalSerialize( |
607 | | ::uint8_t* target, |
608 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
609 | | return _InternalSerialize(*this, target, stream); |
610 | | } |
611 | | #else // PROTOBUF_CUSTOM_VTABLE |
612 | | ::size_t ByteSizeLong() const final; |
613 | | ::uint8_t* _InternalSerialize( |
614 | | ::uint8_t* target, |
615 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const final; |
616 | | #endif // PROTOBUF_CUSTOM_VTABLE |
617 | 0 | int GetCachedSize() const { return _impl_._cached_size_.Get(); } |
618 | | |
619 | | private: |
620 | | void SharedCtor(::google::protobuf::Arena* arena); |
621 | | static void SharedDtor(MessageLite& self); |
622 | | void InternalSwap(OtherChunk* other); |
623 | | private: |
624 | | template <typename T> |
625 | | friend ::absl::string_view( |
626 | | ::google::protobuf::internal::GetAnyMessageName)(); |
627 | 0 | static ::absl::string_view FullMessageName() { return "OtherChunk"; } |
628 | | |
629 | | protected: |
630 | | explicit OtherChunk(::google::protobuf::Arena* arena); |
631 | | OtherChunk(::google::protobuf::Arena* arena, const OtherChunk& from); |
632 | | OtherChunk(::google::protobuf::Arena* arena, OtherChunk&& from) noexcept |
633 | 0 | : OtherChunk(arena) { |
634 | 0 | *this = ::std::move(from); |
635 | 0 | } |
636 | | const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; |
637 | | static void* PlacementNew_(const void*, void* mem, |
638 | | ::google::protobuf::Arena* arena); |
639 | | static constexpr auto InternalNewImpl_(); |
640 | | static const ::google::protobuf::internal::ClassDataFull _class_data_; |
641 | | |
642 | | public: |
643 | | ::google::protobuf::Metadata GetMetadata() const; |
644 | | // nested types ---------------------------------------------------- |
645 | | |
646 | | // accessors ------------------------------------------------------- |
647 | | enum : int { |
648 | | kDataFieldNumber = 3, |
649 | | kKnownTypeFieldNumber = 1, |
650 | | kUnknownTypeFieldNumber = 2, |
651 | | }; |
652 | | // required bytes data = 3; |
653 | | bool has_data() const; |
654 | | void clear_data() ; |
655 | | const std::string& data() const; |
656 | | template <typename Arg_ = const std::string&, typename... Args_> |
657 | | void set_data(Arg_&& arg, Args_... args); |
658 | | std::string* mutable_data(); |
659 | | PROTOBUF_NODISCARD std::string* release_data(); |
660 | | void set_allocated_data(std::string* value); |
661 | | |
662 | | private: |
663 | | const std::string& _internal_data() const; |
664 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_data( |
665 | | const std::string& value); |
666 | | std::string* _internal_mutable_data(); |
667 | | |
668 | | public: |
669 | | // uint32 known_type = 1; |
670 | | bool has_known_type() const; |
671 | | void clear_known_type() ; |
672 | | ::uint32_t known_type() const; |
673 | | void set_known_type(::uint32_t value); |
674 | | |
675 | | private: |
676 | | ::uint32_t _internal_known_type() const; |
677 | | void _internal_set_known_type(::uint32_t value); |
678 | | |
679 | | public: |
680 | | // uint32 unknown_type = 2; |
681 | | bool has_unknown_type() const; |
682 | | void clear_unknown_type() ; |
683 | | ::uint32_t unknown_type() const; |
684 | | void set_unknown_type(::uint32_t value); |
685 | | |
686 | | private: |
687 | | ::uint32_t _internal_unknown_type() const; |
688 | | void _internal_set_unknown_type(::uint32_t value); |
689 | | |
690 | | public: |
691 | | void clear_type(); |
692 | | TypeCase type_case() const; |
693 | | // @@protoc_insertion_point(class_scope:OtherChunk) |
694 | | private: |
695 | | class _Internal; |
696 | | void set_has_known_type(); |
697 | | void set_has_unknown_type(); |
698 | | inline bool has_type() const; |
699 | | inline void clear_has_type(); |
700 | | friend class ::google::protobuf::internal::TcParser; |
701 | | static const ::google::protobuf::internal::TcParseTable< |
702 | | 0, 3, 0, |
703 | | 0, 2> |
704 | | _table_; |
705 | | |
706 | | friend class ::google::protobuf::MessageLite; |
707 | | friend class ::google::protobuf::Arena; |
708 | | template <typename T> |
709 | | friend class ::google::protobuf::Arena::InternalHelper; |
710 | | using InternalArenaConstructable_ = void; |
711 | | using DestructorSkippable_ = void; |
712 | | struct Impl_ { |
713 | | inline explicit constexpr Impl_( |
714 | | ::google::protobuf::internal::ConstantInitialized) noexcept; |
715 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
716 | | ::google::protobuf::Arena* arena); |
717 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
718 | | ::google::protobuf::Arena* arena, const Impl_& from, |
719 | | const OtherChunk& from_msg); |
720 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
721 | | ::google::protobuf::internal::CachedSize _cached_size_; |
722 | | ::google::protobuf::internal::ArenaStringPtr data_; |
723 | | union TypeUnion { |
724 | 35.7k | constexpr TypeUnion() : _constinit_{} {} |
725 | | ::google::protobuf::internal::ConstantInitialized _constinit_; |
726 | | ::uint32_t known_type_; |
727 | | ::uint32_t unknown_type_; |
728 | | } type_; |
729 | | ::uint32_t _oneof_case_[1]; |
730 | | PROTOBUF_TSAN_DECLARE_MEMBER |
731 | | }; |
732 | | union { Impl_ _impl_; }; |
733 | | friend struct ::TableStruct_png_5ffuzz_5fproto_2eproto; |
734 | | }; |
735 | | // ------------------------------------------------------------------- |
736 | | |
737 | | class IHDR final : public ::google::protobuf::Message |
738 | | /* @@protoc_insertion_point(class_definition:IHDR) */ { |
739 | | public: |
740 | 0 | inline IHDR() : IHDR(nullptr) {} |
741 | | ~IHDR() PROTOBUF_FINAL; |
742 | | |
743 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
744 | | void operator delete(IHDR* msg, std::destroying_delete_t) { |
745 | | SharedDtor(*msg); |
746 | | ::google::protobuf::internal::SizedDelete(msg, sizeof(IHDR)); |
747 | | } |
748 | | #endif |
749 | | |
750 | | template <typename = void> |
751 | | explicit PROTOBUF_CONSTEXPR IHDR( |
752 | | ::google::protobuf::internal::ConstantInitialized); |
753 | | |
754 | 0 | inline IHDR(const IHDR& from) : IHDR(nullptr, from) {} |
755 | | inline IHDR(IHDR&& from) noexcept |
756 | 0 | : IHDR(nullptr, std::move(from)) {} |
757 | 0 | inline IHDR& operator=(const IHDR& from) { |
758 | 0 | CopyFrom(from); |
759 | 0 | return *this; |
760 | 0 | } |
761 | 0 | inline IHDR& operator=(IHDR&& from) noexcept { |
762 | 0 | if (this == &from) return *this; |
763 | 0 | if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { |
764 | 0 | InternalSwap(&from); |
765 | 0 | } else { |
766 | 0 | CopyFrom(from); |
767 | 0 | } |
768 | 0 | return *this; |
769 | 0 | } |
770 | | |
771 | | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const |
772 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
773 | 0 | return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); |
774 | 0 | } |
775 | | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() |
776 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
777 | 0 | return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); |
778 | 0 | } |
779 | | |
780 | 0 | static const ::google::protobuf::Descriptor* descriptor() { |
781 | 0 | return GetDescriptor(); |
782 | 0 | } |
783 | 0 | static const ::google::protobuf::Descriptor* GetDescriptor() { |
784 | 0 | return default_instance().GetMetadata().descriptor; |
785 | 0 | } |
786 | 0 | static const ::google::protobuf::Reflection* GetReflection() { |
787 | 0 | return default_instance().GetMetadata().reflection; |
788 | 0 | } |
789 | 0 | static const IHDR& default_instance() { |
790 | 0 | return *internal_default_instance(); |
791 | 0 | } |
792 | 0 | static inline const IHDR* internal_default_instance() { |
793 | 0 | return reinterpret_cast<const IHDR*>( |
794 | 0 | &_IHDR_default_instance_); |
795 | 0 | } |
796 | | static constexpr int kIndexInFileMessages = 0; |
797 | 0 | friend void swap(IHDR& a, IHDR& b) { a.Swap(&b); } |
798 | 0 | inline void Swap(IHDR* other) { |
799 | 0 | if (other == this) return; |
800 | 0 | if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { |
801 | 0 | InternalSwap(other); |
802 | 0 | } else { |
803 | 0 | ::google::protobuf::internal::GenericSwap(this, other); |
804 | 0 | } |
805 | 0 | } |
806 | 0 | void UnsafeArenaSwap(IHDR* other) { |
807 | 0 | if (other == this) return; |
808 | 0 | ABSL_DCHECK(GetArena() == other->GetArena()); |
809 | 0 | InternalSwap(other); |
810 | 0 | } |
811 | | |
812 | | // implements Message ---------------------------------------------- |
813 | | |
814 | 0 | IHDR* New(::google::protobuf::Arena* arena = nullptr) const { |
815 | 0 | return ::google::protobuf::Message::DefaultConstruct<IHDR>(arena); |
816 | 0 | } |
817 | | using ::google::protobuf::Message::CopyFrom; |
818 | | void CopyFrom(const IHDR& from); |
819 | | using ::google::protobuf::Message::MergeFrom; |
820 | 0 | void MergeFrom(const IHDR& from) { IHDR::MergeImpl(*this, from); } |
821 | | |
822 | | private: |
823 | | static void MergeImpl( |
824 | | ::google::protobuf::MessageLite& to_msg, |
825 | | const ::google::protobuf::MessageLite& from_msg); |
826 | | |
827 | | public: |
828 | 0 | bool IsInitialized() const { |
829 | 0 | return IsInitializedImpl(*this); |
830 | 0 | } |
831 | | |
832 | | private: |
833 | | static bool IsInitializedImpl(const MessageLite& msg); |
834 | | |
835 | | public: |
836 | | ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; |
837 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
838 | | private: |
839 | | static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); |
840 | | static ::uint8_t* _InternalSerialize( |
841 | | const MessageLite& msg, ::uint8_t* target, |
842 | | ::google::protobuf::io::EpsCopyOutputStream* stream); |
843 | | |
844 | | public: |
845 | | ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } |
846 | | ::uint8_t* _InternalSerialize( |
847 | | ::uint8_t* target, |
848 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
849 | | return _InternalSerialize(*this, target, stream); |
850 | | } |
851 | | #else // PROTOBUF_CUSTOM_VTABLE |
852 | | ::size_t ByteSizeLong() const final; |
853 | | ::uint8_t* _InternalSerialize( |
854 | | ::uint8_t* target, |
855 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const final; |
856 | | #endif // PROTOBUF_CUSTOM_VTABLE |
857 | 0 | int GetCachedSize() const { return _impl_._cached_size_.Get(); } |
858 | | |
859 | | private: |
860 | | void SharedCtor(::google::protobuf::Arena* arena); |
861 | | static void SharedDtor(MessageLite& self); |
862 | | void InternalSwap(IHDR* other); |
863 | | private: |
864 | | template <typename T> |
865 | | friend ::absl::string_view( |
866 | | ::google::protobuf::internal::GetAnyMessageName)(); |
867 | 0 | static ::absl::string_view FullMessageName() { return "IHDR"; } |
868 | | |
869 | | protected: |
870 | | explicit IHDR(::google::protobuf::Arena* arena); |
871 | | IHDR(::google::protobuf::Arena* arena, const IHDR& from); |
872 | | IHDR(::google::protobuf::Arena* arena, IHDR&& from) noexcept |
873 | 0 | : IHDR(arena) { |
874 | 0 | *this = ::std::move(from); |
875 | 0 | } |
876 | | const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; |
877 | | static void* PlacementNew_(const void*, void* mem, |
878 | | ::google::protobuf::Arena* arena); |
879 | | static constexpr auto InternalNewImpl_(); |
880 | | static const ::google::protobuf::internal::ClassDataFull _class_data_; |
881 | | |
882 | | public: |
883 | | ::google::protobuf::Metadata GetMetadata() const; |
884 | | // nested types ---------------------------------------------------- |
885 | | |
886 | | // accessors ------------------------------------------------------- |
887 | | enum : int { |
888 | | kWidthFieldNumber = 1, |
889 | | kHeightFieldNumber = 2, |
890 | | kOther1FieldNumber = 3, |
891 | | kOther2FieldNumber = 4, |
892 | | }; |
893 | | // required uint32 width = 1; |
894 | | bool has_width() const; |
895 | | void clear_width() ; |
896 | | ::uint32_t width() const; |
897 | | void set_width(::uint32_t value); |
898 | | |
899 | | private: |
900 | | ::uint32_t _internal_width() const; |
901 | | void _internal_set_width(::uint32_t value); |
902 | | |
903 | | public: |
904 | | // required uint32 height = 2; |
905 | | bool has_height() const; |
906 | | void clear_height() ; |
907 | | ::uint32_t height() const; |
908 | | void set_height(::uint32_t value); |
909 | | |
910 | | private: |
911 | | ::uint32_t _internal_height() const; |
912 | | void _internal_set_height(::uint32_t value); |
913 | | |
914 | | public: |
915 | | // required uint32 other1 = 3; |
916 | | bool has_other1() const; |
917 | | void clear_other1() ; |
918 | | ::uint32_t other1() const; |
919 | | void set_other1(::uint32_t value); |
920 | | |
921 | | private: |
922 | | ::uint32_t _internal_other1() const; |
923 | | void _internal_set_other1(::uint32_t value); |
924 | | |
925 | | public: |
926 | | // required uint32 other2 = 4; |
927 | | bool has_other2() const; |
928 | | void clear_other2() ; |
929 | | ::uint32_t other2() const; |
930 | | void set_other2(::uint32_t value); |
931 | | |
932 | | private: |
933 | | ::uint32_t _internal_other2() const; |
934 | | void _internal_set_other2(::uint32_t value); |
935 | | |
936 | | public: |
937 | | // @@protoc_insertion_point(class_scope:IHDR) |
938 | | private: |
939 | | class _Internal; |
940 | | friend class ::google::protobuf::internal::TcParser; |
941 | | static const ::google::protobuf::internal::TcParseTable< |
942 | | 2, 4, 0, |
943 | | 0, 2> |
944 | | _table_; |
945 | | |
946 | | friend class ::google::protobuf::MessageLite; |
947 | | friend class ::google::protobuf::Arena; |
948 | | template <typename T> |
949 | | friend class ::google::protobuf::Arena::InternalHelper; |
950 | | using InternalArenaConstructable_ = void; |
951 | | using DestructorSkippable_ = void; |
952 | | struct Impl_ { |
953 | | inline explicit constexpr Impl_( |
954 | | ::google::protobuf::internal::ConstantInitialized) noexcept; |
955 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
956 | | ::google::protobuf::Arena* arena); |
957 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
958 | | ::google::protobuf::Arena* arena, const Impl_& from, |
959 | | const IHDR& from_msg); |
960 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
961 | | ::google::protobuf::internal::CachedSize _cached_size_; |
962 | | ::uint32_t width_; |
963 | | ::uint32_t height_; |
964 | | ::uint32_t other1_; |
965 | | ::uint32_t other2_; |
966 | | PROTOBUF_TSAN_DECLARE_MEMBER |
967 | | }; |
968 | | union { Impl_ _impl_; }; |
969 | | friend struct ::TableStruct_png_5ffuzz_5fproto_2eproto; |
970 | | }; |
971 | | // ------------------------------------------------------------------- |
972 | | |
973 | | class IDAT final : public ::google::protobuf::Message |
974 | | /* @@protoc_insertion_point(class_definition:IDAT) */ { |
975 | | public: |
976 | 0 | inline IDAT() : IDAT(nullptr) {} |
977 | | ~IDAT() PROTOBUF_FINAL; |
978 | | |
979 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
980 | | void operator delete(IDAT* msg, std::destroying_delete_t) { |
981 | | SharedDtor(*msg); |
982 | | ::google::protobuf::internal::SizedDelete(msg, sizeof(IDAT)); |
983 | | } |
984 | | #endif |
985 | | |
986 | | template <typename = void> |
987 | | explicit PROTOBUF_CONSTEXPR IDAT( |
988 | | ::google::protobuf::internal::ConstantInitialized); |
989 | | |
990 | 0 | inline IDAT(const IDAT& from) : IDAT(nullptr, from) {} |
991 | | inline IDAT(IDAT&& from) noexcept |
992 | 0 | : IDAT(nullptr, std::move(from)) {} |
993 | 0 | inline IDAT& operator=(const IDAT& from) { |
994 | 0 | CopyFrom(from); |
995 | 0 | return *this; |
996 | 0 | } |
997 | 0 | inline IDAT& operator=(IDAT&& from) noexcept { |
998 | 0 | if (this == &from) return *this; |
999 | 0 | if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { |
1000 | 0 | InternalSwap(&from); |
1001 | 0 | } else { |
1002 | 0 | CopyFrom(from); |
1003 | 0 | } |
1004 | 0 | return *this; |
1005 | 0 | } |
1006 | | |
1007 | | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const |
1008 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
1009 | 0 | return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); |
1010 | 0 | } |
1011 | | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() |
1012 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
1013 | 0 | return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); |
1014 | 0 | } |
1015 | | |
1016 | 0 | static const ::google::protobuf::Descriptor* descriptor() { |
1017 | 0 | return GetDescriptor(); |
1018 | 0 | } |
1019 | 0 | static const ::google::protobuf::Descriptor* GetDescriptor() { |
1020 | 0 | return default_instance().GetMetadata().descriptor; |
1021 | 0 | } |
1022 | 0 | static const ::google::protobuf::Reflection* GetReflection() { |
1023 | 0 | return default_instance().GetMetadata().reflection; |
1024 | 0 | } |
1025 | 0 | static const IDAT& default_instance() { |
1026 | 0 | return *internal_default_instance(); |
1027 | 0 | } |
1028 | 0 | static inline const IDAT* internal_default_instance() { |
1029 | 0 | return reinterpret_cast<const IDAT*>( |
1030 | 0 | &_IDAT_default_instance_); |
1031 | 0 | } |
1032 | | static constexpr int kIndexInFileMessages = 2; |
1033 | 0 | friend void swap(IDAT& a, IDAT& b) { a.Swap(&b); } |
1034 | 0 | inline void Swap(IDAT* other) { |
1035 | 0 | if (other == this) return; |
1036 | 0 | if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { |
1037 | 0 | InternalSwap(other); |
1038 | 0 | } else { |
1039 | 0 | ::google::protobuf::internal::GenericSwap(this, other); |
1040 | 0 | } |
1041 | 0 | } |
1042 | 0 | void UnsafeArenaSwap(IDAT* other) { |
1043 | 0 | if (other == this) return; |
1044 | 0 | ABSL_DCHECK(GetArena() == other->GetArena()); |
1045 | 0 | InternalSwap(other); |
1046 | 0 | } |
1047 | | |
1048 | | // implements Message ---------------------------------------------- |
1049 | | |
1050 | 0 | IDAT* New(::google::protobuf::Arena* arena = nullptr) const { |
1051 | 0 | return ::google::protobuf::Message::DefaultConstruct<IDAT>(arena); |
1052 | 0 | } |
1053 | | using ::google::protobuf::Message::CopyFrom; |
1054 | | void CopyFrom(const IDAT& from); |
1055 | | using ::google::protobuf::Message::MergeFrom; |
1056 | 0 | void MergeFrom(const IDAT& from) { IDAT::MergeImpl(*this, from); } |
1057 | | |
1058 | | private: |
1059 | | static void MergeImpl( |
1060 | | ::google::protobuf::MessageLite& to_msg, |
1061 | | const ::google::protobuf::MessageLite& from_msg); |
1062 | | |
1063 | | public: |
1064 | 0 | bool IsInitialized() const { |
1065 | 0 | return IsInitializedImpl(*this); |
1066 | 0 | } |
1067 | | |
1068 | | private: |
1069 | | static bool IsInitializedImpl(const MessageLite& msg); |
1070 | | |
1071 | | public: |
1072 | | ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; |
1073 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1074 | | private: |
1075 | | static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); |
1076 | | static ::uint8_t* _InternalSerialize( |
1077 | | const MessageLite& msg, ::uint8_t* target, |
1078 | | ::google::protobuf::io::EpsCopyOutputStream* stream); |
1079 | | |
1080 | | public: |
1081 | | ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } |
1082 | | ::uint8_t* _InternalSerialize( |
1083 | | ::uint8_t* target, |
1084 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1085 | | return _InternalSerialize(*this, target, stream); |
1086 | | } |
1087 | | #else // PROTOBUF_CUSTOM_VTABLE |
1088 | | ::size_t ByteSizeLong() const final; |
1089 | | ::uint8_t* _InternalSerialize( |
1090 | | ::uint8_t* target, |
1091 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const final; |
1092 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1093 | 0 | int GetCachedSize() const { return _impl_._cached_size_.Get(); } |
1094 | | |
1095 | | private: |
1096 | | void SharedCtor(::google::protobuf::Arena* arena); |
1097 | | static void SharedDtor(MessageLite& self); |
1098 | | void InternalSwap(IDAT* other); |
1099 | | private: |
1100 | | template <typename T> |
1101 | | friend ::absl::string_view( |
1102 | | ::google::protobuf::internal::GetAnyMessageName)(); |
1103 | 0 | static ::absl::string_view FullMessageName() { return "IDAT"; } |
1104 | | |
1105 | | protected: |
1106 | | explicit IDAT(::google::protobuf::Arena* arena); |
1107 | | IDAT(::google::protobuf::Arena* arena, const IDAT& from); |
1108 | | IDAT(::google::protobuf::Arena* arena, IDAT&& from) noexcept |
1109 | 0 | : IDAT(arena) { |
1110 | 0 | *this = ::std::move(from); |
1111 | 0 | } |
1112 | | const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; |
1113 | | static void* PlacementNew_(const void*, void* mem, |
1114 | | ::google::protobuf::Arena* arena); |
1115 | | static constexpr auto InternalNewImpl_(); |
1116 | | static const ::google::protobuf::internal::ClassDataFull _class_data_; |
1117 | | |
1118 | | public: |
1119 | | ::google::protobuf::Metadata GetMetadata() const; |
1120 | | // nested types ---------------------------------------------------- |
1121 | | |
1122 | | // accessors ------------------------------------------------------- |
1123 | | enum : int { |
1124 | | kDataFieldNumber = 1, |
1125 | | }; |
1126 | | // required bytes data = 1; |
1127 | | bool has_data() const; |
1128 | | void clear_data() ; |
1129 | | const std::string& data() const; |
1130 | | template <typename Arg_ = const std::string&, typename... Args_> |
1131 | | void set_data(Arg_&& arg, Args_... args); |
1132 | | std::string* mutable_data(); |
1133 | | PROTOBUF_NODISCARD std::string* release_data(); |
1134 | | void set_allocated_data(std::string* value); |
1135 | | |
1136 | | private: |
1137 | | const std::string& _internal_data() const; |
1138 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_data( |
1139 | | const std::string& value); |
1140 | | std::string* _internal_mutable_data(); |
1141 | | |
1142 | | public: |
1143 | | // @@protoc_insertion_point(class_scope:IDAT) |
1144 | | private: |
1145 | | class _Internal; |
1146 | | friend class ::google::protobuf::internal::TcParser; |
1147 | | static const ::google::protobuf::internal::TcParseTable< |
1148 | | 0, 1, 0, |
1149 | | 0, 2> |
1150 | | _table_; |
1151 | | |
1152 | | friend class ::google::protobuf::MessageLite; |
1153 | | friend class ::google::protobuf::Arena; |
1154 | | template <typename T> |
1155 | | friend class ::google::protobuf::Arena::InternalHelper; |
1156 | | using InternalArenaConstructable_ = void; |
1157 | | using DestructorSkippable_ = void; |
1158 | | struct Impl_ { |
1159 | | inline explicit constexpr Impl_( |
1160 | | ::google::protobuf::internal::ConstantInitialized) noexcept; |
1161 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
1162 | | ::google::protobuf::Arena* arena); |
1163 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
1164 | | ::google::protobuf::Arena* arena, const Impl_& from, |
1165 | | const IDAT& from_msg); |
1166 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
1167 | | ::google::protobuf::internal::CachedSize _cached_size_; |
1168 | | ::google::protobuf::internal::ArenaStringPtr data_; |
1169 | | PROTOBUF_TSAN_DECLARE_MEMBER |
1170 | | }; |
1171 | | union { Impl_ _impl_; }; |
1172 | | friend struct ::TableStruct_png_5ffuzz_5fproto_2eproto; |
1173 | | }; |
1174 | | // ------------------------------------------------------------------- |
1175 | | |
1176 | | class PngChunk final : public ::google::protobuf::Message |
1177 | | /* @@protoc_insertion_point(class_definition:PngChunk) */ { |
1178 | | public: |
1179 | 0 | inline PngChunk() : PngChunk(nullptr) {} |
1180 | | ~PngChunk() PROTOBUF_FINAL; |
1181 | | |
1182 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1183 | | void operator delete(PngChunk* msg, std::destroying_delete_t) { |
1184 | | SharedDtor(*msg); |
1185 | | ::google::protobuf::internal::SizedDelete(msg, sizeof(PngChunk)); |
1186 | | } |
1187 | | #endif |
1188 | | |
1189 | | template <typename = void> |
1190 | | explicit PROTOBUF_CONSTEXPR PngChunk( |
1191 | | ::google::protobuf::internal::ConstantInitialized); |
1192 | | |
1193 | 0 | inline PngChunk(const PngChunk& from) : PngChunk(nullptr, from) {} |
1194 | | inline PngChunk(PngChunk&& from) noexcept |
1195 | 0 | : PngChunk(nullptr, std::move(from)) {} |
1196 | 0 | inline PngChunk& operator=(const PngChunk& from) { |
1197 | 0 | CopyFrom(from); |
1198 | 0 | return *this; |
1199 | 0 | } |
1200 | 0 | inline PngChunk& operator=(PngChunk&& from) noexcept { |
1201 | 0 | if (this == &from) return *this; |
1202 | 0 | if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { |
1203 | 0 | InternalSwap(&from); |
1204 | 0 | } else { |
1205 | 0 | CopyFrom(from); |
1206 | 0 | } |
1207 | 0 | return *this; |
1208 | 0 | } |
1209 | | |
1210 | | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const |
1211 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
1212 | 0 | return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); |
1213 | 0 | } |
1214 | | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() |
1215 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
1216 | 0 | return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); |
1217 | 0 | } |
1218 | | |
1219 | 0 | static const ::google::protobuf::Descriptor* descriptor() { |
1220 | 0 | return GetDescriptor(); |
1221 | 0 | } |
1222 | 0 | static const ::google::protobuf::Descriptor* GetDescriptor() { |
1223 | 0 | return default_instance().GetMetadata().descriptor; |
1224 | 0 | } |
1225 | 0 | static const ::google::protobuf::Reflection* GetReflection() { |
1226 | 0 | return default_instance().GetMetadata().reflection; |
1227 | 0 | } |
1228 | 0 | static const PngChunk& default_instance() { |
1229 | 0 | return *internal_default_instance(); |
1230 | 0 | } |
1231 | | enum ChunkCase { |
1232 | | kPlte = 1, |
1233 | | kIdat = 2, |
1234 | | kIccp = 3, |
1235 | | kOtherChunk = 10000, |
1236 | | CHUNK_NOT_SET = 0, |
1237 | | }; |
1238 | 0 | static inline const PngChunk* internal_default_instance() { |
1239 | 0 | return reinterpret_cast<const PngChunk*>( |
1240 | 0 | &_PngChunk_default_instance_); |
1241 | 0 | } |
1242 | | static constexpr int kIndexInFileMessages = 5; |
1243 | 0 | friend void swap(PngChunk& a, PngChunk& b) { a.Swap(&b); } |
1244 | 0 | inline void Swap(PngChunk* other) { |
1245 | 0 | if (other == this) return; |
1246 | 0 | if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { |
1247 | 0 | InternalSwap(other); |
1248 | 0 | } else { |
1249 | 0 | ::google::protobuf::internal::GenericSwap(this, other); |
1250 | 0 | } |
1251 | 0 | } |
1252 | 0 | void UnsafeArenaSwap(PngChunk* other) { |
1253 | 0 | if (other == this) return; |
1254 | 0 | ABSL_DCHECK(GetArena() == other->GetArena()); |
1255 | 0 | InternalSwap(other); |
1256 | 0 | } |
1257 | | |
1258 | | // implements Message ---------------------------------------------- |
1259 | | |
1260 | 0 | PngChunk* New(::google::protobuf::Arena* arena = nullptr) const { |
1261 | 0 | return ::google::protobuf::Message::DefaultConstruct<PngChunk>(arena); |
1262 | 0 | } |
1263 | | using ::google::protobuf::Message::CopyFrom; |
1264 | | void CopyFrom(const PngChunk& from); |
1265 | | using ::google::protobuf::Message::MergeFrom; |
1266 | 0 | void MergeFrom(const PngChunk& from) { PngChunk::MergeImpl(*this, from); } |
1267 | | |
1268 | | private: |
1269 | | static void MergeImpl( |
1270 | | ::google::protobuf::MessageLite& to_msg, |
1271 | | const ::google::protobuf::MessageLite& from_msg); |
1272 | | |
1273 | | public: |
1274 | 0 | bool IsInitialized() const { |
1275 | 0 | return IsInitializedImpl(*this); |
1276 | 0 | } |
1277 | | |
1278 | | private: |
1279 | | static bool IsInitializedImpl(const MessageLite& msg); |
1280 | | |
1281 | | public: |
1282 | | ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; |
1283 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1284 | | private: |
1285 | | static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); |
1286 | | static ::uint8_t* _InternalSerialize( |
1287 | | const MessageLite& msg, ::uint8_t* target, |
1288 | | ::google::protobuf::io::EpsCopyOutputStream* stream); |
1289 | | |
1290 | | public: |
1291 | | ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } |
1292 | | ::uint8_t* _InternalSerialize( |
1293 | | ::uint8_t* target, |
1294 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1295 | | return _InternalSerialize(*this, target, stream); |
1296 | | } |
1297 | | #else // PROTOBUF_CUSTOM_VTABLE |
1298 | | ::size_t ByteSizeLong() const final; |
1299 | | ::uint8_t* _InternalSerialize( |
1300 | | ::uint8_t* target, |
1301 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const final; |
1302 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1303 | 0 | int GetCachedSize() const { return _impl_._cached_size_.Get(); } |
1304 | | |
1305 | | private: |
1306 | | void SharedCtor(::google::protobuf::Arena* arena); |
1307 | | static void SharedDtor(MessageLite& self); |
1308 | | void InternalSwap(PngChunk* other); |
1309 | | private: |
1310 | | template <typename T> |
1311 | | friend ::absl::string_view( |
1312 | | ::google::protobuf::internal::GetAnyMessageName)(); |
1313 | 0 | static ::absl::string_view FullMessageName() { return "PngChunk"; } |
1314 | | |
1315 | | protected: |
1316 | | explicit PngChunk(::google::protobuf::Arena* arena); |
1317 | | PngChunk(::google::protobuf::Arena* arena, const PngChunk& from); |
1318 | | PngChunk(::google::protobuf::Arena* arena, PngChunk&& from) noexcept |
1319 | 0 | : PngChunk(arena) { |
1320 | 0 | *this = ::std::move(from); |
1321 | 0 | } |
1322 | | const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; |
1323 | | static void* PlacementNew_(const void*, void* mem, |
1324 | | ::google::protobuf::Arena* arena); |
1325 | | static constexpr auto InternalNewImpl_(); |
1326 | | static const ::google::protobuf::internal::ClassDataFull _class_data_; |
1327 | | |
1328 | | public: |
1329 | | ::google::protobuf::Metadata GetMetadata() const; |
1330 | | // nested types ---------------------------------------------------- |
1331 | | |
1332 | | // accessors ------------------------------------------------------- |
1333 | | enum : int { |
1334 | | kPlteFieldNumber = 1, |
1335 | | kIdatFieldNumber = 2, |
1336 | | kIccpFieldNumber = 3, |
1337 | | kOtherChunkFieldNumber = 10000, |
1338 | | }; |
1339 | | // .PLTE plte = 1; |
1340 | | bool has_plte() const; |
1341 | | private: |
1342 | | bool _internal_has_plte() const; |
1343 | | |
1344 | | public: |
1345 | | void clear_plte() ; |
1346 | | const ::PLTE& plte() const; |
1347 | | PROTOBUF_NODISCARD ::PLTE* release_plte(); |
1348 | | ::PLTE* mutable_plte(); |
1349 | | void set_allocated_plte(::PLTE* value); |
1350 | | void unsafe_arena_set_allocated_plte(::PLTE* value); |
1351 | | ::PLTE* unsafe_arena_release_plte(); |
1352 | | |
1353 | | private: |
1354 | | const ::PLTE& _internal_plte() const; |
1355 | | ::PLTE* _internal_mutable_plte(); |
1356 | | |
1357 | | public: |
1358 | | // .IDAT idat = 2; |
1359 | | bool has_idat() const; |
1360 | | private: |
1361 | | bool _internal_has_idat() const; |
1362 | | |
1363 | | public: |
1364 | | void clear_idat() ; |
1365 | | const ::IDAT& idat() const; |
1366 | | PROTOBUF_NODISCARD ::IDAT* release_idat(); |
1367 | | ::IDAT* mutable_idat(); |
1368 | | void set_allocated_idat(::IDAT* value); |
1369 | | void unsafe_arena_set_allocated_idat(::IDAT* value); |
1370 | | ::IDAT* unsafe_arena_release_idat(); |
1371 | | |
1372 | | private: |
1373 | | const ::IDAT& _internal_idat() const; |
1374 | | ::IDAT* _internal_mutable_idat(); |
1375 | | |
1376 | | public: |
1377 | | // .iCCP iccp = 3; |
1378 | | bool has_iccp() const; |
1379 | | private: |
1380 | | bool _internal_has_iccp() const; |
1381 | | |
1382 | | public: |
1383 | | void clear_iccp() ; |
1384 | | const ::iCCP& iccp() const; |
1385 | | PROTOBUF_NODISCARD ::iCCP* release_iccp(); |
1386 | | ::iCCP* mutable_iccp(); |
1387 | | void set_allocated_iccp(::iCCP* value); |
1388 | | void unsafe_arena_set_allocated_iccp(::iCCP* value); |
1389 | | ::iCCP* unsafe_arena_release_iccp(); |
1390 | | |
1391 | | private: |
1392 | | const ::iCCP& _internal_iccp() const; |
1393 | | ::iCCP* _internal_mutable_iccp(); |
1394 | | |
1395 | | public: |
1396 | | // .OtherChunk other_chunk = 10000; |
1397 | | bool has_other_chunk() const; |
1398 | | private: |
1399 | | bool _internal_has_other_chunk() const; |
1400 | | |
1401 | | public: |
1402 | | void clear_other_chunk() ; |
1403 | | const ::OtherChunk& other_chunk() const; |
1404 | | PROTOBUF_NODISCARD ::OtherChunk* release_other_chunk(); |
1405 | | ::OtherChunk* mutable_other_chunk(); |
1406 | | void set_allocated_other_chunk(::OtherChunk* value); |
1407 | | void unsafe_arena_set_allocated_other_chunk(::OtherChunk* value); |
1408 | | ::OtherChunk* unsafe_arena_release_other_chunk(); |
1409 | | |
1410 | | private: |
1411 | | const ::OtherChunk& _internal_other_chunk() const; |
1412 | | ::OtherChunk* _internal_mutable_other_chunk(); |
1413 | | |
1414 | | public: |
1415 | | void clear_chunk(); |
1416 | | ChunkCase chunk_case() const; |
1417 | | // @@protoc_insertion_point(class_scope:PngChunk) |
1418 | | private: |
1419 | | class _Internal; |
1420 | | void set_has_plte(); |
1421 | | void set_has_idat(); |
1422 | | void set_has_iccp(); |
1423 | | void set_has_other_chunk(); |
1424 | | inline bool has_chunk() const; |
1425 | | inline void clear_has_chunk(); |
1426 | | friend class ::google::protobuf::internal::TcParser; |
1427 | | static const ::google::protobuf::internal::TcParseTable< |
1428 | | 0, 4, 4, |
1429 | | 0, 7> |
1430 | | _table_; |
1431 | | |
1432 | | friend class ::google::protobuf::MessageLite; |
1433 | | friend class ::google::protobuf::Arena; |
1434 | | template <typename T> |
1435 | | friend class ::google::protobuf::Arena::InternalHelper; |
1436 | | using InternalArenaConstructable_ = void; |
1437 | | using DestructorSkippable_ = void; |
1438 | | struct Impl_ { |
1439 | | inline explicit constexpr Impl_( |
1440 | | ::google::protobuf::internal::ConstantInitialized) noexcept; |
1441 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
1442 | | ::google::protobuf::Arena* arena); |
1443 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
1444 | | ::google::protobuf::Arena* arena, const Impl_& from, |
1445 | | const PngChunk& from_msg); |
1446 | | union ChunkUnion { |
1447 | 61.7k | constexpr ChunkUnion() : _constinit_{} {} |
1448 | | ::google::protobuf::internal::ConstantInitialized _constinit_; |
1449 | | ::PLTE* plte_; |
1450 | | ::IDAT* idat_; |
1451 | | ::iCCP* iccp_; |
1452 | | ::OtherChunk* other_chunk_; |
1453 | | } chunk_; |
1454 | | ::google::protobuf::internal::CachedSize _cached_size_; |
1455 | | ::uint32_t _oneof_case_[1]; |
1456 | | PROTOBUF_TSAN_DECLARE_MEMBER |
1457 | | }; |
1458 | | union { Impl_ _impl_; }; |
1459 | | friend struct ::TableStruct_png_5ffuzz_5fproto_2eproto; |
1460 | | }; |
1461 | | // ------------------------------------------------------------------- |
1462 | | |
1463 | | class PngProto final : public ::google::protobuf::Message |
1464 | | /* @@protoc_insertion_point(class_definition:PngProto) */ { |
1465 | | public: |
1466 | 18.4k | inline PngProto() : PngProto(nullptr) {} |
1467 | | ~PngProto() PROTOBUF_FINAL; |
1468 | | |
1469 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1470 | | void operator delete(PngProto* msg, std::destroying_delete_t) { |
1471 | | SharedDtor(*msg); |
1472 | | ::google::protobuf::internal::SizedDelete(msg, sizeof(PngProto)); |
1473 | | } |
1474 | | #endif |
1475 | | |
1476 | | template <typename = void> |
1477 | | explicit PROTOBUF_CONSTEXPR PngProto( |
1478 | | ::google::protobuf::internal::ConstantInitialized); |
1479 | | |
1480 | 0 | inline PngProto(const PngProto& from) : PngProto(nullptr, from) {} |
1481 | | inline PngProto(PngProto&& from) noexcept |
1482 | 0 | : PngProto(nullptr, std::move(from)) {} |
1483 | 0 | inline PngProto& operator=(const PngProto& from) { |
1484 | 0 | CopyFrom(from); |
1485 | 0 | return *this; |
1486 | 0 | } |
1487 | 0 | inline PngProto& operator=(PngProto&& from) noexcept { |
1488 | 0 | if (this == &from) return *this; |
1489 | 0 | if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { |
1490 | 0 | InternalSwap(&from); |
1491 | 0 | } else { |
1492 | 0 | CopyFrom(from); |
1493 | 0 | } |
1494 | 0 | return *this; |
1495 | 0 | } |
1496 | | |
1497 | | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const |
1498 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
1499 | 0 | return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); |
1500 | 0 | } |
1501 | | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() |
1502 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
1503 | 0 | return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); |
1504 | 0 | } |
1505 | | |
1506 | 0 | static const ::google::protobuf::Descriptor* descriptor() { |
1507 | 0 | return GetDescriptor(); |
1508 | 0 | } |
1509 | 0 | static const ::google::protobuf::Descriptor* GetDescriptor() { |
1510 | 0 | return default_instance().GetMetadata().descriptor; |
1511 | 0 | } |
1512 | 0 | static const ::google::protobuf::Reflection* GetReflection() { |
1513 | 0 | return default_instance().GetMetadata().reflection; |
1514 | 0 | } |
1515 | 0 | static const PngProto& default_instance() { |
1516 | 0 | return *internal_default_instance(); |
1517 | 0 | } |
1518 | 0 | static inline const PngProto* internal_default_instance() { |
1519 | 0 | return reinterpret_cast<const PngProto*>( |
1520 | 0 | &_PngProto_default_instance_); |
1521 | 0 | } |
1522 | | static constexpr int kIndexInFileMessages = 6; |
1523 | 0 | friend void swap(PngProto& a, PngProto& b) { a.Swap(&b); } |
1524 | 0 | inline void Swap(PngProto* other) { |
1525 | 0 | if (other == this) return; |
1526 | 0 | if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { |
1527 | 0 | InternalSwap(other); |
1528 | 0 | } else { |
1529 | 0 | ::google::protobuf::internal::GenericSwap(this, other); |
1530 | 0 | } |
1531 | 0 | } |
1532 | 0 | void UnsafeArenaSwap(PngProto* other) { |
1533 | 0 | if (other == this) return; |
1534 | 0 | ABSL_DCHECK(GetArena() == other->GetArena()); |
1535 | 0 | InternalSwap(other); |
1536 | 0 | } |
1537 | | |
1538 | | // implements Message ---------------------------------------------- |
1539 | | |
1540 | 0 | PngProto* New(::google::protobuf::Arena* arena = nullptr) const { |
1541 | 0 | return ::google::protobuf::Message::DefaultConstruct<PngProto>(arena); |
1542 | 0 | } |
1543 | | using ::google::protobuf::Message::CopyFrom; |
1544 | | void CopyFrom(const PngProto& from); |
1545 | | using ::google::protobuf::Message::MergeFrom; |
1546 | 0 | void MergeFrom(const PngProto& from) { PngProto::MergeImpl(*this, from); } |
1547 | | |
1548 | | private: |
1549 | | static void MergeImpl( |
1550 | | ::google::protobuf::MessageLite& to_msg, |
1551 | | const ::google::protobuf::MessageLite& from_msg); |
1552 | | |
1553 | | public: |
1554 | 0 | bool IsInitialized() const { |
1555 | 0 | return IsInitializedImpl(*this); |
1556 | 0 | } |
1557 | | |
1558 | | private: |
1559 | | static bool IsInitializedImpl(const MessageLite& msg); |
1560 | | |
1561 | | public: |
1562 | | ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; |
1563 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1564 | | private: |
1565 | | static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); |
1566 | | static ::uint8_t* _InternalSerialize( |
1567 | | const MessageLite& msg, ::uint8_t* target, |
1568 | | ::google::protobuf::io::EpsCopyOutputStream* stream); |
1569 | | |
1570 | | public: |
1571 | | ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } |
1572 | | ::uint8_t* _InternalSerialize( |
1573 | | ::uint8_t* target, |
1574 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1575 | | return _InternalSerialize(*this, target, stream); |
1576 | | } |
1577 | | #else // PROTOBUF_CUSTOM_VTABLE |
1578 | | ::size_t ByteSizeLong() const final; |
1579 | | ::uint8_t* _InternalSerialize( |
1580 | | ::uint8_t* target, |
1581 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const final; |
1582 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1583 | 0 | int GetCachedSize() const { return _impl_._cached_size_.Get(); } |
1584 | | |
1585 | | private: |
1586 | | void SharedCtor(::google::protobuf::Arena* arena); |
1587 | | static void SharedDtor(MessageLite& self); |
1588 | | void InternalSwap(PngProto* other); |
1589 | | private: |
1590 | | template <typename T> |
1591 | | friend ::absl::string_view( |
1592 | | ::google::protobuf::internal::GetAnyMessageName)(); |
1593 | 0 | static ::absl::string_view FullMessageName() { return "PngProto"; } |
1594 | | |
1595 | | protected: |
1596 | | explicit PngProto(::google::protobuf::Arena* arena); |
1597 | | PngProto(::google::protobuf::Arena* arena, const PngProto& from); |
1598 | | PngProto(::google::protobuf::Arena* arena, PngProto&& from) noexcept |
1599 | 0 | : PngProto(arena) { |
1600 | 0 | *this = ::std::move(from); |
1601 | 0 | } |
1602 | | const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; |
1603 | | static void* PlacementNew_(const void*, void* mem, |
1604 | | ::google::protobuf::Arena* arena); |
1605 | | static constexpr auto InternalNewImpl_(); |
1606 | | static const ::google::protobuf::internal::ClassDataFull _class_data_; |
1607 | | |
1608 | | public: |
1609 | | ::google::protobuf::Metadata GetMetadata() const; |
1610 | | // nested types ---------------------------------------------------- |
1611 | | |
1612 | | // accessors ------------------------------------------------------- |
1613 | | enum : int { |
1614 | | kChunksFieldNumber = 2, |
1615 | | kIhdrFieldNumber = 1, |
1616 | | }; |
1617 | | // repeated .PngChunk chunks = 2; |
1618 | | int chunks_size() const; |
1619 | | private: |
1620 | | int _internal_chunks_size() const; |
1621 | | |
1622 | | public: |
1623 | | void clear_chunks() ; |
1624 | | ::PngChunk* mutable_chunks(int index); |
1625 | | ::google::protobuf::RepeatedPtrField<::PngChunk>* mutable_chunks(); |
1626 | | |
1627 | | private: |
1628 | | const ::google::protobuf::RepeatedPtrField<::PngChunk>& _internal_chunks() const; |
1629 | | ::google::protobuf::RepeatedPtrField<::PngChunk>* _internal_mutable_chunks(); |
1630 | | public: |
1631 | | const ::PngChunk& chunks(int index) const; |
1632 | | ::PngChunk* add_chunks(); |
1633 | | const ::google::protobuf::RepeatedPtrField<::PngChunk>& chunks() const; |
1634 | | // required .IHDR ihdr = 1; |
1635 | | bool has_ihdr() const; |
1636 | | void clear_ihdr() ; |
1637 | | const ::IHDR& ihdr() const; |
1638 | | PROTOBUF_NODISCARD ::IHDR* release_ihdr(); |
1639 | | ::IHDR* mutable_ihdr(); |
1640 | | void set_allocated_ihdr(::IHDR* value); |
1641 | | void unsafe_arena_set_allocated_ihdr(::IHDR* value); |
1642 | | ::IHDR* unsafe_arena_release_ihdr(); |
1643 | | |
1644 | | private: |
1645 | | const ::IHDR& _internal_ihdr() const; |
1646 | | ::IHDR* _internal_mutable_ihdr(); |
1647 | | |
1648 | | public: |
1649 | | // @@protoc_insertion_point(class_scope:PngProto) |
1650 | | private: |
1651 | | class _Internal; |
1652 | | friend class ::google::protobuf::internal::TcParser; |
1653 | | static const ::google::protobuf::internal::TcParseTable< |
1654 | | 1, 2, 2, |
1655 | | 0, 2> |
1656 | | _table_; |
1657 | | |
1658 | | friend class ::google::protobuf::MessageLite; |
1659 | | friend class ::google::protobuf::Arena; |
1660 | | template <typename T> |
1661 | | friend class ::google::protobuf::Arena::InternalHelper; |
1662 | | using InternalArenaConstructable_ = void; |
1663 | | using DestructorSkippable_ = void; |
1664 | | struct Impl_ { |
1665 | | inline explicit constexpr Impl_( |
1666 | | ::google::protobuf::internal::ConstantInitialized) noexcept; |
1667 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
1668 | | ::google::protobuf::Arena* arena); |
1669 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
1670 | | ::google::protobuf::Arena* arena, const Impl_& from, |
1671 | | const PngProto& from_msg); |
1672 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
1673 | | ::google::protobuf::internal::CachedSize _cached_size_; |
1674 | | ::google::protobuf::RepeatedPtrField< ::PngChunk > chunks_; |
1675 | | ::IHDR* ihdr_; |
1676 | | PROTOBUF_TSAN_DECLARE_MEMBER |
1677 | | }; |
1678 | | union { Impl_ _impl_; }; |
1679 | | friend struct ::TableStruct_png_5ffuzz_5fproto_2eproto; |
1680 | | }; |
1681 | | |
1682 | | // =================================================================== |
1683 | | |
1684 | | |
1685 | | |
1686 | | |
1687 | | // =================================================================== |
1688 | | |
1689 | | |
1690 | | #ifdef __GNUC__ |
1691 | | #pragma GCC diagnostic push |
1692 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
1693 | | #endif // __GNUC__ |
1694 | | // ------------------------------------------------------------------- |
1695 | | |
1696 | | // IHDR |
1697 | | |
1698 | | // required uint32 width = 1; |
1699 | 0 | inline bool IHDR::has_width() const { |
1700 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
1701 | 0 | return value; |
1702 | 0 | } |
1703 | 0 | inline void IHDR::clear_width() { |
1704 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1705 | 0 | _impl_.width_ = 0u; |
1706 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1707 | 0 | } |
1708 | 18.3k | inline ::uint32_t IHDR::width() const { |
1709 | | // @@protoc_insertion_point(field_get:IHDR.width) |
1710 | 18.3k | return _internal_width(); |
1711 | 18.3k | } |
1712 | 0 | inline void IHDR::set_width(::uint32_t value) { |
1713 | 0 | _internal_set_width(value); |
1714 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1715 | 0 | // @@protoc_insertion_point(field_set:IHDR.width) |
1716 | 0 | } |
1717 | 18.3k | inline ::uint32_t IHDR::_internal_width() const { |
1718 | 18.3k | ::google::protobuf::internal::TSanRead(&_impl_); |
1719 | 18.3k | return _impl_.width_; |
1720 | 18.3k | } |
1721 | 0 | inline void IHDR::_internal_set_width(::uint32_t value) { |
1722 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1723 | 0 | _impl_.width_ = value; |
1724 | 0 | } |
1725 | | |
1726 | | // required uint32 height = 2; |
1727 | 0 | inline bool IHDR::has_height() const { |
1728 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
1729 | 0 | return value; |
1730 | 0 | } |
1731 | 0 | inline void IHDR::clear_height() { |
1732 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1733 | 0 | _impl_.height_ = 0u; |
1734 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
1735 | 0 | } |
1736 | 18.3k | inline ::uint32_t IHDR::height() const { |
1737 | | // @@protoc_insertion_point(field_get:IHDR.height) |
1738 | 18.3k | return _internal_height(); |
1739 | 18.3k | } |
1740 | 0 | inline void IHDR::set_height(::uint32_t value) { |
1741 | 0 | _internal_set_height(value); |
1742 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
1743 | 0 | // @@protoc_insertion_point(field_set:IHDR.height) |
1744 | 0 | } |
1745 | 18.3k | inline ::uint32_t IHDR::_internal_height() const { |
1746 | 18.3k | ::google::protobuf::internal::TSanRead(&_impl_); |
1747 | 18.3k | return _impl_.height_; |
1748 | 18.3k | } |
1749 | 0 | inline void IHDR::_internal_set_height(::uint32_t value) { |
1750 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1751 | 0 | _impl_.height_ = value; |
1752 | 0 | } |
1753 | | |
1754 | | // required uint32 other1 = 3; |
1755 | 0 | inline bool IHDR::has_other1() const { |
1756 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
1757 | 0 | return value; |
1758 | 0 | } |
1759 | 0 | inline void IHDR::clear_other1() { |
1760 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1761 | 0 | _impl_.other1_ = 0u; |
1762 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
1763 | 0 | } |
1764 | 18.3k | inline ::uint32_t IHDR::other1() const { |
1765 | | // @@protoc_insertion_point(field_get:IHDR.other1) |
1766 | 18.3k | return _internal_other1(); |
1767 | 18.3k | } |
1768 | 0 | inline void IHDR::set_other1(::uint32_t value) { |
1769 | 0 | _internal_set_other1(value); |
1770 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
1771 | 0 | // @@protoc_insertion_point(field_set:IHDR.other1) |
1772 | 0 | } |
1773 | 18.3k | inline ::uint32_t IHDR::_internal_other1() const { |
1774 | 18.3k | ::google::protobuf::internal::TSanRead(&_impl_); |
1775 | 18.3k | return _impl_.other1_; |
1776 | 18.3k | } |
1777 | 0 | inline void IHDR::_internal_set_other1(::uint32_t value) { |
1778 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1779 | 0 | _impl_.other1_ = value; |
1780 | 0 | } |
1781 | | |
1782 | | // required uint32 other2 = 4; |
1783 | 0 | inline bool IHDR::has_other2() const { |
1784 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; |
1785 | 0 | return value; |
1786 | 0 | } |
1787 | 0 | inline void IHDR::clear_other2() { |
1788 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1789 | 0 | _impl_.other2_ = 0u; |
1790 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
1791 | 0 | } |
1792 | 18.3k | inline ::uint32_t IHDR::other2() const { |
1793 | | // @@protoc_insertion_point(field_get:IHDR.other2) |
1794 | 18.3k | return _internal_other2(); |
1795 | 18.3k | } |
1796 | 0 | inline void IHDR::set_other2(::uint32_t value) { |
1797 | 0 | _internal_set_other2(value); |
1798 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
1799 | 0 | // @@protoc_insertion_point(field_set:IHDR.other2) |
1800 | 0 | } |
1801 | 18.3k | inline ::uint32_t IHDR::_internal_other2() const { |
1802 | 18.3k | ::google::protobuf::internal::TSanRead(&_impl_); |
1803 | 18.3k | return _impl_.other2_; |
1804 | 18.3k | } |
1805 | 0 | inline void IHDR::_internal_set_other2(::uint32_t value) { |
1806 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1807 | 0 | _impl_.other2_ = value; |
1808 | 0 | } |
1809 | | |
1810 | | // ------------------------------------------------------------------- |
1811 | | |
1812 | | // PLTE |
1813 | | |
1814 | | // required bytes data = 1; |
1815 | 0 | inline bool PLTE::has_data() const { |
1816 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
1817 | 0 | return value; |
1818 | 0 | } |
1819 | 0 | inline void PLTE::clear_data() { |
1820 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1821 | 0 | _impl_.data_.ClearToEmpty(); |
1822 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1823 | 0 | } |
1824 | | inline const std::string& PLTE::data() const |
1825 | 4.99k | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
1826 | | // @@protoc_insertion_point(field_get:PLTE.data) |
1827 | 4.99k | return _internal_data(); |
1828 | 4.99k | } |
1829 | | template <typename Arg_, typename... Args_> |
1830 | | inline PROTOBUF_ALWAYS_INLINE void PLTE::set_data(Arg_&& arg, |
1831 | | Args_... args) { |
1832 | | ::google::protobuf::internal::TSanWrite(&_impl_); |
1833 | | _impl_._has_bits_[0] |= 0x00000001u; |
1834 | | _impl_.data_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena()); |
1835 | | // @@protoc_insertion_point(field_set:PLTE.data) |
1836 | | } |
1837 | 0 | inline std::string* PLTE::mutable_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
1838 | 0 | std::string* _s = _internal_mutable_data(); |
1839 | 0 | // @@protoc_insertion_point(field_mutable:PLTE.data) |
1840 | 0 | return _s; |
1841 | 0 | } |
1842 | 4.99k | inline const std::string& PLTE::_internal_data() const { |
1843 | 4.99k | ::google::protobuf::internal::TSanRead(&_impl_); |
1844 | 4.99k | return _impl_.data_.Get(); |
1845 | 4.99k | } |
1846 | 0 | inline void PLTE::_internal_set_data(const std::string& value) { |
1847 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1848 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1849 | 0 | _impl_.data_.Set(value, GetArena()); |
1850 | 0 | } |
1851 | 0 | inline std::string* PLTE::_internal_mutable_data() { |
1852 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1853 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1854 | 0 | return _impl_.data_.Mutable( GetArena()); |
1855 | 0 | } |
1856 | 0 | inline std::string* PLTE::release_data() { |
1857 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1858 | 0 | // @@protoc_insertion_point(field_release:PLTE.data) |
1859 | 0 | if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { |
1860 | 0 | return nullptr; |
1861 | 0 | } |
1862 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1863 | 0 | auto* released = _impl_.data_.Release(); |
1864 | 0 | if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { |
1865 | 0 | _impl_.data_.Set("", GetArena()); |
1866 | 0 | } |
1867 | 0 | return released; |
1868 | 0 | } |
1869 | 0 | inline void PLTE::set_allocated_data(std::string* value) { |
1870 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1871 | 0 | if (value != nullptr) { |
1872 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1873 | 0 | } else { |
1874 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1875 | 0 | } |
1876 | 0 | _impl_.data_.SetAllocated(value, GetArena()); |
1877 | 0 | if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.data_.IsDefault()) { |
1878 | 0 | _impl_.data_.Set("", GetArena()); |
1879 | 0 | } |
1880 | 0 | // @@protoc_insertion_point(field_set_allocated:PLTE.data) |
1881 | 0 | } |
1882 | | |
1883 | | // ------------------------------------------------------------------- |
1884 | | |
1885 | | // IDAT |
1886 | | |
1887 | | // required bytes data = 1; |
1888 | 0 | inline bool IDAT::has_data() const { |
1889 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
1890 | 0 | return value; |
1891 | 0 | } |
1892 | 0 | inline void IDAT::clear_data() { |
1893 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1894 | 0 | _impl_.data_.ClearToEmpty(); |
1895 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1896 | 0 | } |
1897 | | inline const std::string& IDAT::data() const |
1898 | 9.69k | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
1899 | | // @@protoc_insertion_point(field_get:IDAT.data) |
1900 | 9.69k | return _internal_data(); |
1901 | 9.69k | } |
1902 | | template <typename Arg_, typename... Args_> |
1903 | | inline PROTOBUF_ALWAYS_INLINE void IDAT::set_data(Arg_&& arg, |
1904 | | Args_... args) { |
1905 | | ::google::protobuf::internal::TSanWrite(&_impl_); |
1906 | | _impl_._has_bits_[0] |= 0x00000001u; |
1907 | | _impl_.data_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena()); |
1908 | | // @@protoc_insertion_point(field_set:IDAT.data) |
1909 | | } |
1910 | 0 | inline std::string* IDAT::mutable_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
1911 | 0 | std::string* _s = _internal_mutable_data(); |
1912 | 0 | // @@protoc_insertion_point(field_mutable:IDAT.data) |
1913 | 0 | return _s; |
1914 | 0 | } |
1915 | 9.69k | inline const std::string& IDAT::_internal_data() const { |
1916 | 9.69k | ::google::protobuf::internal::TSanRead(&_impl_); |
1917 | 9.69k | return _impl_.data_.Get(); |
1918 | 9.69k | } |
1919 | 0 | inline void IDAT::_internal_set_data(const std::string& value) { |
1920 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1921 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1922 | 0 | _impl_.data_.Set(value, GetArena()); |
1923 | 0 | } |
1924 | 0 | inline std::string* IDAT::_internal_mutable_data() { |
1925 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1926 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1927 | 0 | return _impl_.data_.Mutable( GetArena()); |
1928 | 0 | } |
1929 | 0 | inline std::string* IDAT::release_data() { |
1930 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1931 | 0 | // @@protoc_insertion_point(field_release:IDAT.data) |
1932 | 0 | if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { |
1933 | 0 | return nullptr; |
1934 | 0 | } |
1935 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1936 | 0 | auto* released = _impl_.data_.Release(); |
1937 | 0 | if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { |
1938 | 0 | _impl_.data_.Set("", GetArena()); |
1939 | 0 | } |
1940 | 0 | return released; |
1941 | 0 | } |
1942 | 0 | inline void IDAT::set_allocated_data(std::string* value) { |
1943 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1944 | 0 | if (value != nullptr) { |
1945 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1946 | 0 | } else { |
1947 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1948 | 0 | } |
1949 | 0 | _impl_.data_.SetAllocated(value, GetArena()); |
1950 | 0 | if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.data_.IsDefault()) { |
1951 | 0 | _impl_.data_.Set("", GetArena()); |
1952 | 0 | } |
1953 | 0 | // @@protoc_insertion_point(field_set_allocated:IDAT.data) |
1954 | 0 | } |
1955 | | |
1956 | | // ------------------------------------------------------------------- |
1957 | | |
1958 | | // iCCP |
1959 | | |
1960 | | // required bytes data = 2; |
1961 | 0 | inline bool iCCP::has_data() const { |
1962 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
1963 | 0 | return value; |
1964 | 0 | } |
1965 | 0 | inline void iCCP::clear_data() { |
1966 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1967 | 0 | _impl_.data_.ClearToEmpty(); |
1968 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1969 | 0 | } |
1970 | | inline const std::string& iCCP::data() const |
1971 | 8.58k | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
1972 | | // @@protoc_insertion_point(field_get:iCCP.data) |
1973 | 8.58k | return _internal_data(); |
1974 | 8.58k | } |
1975 | | template <typename Arg_, typename... Args_> |
1976 | | inline PROTOBUF_ALWAYS_INLINE void iCCP::set_data(Arg_&& arg, |
1977 | | Args_... args) { |
1978 | | ::google::protobuf::internal::TSanWrite(&_impl_); |
1979 | | _impl_._has_bits_[0] |= 0x00000001u; |
1980 | | _impl_.data_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena()); |
1981 | | // @@protoc_insertion_point(field_set:iCCP.data) |
1982 | | } |
1983 | 0 | inline std::string* iCCP::mutable_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
1984 | 0 | std::string* _s = _internal_mutable_data(); |
1985 | 0 | // @@protoc_insertion_point(field_mutable:iCCP.data) |
1986 | 0 | return _s; |
1987 | 0 | } |
1988 | 8.58k | inline const std::string& iCCP::_internal_data() const { |
1989 | 8.58k | ::google::protobuf::internal::TSanRead(&_impl_); |
1990 | 8.58k | return _impl_.data_.Get(); |
1991 | 8.58k | } |
1992 | 0 | inline void iCCP::_internal_set_data(const std::string& value) { |
1993 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1994 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1995 | 0 | _impl_.data_.Set(value, GetArena()); |
1996 | 0 | } |
1997 | 0 | inline std::string* iCCP::_internal_mutable_data() { |
1998 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1999 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
2000 | 0 | return _impl_.data_.Mutable( GetArena()); |
2001 | 0 | } |
2002 | 0 | inline std::string* iCCP::release_data() { |
2003 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2004 | 0 | // @@protoc_insertion_point(field_release:iCCP.data) |
2005 | 0 | if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { |
2006 | 0 | return nullptr; |
2007 | 0 | } |
2008 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2009 | 0 | auto* released = _impl_.data_.Release(); |
2010 | 0 | if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { |
2011 | 0 | _impl_.data_.Set("", GetArena()); |
2012 | 0 | } |
2013 | 0 | return released; |
2014 | 0 | } |
2015 | 0 | inline void iCCP::set_allocated_data(std::string* value) { |
2016 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2017 | 0 | if (value != nullptr) { |
2018 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
2019 | 0 | } else { |
2020 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2021 | 0 | } |
2022 | 0 | _impl_.data_.SetAllocated(value, GetArena()); |
2023 | 0 | if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.data_.IsDefault()) { |
2024 | 0 | _impl_.data_.Set("", GetArena()); |
2025 | 0 | } |
2026 | 0 | // @@protoc_insertion_point(field_set_allocated:iCCP.data) |
2027 | 0 | } |
2028 | | |
2029 | | // ------------------------------------------------------------------- |
2030 | | |
2031 | | // OtherChunk |
2032 | | |
2033 | | // uint32 known_type = 1; |
2034 | 35.7k | inline bool OtherChunk::has_known_type() const { |
2035 | 35.7k | return type_case() == kKnownType; |
2036 | 35.7k | } |
2037 | 10 | inline void OtherChunk::set_has_known_type() { |
2038 | 10 | _impl_._oneof_case_[0] = kKnownType; |
2039 | 10 | } |
2040 | 0 | inline void OtherChunk::clear_known_type() { |
2041 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2042 | 0 | if (type_case() == kKnownType) { |
2043 | 0 | _impl_.type_.known_type_ = 0u; |
2044 | 0 | clear_has_type(); |
2045 | 0 | } |
2046 | 0 | } |
2047 | 30.2k | inline ::uint32_t OtherChunk::known_type() const { |
2048 | | // @@protoc_insertion_point(field_get:OtherChunk.known_type) |
2049 | 30.2k | return _internal_known_type(); |
2050 | 30.2k | } |
2051 | 10 | inline void OtherChunk::set_known_type(::uint32_t value) { |
2052 | 10 | if (type_case() != kKnownType) { |
2053 | 10 | clear_type(); |
2054 | 10 | set_has_known_type(); |
2055 | 10 | } |
2056 | 10 | _impl_.type_.known_type_ = value; |
2057 | | // @@protoc_insertion_point(field_set:OtherChunk.known_type) |
2058 | 10 | } |
2059 | 30.2k | inline ::uint32_t OtherChunk::_internal_known_type() const { |
2060 | 30.2k | if (type_case() == kKnownType) { |
2061 | 30.2k | return _impl_.type_.known_type_; |
2062 | 30.2k | } |
2063 | 0 | return 0u; |
2064 | 30.2k | } |
2065 | | |
2066 | | // uint32 unknown_type = 2; |
2067 | 5.78k | inline bool OtherChunk::has_unknown_type() const { |
2068 | 5.78k | return type_case() == kUnknownType; |
2069 | 5.78k | } |
2070 | 0 | inline void OtherChunk::set_has_unknown_type() { |
2071 | 0 | _impl_._oneof_case_[0] = kUnknownType; |
2072 | 0 | } |
2073 | 0 | inline void OtherChunk::clear_unknown_type() { |
2074 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2075 | 0 | if (type_case() == kUnknownType) { |
2076 | 0 | _impl_.type_.unknown_type_ = 0u; |
2077 | 0 | clear_has_type(); |
2078 | 0 | } |
2079 | 0 | } |
2080 | 4.85k | inline ::uint32_t OtherChunk::unknown_type() const { |
2081 | | // @@protoc_insertion_point(field_get:OtherChunk.unknown_type) |
2082 | 4.85k | return _internal_unknown_type(); |
2083 | 4.85k | } |
2084 | 0 | inline void OtherChunk::set_unknown_type(::uint32_t value) { |
2085 | 0 | if (type_case() != kUnknownType) { |
2086 | 0 | clear_type(); |
2087 | 0 | set_has_unknown_type(); |
2088 | 0 | } |
2089 | 0 | _impl_.type_.unknown_type_ = value; |
2090 | 0 | // @@protoc_insertion_point(field_set:OtherChunk.unknown_type) |
2091 | 0 | } |
2092 | 4.85k | inline ::uint32_t OtherChunk::_internal_unknown_type() const { |
2093 | 4.85k | if (type_case() == kUnknownType) { |
2094 | 4.85k | return _impl_.type_.unknown_type_; |
2095 | 4.85k | } |
2096 | 0 | return 0u; |
2097 | 4.85k | } |
2098 | | |
2099 | | // required bytes data = 3; |
2100 | 0 | inline bool OtherChunk::has_data() const { |
2101 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
2102 | 0 | return value; |
2103 | 0 | } |
2104 | 0 | inline void OtherChunk::clear_data() { |
2105 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2106 | 0 | _impl_.data_.ClearToEmpty(); |
2107 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2108 | 0 | } |
2109 | | inline const std::string& OtherChunk::data() const |
2110 | 35.1k | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2111 | | // @@protoc_insertion_point(field_get:OtherChunk.data) |
2112 | 35.1k | return _internal_data(); |
2113 | 35.1k | } |
2114 | | template <typename Arg_, typename... Args_> |
2115 | | inline PROTOBUF_ALWAYS_INLINE void OtherChunk::set_data(Arg_&& arg, |
2116 | | Args_... args) { |
2117 | | ::google::protobuf::internal::TSanWrite(&_impl_); |
2118 | | _impl_._has_bits_[0] |= 0x00000001u; |
2119 | | _impl_.data_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena()); |
2120 | | // @@protoc_insertion_point(field_set:OtherChunk.data) |
2121 | | } |
2122 | 0 | inline std::string* OtherChunk::mutable_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2123 | 0 | std::string* _s = _internal_mutable_data(); |
2124 | 0 | // @@protoc_insertion_point(field_mutable:OtherChunk.data) |
2125 | 0 | return _s; |
2126 | 0 | } |
2127 | 35.1k | inline const std::string& OtherChunk::_internal_data() const { |
2128 | 35.1k | ::google::protobuf::internal::TSanRead(&_impl_); |
2129 | 35.1k | return _impl_.data_.Get(); |
2130 | 35.1k | } |
2131 | 0 | inline void OtherChunk::_internal_set_data(const std::string& value) { |
2132 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2133 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
2134 | 0 | _impl_.data_.Set(value, GetArena()); |
2135 | 0 | } |
2136 | 0 | inline std::string* OtherChunk::_internal_mutable_data() { |
2137 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2138 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
2139 | 0 | return _impl_.data_.Mutable( GetArena()); |
2140 | 0 | } |
2141 | 0 | inline std::string* OtherChunk::release_data() { |
2142 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2143 | 0 | // @@protoc_insertion_point(field_release:OtherChunk.data) |
2144 | 0 | if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { |
2145 | 0 | return nullptr; |
2146 | 0 | } |
2147 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2148 | 0 | auto* released = _impl_.data_.Release(); |
2149 | 0 | if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { |
2150 | 0 | _impl_.data_.Set("", GetArena()); |
2151 | 0 | } |
2152 | 0 | return released; |
2153 | 0 | } |
2154 | 0 | inline void OtherChunk::set_allocated_data(std::string* value) { |
2155 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2156 | 0 | if (value != nullptr) { |
2157 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
2158 | 0 | } else { |
2159 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2160 | 0 | } |
2161 | 0 | _impl_.data_.SetAllocated(value, GetArena()); |
2162 | 0 | if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.data_.IsDefault()) { |
2163 | 0 | _impl_.data_.Set("", GetArena()); |
2164 | 0 | } |
2165 | 0 | // @@protoc_insertion_point(field_set_allocated:OtherChunk.data) |
2166 | 0 | } |
2167 | | |
2168 | 35.7k | inline bool OtherChunk::has_type() const { |
2169 | 35.7k | return type_case() != TYPE_NOT_SET; |
2170 | 35.7k | } |
2171 | 0 | inline void OtherChunk::clear_has_type() { |
2172 | 0 | _impl_._oneof_case_[0] = TYPE_NOT_SET; |
2173 | 0 | } |
2174 | 147k | inline OtherChunk::TypeCase OtherChunk::type_case() const { |
2175 | 147k | return OtherChunk::TypeCase(_impl_._oneof_case_[0]); |
2176 | 147k | } |
2177 | | // ------------------------------------------------------------------- |
2178 | | |
2179 | | // PngChunk |
2180 | | |
2181 | | // .PLTE plte = 1; |
2182 | 61.1k | inline bool PngChunk::has_plte() const { |
2183 | 61.1k | return chunk_case() == kPlte; |
2184 | 61.1k | } |
2185 | 0 | inline bool PngChunk::_internal_has_plte() const { |
2186 | 0 | return chunk_case() == kPlte; |
2187 | 0 | } |
2188 | 0 | inline void PngChunk::set_has_plte() { |
2189 | 0 | _impl_._oneof_case_[0] = kPlte; |
2190 | 0 | } |
2191 | 0 | inline void PngChunk::clear_plte() { |
2192 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2193 | 0 | if (chunk_case() == kPlte) { |
2194 | 0 | if (GetArena() == nullptr) { |
2195 | 0 | delete _impl_.chunk_.plte_; |
2196 | 0 | } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { |
2197 | 0 | ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.chunk_.plte_); |
2198 | 0 | } |
2199 | 0 | clear_has_chunk(); |
2200 | 0 | } |
2201 | 0 | } |
2202 | 0 | inline ::PLTE* PngChunk::release_plte() { |
2203 | 0 | // @@protoc_insertion_point(field_release:PngChunk.plte) |
2204 | 0 | if (chunk_case() == kPlte) { |
2205 | 0 | clear_has_chunk(); |
2206 | 0 | auto* temp = _impl_.chunk_.plte_; |
2207 | 0 | if (GetArena() != nullptr) { |
2208 | 0 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); |
2209 | 0 | } |
2210 | 0 | _impl_.chunk_.plte_ = nullptr; |
2211 | 0 | return temp; |
2212 | 0 | } else { |
2213 | 0 | return nullptr; |
2214 | 0 | } |
2215 | 0 | } |
2216 | 4.99k | inline const ::PLTE& PngChunk::_internal_plte() const { |
2217 | 4.99k | return chunk_case() == kPlte ? *_impl_.chunk_.plte_ : reinterpret_cast<::PLTE&>(::_PLTE_default_instance_); |
2218 | 4.99k | } |
2219 | 4.99k | inline const ::PLTE& PngChunk::plte() const ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2220 | | // @@protoc_insertion_point(field_get:PngChunk.plte) |
2221 | 4.99k | return _internal_plte(); |
2222 | 4.99k | } |
2223 | 0 | inline ::PLTE* PngChunk::unsafe_arena_release_plte() { |
2224 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:PngChunk.plte) |
2225 | 0 | if (chunk_case() == kPlte) { |
2226 | 0 | clear_has_chunk(); |
2227 | 0 | auto* temp = _impl_.chunk_.plte_; |
2228 | 0 | _impl_.chunk_.plte_ = nullptr; |
2229 | 0 | return temp; |
2230 | 0 | } else { |
2231 | 0 | return nullptr; |
2232 | 0 | } |
2233 | 0 | } |
2234 | 0 | inline void PngChunk::unsafe_arena_set_allocated_plte(::PLTE* value) { |
2235 | 0 | // We rely on the oneof clear method to free the earlier contents |
2236 | 0 | // of this oneof. We can directly use the pointer we're given to |
2237 | 0 | // set the new value. |
2238 | 0 | clear_chunk(); |
2239 | 0 | if (value) { |
2240 | 0 | set_has_plte(); |
2241 | 0 | _impl_.chunk_.plte_ = value; |
2242 | 0 | } |
2243 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PngChunk.plte) |
2244 | 0 | } |
2245 | 0 | inline ::PLTE* PngChunk::_internal_mutable_plte() { |
2246 | 0 | if (chunk_case() != kPlte) { |
2247 | 0 | clear_chunk(); |
2248 | 0 | set_has_plte(); |
2249 | 0 | _impl_.chunk_.plte_ = |
2250 | 0 | ::google::protobuf::Message::DefaultConstruct<::PLTE>(GetArena()); |
2251 | 0 | } |
2252 | 0 | return _impl_.chunk_.plte_; |
2253 | 0 | } |
2254 | 0 | inline ::PLTE* PngChunk::mutable_plte() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2255 | 0 | ::PLTE* _msg = _internal_mutable_plte(); |
2256 | 0 | // @@protoc_insertion_point(field_mutable:PngChunk.plte) |
2257 | 0 | return _msg; |
2258 | 0 | } |
2259 | | |
2260 | | // .IDAT idat = 2; |
2261 | 56.1k | inline bool PngChunk::has_idat() const { |
2262 | 56.1k | return chunk_case() == kIdat; |
2263 | 56.1k | } |
2264 | 0 | inline bool PngChunk::_internal_has_idat() const { |
2265 | 0 | return chunk_case() == kIdat; |
2266 | 0 | } |
2267 | 0 | inline void PngChunk::set_has_idat() { |
2268 | 0 | _impl_._oneof_case_[0] = kIdat; |
2269 | 0 | } |
2270 | 0 | inline void PngChunk::clear_idat() { |
2271 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2272 | 0 | if (chunk_case() == kIdat) { |
2273 | 0 | if (GetArena() == nullptr) { |
2274 | 0 | delete _impl_.chunk_.idat_; |
2275 | 0 | } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { |
2276 | 0 | ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.chunk_.idat_); |
2277 | 0 | } |
2278 | 0 | clear_has_chunk(); |
2279 | 0 | } |
2280 | 0 | } |
2281 | 0 | inline ::IDAT* PngChunk::release_idat() { |
2282 | 0 | // @@protoc_insertion_point(field_release:PngChunk.idat) |
2283 | 0 | if (chunk_case() == kIdat) { |
2284 | 0 | clear_has_chunk(); |
2285 | 0 | auto* temp = _impl_.chunk_.idat_; |
2286 | 0 | if (GetArena() != nullptr) { |
2287 | 0 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); |
2288 | 0 | } |
2289 | 0 | _impl_.chunk_.idat_ = nullptr; |
2290 | 0 | return temp; |
2291 | 0 | } else { |
2292 | 0 | return nullptr; |
2293 | 0 | } |
2294 | 0 | } |
2295 | 9.69k | inline const ::IDAT& PngChunk::_internal_idat() const { |
2296 | 9.69k | return chunk_case() == kIdat ? *_impl_.chunk_.idat_ : reinterpret_cast<::IDAT&>(::_IDAT_default_instance_); |
2297 | 9.69k | } |
2298 | 9.69k | inline const ::IDAT& PngChunk::idat() const ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2299 | | // @@protoc_insertion_point(field_get:PngChunk.idat) |
2300 | 9.69k | return _internal_idat(); |
2301 | 9.69k | } |
2302 | 0 | inline ::IDAT* PngChunk::unsafe_arena_release_idat() { |
2303 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:PngChunk.idat) |
2304 | 0 | if (chunk_case() == kIdat) { |
2305 | 0 | clear_has_chunk(); |
2306 | 0 | auto* temp = _impl_.chunk_.idat_; |
2307 | 0 | _impl_.chunk_.idat_ = nullptr; |
2308 | 0 | return temp; |
2309 | 0 | } else { |
2310 | 0 | return nullptr; |
2311 | 0 | } |
2312 | 0 | } |
2313 | 0 | inline void PngChunk::unsafe_arena_set_allocated_idat(::IDAT* value) { |
2314 | 0 | // We rely on the oneof clear method to free the earlier contents |
2315 | 0 | // of this oneof. We can directly use the pointer we're given to |
2316 | 0 | // set the new value. |
2317 | 0 | clear_chunk(); |
2318 | 0 | if (value) { |
2319 | 0 | set_has_idat(); |
2320 | 0 | _impl_.chunk_.idat_ = value; |
2321 | 0 | } |
2322 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PngChunk.idat) |
2323 | 0 | } |
2324 | 0 | inline ::IDAT* PngChunk::_internal_mutable_idat() { |
2325 | 0 | if (chunk_case() != kIdat) { |
2326 | 0 | clear_chunk(); |
2327 | 0 | set_has_idat(); |
2328 | 0 | _impl_.chunk_.idat_ = |
2329 | 0 | ::google::protobuf::Message::DefaultConstruct<::IDAT>(GetArena()); |
2330 | 0 | } |
2331 | 0 | return _impl_.chunk_.idat_; |
2332 | 0 | } |
2333 | 0 | inline ::IDAT* PngChunk::mutable_idat() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2334 | 0 | ::IDAT* _msg = _internal_mutable_idat(); |
2335 | 0 | // @@protoc_insertion_point(field_mutable:PngChunk.idat) |
2336 | 0 | return _msg; |
2337 | 0 | } |
2338 | | |
2339 | | // .iCCP iccp = 3; |
2340 | 46.4k | inline bool PngChunk::has_iccp() const { |
2341 | 46.4k | return chunk_case() == kIccp; |
2342 | 46.4k | } |
2343 | 0 | inline bool PngChunk::_internal_has_iccp() const { |
2344 | 0 | return chunk_case() == kIccp; |
2345 | 0 | } |
2346 | 0 | inline void PngChunk::set_has_iccp() { |
2347 | 0 | _impl_._oneof_case_[0] = kIccp; |
2348 | 0 | } |
2349 | 0 | inline void PngChunk::clear_iccp() { |
2350 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2351 | 0 | if (chunk_case() == kIccp) { |
2352 | 0 | if (GetArena() == nullptr) { |
2353 | 0 | delete _impl_.chunk_.iccp_; |
2354 | 0 | } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { |
2355 | 0 | ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.chunk_.iccp_); |
2356 | 0 | } |
2357 | 0 | clear_has_chunk(); |
2358 | 0 | } |
2359 | 0 | } |
2360 | 0 | inline ::iCCP* PngChunk::release_iccp() { |
2361 | 0 | // @@protoc_insertion_point(field_release:PngChunk.iccp) |
2362 | 0 | if (chunk_case() == kIccp) { |
2363 | 0 | clear_has_chunk(); |
2364 | 0 | auto* temp = _impl_.chunk_.iccp_; |
2365 | 0 | if (GetArena() != nullptr) { |
2366 | 0 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); |
2367 | 0 | } |
2368 | 0 | _impl_.chunk_.iccp_ = nullptr; |
2369 | 0 | return temp; |
2370 | 0 | } else { |
2371 | 0 | return nullptr; |
2372 | 0 | } |
2373 | 0 | } |
2374 | 8.58k | inline const ::iCCP& PngChunk::_internal_iccp() const { |
2375 | 8.58k | return chunk_case() == kIccp ? *_impl_.chunk_.iccp_ : reinterpret_cast<::iCCP&>(::_iCCP_default_instance_); |
2376 | 8.58k | } |
2377 | 8.58k | inline const ::iCCP& PngChunk::iccp() const ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2378 | | // @@protoc_insertion_point(field_get:PngChunk.iccp) |
2379 | 8.58k | return _internal_iccp(); |
2380 | 8.58k | } |
2381 | 0 | inline ::iCCP* PngChunk::unsafe_arena_release_iccp() { |
2382 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:PngChunk.iccp) |
2383 | 0 | if (chunk_case() == kIccp) { |
2384 | 0 | clear_has_chunk(); |
2385 | 0 | auto* temp = _impl_.chunk_.iccp_; |
2386 | 0 | _impl_.chunk_.iccp_ = nullptr; |
2387 | 0 | return temp; |
2388 | 0 | } else { |
2389 | 0 | return nullptr; |
2390 | 0 | } |
2391 | 0 | } |
2392 | 0 | inline void PngChunk::unsafe_arena_set_allocated_iccp(::iCCP* value) { |
2393 | 0 | // We rely on the oneof clear method to free the earlier contents |
2394 | 0 | // of this oneof. We can directly use the pointer we're given to |
2395 | 0 | // set the new value. |
2396 | 0 | clear_chunk(); |
2397 | 0 | if (value) { |
2398 | 0 | set_has_iccp(); |
2399 | 0 | _impl_.chunk_.iccp_ = value; |
2400 | 0 | } |
2401 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PngChunk.iccp) |
2402 | 0 | } |
2403 | 0 | inline ::iCCP* PngChunk::_internal_mutable_iccp() { |
2404 | 0 | if (chunk_case() != kIccp) { |
2405 | 0 | clear_chunk(); |
2406 | 0 | set_has_iccp(); |
2407 | 0 | _impl_.chunk_.iccp_ = |
2408 | 0 | ::google::protobuf::Message::DefaultConstruct<::iCCP>(GetArena()); |
2409 | 0 | } |
2410 | 0 | return _impl_.chunk_.iccp_; |
2411 | 0 | } |
2412 | 0 | inline ::iCCP* PngChunk::mutable_iccp() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2413 | 0 | ::iCCP* _msg = _internal_mutable_iccp(); |
2414 | 0 | // @@protoc_insertion_point(field_mutable:PngChunk.iccp) |
2415 | 0 | return _msg; |
2416 | 0 | } |
2417 | | |
2418 | | // .OtherChunk other_chunk = 10000; |
2419 | 37.8k | inline bool PngChunk::has_other_chunk() const { |
2420 | 37.8k | return chunk_case() == kOtherChunk; |
2421 | 37.8k | } |
2422 | 0 | inline bool PngChunk::_internal_has_other_chunk() const { |
2423 | 0 | return chunk_case() == kOtherChunk; |
2424 | 0 | } |
2425 | 0 | inline void PngChunk::set_has_other_chunk() { |
2426 | 0 | _impl_._oneof_case_[0] = kOtherChunk; |
2427 | 0 | } |
2428 | 0 | inline void PngChunk::clear_other_chunk() { |
2429 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2430 | 0 | if (chunk_case() == kOtherChunk) { |
2431 | 0 | if (GetArena() == nullptr) { |
2432 | 0 | delete _impl_.chunk_.other_chunk_; |
2433 | 0 | } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { |
2434 | 0 | ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.chunk_.other_chunk_); |
2435 | 0 | } |
2436 | 0 | clear_has_chunk(); |
2437 | 0 | } |
2438 | 0 | } |
2439 | 0 | inline ::OtherChunk* PngChunk::release_other_chunk() { |
2440 | 0 | // @@protoc_insertion_point(field_release:PngChunk.other_chunk) |
2441 | 0 | if (chunk_case() == kOtherChunk) { |
2442 | 0 | clear_has_chunk(); |
2443 | 0 | auto* temp = _impl_.chunk_.other_chunk_; |
2444 | 0 | if (GetArena() != nullptr) { |
2445 | 0 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); |
2446 | 0 | } |
2447 | 0 | _impl_.chunk_.other_chunk_ = nullptr; |
2448 | 0 | return temp; |
2449 | 0 | } else { |
2450 | 0 | return nullptr; |
2451 | 0 | } |
2452 | 0 | } |
2453 | 35.7k | inline const ::OtherChunk& PngChunk::_internal_other_chunk() const { |
2454 | 35.7k | return chunk_case() == kOtherChunk ? *_impl_.chunk_.other_chunk_ : reinterpret_cast<::OtherChunk&>(::_OtherChunk_default_instance_); |
2455 | 35.7k | } |
2456 | 35.7k | inline const ::OtherChunk& PngChunk::other_chunk() const ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2457 | | // @@protoc_insertion_point(field_get:PngChunk.other_chunk) |
2458 | 35.7k | return _internal_other_chunk(); |
2459 | 35.7k | } |
2460 | 0 | inline ::OtherChunk* PngChunk::unsafe_arena_release_other_chunk() { |
2461 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:PngChunk.other_chunk) |
2462 | 0 | if (chunk_case() == kOtherChunk) { |
2463 | 0 | clear_has_chunk(); |
2464 | 0 | auto* temp = _impl_.chunk_.other_chunk_; |
2465 | 0 | _impl_.chunk_.other_chunk_ = nullptr; |
2466 | 0 | return temp; |
2467 | 0 | } else { |
2468 | 0 | return nullptr; |
2469 | 0 | } |
2470 | 0 | } |
2471 | 0 | inline void PngChunk::unsafe_arena_set_allocated_other_chunk(::OtherChunk* value) { |
2472 | 0 | // We rely on the oneof clear method to free the earlier contents |
2473 | 0 | // of this oneof. We can directly use the pointer we're given to |
2474 | 0 | // set the new value. |
2475 | 0 | clear_chunk(); |
2476 | 0 | if (value) { |
2477 | 0 | set_has_other_chunk(); |
2478 | 0 | _impl_.chunk_.other_chunk_ = value; |
2479 | 0 | } |
2480 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PngChunk.other_chunk) |
2481 | 0 | } |
2482 | 0 | inline ::OtherChunk* PngChunk::_internal_mutable_other_chunk() { |
2483 | 0 | if (chunk_case() != kOtherChunk) { |
2484 | 0 | clear_chunk(); |
2485 | 0 | set_has_other_chunk(); |
2486 | 0 | _impl_.chunk_.other_chunk_ = |
2487 | 0 | ::google::protobuf::Message::DefaultConstruct<::OtherChunk>(GetArena()); |
2488 | 0 | } |
2489 | 0 | return _impl_.chunk_.other_chunk_; |
2490 | 0 | } |
2491 | 0 | inline ::OtherChunk* PngChunk::mutable_other_chunk() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2492 | 0 | ::OtherChunk* _msg = _internal_mutable_other_chunk(); |
2493 | 0 | // @@protoc_insertion_point(field_mutable:PngChunk.other_chunk) |
2494 | 0 | return _msg; |
2495 | 0 | } |
2496 | | |
2497 | 61.7k | inline bool PngChunk::has_chunk() const { |
2498 | 61.7k | return chunk_case() != CHUNK_NOT_SET; |
2499 | 61.7k | } |
2500 | 0 | inline void PngChunk::clear_has_chunk() { |
2501 | 0 | _impl_._oneof_case_[0] = CHUNK_NOT_SET; |
2502 | 0 | } |
2503 | 381k | inline PngChunk::ChunkCase PngChunk::chunk_case() const { |
2504 | 381k | return PngChunk::ChunkCase(_impl_._oneof_case_[0]); |
2505 | 381k | } |
2506 | | // ------------------------------------------------------------------- |
2507 | | |
2508 | | // PngProto |
2509 | | |
2510 | | // required .IHDR ihdr = 1; |
2511 | 0 | inline bool PngProto::has_ihdr() const { |
2512 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
2513 | 0 | PROTOBUF_ASSUME(!value || _impl_.ihdr_ != nullptr); |
2514 | 0 | return value; |
2515 | 0 | } |
2516 | 0 | inline void PngProto::clear_ihdr() { |
2517 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2518 | 0 | if (_impl_.ihdr_ != nullptr) _impl_.ihdr_->Clear(); |
2519 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2520 | 0 | } |
2521 | 18.3k | inline const ::IHDR& PngProto::_internal_ihdr() const { |
2522 | 18.3k | ::google::protobuf::internal::TSanRead(&_impl_); |
2523 | 18.3k | const ::IHDR* p = _impl_.ihdr_; |
2524 | 18.3k | return p != nullptr ? *p : reinterpret_cast<const ::IHDR&>(::_IHDR_default_instance_); |
2525 | 18.3k | } |
2526 | 18.3k | inline const ::IHDR& PngProto::ihdr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2527 | | // @@protoc_insertion_point(field_get:PngProto.ihdr) |
2528 | 18.3k | return _internal_ihdr(); |
2529 | 18.3k | } |
2530 | 0 | inline void PngProto::unsafe_arena_set_allocated_ihdr(::IHDR* value) { |
2531 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2532 | 0 | if (GetArena() == nullptr) { |
2533 | 0 | delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.ihdr_); |
2534 | 0 | } |
2535 | 0 | _impl_.ihdr_ = reinterpret_cast<::IHDR*>(value); |
2536 | 0 | if (value != nullptr) { |
2537 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
2538 | 0 | } else { |
2539 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2540 | 0 | } |
2541 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PngProto.ihdr) |
2542 | 0 | } |
2543 | 0 | inline ::IHDR* PngProto::release_ihdr() { |
2544 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2545 | 0 |
|
2546 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2547 | 0 | ::IHDR* released = _impl_.ihdr_; |
2548 | 0 | _impl_.ihdr_ = nullptr; |
2549 | 0 | if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { |
2550 | 0 | auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); |
2551 | 0 | released = ::google::protobuf::internal::DuplicateIfNonNull(released); |
2552 | 0 | if (GetArena() == nullptr) { |
2553 | 0 | delete old; |
2554 | 0 | } |
2555 | 0 | } else { |
2556 | 0 | if (GetArena() != nullptr) { |
2557 | 0 | released = ::google::protobuf::internal::DuplicateIfNonNull(released); |
2558 | 0 | } |
2559 | 0 | } |
2560 | 0 | return released; |
2561 | 0 | } |
2562 | 0 | inline ::IHDR* PngProto::unsafe_arena_release_ihdr() { |
2563 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2564 | 0 | // @@protoc_insertion_point(field_release:PngProto.ihdr) |
2565 | 0 |
|
2566 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2567 | 0 | ::IHDR* temp = _impl_.ihdr_; |
2568 | 0 | _impl_.ihdr_ = nullptr; |
2569 | 0 | return temp; |
2570 | 0 | } |
2571 | 0 | inline ::IHDR* PngProto::_internal_mutable_ihdr() { |
2572 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2573 | 0 | if (_impl_.ihdr_ == nullptr) { |
2574 | 0 | auto* p = ::google::protobuf::Message::DefaultConstruct<::IHDR>(GetArena()); |
2575 | 0 | _impl_.ihdr_ = reinterpret_cast<::IHDR*>(p); |
2576 | 0 | } |
2577 | 0 | return _impl_.ihdr_; |
2578 | 0 | } |
2579 | 0 | inline ::IHDR* PngProto::mutable_ihdr() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2580 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
2581 | 0 | ::IHDR* _msg = _internal_mutable_ihdr(); |
2582 | 0 | // @@protoc_insertion_point(field_mutable:PngProto.ihdr) |
2583 | 0 | return _msg; |
2584 | 0 | } |
2585 | 0 | inline void PngProto::set_allocated_ihdr(::IHDR* value) { |
2586 | 0 | ::google::protobuf::Arena* message_arena = GetArena(); |
2587 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2588 | 0 | if (message_arena == nullptr) { |
2589 | 0 | delete (_impl_.ihdr_); |
2590 | 0 | } |
2591 | 0 |
|
2592 | 0 | if (value != nullptr) { |
2593 | 0 | ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); |
2594 | 0 | if (message_arena != submessage_arena) { |
2595 | 0 | value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); |
2596 | 0 | } |
2597 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
2598 | 0 | } else { |
2599 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2600 | 0 | } |
2601 | 0 |
|
2602 | 0 | _impl_.ihdr_ = reinterpret_cast<::IHDR*>(value); |
2603 | 0 | // @@protoc_insertion_point(field_set_allocated:PngProto.ihdr) |
2604 | 0 | } |
2605 | | |
2606 | | // repeated .PngChunk chunks = 2; |
2607 | 18.3k | inline int PngProto::_internal_chunks_size() const { |
2608 | 18.3k | return _internal_chunks().size(); |
2609 | 18.3k | } |
2610 | 18.3k | inline int PngProto::chunks_size() const { |
2611 | 18.3k | return _internal_chunks_size(); |
2612 | 18.3k | } |
2613 | 0 | inline void PngProto::clear_chunks() { |
2614 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2615 | 0 | _impl_.chunks_.Clear(); |
2616 | 0 | } |
2617 | | inline ::PngChunk* PngProto::mutable_chunks(int index) |
2618 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2619 | 0 | // @@protoc_insertion_point(field_mutable:PngProto.chunks) |
2620 | 0 | return _internal_mutable_chunks()->Mutable(index); |
2621 | 0 | } |
2622 | | inline ::google::protobuf::RepeatedPtrField<::PngChunk>* PngProto::mutable_chunks() |
2623 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2624 | 0 | // @@protoc_insertion_point(field_mutable_list:PngProto.chunks) |
2625 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2626 | 0 | return _internal_mutable_chunks(); |
2627 | 0 | } |
2628 | | inline const ::PngChunk& PngProto::chunks(int index) const |
2629 | 61.1k | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2630 | | // @@protoc_insertion_point(field_get:PngProto.chunks) |
2631 | 61.1k | return _internal_chunks().Get(index); |
2632 | 61.1k | } |
2633 | 0 | inline ::PngChunk* PngProto::add_chunks() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2634 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2635 | 0 | ::PngChunk* _add = _internal_mutable_chunks()->Add(); |
2636 | 0 | // @@protoc_insertion_point(field_add:PngProto.chunks) |
2637 | 0 | return _add; |
2638 | 0 | } |
2639 | | inline const ::google::protobuf::RepeatedPtrField<::PngChunk>& PngProto::chunks() const |
2640 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2641 | 0 | // @@protoc_insertion_point(field_list:PngProto.chunks) |
2642 | 0 | return _internal_chunks(); |
2643 | 0 | } |
2644 | | inline const ::google::protobuf::RepeatedPtrField<::PngChunk>& |
2645 | 79.5k | PngProto::_internal_chunks() const { |
2646 | 79.5k | ::google::protobuf::internal::TSanRead(&_impl_); |
2647 | 79.5k | return _impl_.chunks_; |
2648 | 79.5k | } |
2649 | | inline ::google::protobuf::RepeatedPtrField<::PngChunk>* |
2650 | 0 | PngProto::_internal_mutable_chunks() { |
2651 | 0 | ::google::protobuf::internal::TSanRead(&_impl_); |
2652 | 0 | return &_impl_.chunks_; |
2653 | 0 | } |
2654 | | |
2655 | | #ifdef __GNUC__ |
2656 | | #pragma GCC diagnostic pop |
2657 | | #endif // __GNUC__ |
2658 | | |
2659 | | // @@protoc_insertion_point(namespace_scope) |
2660 | | |
2661 | | |
2662 | | // @@protoc_insertion_point(global_scope) |
2663 | | |
2664 | | #include "google/protobuf/port_undef.inc" |
2665 | | |
2666 | | #endif // png_5ffuzz_5fproto_2eproto_2epb_2eh |