1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: protos/perfetto/trace/ftrace/gpu_scheduler.proto
3 
4 #include "protos/perfetto/trace/ftrace/gpu_scheduler.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 {
DrmSchedJobFtraceEvent(::_pbi::ConstantInitialized)23 PROTOBUF_CONSTEXPR DrmSchedJobFtraceEvent::DrmSchedJobFtraceEvent(
24     ::_pbi::ConstantInitialized): _impl_{
25     /*decltype(_impl_._has_bits_)*/{}
26   , /*decltype(_impl_._cached_size_)*/{}
27   , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
28   , /*decltype(_impl_.entity_)*/::uint64_t{0u}
29   , /*decltype(_impl_.fence_)*/::uint64_t{0u}
30   , /*decltype(_impl_.id_)*/::uint64_t{0u}
31   , /*decltype(_impl_.hw_job_count_)*/0
32   , /*decltype(_impl_.job_count_)*/0u} {}
33 struct DrmSchedJobFtraceEventDefaultTypeInternal {
DrmSchedJobFtraceEventDefaultTypeInternalperfetto::protos::DrmSchedJobFtraceEventDefaultTypeInternal34   PROTOBUF_CONSTEXPR DrmSchedJobFtraceEventDefaultTypeInternal()
35       : _instance(::_pbi::ConstantInitialized{}) {}
~DrmSchedJobFtraceEventDefaultTypeInternalperfetto::protos::DrmSchedJobFtraceEventDefaultTypeInternal36   ~DrmSchedJobFtraceEventDefaultTypeInternal() {}
37   union {  // NOLINT(misc-non-private-member-variables-in-classes)
38     DrmSchedJobFtraceEvent _instance;
39   };
40 };
41 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DrmSchedJobFtraceEventDefaultTypeInternal _DrmSchedJobFtraceEvent_default_instance_;
DrmRunJobFtraceEvent(::_pbi::ConstantInitialized)42 PROTOBUF_CONSTEXPR DrmRunJobFtraceEvent::DrmRunJobFtraceEvent(
43     ::_pbi::ConstantInitialized): _impl_{
44     /*decltype(_impl_._has_bits_)*/{}
45   , /*decltype(_impl_._cached_size_)*/{}
46   , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
47   , /*decltype(_impl_.entity_)*/::uint64_t{0u}
48   , /*decltype(_impl_.fence_)*/::uint64_t{0u}
49   , /*decltype(_impl_.id_)*/::uint64_t{0u}
50   , /*decltype(_impl_.hw_job_count_)*/0
51   , /*decltype(_impl_.job_count_)*/0u} {}
52 struct DrmRunJobFtraceEventDefaultTypeInternal {
DrmRunJobFtraceEventDefaultTypeInternalperfetto::protos::DrmRunJobFtraceEventDefaultTypeInternal53   PROTOBUF_CONSTEXPR DrmRunJobFtraceEventDefaultTypeInternal()
54       : _instance(::_pbi::ConstantInitialized{}) {}
~DrmRunJobFtraceEventDefaultTypeInternalperfetto::protos::DrmRunJobFtraceEventDefaultTypeInternal55   ~DrmRunJobFtraceEventDefaultTypeInternal() {}
56   union {  // NOLINT(misc-non-private-member-variables-in-classes)
57     DrmRunJobFtraceEvent _instance;
58   };
59 };
60 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DrmRunJobFtraceEventDefaultTypeInternal _DrmRunJobFtraceEvent_default_instance_;
DrmSchedProcessJobFtraceEvent(::_pbi::ConstantInitialized)61 PROTOBUF_CONSTEXPR DrmSchedProcessJobFtraceEvent::DrmSchedProcessJobFtraceEvent(
62     ::_pbi::ConstantInitialized): _impl_{
63     /*decltype(_impl_._has_bits_)*/{}
64   , /*decltype(_impl_._cached_size_)*/{}
65   , /*decltype(_impl_.fence_)*/::uint64_t{0u}} {}
66 struct DrmSchedProcessJobFtraceEventDefaultTypeInternal {
DrmSchedProcessJobFtraceEventDefaultTypeInternalperfetto::protos::DrmSchedProcessJobFtraceEventDefaultTypeInternal67   PROTOBUF_CONSTEXPR DrmSchedProcessJobFtraceEventDefaultTypeInternal()
68       : _instance(::_pbi::ConstantInitialized{}) {}
~DrmSchedProcessJobFtraceEventDefaultTypeInternalperfetto::protos::DrmSchedProcessJobFtraceEventDefaultTypeInternal69   ~DrmSchedProcessJobFtraceEventDefaultTypeInternal() {}
70   union {  // NOLINT(misc-non-private-member-variables-in-classes)
71     DrmSchedProcessJobFtraceEvent _instance;
72   };
73 };
74 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DrmSchedProcessJobFtraceEventDefaultTypeInternal _DrmSchedProcessJobFtraceEvent_default_instance_;
75 }  // namespace protos
76 }  // namespace perfetto
77 namespace perfetto {
78 namespace protos {
79 
80 // ===================================================================
81 
82 class DrmSchedJobFtraceEvent::_Internal {
83  public:
84   using HasBits = decltype(std::declval<DrmSchedJobFtraceEvent>()._impl_._has_bits_);
set_has_entity(HasBits * has_bits)85   static void set_has_entity(HasBits* has_bits) {
86     (*has_bits)[0] |= 2u;
87   }
set_has_fence(HasBits * has_bits)88   static void set_has_fence(HasBits* has_bits) {
89     (*has_bits)[0] |= 4u;
90   }
set_has_hw_job_count(HasBits * has_bits)91   static void set_has_hw_job_count(HasBits* has_bits) {
92     (*has_bits)[0] |= 16u;
93   }
set_has_id(HasBits * has_bits)94   static void set_has_id(HasBits* has_bits) {
95     (*has_bits)[0] |= 8u;
96   }
set_has_job_count(HasBits * has_bits)97   static void set_has_job_count(HasBits* has_bits) {
98     (*has_bits)[0] |= 32u;
99   }
set_has_name(HasBits * has_bits)100   static void set_has_name(HasBits* has_bits) {
101     (*has_bits)[0] |= 1u;
102   }
103 };
104 
DrmSchedJobFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)105 DrmSchedJobFtraceEvent::DrmSchedJobFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
106                          bool is_message_owned)
107   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
108   SharedCtor(arena, is_message_owned);
109   // @@protoc_insertion_point(arena_constructor:perfetto.protos.DrmSchedJobFtraceEvent)
110 }
DrmSchedJobFtraceEvent(const DrmSchedJobFtraceEvent & from)111 DrmSchedJobFtraceEvent::DrmSchedJobFtraceEvent(const DrmSchedJobFtraceEvent& from)
112   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
113   DrmSchedJobFtraceEvent* const _this = this; (void)_this;
114   new (&_impl_) Impl_{
115       decltype(_impl_._has_bits_){from._impl_._has_bits_}
116     , /*decltype(_impl_._cached_size_)*/{}
117     , decltype(_impl_.name_){}
118     , decltype(_impl_.entity_){}
119     , decltype(_impl_.fence_){}
120     , decltype(_impl_.id_){}
121     , decltype(_impl_.hw_job_count_){}
122     , decltype(_impl_.job_count_){}};
123 
124   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
125   _impl_.name_.InitDefault();
126   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
127     _impl_.name_.Set("", GetArenaForAllocation());
128   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
129   if (from._internal_has_name()) {
130     _this->_impl_.name_.Set(from._internal_name(),
131       _this->GetArenaForAllocation());
132   }
133   ::memcpy(&_impl_.entity_, &from._impl_.entity_,
134     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.job_count_) -
135     reinterpret_cast<char*>(&_impl_.entity_)) + sizeof(_impl_.job_count_));
136   // @@protoc_insertion_point(copy_constructor:perfetto.protos.DrmSchedJobFtraceEvent)
137 }
138 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)139 inline void DrmSchedJobFtraceEvent::SharedCtor(
140     ::_pb::Arena* arena, bool is_message_owned) {
141   (void)arena;
142   (void)is_message_owned;
143   new (&_impl_) Impl_{
144       decltype(_impl_._has_bits_){}
145     , /*decltype(_impl_._cached_size_)*/{}
146     , decltype(_impl_.name_){}
147     , decltype(_impl_.entity_){::uint64_t{0u}}
148     , decltype(_impl_.fence_){::uint64_t{0u}}
149     , decltype(_impl_.id_){::uint64_t{0u}}
150     , decltype(_impl_.hw_job_count_){0}
151     , decltype(_impl_.job_count_){0u}
152   };
153   _impl_.name_.InitDefault();
154   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
155     _impl_.name_.Set("", GetArenaForAllocation());
156   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
157 }
158 
~DrmSchedJobFtraceEvent()159 DrmSchedJobFtraceEvent::~DrmSchedJobFtraceEvent() {
160   // @@protoc_insertion_point(destructor:perfetto.protos.DrmSchedJobFtraceEvent)
161   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
162   (void)arena;
163     return;
164   }
165   SharedDtor();
166 }
167 
SharedDtor()168 inline void DrmSchedJobFtraceEvent::SharedDtor() {
169   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
170   _impl_.name_.Destroy();
171 }
172 
SetCachedSize(int size) const173 void DrmSchedJobFtraceEvent::SetCachedSize(int size) const {
174   _impl_._cached_size_.Set(size);
175 }
176 
Clear()177 void DrmSchedJobFtraceEvent::Clear() {
178 // @@protoc_insertion_point(message_clear_start:perfetto.protos.DrmSchedJobFtraceEvent)
179   ::uint32_t cached_has_bits = 0;
180   // Prevent compiler warnings about cached_has_bits being unused
181   (void) cached_has_bits;
182 
183   cached_has_bits = _impl_._has_bits_[0];
184   if (cached_has_bits & 0x00000001u) {
185     _impl_.name_.ClearNonDefaultToEmpty();
186   }
187   if (cached_has_bits & 0x0000003eu) {
188     ::memset(&_impl_.entity_, 0, static_cast<size_t>(
189         reinterpret_cast<char*>(&_impl_.job_count_) -
190         reinterpret_cast<char*>(&_impl_.entity_)) + sizeof(_impl_.job_count_));
191   }
192   _impl_._has_bits_.Clear();
193   _internal_metadata_.Clear<std::string>();
194 }
195 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)196 const char* DrmSchedJobFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
197 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
198   _Internal::HasBits has_bits{};
199   while (!ctx->Done(&ptr)) {
200     ::uint32_t tag;
201     ptr = ::_pbi::ReadTag(ptr, &tag);
202     switch (tag >> 3) {
203       // optional uint64 entity = 1;
204       case 1:
205         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
206           _Internal::set_has_entity(&has_bits);
207           _impl_.entity_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
208           CHK_(ptr);
209         } else {
210           goto handle_unusual;
211         }
212         continue;
213       // optional uint64 fence = 2;
214       case 2:
215         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
216           _Internal::set_has_fence(&has_bits);
217           _impl_.fence_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
218           CHK_(ptr);
219         } else {
220           goto handle_unusual;
221         }
222         continue;
223       // optional int32 hw_job_count = 3;
224       case 3:
225         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
226           _Internal::set_has_hw_job_count(&has_bits);
227           _impl_.hw_job_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
228           CHK_(ptr);
229         } else {
230           goto handle_unusual;
231         }
232         continue;
233       // optional uint64 id = 4;
234       case 4:
235         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
236           _Internal::set_has_id(&has_bits);
237           _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
238           CHK_(ptr);
239         } else {
240           goto handle_unusual;
241         }
242         continue;
243       // optional uint32 job_count = 5;
244       case 5:
245         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
246           _Internal::set_has_job_count(&has_bits);
247           _impl_.job_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
248           CHK_(ptr);
249         } else {
250           goto handle_unusual;
251         }
252         continue;
253       // optional string name = 6;
254       case 6:
255         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
256           auto str = _internal_mutable_name();
257           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
258           CHK_(ptr);
259         } else {
260           goto handle_unusual;
261         }
262         continue;
263       default:
264         goto handle_unusual;
265     }  // switch
266   handle_unusual:
267     if ((tag == 0) || ((tag & 7) == 4)) {
268       CHK_(ptr);
269       ctx->SetLastTag(tag);
270       goto message_done;
271     }
272     ptr = UnknownFieldParse(
273         tag,
274         _internal_metadata_.mutable_unknown_fields<std::string>(),
275         ptr, ctx);
276     CHK_(ptr != nullptr);
277   }  // while
278 message_done:
279   _impl_._has_bits_.Or(has_bits);
280   return ptr;
281 failure:
282   ptr = nullptr;
283   goto message_done;
284 #undef CHK_
285 }
286 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const287 ::uint8_t* DrmSchedJobFtraceEvent::_InternalSerialize(
288     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
289   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.DrmSchedJobFtraceEvent)
290   ::uint32_t cached_has_bits = 0;
291   (void) cached_has_bits;
292 
293   cached_has_bits = _impl_._has_bits_[0];
294   // optional uint64 entity = 1;
295   if (cached_has_bits & 0x00000002u) {
296     target = stream->EnsureSpace(target);
297     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_entity(), target);
298   }
299 
300   // optional uint64 fence = 2;
301   if (cached_has_bits & 0x00000004u) {
302     target = stream->EnsureSpace(target);
303     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_fence(), target);
304   }
305 
306   // optional int32 hw_job_count = 3;
307   if (cached_has_bits & 0x00000010u) {
308     target = stream->EnsureSpace(target);
309     target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_hw_job_count(), target);
310   }
311 
312   // optional uint64 id = 4;
313   if (cached_has_bits & 0x00000008u) {
314     target = stream->EnsureSpace(target);
315     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_id(), target);
316   }
317 
318   // optional uint32 job_count = 5;
319   if (cached_has_bits & 0x00000020u) {
320     target = stream->EnsureSpace(target);
321     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_job_count(), target);
322   }
323 
324   // optional string name = 6;
325   if (cached_has_bits & 0x00000001u) {
326     target = stream->WriteStringMaybeAliased(
327         6, this->_internal_name(), target);
328   }
329 
330   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
331     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
332         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
333   }
334   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.DrmSchedJobFtraceEvent)
335   return target;
336 }
337 
ByteSizeLong() const338 size_t DrmSchedJobFtraceEvent::ByteSizeLong() const {
339 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.DrmSchedJobFtraceEvent)
340   size_t total_size = 0;
341 
342   ::uint32_t cached_has_bits = 0;
343   // Prevent compiler warnings about cached_has_bits being unused
344   (void) cached_has_bits;
345 
346   cached_has_bits = _impl_._has_bits_[0];
347   if (cached_has_bits & 0x0000003fu) {
348     // optional string name = 6;
349     if (cached_has_bits & 0x00000001u) {
350       total_size += 1 +
351         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
352           this->_internal_name());
353     }
354 
355     // optional uint64 entity = 1;
356     if (cached_has_bits & 0x00000002u) {
357       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_entity());
358     }
359 
360     // optional uint64 fence = 2;
361     if (cached_has_bits & 0x00000004u) {
362       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_fence());
363     }
364 
365     // optional uint64 id = 4;
366     if (cached_has_bits & 0x00000008u) {
367       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_id());
368     }
369 
370     // optional int32 hw_job_count = 3;
371     if (cached_has_bits & 0x00000010u) {
372       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_hw_job_count());
373     }
374 
375     // optional uint32 job_count = 5;
376     if (cached_has_bits & 0x00000020u) {
377       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_job_count());
378     }
379 
380   }
381   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
382     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
383   }
384   int cached_size = ::_pbi::ToCachedSize(total_size);
385   SetCachedSize(cached_size);
386   return total_size;
387 }
388 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)389 void DrmSchedJobFtraceEvent::CheckTypeAndMergeFrom(
390     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
391   MergeFrom(*::_pbi::DownCast<const DrmSchedJobFtraceEvent*>(
392       &from));
393 }
394 
MergeFrom(const DrmSchedJobFtraceEvent & from)395 void DrmSchedJobFtraceEvent::MergeFrom(const DrmSchedJobFtraceEvent& from) {
396   DrmSchedJobFtraceEvent* const _this = this;
397   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.DrmSchedJobFtraceEvent)
398   GOOGLE_DCHECK_NE(&from, _this);
399   ::uint32_t cached_has_bits = 0;
400   (void) cached_has_bits;
401 
402   cached_has_bits = from._impl_._has_bits_[0];
403   if (cached_has_bits & 0x0000003fu) {
404     if (cached_has_bits & 0x00000001u) {
405       _this->_internal_set_name(from._internal_name());
406     }
407     if (cached_has_bits & 0x00000002u) {
408       _this->_impl_.entity_ = from._impl_.entity_;
409     }
410     if (cached_has_bits & 0x00000004u) {
411       _this->_impl_.fence_ = from._impl_.fence_;
412     }
413     if (cached_has_bits & 0x00000008u) {
414       _this->_impl_.id_ = from._impl_.id_;
415     }
416     if (cached_has_bits & 0x00000010u) {
417       _this->_impl_.hw_job_count_ = from._impl_.hw_job_count_;
418     }
419     if (cached_has_bits & 0x00000020u) {
420       _this->_impl_.job_count_ = from._impl_.job_count_;
421     }
422     _this->_impl_._has_bits_[0] |= cached_has_bits;
423   }
424   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
425 }
426 
CopyFrom(const DrmSchedJobFtraceEvent & from)427 void DrmSchedJobFtraceEvent::CopyFrom(const DrmSchedJobFtraceEvent& from) {
428 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.DrmSchedJobFtraceEvent)
429   if (&from == this) return;
430   Clear();
431   MergeFrom(from);
432 }
433 
IsInitialized() const434 bool DrmSchedJobFtraceEvent::IsInitialized() const {
435   return true;
436 }
437 
InternalSwap(DrmSchedJobFtraceEvent * other)438 void DrmSchedJobFtraceEvent::InternalSwap(DrmSchedJobFtraceEvent* other) {
439   using std::swap;
440   auto* lhs_arena = GetArenaForAllocation();
441   auto* rhs_arena = other->GetArenaForAllocation();
442   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
443   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
444   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
445       &_impl_.name_, lhs_arena,
446       &other->_impl_.name_, rhs_arena
447   );
448   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
449       PROTOBUF_FIELD_OFFSET(DrmSchedJobFtraceEvent, _impl_.job_count_)
450       + sizeof(DrmSchedJobFtraceEvent::_impl_.job_count_)  // NOLINT
451       - PROTOBUF_FIELD_OFFSET(DrmSchedJobFtraceEvent, _impl_.entity_)>(
452           reinterpret_cast<char*>(&_impl_.entity_),
453           reinterpret_cast<char*>(&other->_impl_.entity_));
454 }
455 
GetTypeName() const456 std::string DrmSchedJobFtraceEvent::GetTypeName() const {
457   return "perfetto.protos.DrmSchedJobFtraceEvent";
458 }
459 
460 
461 // ===================================================================
462 
463 class DrmRunJobFtraceEvent::_Internal {
464  public:
465   using HasBits = decltype(std::declval<DrmRunJobFtraceEvent>()._impl_._has_bits_);
set_has_entity(HasBits * has_bits)466   static void set_has_entity(HasBits* has_bits) {
467     (*has_bits)[0] |= 2u;
468   }
set_has_fence(HasBits * has_bits)469   static void set_has_fence(HasBits* has_bits) {
470     (*has_bits)[0] |= 4u;
471   }
set_has_hw_job_count(HasBits * has_bits)472   static void set_has_hw_job_count(HasBits* has_bits) {
473     (*has_bits)[0] |= 16u;
474   }
set_has_id(HasBits * has_bits)475   static void set_has_id(HasBits* has_bits) {
476     (*has_bits)[0] |= 8u;
477   }
set_has_job_count(HasBits * has_bits)478   static void set_has_job_count(HasBits* has_bits) {
479     (*has_bits)[0] |= 32u;
480   }
set_has_name(HasBits * has_bits)481   static void set_has_name(HasBits* has_bits) {
482     (*has_bits)[0] |= 1u;
483   }
484 };
485 
DrmRunJobFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)486 DrmRunJobFtraceEvent::DrmRunJobFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
487                          bool is_message_owned)
488   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
489   SharedCtor(arena, is_message_owned);
490   // @@protoc_insertion_point(arena_constructor:perfetto.protos.DrmRunJobFtraceEvent)
491 }
DrmRunJobFtraceEvent(const DrmRunJobFtraceEvent & from)492 DrmRunJobFtraceEvent::DrmRunJobFtraceEvent(const DrmRunJobFtraceEvent& from)
493   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
494   DrmRunJobFtraceEvent* const _this = this; (void)_this;
495   new (&_impl_) Impl_{
496       decltype(_impl_._has_bits_){from._impl_._has_bits_}
497     , /*decltype(_impl_._cached_size_)*/{}
498     , decltype(_impl_.name_){}
499     , decltype(_impl_.entity_){}
500     , decltype(_impl_.fence_){}
501     , decltype(_impl_.id_){}
502     , decltype(_impl_.hw_job_count_){}
503     , decltype(_impl_.job_count_){}};
504 
505   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
506   _impl_.name_.InitDefault();
507   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
508     _impl_.name_.Set("", GetArenaForAllocation());
509   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
510   if (from._internal_has_name()) {
511     _this->_impl_.name_.Set(from._internal_name(),
512       _this->GetArenaForAllocation());
513   }
514   ::memcpy(&_impl_.entity_, &from._impl_.entity_,
515     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.job_count_) -
516     reinterpret_cast<char*>(&_impl_.entity_)) + sizeof(_impl_.job_count_));
517   // @@protoc_insertion_point(copy_constructor:perfetto.protos.DrmRunJobFtraceEvent)
518 }
519 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)520 inline void DrmRunJobFtraceEvent::SharedCtor(
521     ::_pb::Arena* arena, bool is_message_owned) {
522   (void)arena;
523   (void)is_message_owned;
524   new (&_impl_) Impl_{
525       decltype(_impl_._has_bits_){}
526     , /*decltype(_impl_._cached_size_)*/{}
527     , decltype(_impl_.name_){}
528     , decltype(_impl_.entity_){::uint64_t{0u}}
529     , decltype(_impl_.fence_){::uint64_t{0u}}
530     , decltype(_impl_.id_){::uint64_t{0u}}
531     , decltype(_impl_.hw_job_count_){0}
532     , decltype(_impl_.job_count_){0u}
533   };
534   _impl_.name_.InitDefault();
535   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
536     _impl_.name_.Set("", GetArenaForAllocation());
537   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
538 }
539 
~DrmRunJobFtraceEvent()540 DrmRunJobFtraceEvent::~DrmRunJobFtraceEvent() {
541   // @@protoc_insertion_point(destructor:perfetto.protos.DrmRunJobFtraceEvent)
542   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
543   (void)arena;
544     return;
545   }
546   SharedDtor();
547 }
548 
SharedDtor()549 inline void DrmRunJobFtraceEvent::SharedDtor() {
550   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
551   _impl_.name_.Destroy();
552 }
553 
SetCachedSize(int size) const554 void DrmRunJobFtraceEvent::SetCachedSize(int size) const {
555   _impl_._cached_size_.Set(size);
556 }
557 
Clear()558 void DrmRunJobFtraceEvent::Clear() {
559 // @@protoc_insertion_point(message_clear_start:perfetto.protos.DrmRunJobFtraceEvent)
560   ::uint32_t cached_has_bits = 0;
561   // Prevent compiler warnings about cached_has_bits being unused
562   (void) cached_has_bits;
563 
564   cached_has_bits = _impl_._has_bits_[0];
565   if (cached_has_bits & 0x00000001u) {
566     _impl_.name_.ClearNonDefaultToEmpty();
567   }
568   if (cached_has_bits & 0x0000003eu) {
569     ::memset(&_impl_.entity_, 0, static_cast<size_t>(
570         reinterpret_cast<char*>(&_impl_.job_count_) -
571         reinterpret_cast<char*>(&_impl_.entity_)) + sizeof(_impl_.job_count_));
572   }
573   _impl_._has_bits_.Clear();
574   _internal_metadata_.Clear<std::string>();
575 }
576 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)577 const char* DrmRunJobFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
578 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
579   _Internal::HasBits has_bits{};
580   while (!ctx->Done(&ptr)) {
581     ::uint32_t tag;
582     ptr = ::_pbi::ReadTag(ptr, &tag);
583     switch (tag >> 3) {
584       // optional uint64 entity = 1;
585       case 1:
586         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
587           _Internal::set_has_entity(&has_bits);
588           _impl_.entity_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
589           CHK_(ptr);
590         } else {
591           goto handle_unusual;
592         }
593         continue;
594       // optional uint64 fence = 2;
595       case 2:
596         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
597           _Internal::set_has_fence(&has_bits);
598           _impl_.fence_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
599           CHK_(ptr);
600         } else {
601           goto handle_unusual;
602         }
603         continue;
604       // optional int32 hw_job_count = 3;
605       case 3:
606         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
607           _Internal::set_has_hw_job_count(&has_bits);
608           _impl_.hw_job_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
609           CHK_(ptr);
610         } else {
611           goto handle_unusual;
612         }
613         continue;
614       // optional uint64 id = 4;
615       case 4:
616         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
617           _Internal::set_has_id(&has_bits);
618           _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
619           CHK_(ptr);
620         } else {
621           goto handle_unusual;
622         }
623         continue;
624       // optional uint32 job_count = 5;
625       case 5:
626         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
627           _Internal::set_has_job_count(&has_bits);
628           _impl_.job_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
629           CHK_(ptr);
630         } else {
631           goto handle_unusual;
632         }
633         continue;
634       // optional string name = 6;
635       case 6:
636         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
637           auto str = _internal_mutable_name();
638           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
639           CHK_(ptr);
640         } else {
641           goto handle_unusual;
642         }
643         continue;
644       default:
645         goto handle_unusual;
646     }  // switch
647   handle_unusual:
648     if ((tag == 0) || ((tag & 7) == 4)) {
649       CHK_(ptr);
650       ctx->SetLastTag(tag);
651       goto message_done;
652     }
653     ptr = UnknownFieldParse(
654         tag,
655         _internal_metadata_.mutable_unknown_fields<std::string>(),
656         ptr, ctx);
657     CHK_(ptr != nullptr);
658   }  // while
659 message_done:
660   _impl_._has_bits_.Or(has_bits);
661   return ptr;
662 failure:
663   ptr = nullptr;
664   goto message_done;
665 #undef CHK_
666 }
667 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const668 ::uint8_t* DrmRunJobFtraceEvent::_InternalSerialize(
669     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
670   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.DrmRunJobFtraceEvent)
671   ::uint32_t cached_has_bits = 0;
672   (void) cached_has_bits;
673 
674   cached_has_bits = _impl_._has_bits_[0];
675   // optional uint64 entity = 1;
676   if (cached_has_bits & 0x00000002u) {
677     target = stream->EnsureSpace(target);
678     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_entity(), target);
679   }
680 
681   // optional uint64 fence = 2;
682   if (cached_has_bits & 0x00000004u) {
683     target = stream->EnsureSpace(target);
684     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_fence(), target);
685   }
686 
687   // optional int32 hw_job_count = 3;
688   if (cached_has_bits & 0x00000010u) {
689     target = stream->EnsureSpace(target);
690     target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_hw_job_count(), target);
691   }
692 
693   // optional uint64 id = 4;
694   if (cached_has_bits & 0x00000008u) {
695     target = stream->EnsureSpace(target);
696     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_id(), target);
697   }
698 
699   // optional uint32 job_count = 5;
700   if (cached_has_bits & 0x00000020u) {
701     target = stream->EnsureSpace(target);
702     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_job_count(), target);
703   }
704 
705   // optional string name = 6;
706   if (cached_has_bits & 0x00000001u) {
707     target = stream->WriteStringMaybeAliased(
708         6, this->_internal_name(), target);
709   }
710 
711   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
712     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
713         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
714   }
715   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.DrmRunJobFtraceEvent)
716   return target;
717 }
718 
ByteSizeLong() const719 size_t DrmRunJobFtraceEvent::ByteSizeLong() const {
720 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.DrmRunJobFtraceEvent)
721   size_t total_size = 0;
722 
723   ::uint32_t cached_has_bits = 0;
724   // Prevent compiler warnings about cached_has_bits being unused
725   (void) cached_has_bits;
726 
727   cached_has_bits = _impl_._has_bits_[0];
728   if (cached_has_bits & 0x0000003fu) {
729     // optional string name = 6;
730     if (cached_has_bits & 0x00000001u) {
731       total_size += 1 +
732         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
733           this->_internal_name());
734     }
735 
736     // optional uint64 entity = 1;
737     if (cached_has_bits & 0x00000002u) {
738       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_entity());
739     }
740 
741     // optional uint64 fence = 2;
742     if (cached_has_bits & 0x00000004u) {
743       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_fence());
744     }
745 
746     // optional uint64 id = 4;
747     if (cached_has_bits & 0x00000008u) {
748       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_id());
749     }
750 
751     // optional int32 hw_job_count = 3;
752     if (cached_has_bits & 0x00000010u) {
753       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_hw_job_count());
754     }
755 
756     // optional uint32 job_count = 5;
757     if (cached_has_bits & 0x00000020u) {
758       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_job_count());
759     }
760 
761   }
762   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
763     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
764   }
765   int cached_size = ::_pbi::ToCachedSize(total_size);
766   SetCachedSize(cached_size);
767   return total_size;
768 }
769 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)770 void DrmRunJobFtraceEvent::CheckTypeAndMergeFrom(
771     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
772   MergeFrom(*::_pbi::DownCast<const DrmRunJobFtraceEvent*>(
773       &from));
774 }
775 
MergeFrom(const DrmRunJobFtraceEvent & from)776 void DrmRunJobFtraceEvent::MergeFrom(const DrmRunJobFtraceEvent& from) {
777   DrmRunJobFtraceEvent* const _this = this;
778   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.DrmRunJobFtraceEvent)
779   GOOGLE_DCHECK_NE(&from, _this);
780   ::uint32_t cached_has_bits = 0;
781   (void) cached_has_bits;
782 
783   cached_has_bits = from._impl_._has_bits_[0];
784   if (cached_has_bits & 0x0000003fu) {
785     if (cached_has_bits & 0x00000001u) {
786       _this->_internal_set_name(from._internal_name());
787     }
788     if (cached_has_bits & 0x00000002u) {
789       _this->_impl_.entity_ = from._impl_.entity_;
790     }
791     if (cached_has_bits & 0x00000004u) {
792       _this->_impl_.fence_ = from._impl_.fence_;
793     }
794     if (cached_has_bits & 0x00000008u) {
795       _this->_impl_.id_ = from._impl_.id_;
796     }
797     if (cached_has_bits & 0x00000010u) {
798       _this->_impl_.hw_job_count_ = from._impl_.hw_job_count_;
799     }
800     if (cached_has_bits & 0x00000020u) {
801       _this->_impl_.job_count_ = from._impl_.job_count_;
802     }
803     _this->_impl_._has_bits_[0] |= cached_has_bits;
804   }
805   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
806 }
807 
CopyFrom(const DrmRunJobFtraceEvent & from)808 void DrmRunJobFtraceEvent::CopyFrom(const DrmRunJobFtraceEvent& from) {
809 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.DrmRunJobFtraceEvent)
810   if (&from == this) return;
811   Clear();
812   MergeFrom(from);
813 }
814 
IsInitialized() const815 bool DrmRunJobFtraceEvent::IsInitialized() const {
816   return true;
817 }
818 
InternalSwap(DrmRunJobFtraceEvent * other)819 void DrmRunJobFtraceEvent::InternalSwap(DrmRunJobFtraceEvent* other) {
820   using std::swap;
821   auto* lhs_arena = GetArenaForAllocation();
822   auto* rhs_arena = other->GetArenaForAllocation();
823   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
824   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
825   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
826       &_impl_.name_, lhs_arena,
827       &other->_impl_.name_, rhs_arena
828   );
829   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
830       PROTOBUF_FIELD_OFFSET(DrmRunJobFtraceEvent, _impl_.job_count_)
831       + sizeof(DrmRunJobFtraceEvent::_impl_.job_count_)  // NOLINT
832       - PROTOBUF_FIELD_OFFSET(DrmRunJobFtraceEvent, _impl_.entity_)>(
833           reinterpret_cast<char*>(&_impl_.entity_),
834           reinterpret_cast<char*>(&other->_impl_.entity_));
835 }
836 
GetTypeName() const837 std::string DrmRunJobFtraceEvent::GetTypeName() const {
838   return "perfetto.protos.DrmRunJobFtraceEvent";
839 }
840 
841 
842 // ===================================================================
843 
844 class DrmSchedProcessJobFtraceEvent::_Internal {
845  public:
846   using HasBits = decltype(std::declval<DrmSchedProcessJobFtraceEvent>()._impl_._has_bits_);
set_has_fence(HasBits * has_bits)847   static void set_has_fence(HasBits* has_bits) {
848     (*has_bits)[0] |= 1u;
849   }
850 };
851 
DrmSchedProcessJobFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)852 DrmSchedProcessJobFtraceEvent::DrmSchedProcessJobFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
853                          bool is_message_owned)
854   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
855   SharedCtor(arena, is_message_owned);
856   // @@protoc_insertion_point(arena_constructor:perfetto.protos.DrmSchedProcessJobFtraceEvent)
857 }
DrmSchedProcessJobFtraceEvent(const DrmSchedProcessJobFtraceEvent & from)858 DrmSchedProcessJobFtraceEvent::DrmSchedProcessJobFtraceEvent(const DrmSchedProcessJobFtraceEvent& from)
859   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
860   DrmSchedProcessJobFtraceEvent* const _this = this; (void)_this;
861   new (&_impl_) Impl_{
862       decltype(_impl_._has_bits_){from._impl_._has_bits_}
863     , /*decltype(_impl_._cached_size_)*/{}
864     , decltype(_impl_.fence_){}};
865 
866   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
867   _this->_impl_.fence_ = from._impl_.fence_;
868   // @@protoc_insertion_point(copy_constructor:perfetto.protos.DrmSchedProcessJobFtraceEvent)
869 }
870 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)871 inline void DrmSchedProcessJobFtraceEvent::SharedCtor(
872     ::_pb::Arena* arena, bool is_message_owned) {
873   (void)arena;
874   (void)is_message_owned;
875   new (&_impl_) Impl_{
876       decltype(_impl_._has_bits_){}
877     , /*decltype(_impl_._cached_size_)*/{}
878     , decltype(_impl_.fence_){::uint64_t{0u}}
879   };
880 }
881 
~DrmSchedProcessJobFtraceEvent()882 DrmSchedProcessJobFtraceEvent::~DrmSchedProcessJobFtraceEvent() {
883   // @@protoc_insertion_point(destructor:perfetto.protos.DrmSchedProcessJobFtraceEvent)
884   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
885   (void)arena;
886     return;
887   }
888   SharedDtor();
889 }
890 
SharedDtor()891 inline void DrmSchedProcessJobFtraceEvent::SharedDtor() {
892   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
893 }
894 
SetCachedSize(int size) const895 void DrmSchedProcessJobFtraceEvent::SetCachedSize(int size) const {
896   _impl_._cached_size_.Set(size);
897 }
898 
Clear()899 void DrmSchedProcessJobFtraceEvent::Clear() {
900 // @@protoc_insertion_point(message_clear_start:perfetto.protos.DrmSchedProcessJobFtraceEvent)
901   ::uint32_t cached_has_bits = 0;
902   // Prevent compiler warnings about cached_has_bits being unused
903   (void) cached_has_bits;
904 
905   _impl_.fence_ = ::uint64_t{0u};
906   _impl_._has_bits_.Clear();
907   _internal_metadata_.Clear<std::string>();
908 }
909 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)910 const char* DrmSchedProcessJobFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
911 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
912   _Internal::HasBits has_bits{};
913   while (!ctx->Done(&ptr)) {
914     ::uint32_t tag;
915     ptr = ::_pbi::ReadTag(ptr, &tag);
916     switch (tag >> 3) {
917       // optional uint64 fence = 1;
918       case 1:
919         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
920           _Internal::set_has_fence(&has_bits);
921           _impl_.fence_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
922           CHK_(ptr);
923         } else {
924           goto handle_unusual;
925         }
926         continue;
927       default:
928         goto handle_unusual;
929     }  // switch
930   handle_unusual:
931     if ((tag == 0) || ((tag & 7) == 4)) {
932       CHK_(ptr);
933       ctx->SetLastTag(tag);
934       goto message_done;
935     }
936     ptr = UnknownFieldParse(
937         tag,
938         _internal_metadata_.mutable_unknown_fields<std::string>(),
939         ptr, ctx);
940     CHK_(ptr != nullptr);
941   }  // while
942 message_done:
943   _impl_._has_bits_.Or(has_bits);
944   return ptr;
945 failure:
946   ptr = nullptr;
947   goto message_done;
948 #undef CHK_
949 }
950 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const951 ::uint8_t* DrmSchedProcessJobFtraceEvent::_InternalSerialize(
952     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
953   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.DrmSchedProcessJobFtraceEvent)
954   ::uint32_t cached_has_bits = 0;
955   (void) cached_has_bits;
956 
957   cached_has_bits = _impl_._has_bits_[0];
958   // optional uint64 fence = 1;
959   if (cached_has_bits & 0x00000001u) {
960     target = stream->EnsureSpace(target);
961     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_fence(), target);
962   }
963 
964   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
965     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
966         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
967   }
968   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.DrmSchedProcessJobFtraceEvent)
969   return target;
970 }
971 
ByteSizeLong() const972 size_t DrmSchedProcessJobFtraceEvent::ByteSizeLong() const {
973 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.DrmSchedProcessJobFtraceEvent)
974   size_t total_size = 0;
975 
976   ::uint32_t cached_has_bits = 0;
977   // Prevent compiler warnings about cached_has_bits being unused
978   (void) cached_has_bits;
979 
980   // optional uint64 fence = 1;
981   cached_has_bits = _impl_._has_bits_[0];
982   if (cached_has_bits & 0x00000001u) {
983     total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_fence());
984   }
985 
986   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
987     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
988   }
989   int cached_size = ::_pbi::ToCachedSize(total_size);
990   SetCachedSize(cached_size);
991   return total_size;
992 }
993 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)994 void DrmSchedProcessJobFtraceEvent::CheckTypeAndMergeFrom(
995     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
996   MergeFrom(*::_pbi::DownCast<const DrmSchedProcessJobFtraceEvent*>(
997       &from));
998 }
999 
MergeFrom(const DrmSchedProcessJobFtraceEvent & from)1000 void DrmSchedProcessJobFtraceEvent::MergeFrom(const DrmSchedProcessJobFtraceEvent& from) {
1001   DrmSchedProcessJobFtraceEvent* const _this = this;
1002   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.DrmSchedProcessJobFtraceEvent)
1003   GOOGLE_DCHECK_NE(&from, _this);
1004   ::uint32_t cached_has_bits = 0;
1005   (void) cached_has_bits;
1006 
1007   if (from._internal_has_fence()) {
1008     _this->_internal_set_fence(from._internal_fence());
1009   }
1010   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1011 }
1012 
CopyFrom(const DrmSchedProcessJobFtraceEvent & from)1013 void DrmSchedProcessJobFtraceEvent::CopyFrom(const DrmSchedProcessJobFtraceEvent& from) {
1014 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.DrmSchedProcessJobFtraceEvent)
1015   if (&from == this) return;
1016   Clear();
1017   MergeFrom(from);
1018 }
1019 
IsInitialized() const1020 bool DrmSchedProcessJobFtraceEvent::IsInitialized() const {
1021   return true;
1022 }
1023 
InternalSwap(DrmSchedProcessJobFtraceEvent * other)1024 void DrmSchedProcessJobFtraceEvent::InternalSwap(DrmSchedProcessJobFtraceEvent* other) {
1025   using std::swap;
1026   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1027   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1028   swap(_impl_.fence_, other->_impl_.fence_);
1029 }
1030 
GetTypeName() const1031 std::string DrmSchedProcessJobFtraceEvent::GetTypeName() const {
1032   return "perfetto.protos.DrmSchedProcessJobFtraceEvent";
1033 }
1034 
1035 
1036 // @@protoc_insertion_point(namespace_scope)
1037 }  // namespace protos
1038 }  // namespace perfetto
1039 PROTOBUF_NAMESPACE_OPEN
1040 template<> PROTOBUF_NOINLINE ::perfetto::protos::DrmSchedJobFtraceEvent*
CreateMaybeMessage(Arena * arena)1041 Arena::CreateMaybeMessage< ::perfetto::protos::DrmSchedJobFtraceEvent >(Arena* arena) {
1042   return Arena::CreateMessageInternal< ::perfetto::protos::DrmSchedJobFtraceEvent >(arena);
1043 }
1044 template<> PROTOBUF_NOINLINE ::perfetto::protos::DrmRunJobFtraceEvent*
CreateMaybeMessage(Arena * arena)1045 Arena::CreateMaybeMessage< ::perfetto::protos::DrmRunJobFtraceEvent >(Arena* arena) {
1046   return Arena::CreateMessageInternal< ::perfetto::protos::DrmRunJobFtraceEvent >(arena);
1047 }
1048 template<> PROTOBUF_NOINLINE ::perfetto::protos::DrmSchedProcessJobFtraceEvent*
CreateMaybeMessage(Arena * arena)1049 Arena::CreateMaybeMessage< ::perfetto::protos::DrmSchedProcessJobFtraceEvent >(Arena* arena) {
1050   return Arena::CreateMessageInternal< ::perfetto::protos::DrmSchedProcessJobFtraceEvent >(arena);
1051 }
1052 PROTOBUF_NAMESPACE_CLOSE
1053 
1054 // @@protoc_insertion_point(global_scope)
1055 #include <google/protobuf/port_undef.inc>
1056