1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: protos/perfetto/trace/ftrace/pixel_mm.proto
3 
4 #include "protos/perfetto/trace/ftrace/pixel_mm.pb.h"
5 
6 #include <algorithm>
7 #include <cstdint>
8 
9 #include <google/protobuf/io/coded_stream.h>
10 #include <google/protobuf/extension_set.h>
11 #include <google/protobuf/wire_format_lite.h>
12 #include <google/protobuf/io/zero_copy_stream_impl_lite.h>
13 // @@protoc_insertion_point(includes)
14 #include <google/protobuf/port_def.inc>
15 
16 PROTOBUF_PRAGMA_INIT_SEG
17 
18 namespace _pb = ::PROTOBUF_NAMESPACE_ID;
19 namespace _pbi = _pb::internal;
20 
21 namespace perfetto {
22 namespace protos {
PixelMmKswapdWakeFtraceEvent(::_pbi::ConstantInitialized)23 PROTOBUF_CONSTEXPR PixelMmKswapdWakeFtraceEvent::PixelMmKswapdWakeFtraceEvent(
24     ::_pbi::ConstantInitialized): _impl_{
25     /*decltype(_impl_._has_bits_)*/{}
26   , /*decltype(_impl_._cached_size_)*/{}
27   , /*decltype(_impl_.whatever_)*/0} {}
28 struct PixelMmKswapdWakeFtraceEventDefaultTypeInternal {
PixelMmKswapdWakeFtraceEventDefaultTypeInternalperfetto::protos::PixelMmKswapdWakeFtraceEventDefaultTypeInternal29   PROTOBUF_CONSTEXPR PixelMmKswapdWakeFtraceEventDefaultTypeInternal()
30       : _instance(::_pbi::ConstantInitialized{}) {}
~PixelMmKswapdWakeFtraceEventDefaultTypeInternalperfetto::protos::PixelMmKswapdWakeFtraceEventDefaultTypeInternal31   ~PixelMmKswapdWakeFtraceEventDefaultTypeInternal() {}
32   union {  // NOLINT(misc-non-private-member-variables-in-classes)
33     PixelMmKswapdWakeFtraceEvent _instance;
34   };
35 };
36 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PixelMmKswapdWakeFtraceEventDefaultTypeInternal _PixelMmKswapdWakeFtraceEvent_default_instance_;
PixelMmKswapdDoneFtraceEvent(::_pbi::ConstantInitialized)37 PROTOBUF_CONSTEXPR PixelMmKswapdDoneFtraceEvent::PixelMmKswapdDoneFtraceEvent(
38     ::_pbi::ConstantInitialized): _impl_{
39     /*decltype(_impl_._has_bits_)*/{}
40   , /*decltype(_impl_._cached_size_)*/{}
41   , /*decltype(_impl_.delta_nr_scanned_)*/::uint64_t{0u}
42   , /*decltype(_impl_.delta_nr_reclaimed_)*/::uint64_t{0u}} {}
43 struct PixelMmKswapdDoneFtraceEventDefaultTypeInternal {
PixelMmKswapdDoneFtraceEventDefaultTypeInternalperfetto::protos::PixelMmKswapdDoneFtraceEventDefaultTypeInternal44   PROTOBUF_CONSTEXPR PixelMmKswapdDoneFtraceEventDefaultTypeInternal()
45       : _instance(::_pbi::ConstantInitialized{}) {}
~PixelMmKswapdDoneFtraceEventDefaultTypeInternalperfetto::protos::PixelMmKswapdDoneFtraceEventDefaultTypeInternal46   ~PixelMmKswapdDoneFtraceEventDefaultTypeInternal() {}
47   union {  // NOLINT(misc-non-private-member-variables-in-classes)
48     PixelMmKswapdDoneFtraceEvent _instance;
49   };
50 };
51 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PixelMmKswapdDoneFtraceEventDefaultTypeInternal _PixelMmKswapdDoneFtraceEvent_default_instance_;
52 }  // namespace protos
53 }  // namespace perfetto
54 namespace perfetto {
55 namespace protos {
56 
57 // ===================================================================
58 
59 class PixelMmKswapdWakeFtraceEvent::_Internal {
60  public:
61   using HasBits = decltype(std::declval<PixelMmKswapdWakeFtraceEvent>()._impl_._has_bits_);
set_has_whatever(HasBits * has_bits)62   static void set_has_whatever(HasBits* has_bits) {
63     (*has_bits)[0] |= 1u;
64   }
65 };
66 
PixelMmKswapdWakeFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)67 PixelMmKswapdWakeFtraceEvent::PixelMmKswapdWakeFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
68                          bool is_message_owned)
69   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
70   SharedCtor(arena, is_message_owned);
71   // @@protoc_insertion_point(arena_constructor:perfetto.protos.PixelMmKswapdWakeFtraceEvent)
72 }
PixelMmKswapdWakeFtraceEvent(const PixelMmKswapdWakeFtraceEvent & from)73 PixelMmKswapdWakeFtraceEvent::PixelMmKswapdWakeFtraceEvent(const PixelMmKswapdWakeFtraceEvent& from)
74   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
75   PixelMmKswapdWakeFtraceEvent* const _this = this; (void)_this;
76   new (&_impl_) Impl_{
77       decltype(_impl_._has_bits_){from._impl_._has_bits_}
78     , /*decltype(_impl_._cached_size_)*/{}
79     , decltype(_impl_.whatever_){}};
80 
81   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
82   _this->_impl_.whatever_ = from._impl_.whatever_;
83   // @@protoc_insertion_point(copy_constructor:perfetto.protos.PixelMmKswapdWakeFtraceEvent)
84 }
85 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)86 inline void PixelMmKswapdWakeFtraceEvent::SharedCtor(
87     ::_pb::Arena* arena, bool is_message_owned) {
88   (void)arena;
89   (void)is_message_owned;
90   new (&_impl_) Impl_{
91       decltype(_impl_._has_bits_){}
92     , /*decltype(_impl_._cached_size_)*/{}
93     , decltype(_impl_.whatever_){0}
94   };
95 }
96 
~PixelMmKswapdWakeFtraceEvent()97 PixelMmKswapdWakeFtraceEvent::~PixelMmKswapdWakeFtraceEvent() {
98   // @@protoc_insertion_point(destructor:perfetto.protos.PixelMmKswapdWakeFtraceEvent)
99   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
100   (void)arena;
101     return;
102   }
103   SharedDtor();
104 }
105 
SharedDtor()106 inline void PixelMmKswapdWakeFtraceEvent::SharedDtor() {
107   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
108 }
109 
SetCachedSize(int size) const110 void PixelMmKswapdWakeFtraceEvent::SetCachedSize(int size) const {
111   _impl_._cached_size_.Set(size);
112 }
113 
Clear()114 void PixelMmKswapdWakeFtraceEvent::Clear() {
115 // @@protoc_insertion_point(message_clear_start:perfetto.protos.PixelMmKswapdWakeFtraceEvent)
116   ::uint32_t cached_has_bits = 0;
117   // Prevent compiler warnings about cached_has_bits being unused
118   (void) cached_has_bits;
119 
120   _impl_.whatever_ = 0;
121   _impl_._has_bits_.Clear();
122   _internal_metadata_.Clear<std::string>();
123 }
124 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)125 const char* PixelMmKswapdWakeFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
126 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
127   _Internal::HasBits has_bits{};
128   while (!ctx->Done(&ptr)) {
129     ::uint32_t tag;
130     ptr = ::_pbi::ReadTag(ptr, &tag);
131     switch (tag >> 3) {
132       // optional int32 whatever = 1;
133       case 1:
134         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
135           _Internal::set_has_whatever(&has_bits);
136           _impl_.whatever_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
137           CHK_(ptr);
138         } else {
139           goto handle_unusual;
140         }
141         continue;
142       default:
143         goto handle_unusual;
144     }  // switch
145   handle_unusual:
146     if ((tag == 0) || ((tag & 7) == 4)) {
147       CHK_(ptr);
148       ctx->SetLastTag(tag);
149       goto message_done;
150     }
151     ptr = UnknownFieldParse(
152         tag,
153         _internal_metadata_.mutable_unknown_fields<std::string>(),
154         ptr, ctx);
155     CHK_(ptr != nullptr);
156   }  // while
157 message_done:
158   _impl_._has_bits_.Or(has_bits);
159   return ptr;
160 failure:
161   ptr = nullptr;
162   goto message_done;
163 #undef CHK_
164 }
165 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const166 ::uint8_t* PixelMmKswapdWakeFtraceEvent::_InternalSerialize(
167     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
168   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.PixelMmKswapdWakeFtraceEvent)
169   ::uint32_t cached_has_bits = 0;
170   (void) cached_has_bits;
171 
172   cached_has_bits = _impl_._has_bits_[0];
173   // optional int32 whatever = 1;
174   if (cached_has_bits & 0x00000001u) {
175     target = stream->EnsureSpace(target);
176     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_whatever(), target);
177   }
178 
179   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
180     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
181         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
182   }
183   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.PixelMmKswapdWakeFtraceEvent)
184   return target;
185 }
186 
ByteSizeLong() const187 size_t PixelMmKswapdWakeFtraceEvent::ByteSizeLong() const {
188 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.PixelMmKswapdWakeFtraceEvent)
189   size_t total_size = 0;
190 
191   ::uint32_t cached_has_bits = 0;
192   // Prevent compiler warnings about cached_has_bits being unused
193   (void) cached_has_bits;
194 
195   // optional int32 whatever = 1;
196   cached_has_bits = _impl_._has_bits_[0];
197   if (cached_has_bits & 0x00000001u) {
198     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_whatever());
199   }
200 
201   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
202     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
203   }
204   int cached_size = ::_pbi::ToCachedSize(total_size);
205   SetCachedSize(cached_size);
206   return total_size;
207 }
208 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)209 void PixelMmKswapdWakeFtraceEvent::CheckTypeAndMergeFrom(
210     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
211   MergeFrom(*::_pbi::DownCast<const PixelMmKswapdWakeFtraceEvent*>(
212       &from));
213 }
214 
MergeFrom(const PixelMmKswapdWakeFtraceEvent & from)215 void PixelMmKswapdWakeFtraceEvent::MergeFrom(const PixelMmKswapdWakeFtraceEvent& from) {
216   PixelMmKswapdWakeFtraceEvent* const _this = this;
217   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.PixelMmKswapdWakeFtraceEvent)
218   GOOGLE_DCHECK_NE(&from, _this);
219   ::uint32_t cached_has_bits = 0;
220   (void) cached_has_bits;
221 
222   if (from._internal_has_whatever()) {
223     _this->_internal_set_whatever(from._internal_whatever());
224   }
225   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
226 }
227 
CopyFrom(const PixelMmKswapdWakeFtraceEvent & from)228 void PixelMmKswapdWakeFtraceEvent::CopyFrom(const PixelMmKswapdWakeFtraceEvent& from) {
229 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.PixelMmKswapdWakeFtraceEvent)
230   if (&from == this) return;
231   Clear();
232   MergeFrom(from);
233 }
234 
IsInitialized() const235 bool PixelMmKswapdWakeFtraceEvent::IsInitialized() const {
236   return true;
237 }
238 
InternalSwap(PixelMmKswapdWakeFtraceEvent * other)239 void PixelMmKswapdWakeFtraceEvent::InternalSwap(PixelMmKswapdWakeFtraceEvent* other) {
240   using std::swap;
241   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
242   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
243   swap(_impl_.whatever_, other->_impl_.whatever_);
244 }
245 
GetTypeName() const246 std::string PixelMmKswapdWakeFtraceEvent::GetTypeName() const {
247   return "perfetto.protos.PixelMmKswapdWakeFtraceEvent";
248 }
249 
250 
251 // ===================================================================
252 
253 class PixelMmKswapdDoneFtraceEvent::_Internal {
254  public:
255   using HasBits = decltype(std::declval<PixelMmKswapdDoneFtraceEvent>()._impl_._has_bits_);
set_has_delta_nr_scanned(HasBits * has_bits)256   static void set_has_delta_nr_scanned(HasBits* has_bits) {
257     (*has_bits)[0] |= 1u;
258   }
set_has_delta_nr_reclaimed(HasBits * has_bits)259   static void set_has_delta_nr_reclaimed(HasBits* has_bits) {
260     (*has_bits)[0] |= 2u;
261   }
262 };
263 
PixelMmKswapdDoneFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)264 PixelMmKswapdDoneFtraceEvent::PixelMmKswapdDoneFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
265                          bool is_message_owned)
266   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
267   SharedCtor(arena, is_message_owned);
268   // @@protoc_insertion_point(arena_constructor:perfetto.protos.PixelMmKswapdDoneFtraceEvent)
269 }
PixelMmKswapdDoneFtraceEvent(const PixelMmKswapdDoneFtraceEvent & from)270 PixelMmKswapdDoneFtraceEvent::PixelMmKswapdDoneFtraceEvent(const PixelMmKswapdDoneFtraceEvent& from)
271   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
272   PixelMmKswapdDoneFtraceEvent* const _this = this; (void)_this;
273   new (&_impl_) Impl_{
274       decltype(_impl_._has_bits_){from._impl_._has_bits_}
275     , /*decltype(_impl_._cached_size_)*/{}
276     , decltype(_impl_.delta_nr_scanned_){}
277     , decltype(_impl_.delta_nr_reclaimed_){}};
278 
279   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
280   ::memcpy(&_impl_.delta_nr_scanned_, &from._impl_.delta_nr_scanned_,
281     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.delta_nr_reclaimed_) -
282     reinterpret_cast<char*>(&_impl_.delta_nr_scanned_)) + sizeof(_impl_.delta_nr_reclaimed_));
283   // @@protoc_insertion_point(copy_constructor:perfetto.protos.PixelMmKswapdDoneFtraceEvent)
284 }
285 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)286 inline void PixelMmKswapdDoneFtraceEvent::SharedCtor(
287     ::_pb::Arena* arena, bool is_message_owned) {
288   (void)arena;
289   (void)is_message_owned;
290   new (&_impl_) Impl_{
291       decltype(_impl_._has_bits_){}
292     , /*decltype(_impl_._cached_size_)*/{}
293     , decltype(_impl_.delta_nr_scanned_){::uint64_t{0u}}
294     , decltype(_impl_.delta_nr_reclaimed_){::uint64_t{0u}}
295   };
296 }
297 
~PixelMmKswapdDoneFtraceEvent()298 PixelMmKswapdDoneFtraceEvent::~PixelMmKswapdDoneFtraceEvent() {
299   // @@protoc_insertion_point(destructor:perfetto.protos.PixelMmKswapdDoneFtraceEvent)
300   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
301   (void)arena;
302     return;
303   }
304   SharedDtor();
305 }
306 
SharedDtor()307 inline void PixelMmKswapdDoneFtraceEvent::SharedDtor() {
308   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
309 }
310 
SetCachedSize(int size) const311 void PixelMmKswapdDoneFtraceEvent::SetCachedSize(int size) const {
312   _impl_._cached_size_.Set(size);
313 }
314 
Clear()315 void PixelMmKswapdDoneFtraceEvent::Clear() {
316 // @@protoc_insertion_point(message_clear_start:perfetto.protos.PixelMmKswapdDoneFtraceEvent)
317   ::uint32_t cached_has_bits = 0;
318   // Prevent compiler warnings about cached_has_bits being unused
319   (void) cached_has_bits;
320 
321   cached_has_bits = _impl_._has_bits_[0];
322   if (cached_has_bits & 0x00000003u) {
323     ::memset(&_impl_.delta_nr_scanned_, 0, static_cast<size_t>(
324         reinterpret_cast<char*>(&_impl_.delta_nr_reclaimed_) -
325         reinterpret_cast<char*>(&_impl_.delta_nr_scanned_)) + sizeof(_impl_.delta_nr_reclaimed_));
326   }
327   _impl_._has_bits_.Clear();
328   _internal_metadata_.Clear<std::string>();
329 }
330 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)331 const char* PixelMmKswapdDoneFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
332 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
333   _Internal::HasBits has_bits{};
334   while (!ctx->Done(&ptr)) {
335     ::uint32_t tag;
336     ptr = ::_pbi::ReadTag(ptr, &tag);
337     switch (tag >> 3) {
338       // optional uint64 delta_nr_scanned = 1;
339       case 1:
340         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
341           _Internal::set_has_delta_nr_scanned(&has_bits);
342           _impl_.delta_nr_scanned_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
343           CHK_(ptr);
344         } else {
345           goto handle_unusual;
346         }
347         continue;
348       // optional uint64 delta_nr_reclaimed = 2;
349       case 2:
350         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
351           _Internal::set_has_delta_nr_reclaimed(&has_bits);
352           _impl_.delta_nr_reclaimed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
353           CHK_(ptr);
354         } else {
355           goto handle_unusual;
356         }
357         continue;
358       default:
359         goto handle_unusual;
360     }  // switch
361   handle_unusual:
362     if ((tag == 0) || ((tag & 7) == 4)) {
363       CHK_(ptr);
364       ctx->SetLastTag(tag);
365       goto message_done;
366     }
367     ptr = UnknownFieldParse(
368         tag,
369         _internal_metadata_.mutable_unknown_fields<std::string>(),
370         ptr, ctx);
371     CHK_(ptr != nullptr);
372   }  // while
373 message_done:
374   _impl_._has_bits_.Or(has_bits);
375   return ptr;
376 failure:
377   ptr = nullptr;
378   goto message_done;
379 #undef CHK_
380 }
381 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const382 ::uint8_t* PixelMmKswapdDoneFtraceEvent::_InternalSerialize(
383     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
384   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.PixelMmKswapdDoneFtraceEvent)
385   ::uint32_t cached_has_bits = 0;
386   (void) cached_has_bits;
387 
388   cached_has_bits = _impl_._has_bits_[0];
389   // optional uint64 delta_nr_scanned = 1;
390   if (cached_has_bits & 0x00000001u) {
391     target = stream->EnsureSpace(target);
392     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_delta_nr_scanned(), target);
393   }
394 
395   // optional uint64 delta_nr_reclaimed = 2;
396   if (cached_has_bits & 0x00000002u) {
397     target = stream->EnsureSpace(target);
398     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_delta_nr_reclaimed(), target);
399   }
400 
401   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
402     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
403         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
404   }
405   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.PixelMmKswapdDoneFtraceEvent)
406   return target;
407 }
408 
ByteSizeLong() const409 size_t PixelMmKswapdDoneFtraceEvent::ByteSizeLong() const {
410 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.PixelMmKswapdDoneFtraceEvent)
411   size_t total_size = 0;
412 
413   ::uint32_t cached_has_bits = 0;
414   // Prevent compiler warnings about cached_has_bits being unused
415   (void) cached_has_bits;
416 
417   cached_has_bits = _impl_._has_bits_[0];
418   if (cached_has_bits & 0x00000003u) {
419     // optional uint64 delta_nr_scanned = 1;
420     if (cached_has_bits & 0x00000001u) {
421       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_delta_nr_scanned());
422     }
423 
424     // optional uint64 delta_nr_reclaimed = 2;
425     if (cached_has_bits & 0x00000002u) {
426       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_delta_nr_reclaimed());
427     }
428 
429   }
430   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
431     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
432   }
433   int cached_size = ::_pbi::ToCachedSize(total_size);
434   SetCachedSize(cached_size);
435   return total_size;
436 }
437 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)438 void PixelMmKswapdDoneFtraceEvent::CheckTypeAndMergeFrom(
439     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
440   MergeFrom(*::_pbi::DownCast<const PixelMmKswapdDoneFtraceEvent*>(
441       &from));
442 }
443 
MergeFrom(const PixelMmKswapdDoneFtraceEvent & from)444 void PixelMmKswapdDoneFtraceEvent::MergeFrom(const PixelMmKswapdDoneFtraceEvent& from) {
445   PixelMmKswapdDoneFtraceEvent* const _this = this;
446   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.PixelMmKswapdDoneFtraceEvent)
447   GOOGLE_DCHECK_NE(&from, _this);
448   ::uint32_t cached_has_bits = 0;
449   (void) cached_has_bits;
450 
451   cached_has_bits = from._impl_._has_bits_[0];
452   if (cached_has_bits & 0x00000003u) {
453     if (cached_has_bits & 0x00000001u) {
454       _this->_impl_.delta_nr_scanned_ = from._impl_.delta_nr_scanned_;
455     }
456     if (cached_has_bits & 0x00000002u) {
457       _this->_impl_.delta_nr_reclaimed_ = from._impl_.delta_nr_reclaimed_;
458     }
459     _this->_impl_._has_bits_[0] |= cached_has_bits;
460   }
461   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
462 }
463 
CopyFrom(const PixelMmKswapdDoneFtraceEvent & from)464 void PixelMmKswapdDoneFtraceEvent::CopyFrom(const PixelMmKswapdDoneFtraceEvent& from) {
465 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.PixelMmKswapdDoneFtraceEvent)
466   if (&from == this) return;
467   Clear();
468   MergeFrom(from);
469 }
470 
IsInitialized() const471 bool PixelMmKswapdDoneFtraceEvent::IsInitialized() const {
472   return true;
473 }
474 
InternalSwap(PixelMmKswapdDoneFtraceEvent * other)475 void PixelMmKswapdDoneFtraceEvent::InternalSwap(PixelMmKswapdDoneFtraceEvent* other) {
476   using std::swap;
477   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
478   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
479   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
480       PROTOBUF_FIELD_OFFSET(PixelMmKswapdDoneFtraceEvent, _impl_.delta_nr_reclaimed_)
481       + sizeof(PixelMmKswapdDoneFtraceEvent::_impl_.delta_nr_reclaimed_)  // NOLINT
482       - PROTOBUF_FIELD_OFFSET(PixelMmKswapdDoneFtraceEvent, _impl_.delta_nr_scanned_)>(
483           reinterpret_cast<char*>(&_impl_.delta_nr_scanned_),
484           reinterpret_cast<char*>(&other->_impl_.delta_nr_scanned_));
485 }
486 
GetTypeName() const487 std::string PixelMmKswapdDoneFtraceEvent::GetTypeName() const {
488   return "perfetto.protos.PixelMmKswapdDoneFtraceEvent";
489 }
490 
491 
492 // @@protoc_insertion_point(namespace_scope)
493 }  // namespace protos
494 }  // namespace perfetto
495 PROTOBUF_NAMESPACE_OPEN
496 template<> PROTOBUF_NOINLINE ::perfetto::protos::PixelMmKswapdWakeFtraceEvent*
CreateMaybeMessage(Arena * arena)497 Arena::CreateMaybeMessage< ::perfetto::protos::PixelMmKswapdWakeFtraceEvent >(Arena* arena) {
498   return Arena::CreateMessageInternal< ::perfetto::protos::PixelMmKswapdWakeFtraceEvent >(arena);
499 }
500 template<> PROTOBUF_NOINLINE ::perfetto::protos::PixelMmKswapdDoneFtraceEvent*
CreateMaybeMessage(Arena * arena)501 Arena::CreateMaybeMessage< ::perfetto::protos::PixelMmKswapdDoneFtraceEvent >(Arena* arena) {
502   return Arena::CreateMessageInternal< ::perfetto::protos::PixelMmKswapdDoneFtraceEvent >(arena);
503 }
504 PROTOBUF_NAMESPACE_CLOSE
505 
506 // @@protoc_insertion_point(global_scope)
507 #include <google/protobuf/port_undef.inc>
508