1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: protos/perfetto/trace/ftrace/v4l2.proto
3 
4 #include "protos/perfetto/trace/ftrace/v4l2.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 {
V4l2QbufFtraceEvent(::_pbi::ConstantInitialized)23 PROTOBUF_CONSTEXPR V4l2QbufFtraceEvent::V4l2QbufFtraceEvent(
24     ::_pbi::ConstantInitialized): _impl_{
25     /*decltype(_impl_._has_bits_)*/{}
26   , /*decltype(_impl_._cached_size_)*/{}
27   , /*decltype(_impl_.bytesused_)*/0u
28   , /*decltype(_impl_.field_)*/0u
29   , /*decltype(_impl_.flags_)*/0u
30   , /*decltype(_impl_.index_)*/0u
31   , /*decltype(_impl_.minor_)*/0
32   , /*decltype(_impl_.sequence_)*/0u
33   , /*decltype(_impl_.timecode_flags_)*/0u
34   , /*decltype(_impl_.timecode_frames_)*/0u
35   , /*decltype(_impl_.timecode_hours_)*/0u
36   , /*decltype(_impl_.timecode_minutes_)*/0u
37   , /*decltype(_impl_.timecode_seconds_)*/0u
38   , /*decltype(_impl_.timecode_type_)*/0u
39   , /*decltype(_impl_.timecode_userbits0_)*/0u
40   , /*decltype(_impl_.timecode_userbits1_)*/0u
41   , /*decltype(_impl_.timecode_userbits2_)*/0u
42   , /*decltype(_impl_.timecode_userbits3_)*/0u
43   , /*decltype(_impl_.timestamp_)*/::int64_t{0}
44   , /*decltype(_impl_.type_)*/0u} {}
45 struct V4l2QbufFtraceEventDefaultTypeInternal {
V4l2QbufFtraceEventDefaultTypeInternalperfetto::protos::V4l2QbufFtraceEventDefaultTypeInternal46   PROTOBUF_CONSTEXPR V4l2QbufFtraceEventDefaultTypeInternal()
47       : _instance(::_pbi::ConstantInitialized{}) {}
~V4l2QbufFtraceEventDefaultTypeInternalperfetto::protos::V4l2QbufFtraceEventDefaultTypeInternal48   ~V4l2QbufFtraceEventDefaultTypeInternal() {}
49   union {  // NOLINT(misc-non-private-member-variables-in-classes)
50     V4l2QbufFtraceEvent _instance;
51   };
52 };
53 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 V4l2QbufFtraceEventDefaultTypeInternal _V4l2QbufFtraceEvent_default_instance_;
V4l2DqbufFtraceEvent(::_pbi::ConstantInitialized)54 PROTOBUF_CONSTEXPR V4l2DqbufFtraceEvent::V4l2DqbufFtraceEvent(
55     ::_pbi::ConstantInitialized): _impl_{
56     /*decltype(_impl_._has_bits_)*/{}
57   , /*decltype(_impl_._cached_size_)*/{}
58   , /*decltype(_impl_.bytesused_)*/0u
59   , /*decltype(_impl_.field_)*/0u
60   , /*decltype(_impl_.flags_)*/0u
61   , /*decltype(_impl_.index_)*/0u
62   , /*decltype(_impl_.minor_)*/0
63   , /*decltype(_impl_.sequence_)*/0u
64   , /*decltype(_impl_.timecode_flags_)*/0u
65   , /*decltype(_impl_.timecode_frames_)*/0u
66   , /*decltype(_impl_.timecode_hours_)*/0u
67   , /*decltype(_impl_.timecode_minutes_)*/0u
68   , /*decltype(_impl_.timecode_seconds_)*/0u
69   , /*decltype(_impl_.timecode_type_)*/0u
70   , /*decltype(_impl_.timecode_userbits0_)*/0u
71   , /*decltype(_impl_.timecode_userbits1_)*/0u
72   , /*decltype(_impl_.timecode_userbits2_)*/0u
73   , /*decltype(_impl_.timecode_userbits3_)*/0u
74   , /*decltype(_impl_.timestamp_)*/::int64_t{0}
75   , /*decltype(_impl_.type_)*/0u} {}
76 struct V4l2DqbufFtraceEventDefaultTypeInternal {
V4l2DqbufFtraceEventDefaultTypeInternalperfetto::protos::V4l2DqbufFtraceEventDefaultTypeInternal77   PROTOBUF_CONSTEXPR V4l2DqbufFtraceEventDefaultTypeInternal()
78       : _instance(::_pbi::ConstantInitialized{}) {}
~V4l2DqbufFtraceEventDefaultTypeInternalperfetto::protos::V4l2DqbufFtraceEventDefaultTypeInternal79   ~V4l2DqbufFtraceEventDefaultTypeInternal() {}
80   union {  // NOLINT(misc-non-private-member-variables-in-classes)
81     V4l2DqbufFtraceEvent _instance;
82   };
83 };
84 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 V4l2DqbufFtraceEventDefaultTypeInternal _V4l2DqbufFtraceEvent_default_instance_;
Vb2V4l2BufQueueFtraceEvent(::_pbi::ConstantInitialized)85 PROTOBUF_CONSTEXPR Vb2V4l2BufQueueFtraceEvent::Vb2V4l2BufQueueFtraceEvent(
86     ::_pbi::ConstantInitialized): _impl_{
87     /*decltype(_impl_._has_bits_)*/{}
88   , /*decltype(_impl_._cached_size_)*/{}
89   , /*decltype(_impl_.field_)*/0u
90   , /*decltype(_impl_.flags_)*/0u
91   , /*decltype(_impl_.minor_)*/0
92   , /*decltype(_impl_.sequence_)*/0u
93   , /*decltype(_impl_.timecode_flags_)*/0u
94   , /*decltype(_impl_.timecode_frames_)*/0u
95   , /*decltype(_impl_.timecode_hours_)*/0u
96   , /*decltype(_impl_.timecode_minutes_)*/0u
97   , /*decltype(_impl_.timecode_seconds_)*/0u
98   , /*decltype(_impl_.timecode_type_)*/0u
99   , /*decltype(_impl_.timecode_userbits0_)*/0u
100   , /*decltype(_impl_.timecode_userbits1_)*/0u
101   , /*decltype(_impl_.timecode_userbits2_)*/0u
102   , /*decltype(_impl_.timecode_userbits3_)*/0u
103   , /*decltype(_impl_.timestamp_)*/::int64_t{0}} {}
104 struct Vb2V4l2BufQueueFtraceEventDefaultTypeInternal {
Vb2V4l2BufQueueFtraceEventDefaultTypeInternalperfetto::protos::Vb2V4l2BufQueueFtraceEventDefaultTypeInternal105   PROTOBUF_CONSTEXPR Vb2V4l2BufQueueFtraceEventDefaultTypeInternal()
106       : _instance(::_pbi::ConstantInitialized{}) {}
~Vb2V4l2BufQueueFtraceEventDefaultTypeInternalperfetto::protos::Vb2V4l2BufQueueFtraceEventDefaultTypeInternal107   ~Vb2V4l2BufQueueFtraceEventDefaultTypeInternal() {}
108   union {  // NOLINT(misc-non-private-member-variables-in-classes)
109     Vb2V4l2BufQueueFtraceEvent _instance;
110   };
111 };
112 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Vb2V4l2BufQueueFtraceEventDefaultTypeInternal _Vb2V4l2BufQueueFtraceEvent_default_instance_;
Vb2V4l2BufDoneFtraceEvent(::_pbi::ConstantInitialized)113 PROTOBUF_CONSTEXPR Vb2V4l2BufDoneFtraceEvent::Vb2V4l2BufDoneFtraceEvent(
114     ::_pbi::ConstantInitialized): _impl_{
115     /*decltype(_impl_._has_bits_)*/{}
116   , /*decltype(_impl_._cached_size_)*/{}
117   , /*decltype(_impl_.field_)*/0u
118   , /*decltype(_impl_.flags_)*/0u
119   , /*decltype(_impl_.minor_)*/0
120   , /*decltype(_impl_.sequence_)*/0u
121   , /*decltype(_impl_.timecode_flags_)*/0u
122   , /*decltype(_impl_.timecode_frames_)*/0u
123   , /*decltype(_impl_.timecode_hours_)*/0u
124   , /*decltype(_impl_.timecode_minutes_)*/0u
125   , /*decltype(_impl_.timecode_seconds_)*/0u
126   , /*decltype(_impl_.timecode_type_)*/0u
127   , /*decltype(_impl_.timecode_userbits0_)*/0u
128   , /*decltype(_impl_.timecode_userbits1_)*/0u
129   , /*decltype(_impl_.timecode_userbits2_)*/0u
130   , /*decltype(_impl_.timecode_userbits3_)*/0u
131   , /*decltype(_impl_.timestamp_)*/::int64_t{0}} {}
132 struct Vb2V4l2BufDoneFtraceEventDefaultTypeInternal {
Vb2V4l2BufDoneFtraceEventDefaultTypeInternalperfetto::protos::Vb2V4l2BufDoneFtraceEventDefaultTypeInternal133   PROTOBUF_CONSTEXPR Vb2V4l2BufDoneFtraceEventDefaultTypeInternal()
134       : _instance(::_pbi::ConstantInitialized{}) {}
~Vb2V4l2BufDoneFtraceEventDefaultTypeInternalperfetto::protos::Vb2V4l2BufDoneFtraceEventDefaultTypeInternal135   ~Vb2V4l2BufDoneFtraceEventDefaultTypeInternal() {}
136   union {  // NOLINT(misc-non-private-member-variables-in-classes)
137     Vb2V4l2BufDoneFtraceEvent _instance;
138   };
139 };
140 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Vb2V4l2BufDoneFtraceEventDefaultTypeInternal _Vb2V4l2BufDoneFtraceEvent_default_instance_;
Vb2V4l2QbufFtraceEvent(::_pbi::ConstantInitialized)141 PROTOBUF_CONSTEXPR Vb2V4l2QbufFtraceEvent::Vb2V4l2QbufFtraceEvent(
142     ::_pbi::ConstantInitialized): _impl_{
143     /*decltype(_impl_._has_bits_)*/{}
144   , /*decltype(_impl_._cached_size_)*/{}
145   , /*decltype(_impl_.field_)*/0u
146   , /*decltype(_impl_.flags_)*/0u
147   , /*decltype(_impl_.minor_)*/0
148   , /*decltype(_impl_.sequence_)*/0u
149   , /*decltype(_impl_.timecode_flags_)*/0u
150   , /*decltype(_impl_.timecode_frames_)*/0u
151   , /*decltype(_impl_.timecode_hours_)*/0u
152   , /*decltype(_impl_.timecode_minutes_)*/0u
153   , /*decltype(_impl_.timecode_seconds_)*/0u
154   , /*decltype(_impl_.timecode_type_)*/0u
155   , /*decltype(_impl_.timecode_userbits0_)*/0u
156   , /*decltype(_impl_.timecode_userbits1_)*/0u
157   , /*decltype(_impl_.timecode_userbits2_)*/0u
158   , /*decltype(_impl_.timecode_userbits3_)*/0u
159   , /*decltype(_impl_.timestamp_)*/::int64_t{0}} {}
160 struct Vb2V4l2QbufFtraceEventDefaultTypeInternal {
Vb2V4l2QbufFtraceEventDefaultTypeInternalperfetto::protos::Vb2V4l2QbufFtraceEventDefaultTypeInternal161   PROTOBUF_CONSTEXPR Vb2V4l2QbufFtraceEventDefaultTypeInternal()
162       : _instance(::_pbi::ConstantInitialized{}) {}
~Vb2V4l2QbufFtraceEventDefaultTypeInternalperfetto::protos::Vb2V4l2QbufFtraceEventDefaultTypeInternal163   ~Vb2V4l2QbufFtraceEventDefaultTypeInternal() {}
164   union {  // NOLINT(misc-non-private-member-variables-in-classes)
165     Vb2V4l2QbufFtraceEvent _instance;
166   };
167 };
168 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Vb2V4l2QbufFtraceEventDefaultTypeInternal _Vb2V4l2QbufFtraceEvent_default_instance_;
Vb2V4l2DqbufFtraceEvent(::_pbi::ConstantInitialized)169 PROTOBUF_CONSTEXPR Vb2V4l2DqbufFtraceEvent::Vb2V4l2DqbufFtraceEvent(
170     ::_pbi::ConstantInitialized): _impl_{
171     /*decltype(_impl_._has_bits_)*/{}
172   , /*decltype(_impl_._cached_size_)*/{}
173   , /*decltype(_impl_.field_)*/0u
174   , /*decltype(_impl_.flags_)*/0u
175   , /*decltype(_impl_.minor_)*/0
176   , /*decltype(_impl_.sequence_)*/0u
177   , /*decltype(_impl_.timecode_flags_)*/0u
178   , /*decltype(_impl_.timecode_frames_)*/0u
179   , /*decltype(_impl_.timecode_hours_)*/0u
180   , /*decltype(_impl_.timecode_minutes_)*/0u
181   , /*decltype(_impl_.timecode_seconds_)*/0u
182   , /*decltype(_impl_.timecode_type_)*/0u
183   , /*decltype(_impl_.timecode_userbits0_)*/0u
184   , /*decltype(_impl_.timecode_userbits1_)*/0u
185   , /*decltype(_impl_.timecode_userbits2_)*/0u
186   , /*decltype(_impl_.timecode_userbits3_)*/0u
187   , /*decltype(_impl_.timestamp_)*/::int64_t{0}} {}
188 struct Vb2V4l2DqbufFtraceEventDefaultTypeInternal {
Vb2V4l2DqbufFtraceEventDefaultTypeInternalperfetto::protos::Vb2V4l2DqbufFtraceEventDefaultTypeInternal189   PROTOBUF_CONSTEXPR Vb2V4l2DqbufFtraceEventDefaultTypeInternal()
190       : _instance(::_pbi::ConstantInitialized{}) {}
~Vb2V4l2DqbufFtraceEventDefaultTypeInternalperfetto::protos::Vb2V4l2DqbufFtraceEventDefaultTypeInternal191   ~Vb2V4l2DqbufFtraceEventDefaultTypeInternal() {}
192   union {  // NOLINT(misc-non-private-member-variables-in-classes)
193     Vb2V4l2DqbufFtraceEvent _instance;
194   };
195 };
196 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Vb2V4l2DqbufFtraceEventDefaultTypeInternal _Vb2V4l2DqbufFtraceEvent_default_instance_;
197 }  // namespace protos
198 }  // namespace perfetto
199 namespace perfetto {
200 namespace protos {
201 
202 // ===================================================================
203 
204 class V4l2QbufFtraceEvent::_Internal {
205  public:
206   using HasBits = decltype(std::declval<V4l2QbufFtraceEvent>()._impl_._has_bits_);
set_has_bytesused(HasBits * has_bits)207   static void set_has_bytesused(HasBits* has_bits) {
208     (*has_bits)[0] |= 1u;
209   }
set_has_field(HasBits * has_bits)210   static void set_has_field(HasBits* has_bits) {
211     (*has_bits)[0] |= 2u;
212   }
set_has_flags(HasBits * has_bits)213   static void set_has_flags(HasBits* has_bits) {
214     (*has_bits)[0] |= 4u;
215   }
set_has_index(HasBits * has_bits)216   static void set_has_index(HasBits* has_bits) {
217     (*has_bits)[0] |= 8u;
218   }
set_has_minor(HasBits * has_bits)219   static void set_has_minor(HasBits* has_bits) {
220     (*has_bits)[0] |= 16u;
221   }
set_has_sequence(HasBits * has_bits)222   static void set_has_sequence(HasBits* has_bits) {
223     (*has_bits)[0] |= 32u;
224   }
set_has_timecode_flags(HasBits * has_bits)225   static void set_has_timecode_flags(HasBits* has_bits) {
226     (*has_bits)[0] |= 64u;
227   }
set_has_timecode_frames(HasBits * has_bits)228   static void set_has_timecode_frames(HasBits* has_bits) {
229     (*has_bits)[0] |= 128u;
230   }
set_has_timecode_hours(HasBits * has_bits)231   static void set_has_timecode_hours(HasBits* has_bits) {
232     (*has_bits)[0] |= 256u;
233   }
set_has_timecode_minutes(HasBits * has_bits)234   static void set_has_timecode_minutes(HasBits* has_bits) {
235     (*has_bits)[0] |= 512u;
236   }
set_has_timecode_seconds(HasBits * has_bits)237   static void set_has_timecode_seconds(HasBits* has_bits) {
238     (*has_bits)[0] |= 1024u;
239   }
set_has_timecode_type(HasBits * has_bits)240   static void set_has_timecode_type(HasBits* has_bits) {
241     (*has_bits)[0] |= 2048u;
242   }
set_has_timecode_userbits0(HasBits * has_bits)243   static void set_has_timecode_userbits0(HasBits* has_bits) {
244     (*has_bits)[0] |= 4096u;
245   }
set_has_timecode_userbits1(HasBits * has_bits)246   static void set_has_timecode_userbits1(HasBits* has_bits) {
247     (*has_bits)[0] |= 8192u;
248   }
set_has_timecode_userbits2(HasBits * has_bits)249   static void set_has_timecode_userbits2(HasBits* has_bits) {
250     (*has_bits)[0] |= 16384u;
251   }
set_has_timecode_userbits3(HasBits * has_bits)252   static void set_has_timecode_userbits3(HasBits* has_bits) {
253     (*has_bits)[0] |= 32768u;
254   }
set_has_timestamp(HasBits * has_bits)255   static void set_has_timestamp(HasBits* has_bits) {
256     (*has_bits)[0] |= 65536u;
257   }
set_has_type(HasBits * has_bits)258   static void set_has_type(HasBits* has_bits) {
259     (*has_bits)[0] |= 131072u;
260   }
261 };
262 
V4l2QbufFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)263 V4l2QbufFtraceEvent::V4l2QbufFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
264                          bool is_message_owned)
265   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
266   SharedCtor(arena, is_message_owned);
267   // @@protoc_insertion_point(arena_constructor:perfetto.protos.V4l2QbufFtraceEvent)
268 }
V4l2QbufFtraceEvent(const V4l2QbufFtraceEvent & from)269 V4l2QbufFtraceEvent::V4l2QbufFtraceEvent(const V4l2QbufFtraceEvent& from)
270   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
271   V4l2QbufFtraceEvent* const _this = this; (void)_this;
272   new (&_impl_) Impl_{
273       decltype(_impl_._has_bits_){from._impl_._has_bits_}
274     , /*decltype(_impl_._cached_size_)*/{}
275     , decltype(_impl_.bytesused_){}
276     , decltype(_impl_.field_){}
277     , decltype(_impl_.flags_){}
278     , decltype(_impl_.index_){}
279     , decltype(_impl_.minor_){}
280     , decltype(_impl_.sequence_){}
281     , decltype(_impl_.timecode_flags_){}
282     , decltype(_impl_.timecode_frames_){}
283     , decltype(_impl_.timecode_hours_){}
284     , decltype(_impl_.timecode_minutes_){}
285     , decltype(_impl_.timecode_seconds_){}
286     , decltype(_impl_.timecode_type_){}
287     , decltype(_impl_.timecode_userbits0_){}
288     , decltype(_impl_.timecode_userbits1_){}
289     , decltype(_impl_.timecode_userbits2_){}
290     , decltype(_impl_.timecode_userbits3_){}
291     , decltype(_impl_.timestamp_){}
292     , decltype(_impl_.type_){}};
293 
294   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
295   ::memcpy(&_impl_.bytesused_, &from._impl_.bytesused_,
296     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.type_) -
297     reinterpret_cast<char*>(&_impl_.bytesused_)) + sizeof(_impl_.type_));
298   // @@protoc_insertion_point(copy_constructor:perfetto.protos.V4l2QbufFtraceEvent)
299 }
300 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)301 inline void V4l2QbufFtraceEvent::SharedCtor(
302     ::_pb::Arena* arena, bool is_message_owned) {
303   (void)arena;
304   (void)is_message_owned;
305   new (&_impl_) Impl_{
306       decltype(_impl_._has_bits_){}
307     , /*decltype(_impl_._cached_size_)*/{}
308     , decltype(_impl_.bytesused_){0u}
309     , decltype(_impl_.field_){0u}
310     , decltype(_impl_.flags_){0u}
311     , decltype(_impl_.index_){0u}
312     , decltype(_impl_.minor_){0}
313     , decltype(_impl_.sequence_){0u}
314     , decltype(_impl_.timecode_flags_){0u}
315     , decltype(_impl_.timecode_frames_){0u}
316     , decltype(_impl_.timecode_hours_){0u}
317     , decltype(_impl_.timecode_minutes_){0u}
318     , decltype(_impl_.timecode_seconds_){0u}
319     , decltype(_impl_.timecode_type_){0u}
320     , decltype(_impl_.timecode_userbits0_){0u}
321     , decltype(_impl_.timecode_userbits1_){0u}
322     , decltype(_impl_.timecode_userbits2_){0u}
323     , decltype(_impl_.timecode_userbits3_){0u}
324     , decltype(_impl_.timestamp_){::int64_t{0}}
325     , decltype(_impl_.type_){0u}
326   };
327 }
328 
~V4l2QbufFtraceEvent()329 V4l2QbufFtraceEvent::~V4l2QbufFtraceEvent() {
330   // @@protoc_insertion_point(destructor:perfetto.protos.V4l2QbufFtraceEvent)
331   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
332   (void)arena;
333     return;
334   }
335   SharedDtor();
336 }
337 
SharedDtor()338 inline void V4l2QbufFtraceEvent::SharedDtor() {
339   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
340 }
341 
SetCachedSize(int size) const342 void V4l2QbufFtraceEvent::SetCachedSize(int size) const {
343   _impl_._cached_size_.Set(size);
344 }
345 
Clear()346 void V4l2QbufFtraceEvent::Clear() {
347 // @@protoc_insertion_point(message_clear_start:perfetto.protos.V4l2QbufFtraceEvent)
348   ::uint32_t cached_has_bits = 0;
349   // Prevent compiler warnings about cached_has_bits being unused
350   (void) cached_has_bits;
351 
352   cached_has_bits = _impl_._has_bits_[0];
353   if (cached_has_bits & 0x000000ffu) {
354     ::memset(&_impl_.bytesused_, 0, static_cast<size_t>(
355         reinterpret_cast<char*>(&_impl_.timecode_frames_) -
356         reinterpret_cast<char*>(&_impl_.bytesused_)) + sizeof(_impl_.timecode_frames_));
357   }
358   if (cached_has_bits & 0x0000ff00u) {
359     ::memset(&_impl_.timecode_hours_, 0, static_cast<size_t>(
360         reinterpret_cast<char*>(&_impl_.timecode_userbits3_) -
361         reinterpret_cast<char*>(&_impl_.timecode_hours_)) + sizeof(_impl_.timecode_userbits3_));
362   }
363   if (cached_has_bits & 0x00030000u) {
364     ::memset(&_impl_.timestamp_, 0, static_cast<size_t>(
365         reinterpret_cast<char*>(&_impl_.type_) -
366         reinterpret_cast<char*>(&_impl_.timestamp_)) + sizeof(_impl_.type_));
367   }
368   _impl_._has_bits_.Clear();
369   _internal_metadata_.Clear<std::string>();
370 }
371 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)372 const char* V4l2QbufFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
373 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
374   _Internal::HasBits has_bits{};
375   while (!ctx->Done(&ptr)) {
376     ::uint32_t tag;
377     ptr = ::_pbi::ReadTag(ptr, &tag);
378     switch (tag >> 3) {
379       // optional uint32 bytesused = 1;
380       case 1:
381         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
382           _Internal::set_has_bytesused(&has_bits);
383           _impl_.bytesused_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
384           CHK_(ptr);
385         } else {
386           goto handle_unusual;
387         }
388         continue;
389       // optional uint32 field = 2;
390       case 2:
391         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
392           _Internal::set_has_field(&has_bits);
393           _impl_.field_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
394           CHK_(ptr);
395         } else {
396           goto handle_unusual;
397         }
398         continue;
399       // optional uint32 flags = 3;
400       case 3:
401         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
402           _Internal::set_has_flags(&has_bits);
403           _impl_.flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
404           CHK_(ptr);
405         } else {
406           goto handle_unusual;
407         }
408         continue;
409       // optional uint32 index = 4;
410       case 4:
411         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
412           _Internal::set_has_index(&has_bits);
413           _impl_.index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
414           CHK_(ptr);
415         } else {
416           goto handle_unusual;
417         }
418         continue;
419       // optional int32 minor = 5;
420       case 5:
421         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
422           _Internal::set_has_minor(&has_bits);
423           _impl_.minor_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
424           CHK_(ptr);
425         } else {
426           goto handle_unusual;
427         }
428         continue;
429       // optional uint32 sequence = 6;
430       case 6:
431         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
432           _Internal::set_has_sequence(&has_bits);
433           _impl_.sequence_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
434           CHK_(ptr);
435         } else {
436           goto handle_unusual;
437         }
438         continue;
439       // optional uint32 timecode_flags = 7;
440       case 7:
441         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
442           _Internal::set_has_timecode_flags(&has_bits);
443           _impl_.timecode_flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
444           CHK_(ptr);
445         } else {
446           goto handle_unusual;
447         }
448         continue;
449       // optional uint32 timecode_frames = 8;
450       case 8:
451         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) {
452           _Internal::set_has_timecode_frames(&has_bits);
453           _impl_.timecode_frames_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
454           CHK_(ptr);
455         } else {
456           goto handle_unusual;
457         }
458         continue;
459       // optional uint32 timecode_hours = 9;
460       case 9:
461         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 72)) {
462           _Internal::set_has_timecode_hours(&has_bits);
463           _impl_.timecode_hours_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
464           CHK_(ptr);
465         } else {
466           goto handle_unusual;
467         }
468         continue;
469       // optional uint32 timecode_minutes = 10;
470       case 10:
471         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 80)) {
472           _Internal::set_has_timecode_minutes(&has_bits);
473           _impl_.timecode_minutes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
474           CHK_(ptr);
475         } else {
476           goto handle_unusual;
477         }
478         continue;
479       // optional uint32 timecode_seconds = 11;
480       case 11:
481         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 88)) {
482           _Internal::set_has_timecode_seconds(&has_bits);
483           _impl_.timecode_seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
484           CHK_(ptr);
485         } else {
486           goto handle_unusual;
487         }
488         continue;
489       // optional uint32 timecode_type = 12;
490       case 12:
491         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 96)) {
492           _Internal::set_has_timecode_type(&has_bits);
493           _impl_.timecode_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
494           CHK_(ptr);
495         } else {
496           goto handle_unusual;
497         }
498         continue;
499       // optional uint32 timecode_userbits0 = 13;
500       case 13:
501         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 104)) {
502           _Internal::set_has_timecode_userbits0(&has_bits);
503           _impl_.timecode_userbits0_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
504           CHK_(ptr);
505         } else {
506           goto handle_unusual;
507         }
508         continue;
509       // optional uint32 timecode_userbits1 = 14;
510       case 14:
511         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 112)) {
512           _Internal::set_has_timecode_userbits1(&has_bits);
513           _impl_.timecode_userbits1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
514           CHK_(ptr);
515         } else {
516           goto handle_unusual;
517         }
518         continue;
519       // optional uint32 timecode_userbits2 = 15;
520       case 15:
521         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 120)) {
522           _Internal::set_has_timecode_userbits2(&has_bits);
523           _impl_.timecode_userbits2_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
524           CHK_(ptr);
525         } else {
526           goto handle_unusual;
527         }
528         continue;
529       // optional uint32 timecode_userbits3 = 16;
530       case 16:
531         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 128)) {
532           _Internal::set_has_timecode_userbits3(&has_bits);
533           _impl_.timecode_userbits3_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
534           CHK_(ptr);
535         } else {
536           goto handle_unusual;
537         }
538         continue;
539       // optional int64 timestamp = 17;
540       case 17:
541         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 136)) {
542           _Internal::set_has_timestamp(&has_bits);
543           _impl_.timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
544           CHK_(ptr);
545         } else {
546           goto handle_unusual;
547         }
548         continue;
549       // optional uint32 type = 18;
550       case 18:
551         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 144)) {
552           _Internal::set_has_type(&has_bits);
553           _impl_.type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
554           CHK_(ptr);
555         } else {
556           goto handle_unusual;
557         }
558         continue;
559       default:
560         goto handle_unusual;
561     }  // switch
562   handle_unusual:
563     if ((tag == 0) || ((tag & 7) == 4)) {
564       CHK_(ptr);
565       ctx->SetLastTag(tag);
566       goto message_done;
567     }
568     ptr = UnknownFieldParse(
569         tag,
570         _internal_metadata_.mutable_unknown_fields<std::string>(),
571         ptr, ctx);
572     CHK_(ptr != nullptr);
573   }  // while
574 message_done:
575   _impl_._has_bits_.Or(has_bits);
576   return ptr;
577 failure:
578   ptr = nullptr;
579   goto message_done;
580 #undef CHK_
581 }
582 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const583 ::uint8_t* V4l2QbufFtraceEvent::_InternalSerialize(
584     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
585   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.V4l2QbufFtraceEvent)
586   ::uint32_t cached_has_bits = 0;
587   (void) cached_has_bits;
588 
589   cached_has_bits = _impl_._has_bits_[0];
590   // optional uint32 bytesused = 1;
591   if (cached_has_bits & 0x00000001u) {
592     target = stream->EnsureSpace(target);
593     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_bytesused(), target);
594   }
595 
596   // optional uint32 field = 2;
597   if (cached_has_bits & 0x00000002u) {
598     target = stream->EnsureSpace(target);
599     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_field(), target);
600   }
601 
602   // optional uint32 flags = 3;
603   if (cached_has_bits & 0x00000004u) {
604     target = stream->EnsureSpace(target);
605     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_flags(), target);
606   }
607 
608   // optional uint32 index = 4;
609   if (cached_has_bits & 0x00000008u) {
610     target = stream->EnsureSpace(target);
611     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_index(), target);
612   }
613 
614   // optional int32 minor = 5;
615   if (cached_has_bits & 0x00000010u) {
616     target = stream->EnsureSpace(target);
617     target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_minor(), target);
618   }
619 
620   // optional uint32 sequence = 6;
621   if (cached_has_bits & 0x00000020u) {
622     target = stream->EnsureSpace(target);
623     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_sequence(), target);
624   }
625 
626   // optional uint32 timecode_flags = 7;
627   if (cached_has_bits & 0x00000040u) {
628     target = stream->EnsureSpace(target);
629     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_timecode_flags(), target);
630   }
631 
632   // optional uint32 timecode_frames = 8;
633   if (cached_has_bits & 0x00000080u) {
634     target = stream->EnsureSpace(target);
635     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(8, this->_internal_timecode_frames(), target);
636   }
637 
638   // optional uint32 timecode_hours = 9;
639   if (cached_has_bits & 0x00000100u) {
640     target = stream->EnsureSpace(target);
641     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(9, this->_internal_timecode_hours(), target);
642   }
643 
644   // optional uint32 timecode_minutes = 10;
645   if (cached_has_bits & 0x00000200u) {
646     target = stream->EnsureSpace(target);
647     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(10, this->_internal_timecode_minutes(), target);
648   }
649 
650   // optional uint32 timecode_seconds = 11;
651   if (cached_has_bits & 0x00000400u) {
652     target = stream->EnsureSpace(target);
653     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(11, this->_internal_timecode_seconds(), target);
654   }
655 
656   // optional uint32 timecode_type = 12;
657   if (cached_has_bits & 0x00000800u) {
658     target = stream->EnsureSpace(target);
659     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(12, this->_internal_timecode_type(), target);
660   }
661 
662   // optional uint32 timecode_userbits0 = 13;
663   if (cached_has_bits & 0x00001000u) {
664     target = stream->EnsureSpace(target);
665     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(13, this->_internal_timecode_userbits0(), target);
666   }
667 
668   // optional uint32 timecode_userbits1 = 14;
669   if (cached_has_bits & 0x00002000u) {
670     target = stream->EnsureSpace(target);
671     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(14, this->_internal_timecode_userbits1(), target);
672   }
673 
674   // optional uint32 timecode_userbits2 = 15;
675   if (cached_has_bits & 0x00004000u) {
676     target = stream->EnsureSpace(target);
677     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(15, this->_internal_timecode_userbits2(), target);
678   }
679 
680   // optional uint32 timecode_userbits3 = 16;
681   if (cached_has_bits & 0x00008000u) {
682     target = stream->EnsureSpace(target);
683     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(16, this->_internal_timecode_userbits3(), target);
684   }
685 
686   // optional int64 timestamp = 17;
687   if (cached_has_bits & 0x00010000u) {
688     target = stream->EnsureSpace(target);
689     target = ::_pbi::WireFormatLite::WriteInt64ToArray(17, this->_internal_timestamp(), target);
690   }
691 
692   // optional uint32 type = 18;
693   if (cached_has_bits & 0x00020000u) {
694     target = stream->EnsureSpace(target);
695     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(18, this->_internal_type(), target);
696   }
697 
698   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
699     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
700         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
701   }
702   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.V4l2QbufFtraceEvent)
703   return target;
704 }
705 
ByteSizeLong() const706 size_t V4l2QbufFtraceEvent::ByteSizeLong() const {
707 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.V4l2QbufFtraceEvent)
708   size_t total_size = 0;
709 
710   ::uint32_t cached_has_bits = 0;
711   // Prevent compiler warnings about cached_has_bits being unused
712   (void) cached_has_bits;
713 
714   cached_has_bits = _impl_._has_bits_[0];
715   if (cached_has_bits & 0x000000ffu) {
716     // optional uint32 bytesused = 1;
717     if (cached_has_bits & 0x00000001u) {
718       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_bytesused());
719     }
720 
721     // optional uint32 field = 2;
722     if (cached_has_bits & 0x00000002u) {
723       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_field());
724     }
725 
726     // optional uint32 flags = 3;
727     if (cached_has_bits & 0x00000004u) {
728       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_flags());
729     }
730 
731     // optional uint32 index = 4;
732     if (cached_has_bits & 0x00000008u) {
733       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_index());
734     }
735 
736     // optional int32 minor = 5;
737     if (cached_has_bits & 0x00000010u) {
738       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_minor());
739     }
740 
741     // optional uint32 sequence = 6;
742     if (cached_has_bits & 0x00000020u) {
743       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_sequence());
744     }
745 
746     // optional uint32 timecode_flags = 7;
747     if (cached_has_bits & 0x00000040u) {
748       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_flags());
749     }
750 
751     // optional uint32 timecode_frames = 8;
752     if (cached_has_bits & 0x00000080u) {
753       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_frames());
754     }
755 
756   }
757   if (cached_has_bits & 0x0000ff00u) {
758     // optional uint32 timecode_hours = 9;
759     if (cached_has_bits & 0x00000100u) {
760       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_hours());
761     }
762 
763     // optional uint32 timecode_minutes = 10;
764     if (cached_has_bits & 0x00000200u) {
765       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_minutes());
766     }
767 
768     // optional uint32 timecode_seconds = 11;
769     if (cached_has_bits & 0x00000400u) {
770       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_seconds());
771     }
772 
773     // optional uint32 timecode_type = 12;
774     if (cached_has_bits & 0x00000800u) {
775       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_type());
776     }
777 
778     // optional uint32 timecode_userbits0 = 13;
779     if (cached_has_bits & 0x00001000u) {
780       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_userbits0());
781     }
782 
783     // optional uint32 timecode_userbits1 = 14;
784     if (cached_has_bits & 0x00002000u) {
785       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_userbits1());
786     }
787 
788     // optional uint32 timecode_userbits2 = 15;
789     if (cached_has_bits & 0x00004000u) {
790       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_userbits2());
791     }
792 
793     // optional uint32 timecode_userbits3 = 16;
794     if (cached_has_bits & 0x00008000u) {
795       total_size += 2 +
796         ::_pbi::WireFormatLite::UInt32Size(
797           this->_internal_timecode_userbits3());
798     }
799 
800   }
801   if (cached_has_bits & 0x00030000u) {
802     // optional int64 timestamp = 17;
803     if (cached_has_bits & 0x00010000u) {
804       total_size += 2 +
805         ::_pbi::WireFormatLite::Int64Size(
806           this->_internal_timestamp());
807     }
808 
809     // optional uint32 type = 18;
810     if (cached_has_bits & 0x00020000u) {
811       total_size += 2 +
812         ::_pbi::WireFormatLite::UInt32Size(
813           this->_internal_type());
814     }
815 
816   }
817   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
818     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
819   }
820   int cached_size = ::_pbi::ToCachedSize(total_size);
821   SetCachedSize(cached_size);
822   return total_size;
823 }
824 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)825 void V4l2QbufFtraceEvent::CheckTypeAndMergeFrom(
826     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
827   MergeFrom(*::_pbi::DownCast<const V4l2QbufFtraceEvent*>(
828       &from));
829 }
830 
MergeFrom(const V4l2QbufFtraceEvent & from)831 void V4l2QbufFtraceEvent::MergeFrom(const V4l2QbufFtraceEvent& from) {
832   V4l2QbufFtraceEvent* const _this = this;
833   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.V4l2QbufFtraceEvent)
834   GOOGLE_DCHECK_NE(&from, _this);
835   ::uint32_t cached_has_bits = 0;
836   (void) cached_has_bits;
837 
838   cached_has_bits = from._impl_._has_bits_[0];
839   if (cached_has_bits & 0x000000ffu) {
840     if (cached_has_bits & 0x00000001u) {
841       _this->_impl_.bytesused_ = from._impl_.bytesused_;
842     }
843     if (cached_has_bits & 0x00000002u) {
844       _this->_impl_.field_ = from._impl_.field_;
845     }
846     if (cached_has_bits & 0x00000004u) {
847       _this->_impl_.flags_ = from._impl_.flags_;
848     }
849     if (cached_has_bits & 0x00000008u) {
850       _this->_impl_.index_ = from._impl_.index_;
851     }
852     if (cached_has_bits & 0x00000010u) {
853       _this->_impl_.minor_ = from._impl_.minor_;
854     }
855     if (cached_has_bits & 0x00000020u) {
856       _this->_impl_.sequence_ = from._impl_.sequence_;
857     }
858     if (cached_has_bits & 0x00000040u) {
859       _this->_impl_.timecode_flags_ = from._impl_.timecode_flags_;
860     }
861     if (cached_has_bits & 0x00000080u) {
862       _this->_impl_.timecode_frames_ = from._impl_.timecode_frames_;
863     }
864     _this->_impl_._has_bits_[0] |= cached_has_bits;
865   }
866   if (cached_has_bits & 0x0000ff00u) {
867     if (cached_has_bits & 0x00000100u) {
868       _this->_impl_.timecode_hours_ = from._impl_.timecode_hours_;
869     }
870     if (cached_has_bits & 0x00000200u) {
871       _this->_impl_.timecode_minutes_ = from._impl_.timecode_minutes_;
872     }
873     if (cached_has_bits & 0x00000400u) {
874       _this->_impl_.timecode_seconds_ = from._impl_.timecode_seconds_;
875     }
876     if (cached_has_bits & 0x00000800u) {
877       _this->_impl_.timecode_type_ = from._impl_.timecode_type_;
878     }
879     if (cached_has_bits & 0x00001000u) {
880       _this->_impl_.timecode_userbits0_ = from._impl_.timecode_userbits0_;
881     }
882     if (cached_has_bits & 0x00002000u) {
883       _this->_impl_.timecode_userbits1_ = from._impl_.timecode_userbits1_;
884     }
885     if (cached_has_bits & 0x00004000u) {
886       _this->_impl_.timecode_userbits2_ = from._impl_.timecode_userbits2_;
887     }
888     if (cached_has_bits & 0x00008000u) {
889       _this->_impl_.timecode_userbits3_ = from._impl_.timecode_userbits3_;
890     }
891     _this->_impl_._has_bits_[0] |= cached_has_bits;
892   }
893   if (cached_has_bits & 0x00030000u) {
894     if (cached_has_bits & 0x00010000u) {
895       _this->_impl_.timestamp_ = from._impl_.timestamp_;
896     }
897     if (cached_has_bits & 0x00020000u) {
898       _this->_impl_.type_ = from._impl_.type_;
899     }
900     _this->_impl_._has_bits_[0] |= cached_has_bits;
901   }
902   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
903 }
904 
CopyFrom(const V4l2QbufFtraceEvent & from)905 void V4l2QbufFtraceEvent::CopyFrom(const V4l2QbufFtraceEvent& from) {
906 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.V4l2QbufFtraceEvent)
907   if (&from == this) return;
908   Clear();
909   MergeFrom(from);
910 }
911 
IsInitialized() const912 bool V4l2QbufFtraceEvent::IsInitialized() const {
913   return true;
914 }
915 
InternalSwap(V4l2QbufFtraceEvent * other)916 void V4l2QbufFtraceEvent::InternalSwap(V4l2QbufFtraceEvent* other) {
917   using std::swap;
918   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
919   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
920   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
921       PROTOBUF_FIELD_OFFSET(V4l2QbufFtraceEvent, _impl_.type_)
922       + sizeof(V4l2QbufFtraceEvent::_impl_.type_)  // NOLINT
923       - PROTOBUF_FIELD_OFFSET(V4l2QbufFtraceEvent, _impl_.bytesused_)>(
924           reinterpret_cast<char*>(&_impl_.bytesused_),
925           reinterpret_cast<char*>(&other->_impl_.bytesused_));
926 }
927 
GetTypeName() const928 std::string V4l2QbufFtraceEvent::GetTypeName() const {
929   return "perfetto.protos.V4l2QbufFtraceEvent";
930 }
931 
932 
933 // ===================================================================
934 
935 class V4l2DqbufFtraceEvent::_Internal {
936  public:
937   using HasBits = decltype(std::declval<V4l2DqbufFtraceEvent>()._impl_._has_bits_);
set_has_bytesused(HasBits * has_bits)938   static void set_has_bytesused(HasBits* has_bits) {
939     (*has_bits)[0] |= 1u;
940   }
set_has_field(HasBits * has_bits)941   static void set_has_field(HasBits* has_bits) {
942     (*has_bits)[0] |= 2u;
943   }
set_has_flags(HasBits * has_bits)944   static void set_has_flags(HasBits* has_bits) {
945     (*has_bits)[0] |= 4u;
946   }
set_has_index(HasBits * has_bits)947   static void set_has_index(HasBits* has_bits) {
948     (*has_bits)[0] |= 8u;
949   }
set_has_minor(HasBits * has_bits)950   static void set_has_minor(HasBits* has_bits) {
951     (*has_bits)[0] |= 16u;
952   }
set_has_sequence(HasBits * has_bits)953   static void set_has_sequence(HasBits* has_bits) {
954     (*has_bits)[0] |= 32u;
955   }
set_has_timecode_flags(HasBits * has_bits)956   static void set_has_timecode_flags(HasBits* has_bits) {
957     (*has_bits)[0] |= 64u;
958   }
set_has_timecode_frames(HasBits * has_bits)959   static void set_has_timecode_frames(HasBits* has_bits) {
960     (*has_bits)[0] |= 128u;
961   }
set_has_timecode_hours(HasBits * has_bits)962   static void set_has_timecode_hours(HasBits* has_bits) {
963     (*has_bits)[0] |= 256u;
964   }
set_has_timecode_minutes(HasBits * has_bits)965   static void set_has_timecode_minutes(HasBits* has_bits) {
966     (*has_bits)[0] |= 512u;
967   }
set_has_timecode_seconds(HasBits * has_bits)968   static void set_has_timecode_seconds(HasBits* has_bits) {
969     (*has_bits)[0] |= 1024u;
970   }
set_has_timecode_type(HasBits * has_bits)971   static void set_has_timecode_type(HasBits* has_bits) {
972     (*has_bits)[0] |= 2048u;
973   }
set_has_timecode_userbits0(HasBits * has_bits)974   static void set_has_timecode_userbits0(HasBits* has_bits) {
975     (*has_bits)[0] |= 4096u;
976   }
set_has_timecode_userbits1(HasBits * has_bits)977   static void set_has_timecode_userbits1(HasBits* has_bits) {
978     (*has_bits)[0] |= 8192u;
979   }
set_has_timecode_userbits2(HasBits * has_bits)980   static void set_has_timecode_userbits2(HasBits* has_bits) {
981     (*has_bits)[0] |= 16384u;
982   }
set_has_timecode_userbits3(HasBits * has_bits)983   static void set_has_timecode_userbits3(HasBits* has_bits) {
984     (*has_bits)[0] |= 32768u;
985   }
set_has_timestamp(HasBits * has_bits)986   static void set_has_timestamp(HasBits* has_bits) {
987     (*has_bits)[0] |= 65536u;
988   }
set_has_type(HasBits * has_bits)989   static void set_has_type(HasBits* has_bits) {
990     (*has_bits)[0] |= 131072u;
991   }
992 };
993 
V4l2DqbufFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)994 V4l2DqbufFtraceEvent::V4l2DqbufFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
995                          bool is_message_owned)
996   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
997   SharedCtor(arena, is_message_owned);
998   // @@protoc_insertion_point(arena_constructor:perfetto.protos.V4l2DqbufFtraceEvent)
999 }
V4l2DqbufFtraceEvent(const V4l2DqbufFtraceEvent & from)1000 V4l2DqbufFtraceEvent::V4l2DqbufFtraceEvent(const V4l2DqbufFtraceEvent& from)
1001   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
1002   V4l2DqbufFtraceEvent* const _this = this; (void)_this;
1003   new (&_impl_) Impl_{
1004       decltype(_impl_._has_bits_){from._impl_._has_bits_}
1005     , /*decltype(_impl_._cached_size_)*/{}
1006     , decltype(_impl_.bytesused_){}
1007     , decltype(_impl_.field_){}
1008     , decltype(_impl_.flags_){}
1009     , decltype(_impl_.index_){}
1010     , decltype(_impl_.minor_){}
1011     , decltype(_impl_.sequence_){}
1012     , decltype(_impl_.timecode_flags_){}
1013     , decltype(_impl_.timecode_frames_){}
1014     , decltype(_impl_.timecode_hours_){}
1015     , decltype(_impl_.timecode_minutes_){}
1016     , decltype(_impl_.timecode_seconds_){}
1017     , decltype(_impl_.timecode_type_){}
1018     , decltype(_impl_.timecode_userbits0_){}
1019     , decltype(_impl_.timecode_userbits1_){}
1020     , decltype(_impl_.timecode_userbits2_){}
1021     , decltype(_impl_.timecode_userbits3_){}
1022     , decltype(_impl_.timestamp_){}
1023     , decltype(_impl_.type_){}};
1024 
1025   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1026   ::memcpy(&_impl_.bytesused_, &from._impl_.bytesused_,
1027     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.type_) -
1028     reinterpret_cast<char*>(&_impl_.bytesused_)) + sizeof(_impl_.type_));
1029   // @@protoc_insertion_point(copy_constructor:perfetto.protos.V4l2DqbufFtraceEvent)
1030 }
1031 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1032 inline void V4l2DqbufFtraceEvent::SharedCtor(
1033     ::_pb::Arena* arena, bool is_message_owned) {
1034   (void)arena;
1035   (void)is_message_owned;
1036   new (&_impl_) Impl_{
1037       decltype(_impl_._has_bits_){}
1038     , /*decltype(_impl_._cached_size_)*/{}
1039     , decltype(_impl_.bytesused_){0u}
1040     , decltype(_impl_.field_){0u}
1041     , decltype(_impl_.flags_){0u}
1042     , decltype(_impl_.index_){0u}
1043     , decltype(_impl_.minor_){0}
1044     , decltype(_impl_.sequence_){0u}
1045     , decltype(_impl_.timecode_flags_){0u}
1046     , decltype(_impl_.timecode_frames_){0u}
1047     , decltype(_impl_.timecode_hours_){0u}
1048     , decltype(_impl_.timecode_minutes_){0u}
1049     , decltype(_impl_.timecode_seconds_){0u}
1050     , decltype(_impl_.timecode_type_){0u}
1051     , decltype(_impl_.timecode_userbits0_){0u}
1052     , decltype(_impl_.timecode_userbits1_){0u}
1053     , decltype(_impl_.timecode_userbits2_){0u}
1054     , decltype(_impl_.timecode_userbits3_){0u}
1055     , decltype(_impl_.timestamp_){::int64_t{0}}
1056     , decltype(_impl_.type_){0u}
1057   };
1058 }
1059 
~V4l2DqbufFtraceEvent()1060 V4l2DqbufFtraceEvent::~V4l2DqbufFtraceEvent() {
1061   // @@protoc_insertion_point(destructor:perfetto.protos.V4l2DqbufFtraceEvent)
1062   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
1063   (void)arena;
1064     return;
1065   }
1066   SharedDtor();
1067 }
1068 
SharedDtor()1069 inline void V4l2DqbufFtraceEvent::SharedDtor() {
1070   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1071 }
1072 
SetCachedSize(int size) const1073 void V4l2DqbufFtraceEvent::SetCachedSize(int size) const {
1074   _impl_._cached_size_.Set(size);
1075 }
1076 
Clear()1077 void V4l2DqbufFtraceEvent::Clear() {
1078 // @@protoc_insertion_point(message_clear_start:perfetto.protos.V4l2DqbufFtraceEvent)
1079   ::uint32_t cached_has_bits = 0;
1080   // Prevent compiler warnings about cached_has_bits being unused
1081   (void) cached_has_bits;
1082 
1083   cached_has_bits = _impl_._has_bits_[0];
1084   if (cached_has_bits & 0x000000ffu) {
1085     ::memset(&_impl_.bytesused_, 0, static_cast<size_t>(
1086         reinterpret_cast<char*>(&_impl_.timecode_frames_) -
1087         reinterpret_cast<char*>(&_impl_.bytesused_)) + sizeof(_impl_.timecode_frames_));
1088   }
1089   if (cached_has_bits & 0x0000ff00u) {
1090     ::memset(&_impl_.timecode_hours_, 0, static_cast<size_t>(
1091         reinterpret_cast<char*>(&_impl_.timecode_userbits3_) -
1092         reinterpret_cast<char*>(&_impl_.timecode_hours_)) + sizeof(_impl_.timecode_userbits3_));
1093   }
1094   if (cached_has_bits & 0x00030000u) {
1095     ::memset(&_impl_.timestamp_, 0, static_cast<size_t>(
1096         reinterpret_cast<char*>(&_impl_.type_) -
1097         reinterpret_cast<char*>(&_impl_.timestamp_)) + sizeof(_impl_.type_));
1098   }
1099   _impl_._has_bits_.Clear();
1100   _internal_metadata_.Clear<std::string>();
1101 }
1102 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1103 const char* V4l2DqbufFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1104 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1105   _Internal::HasBits has_bits{};
1106   while (!ctx->Done(&ptr)) {
1107     ::uint32_t tag;
1108     ptr = ::_pbi::ReadTag(ptr, &tag);
1109     switch (tag >> 3) {
1110       // optional uint32 bytesused = 1;
1111       case 1:
1112         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
1113           _Internal::set_has_bytesused(&has_bits);
1114           _impl_.bytesused_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1115           CHK_(ptr);
1116         } else {
1117           goto handle_unusual;
1118         }
1119         continue;
1120       // optional uint32 field = 2;
1121       case 2:
1122         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
1123           _Internal::set_has_field(&has_bits);
1124           _impl_.field_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1125           CHK_(ptr);
1126         } else {
1127           goto handle_unusual;
1128         }
1129         continue;
1130       // optional uint32 flags = 3;
1131       case 3:
1132         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
1133           _Internal::set_has_flags(&has_bits);
1134           _impl_.flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1135           CHK_(ptr);
1136         } else {
1137           goto handle_unusual;
1138         }
1139         continue;
1140       // optional uint32 index = 4;
1141       case 4:
1142         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
1143           _Internal::set_has_index(&has_bits);
1144           _impl_.index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1145           CHK_(ptr);
1146         } else {
1147           goto handle_unusual;
1148         }
1149         continue;
1150       // optional int32 minor = 5;
1151       case 5:
1152         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
1153           _Internal::set_has_minor(&has_bits);
1154           _impl_.minor_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1155           CHK_(ptr);
1156         } else {
1157           goto handle_unusual;
1158         }
1159         continue;
1160       // optional uint32 sequence = 6;
1161       case 6:
1162         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
1163           _Internal::set_has_sequence(&has_bits);
1164           _impl_.sequence_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1165           CHK_(ptr);
1166         } else {
1167           goto handle_unusual;
1168         }
1169         continue;
1170       // optional uint32 timecode_flags = 7;
1171       case 7:
1172         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
1173           _Internal::set_has_timecode_flags(&has_bits);
1174           _impl_.timecode_flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1175           CHK_(ptr);
1176         } else {
1177           goto handle_unusual;
1178         }
1179         continue;
1180       // optional uint32 timecode_frames = 8;
1181       case 8:
1182         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) {
1183           _Internal::set_has_timecode_frames(&has_bits);
1184           _impl_.timecode_frames_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1185           CHK_(ptr);
1186         } else {
1187           goto handle_unusual;
1188         }
1189         continue;
1190       // optional uint32 timecode_hours = 9;
1191       case 9:
1192         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 72)) {
1193           _Internal::set_has_timecode_hours(&has_bits);
1194           _impl_.timecode_hours_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1195           CHK_(ptr);
1196         } else {
1197           goto handle_unusual;
1198         }
1199         continue;
1200       // optional uint32 timecode_minutes = 10;
1201       case 10:
1202         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 80)) {
1203           _Internal::set_has_timecode_minutes(&has_bits);
1204           _impl_.timecode_minutes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1205           CHK_(ptr);
1206         } else {
1207           goto handle_unusual;
1208         }
1209         continue;
1210       // optional uint32 timecode_seconds = 11;
1211       case 11:
1212         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 88)) {
1213           _Internal::set_has_timecode_seconds(&has_bits);
1214           _impl_.timecode_seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1215           CHK_(ptr);
1216         } else {
1217           goto handle_unusual;
1218         }
1219         continue;
1220       // optional uint32 timecode_type = 12;
1221       case 12:
1222         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 96)) {
1223           _Internal::set_has_timecode_type(&has_bits);
1224           _impl_.timecode_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1225           CHK_(ptr);
1226         } else {
1227           goto handle_unusual;
1228         }
1229         continue;
1230       // optional uint32 timecode_userbits0 = 13;
1231       case 13:
1232         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 104)) {
1233           _Internal::set_has_timecode_userbits0(&has_bits);
1234           _impl_.timecode_userbits0_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1235           CHK_(ptr);
1236         } else {
1237           goto handle_unusual;
1238         }
1239         continue;
1240       // optional uint32 timecode_userbits1 = 14;
1241       case 14:
1242         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 112)) {
1243           _Internal::set_has_timecode_userbits1(&has_bits);
1244           _impl_.timecode_userbits1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1245           CHK_(ptr);
1246         } else {
1247           goto handle_unusual;
1248         }
1249         continue;
1250       // optional uint32 timecode_userbits2 = 15;
1251       case 15:
1252         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 120)) {
1253           _Internal::set_has_timecode_userbits2(&has_bits);
1254           _impl_.timecode_userbits2_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1255           CHK_(ptr);
1256         } else {
1257           goto handle_unusual;
1258         }
1259         continue;
1260       // optional uint32 timecode_userbits3 = 16;
1261       case 16:
1262         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 128)) {
1263           _Internal::set_has_timecode_userbits3(&has_bits);
1264           _impl_.timecode_userbits3_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1265           CHK_(ptr);
1266         } else {
1267           goto handle_unusual;
1268         }
1269         continue;
1270       // optional int64 timestamp = 17;
1271       case 17:
1272         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 136)) {
1273           _Internal::set_has_timestamp(&has_bits);
1274           _impl_.timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1275           CHK_(ptr);
1276         } else {
1277           goto handle_unusual;
1278         }
1279         continue;
1280       // optional uint32 type = 18;
1281       case 18:
1282         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 144)) {
1283           _Internal::set_has_type(&has_bits);
1284           _impl_.type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1285           CHK_(ptr);
1286         } else {
1287           goto handle_unusual;
1288         }
1289         continue;
1290       default:
1291         goto handle_unusual;
1292     }  // switch
1293   handle_unusual:
1294     if ((tag == 0) || ((tag & 7) == 4)) {
1295       CHK_(ptr);
1296       ctx->SetLastTag(tag);
1297       goto message_done;
1298     }
1299     ptr = UnknownFieldParse(
1300         tag,
1301         _internal_metadata_.mutable_unknown_fields<std::string>(),
1302         ptr, ctx);
1303     CHK_(ptr != nullptr);
1304   }  // while
1305 message_done:
1306   _impl_._has_bits_.Or(has_bits);
1307   return ptr;
1308 failure:
1309   ptr = nullptr;
1310   goto message_done;
1311 #undef CHK_
1312 }
1313 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1314 ::uint8_t* V4l2DqbufFtraceEvent::_InternalSerialize(
1315     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1316   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.V4l2DqbufFtraceEvent)
1317   ::uint32_t cached_has_bits = 0;
1318   (void) cached_has_bits;
1319 
1320   cached_has_bits = _impl_._has_bits_[0];
1321   // optional uint32 bytesused = 1;
1322   if (cached_has_bits & 0x00000001u) {
1323     target = stream->EnsureSpace(target);
1324     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_bytesused(), target);
1325   }
1326 
1327   // optional uint32 field = 2;
1328   if (cached_has_bits & 0x00000002u) {
1329     target = stream->EnsureSpace(target);
1330     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_field(), target);
1331   }
1332 
1333   // optional uint32 flags = 3;
1334   if (cached_has_bits & 0x00000004u) {
1335     target = stream->EnsureSpace(target);
1336     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_flags(), target);
1337   }
1338 
1339   // optional uint32 index = 4;
1340   if (cached_has_bits & 0x00000008u) {
1341     target = stream->EnsureSpace(target);
1342     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_index(), target);
1343   }
1344 
1345   // optional int32 minor = 5;
1346   if (cached_has_bits & 0x00000010u) {
1347     target = stream->EnsureSpace(target);
1348     target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_minor(), target);
1349   }
1350 
1351   // optional uint32 sequence = 6;
1352   if (cached_has_bits & 0x00000020u) {
1353     target = stream->EnsureSpace(target);
1354     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_sequence(), target);
1355   }
1356 
1357   // optional uint32 timecode_flags = 7;
1358   if (cached_has_bits & 0x00000040u) {
1359     target = stream->EnsureSpace(target);
1360     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_timecode_flags(), target);
1361   }
1362 
1363   // optional uint32 timecode_frames = 8;
1364   if (cached_has_bits & 0x00000080u) {
1365     target = stream->EnsureSpace(target);
1366     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(8, this->_internal_timecode_frames(), target);
1367   }
1368 
1369   // optional uint32 timecode_hours = 9;
1370   if (cached_has_bits & 0x00000100u) {
1371     target = stream->EnsureSpace(target);
1372     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(9, this->_internal_timecode_hours(), target);
1373   }
1374 
1375   // optional uint32 timecode_minutes = 10;
1376   if (cached_has_bits & 0x00000200u) {
1377     target = stream->EnsureSpace(target);
1378     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(10, this->_internal_timecode_minutes(), target);
1379   }
1380 
1381   // optional uint32 timecode_seconds = 11;
1382   if (cached_has_bits & 0x00000400u) {
1383     target = stream->EnsureSpace(target);
1384     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(11, this->_internal_timecode_seconds(), target);
1385   }
1386 
1387   // optional uint32 timecode_type = 12;
1388   if (cached_has_bits & 0x00000800u) {
1389     target = stream->EnsureSpace(target);
1390     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(12, this->_internal_timecode_type(), target);
1391   }
1392 
1393   // optional uint32 timecode_userbits0 = 13;
1394   if (cached_has_bits & 0x00001000u) {
1395     target = stream->EnsureSpace(target);
1396     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(13, this->_internal_timecode_userbits0(), target);
1397   }
1398 
1399   // optional uint32 timecode_userbits1 = 14;
1400   if (cached_has_bits & 0x00002000u) {
1401     target = stream->EnsureSpace(target);
1402     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(14, this->_internal_timecode_userbits1(), target);
1403   }
1404 
1405   // optional uint32 timecode_userbits2 = 15;
1406   if (cached_has_bits & 0x00004000u) {
1407     target = stream->EnsureSpace(target);
1408     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(15, this->_internal_timecode_userbits2(), target);
1409   }
1410 
1411   // optional uint32 timecode_userbits3 = 16;
1412   if (cached_has_bits & 0x00008000u) {
1413     target = stream->EnsureSpace(target);
1414     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(16, this->_internal_timecode_userbits3(), target);
1415   }
1416 
1417   // optional int64 timestamp = 17;
1418   if (cached_has_bits & 0x00010000u) {
1419     target = stream->EnsureSpace(target);
1420     target = ::_pbi::WireFormatLite::WriteInt64ToArray(17, this->_internal_timestamp(), target);
1421   }
1422 
1423   // optional uint32 type = 18;
1424   if (cached_has_bits & 0x00020000u) {
1425     target = stream->EnsureSpace(target);
1426     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(18, this->_internal_type(), target);
1427   }
1428 
1429   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1430     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
1431         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
1432   }
1433   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.V4l2DqbufFtraceEvent)
1434   return target;
1435 }
1436 
ByteSizeLong() const1437 size_t V4l2DqbufFtraceEvent::ByteSizeLong() const {
1438 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.V4l2DqbufFtraceEvent)
1439   size_t total_size = 0;
1440 
1441   ::uint32_t cached_has_bits = 0;
1442   // Prevent compiler warnings about cached_has_bits being unused
1443   (void) cached_has_bits;
1444 
1445   cached_has_bits = _impl_._has_bits_[0];
1446   if (cached_has_bits & 0x000000ffu) {
1447     // optional uint32 bytesused = 1;
1448     if (cached_has_bits & 0x00000001u) {
1449       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_bytesused());
1450     }
1451 
1452     // optional uint32 field = 2;
1453     if (cached_has_bits & 0x00000002u) {
1454       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_field());
1455     }
1456 
1457     // optional uint32 flags = 3;
1458     if (cached_has_bits & 0x00000004u) {
1459       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_flags());
1460     }
1461 
1462     // optional uint32 index = 4;
1463     if (cached_has_bits & 0x00000008u) {
1464       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_index());
1465     }
1466 
1467     // optional int32 minor = 5;
1468     if (cached_has_bits & 0x00000010u) {
1469       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_minor());
1470     }
1471 
1472     // optional uint32 sequence = 6;
1473     if (cached_has_bits & 0x00000020u) {
1474       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_sequence());
1475     }
1476 
1477     // optional uint32 timecode_flags = 7;
1478     if (cached_has_bits & 0x00000040u) {
1479       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_flags());
1480     }
1481 
1482     // optional uint32 timecode_frames = 8;
1483     if (cached_has_bits & 0x00000080u) {
1484       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_frames());
1485     }
1486 
1487   }
1488   if (cached_has_bits & 0x0000ff00u) {
1489     // optional uint32 timecode_hours = 9;
1490     if (cached_has_bits & 0x00000100u) {
1491       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_hours());
1492     }
1493 
1494     // optional uint32 timecode_minutes = 10;
1495     if (cached_has_bits & 0x00000200u) {
1496       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_minutes());
1497     }
1498 
1499     // optional uint32 timecode_seconds = 11;
1500     if (cached_has_bits & 0x00000400u) {
1501       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_seconds());
1502     }
1503 
1504     // optional uint32 timecode_type = 12;
1505     if (cached_has_bits & 0x00000800u) {
1506       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_type());
1507     }
1508 
1509     // optional uint32 timecode_userbits0 = 13;
1510     if (cached_has_bits & 0x00001000u) {
1511       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_userbits0());
1512     }
1513 
1514     // optional uint32 timecode_userbits1 = 14;
1515     if (cached_has_bits & 0x00002000u) {
1516       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_userbits1());
1517     }
1518 
1519     // optional uint32 timecode_userbits2 = 15;
1520     if (cached_has_bits & 0x00004000u) {
1521       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_userbits2());
1522     }
1523 
1524     // optional uint32 timecode_userbits3 = 16;
1525     if (cached_has_bits & 0x00008000u) {
1526       total_size += 2 +
1527         ::_pbi::WireFormatLite::UInt32Size(
1528           this->_internal_timecode_userbits3());
1529     }
1530 
1531   }
1532   if (cached_has_bits & 0x00030000u) {
1533     // optional int64 timestamp = 17;
1534     if (cached_has_bits & 0x00010000u) {
1535       total_size += 2 +
1536         ::_pbi::WireFormatLite::Int64Size(
1537           this->_internal_timestamp());
1538     }
1539 
1540     // optional uint32 type = 18;
1541     if (cached_has_bits & 0x00020000u) {
1542       total_size += 2 +
1543         ::_pbi::WireFormatLite::UInt32Size(
1544           this->_internal_type());
1545     }
1546 
1547   }
1548   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1549     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
1550   }
1551   int cached_size = ::_pbi::ToCachedSize(total_size);
1552   SetCachedSize(cached_size);
1553   return total_size;
1554 }
1555 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)1556 void V4l2DqbufFtraceEvent::CheckTypeAndMergeFrom(
1557     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
1558   MergeFrom(*::_pbi::DownCast<const V4l2DqbufFtraceEvent*>(
1559       &from));
1560 }
1561 
MergeFrom(const V4l2DqbufFtraceEvent & from)1562 void V4l2DqbufFtraceEvent::MergeFrom(const V4l2DqbufFtraceEvent& from) {
1563   V4l2DqbufFtraceEvent* const _this = this;
1564   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.V4l2DqbufFtraceEvent)
1565   GOOGLE_DCHECK_NE(&from, _this);
1566   ::uint32_t cached_has_bits = 0;
1567   (void) cached_has_bits;
1568 
1569   cached_has_bits = from._impl_._has_bits_[0];
1570   if (cached_has_bits & 0x000000ffu) {
1571     if (cached_has_bits & 0x00000001u) {
1572       _this->_impl_.bytesused_ = from._impl_.bytesused_;
1573     }
1574     if (cached_has_bits & 0x00000002u) {
1575       _this->_impl_.field_ = from._impl_.field_;
1576     }
1577     if (cached_has_bits & 0x00000004u) {
1578       _this->_impl_.flags_ = from._impl_.flags_;
1579     }
1580     if (cached_has_bits & 0x00000008u) {
1581       _this->_impl_.index_ = from._impl_.index_;
1582     }
1583     if (cached_has_bits & 0x00000010u) {
1584       _this->_impl_.minor_ = from._impl_.minor_;
1585     }
1586     if (cached_has_bits & 0x00000020u) {
1587       _this->_impl_.sequence_ = from._impl_.sequence_;
1588     }
1589     if (cached_has_bits & 0x00000040u) {
1590       _this->_impl_.timecode_flags_ = from._impl_.timecode_flags_;
1591     }
1592     if (cached_has_bits & 0x00000080u) {
1593       _this->_impl_.timecode_frames_ = from._impl_.timecode_frames_;
1594     }
1595     _this->_impl_._has_bits_[0] |= cached_has_bits;
1596   }
1597   if (cached_has_bits & 0x0000ff00u) {
1598     if (cached_has_bits & 0x00000100u) {
1599       _this->_impl_.timecode_hours_ = from._impl_.timecode_hours_;
1600     }
1601     if (cached_has_bits & 0x00000200u) {
1602       _this->_impl_.timecode_minutes_ = from._impl_.timecode_minutes_;
1603     }
1604     if (cached_has_bits & 0x00000400u) {
1605       _this->_impl_.timecode_seconds_ = from._impl_.timecode_seconds_;
1606     }
1607     if (cached_has_bits & 0x00000800u) {
1608       _this->_impl_.timecode_type_ = from._impl_.timecode_type_;
1609     }
1610     if (cached_has_bits & 0x00001000u) {
1611       _this->_impl_.timecode_userbits0_ = from._impl_.timecode_userbits0_;
1612     }
1613     if (cached_has_bits & 0x00002000u) {
1614       _this->_impl_.timecode_userbits1_ = from._impl_.timecode_userbits1_;
1615     }
1616     if (cached_has_bits & 0x00004000u) {
1617       _this->_impl_.timecode_userbits2_ = from._impl_.timecode_userbits2_;
1618     }
1619     if (cached_has_bits & 0x00008000u) {
1620       _this->_impl_.timecode_userbits3_ = from._impl_.timecode_userbits3_;
1621     }
1622     _this->_impl_._has_bits_[0] |= cached_has_bits;
1623   }
1624   if (cached_has_bits & 0x00030000u) {
1625     if (cached_has_bits & 0x00010000u) {
1626       _this->_impl_.timestamp_ = from._impl_.timestamp_;
1627     }
1628     if (cached_has_bits & 0x00020000u) {
1629       _this->_impl_.type_ = from._impl_.type_;
1630     }
1631     _this->_impl_._has_bits_[0] |= cached_has_bits;
1632   }
1633   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1634 }
1635 
CopyFrom(const V4l2DqbufFtraceEvent & from)1636 void V4l2DqbufFtraceEvent::CopyFrom(const V4l2DqbufFtraceEvent& from) {
1637 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.V4l2DqbufFtraceEvent)
1638   if (&from == this) return;
1639   Clear();
1640   MergeFrom(from);
1641 }
1642 
IsInitialized() const1643 bool V4l2DqbufFtraceEvent::IsInitialized() const {
1644   return true;
1645 }
1646 
InternalSwap(V4l2DqbufFtraceEvent * other)1647 void V4l2DqbufFtraceEvent::InternalSwap(V4l2DqbufFtraceEvent* other) {
1648   using std::swap;
1649   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1650   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1651   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1652       PROTOBUF_FIELD_OFFSET(V4l2DqbufFtraceEvent, _impl_.type_)
1653       + sizeof(V4l2DqbufFtraceEvent::_impl_.type_)  // NOLINT
1654       - PROTOBUF_FIELD_OFFSET(V4l2DqbufFtraceEvent, _impl_.bytesused_)>(
1655           reinterpret_cast<char*>(&_impl_.bytesused_),
1656           reinterpret_cast<char*>(&other->_impl_.bytesused_));
1657 }
1658 
GetTypeName() const1659 std::string V4l2DqbufFtraceEvent::GetTypeName() const {
1660   return "perfetto.protos.V4l2DqbufFtraceEvent";
1661 }
1662 
1663 
1664 // ===================================================================
1665 
1666 class Vb2V4l2BufQueueFtraceEvent::_Internal {
1667  public:
1668   using HasBits = decltype(std::declval<Vb2V4l2BufQueueFtraceEvent>()._impl_._has_bits_);
set_has_field(HasBits * has_bits)1669   static void set_has_field(HasBits* has_bits) {
1670     (*has_bits)[0] |= 1u;
1671   }
set_has_flags(HasBits * has_bits)1672   static void set_has_flags(HasBits* has_bits) {
1673     (*has_bits)[0] |= 2u;
1674   }
set_has_minor(HasBits * has_bits)1675   static void set_has_minor(HasBits* has_bits) {
1676     (*has_bits)[0] |= 4u;
1677   }
set_has_sequence(HasBits * has_bits)1678   static void set_has_sequence(HasBits* has_bits) {
1679     (*has_bits)[0] |= 8u;
1680   }
set_has_timecode_flags(HasBits * has_bits)1681   static void set_has_timecode_flags(HasBits* has_bits) {
1682     (*has_bits)[0] |= 16u;
1683   }
set_has_timecode_frames(HasBits * has_bits)1684   static void set_has_timecode_frames(HasBits* has_bits) {
1685     (*has_bits)[0] |= 32u;
1686   }
set_has_timecode_hours(HasBits * has_bits)1687   static void set_has_timecode_hours(HasBits* has_bits) {
1688     (*has_bits)[0] |= 64u;
1689   }
set_has_timecode_minutes(HasBits * has_bits)1690   static void set_has_timecode_minutes(HasBits* has_bits) {
1691     (*has_bits)[0] |= 128u;
1692   }
set_has_timecode_seconds(HasBits * has_bits)1693   static void set_has_timecode_seconds(HasBits* has_bits) {
1694     (*has_bits)[0] |= 256u;
1695   }
set_has_timecode_type(HasBits * has_bits)1696   static void set_has_timecode_type(HasBits* has_bits) {
1697     (*has_bits)[0] |= 512u;
1698   }
set_has_timecode_userbits0(HasBits * has_bits)1699   static void set_has_timecode_userbits0(HasBits* has_bits) {
1700     (*has_bits)[0] |= 1024u;
1701   }
set_has_timecode_userbits1(HasBits * has_bits)1702   static void set_has_timecode_userbits1(HasBits* has_bits) {
1703     (*has_bits)[0] |= 2048u;
1704   }
set_has_timecode_userbits2(HasBits * has_bits)1705   static void set_has_timecode_userbits2(HasBits* has_bits) {
1706     (*has_bits)[0] |= 4096u;
1707   }
set_has_timecode_userbits3(HasBits * has_bits)1708   static void set_has_timecode_userbits3(HasBits* has_bits) {
1709     (*has_bits)[0] |= 8192u;
1710   }
set_has_timestamp(HasBits * has_bits)1711   static void set_has_timestamp(HasBits* has_bits) {
1712     (*has_bits)[0] |= 16384u;
1713   }
1714 };
1715 
Vb2V4l2BufQueueFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1716 Vb2V4l2BufQueueFtraceEvent::Vb2V4l2BufQueueFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1717                          bool is_message_owned)
1718   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
1719   SharedCtor(arena, is_message_owned);
1720   // @@protoc_insertion_point(arena_constructor:perfetto.protos.Vb2V4l2BufQueueFtraceEvent)
1721 }
Vb2V4l2BufQueueFtraceEvent(const Vb2V4l2BufQueueFtraceEvent & from)1722 Vb2V4l2BufQueueFtraceEvent::Vb2V4l2BufQueueFtraceEvent(const Vb2V4l2BufQueueFtraceEvent& from)
1723   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
1724   Vb2V4l2BufQueueFtraceEvent* const _this = this; (void)_this;
1725   new (&_impl_) Impl_{
1726       decltype(_impl_._has_bits_){from._impl_._has_bits_}
1727     , /*decltype(_impl_._cached_size_)*/{}
1728     , decltype(_impl_.field_){}
1729     , decltype(_impl_.flags_){}
1730     , decltype(_impl_.minor_){}
1731     , decltype(_impl_.sequence_){}
1732     , decltype(_impl_.timecode_flags_){}
1733     , decltype(_impl_.timecode_frames_){}
1734     , decltype(_impl_.timecode_hours_){}
1735     , decltype(_impl_.timecode_minutes_){}
1736     , decltype(_impl_.timecode_seconds_){}
1737     , decltype(_impl_.timecode_type_){}
1738     , decltype(_impl_.timecode_userbits0_){}
1739     , decltype(_impl_.timecode_userbits1_){}
1740     , decltype(_impl_.timecode_userbits2_){}
1741     , decltype(_impl_.timecode_userbits3_){}
1742     , decltype(_impl_.timestamp_){}};
1743 
1744   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1745   ::memcpy(&_impl_.field_, &from._impl_.field_,
1746     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.timestamp_) -
1747     reinterpret_cast<char*>(&_impl_.field_)) + sizeof(_impl_.timestamp_));
1748   // @@protoc_insertion_point(copy_constructor:perfetto.protos.Vb2V4l2BufQueueFtraceEvent)
1749 }
1750 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1751 inline void Vb2V4l2BufQueueFtraceEvent::SharedCtor(
1752     ::_pb::Arena* arena, bool is_message_owned) {
1753   (void)arena;
1754   (void)is_message_owned;
1755   new (&_impl_) Impl_{
1756       decltype(_impl_._has_bits_){}
1757     , /*decltype(_impl_._cached_size_)*/{}
1758     , decltype(_impl_.field_){0u}
1759     , decltype(_impl_.flags_){0u}
1760     , decltype(_impl_.minor_){0}
1761     , decltype(_impl_.sequence_){0u}
1762     , decltype(_impl_.timecode_flags_){0u}
1763     , decltype(_impl_.timecode_frames_){0u}
1764     , decltype(_impl_.timecode_hours_){0u}
1765     , decltype(_impl_.timecode_minutes_){0u}
1766     , decltype(_impl_.timecode_seconds_){0u}
1767     , decltype(_impl_.timecode_type_){0u}
1768     , decltype(_impl_.timecode_userbits0_){0u}
1769     , decltype(_impl_.timecode_userbits1_){0u}
1770     , decltype(_impl_.timecode_userbits2_){0u}
1771     , decltype(_impl_.timecode_userbits3_){0u}
1772     , decltype(_impl_.timestamp_){::int64_t{0}}
1773   };
1774 }
1775 
~Vb2V4l2BufQueueFtraceEvent()1776 Vb2V4l2BufQueueFtraceEvent::~Vb2V4l2BufQueueFtraceEvent() {
1777   // @@protoc_insertion_point(destructor:perfetto.protos.Vb2V4l2BufQueueFtraceEvent)
1778   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
1779   (void)arena;
1780     return;
1781   }
1782   SharedDtor();
1783 }
1784 
SharedDtor()1785 inline void Vb2V4l2BufQueueFtraceEvent::SharedDtor() {
1786   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1787 }
1788 
SetCachedSize(int size) const1789 void Vb2V4l2BufQueueFtraceEvent::SetCachedSize(int size) const {
1790   _impl_._cached_size_.Set(size);
1791 }
1792 
Clear()1793 void Vb2V4l2BufQueueFtraceEvent::Clear() {
1794 // @@protoc_insertion_point(message_clear_start:perfetto.protos.Vb2V4l2BufQueueFtraceEvent)
1795   ::uint32_t cached_has_bits = 0;
1796   // Prevent compiler warnings about cached_has_bits being unused
1797   (void) cached_has_bits;
1798 
1799   cached_has_bits = _impl_._has_bits_[0];
1800   if (cached_has_bits & 0x000000ffu) {
1801     ::memset(&_impl_.field_, 0, static_cast<size_t>(
1802         reinterpret_cast<char*>(&_impl_.timecode_minutes_) -
1803         reinterpret_cast<char*>(&_impl_.field_)) + sizeof(_impl_.timecode_minutes_));
1804   }
1805   if (cached_has_bits & 0x00007f00u) {
1806     ::memset(&_impl_.timecode_seconds_, 0, static_cast<size_t>(
1807         reinterpret_cast<char*>(&_impl_.timestamp_) -
1808         reinterpret_cast<char*>(&_impl_.timecode_seconds_)) + sizeof(_impl_.timestamp_));
1809   }
1810   _impl_._has_bits_.Clear();
1811   _internal_metadata_.Clear<std::string>();
1812 }
1813 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1814 const char* Vb2V4l2BufQueueFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1815 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1816   _Internal::HasBits has_bits{};
1817   while (!ctx->Done(&ptr)) {
1818     ::uint32_t tag;
1819     ptr = ::_pbi::ReadTag(ptr, &tag);
1820     switch (tag >> 3) {
1821       // optional uint32 field = 1;
1822       case 1:
1823         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
1824           _Internal::set_has_field(&has_bits);
1825           _impl_.field_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1826           CHK_(ptr);
1827         } else {
1828           goto handle_unusual;
1829         }
1830         continue;
1831       // optional uint32 flags = 2;
1832       case 2:
1833         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
1834           _Internal::set_has_flags(&has_bits);
1835           _impl_.flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1836           CHK_(ptr);
1837         } else {
1838           goto handle_unusual;
1839         }
1840         continue;
1841       // optional int32 minor = 3;
1842       case 3:
1843         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
1844           _Internal::set_has_minor(&has_bits);
1845           _impl_.minor_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1846           CHK_(ptr);
1847         } else {
1848           goto handle_unusual;
1849         }
1850         continue;
1851       // optional uint32 sequence = 4;
1852       case 4:
1853         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
1854           _Internal::set_has_sequence(&has_bits);
1855           _impl_.sequence_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1856           CHK_(ptr);
1857         } else {
1858           goto handle_unusual;
1859         }
1860         continue;
1861       // optional uint32 timecode_flags = 5;
1862       case 5:
1863         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
1864           _Internal::set_has_timecode_flags(&has_bits);
1865           _impl_.timecode_flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1866           CHK_(ptr);
1867         } else {
1868           goto handle_unusual;
1869         }
1870         continue;
1871       // optional uint32 timecode_frames = 6;
1872       case 6:
1873         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
1874           _Internal::set_has_timecode_frames(&has_bits);
1875           _impl_.timecode_frames_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1876           CHK_(ptr);
1877         } else {
1878           goto handle_unusual;
1879         }
1880         continue;
1881       // optional uint32 timecode_hours = 7;
1882       case 7:
1883         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
1884           _Internal::set_has_timecode_hours(&has_bits);
1885           _impl_.timecode_hours_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1886           CHK_(ptr);
1887         } else {
1888           goto handle_unusual;
1889         }
1890         continue;
1891       // optional uint32 timecode_minutes = 8;
1892       case 8:
1893         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) {
1894           _Internal::set_has_timecode_minutes(&has_bits);
1895           _impl_.timecode_minutes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1896           CHK_(ptr);
1897         } else {
1898           goto handle_unusual;
1899         }
1900         continue;
1901       // optional uint32 timecode_seconds = 9;
1902       case 9:
1903         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 72)) {
1904           _Internal::set_has_timecode_seconds(&has_bits);
1905           _impl_.timecode_seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1906           CHK_(ptr);
1907         } else {
1908           goto handle_unusual;
1909         }
1910         continue;
1911       // optional uint32 timecode_type = 10;
1912       case 10:
1913         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 80)) {
1914           _Internal::set_has_timecode_type(&has_bits);
1915           _impl_.timecode_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1916           CHK_(ptr);
1917         } else {
1918           goto handle_unusual;
1919         }
1920         continue;
1921       // optional uint32 timecode_userbits0 = 11;
1922       case 11:
1923         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 88)) {
1924           _Internal::set_has_timecode_userbits0(&has_bits);
1925           _impl_.timecode_userbits0_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1926           CHK_(ptr);
1927         } else {
1928           goto handle_unusual;
1929         }
1930         continue;
1931       // optional uint32 timecode_userbits1 = 12;
1932       case 12:
1933         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 96)) {
1934           _Internal::set_has_timecode_userbits1(&has_bits);
1935           _impl_.timecode_userbits1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1936           CHK_(ptr);
1937         } else {
1938           goto handle_unusual;
1939         }
1940         continue;
1941       // optional uint32 timecode_userbits2 = 13;
1942       case 13:
1943         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 104)) {
1944           _Internal::set_has_timecode_userbits2(&has_bits);
1945           _impl_.timecode_userbits2_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1946           CHK_(ptr);
1947         } else {
1948           goto handle_unusual;
1949         }
1950         continue;
1951       // optional uint32 timecode_userbits3 = 14;
1952       case 14:
1953         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 112)) {
1954           _Internal::set_has_timecode_userbits3(&has_bits);
1955           _impl_.timecode_userbits3_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1956           CHK_(ptr);
1957         } else {
1958           goto handle_unusual;
1959         }
1960         continue;
1961       // optional int64 timestamp = 15;
1962       case 15:
1963         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 120)) {
1964           _Internal::set_has_timestamp(&has_bits);
1965           _impl_.timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1966           CHK_(ptr);
1967         } else {
1968           goto handle_unusual;
1969         }
1970         continue;
1971       default:
1972         goto handle_unusual;
1973     }  // switch
1974   handle_unusual:
1975     if ((tag == 0) || ((tag & 7) == 4)) {
1976       CHK_(ptr);
1977       ctx->SetLastTag(tag);
1978       goto message_done;
1979     }
1980     ptr = UnknownFieldParse(
1981         tag,
1982         _internal_metadata_.mutable_unknown_fields<std::string>(),
1983         ptr, ctx);
1984     CHK_(ptr != nullptr);
1985   }  // while
1986 message_done:
1987   _impl_._has_bits_.Or(has_bits);
1988   return ptr;
1989 failure:
1990   ptr = nullptr;
1991   goto message_done;
1992 #undef CHK_
1993 }
1994 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1995 ::uint8_t* Vb2V4l2BufQueueFtraceEvent::_InternalSerialize(
1996     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1997   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.Vb2V4l2BufQueueFtraceEvent)
1998   ::uint32_t cached_has_bits = 0;
1999   (void) cached_has_bits;
2000 
2001   cached_has_bits = _impl_._has_bits_[0];
2002   // optional uint32 field = 1;
2003   if (cached_has_bits & 0x00000001u) {
2004     target = stream->EnsureSpace(target);
2005     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_field(), target);
2006   }
2007 
2008   // optional uint32 flags = 2;
2009   if (cached_has_bits & 0x00000002u) {
2010     target = stream->EnsureSpace(target);
2011     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_flags(), target);
2012   }
2013 
2014   // optional int32 minor = 3;
2015   if (cached_has_bits & 0x00000004u) {
2016     target = stream->EnsureSpace(target);
2017     target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_minor(), target);
2018   }
2019 
2020   // optional uint32 sequence = 4;
2021   if (cached_has_bits & 0x00000008u) {
2022     target = stream->EnsureSpace(target);
2023     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_sequence(), target);
2024   }
2025 
2026   // optional uint32 timecode_flags = 5;
2027   if (cached_has_bits & 0x00000010u) {
2028     target = stream->EnsureSpace(target);
2029     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_timecode_flags(), target);
2030   }
2031 
2032   // optional uint32 timecode_frames = 6;
2033   if (cached_has_bits & 0x00000020u) {
2034     target = stream->EnsureSpace(target);
2035     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_timecode_frames(), target);
2036   }
2037 
2038   // optional uint32 timecode_hours = 7;
2039   if (cached_has_bits & 0x00000040u) {
2040     target = stream->EnsureSpace(target);
2041     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_timecode_hours(), target);
2042   }
2043 
2044   // optional uint32 timecode_minutes = 8;
2045   if (cached_has_bits & 0x00000080u) {
2046     target = stream->EnsureSpace(target);
2047     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(8, this->_internal_timecode_minutes(), target);
2048   }
2049 
2050   // optional uint32 timecode_seconds = 9;
2051   if (cached_has_bits & 0x00000100u) {
2052     target = stream->EnsureSpace(target);
2053     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(9, this->_internal_timecode_seconds(), target);
2054   }
2055 
2056   // optional uint32 timecode_type = 10;
2057   if (cached_has_bits & 0x00000200u) {
2058     target = stream->EnsureSpace(target);
2059     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(10, this->_internal_timecode_type(), target);
2060   }
2061 
2062   // optional uint32 timecode_userbits0 = 11;
2063   if (cached_has_bits & 0x00000400u) {
2064     target = stream->EnsureSpace(target);
2065     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(11, this->_internal_timecode_userbits0(), target);
2066   }
2067 
2068   // optional uint32 timecode_userbits1 = 12;
2069   if (cached_has_bits & 0x00000800u) {
2070     target = stream->EnsureSpace(target);
2071     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(12, this->_internal_timecode_userbits1(), target);
2072   }
2073 
2074   // optional uint32 timecode_userbits2 = 13;
2075   if (cached_has_bits & 0x00001000u) {
2076     target = stream->EnsureSpace(target);
2077     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(13, this->_internal_timecode_userbits2(), target);
2078   }
2079 
2080   // optional uint32 timecode_userbits3 = 14;
2081   if (cached_has_bits & 0x00002000u) {
2082     target = stream->EnsureSpace(target);
2083     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(14, this->_internal_timecode_userbits3(), target);
2084   }
2085 
2086   // optional int64 timestamp = 15;
2087   if (cached_has_bits & 0x00004000u) {
2088     target = stream->EnsureSpace(target);
2089     target = ::_pbi::WireFormatLite::WriteInt64ToArray(15, this->_internal_timestamp(), target);
2090   }
2091 
2092   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2093     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
2094         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
2095   }
2096   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.Vb2V4l2BufQueueFtraceEvent)
2097   return target;
2098 }
2099 
ByteSizeLong() const2100 size_t Vb2V4l2BufQueueFtraceEvent::ByteSizeLong() const {
2101 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.Vb2V4l2BufQueueFtraceEvent)
2102   size_t total_size = 0;
2103 
2104   ::uint32_t cached_has_bits = 0;
2105   // Prevent compiler warnings about cached_has_bits being unused
2106   (void) cached_has_bits;
2107 
2108   cached_has_bits = _impl_._has_bits_[0];
2109   if (cached_has_bits & 0x000000ffu) {
2110     // optional uint32 field = 1;
2111     if (cached_has_bits & 0x00000001u) {
2112       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_field());
2113     }
2114 
2115     // optional uint32 flags = 2;
2116     if (cached_has_bits & 0x00000002u) {
2117       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_flags());
2118     }
2119 
2120     // optional int32 minor = 3;
2121     if (cached_has_bits & 0x00000004u) {
2122       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_minor());
2123     }
2124 
2125     // optional uint32 sequence = 4;
2126     if (cached_has_bits & 0x00000008u) {
2127       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_sequence());
2128     }
2129 
2130     // optional uint32 timecode_flags = 5;
2131     if (cached_has_bits & 0x00000010u) {
2132       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_flags());
2133     }
2134 
2135     // optional uint32 timecode_frames = 6;
2136     if (cached_has_bits & 0x00000020u) {
2137       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_frames());
2138     }
2139 
2140     // optional uint32 timecode_hours = 7;
2141     if (cached_has_bits & 0x00000040u) {
2142       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_hours());
2143     }
2144 
2145     // optional uint32 timecode_minutes = 8;
2146     if (cached_has_bits & 0x00000080u) {
2147       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_minutes());
2148     }
2149 
2150   }
2151   if (cached_has_bits & 0x00007f00u) {
2152     // optional uint32 timecode_seconds = 9;
2153     if (cached_has_bits & 0x00000100u) {
2154       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_seconds());
2155     }
2156 
2157     // optional uint32 timecode_type = 10;
2158     if (cached_has_bits & 0x00000200u) {
2159       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_type());
2160     }
2161 
2162     // optional uint32 timecode_userbits0 = 11;
2163     if (cached_has_bits & 0x00000400u) {
2164       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_userbits0());
2165     }
2166 
2167     // optional uint32 timecode_userbits1 = 12;
2168     if (cached_has_bits & 0x00000800u) {
2169       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_userbits1());
2170     }
2171 
2172     // optional uint32 timecode_userbits2 = 13;
2173     if (cached_has_bits & 0x00001000u) {
2174       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_userbits2());
2175     }
2176 
2177     // optional uint32 timecode_userbits3 = 14;
2178     if (cached_has_bits & 0x00002000u) {
2179       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_userbits3());
2180     }
2181 
2182     // optional int64 timestamp = 15;
2183     if (cached_has_bits & 0x00004000u) {
2184       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_timestamp());
2185     }
2186 
2187   }
2188   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2189     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
2190   }
2191   int cached_size = ::_pbi::ToCachedSize(total_size);
2192   SetCachedSize(cached_size);
2193   return total_size;
2194 }
2195 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)2196 void Vb2V4l2BufQueueFtraceEvent::CheckTypeAndMergeFrom(
2197     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
2198   MergeFrom(*::_pbi::DownCast<const Vb2V4l2BufQueueFtraceEvent*>(
2199       &from));
2200 }
2201 
MergeFrom(const Vb2V4l2BufQueueFtraceEvent & from)2202 void Vb2V4l2BufQueueFtraceEvent::MergeFrom(const Vb2V4l2BufQueueFtraceEvent& from) {
2203   Vb2V4l2BufQueueFtraceEvent* const _this = this;
2204   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.Vb2V4l2BufQueueFtraceEvent)
2205   GOOGLE_DCHECK_NE(&from, _this);
2206   ::uint32_t cached_has_bits = 0;
2207   (void) cached_has_bits;
2208 
2209   cached_has_bits = from._impl_._has_bits_[0];
2210   if (cached_has_bits & 0x000000ffu) {
2211     if (cached_has_bits & 0x00000001u) {
2212       _this->_impl_.field_ = from._impl_.field_;
2213     }
2214     if (cached_has_bits & 0x00000002u) {
2215       _this->_impl_.flags_ = from._impl_.flags_;
2216     }
2217     if (cached_has_bits & 0x00000004u) {
2218       _this->_impl_.minor_ = from._impl_.minor_;
2219     }
2220     if (cached_has_bits & 0x00000008u) {
2221       _this->_impl_.sequence_ = from._impl_.sequence_;
2222     }
2223     if (cached_has_bits & 0x00000010u) {
2224       _this->_impl_.timecode_flags_ = from._impl_.timecode_flags_;
2225     }
2226     if (cached_has_bits & 0x00000020u) {
2227       _this->_impl_.timecode_frames_ = from._impl_.timecode_frames_;
2228     }
2229     if (cached_has_bits & 0x00000040u) {
2230       _this->_impl_.timecode_hours_ = from._impl_.timecode_hours_;
2231     }
2232     if (cached_has_bits & 0x00000080u) {
2233       _this->_impl_.timecode_minutes_ = from._impl_.timecode_minutes_;
2234     }
2235     _this->_impl_._has_bits_[0] |= cached_has_bits;
2236   }
2237   if (cached_has_bits & 0x00007f00u) {
2238     if (cached_has_bits & 0x00000100u) {
2239       _this->_impl_.timecode_seconds_ = from._impl_.timecode_seconds_;
2240     }
2241     if (cached_has_bits & 0x00000200u) {
2242       _this->_impl_.timecode_type_ = from._impl_.timecode_type_;
2243     }
2244     if (cached_has_bits & 0x00000400u) {
2245       _this->_impl_.timecode_userbits0_ = from._impl_.timecode_userbits0_;
2246     }
2247     if (cached_has_bits & 0x00000800u) {
2248       _this->_impl_.timecode_userbits1_ = from._impl_.timecode_userbits1_;
2249     }
2250     if (cached_has_bits & 0x00001000u) {
2251       _this->_impl_.timecode_userbits2_ = from._impl_.timecode_userbits2_;
2252     }
2253     if (cached_has_bits & 0x00002000u) {
2254       _this->_impl_.timecode_userbits3_ = from._impl_.timecode_userbits3_;
2255     }
2256     if (cached_has_bits & 0x00004000u) {
2257       _this->_impl_.timestamp_ = from._impl_.timestamp_;
2258     }
2259     _this->_impl_._has_bits_[0] |= cached_has_bits;
2260   }
2261   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2262 }
2263 
CopyFrom(const Vb2V4l2BufQueueFtraceEvent & from)2264 void Vb2V4l2BufQueueFtraceEvent::CopyFrom(const Vb2V4l2BufQueueFtraceEvent& from) {
2265 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.Vb2V4l2BufQueueFtraceEvent)
2266   if (&from == this) return;
2267   Clear();
2268   MergeFrom(from);
2269 }
2270 
IsInitialized() const2271 bool Vb2V4l2BufQueueFtraceEvent::IsInitialized() const {
2272   return true;
2273 }
2274 
InternalSwap(Vb2V4l2BufQueueFtraceEvent * other)2275 void Vb2V4l2BufQueueFtraceEvent::InternalSwap(Vb2V4l2BufQueueFtraceEvent* other) {
2276   using std::swap;
2277   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2278   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2279   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2280       PROTOBUF_FIELD_OFFSET(Vb2V4l2BufQueueFtraceEvent, _impl_.timestamp_)
2281       + sizeof(Vb2V4l2BufQueueFtraceEvent::_impl_.timestamp_)  // NOLINT
2282       - PROTOBUF_FIELD_OFFSET(Vb2V4l2BufQueueFtraceEvent, _impl_.field_)>(
2283           reinterpret_cast<char*>(&_impl_.field_),
2284           reinterpret_cast<char*>(&other->_impl_.field_));
2285 }
2286 
GetTypeName() const2287 std::string Vb2V4l2BufQueueFtraceEvent::GetTypeName() const {
2288   return "perfetto.protos.Vb2V4l2BufQueueFtraceEvent";
2289 }
2290 
2291 
2292 // ===================================================================
2293 
2294 class Vb2V4l2BufDoneFtraceEvent::_Internal {
2295  public:
2296   using HasBits = decltype(std::declval<Vb2V4l2BufDoneFtraceEvent>()._impl_._has_bits_);
set_has_field(HasBits * has_bits)2297   static void set_has_field(HasBits* has_bits) {
2298     (*has_bits)[0] |= 1u;
2299   }
set_has_flags(HasBits * has_bits)2300   static void set_has_flags(HasBits* has_bits) {
2301     (*has_bits)[0] |= 2u;
2302   }
set_has_minor(HasBits * has_bits)2303   static void set_has_minor(HasBits* has_bits) {
2304     (*has_bits)[0] |= 4u;
2305   }
set_has_sequence(HasBits * has_bits)2306   static void set_has_sequence(HasBits* has_bits) {
2307     (*has_bits)[0] |= 8u;
2308   }
set_has_timecode_flags(HasBits * has_bits)2309   static void set_has_timecode_flags(HasBits* has_bits) {
2310     (*has_bits)[0] |= 16u;
2311   }
set_has_timecode_frames(HasBits * has_bits)2312   static void set_has_timecode_frames(HasBits* has_bits) {
2313     (*has_bits)[0] |= 32u;
2314   }
set_has_timecode_hours(HasBits * has_bits)2315   static void set_has_timecode_hours(HasBits* has_bits) {
2316     (*has_bits)[0] |= 64u;
2317   }
set_has_timecode_minutes(HasBits * has_bits)2318   static void set_has_timecode_minutes(HasBits* has_bits) {
2319     (*has_bits)[0] |= 128u;
2320   }
set_has_timecode_seconds(HasBits * has_bits)2321   static void set_has_timecode_seconds(HasBits* has_bits) {
2322     (*has_bits)[0] |= 256u;
2323   }
set_has_timecode_type(HasBits * has_bits)2324   static void set_has_timecode_type(HasBits* has_bits) {
2325     (*has_bits)[0] |= 512u;
2326   }
set_has_timecode_userbits0(HasBits * has_bits)2327   static void set_has_timecode_userbits0(HasBits* has_bits) {
2328     (*has_bits)[0] |= 1024u;
2329   }
set_has_timecode_userbits1(HasBits * has_bits)2330   static void set_has_timecode_userbits1(HasBits* has_bits) {
2331     (*has_bits)[0] |= 2048u;
2332   }
set_has_timecode_userbits2(HasBits * has_bits)2333   static void set_has_timecode_userbits2(HasBits* has_bits) {
2334     (*has_bits)[0] |= 4096u;
2335   }
set_has_timecode_userbits3(HasBits * has_bits)2336   static void set_has_timecode_userbits3(HasBits* has_bits) {
2337     (*has_bits)[0] |= 8192u;
2338   }
set_has_timestamp(HasBits * has_bits)2339   static void set_has_timestamp(HasBits* has_bits) {
2340     (*has_bits)[0] |= 16384u;
2341   }
2342 };
2343 
Vb2V4l2BufDoneFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2344 Vb2V4l2BufDoneFtraceEvent::Vb2V4l2BufDoneFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2345                          bool is_message_owned)
2346   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
2347   SharedCtor(arena, is_message_owned);
2348   // @@protoc_insertion_point(arena_constructor:perfetto.protos.Vb2V4l2BufDoneFtraceEvent)
2349 }
Vb2V4l2BufDoneFtraceEvent(const Vb2V4l2BufDoneFtraceEvent & from)2350 Vb2V4l2BufDoneFtraceEvent::Vb2V4l2BufDoneFtraceEvent(const Vb2V4l2BufDoneFtraceEvent& from)
2351   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
2352   Vb2V4l2BufDoneFtraceEvent* const _this = this; (void)_this;
2353   new (&_impl_) Impl_{
2354       decltype(_impl_._has_bits_){from._impl_._has_bits_}
2355     , /*decltype(_impl_._cached_size_)*/{}
2356     , decltype(_impl_.field_){}
2357     , decltype(_impl_.flags_){}
2358     , decltype(_impl_.minor_){}
2359     , decltype(_impl_.sequence_){}
2360     , decltype(_impl_.timecode_flags_){}
2361     , decltype(_impl_.timecode_frames_){}
2362     , decltype(_impl_.timecode_hours_){}
2363     , decltype(_impl_.timecode_minutes_){}
2364     , decltype(_impl_.timecode_seconds_){}
2365     , decltype(_impl_.timecode_type_){}
2366     , decltype(_impl_.timecode_userbits0_){}
2367     , decltype(_impl_.timecode_userbits1_){}
2368     , decltype(_impl_.timecode_userbits2_){}
2369     , decltype(_impl_.timecode_userbits3_){}
2370     , decltype(_impl_.timestamp_){}};
2371 
2372   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2373   ::memcpy(&_impl_.field_, &from._impl_.field_,
2374     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.timestamp_) -
2375     reinterpret_cast<char*>(&_impl_.field_)) + sizeof(_impl_.timestamp_));
2376   // @@protoc_insertion_point(copy_constructor:perfetto.protos.Vb2V4l2BufDoneFtraceEvent)
2377 }
2378 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2379 inline void Vb2V4l2BufDoneFtraceEvent::SharedCtor(
2380     ::_pb::Arena* arena, bool is_message_owned) {
2381   (void)arena;
2382   (void)is_message_owned;
2383   new (&_impl_) Impl_{
2384       decltype(_impl_._has_bits_){}
2385     , /*decltype(_impl_._cached_size_)*/{}
2386     , decltype(_impl_.field_){0u}
2387     , decltype(_impl_.flags_){0u}
2388     , decltype(_impl_.minor_){0}
2389     , decltype(_impl_.sequence_){0u}
2390     , decltype(_impl_.timecode_flags_){0u}
2391     , decltype(_impl_.timecode_frames_){0u}
2392     , decltype(_impl_.timecode_hours_){0u}
2393     , decltype(_impl_.timecode_minutes_){0u}
2394     , decltype(_impl_.timecode_seconds_){0u}
2395     , decltype(_impl_.timecode_type_){0u}
2396     , decltype(_impl_.timecode_userbits0_){0u}
2397     , decltype(_impl_.timecode_userbits1_){0u}
2398     , decltype(_impl_.timecode_userbits2_){0u}
2399     , decltype(_impl_.timecode_userbits3_){0u}
2400     , decltype(_impl_.timestamp_){::int64_t{0}}
2401   };
2402 }
2403 
~Vb2V4l2BufDoneFtraceEvent()2404 Vb2V4l2BufDoneFtraceEvent::~Vb2V4l2BufDoneFtraceEvent() {
2405   // @@protoc_insertion_point(destructor:perfetto.protos.Vb2V4l2BufDoneFtraceEvent)
2406   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
2407   (void)arena;
2408     return;
2409   }
2410   SharedDtor();
2411 }
2412 
SharedDtor()2413 inline void Vb2V4l2BufDoneFtraceEvent::SharedDtor() {
2414   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2415 }
2416 
SetCachedSize(int size) const2417 void Vb2V4l2BufDoneFtraceEvent::SetCachedSize(int size) const {
2418   _impl_._cached_size_.Set(size);
2419 }
2420 
Clear()2421 void Vb2V4l2BufDoneFtraceEvent::Clear() {
2422 // @@protoc_insertion_point(message_clear_start:perfetto.protos.Vb2V4l2BufDoneFtraceEvent)
2423   ::uint32_t cached_has_bits = 0;
2424   // Prevent compiler warnings about cached_has_bits being unused
2425   (void) cached_has_bits;
2426 
2427   cached_has_bits = _impl_._has_bits_[0];
2428   if (cached_has_bits & 0x000000ffu) {
2429     ::memset(&_impl_.field_, 0, static_cast<size_t>(
2430         reinterpret_cast<char*>(&_impl_.timecode_minutes_) -
2431         reinterpret_cast<char*>(&_impl_.field_)) + sizeof(_impl_.timecode_minutes_));
2432   }
2433   if (cached_has_bits & 0x00007f00u) {
2434     ::memset(&_impl_.timecode_seconds_, 0, static_cast<size_t>(
2435         reinterpret_cast<char*>(&_impl_.timestamp_) -
2436         reinterpret_cast<char*>(&_impl_.timecode_seconds_)) + sizeof(_impl_.timestamp_));
2437   }
2438   _impl_._has_bits_.Clear();
2439   _internal_metadata_.Clear<std::string>();
2440 }
2441 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2442 const char* Vb2V4l2BufDoneFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2443 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2444   _Internal::HasBits has_bits{};
2445   while (!ctx->Done(&ptr)) {
2446     ::uint32_t tag;
2447     ptr = ::_pbi::ReadTag(ptr, &tag);
2448     switch (tag >> 3) {
2449       // optional uint32 field = 1;
2450       case 1:
2451         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
2452           _Internal::set_has_field(&has_bits);
2453           _impl_.field_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2454           CHK_(ptr);
2455         } else {
2456           goto handle_unusual;
2457         }
2458         continue;
2459       // optional uint32 flags = 2;
2460       case 2:
2461         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
2462           _Internal::set_has_flags(&has_bits);
2463           _impl_.flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2464           CHK_(ptr);
2465         } else {
2466           goto handle_unusual;
2467         }
2468         continue;
2469       // optional int32 minor = 3;
2470       case 3:
2471         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
2472           _Internal::set_has_minor(&has_bits);
2473           _impl_.minor_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2474           CHK_(ptr);
2475         } else {
2476           goto handle_unusual;
2477         }
2478         continue;
2479       // optional uint32 sequence = 4;
2480       case 4:
2481         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
2482           _Internal::set_has_sequence(&has_bits);
2483           _impl_.sequence_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2484           CHK_(ptr);
2485         } else {
2486           goto handle_unusual;
2487         }
2488         continue;
2489       // optional uint32 timecode_flags = 5;
2490       case 5:
2491         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
2492           _Internal::set_has_timecode_flags(&has_bits);
2493           _impl_.timecode_flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2494           CHK_(ptr);
2495         } else {
2496           goto handle_unusual;
2497         }
2498         continue;
2499       // optional uint32 timecode_frames = 6;
2500       case 6:
2501         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
2502           _Internal::set_has_timecode_frames(&has_bits);
2503           _impl_.timecode_frames_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2504           CHK_(ptr);
2505         } else {
2506           goto handle_unusual;
2507         }
2508         continue;
2509       // optional uint32 timecode_hours = 7;
2510       case 7:
2511         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
2512           _Internal::set_has_timecode_hours(&has_bits);
2513           _impl_.timecode_hours_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2514           CHK_(ptr);
2515         } else {
2516           goto handle_unusual;
2517         }
2518         continue;
2519       // optional uint32 timecode_minutes = 8;
2520       case 8:
2521         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) {
2522           _Internal::set_has_timecode_minutes(&has_bits);
2523           _impl_.timecode_minutes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2524           CHK_(ptr);
2525         } else {
2526           goto handle_unusual;
2527         }
2528         continue;
2529       // optional uint32 timecode_seconds = 9;
2530       case 9:
2531         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 72)) {
2532           _Internal::set_has_timecode_seconds(&has_bits);
2533           _impl_.timecode_seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2534           CHK_(ptr);
2535         } else {
2536           goto handle_unusual;
2537         }
2538         continue;
2539       // optional uint32 timecode_type = 10;
2540       case 10:
2541         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 80)) {
2542           _Internal::set_has_timecode_type(&has_bits);
2543           _impl_.timecode_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2544           CHK_(ptr);
2545         } else {
2546           goto handle_unusual;
2547         }
2548         continue;
2549       // optional uint32 timecode_userbits0 = 11;
2550       case 11:
2551         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 88)) {
2552           _Internal::set_has_timecode_userbits0(&has_bits);
2553           _impl_.timecode_userbits0_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2554           CHK_(ptr);
2555         } else {
2556           goto handle_unusual;
2557         }
2558         continue;
2559       // optional uint32 timecode_userbits1 = 12;
2560       case 12:
2561         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 96)) {
2562           _Internal::set_has_timecode_userbits1(&has_bits);
2563           _impl_.timecode_userbits1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2564           CHK_(ptr);
2565         } else {
2566           goto handle_unusual;
2567         }
2568         continue;
2569       // optional uint32 timecode_userbits2 = 13;
2570       case 13:
2571         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 104)) {
2572           _Internal::set_has_timecode_userbits2(&has_bits);
2573           _impl_.timecode_userbits2_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2574           CHK_(ptr);
2575         } else {
2576           goto handle_unusual;
2577         }
2578         continue;
2579       // optional uint32 timecode_userbits3 = 14;
2580       case 14:
2581         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 112)) {
2582           _Internal::set_has_timecode_userbits3(&has_bits);
2583           _impl_.timecode_userbits3_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2584           CHK_(ptr);
2585         } else {
2586           goto handle_unusual;
2587         }
2588         continue;
2589       // optional int64 timestamp = 15;
2590       case 15:
2591         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 120)) {
2592           _Internal::set_has_timestamp(&has_bits);
2593           _impl_.timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2594           CHK_(ptr);
2595         } else {
2596           goto handle_unusual;
2597         }
2598         continue;
2599       default:
2600         goto handle_unusual;
2601     }  // switch
2602   handle_unusual:
2603     if ((tag == 0) || ((tag & 7) == 4)) {
2604       CHK_(ptr);
2605       ctx->SetLastTag(tag);
2606       goto message_done;
2607     }
2608     ptr = UnknownFieldParse(
2609         tag,
2610         _internal_metadata_.mutable_unknown_fields<std::string>(),
2611         ptr, ctx);
2612     CHK_(ptr != nullptr);
2613   }  // while
2614 message_done:
2615   _impl_._has_bits_.Or(has_bits);
2616   return ptr;
2617 failure:
2618   ptr = nullptr;
2619   goto message_done;
2620 #undef CHK_
2621 }
2622 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2623 ::uint8_t* Vb2V4l2BufDoneFtraceEvent::_InternalSerialize(
2624     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2625   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.Vb2V4l2BufDoneFtraceEvent)
2626   ::uint32_t cached_has_bits = 0;
2627   (void) cached_has_bits;
2628 
2629   cached_has_bits = _impl_._has_bits_[0];
2630   // optional uint32 field = 1;
2631   if (cached_has_bits & 0x00000001u) {
2632     target = stream->EnsureSpace(target);
2633     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_field(), target);
2634   }
2635 
2636   // optional uint32 flags = 2;
2637   if (cached_has_bits & 0x00000002u) {
2638     target = stream->EnsureSpace(target);
2639     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_flags(), target);
2640   }
2641 
2642   // optional int32 minor = 3;
2643   if (cached_has_bits & 0x00000004u) {
2644     target = stream->EnsureSpace(target);
2645     target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_minor(), target);
2646   }
2647 
2648   // optional uint32 sequence = 4;
2649   if (cached_has_bits & 0x00000008u) {
2650     target = stream->EnsureSpace(target);
2651     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_sequence(), target);
2652   }
2653 
2654   // optional uint32 timecode_flags = 5;
2655   if (cached_has_bits & 0x00000010u) {
2656     target = stream->EnsureSpace(target);
2657     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_timecode_flags(), target);
2658   }
2659 
2660   // optional uint32 timecode_frames = 6;
2661   if (cached_has_bits & 0x00000020u) {
2662     target = stream->EnsureSpace(target);
2663     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_timecode_frames(), target);
2664   }
2665 
2666   // optional uint32 timecode_hours = 7;
2667   if (cached_has_bits & 0x00000040u) {
2668     target = stream->EnsureSpace(target);
2669     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_timecode_hours(), target);
2670   }
2671 
2672   // optional uint32 timecode_minutes = 8;
2673   if (cached_has_bits & 0x00000080u) {
2674     target = stream->EnsureSpace(target);
2675     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(8, this->_internal_timecode_minutes(), target);
2676   }
2677 
2678   // optional uint32 timecode_seconds = 9;
2679   if (cached_has_bits & 0x00000100u) {
2680     target = stream->EnsureSpace(target);
2681     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(9, this->_internal_timecode_seconds(), target);
2682   }
2683 
2684   // optional uint32 timecode_type = 10;
2685   if (cached_has_bits & 0x00000200u) {
2686     target = stream->EnsureSpace(target);
2687     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(10, this->_internal_timecode_type(), target);
2688   }
2689 
2690   // optional uint32 timecode_userbits0 = 11;
2691   if (cached_has_bits & 0x00000400u) {
2692     target = stream->EnsureSpace(target);
2693     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(11, this->_internal_timecode_userbits0(), target);
2694   }
2695 
2696   // optional uint32 timecode_userbits1 = 12;
2697   if (cached_has_bits & 0x00000800u) {
2698     target = stream->EnsureSpace(target);
2699     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(12, this->_internal_timecode_userbits1(), target);
2700   }
2701 
2702   // optional uint32 timecode_userbits2 = 13;
2703   if (cached_has_bits & 0x00001000u) {
2704     target = stream->EnsureSpace(target);
2705     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(13, this->_internal_timecode_userbits2(), target);
2706   }
2707 
2708   // optional uint32 timecode_userbits3 = 14;
2709   if (cached_has_bits & 0x00002000u) {
2710     target = stream->EnsureSpace(target);
2711     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(14, this->_internal_timecode_userbits3(), target);
2712   }
2713 
2714   // optional int64 timestamp = 15;
2715   if (cached_has_bits & 0x00004000u) {
2716     target = stream->EnsureSpace(target);
2717     target = ::_pbi::WireFormatLite::WriteInt64ToArray(15, this->_internal_timestamp(), target);
2718   }
2719 
2720   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2721     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
2722         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
2723   }
2724   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.Vb2V4l2BufDoneFtraceEvent)
2725   return target;
2726 }
2727 
ByteSizeLong() const2728 size_t Vb2V4l2BufDoneFtraceEvent::ByteSizeLong() const {
2729 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.Vb2V4l2BufDoneFtraceEvent)
2730   size_t total_size = 0;
2731 
2732   ::uint32_t cached_has_bits = 0;
2733   // Prevent compiler warnings about cached_has_bits being unused
2734   (void) cached_has_bits;
2735 
2736   cached_has_bits = _impl_._has_bits_[0];
2737   if (cached_has_bits & 0x000000ffu) {
2738     // optional uint32 field = 1;
2739     if (cached_has_bits & 0x00000001u) {
2740       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_field());
2741     }
2742 
2743     // optional uint32 flags = 2;
2744     if (cached_has_bits & 0x00000002u) {
2745       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_flags());
2746     }
2747 
2748     // optional int32 minor = 3;
2749     if (cached_has_bits & 0x00000004u) {
2750       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_minor());
2751     }
2752 
2753     // optional uint32 sequence = 4;
2754     if (cached_has_bits & 0x00000008u) {
2755       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_sequence());
2756     }
2757 
2758     // optional uint32 timecode_flags = 5;
2759     if (cached_has_bits & 0x00000010u) {
2760       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_flags());
2761     }
2762 
2763     // optional uint32 timecode_frames = 6;
2764     if (cached_has_bits & 0x00000020u) {
2765       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_frames());
2766     }
2767 
2768     // optional uint32 timecode_hours = 7;
2769     if (cached_has_bits & 0x00000040u) {
2770       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_hours());
2771     }
2772 
2773     // optional uint32 timecode_minutes = 8;
2774     if (cached_has_bits & 0x00000080u) {
2775       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_minutes());
2776     }
2777 
2778   }
2779   if (cached_has_bits & 0x00007f00u) {
2780     // optional uint32 timecode_seconds = 9;
2781     if (cached_has_bits & 0x00000100u) {
2782       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_seconds());
2783     }
2784 
2785     // optional uint32 timecode_type = 10;
2786     if (cached_has_bits & 0x00000200u) {
2787       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_type());
2788     }
2789 
2790     // optional uint32 timecode_userbits0 = 11;
2791     if (cached_has_bits & 0x00000400u) {
2792       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_userbits0());
2793     }
2794 
2795     // optional uint32 timecode_userbits1 = 12;
2796     if (cached_has_bits & 0x00000800u) {
2797       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_userbits1());
2798     }
2799 
2800     // optional uint32 timecode_userbits2 = 13;
2801     if (cached_has_bits & 0x00001000u) {
2802       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_userbits2());
2803     }
2804 
2805     // optional uint32 timecode_userbits3 = 14;
2806     if (cached_has_bits & 0x00002000u) {
2807       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_userbits3());
2808     }
2809 
2810     // optional int64 timestamp = 15;
2811     if (cached_has_bits & 0x00004000u) {
2812       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_timestamp());
2813     }
2814 
2815   }
2816   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2817     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
2818   }
2819   int cached_size = ::_pbi::ToCachedSize(total_size);
2820   SetCachedSize(cached_size);
2821   return total_size;
2822 }
2823 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)2824 void Vb2V4l2BufDoneFtraceEvent::CheckTypeAndMergeFrom(
2825     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
2826   MergeFrom(*::_pbi::DownCast<const Vb2V4l2BufDoneFtraceEvent*>(
2827       &from));
2828 }
2829 
MergeFrom(const Vb2V4l2BufDoneFtraceEvent & from)2830 void Vb2V4l2BufDoneFtraceEvent::MergeFrom(const Vb2V4l2BufDoneFtraceEvent& from) {
2831   Vb2V4l2BufDoneFtraceEvent* const _this = this;
2832   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.Vb2V4l2BufDoneFtraceEvent)
2833   GOOGLE_DCHECK_NE(&from, _this);
2834   ::uint32_t cached_has_bits = 0;
2835   (void) cached_has_bits;
2836 
2837   cached_has_bits = from._impl_._has_bits_[0];
2838   if (cached_has_bits & 0x000000ffu) {
2839     if (cached_has_bits & 0x00000001u) {
2840       _this->_impl_.field_ = from._impl_.field_;
2841     }
2842     if (cached_has_bits & 0x00000002u) {
2843       _this->_impl_.flags_ = from._impl_.flags_;
2844     }
2845     if (cached_has_bits & 0x00000004u) {
2846       _this->_impl_.minor_ = from._impl_.minor_;
2847     }
2848     if (cached_has_bits & 0x00000008u) {
2849       _this->_impl_.sequence_ = from._impl_.sequence_;
2850     }
2851     if (cached_has_bits & 0x00000010u) {
2852       _this->_impl_.timecode_flags_ = from._impl_.timecode_flags_;
2853     }
2854     if (cached_has_bits & 0x00000020u) {
2855       _this->_impl_.timecode_frames_ = from._impl_.timecode_frames_;
2856     }
2857     if (cached_has_bits & 0x00000040u) {
2858       _this->_impl_.timecode_hours_ = from._impl_.timecode_hours_;
2859     }
2860     if (cached_has_bits & 0x00000080u) {
2861       _this->_impl_.timecode_minutes_ = from._impl_.timecode_minutes_;
2862     }
2863     _this->_impl_._has_bits_[0] |= cached_has_bits;
2864   }
2865   if (cached_has_bits & 0x00007f00u) {
2866     if (cached_has_bits & 0x00000100u) {
2867       _this->_impl_.timecode_seconds_ = from._impl_.timecode_seconds_;
2868     }
2869     if (cached_has_bits & 0x00000200u) {
2870       _this->_impl_.timecode_type_ = from._impl_.timecode_type_;
2871     }
2872     if (cached_has_bits & 0x00000400u) {
2873       _this->_impl_.timecode_userbits0_ = from._impl_.timecode_userbits0_;
2874     }
2875     if (cached_has_bits & 0x00000800u) {
2876       _this->_impl_.timecode_userbits1_ = from._impl_.timecode_userbits1_;
2877     }
2878     if (cached_has_bits & 0x00001000u) {
2879       _this->_impl_.timecode_userbits2_ = from._impl_.timecode_userbits2_;
2880     }
2881     if (cached_has_bits & 0x00002000u) {
2882       _this->_impl_.timecode_userbits3_ = from._impl_.timecode_userbits3_;
2883     }
2884     if (cached_has_bits & 0x00004000u) {
2885       _this->_impl_.timestamp_ = from._impl_.timestamp_;
2886     }
2887     _this->_impl_._has_bits_[0] |= cached_has_bits;
2888   }
2889   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2890 }
2891 
CopyFrom(const Vb2V4l2BufDoneFtraceEvent & from)2892 void Vb2V4l2BufDoneFtraceEvent::CopyFrom(const Vb2V4l2BufDoneFtraceEvent& from) {
2893 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.Vb2V4l2BufDoneFtraceEvent)
2894   if (&from == this) return;
2895   Clear();
2896   MergeFrom(from);
2897 }
2898 
IsInitialized() const2899 bool Vb2V4l2BufDoneFtraceEvent::IsInitialized() const {
2900   return true;
2901 }
2902 
InternalSwap(Vb2V4l2BufDoneFtraceEvent * other)2903 void Vb2V4l2BufDoneFtraceEvent::InternalSwap(Vb2V4l2BufDoneFtraceEvent* other) {
2904   using std::swap;
2905   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2906   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2907   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2908       PROTOBUF_FIELD_OFFSET(Vb2V4l2BufDoneFtraceEvent, _impl_.timestamp_)
2909       + sizeof(Vb2V4l2BufDoneFtraceEvent::_impl_.timestamp_)  // NOLINT
2910       - PROTOBUF_FIELD_OFFSET(Vb2V4l2BufDoneFtraceEvent, _impl_.field_)>(
2911           reinterpret_cast<char*>(&_impl_.field_),
2912           reinterpret_cast<char*>(&other->_impl_.field_));
2913 }
2914 
GetTypeName() const2915 std::string Vb2V4l2BufDoneFtraceEvent::GetTypeName() const {
2916   return "perfetto.protos.Vb2V4l2BufDoneFtraceEvent";
2917 }
2918 
2919 
2920 // ===================================================================
2921 
2922 class Vb2V4l2QbufFtraceEvent::_Internal {
2923  public:
2924   using HasBits = decltype(std::declval<Vb2V4l2QbufFtraceEvent>()._impl_._has_bits_);
set_has_field(HasBits * has_bits)2925   static void set_has_field(HasBits* has_bits) {
2926     (*has_bits)[0] |= 1u;
2927   }
set_has_flags(HasBits * has_bits)2928   static void set_has_flags(HasBits* has_bits) {
2929     (*has_bits)[0] |= 2u;
2930   }
set_has_minor(HasBits * has_bits)2931   static void set_has_minor(HasBits* has_bits) {
2932     (*has_bits)[0] |= 4u;
2933   }
set_has_sequence(HasBits * has_bits)2934   static void set_has_sequence(HasBits* has_bits) {
2935     (*has_bits)[0] |= 8u;
2936   }
set_has_timecode_flags(HasBits * has_bits)2937   static void set_has_timecode_flags(HasBits* has_bits) {
2938     (*has_bits)[0] |= 16u;
2939   }
set_has_timecode_frames(HasBits * has_bits)2940   static void set_has_timecode_frames(HasBits* has_bits) {
2941     (*has_bits)[0] |= 32u;
2942   }
set_has_timecode_hours(HasBits * has_bits)2943   static void set_has_timecode_hours(HasBits* has_bits) {
2944     (*has_bits)[0] |= 64u;
2945   }
set_has_timecode_minutes(HasBits * has_bits)2946   static void set_has_timecode_minutes(HasBits* has_bits) {
2947     (*has_bits)[0] |= 128u;
2948   }
set_has_timecode_seconds(HasBits * has_bits)2949   static void set_has_timecode_seconds(HasBits* has_bits) {
2950     (*has_bits)[0] |= 256u;
2951   }
set_has_timecode_type(HasBits * has_bits)2952   static void set_has_timecode_type(HasBits* has_bits) {
2953     (*has_bits)[0] |= 512u;
2954   }
set_has_timecode_userbits0(HasBits * has_bits)2955   static void set_has_timecode_userbits0(HasBits* has_bits) {
2956     (*has_bits)[0] |= 1024u;
2957   }
set_has_timecode_userbits1(HasBits * has_bits)2958   static void set_has_timecode_userbits1(HasBits* has_bits) {
2959     (*has_bits)[0] |= 2048u;
2960   }
set_has_timecode_userbits2(HasBits * has_bits)2961   static void set_has_timecode_userbits2(HasBits* has_bits) {
2962     (*has_bits)[0] |= 4096u;
2963   }
set_has_timecode_userbits3(HasBits * has_bits)2964   static void set_has_timecode_userbits3(HasBits* has_bits) {
2965     (*has_bits)[0] |= 8192u;
2966   }
set_has_timestamp(HasBits * has_bits)2967   static void set_has_timestamp(HasBits* has_bits) {
2968     (*has_bits)[0] |= 16384u;
2969   }
2970 };
2971 
Vb2V4l2QbufFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2972 Vb2V4l2QbufFtraceEvent::Vb2V4l2QbufFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2973                          bool is_message_owned)
2974   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
2975   SharedCtor(arena, is_message_owned);
2976   // @@protoc_insertion_point(arena_constructor:perfetto.protos.Vb2V4l2QbufFtraceEvent)
2977 }
Vb2V4l2QbufFtraceEvent(const Vb2V4l2QbufFtraceEvent & from)2978 Vb2V4l2QbufFtraceEvent::Vb2V4l2QbufFtraceEvent(const Vb2V4l2QbufFtraceEvent& from)
2979   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
2980   Vb2V4l2QbufFtraceEvent* const _this = this; (void)_this;
2981   new (&_impl_) Impl_{
2982       decltype(_impl_._has_bits_){from._impl_._has_bits_}
2983     , /*decltype(_impl_._cached_size_)*/{}
2984     , decltype(_impl_.field_){}
2985     , decltype(_impl_.flags_){}
2986     , decltype(_impl_.minor_){}
2987     , decltype(_impl_.sequence_){}
2988     , decltype(_impl_.timecode_flags_){}
2989     , decltype(_impl_.timecode_frames_){}
2990     , decltype(_impl_.timecode_hours_){}
2991     , decltype(_impl_.timecode_minutes_){}
2992     , decltype(_impl_.timecode_seconds_){}
2993     , decltype(_impl_.timecode_type_){}
2994     , decltype(_impl_.timecode_userbits0_){}
2995     , decltype(_impl_.timecode_userbits1_){}
2996     , decltype(_impl_.timecode_userbits2_){}
2997     , decltype(_impl_.timecode_userbits3_){}
2998     , decltype(_impl_.timestamp_){}};
2999 
3000   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3001   ::memcpy(&_impl_.field_, &from._impl_.field_,
3002     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.timestamp_) -
3003     reinterpret_cast<char*>(&_impl_.field_)) + sizeof(_impl_.timestamp_));
3004   // @@protoc_insertion_point(copy_constructor:perfetto.protos.Vb2V4l2QbufFtraceEvent)
3005 }
3006 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3007 inline void Vb2V4l2QbufFtraceEvent::SharedCtor(
3008     ::_pb::Arena* arena, bool is_message_owned) {
3009   (void)arena;
3010   (void)is_message_owned;
3011   new (&_impl_) Impl_{
3012       decltype(_impl_._has_bits_){}
3013     , /*decltype(_impl_._cached_size_)*/{}
3014     , decltype(_impl_.field_){0u}
3015     , decltype(_impl_.flags_){0u}
3016     , decltype(_impl_.minor_){0}
3017     , decltype(_impl_.sequence_){0u}
3018     , decltype(_impl_.timecode_flags_){0u}
3019     , decltype(_impl_.timecode_frames_){0u}
3020     , decltype(_impl_.timecode_hours_){0u}
3021     , decltype(_impl_.timecode_minutes_){0u}
3022     , decltype(_impl_.timecode_seconds_){0u}
3023     , decltype(_impl_.timecode_type_){0u}
3024     , decltype(_impl_.timecode_userbits0_){0u}
3025     , decltype(_impl_.timecode_userbits1_){0u}
3026     , decltype(_impl_.timecode_userbits2_){0u}
3027     , decltype(_impl_.timecode_userbits3_){0u}
3028     , decltype(_impl_.timestamp_){::int64_t{0}}
3029   };
3030 }
3031 
~Vb2V4l2QbufFtraceEvent()3032 Vb2V4l2QbufFtraceEvent::~Vb2V4l2QbufFtraceEvent() {
3033   // @@protoc_insertion_point(destructor:perfetto.protos.Vb2V4l2QbufFtraceEvent)
3034   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
3035   (void)arena;
3036     return;
3037   }
3038   SharedDtor();
3039 }
3040 
SharedDtor()3041 inline void Vb2V4l2QbufFtraceEvent::SharedDtor() {
3042   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3043 }
3044 
SetCachedSize(int size) const3045 void Vb2V4l2QbufFtraceEvent::SetCachedSize(int size) const {
3046   _impl_._cached_size_.Set(size);
3047 }
3048 
Clear()3049 void Vb2V4l2QbufFtraceEvent::Clear() {
3050 // @@protoc_insertion_point(message_clear_start:perfetto.protos.Vb2V4l2QbufFtraceEvent)
3051   ::uint32_t cached_has_bits = 0;
3052   // Prevent compiler warnings about cached_has_bits being unused
3053   (void) cached_has_bits;
3054 
3055   cached_has_bits = _impl_._has_bits_[0];
3056   if (cached_has_bits & 0x000000ffu) {
3057     ::memset(&_impl_.field_, 0, static_cast<size_t>(
3058         reinterpret_cast<char*>(&_impl_.timecode_minutes_) -
3059         reinterpret_cast<char*>(&_impl_.field_)) + sizeof(_impl_.timecode_minutes_));
3060   }
3061   if (cached_has_bits & 0x00007f00u) {
3062     ::memset(&_impl_.timecode_seconds_, 0, static_cast<size_t>(
3063         reinterpret_cast<char*>(&_impl_.timestamp_) -
3064         reinterpret_cast<char*>(&_impl_.timecode_seconds_)) + sizeof(_impl_.timestamp_));
3065   }
3066   _impl_._has_bits_.Clear();
3067   _internal_metadata_.Clear<std::string>();
3068 }
3069 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3070 const char* Vb2V4l2QbufFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3071 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3072   _Internal::HasBits has_bits{};
3073   while (!ctx->Done(&ptr)) {
3074     ::uint32_t tag;
3075     ptr = ::_pbi::ReadTag(ptr, &tag);
3076     switch (tag >> 3) {
3077       // optional uint32 field = 1;
3078       case 1:
3079         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
3080           _Internal::set_has_field(&has_bits);
3081           _impl_.field_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3082           CHK_(ptr);
3083         } else {
3084           goto handle_unusual;
3085         }
3086         continue;
3087       // optional uint32 flags = 2;
3088       case 2:
3089         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
3090           _Internal::set_has_flags(&has_bits);
3091           _impl_.flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3092           CHK_(ptr);
3093         } else {
3094           goto handle_unusual;
3095         }
3096         continue;
3097       // optional int32 minor = 3;
3098       case 3:
3099         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
3100           _Internal::set_has_minor(&has_bits);
3101           _impl_.minor_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3102           CHK_(ptr);
3103         } else {
3104           goto handle_unusual;
3105         }
3106         continue;
3107       // optional uint32 sequence = 4;
3108       case 4:
3109         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
3110           _Internal::set_has_sequence(&has_bits);
3111           _impl_.sequence_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3112           CHK_(ptr);
3113         } else {
3114           goto handle_unusual;
3115         }
3116         continue;
3117       // optional uint32 timecode_flags = 5;
3118       case 5:
3119         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
3120           _Internal::set_has_timecode_flags(&has_bits);
3121           _impl_.timecode_flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3122           CHK_(ptr);
3123         } else {
3124           goto handle_unusual;
3125         }
3126         continue;
3127       // optional uint32 timecode_frames = 6;
3128       case 6:
3129         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
3130           _Internal::set_has_timecode_frames(&has_bits);
3131           _impl_.timecode_frames_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3132           CHK_(ptr);
3133         } else {
3134           goto handle_unusual;
3135         }
3136         continue;
3137       // optional uint32 timecode_hours = 7;
3138       case 7:
3139         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
3140           _Internal::set_has_timecode_hours(&has_bits);
3141           _impl_.timecode_hours_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3142           CHK_(ptr);
3143         } else {
3144           goto handle_unusual;
3145         }
3146         continue;
3147       // optional uint32 timecode_minutes = 8;
3148       case 8:
3149         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) {
3150           _Internal::set_has_timecode_minutes(&has_bits);
3151           _impl_.timecode_minutes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3152           CHK_(ptr);
3153         } else {
3154           goto handle_unusual;
3155         }
3156         continue;
3157       // optional uint32 timecode_seconds = 9;
3158       case 9:
3159         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 72)) {
3160           _Internal::set_has_timecode_seconds(&has_bits);
3161           _impl_.timecode_seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3162           CHK_(ptr);
3163         } else {
3164           goto handle_unusual;
3165         }
3166         continue;
3167       // optional uint32 timecode_type = 10;
3168       case 10:
3169         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 80)) {
3170           _Internal::set_has_timecode_type(&has_bits);
3171           _impl_.timecode_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3172           CHK_(ptr);
3173         } else {
3174           goto handle_unusual;
3175         }
3176         continue;
3177       // optional uint32 timecode_userbits0 = 11;
3178       case 11:
3179         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 88)) {
3180           _Internal::set_has_timecode_userbits0(&has_bits);
3181           _impl_.timecode_userbits0_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3182           CHK_(ptr);
3183         } else {
3184           goto handle_unusual;
3185         }
3186         continue;
3187       // optional uint32 timecode_userbits1 = 12;
3188       case 12:
3189         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 96)) {
3190           _Internal::set_has_timecode_userbits1(&has_bits);
3191           _impl_.timecode_userbits1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3192           CHK_(ptr);
3193         } else {
3194           goto handle_unusual;
3195         }
3196         continue;
3197       // optional uint32 timecode_userbits2 = 13;
3198       case 13:
3199         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 104)) {
3200           _Internal::set_has_timecode_userbits2(&has_bits);
3201           _impl_.timecode_userbits2_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3202           CHK_(ptr);
3203         } else {
3204           goto handle_unusual;
3205         }
3206         continue;
3207       // optional uint32 timecode_userbits3 = 14;
3208       case 14:
3209         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 112)) {
3210           _Internal::set_has_timecode_userbits3(&has_bits);
3211           _impl_.timecode_userbits3_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3212           CHK_(ptr);
3213         } else {
3214           goto handle_unusual;
3215         }
3216         continue;
3217       // optional int64 timestamp = 15;
3218       case 15:
3219         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 120)) {
3220           _Internal::set_has_timestamp(&has_bits);
3221           _impl_.timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3222           CHK_(ptr);
3223         } else {
3224           goto handle_unusual;
3225         }
3226         continue;
3227       default:
3228         goto handle_unusual;
3229     }  // switch
3230   handle_unusual:
3231     if ((tag == 0) || ((tag & 7) == 4)) {
3232       CHK_(ptr);
3233       ctx->SetLastTag(tag);
3234       goto message_done;
3235     }
3236     ptr = UnknownFieldParse(
3237         tag,
3238         _internal_metadata_.mutable_unknown_fields<std::string>(),
3239         ptr, ctx);
3240     CHK_(ptr != nullptr);
3241   }  // while
3242 message_done:
3243   _impl_._has_bits_.Or(has_bits);
3244   return ptr;
3245 failure:
3246   ptr = nullptr;
3247   goto message_done;
3248 #undef CHK_
3249 }
3250 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3251 ::uint8_t* Vb2V4l2QbufFtraceEvent::_InternalSerialize(
3252     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3253   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.Vb2V4l2QbufFtraceEvent)
3254   ::uint32_t cached_has_bits = 0;
3255   (void) cached_has_bits;
3256 
3257   cached_has_bits = _impl_._has_bits_[0];
3258   // optional uint32 field = 1;
3259   if (cached_has_bits & 0x00000001u) {
3260     target = stream->EnsureSpace(target);
3261     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_field(), target);
3262   }
3263 
3264   // optional uint32 flags = 2;
3265   if (cached_has_bits & 0x00000002u) {
3266     target = stream->EnsureSpace(target);
3267     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_flags(), target);
3268   }
3269 
3270   // optional int32 minor = 3;
3271   if (cached_has_bits & 0x00000004u) {
3272     target = stream->EnsureSpace(target);
3273     target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_minor(), target);
3274   }
3275 
3276   // optional uint32 sequence = 4;
3277   if (cached_has_bits & 0x00000008u) {
3278     target = stream->EnsureSpace(target);
3279     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_sequence(), target);
3280   }
3281 
3282   // optional uint32 timecode_flags = 5;
3283   if (cached_has_bits & 0x00000010u) {
3284     target = stream->EnsureSpace(target);
3285     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_timecode_flags(), target);
3286   }
3287 
3288   // optional uint32 timecode_frames = 6;
3289   if (cached_has_bits & 0x00000020u) {
3290     target = stream->EnsureSpace(target);
3291     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_timecode_frames(), target);
3292   }
3293 
3294   // optional uint32 timecode_hours = 7;
3295   if (cached_has_bits & 0x00000040u) {
3296     target = stream->EnsureSpace(target);
3297     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_timecode_hours(), target);
3298   }
3299 
3300   // optional uint32 timecode_minutes = 8;
3301   if (cached_has_bits & 0x00000080u) {
3302     target = stream->EnsureSpace(target);
3303     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(8, this->_internal_timecode_minutes(), target);
3304   }
3305 
3306   // optional uint32 timecode_seconds = 9;
3307   if (cached_has_bits & 0x00000100u) {
3308     target = stream->EnsureSpace(target);
3309     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(9, this->_internal_timecode_seconds(), target);
3310   }
3311 
3312   // optional uint32 timecode_type = 10;
3313   if (cached_has_bits & 0x00000200u) {
3314     target = stream->EnsureSpace(target);
3315     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(10, this->_internal_timecode_type(), target);
3316   }
3317 
3318   // optional uint32 timecode_userbits0 = 11;
3319   if (cached_has_bits & 0x00000400u) {
3320     target = stream->EnsureSpace(target);
3321     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(11, this->_internal_timecode_userbits0(), target);
3322   }
3323 
3324   // optional uint32 timecode_userbits1 = 12;
3325   if (cached_has_bits & 0x00000800u) {
3326     target = stream->EnsureSpace(target);
3327     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(12, this->_internal_timecode_userbits1(), target);
3328   }
3329 
3330   // optional uint32 timecode_userbits2 = 13;
3331   if (cached_has_bits & 0x00001000u) {
3332     target = stream->EnsureSpace(target);
3333     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(13, this->_internal_timecode_userbits2(), target);
3334   }
3335 
3336   // optional uint32 timecode_userbits3 = 14;
3337   if (cached_has_bits & 0x00002000u) {
3338     target = stream->EnsureSpace(target);
3339     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(14, this->_internal_timecode_userbits3(), target);
3340   }
3341 
3342   // optional int64 timestamp = 15;
3343   if (cached_has_bits & 0x00004000u) {
3344     target = stream->EnsureSpace(target);
3345     target = ::_pbi::WireFormatLite::WriteInt64ToArray(15, this->_internal_timestamp(), target);
3346   }
3347 
3348   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3349     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
3350         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
3351   }
3352   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.Vb2V4l2QbufFtraceEvent)
3353   return target;
3354 }
3355 
ByteSizeLong() const3356 size_t Vb2V4l2QbufFtraceEvent::ByteSizeLong() const {
3357 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.Vb2V4l2QbufFtraceEvent)
3358   size_t total_size = 0;
3359 
3360   ::uint32_t cached_has_bits = 0;
3361   // Prevent compiler warnings about cached_has_bits being unused
3362   (void) cached_has_bits;
3363 
3364   cached_has_bits = _impl_._has_bits_[0];
3365   if (cached_has_bits & 0x000000ffu) {
3366     // optional uint32 field = 1;
3367     if (cached_has_bits & 0x00000001u) {
3368       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_field());
3369     }
3370 
3371     // optional uint32 flags = 2;
3372     if (cached_has_bits & 0x00000002u) {
3373       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_flags());
3374     }
3375 
3376     // optional int32 minor = 3;
3377     if (cached_has_bits & 0x00000004u) {
3378       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_minor());
3379     }
3380 
3381     // optional uint32 sequence = 4;
3382     if (cached_has_bits & 0x00000008u) {
3383       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_sequence());
3384     }
3385 
3386     // optional uint32 timecode_flags = 5;
3387     if (cached_has_bits & 0x00000010u) {
3388       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_flags());
3389     }
3390 
3391     // optional uint32 timecode_frames = 6;
3392     if (cached_has_bits & 0x00000020u) {
3393       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_frames());
3394     }
3395 
3396     // optional uint32 timecode_hours = 7;
3397     if (cached_has_bits & 0x00000040u) {
3398       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_hours());
3399     }
3400 
3401     // optional uint32 timecode_minutes = 8;
3402     if (cached_has_bits & 0x00000080u) {
3403       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_minutes());
3404     }
3405 
3406   }
3407   if (cached_has_bits & 0x00007f00u) {
3408     // optional uint32 timecode_seconds = 9;
3409     if (cached_has_bits & 0x00000100u) {
3410       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_seconds());
3411     }
3412 
3413     // optional uint32 timecode_type = 10;
3414     if (cached_has_bits & 0x00000200u) {
3415       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_type());
3416     }
3417 
3418     // optional uint32 timecode_userbits0 = 11;
3419     if (cached_has_bits & 0x00000400u) {
3420       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_userbits0());
3421     }
3422 
3423     // optional uint32 timecode_userbits1 = 12;
3424     if (cached_has_bits & 0x00000800u) {
3425       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_userbits1());
3426     }
3427 
3428     // optional uint32 timecode_userbits2 = 13;
3429     if (cached_has_bits & 0x00001000u) {
3430       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_userbits2());
3431     }
3432 
3433     // optional uint32 timecode_userbits3 = 14;
3434     if (cached_has_bits & 0x00002000u) {
3435       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_userbits3());
3436     }
3437 
3438     // optional int64 timestamp = 15;
3439     if (cached_has_bits & 0x00004000u) {
3440       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_timestamp());
3441     }
3442 
3443   }
3444   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3445     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
3446   }
3447   int cached_size = ::_pbi::ToCachedSize(total_size);
3448   SetCachedSize(cached_size);
3449   return total_size;
3450 }
3451 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)3452 void Vb2V4l2QbufFtraceEvent::CheckTypeAndMergeFrom(
3453     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
3454   MergeFrom(*::_pbi::DownCast<const Vb2V4l2QbufFtraceEvent*>(
3455       &from));
3456 }
3457 
MergeFrom(const Vb2V4l2QbufFtraceEvent & from)3458 void Vb2V4l2QbufFtraceEvent::MergeFrom(const Vb2V4l2QbufFtraceEvent& from) {
3459   Vb2V4l2QbufFtraceEvent* const _this = this;
3460   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.Vb2V4l2QbufFtraceEvent)
3461   GOOGLE_DCHECK_NE(&from, _this);
3462   ::uint32_t cached_has_bits = 0;
3463   (void) cached_has_bits;
3464 
3465   cached_has_bits = from._impl_._has_bits_[0];
3466   if (cached_has_bits & 0x000000ffu) {
3467     if (cached_has_bits & 0x00000001u) {
3468       _this->_impl_.field_ = from._impl_.field_;
3469     }
3470     if (cached_has_bits & 0x00000002u) {
3471       _this->_impl_.flags_ = from._impl_.flags_;
3472     }
3473     if (cached_has_bits & 0x00000004u) {
3474       _this->_impl_.minor_ = from._impl_.minor_;
3475     }
3476     if (cached_has_bits & 0x00000008u) {
3477       _this->_impl_.sequence_ = from._impl_.sequence_;
3478     }
3479     if (cached_has_bits & 0x00000010u) {
3480       _this->_impl_.timecode_flags_ = from._impl_.timecode_flags_;
3481     }
3482     if (cached_has_bits & 0x00000020u) {
3483       _this->_impl_.timecode_frames_ = from._impl_.timecode_frames_;
3484     }
3485     if (cached_has_bits & 0x00000040u) {
3486       _this->_impl_.timecode_hours_ = from._impl_.timecode_hours_;
3487     }
3488     if (cached_has_bits & 0x00000080u) {
3489       _this->_impl_.timecode_minutes_ = from._impl_.timecode_minutes_;
3490     }
3491     _this->_impl_._has_bits_[0] |= cached_has_bits;
3492   }
3493   if (cached_has_bits & 0x00007f00u) {
3494     if (cached_has_bits & 0x00000100u) {
3495       _this->_impl_.timecode_seconds_ = from._impl_.timecode_seconds_;
3496     }
3497     if (cached_has_bits & 0x00000200u) {
3498       _this->_impl_.timecode_type_ = from._impl_.timecode_type_;
3499     }
3500     if (cached_has_bits & 0x00000400u) {
3501       _this->_impl_.timecode_userbits0_ = from._impl_.timecode_userbits0_;
3502     }
3503     if (cached_has_bits & 0x00000800u) {
3504       _this->_impl_.timecode_userbits1_ = from._impl_.timecode_userbits1_;
3505     }
3506     if (cached_has_bits & 0x00001000u) {
3507       _this->_impl_.timecode_userbits2_ = from._impl_.timecode_userbits2_;
3508     }
3509     if (cached_has_bits & 0x00002000u) {
3510       _this->_impl_.timecode_userbits3_ = from._impl_.timecode_userbits3_;
3511     }
3512     if (cached_has_bits & 0x00004000u) {
3513       _this->_impl_.timestamp_ = from._impl_.timestamp_;
3514     }
3515     _this->_impl_._has_bits_[0] |= cached_has_bits;
3516   }
3517   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3518 }
3519 
CopyFrom(const Vb2V4l2QbufFtraceEvent & from)3520 void Vb2V4l2QbufFtraceEvent::CopyFrom(const Vb2V4l2QbufFtraceEvent& from) {
3521 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.Vb2V4l2QbufFtraceEvent)
3522   if (&from == this) return;
3523   Clear();
3524   MergeFrom(from);
3525 }
3526 
IsInitialized() const3527 bool Vb2V4l2QbufFtraceEvent::IsInitialized() const {
3528   return true;
3529 }
3530 
InternalSwap(Vb2V4l2QbufFtraceEvent * other)3531 void Vb2V4l2QbufFtraceEvent::InternalSwap(Vb2V4l2QbufFtraceEvent* other) {
3532   using std::swap;
3533   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3534   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3535   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
3536       PROTOBUF_FIELD_OFFSET(Vb2V4l2QbufFtraceEvent, _impl_.timestamp_)
3537       + sizeof(Vb2V4l2QbufFtraceEvent::_impl_.timestamp_)  // NOLINT
3538       - PROTOBUF_FIELD_OFFSET(Vb2V4l2QbufFtraceEvent, _impl_.field_)>(
3539           reinterpret_cast<char*>(&_impl_.field_),
3540           reinterpret_cast<char*>(&other->_impl_.field_));
3541 }
3542 
GetTypeName() const3543 std::string Vb2V4l2QbufFtraceEvent::GetTypeName() const {
3544   return "perfetto.protos.Vb2V4l2QbufFtraceEvent";
3545 }
3546 
3547 
3548 // ===================================================================
3549 
3550 class Vb2V4l2DqbufFtraceEvent::_Internal {
3551  public:
3552   using HasBits = decltype(std::declval<Vb2V4l2DqbufFtraceEvent>()._impl_._has_bits_);
set_has_field(HasBits * has_bits)3553   static void set_has_field(HasBits* has_bits) {
3554     (*has_bits)[0] |= 1u;
3555   }
set_has_flags(HasBits * has_bits)3556   static void set_has_flags(HasBits* has_bits) {
3557     (*has_bits)[0] |= 2u;
3558   }
set_has_minor(HasBits * has_bits)3559   static void set_has_minor(HasBits* has_bits) {
3560     (*has_bits)[0] |= 4u;
3561   }
set_has_sequence(HasBits * has_bits)3562   static void set_has_sequence(HasBits* has_bits) {
3563     (*has_bits)[0] |= 8u;
3564   }
set_has_timecode_flags(HasBits * has_bits)3565   static void set_has_timecode_flags(HasBits* has_bits) {
3566     (*has_bits)[0] |= 16u;
3567   }
set_has_timecode_frames(HasBits * has_bits)3568   static void set_has_timecode_frames(HasBits* has_bits) {
3569     (*has_bits)[0] |= 32u;
3570   }
set_has_timecode_hours(HasBits * has_bits)3571   static void set_has_timecode_hours(HasBits* has_bits) {
3572     (*has_bits)[0] |= 64u;
3573   }
set_has_timecode_minutes(HasBits * has_bits)3574   static void set_has_timecode_minutes(HasBits* has_bits) {
3575     (*has_bits)[0] |= 128u;
3576   }
set_has_timecode_seconds(HasBits * has_bits)3577   static void set_has_timecode_seconds(HasBits* has_bits) {
3578     (*has_bits)[0] |= 256u;
3579   }
set_has_timecode_type(HasBits * has_bits)3580   static void set_has_timecode_type(HasBits* has_bits) {
3581     (*has_bits)[0] |= 512u;
3582   }
set_has_timecode_userbits0(HasBits * has_bits)3583   static void set_has_timecode_userbits0(HasBits* has_bits) {
3584     (*has_bits)[0] |= 1024u;
3585   }
set_has_timecode_userbits1(HasBits * has_bits)3586   static void set_has_timecode_userbits1(HasBits* has_bits) {
3587     (*has_bits)[0] |= 2048u;
3588   }
set_has_timecode_userbits2(HasBits * has_bits)3589   static void set_has_timecode_userbits2(HasBits* has_bits) {
3590     (*has_bits)[0] |= 4096u;
3591   }
set_has_timecode_userbits3(HasBits * has_bits)3592   static void set_has_timecode_userbits3(HasBits* has_bits) {
3593     (*has_bits)[0] |= 8192u;
3594   }
set_has_timestamp(HasBits * has_bits)3595   static void set_has_timestamp(HasBits* has_bits) {
3596     (*has_bits)[0] |= 16384u;
3597   }
3598 };
3599 
Vb2V4l2DqbufFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3600 Vb2V4l2DqbufFtraceEvent::Vb2V4l2DqbufFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3601                          bool is_message_owned)
3602   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
3603   SharedCtor(arena, is_message_owned);
3604   // @@protoc_insertion_point(arena_constructor:perfetto.protos.Vb2V4l2DqbufFtraceEvent)
3605 }
Vb2V4l2DqbufFtraceEvent(const Vb2V4l2DqbufFtraceEvent & from)3606 Vb2V4l2DqbufFtraceEvent::Vb2V4l2DqbufFtraceEvent(const Vb2V4l2DqbufFtraceEvent& from)
3607   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
3608   Vb2V4l2DqbufFtraceEvent* const _this = this; (void)_this;
3609   new (&_impl_) Impl_{
3610       decltype(_impl_._has_bits_){from._impl_._has_bits_}
3611     , /*decltype(_impl_._cached_size_)*/{}
3612     , decltype(_impl_.field_){}
3613     , decltype(_impl_.flags_){}
3614     , decltype(_impl_.minor_){}
3615     , decltype(_impl_.sequence_){}
3616     , decltype(_impl_.timecode_flags_){}
3617     , decltype(_impl_.timecode_frames_){}
3618     , decltype(_impl_.timecode_hours_){}
3619     , decltype(_impl_.timecode_minutes_){}
3620     , decltype(_impl_.timecode_seconds_){}
3621     , decltype(_impl_.timecode_type_){}
3622     , decltype(_impl_.timecode_userbits0_){}
3623     , decltype(_impl_.timecode_userbits1_){}
3624     , decltype(_impl_.timecode_userbits2_){}
3625     , decltype(_impl_.timecode_userbits3_){}
3626     , decltype(_impl_.timestamp_){}};
3627 
3628   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3629   ::memcpy(&_impl_.field_, &from._impl_.field_,
3630     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.timestamp_) -
3631     reinterpret_cast<char*>(&_impl_.field_)) + sizeof(_impl_.timestamp_));
3632   // @@protoc_insertion_point(copy_constructor:perfetto.protos.Vb2V4l2DqbufFtraceEvent)
3633 }
3634 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3635 inline void Vb2V4l2DqbufFtraceEvent::SharedCtor(
3636     ::_pb::Arena* arena, bool is_message_owned) {
3637   (void)arena;
3638   (void)is_message_owned;
3639   new (&_impl_) Impl_{
3640       decltype(_impl_._has_bits_){}
3641     , /*decltype(_impl_._cached_size_)*/{}
3642     , decltype(_impl_.field_){0u}
3643     , decltype(_impl_.flags_){0u}
3644     , decltype(_impl_.minor_){0}
3645     , decltype(_impl_.sequence_){0u}
3646     , decltype(_impl_.timecode_flags_){0u}
3647     , decltype(_impl_.timecode_frames_){0u}
3648     , decltype(_impl_.timecode_hours_){0u}
3649     , decltype(_impl_.timecode_minutes_){0u}
3650     , decltype(_impl_.timecode_seconds_){0u}
3651     , decltype(_impl_.timecode_type_){0u}
3652     , decltype(_impl_.timecode_userbits0_){0u}
3653     , decltype(_impl_.timecode_userbits1_){0u}
3654     , decltype(_impl_.timecode_userbits2_){0u}
3655     , decltype(_impl_.timecode_userbits3_){0u}
3656     , decltype(_impl_.timestamp_){::int64_t{0}}
3657   };
3658 }
3659 
~Vb2V4l2DqbufFtraceEvent()3660 Vb2V4l2DqbufFtraceEvent::~Vb2V4l2DqbufFtraceEvent() {
3661   // @@protoc_insertion_point(destructor:perfetto.protos.Vb2V4l2DqbufFtraceEvent)
3662   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
3663   (void)arena;
3664     return;
3665   }
3666   SharedDtor();
3667 }
3668 
SharedDtor()3669 inline void Vb2V4l2DqbufFtraceEvent::SharedDtor() {
3670   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3671 }
3672 
SetCachedSize(int size) const3673 void Vb2V4l2DqbufFtraceEvent::SetCachedSize(int size) const {
3674   _impl_._cached_size_.Set(size);
3675 }
3676 
Clear()3677 void Vb2V4l2DqbufFtraceEvent::Clear() {
3678 // @@protoc_insertion_point(message_clear_start:perfetto.protos.Vb2V4l2DqbufFtraceEvent)
3679   ::uint32_t cached_has_bits = 0;
3680   // Prevent compiler warnings about cached_has_bits being unused
3681   (void) cached_has_bits;
3682 
3683   cached_has_bits = _impl_._has_bits_[0];
3684   if (cached_has_bits & 0x000000ffu) {
3685     ::memset(&_impl_.field_, 0, static_cast<size_t>(
3686         reinterpret_cast<char*>(&_impl_.timecode_minutes_) -
3687         reinterpret_cast<char*>(&_impl_.field_)) + sizeof(_impl_.timecode_minutes_));
3688   }
3689   if (cached_has_bits & 0x00007f00u) {
3690     ::memset(&_impl_.timecode_seconds_, 0, static_cast<size_t>(
3691         reinterpret_cast<char*>(&_impl_.timestamp_) -
3692         reinterpret_cast<char*>(&_impl_.timecode_seconds_)) + sizeof(_impl_.timestamp_));
3693   }
3694   _impl_._has_bits_.Clear();
3695   _internal_metadata_.Clear<std::string>();
3696 }
3697 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3698 const char* Vb2V4l2DqbufFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3699 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3700   _Internal::HasBits has_bits{};
3701   while (!ctx->Done(&ptr)) {
3702     ::uint32_t tag;
3703     ptr = ::_pbi::ReadTag(ptr, &tag);
3704     switch (tag >> 3) {
3705       // optional uint32 field = 1;
3706       case 1:
3707         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
3708           _Internal::set_has_field(&has_bits);
3709           _impl_.field_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3710           CHK_(ptr);
3711         } else {
3712           goto handle_unusual;
3713         }
3714         continue;
3715       // optional uint32 flags = 2;
3716       case 2:
3717         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
3718           _Internal::set_has_flags(&has_bits);
3719           _impl_.flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3720           CHK_(ptr);
3721         } else {
3722           goto handle_unusual;
3723         }
3724         continue;
3725       // optional int32 minor = 3;
3726       case 3:
3727         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
3728           _Internal::set_has_minor(&has_bits);
3729           _impl_.minor_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3730           CHK_(ptr);
3731         } else {
3732           goto handle_unusual;
3733         }
3734         continue;
3735       // optional uint32 sequence = 4;
3736       case 4:
3737         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
3738           _Internal::set_has_sequence(&has_bits);
3739           _impl_.sequence_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3740           CHK_(ptr);
3741         } else {
3742           goto handle_unusual;
3743         }
3744         continue;
3745       // optional uint32 timecode_flags = 5;
3746       case 5:
3747         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
3748           _Internal::set_has_timecode_flags(&has_bits);
3749           _impl_.timecode_flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3750           CHK_(ptr);
3751         } else {
3752           goto handle_unusual;
3753         }
3754         continue;
3755       // optional uint32 timecode_frames = 6;
3756       case 6:
3757         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
3758           _Internal::set_has_timecode_frames(&has_bits);
3759           _impl_.timecode_frames_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3760           CHK_(ptr);
3761         } else {
3762           goto handle_unusual;
3763         }
3764         continue;
3765       // optional uint32 timecode_hours = 7;
3766       case 7:
3767         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
3768           _Internal::set_has_timecode_hours(&has_bits);
3769           _impl_.timecode_hours_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3770           CHK_(ptr);
3771         } else {
3772           goto handle_unusual;
3773         }
3774         continue;
3775       // optional uint32 timecode_minutes = 8;
3776       case 8:
3777         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) {
3778           _Internal::set_has_timecode_minutes(&has_bits);
3779           _impl_.timecode_minutes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3780           CHK_(ptr);
3781         } else {
3782           goto handle_unusual;
3783         }
3784         continue;
3785       // optional uint32 timecode_seconds = 9;
3786       case 9:
3787         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 72)) {
3788           _Internal::set_has_timecode_seconds(&has_bits);
3789           _impl_.timecode_seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3790           CHK_(ptr);
3791         } else {
3792           goto handle_unusual;
3793         }
3794         continue;
3795       // optional uint32 timecode_type = 10;
3796       case 10:
3797         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 80)) {
3798           _Internal::set_has_timecode_type(&has_bits);
3799           _impl_.timecode_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3800           CHK_(ptr);
3801         } else {
3802           goto handle_unusual;
3803         }
3804         continue;
3805       // optional uint32 timecode_userbits0 = 11;
3806       case 11:
3807         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 88)) {
3808           _Internal::set_has_timecode_userbits0(&has_bits);
3809           _impl_.timecode_userbits0_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3810           CHK_(ptr);
3811         } else {
3812           goto handle_unusual;
3813         }
3814         continue;
3815       // optional uint32 timecode_userbits1 = 12;
3816       case 12:
3817         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 96)) {
3818           _Internal::set_has_timecode_userbits1(&has_bits);
3819           _impl_.timecode_userbits1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3820           CHK_(ptr);
3821         } else {
3822           goto handle_unusual;
3823         }
3824         continue;
3825       // optional uint32 timecode_userbits2 = 13;
3826       case 13:
3827         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 104)) {
3828           _Internal::set_has_timecode_userbits2(&has_bits);
3829           _impl_.timecode_userbits2_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3830           CHK_(ptr);
3831         } else {
3832           goto handle_unusual;
3833         }
3834         continue;
3835       // optional uint32 timecode_userbits3 = 14;
3836       case 14:
3837         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 112)) {
3838           _Internal::set_has_timecode_userbits3(&has_bits);
3839           _impl_.timecode_userbits3_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3840           CHK_(ptr);
3841         } else {
3842           goto handle_unusual;
3843         }
3844         continue;
3845       // optional int64 timestamp = 15;
3846       case 15:
3847         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 120)) {
3848           _Internal::set_has_timestamp(&has_bits);
3849           _impl_.timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3850           CHK_(ptr);
3851         } else {
3852           goto handle_unusual;
3853         }
3854         continue;
3855       default:
3856         goto handle_unusual;
3857     }  // switch
3858   handle_unusual:
3859     if ((tag == 0) || ((tag & 7) == 4)) {
3860       CHK_(ptr);
3861       ctx->SetLastTag(tag);
3862       goto message_done;
3863     }
3864     ptr = UnknownFieldParse(
3865         tag,
3866         _internal_metadata_.mutable_unknown_fields<std::string>(),
3867         ptr, ctx);
3868     CHK_(ptr != nullptr);
3869   }  // while
3870 message_done:
3871   _impl_._has_bits_.Or(has_bits);
3872   return ptr;
3873 failure:
3874   ptr = nullptr;
3875   goto message_done;
3876 #undef CHK_
3877 }
3878 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3879 ::uint8_t* Vb2V4l2DqbufFtraceEvent::_InternalSerialize(
3880     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3881   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.Vb2V4l2DqbufFtraceEvent)
3882   ::uint32_t cached_has_bits = 0;
3883   (void) cached_has_bits;
3884 
3885   cached_has_bits = _impl_._has_bits_[0];
3886   // optional uint32 field = 1;
3887   if (cached_has_bits & 0x00000001u) {
3888     target = stream->EnsureSpace(target);
3889     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_field(), target);
3890   }
3891 
3892   // optional uint32 flags = 2;
3893   if (cached_has_bits & 0x00000002u) {
3894     target = stream->EnsureSpace(target);
3895     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_flags(), target);
3896   }
3897 
3898   // optional int32 minor = 3;
3899   if (cached_has_bits & 0x00000004u) {
3900     target = stream->EnsureSpace(target);
3901     target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_minor(), target);
3902   }
3903 
3904   // optional uint32 sequence = 4;
3905   if (cached_has_bits & 0x00000008u) {
3906     target = stream->EnsureSpace(target);
3907     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_sequence(), target);
3908   }
3909 
3910   // optional uint32 timecode_flags = 5;
3911   if (cached_has_bits & 0x00000010u) {
3912     target = stream->EnsureSpace(target);
3913     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_timecode_flags(), target);
3914   }
3915 
3916   // optional uint32 timecode_frames = 6;
3917   if (cached_has_bits & 0x00000020u) {
3918     target = stream->EnsureSpace(target);
3919     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_timecode_frames(), target);
3920   }
3921 
3922   // optional uint32 timecode_hours = 7;
3923   if (cached_has_bits & 0x00000040u) {
3924     target = stream->EnsureSpace(target);
3925     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_timecode_hours(), target);
3926   }
3927 
3928   // optional uint32 timecode_minutes = 8;
3929   if (cached_has_bits & 0x00000080u) {
3930     target = stream->EnsureSpace(target);
3931     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(8, this->_internal_timecode_minutes(), target);
3932   }
3933 
3934   // optional uint32 timecode_seconds = 9;
3935   if (cached_has_bits & 0x00000100u) {
3936     target = stream->EnsureSpace(target);
3937     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(9, this->_internal_timecode_seconds(), target);
3938   }
3939 
3940   // optional uint32 timecode_type = 10;
3941   if (cached_has_bits & 0x00000200u) {
3942     target = stream->EnsureSpace(target);
3943     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(10, this->_internal_timecode_type(), target);
3944   }
3945 
3946   // optional uint32 timecode_userbits0 = 11;
3947   if (cached_has_bits & 0x00000400u) {
3948     target = stream->EnsureSpace(target);
3949     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(11, this->_internal_timecode_userbits0(), target);
3950   }
3951 
3952   // optional uint32 timecode_userbits1 = 12;
3953   if (cached_has_bits & 0x00000800u) {
3954     target = stream->EnsureSpace(target);
3955     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(12, this->_internal_timecode_userbits1(), target);
3956   }
3957 
3958   // optional uint32 timecode_userbits2 = 13;
3959   if (cached_has_bits & 0x00001000u) {
3960     target = stream->EnsureSpace(target);
3961     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(13, this->_internal_timecode_userbits2(), target);
3962   }
3963 
3964   // optional uint32 timecode_userbits3 = 14;
3965   if (cached_has_bits & 0x00002000u) {
3966     target = stream->EnsureSpace(target);
3967     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(14, this->_internal_timecode_userbits3(), target);
3968   }
3969 
3970   // optional int64 timestamp = 15;
3971   if (cached_has_bits & 0x00004000u) {
3972     target = stream->EnsureSpace(target);
3973     target = ::_pbi::WireFormatLite::WriteInt64ToArray(15, this->_internal_timestamp(), target);
3974   }
3975 
3976   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3977     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
3978         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
3979   }
3980   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.Vb2V4l2DqbufFtraceEvent)
3981   return target;
3982 }
3983 
ByteSizeLong() const3984 size_t Vb2V4l2DqbufFtraceEvent::ByteSizeLong() const {
3985 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.Vb2V4l2DqbufFtraceEvent)
3986   size_t total_size = 0;
3987 
3988   ::uint32_t cached_has_bits = 0;
3989   // Prevent compiler warnings about cached_has_bits being unused
3990   (void) cached_has_bits;
3991 
3992   cached_has_bits = _impl_._has_bits_[0];
3993   if (cached_has_bits & 0x000000ffu) {
3994     // optional uint32 field = 1;
3995     if (cached_has_bits & 0x00000001u) {
3996       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_field());
3997     }
3998 
3999     // optional uint32 flags = 2;
4000     if (cached_has_bits & 0x00000002u) {
4001       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_flags());
4002     }
4003 
4004     // optional int32 minor = 3;
4005     if (cached_has_bits & 0x00000004u) {
4006       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_minor());
4007     }
4008 
4009     // optional uint32 sequence = 4;
4010     if (cached_has_bits & 0x00000008u) {
4011       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_sequence());
4012     }
4013 
4014     // optional uint32 timecode_flags = 5;
4015     if (cached_has_bits & 0x00000010u) {
4016       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_flags());
4017     }
4018 
4019     // optional uint32 timecode_frames = 6;
4020     if (cached_has_bits & 0x00000020u) {
4021       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_frames());
4022     }
4023 
4024     // optional uint32 timecode_hours = 7;
4025     if (cached_has_bits & 0x00000040u) {
4026       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_hours());
4027     }
4028 
4029     // optional uint32 timecode_minutes = 8;
4030     if (cached_has_bits & 0x00000080u) {
4031       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_minutes());
4032     }
4033 
4034   }
4035   if (cached_has_bits & 0x00007f00u) {
4036     // optional uint32 timecode_seconds = 9;
4037     if (cached_has_bits & 0x00000100u) {
4038       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_seconds());
4039     }
4040 
4041     // optional uint32 timecode_type = 10;
4042     if (cached_has_bits & 0x00000200u) {
4043       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_type());
4044     }
4045 
4046     // optional uint32 timecode_userbits0 = 11;
4047     if (cached_has_bits & 0x00000400u) {
4048       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_userbits0());
4049     }
4050 
4051     // optional uint32 timecode_userbits1 = 12;
4052     if (cached_has_bits & 0x00000800u) {
4053       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_userbits1());
4054     }
4055 
4056     // optional uint32 timecode_userbits2 = 13;
4057     if (cached_has_bits & 0x00001000u) {
4058       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_userbits2());
4059     }
4060 
4061     // optional uint32 timecode_userbits3 = 14;
4062     if (cached_has_bits & 0x00002000u) {
4063       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timecode_userbits3());
4064     }
4065 
4066     // optional int64 timestamp = 15;
4067     if (cached_has_bits & 0x00004000u) {
4068       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_timestamp());
4069     }
4070 
4071   }
4072   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4073     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
4074   }
4075   int cached_size = ::_pbi::ToCachedSize(total_size);
4076   SetCachedSize(cached_size);
4077   return total_size;
4078 }
4079 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)4080 void Vb2V4l2DqbufFtraceEvent::CheckTypeAndMergeFrom(
4081     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
4082   MergeFrom(*::_pbi::DownCast<const Vb2V4l2DqbufFtraceEvent*>(
4083       &from));
4084 }
4085 
MergeFrom(const Vb2V4l2DqbufFtraceEvent & from)4086 void Vb2V4l2DqbufFtraceEvent::MergeFrom(const Vb2V4l2DqbufFtraceEvent& from) {
4087   Vb2V4l2DqbufFtraceEvent* const _this = this;
4088   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.Vb2V4l2DqbufFtraceEvent)
4089   GOOGLE_DCHECK_NE(&from, _this);
4090   ::uint32_t cached_has_bits = 0;
4091   (void) cached_has_bits;
4092 
4093   cached_has_bits = from._impl_._has_bits_[0];
4094   if (cached_has_bits & 0x000000ffu) {
4095     if (cached_has_bits & 0x00000001u) {
4096       _this->_impl_.field_ = from._impl_.field_;
4097     }
4098     if (cached_has_bits & 0x00000002u) {
4099       _this->_impl_.flags_ = from._impl_.flags_;
4100     }
4101     if (cached_has_bits & 0x00000004u) {
4102       _this->_impl_.minor_ = from._impl_.minor_;
4103     }
4104     if (cached_has_bits & 0x00000008u) {
4105       _this->_impl_.sequence_ = from._impl_.sequence_;
4106     }
4107     if (cached_has_bits & 0x00000010u) {
4108       _this->_impl_.timecode_flags_ = from._impl_.timecode_flags_;
4109     }
4110     if (cached_has_bits & 0x00000020u) {
4111       _this->_impl_.timecode_frames_ = from._impl_.timecode_frames_;
4112     }
4113     if (cached_has_bits & 0x00000040u) {
4114       _this->_impl_.timecode_hours_ = from._impl_.timecode_hours_;
4115     }
4116     if (cached_has_bits & 0x00000080u) {
4117       _this->_impl_.timecode_minutes_ = from._impl_.timecode_minutes_;
4118     }
4119     _this->_impl_._has_bits_[0] |= cached_has_bits;
4120   }
4121   if (cached_has_bits & 0x00007f00u) {
4122     if (cached_has_bits & 0x00000100u) {
4123       _this->_impl_.timecode_seconds_ = from._impl_.timecode_seconds_;
4124     }
4125     if (cached_has_bits & 0x00000200u) {
4126       _this->_impl_.timecode_type_ = from._impl_.timecode_type_;
4127     }
4128     if (cached_has_bits & 0x00000400u) {
4129       _this->_impl_.timecode_userbits0_ = from._impl_.timecode_userbits0_;
4130     }
4131     if (cached_has_bits & 0x00000800u) {
4132       _this->_impl_.timecode_userbits1_ = from._impl_.timecode_userbits1_;
4133     }
4134     if (cached_has_bits & 0x00001000u) {
4135       _this->_impl_.timecode_userbits2_ = from._impl_.timecode_userbits2_;
4136     }
4137     if (cached_has_bits & 0x00002000u) {
4138       _this->_impl_.timecode_userbits3_ = from._impl_.timecode_userbits3_;
4139     }
4140     if (cached_has_bits & 0x00004000u) {
4141       _this->_impl_.timestamp_ = from._impl_.timestamp_;
4142     }
4143     _this->_impl_._has_bits_[0] |= cached_has_bits;
4144   }
4145   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4146 }
4147 
CopyFrom(const Vb2V4l2DqbufFtraceEvent & from)4148 void Vb2V4l2DqbufFtraceEvent::CopyFrom(const Vb2V4l2DqbufFtraceEvent& from) {
4149 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.Vb2V4l2DqbufFtraceEvent)
4150   if (&from == this) return;
4151   Clear();
4152   MergeFrom(from);
4153 }
4154 
IsInitialized() const4155 bool Vb2V4l2DqbufFtraceEvent::IsInitialized() const {
4156   return true;
4157 }
4158 
InternalSwap(Vb2V4l2DqbufFtraceEvent * other)4159 void Vb2V4l2DqbufFtraceEvent::InternalSwap(Vb2V4l2DqbufFtraceEvent* other) {
4160   using std::swap;
4161   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4162   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4163   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
4164       PROTOBUF_FIELD_OFFSET(Vb2V4l2DqbufFtraceEvent, _impl_.timestamp_)
4165       + sizeof(Vb2V4l2DqbufFtraceEvent::_impl_.timestamp_)  // NOLINT
4166       - PROTOBUF_FIELD_OFFSET(Vb2V4l2DqbufFtraceEvent, _impl_.field_)>(
4167           reinterpret_cast<char*>(&_impl_.field_),
4168           reinterpret_cast<char*>(&other->_impl_.field_));
4169 }
4170 
GetTypeName() const4171 std::string Vb2V4l2DqbufFtraceEvent::GetTypeName() const {
4172   return "perfetto.protos.Vb2V4l2DqbufFtraceEvent";
4173 }
4174 
4175 
4176 // @@protoc_insertion_point(namespace_scope)
4177 }  // namespace protos
4178 }  // namespace perfetto
4179 PROTOBUF_NAMESPACE_OPEN
4180 template<> PROTOBUF_NOINLINE ::perfetto::protos::V4l2QbufFtraceEvent*
CreateMaybeMessage(Arena * arena)4181 Arena::CreateMaybeMessage< ::perfetto::protos::V4l2QbufFtraceEvent >(Arena* arena) {
4182   return Arena::CreateMessageInternal< ::perfetto::protos::V4l2QbufFtraceEvent >(arena);
4183 }
4184 template<> PROTOBUF_NOINLINE ::perfetto::protos::V4l2DqbufFtraceEvent*
CreateMaybeMessage(Arena * arena)4185 Arena::CreateMaybeMessage< ::perfetto::protos::V4l2DqbufFtraceEvent >(Arena* arena) {
4186   return Arena::CreateMessageInternal< ::perfetto::protos::V4l2DqbufFtraceEvent >(arena);
4187 }
4188 template<> PROTOBUF_NOINLINE ::perfetto::protos::Vb2V4l2BufQueueFtraceEvent*
CreateMaybeMessage(Arena * arena)4189 Arena::CreateMaybeMessage< ::perfetto::protos::Vb2V4l2BufQueueFtraceEvent >(Arena* arena) {
4190   return Arena::CreateMessageInternal< ::perfetto::protos::Vb2V4l2BufQueueFtraceEvent >(arena);
4191 }
4192 template<> PROTOBUF_NOINLINE ::perfetto::protos::Vb2V4l2BufDoneFtraceEvent*
CreateMaybeMessage(Arena * arena)4193 Arena::CreateMaybeMessage< ::perfetto::protos::Vb2V4l2BufDoneFtraceEvent >(Arena* arena) {
4194   return Arena::CreateMessageInternal< ::perfetto::protos::Vb2V4l2BufDoneFtraceEvent >(arena);
4195 }
4196 template<> PROTOBUF_NOINLINE ::perfetto::protos::Vb2V4l2QbufFtraceEvent*
CreateMaybeMessage(Arena * arena)4197 Arena::CreateMaybeMessage< ::perfetto::protos::Vb2V4l2QbufFtraceEvent >(Arena* arena) {
4198   return Arena::CreateMessageInternal< ::perfetto::protos::Vb2V4l2QbufFtraceEvent >(arena);
4199 }
4200 template<> PROTOBUF_NOINLINE ::perfetto::protos::Vb2V4l2DqbufFtraceEvent*
CreateMaybeMessage(Arena * arena)4201 Arena::CreateMaybeMessage< ::perfetto::protos::Vb2V4l2DqbufFtraceEvent >(Arena* arena) {
4202   return Arena::CreateMessageInternal< ::perfetto::protos::Vb2V4l2DqbufFtraceEvent >(arena);
4203 }
4204 PROTOBUF_NAMESPACE_CLOSE
4205 
4206 // @@protoc_insertion_point(global_scope)
4207 #include <google/protobuf/port_undef.inc>
4208