1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: protos/perfetto/trace/ftrace/raw_syscalls.proto
3 
4 #include "protos/perfetto/trace/ftrace/raw_syscalls.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 {
SysEnterFtraceEvent(::_pbi::ConstantInitialized)23 PROTOBUF_CONSTEXPR SysEnterFtraceEvent::SysEnterFtraceEvent(
24     ::_pbi::ConstantInitialized): _impl_{
25     /*decltype(_impl_._has_bits_)*/{}
26   , /*decltype(_impl_._cached_size_)*/{}
27   , /*decltype(_impl_.args_)*/{}
28   , /*decltype(_impl_.id_)*/::int64_t{0}} {}
29 struct SysEnterFtraceEventDefaultTypeInternal {
SysEnterFtraceEventDefaultTypeInternalperfetto::protos::SysEnterFtraceEventDefaultTypeInternal30   PROTOBUF_CONSTEXPR SysEnterFtraceEventDefaultTypeInternal()
31       : _instance(::_pbi::ConstantInitialized{}) {}
~SysEnterFtraceEventDefaultTypeInternalperfetto::protos::SysEnterFtraceEventDefaultTypeInternal32   ~SysEnterFtraceEventDefaultTypeInternal() {}
33   union {  // NOLINT(misc-non-private-member-variables-in-classes)
34     SysEnterFtraceEvent _instance;
35   };
36 };
37 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SysEnterFtraceEventDefaultTypeInternal _SysEnterFtraceEvent_default_instance_;
SysExitFtraceEvent(::_pbi::ConstantInitialized)38 PROTOBUF_CONSTEXPR SysExitFtraceEvent::SysExitFtraceEvent(
39     ::_pbi::ConstantInitialized): _impl_{
40     /*decltype(_impl_._has_bits_)*/{}
41   , /*decltype(_impl_._cached_size_)*/{}
42   , /*decltype(_impl_.id_)*/::int64_t{0}
43   , /*decltype(_impl_.ret_)*/::int64_t{0}} {}
44 struct SysExitFtraceEventDefaultTypeInternal {
SysExitFtraceEventDefaultTypeInternalperfetto::protos::SysExitFtraceEventDefaultTypeInternal45   PROTOBUF_CONSTEXPR SysExitFtraceEventDefaultTypeInternal()
46       : _instance(::_pbi::ConstantInitialized{}) {}
~SysExitFtraceEventDefaultTypeInternalperfetto::protos::SysExitFtraceEventDefaultTypeInternal47   ~SysExitFtraceEventDefaultTypeInternal() {}
48   union {  // NOLINT(misc-non-private-member-variables-in-classes)
49     SysExitFtraceEvent _instance;
50   };
51 };
52 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SysExitFtraceEventDefaultTypeInternal _SysExitFtraceEvent_default_instance_;
53 }  // namespace protos
54 }  // namespace perfetto
55 namespace perfetto {
56 namespace protos {
57 
58 // ===================================================================
59 
60 class SysEnterFtraceEvent::_Internal {
61  public:
62   using HasBits = decltype(std::declval<SysEnterFtraceEvent>()._impl_._has_bits_);
set_has_id(HasBits * has_bits)63   static void set_has_id(HasBits* has_bits) {
64     (*has_bits)[0] |= 1u;
65   }
66 };
67 
SysEnterFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)68 SysEnterFtraceEvent::SysEnterFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
69                          bool is_message_owned)
70   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
71   SharedCtor(arena, is_message_owned);
72   // @@protoc_insertion_point(arena_constructor:perfetto.protos.SysEnterFtraceEvent)
73 }
SysEnterFtraceEvent(const SysEnterFtraceEvent & from)74 SysEnterFtraceEvent::SysEnterFtraceEvent(const SysEnterFtraceEvent& from)
75   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
76   SysEnterFtraceEvent* const _this = this; (void)_this;
77   new (&_impl_) Impl_{
78       decltype(_impl_._has_bits_){from._impl_._has_bits_}
79     , /*decltype(_impl_._cached_size_)*/{}
80     , decltype(_impl_.args_){from._impl_.args_}
81     , decltype(_impl_.id_){}};
82 
83   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
84   _this->_impl_.id_ = from._impl_.id_;
85   // @@protoc_insertion_point(copy_constructor:perfetto.protos.SysEnterFtraceEvent)
86 }
87 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)88 inline void SysEnterFtraceEvent::SharedCtor(
89     ::_pb::Arena* arena, bool is_message_owned) {
90   (void)arena;
91   (void)is_message_owned;
92   new (&_impl_) Impl_{
93       decltype(_impl_._has_bits_){}
94     , /*decltype(_impl_._cached_size_)*/{}
95     , decltype(_impl_.args_){arena}
96     , decltype(_impl_.id_){::int64_t{0}}
97   };
98 }
99 
~SysEnterFtraceEvent()100 SysEnterFtraceEvent::~SysEnterFtraceEvent() {
101   // @@protoc_insertion_point(destructor:perfetto.protos.SysEnterFtraceEvent)
102   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
103   (void)arena;
104     return;
105   }
106   SharedDtor();
107 }
108 
SharedDtor()109 inline void SysEnterFtraceEvent::SharedDtor() {
110   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
111   _impl_.args_.~RepeatedField();
112 }
113 
SetCachedSize(int size) const114 void SysEnterFtraceEvent::SetCachedSize(int size) const {
115   _impl_._cached_size_.Set(size);
116 }
117 
Clear()118 void SysEnterFtraceEvent::Clear() {
119 // @@protoc_insertion_point(message_clear_start:perfetto.protos.SysEnterFtraceEvent)
120   ::uint32_t cached_has_bits = 0;
121   // Prevent compiler warnings about cached_has_bits being unused
122   (void) cached_has_bits;
123 
124   _impl_.args_.Clear();
125   _impl_.id_ = ::int64_t{0};
126   _impl_._has_bits_.Clear();
127   _internal_metadata_.Clear<std::string>();
128 }
129 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)130 const char* SysEnterFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
131 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
132   _Internal::HasBits has_bits{};
133   while (!ctx->Done(&ptr)) {
134     ::uint32_t tag;
135     ptr = ::_pbi::ReadTag(ptr, &tag);
136     switch (tag >> 3) {
137       // optional int64 id = 1;
138       case 1:
139         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
140           _Internal::set_has_id(&has_bits);
141           _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
142           CHK_(ptr);
143         } else {
144           goto handle_unusual;
145         }
146         continue;
147       // repeated uint64 args = 2;
148       case 2:
149         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
150           ptr -= 1;
151           do {
152             ptr += 1;
153             _internal_add_args(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
154             CHK_(ptr);
155             if (!ctx->DataAvailable(ptr)) break;
156           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<16>(ptr));
157         } else if (static_cast<::uint8_t>(tag) == 18) {
158           ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt64Parser(_internal_mutable_args(), ptr, ctx);
159           CHK_(ptr);
160         } else {
161           goto handle_unusual;
162         }
163         continue;
164       default:
165         goto handle_unusual;
166     }  // switch
167   handle_unusual:
168     if ((tag == 0) || ((tag & 7) == 4)) {
169       CHK_(ptr);
170       ctx->SetLastTag(tag);
171       goto message_done;
172     }
173     ptr = UnknownFieldParse(
174         tag,
175         _internal_metadata_.mutable_unknown_fields<std::string>(),
176         ptr, ctx);
177     CHK_(ptr != nullptr);
178   }  // while
179 message_done:
180   _impl_._has_bits_.Or(has_bits);
181   return ptr;
182 failure:
183   ptr = nullptr;
184   goto message_done;
185 #undef CHK_
186 }
187 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const188 ::uint8_t* SysEnterFtraceEvent::_InternalSerialize(
189     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
190   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.SysEnterFtraceEvent)
191   ::uint32_t cached_has_bits = 0;
192   (void) cached_has_bits;
193 
194   cached_has_bits = _impl_._has_bits_[0];
195   // optional int64 id = 1;
196   if (cached_has_bits & 0x00000001u) {
197     target = stream->EnsureSpace(target);
198     target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_id(), target);
199   }
200 
201   // repeated uint64 args = 2;
202   for (int i = 0, n = this->_internal_args_size(); i < n; i++) {
203     target = stream->EnsureSpace(target);
204     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_args(i), target);
205   }
206 
207   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
208     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
209         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
210   }
211   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.SysEnterFtraceEvent)
212   return target;
213 }
214 
ByteSizeLong() const215 size_t SysEnterFtraceEvent::ByteSizeLong() const {
216 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.SysEnterFtraceEvent)
217   size_t total_size = 0;
218 
219   ::uint32_t cached_has_bits = 0;
220   // Prevent compiler warnings about cached_has_bits being unused
221   (void) cached_has_bits;
222 
223   // repeated uint64 args = 2;
224   {
225     size_t data_size = ::_pbi::WireFormatLite::
226       UInt64Size(this->_impl_.args_);
227     total_size += 1 *
228                   ::_pbi::FromIntSize(this->_internal_args_size());
229     total_size += data_size;
230   }
231 
232   // optional int64 id = 1;
233   cached_has_bits = _impl_._has_bits_[0];
234   if (cached_has_bits & 0x00000001u) {
235     total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_id());
236   }
237 
238   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
239     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
240   }
241   int cached_size = ::_pbi::ToCachedSize(total_size);
242   SetCachedSize(cached_size);
243   return total_size;
244 }
245 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)246 void SysEnterFtraceEvent::CheckTypeAndMergeFrom(
247     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
248   MergeFrom(*::_pbi::DownCast<const SysEnterFtraceEvent*>(
249       &from));
250 }
251 
MergeFrom(const SysEnterFtraceEvent & from)252 void SysEnterFtraceEvent::MergeFrom(const SysEnterFtraceEvent& from) {
253   SysEnterFtraceEvent* const _this = this;
254   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.SysEnterFtraceEvent)
255   GOOGLE_DCHECK_NE(&from, _this);
256   ::uint32_t cached_has_bits = 0;
257   (void) cached_has_bits;
258 
259   _this->_impl_.args_.MergeFrom(from._impl_.args_);
260   if (from._internal_has_id()) {
261     _this->_internal_set_id(from._internal_id());
262   }
263   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
264 }
265 
CopyFrom(const SysEnterFtraceEvent & from)266 void SysEnterFtraceEvent::CopyFrom(const SysEnterFtraceEvent& from) {
267 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.SysEnterFtraceEvent)
268   if (&from == this) return;
269   Clear();
270   MergeFrom(from);
271 }
272 
IsInitialized() const273 bool SysEnterFtraceEvent::IsInitialized() const {
274   return true;
275 }
276 
InternalSwap(SysEnterFtraceEvent * other)277 void SysEnterFtraceEvent::InternalSwap(SysEnterFtraceEvent* other) {
278   using std::swap;
279   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
280   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
281   _impl_.args_.InternalSwap(&other->_impl_.args_);
282   swap(_impl_.id_, other->_impl_.id_);
283 }
284 
GetTypeName() const285 std::string SysEnterFtraceEvent::GetTypeName() const {
286   return "perfetto.protos.SysEnterFtraceEvent";
287 }
288 
289 
290 // ===================================================================
291 
292 class SysExitFtraceEvent::_Internal {
293  public:
294   using HasBits = decltype(std::declval<SysExitFtraceEvent>()._impl_._has_bits_);
set_has_id(HasBits * has_bits)295   static void set_has_id(HasBits* has_bits) {
296     (*has_bits)[0] |= 1u;
297   }
set_has_ret(HasBits * has_bits)298   static void set_has_ret(HasBits* has_bits) {
299     (*has_bits)[0] |= 2u;
300   }
301 };
302 
SysExitFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)303 SysExitFtraceEvent::SysExitFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
304                          bool is_message_owned)
305   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
306   SharedCtor(arena, is_message_owned);
307   // @@protoc_insertion_point(arena_constructor:perfetto.protos.SysExitFtraceEvent)
308 }
SysExitFtraceEvent(const SysExitFtraceEvent & from)309 SysExitFtraceEvent::SysExitFtraceEvent(const SysExitFtraceEvent& from)
310   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
311   SysExitFtraceEvent* const _this = this; (void)_this;
312   new (&_impl_) Impl_{
313       decltype(_impl_._has_bits_){from._impl_._has_bits_}
314     , /*decltype(_impl_._cached_size_)*/{}
315     , decltype(_impl_.id_){}
316     , decltype(_impl_.ret_){}};
317 
318   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
319   ::memcpy(&_impl_.id_, &from._impl_.id_,
320     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.ret_) -
321     reinterpret_cast<char*>(&_impl_.id_)) + sizeof(_impl_.ret_));
322   // @@protoc_insertion_point(copy_constructor:perfetto.protos.SysExitFtraceEvent)
323 }
324 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)325 inline void SysExitFtraceEvent::SharedCtor(
326     ::_pb::Arena* arena, bool is_message_owned) {
327   (void)arena;
328   (void)is_message_owned;
329   new (&_impl_) Impl_{
330       decltype(_impl_._has_bits_){}
331     , /*decltype(_impl_._cached_size_)*/{}
332     , decltype(_impl_.id_){::int64_t{0}}
333     , decltype(_impl_.ret_){::int64_t{0}}
334   };
335 }
336 
~SysExitFtraceEvent()337 SysExitFtraceEvent::~SysExitFtraceEvent() {
338   // @@protoc_insertion_point(destructor:perfetto.protos.SysExitFtraceEvent)
339   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
340   (void)arena;
341     return;
342   }
343   SharedDtor();
344 }
345 
SharedDtor()346 inline void SysExitFtraceEvent::SharedDtor() {
347   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
348 }
349 
SetCachedSize(int size) const350 void SysExitFtraceEvent::SetCachedSize(int size) const {
351   _impl_._cached_size_.Set(size);
352 }
353 
Clear()354 void SysExitFtraceEvent::Clear() {
355 // @@protoc_insertion_point(message_clear_start:perfetto.protos.SysExitFtraceEvent)
356   ::uint32_t cached_has_bits = 0;
357   // Prevent compiler warnings about cached_has_bits being unused
358   (void) cached_has_bits;
359 
360   cached_has_bits = _impl_._has_bits_[0];
361   if (cached_has_bits & 0x00000003u) {
362     ::memset(&_impl_.id_, 0, static_cast<size_t>(
363         reinterpret_cast<char*>(&_impl_.ret_) -
364         reinterpret_cast<char*>(&_impl_.id_)) + sizeof(_impl_.ret_));
365   }
366   _impl_._has_bits_.Clear();
367   _internal_metadata_.Clear<std::string>();
368 }
369 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)370 const char* SysExitFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
371 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
372   _Internal::HasBits has_bits{};
373   while (!ctx->Done(&ptr)) {
374     ::uint32_t tag;
375     ptr = ::_pbi::ReadTag(ptr, &tag);
376     switch (tag >> 3) {
377       // optional int64 id = 1;
378       case 1:
379         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
380           _Internal::set_has_id(&has_bits);
381           _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
382           CHK_(ptr);
383         } else {
384           goto handle_unusual;
385         }
386         continue;
387       // optional int64 ret = 2;
388       case 2:
389         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
390           _Internal::set_has_ret(&has_bits);
391           _impl_.ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
392           CHK_(ptr);
393         } else {
394           goto handle_unusual;
395         }
396         continue;
397       default:
398         goto handle_unusual;
399     }  // switch
400   handle_unusual:
401     if ((tag == 0) || ((tag & 7) == 4)) {
402       CHK_(ptr);
403       ctx->SetLastTag(tag);
404       goto message_done;
405     }
406     ptr = UnknownFieldParse(
407         tag,
408         _internal_metadata_.mutable_unknown_fields<std::string>(),
409         ptr, ctx);
410     CHK_(ptr != nullptr);
411   }  // while
412 message_done:
413   _impl_._has_bits_.Or(has_bits);
414   return ptr;
415 failure:
416   ptr = nullptr;
417   goto message_done;
418 #undef CHK_
419 }
420 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const421 ::uint8_t* SysExitFtraceEvent::_InternalSerialize(
422     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
423   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.SysExitFtraceEvent)
424   ::uint32_t cached_has_bits = 0;
425   (void) cached_has_bits;
426 
427   cached_has_bits = _impl_._has_bits_[0];
428   // optional int64 id = 1;
429   if (cached_has_bits & 0x00000001u) {
430     target = stream->EnsureSpace(target);
431     target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_id(), target);
432   }
433 
434   // optional int64 ret = 2;
435   if (cached_has_bits & 0x00000002u) {
436     target = stream->EnsureSpace(target);
437     target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_ret(), target);
438   }
439 
440   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
441     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
442         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
443   }
444   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.SysExitFtraceEvent)
445   return target;
446 }
447 
ByteSizeLong() const448 size_t SysExitFtraceEvent::ByteSizeLong() const {
449 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.SysExitFtraceEvent)
450   size_t total_size = 0;
451 
452   ::uint32_t cached_has_bits = 0;
453   // Prevent compiler warnings about cached_has_bits being unused
454   (void) cached_has_bits;
455 
456   cached_has_bits = _impl_._has_bits_[0];
457   if (cached_has_bits & 0x00000003u) {
458     // optional int64 id = 1;
459     if (cached_has_bits & 0x00000001u) {
460       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_id());
461     }
462 
463     // optional int64 ret = 2;
464     if (cached_has_bits & 0x00000002u) {
465       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_ret());
466     }
467 
468   }
469   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
470     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
471   }
472   int cached_size = ::_pbi::ToCachedSize(total_size);
473   SetCachedSize(cached_size);
474   return total_size;
475 }
476 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)477 void SysExitFtraceEvent::CheckTypeAndMergeFrom(
478     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
479   MergeFrom(*::_pbi::DownCast<const SysExitFtraceEvent*>(
480       &from));
481 }
482 
MergeFrom(const SysExitFtraceEvent & from)483 void SysExitFtraceEvent::MergeFrom(const SysExitFtraceEvent& from) {
484   SysExitFtraceEvent* const _this = this;
485   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.SysExitFtraceEvent)
486   GOOGLE_DCHECK_NE(&from, _this);
487   ::uint32_t cached_has_bits = 0;
488   (void) cached_has_bits;
489 
490   cached_has_bits = from._impl_._has_bits_[0];
491   if (cached_has_bits & 0x00000003u) {
492     if (cached_has_bits & 0x00000001u) {
493       _this->_impl_.id_ = from._impl_.id_;
494     }
495     if (cached_has_bits & 0x00000002u) {
496       _this->_impl_.ret_ = from._impl_.ret_;
497     }
498     _this->_impl_._has_bits_[0] |= cached_has_bits;
499   }
500   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
501 }
502 
CopyFrom(const SysExitFtraceEvent & from)503 void SysExitFtraceEvent::CopyFrom(const SysExitFtraceEvent& from) {
504 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.SysExitFtraceEvent)
505   if (&from == this) return;
506   Clear();
507   MergeFrom(from);
508 }
509 
IsInitialized() const510 bool SysExitFtraceEvent::IsInitialized() const {
511   return true;
512 }
513 
InternalSwap(SysExitFtraceEvent * other)514 void SysExitFtraceEvent::InternalSwap(SysExitFtraceEvent* other) {
515   using std::swap;
516   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
517   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
518   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
519       PROTOBUF_FIELD_OFFSET(SysExitFtraceEvent, _impl_.ret_)
520       + sizeof(SysExitFtraceEvent::_impl_.ret_)  // NOLINT
521       - PROTOBUF_FIELD_OFFSET(SysExitFtraceEvent, _impl_.id_)>(
522           reinterpret_cast<char*>(&_impl_.id_),
523           reinterpret_cast<char*>(&other->_impl_.id_));
524 }
525 
GetTypeName() const526 std::string SysExitFtraceEvent::GetTypeName() const {
527   return "perfetto.protos.SysExitFtraceEvent";
528 }
529 
530 
531 // @@protoc_insertion_point(namespace_scope)
532 }  // namespace protos
533 }  // namespace perfetto
534 PROTOBUF_NAMESPACE_OPEN
535 template<> PROTOBUF_NOINLINE ::perfetto::protos::SysEnterFtraceEvent*
CreateMaybeMessage(Arena * arena)536 Arena::CreateMaybeMessage< ::perfetto::protos::SysEnterFtraceEvent >(Arena* arena) {
537   return Arena::CreateMessageInternal< ::perfetto::protos::SysEnterFtraceEvent >(arena);
538 }
539 template<> PROTOBUF_NOINLINE ::perfetto::protos::SysExitFtraceEvent*
CreateMaybeMessage(Arena * arena)540 Arena::CreateMaybeMessage< ::perfetto::protos::SysExitFtraceEvent >(Arena* arena) {
541   return Arena::CreateMessageInternal< ::perfetto::protos::SysExitFtraceEvent >(arena);
542 }
543 PROTOBUF_NAMESPACE_CLOSE
544 
545 // @@protoc_insertion_point(global_scope)
546 #include <google/protobuf/port_undef.inc>
547