1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: protos/perfetto/trace/ftrace/kmem.proto
3 
4 #include "protos/perfetto/trace/ftrace/kmem.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 {
AllocPagesIommuEndFtraceEvent(::_pbi::ConstantInitialized)23 PROTOBUF_CONSTEXPR AllocPagesIommuEndFtraceEvent::AllocPagesIommuEndFtraceEvent(
24     ::_pbi::ConstantInitialized): _impl_{
25     /*decltype(_impl_._has_bits_)*/{}
26   , /*decltype(_impl_._cached_size_)*/{}
27   , /*decltype(_impl_.gfp_flags_)*/0u
28   , /*decltype(_impl_.order_)*/0u} {}
29 struct AllocPagesIommuEndFtraceEventDefaultTypeInternal {
AllocPagesIommuEndFtraceEventDefaultTypeInternalperfetto::protos::AllocPagesIommuEndFtraceEventDefaultTypeInternal30   PROTOBUF_CONSTEXPR AllocPagesIommuEndFtraceEventDefaultTypeInternal()
31       : _instance(::_pbi::ConstantInitialized{}) {}
~AllocPagesIommuEndFtraceEventDefaultTypeInternalperfetto::protos::AllocPagesIommuEndFtraceEventDefaultTypeInternal32   ~AllocPagesIommuEndFtraceEventDefaultTypeInternal() {}
33   union {  // NOLINT(misc-non-private-member-variables-in-classes)
34     AllocPagesIommuEndFtraceEvent _instance;
35   };
36 };
37 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AllocPagesIommuEndFtraceEventDefaultTypeInternal _AllocPagesIommuEndFtraceEvent_default_instance_;
AllocPagesIommuFailFtraceEvent(::_pbi::ConstantInitialized)38 PROTOBUF_CONSTEXPR AllocPagesIommuFailFtraceEvent::AllocPagesIommuFailFtraceEvent(
39     ::_pbi::ConstantInitialized): _impl_{
40     /*decltype(_impl_._has_bits_)*/{}
41   , /*decltype(_impl_._cached_size_)*/{}
42   , /*decltype(_impl_.gfp_flags_)*/0u
43   , /*decltype(_impl_.order_)*/0u} {}
44 struct AllocPagesIommuFailFtraceEventDefaultTypeInternal {
AllocPagesIommuFailFtraceEventDefaultTypeInternalperfetto::protos::AllocPagesIommuFailFtraceEventDefaultTypeInternal45   PROTOBUF_CONSTEXPR AllocPagesIommuFailFtraceEventDefaultTypeInternal()
46       : _instance(::_pbi::ConstantInitialized{}) {}
~AllocPagesIommuFailFtraceEventDefaultTypeInternalperfetto::protos::AllocPagesIommuFailFtraceEventDefaultTypeInternal47   ~AllocPagesIommuFailFtraceEventDefaultTypeInternal() {}
48   union {  // NOLINT(misc-non-private-member-variables-in-classes)
49     AllocPagesIommuFailFtraceEvent _instance;
50   };
51 };
52 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AllocPagesIommuFailFtraceEventDefaultTypeInternal _AllocPagesIommuFailFtraceEvent_default_instance_;
AllocPagesIommuStartFtraceEvent(::_pbi::ConstantInitialized)53 PROTOBUF_CONSTEXPR AllocPagesIommuStartFtraceEvent::AllocPagesIommuStartFtraceEvent(
54     ::_pbi::ConstantInitialized): _impl_{
55     /*decltype(_impl_._has_bits_)*/{}
56   , /*decltype(_impl_._cached_size_)*/{}
57   , /*decltype(_impl_.gfp_flags_)*/0u
58   , /*decltype(_impl_.order_)*/0u} {}
59 struct AllocPagesIommuStartFtraceEventDefaultTypeInternal {
AllocPagesIommuStartFtraceEventDefaultTypeInternalperfetto::protos::AllocPagesIommuStartFtraceEventDefaultTypeInternal60   PROTOBUF_CONSTEXPR AllocPagesIommuStartFtraceEventDefaultTypeInternal()
61       : _instance(::_pbi::ConstantInitialized{}) {}
~AllocPagesIommuStartFtraceEventDefaultTypeInternalperfetto::protos::AllocPagesIommuStartFtraceEventDefaultTypeInternal62   ~AllocPagesIommuStartFtraceEventDefaultTypeInternal() {}
63   union {  // NOLINT(misc-non-private-member-variables-in-classes)
64     AllocPagesIommuStartFtraceEvent _instance;
65   };
66 };
67 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AllocPagesIommuStartFtraceEventDefaultTypeInternal _AllocPagesIommuStartFtraceEvent_default_instance_;
AllocPagesSysEndFtraceEvent(::_pbi::ConstantInitialized)68 PROTOBUF_CONSTEXPR AllocPagesSysEndFtraceEvent::AllocPagesSysEndFtraceEvent(
69     ::_pbi::ConstantInitialized): _impl_{
70     /*decltype(_impl_._has_bits_)*/{}
71   , /*decltype(_impl_._cached_size_)*/{}
72   , /*decltype(_impl_.gfp_flags_)*/0u
73   , /*decltype(_impl_.order_)*/0u} {}
74 struct AllocPagesSysEndFtraceEventDefaultTypeInternal {
AllocPagesSysEndFtraceEventDefaultTypeInternalperfetto::protos::AllocPagesSysEndFtraceEventDefaultTypeInternal75   PROTOBUF_CONSTEXPR AllocPagesSysEndFtraceEventDefaultTypeInternal()
76       : _instance(::_pbi::ConstantInitialized{}) {}
~AllocPagesSysEndFtraceEventDefaultTypeInternalperfetto::protos::AllocPagesSysEndFtraceEventDefaultTypeInternal77   ~AllocPagesSysEndFtraceEventDefaultTypeInternal() {}
78   union {  // NOLINT(misc-non-private-member-variables-in-classes)
79     AllocPagesSysEndFtraceEvent _instance;
80   };
81 };
82 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AllocPagesSysEndFtraceEventDefaultTypeInternal _AllocPagesSysEndFtraceEvent_default_instance_;
AllocPagesSysFailFtraceEvent(::_pbi::ConstantInitialized)83 PROTOBUF_CONSTEXPR AllocPagesSysFailFtraceEvent::AllocPagesSysFailFtraceEvent(
84     ::_pbi::ConstantInitialized): _impl_{
85     /*decltype(_impl_._has_bits_)*/{}
86   , /*decltype(_impl_._cached_size_)*/{}
87   , /*decltype(_impl_.gfp_flags_)*/0u
88   , /*decltype(_impl_.order_)*/0u} {}
89 struct AllocPagesSysFailFtraceEventDefaultTypeInternal {
AllocPagesSysFailFtraceEventDefaultTypeInternalperfetto::protos::AllocPagesSysFailFtraceEventDefaultTypeInternal90   PROTOBUF_CONSTEXPR AllocPagesSysFailFtraceEventDefaultTypeInternal()
91       : _instance(::_pbi::ConstantInitialized{}) {}
~AllocPagesSysFailFtraceEventDefaultTypeInternalperfetto::protos::AllocPagesSysFailFtraceEventDefaultTypeInternal92   ~AllocPagesSysFailFtraceEventDefaultTypeInternal() {}
93   union {  // NOLINT(misc-non-private-member-variables-in-classes)
94     AllocPagesSysFailFtraceEvent _instance;
95   };
96 };
97 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AllocPagesSysFailFtraceEventDefaultTypeInternal _AllocPagesSysFailFtraceEvent_default_instance_;
AllocPagesSysStartFtraceEvent(::_pbi::ConstantInitialized)98 PROTOBUF_CONSTEXPR AllocPagesSysStartFtraceEvent::AllocPagesSysStartFtraceEvent(
99     ::_pbi::ConstantInitialized): _impl_{
100     /*decltype(_impl_._has_bits_)*/{}
101   , /*decltype(_impl_._cached_size_)*/{}
102   , /*decltype(_impl_.gfp_flags_)*/0u
103   , /*decltype(_impl_.order_)*/0u} {}
104 struct AllocPagesSysStartFtraceEventDefaultTypeInternal {
AllocPagesSysStartFtraceEventDefaultTypeInternalperfetto::protos::AllocPagesSysStartFtraceEventDefaultTypeInternal105   PROTOBUF_CONSTEXPR AllocPagesSysStartFtraceEventDefaultTypeInternal()
106       : _instance(::_pbi::ConstantInitialized{}) {}
~AllocPagesSysStartFtraceEventDefaultTypeInternalperfetto::protos::AllocPagesSysStartFtraceEventDefaultTypeInternal107   ~AllocPagesSysStartFtraceEventDefaultTypeInternal() {}
108   union {  // NOLINT(misc-non-private-member-variables-in-classes)
109     AllocPagesSysStartFtraceEvent _instance;
110   };
111 };
112 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AllocPagesSysStartFtraceEventDefaultTypeInternal _AllocPagesSysStartFtraceEvent_default_instance_;
DmaAllocContiguousRetryFtraceEvent(::_pbi::ConstantInitialized)113 PROTOBUF_CONSTEXPR DmaAllocContiguousRetryFtraceEvent::DmaAllocContiguousRetryFtraceEvent(
114     ::_pbi::ConstantInitialized): _impl_{
115     /*decltype(_impl_._has_bits_)*/{}
116   , /*decltype(_impl_._cached_size_)*/{}
117   , /*decltype(_impl_.tries_)*/0} {}
118 struct DmaAllocContiguousRetryFtraceEventDefaultTypeInternal {
DmaAllocContiguousRetryFtraceEventDefaultTypeInternalperfetto::protos::DmaAllocContiguousRetryFtraceEventDefaultTypeInternal119   PROTOBUF_CONSTEXPR DmaAllocContiguousRetryFtraceEventDefaultTypeInternal()
120       : _instance(::_pbi::ConstantInitialized{}) {}
~DmaAllocContiguousRetryFtraceEventDefaultTypeInternalperfetto::protos::DmaAllocContiguousRetryFtraceEventDefaultTypeInternal121   ~DmaAllocContiguousRetryFtraceEventDefaultTypeInternal() {}
122   union {  // NOLINT(misc-non-private-member-variables-in-classes)
123     DmaAllocContiguousRetryFtraceEvent _instance;
124   };
125 };
126 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DmaAllocContiguousRetryFtraceEventDefaultTypeInternal _DmaAllocContiguousRetryFtraceEvent_default_instance_;
IommuMapRangeFtraceEvent(::_pbi::ConstantInitialized)127 PROTOBUF_CONSTEXPR IommuMapRangeFtraceEvent::IommuMapRangeFtraceEvent(
128     ::_pbi::ConstantInitialized): _impl_{
129     /*decltype(_impl_._has_bits_)*/{}
130   , /*decltype(_impl_._cached_size_)*/{}
131   , /*decltype(_impl_.chunk_size_)*/::uint64_t{0u}
132   , /*decltype(_impl_.len_)*/::uint64_t{0u}
133   , /*decltype(_impl_.pa_)*/::uint64_t{0u}
134   , /*decltype(_impl_.va_)*/::uint64_t{0u}} {}
135 struct IommuMapRangeFtraceEventDefaultTypeInternal {
IommuMapRangeFtraceEventDefaultTypeInternalperfetto::protos::IommuMapRangeFtraceEventDefaultTypeInternal136   PROTOBUF_CONSTEXPR IommuMapRangeFtraceEventDefaultTypeInternal()
137       : _instance(::_pbi::ConstantInitialized{}) {}
~IommuMapRangeFtraceEventDefaultTypeInternalperfetto::protos::IommuMapRangeFtraceEventDefaultTypeInternal138   ~IommuMapRangeFtraceEventDefaultTypeInternal() {}
139   union {  // NOLINT(misc-non-private-member-variables-in-classes)
140     IommuMapRangeFtraceEvent _instance;
141   };
142 };
143 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IommuMapRangeFtraceEventDefaultTypeInternal _IommuMapRangeFtraceEvent_default_instance_;
IommuSecPtblMapRangeEndFtraceEvent(::_pbi::ConstantInitialized)144 PROTOBUF_CONSTEXPR IommuSecPtblMapRangeEndFtraceEvent::IommuSecPtblMapRangeEndFtraceEvent(
145     ::_pbi::ConstantInitialized): _impl_{
146     /*decltype(_impl_._has_bits_)*/{}
147   , /*decltype(_impl_._cached_size_)*/{}
148   , /*decltype(_impl_.len_)*/::uint64_t{0u}
149   , /*decltype(_impl_.num_)*/0
150   , /*decltype(_impl_.pa_)*/0u
151   , /*decltype(_impl_.va_)*/::uint64_t{0u}
152   , /*decltype(_impl_.sec_id_)*/0} {}
153 struct IommuSecPtblMapRangeEndFtraceEventDefaultTypeInternal {
IommuSecPtblMapRangeEndFtraceEventDefaultTypeInternalperfetto::protos::IommuSecPtblMapRangeEndFtraceEventDefaultTypeInternal154   PROTOBUF_CONSTEXPR IommuSecPtblMapRangeEndFtraceEventDefaultTypeInternal()
155       : _instance(::_pbi::ConstantInitialized{}) {}
~IommuSecPtblMapRangeEndFtraceEventDefaultTypeInternalperfetto::protos::IommuSecPtblMapRangeEndFtraceEventDefaultTypeInternal156   ~IommuSecPtblMapRangeEndFtraceEventDefaultTypeInternal() {}
157   union {  // NOLINT(misc-non-private-member-variables-in-classes)
158     IommuSecPtblMapRangeEndFtraceEvent _instance;
159   };
160 };
161 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IommuSecPtblMapRangeEndFtraceEventDefaultTypeInternal _IommuSecPtblMapRangeEndFtraceEvent_default_instance_;
IommuSecPtblMapRangeStartFtraceEvent(::_pbi::ConstantInitialized)162 PROTOBUF_CONSTEXPR IommuSecPtblMapRangeStartFtraceEvent::IommuSecPtblMapRangeStartFtraceEvent(
163     ::_pbi::ConstantInitialized): _impl_{
164     /*decltype(_impl_._has_bits_)*/{}
165   , /*decltype(_impl_._cached_size_)*/{}
166   , /*decltype(_impl_.len_)*/::uint64_t{0u}
167   , /*decltype(_impl_.num_)*/0
168   , /*decltype(_impl_.pa_)*/0u
169   , /*decltype(_impl_.va_)*/::uint64_t{0u}
170   , /*decltype(_impl_.sec_id_)*/0} {}
171 struct IommuSecPtblMapRangeStartFtraceEventDefaultTypeInternal {
IommuSecPtblMapRangeStartFtraceEventDefaultTypeInternalperfetto::protos::IommuSecPtblMapRangeStartFtraceEventDefaultTypeInternal172   PROTOBUF_CONSTEXPR IommuSecPtblMapRangeStartFtraceEventDefaultTypeInternal()
173       : _instance(::_pbi::ConstantInitialized{}) {}
~IommuSecPtblMapRangeStartFtraceEventDefaultTypeInternalperfetto::protos::IommuSecPtblMapRangeStartFtraceEventDefaultTypeInternal174   ~IommuSecPtblMapRangeStartFtraceEventDefaultTypeInternal() {}
175   union {  // NOLINT(misc-non-private-member-variables-in-classes)
176     IommuSecPtblMapRangeStartFtraceEvent _instance;
177   };
178 };
179 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IommuSecPtblMapRangeStartFtraceEventDefaultTypeInternal _IommuSecPtblMapRangeStartFtraceEvent_default_instance_;
IonAllocBufferEndFtraceEvent(::_pbi::ConstantInitialized)180 PROTOBUF_CONSTEXPR IonAllocBufferEndFtraceEvent::IonAllocBufferEndFtraceEvent(
181     ::_pbi::ConstantInitialized): _impl_{
182     /*decltype(_impl_._has_bits_)*/{}
183   , /*decltype(_impl_._cached_size_)*/{}
184   , /*decltype(_impl_.client_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
185   , /*decltype(_impl_.heap_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
186   , /*decltype(_impl_.flags_)*/0u
187   , /*decltype(_impl_.mask_)*/0u
188   , /*decltype(_impl_.len_)*/::uint64_t{0u}} {}
189 struct IonAllocBufferEndFtraceEventDefaultTypeInternal {
IonAllocBufferEndFtraceEventDefaultTypeInternalperfetto::protos::IonAllocBufferEndFtraceEventDefaultTypeInternal190   PROTOBUF_CONSTEXPR IonAllocBufferEndFtraceEventDefaultTypeInternal()
191       : _instance(::_pbi::ConstantInitialized{}) {}
~IonAllocBufferEndFtraceEventDefaultTypeInternalperfetto::protos::IonAllocBufferEndFtraceEventDefaultTypeInternal192   ~IonAllocBufferEndFtraceEventDefaultTypeInternal() {}
193   union {  // NOLINT(misc-non-private-member-variables-in-classes)
194     IonAllocBufferEndFtraceEvent _instance;
195   };
196 };
197 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IonAllocBufferEndFtraceEventDefaultTypeInternal _IonAllocBufferEndFtraceEvent_default_instance_;
IonAllocBufferFailFtraceEvent(::_pbi::ConstantInitialized)198 PROTOBUF_CONSTEXPR IonAllocBufferFailFtraceEvent::IonAllocBufferFailFtraceEvent(
199     ::_pbi::ConstantInitialized): _impl_{
200     /*decltype(_impl_._has_bits_)*/{}
201   , /*decltype(_impl_._cached_size_)*/{}
202   , /*decltype(_impl_.client_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
203   , /*decltype(_impl_.heap_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
204   , /*decltype(_impl_.error_)*/::int64_t{0}
205   , /*decltype(_impl_.flags_)*/0u
206   , /*decltype(_impl_.mask_)*/0u
207   , /*decltype(_impl_.len_)*/::uint64_t{0u}} {}
208 struct IonAllocBufferFailFtraceEventDefaultTypeInternal {
IonAllocBufferFailFtraceEventDefaultTypeInternalperfetto::protos::IonAllocBufferFailFtraceEventDefaultTypeInternal209   PROTOBUF_CONSTEXPR IonAllocBufferFailFtraceEventDefaultTypeInternal()
210       : _instance(::_pbi::ConstantInitialized{}) {}
~IonAllocBufferFailFtraceEventDefaultTypeInternalperfetto::protos::IonAllocBufferFailFtraceEventDefaultTypeInternal211   ~IonAllocBufferFailFtraceEventDefaultTypeInternal() {}
212   union {  // NOLINT(misc-non-private-member-variables-in-classes)
213     IonAllocBufferFailFtraceEvent _instance;
214   };
215 };
216 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IonAllocBufferFailFtraceEventDefaultTypeInternal _IonAllocBufferFailFtraceEvent_default_instance_;
IonAllocBufferFallbackFtraceEvent(::_pbi::ConstantInitialized)217 PROTOBUF_CONSTEXPR IonAllocBufferFallbackFtraceEvent::IonAllocBufferFallbackFtraceEvent(
218     ::_pbi::ConstantInitialized): _impl_{
219     /*decltype(_impl_._has_bits_)*/{}
220   , /*decltype(_impl_._cached_size_)*/{}
221   , /*decltype(_impl_.client_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
222   , /*decltype(_impl_.heap_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
223   , /*decltype(_impl_.error_)*/::int64_t{0}
224   , /*decltype(_impl_.flags_)*/0u
225   , /*decltype(_impl_.mask_)*/0u
226   , /*decltype(_impl_.len_)*/::uint64_t{0u}} {}
227 struct IonAllocBufferFallbackFtraceEventDefaultTypeInternal {
IonAllocBufferFallbackFtraceEventDefaultTypeInternalperfetto::protos::IonAllocBufferFallbackFtraceEventDefaultTypeInternal228   PROTOBUF_CONSTEXPR IonAllocBufferFallbackFtraceEventDefaultTypeInternal()
229       : _instance(::_pbi::ConstantInitialized{}) {}
~IonAllocBufferFallbackFtraceEventDefaultTypeInternalperfetto::protos::IonAllocBufferFallbackFtraceEventDefaultTypeInternal230   ~IonAllocBufferFallbackFtraceEventDefaultTypeInternal() {}
231   union {  // NOLINT(misc-non-private-member-variables-in-classes)
232     IonAllocBufferFallbackFtraceEvent _instance;
233   };
234 };
235 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IonAllocBufferFallbackFtraceEventDefaultTypeInternal _IonAllocBufferFallbackFtraceEvent_default_instance_;
IonAllocBufferStartFtraceEvent(::_pbi::ConstantInitialized)236 PROTOBUF_CONSTEXPR IonAllocBufferStartFtraceEvent::IonAllocBufferStartFtraceEvent(
237     ::_pbi::ConstantInitialized): _impl_{
238     /*decltype(_impl_._has_bits_)*/{}
239   , /*decltype(_impl_._cached_size_)*/{}
240   , /*decltype(_impl_.client_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
241   , /*decltype(_impl_.heap_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
242   , /*decltype(_impl_.flags_)*/0u
243   , /*decltype(_impl_.mask_)*/0u
244   , /*decltype(_impl_.len_)*/::uint64_t{0u}} {}
245 struct IonAllocBufferStartFtraceEventDefaultTypeInternal {
IonAllocBufferStartFtraceEventDefaultTypeInternalperfetto::protos::IonAllocBufferStartFtraceEventDefaultTypeInternal246   PROTOBUF_CONSTEXPR IonAllocBufferStartFtraceEventDefaultTypeInternal()
247       : _instance(::_pbi::ConstantInitialized{}) {}
~IonAllocBufferStartFtraceEventDefaultTypeInternalperfetto::protos::IonAllocBufferStartFtraceEventDefaultTypeInternal248   ~IonAllocBufferStartFtraceEventDefaultTypeInternal() {}
249   union {  // NOLINT(misc-non-private-member-variables-in-classes)
250     IonAllocBufferStartFtraceEvent _instance;
251   };
252 };
253 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IonAllocBufferStartFtraceEventDefaultTypeInternal _IonAllocBufferStartFtraceEvent_default_instance_;
IonCpAllocRetryFtraceEvent(::_pbi::ConstantInitialized)254 PROTOBUF_CONSTEXPR IonCpAllocRetryFtraceEvent::IonCpAllocRetryFtraceEvent(
255     ::_pbi::ConstantInitialized): _impl_{
256     /*decltype(_impl_._has_bits_)*/{}
257   , /*decltype(_impl_._cached_size_)*/{}
258   , /*decltype(_impl_.tries_)*/0} {}
259 struct IonCpAllocRetryFtraceEventDefaultTypeInternal {
IonCpAllocRetryFtraceEventDefaultTypeInternalperfetto::protos::IonCpAllocRetryFtraceEventDefaultTypeInternal260   PROTOBUF_CONSTEXPR IonCpAllocRetryFtraceEventDefaultTypeInternal()
261       : _instance(::_pbi::ConstantInitialized{}) {}
~IonCpAllocRetryFtraceEventDefaultTypeInternalperfetto::protos::IonCpAllocRetryFtraceEventDefaultTypeInternal262   ~IonCpAllocRetryFtraceEventDefaultTypeInternal() {}
263   union {  // NOLINT(misc-non-private-member-variables-in-classes)
264     IonCpAllocRetryFtraceEvent _instance;
265   };
266 };
267 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IonCpAllocRetryFtraceEventDefaultTypeInternal _IonCpAllocRetryFtraceEvent_default_instance_;
IonCpSecureBufferEndFtraceEvent(::_pbi::ConstantInitialized)268 PROTOBUF_CONSTEXPR IonCpSecureBufferEndFtraceEvent::IonCpSecureBufferEndFtraceEvent(
269     ::_pbi::ConstantInitialized): _impl_{
270     /*decltype(_impl_._has_bits_)*/{}
271   , /*decltype(_impl_._cached_size_)*/{}
272   , /*decltype(_impl_.heap_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
273   , /*decltype(_impl_.align_)*/::uint64_t{0u}
274   , /*decltype(_impl_.flags_)*/::uint64_t{0u}
275   , /*decltype(_impl_.len_)*/::uint64_t{0u}} {}
276 struct IonCpSecureBufferEndFtraceEventDefaultTypeInternal {
IonCpSecureBufferEndFtraceEventDefaultTypeInternalperfetto::protos::IonCpSecureBufferEndFtraceEventDefaultTypeInternal277   PROTOBUF_CONSTEXPR IonCpSecureBufferEndFtraceEventDefaultTypeInternal()
278       : _instance(::_pbi::ConstantInitialized{}) {}
~IonCpSecureBufferEndFtraceEventDefaultTypeInternalperfetto::protos::IonCpSecureBufferEndFtraceEventDefaultTypeInternal279   ~IonCpSecureBufferEndFtraceEventDefaultTypeInternal() {}
280   union {  // NOLINT(misc-non-private-member-variables-in-classes)
281     IonCpSecureBufferEndFtraceEvent _instance;
282   };
283 };
284 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IonCpSecureBufferEndFtraceEventDefaultTypeInternal _IonCpSecureBufferEndFtraceEvent_default_instance_;
IonCpSecureBufferStartFtraceEvent(::_pbi::ConstantInitialized)285 PROTOBUF_CONSTEXPR IonCpSecureBufferStartFtraceEvent::IonCpSecureBufferStartFtraceEvent(
286     ::_pbi::ConstantInitialized): _impl_{
287     /*decltype(_impl_._has_bits_)*/{}
288   , /*decltype(_impl_._cached_size_)*/{}
289   , /*decltype(_impl_.heap_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
290   , /*decltype(_impl_.align_)*/::uint64_t{0u}
291   , /*decltype(_impl_.flags_)*/::uint64_t{0u}
292   , /*decltype(_impl_.len_)*/::uint64_t{0u}} {}
293 struct IonCpSecureBufferStartFtraceEventDefaultTypeInternal {
IonCpSecureBufferStartFtraceEventDefaultTypeInternalperfetto::protos::IonCpSecureBufferStartFtraceEventDefaultTypeInternal294   PROTOBUF_CONSTEXPR IonCpSecureBufferStartFtraceEventDefaultTypeInternal()
295       : _instance(::_pbi::ConstantInitialized{}) {}
~IonCpSecureBufferStartFtraceEventDefaultTypeInternalperfetto::protos::IonCpSecureBufferStartFtraceEventDefaultTypeInternal296   ~IonCpSecureBufferStartFtraceEventDefaultTypeInternal() {}
297   union {  // NOLINT(misc-non-private-member-variables-in-classes)
298     IonCpSecureBufferStartFtraceEvent _instance;
299   };
300 };
301 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IonCpSecureBufferStartFtraceEventDefaultTypeInternal _IonCpSecureBufferStartFtraceEvent_default_instance_;
IonPrefetchingFtraceEvent(::_pbi::ConstantInitialized)302 PROTOBUF_CONSTEXPR IonPrefetchingFtraceEvent::IonPrefetchingFtraceEvent(
303     ::_pbi::ConstantInitialized): _impl_{
304     /*decltype(_impl_._has_bits_)*/{}
305   , /*decltype(_impl_._cached_size_)*/{}
306   , /*decltype(_impl_.len_)*/::uint64_t{0u}} {}
307 struct IonPrefetchingFtraceEventDefaultTypeInternal {
IonPrefetchingFtraceEventDefaultTypeInternalperfetto::protos::IonPrefetchingFtraceEventDefaultTypeInternal308   PROTOBUF_CONSTEXPR IonPrefetchingFtraceEventDefaultTypeInternal()
309       : _instance(::_pbi::ConstantInitialized{}) {}
~IonPrefetchingFtraceEventDefaultTypeInternalperfetto::protos::IonPrefetchingFtraceEventDefaultTypeInternal310   ~IonPrefetchingFtraceEventDefaultTypeInternal() {}
311   union {  // NOLINT(misc-non-private-member-variables-in-classes)
312     IonPrefetchingFtraceEvent _instance;
313   };
314 };
315 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IonPrefetchingFtraceEventDefaultTypeInternal _IonPrefetchingFtraceEvent_default_instance_;
IonSecureCmaAddToPoolEndFtraceEvent(::_pbi::ConstantInitialized)316 PROTOBUF_CONSTEXPR IonSecureCmaAddToPoolEndFtraceEvent::IonSecureCmaAddToPoolEndFtraceEvent(
317     ::_pbi::ConstantInitialized): _impl_{
318     /*decltype(_impl_._has_bits_)*/{}
319   , /*decltype(_impl_._cached_size_)*/{}
320   , /*decltype(_impl_.len_)*/::uint64_t{0u}
321   , /*decltype(_impl_.is_prefetch_)*/0u
322   , /*decltype(_impl_.pool_total_)*/0} {}
323 struct IonSecureCmaAddToPoolEndFtraceEventDefaultTypeInternal {
IonSecureCmaAddToPoolEndFtraceEventDefaultTypeInternalperfetto::protos::IonSecureCmaAddToPoolEndFtraceEventDefaultTypeInternal324   PROTOBUF_CONSTEXPR IonSecureCmaAddToPoolEndFtraceEventDefaultTypeInternal()
325       : _instance(::_pbi::ConstantInitialized{}) {}
~IonSecureCmaAddToPoolEndFtraceEventDefaultTypeInternalperfetto::protos::IonSecureCmaAddToPoolEndFtraceEventDefaultTypeInternal326   ~IonSecureCmaAddToPoolEndFtraceEventDefaultTypeInternal() {}
327   union {  // NOLINT(misc-non-private-member-variables-in-classes)
328     IonSecureCmaAddToPoolEndFtraceEvent _instance;
329   };
330 };
331 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IonSecureCmaAddToPoolEndFtraceEventDefaultTypeInternal _IonSecureCmaAddToPoolEndFtraceEvent_default_instance_;
IonSecureCmaAddToPoolStartFtraceEvent(::_pbi::ConstantInitialized)332 PROTOBUF_CONSTEXPR IonSecureCmaAddToPoolStartFtraceEvent::IonSecureCmaAddToPoolStartFtraceEvent(
333     ::_pbi::ConstantInitialized): _impl_{
334     /*decltype(_impl_._has_bits_)*/{}
335   , /*decltype(_impl_._cached_size_)*/{}
336   , /*decltype(_impl_.len_)*/::uint64_t{0u}
337   , /*decltype(_impl_.is_prefetch_)*/0u
338   , /*decltype(_impl_.pool_total_)*/0} {}
339 struct IonSecureCmaAddToPoolStartFtraceEventDefaultTypeInternal {
IonSecureCmaAddToPoolStartFtraceEventDefaultTypeInternalperfetto::protos::IonSecureCmaAddToPoolStartFtraceEventDefaultTypeInternal340   PROTOBUF_CONSTEXPR IonSecureCmaAddToPoolStartFtraceEventDefaultTypeInternal()
341       : _instance(::_pbi::ConstantInitialized{}) {}
~IonSecureCmaAddToPoolStartFtraceEventDefaultTypeInternalperfetto::protos::IonSecureCmaAddToPoolStartFtraceEventDefaultTypeInternal342   ~IonSecureCmaAddToPoolStartFtraceEventDefaultTypeInternal() {}
343   union {  // NOLINT(misc-non-private-member-variables-in-classes)
344     IonSecureCmaAddToPoolStartFtraceEvent _instance;
345   };
346 };
347 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IonSecureCmaAddToPoolStartFtraceEventDefaultTypeInternal _IonSecureCmaAddToPoolStartFtraceEvent_default_instance_;
IonSecureCmaAllocateEndFtraceEvent(::_pbi::ConstantInitialized)348 PROTOBUF_CONSTEXPR IonSecureCmaAllocateEndFtraceEvent::IonSecureCmaAllocateEndFtraceEvent(
349     ::_pbi::ConstantInitialized): _impl_{
350     /*decltype(_impl_._has_bits_)*/{}
351   , /*decltype(_impl_._cached_size_)*/{}
352   , /*decltype(_impl_.heap_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
353   , /*decltype(_impl_.align_)*/::uint64_t{0u}
354   , /*decltype(_impl_.flags_)*/::uint64_t{0u}
355   , /*decltype(_impl_.len_)*/::uint64_t{0u}} {}
356 struct IonSecureCmaAllocateEndFtraceEventDefaultTypeInternal {
IonSecureCmaAllocateEndFtraceEventDefaultTypeInternalperfetto::protos::IonSecureCmaAllocateEndFtraceEventDefaultTypeInternal357   PROTOBUF_CONSTEXPR IonSecureCmaAllocateEndFtraceEventDefaultTypeInternal()
358       : _instance(::_pbi::ConstantInitialized{}) {}
~IonSecureCmaAllocateEndFtraceEventDefaultTypeInternalperfetto::protos::IonSecureCmaAllocateEndFtraceEventDefaultTypeInternal359   ~IonSecureCmaAllocateEndFtraceEventDefaultTypeInternal() {}
360   union {  // NOLINT(misc-non-private-member-variables-in-classes)
361     IonSecureCmaAllocateEndFtraceEvent _instance;
362   };
363 };
364 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IonSecureCmaAllocateEndFtraceEventDefaultTypeInternal _IonSecureCmaAllocateEndFtraceEvent_default_instance_;
IonSecureCmaAllocateStartFtraceEvent(::_pbi::ConstantInitialized)365 PROTOBUF_CONSTEXPR IonSecureCmaAllocateStartFtraceEvent::IonSecureCmaAllocateStartFtraceEvent(
366     ::_pbi::ConstantInitialized): _impl_{
367     /*decltype(_impl_._has_bits_)*/{}
368   , /*decltype(_impl_._cached_size_)*/{}
369   , /*decltype(_impl_.heap_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
370   , /*decltype(_impl_.align_)*/::uint64_t{0u}
371   , /*decltype(_impl_.flags_)*/::uint64_t{0u}
372   , /*decltype(_impl_.len_)*/::uint64_t{0u}} {}
373 struct IonSecureCmaAllocateStartFtraceEventDefaultTypeInternal {
IonSecureCmaAllocateStartFtraceEventDefaultTypeInternalperfetto::protos::IonSecureCmaAllocateStartFtraceEventDefaultTypeInternal374   PROTOBUF_CONSTEXPR IonSecureCmaAllocateStartFtraceEventDefaultTypeInternal()
375       : _instance(::_pbi::ConstantInitialized{}) {}
~IonSecureCmaAllocateStartFtraceEventDefaultTypeInternalperfetto::protos::IonSecureCmaAllocateStartFtraceEventDefaultTypeInternal376   ~IonSecureCmaAllocateStartFtraceEventDefaultTypeInternal() {}
377   union {  // NOLINT(misc-non-private-member-variables-in-classes)
378     IonSecureCmaAllocateStartFtraceEvent _instance;
379   };
380 };
381 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IonSecureCmaAllocateStartFtraceEventDefaultTypeInternal _IonSecureCmaAllocateStartFtraceEvent_default_instance_;
IonSecureCmaShrinkPoolEndFtraceEvent(::_pbi::ConstantInitialized)382 PROTOBUF_CONSTEXPR IonSecureCmaShrinkPoolEndFtraceEvent::IonSecureCmaShrinkPoolEndFtraceEvent(
383     ::_pbi::ConstantInitialized): _impl_{
384     /*decltype(_impl_._has_bits_)*/{}
385   , /*decltype(_impl_._cached_size_)*/{}
386   , /*decltype(_impl_.drained_size_)*/::uint64_t{0u}
387   , /*decltype(_impl_.skipped_size_)*/::uint64_t{0u}} {}
388 struct IonSecureCmaShrinkPoolEndFtraceEventDefaultTypeInternal {
IonSecureCmaShrinkPoolEndFtraceEventDefaultTypeInternalperfetto::protos::IonSecureCmaShrinkPoolEndFtraceEventDefaultTypeInternal389   PROTOBUF_CONSTEXPR IonSecureCmaShrinkPoolEndFtraceEventDefaultTypeInternal()
390       : _instance(::_pbi::ConstantInitialized{}) {}
~IonSecureCmaShrinkPoolEndFtraceEventDefaultTypeInternalperfetto::protos::IonSecureCmaShrinkPoolEndFtraceEventDefaultTypeInternal391   ~IonSecureCmaShrinkPoolEndFtraceEventDefaultTypeInternal() {}
392   union {  // NOLINT(misc-non-private-member-variables-in-classes)
393     IonSecureCmaShrinkPoolEndFtraceEvent _instance;
394   };
395 };
396 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IonSecureCmaShrinkPoolEndFtraceEventDefaultTypeInternal _IonSecureCmaShrinkPoolEndFtraceEvent_default_instance_;
IonSecureCmaShrinkPoolStartFtraceEvent(::_pbi::ConstantInitialized)397 PROTOBUF_CONSTEXPR IonSecureCmaShrinkPoolStartFtraceEvent::IonSecureCmaShrinkPoolStartFtraceEvent(
398     ::_pbi::ConstantInitialized): _impl_{
399     /*decltype(_impl_._has_bits_)*/{}
400   , /*decltype(_impl_._cached_size_)*/{}
401   , /*decltype(_impl_.drained_size_)*/::uint64_t{0u}
402   , /*decltype(_impl_.skipped_size_)*/::uint64_t{0u}} {}
403 struct IonSecureCmaShrinkPoolStartFtraceEventDefaultTypeInternal {
IonSecureCmaShrinkPoolStartFtraceEventDefaultTypeInternalperfetto::protos::IonSecureCmaShrinkPoolStartFtraceEventDefaultTypeInternal404   PROTOBUF_CONSTEXPR IonSecureCmaShrinkPoolStartFtraceEventDefaultTypeInternal()
405       : _instance(::_pbi::ConstantInitialized{}) {}
~IonSecureCmaShrinkPoolStartFtraceEventDefaultTypeInternalperfetto::protos::IonSecureCmaShrinkPoolStartFtraceEventDefaultTypeInternal406   ~IonSecureCmaShrinkPoolStartFtraceEventDefaultTypeInternal() {}
407   union {  // NOLINT(misc-non-private-member-variables-in-classes)
408     IonSecureCmaShrinkPoolStartFtraceEvent _instance;
409   };
410 };
411 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IonSecureCmaShrinkPoolStartFtraceEventDefaultTypeInternal _IonSecureCmaShrinkPoolStartFtraceEvent_default_instance_;
KfreeFtraceEvent(::_pbi::ConstantInitialized)412 PROTOBUF_CONSTEXPR KfreeFtraceEvent::KfreeFtraceEvent(
413     ::_pbi::ConstantInitialized): _impl_{
414     /*decltype(_impl_._has_bits_)*/{}
415   , /*decltype(_impl_._cached_size_)*/{}
416   , /*decltype(_impl_.call_site_)*/::uint64_t{0u}
417   , /*decltype(_impl_.ptr_)*/::uint64_t{0u}} {}
418 struct KfreeFtraceEventDefaultTypeInternal {
KfreeFtraceEventDefaultTypeInternalperfetto::protos::KfreeFtraceEventDefaultTypeInternal419   PROTOBUF_CONSTEXPR KfreeFtraceEventDefaultTypeInternal()
420       : _instance(::_pbi::ConstantInitialized{}) {}
~KfreeFtraceEventDefaultTypeInternalperfetto::protos::KfreeFtraceEventDefaultTypeInternal421   ~KfreeFtraceEventDefaultTypeInternal() {}
422   union {  // NOLINT(misc-non-private-member-variables-in-classes)
423     KfreeFtraceEvent _instance;
424   };
425 };
426 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KfreeFtraceEventDefaultTypeInternal _KfreeFtraceEvent_default_instance_;
KmallocFtraceEvent(::_pbi::ConstantInitialized)427 PROTOBUF_CONSTEXPR KmallocFtraceEvent::KmallocFtraceEvent(
428     ::_pbi::ConstantInitialized): _impl_{
429     /*decltype(_impl_._has_bits_)*/{}
430   , /*decltype(_impl_._cached_size_)*/{}
431   , /*decltype(_impl_.bytes_alloc_)*/::uint64_t{0u}
432   , /*decltype(_impl_.bytes_req_)*/::uint64_t{0u}
433   , /*decltype(_impl_.call_site_)*/::uint64_t{0u}
434   , /*decltype(_impl_.ptr_)*/::uint64_t{0u}
435   , /*decltype(_impl_.gfp_flags_)*/0u} {}
436 struct KmallocFtraceEventDefaultTypeInternal {
KmallocFtraceEventDefaultTypeInternalperfetto::protos::KmallocFtraceEventDefaultTypeInternal437   PROTOBUF_CONSTEXPR KmallocFtraceEventDefaultTypeInternal()
438       : _instance(::_pbi::ConstantInitialized{}) {}
~KmallocFtraceEventDefaultTypeInternalperfetto::protos::KmallocFtraceEventDefaultTypeInternal439   ~KmallocFtraceEventDefaultTypeInternal() {}
440   union {  // NOLINT(misc-non-private-member-variables-in-classes)
441     KmallocFtraceEvent _instance;
442   };
443 };
444 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KmallocFtraceEventDefaultTypeInternal _KmallocFtraceEvent_default_instance_;
KmallocNodeFtraceEvent(::_pbi::ConstantInitialized)445 PROTOBUF_CONSTEXPR KmallocNodeFtraceEvent::KmallocNodeFtraceEvent(
446     ::_pbi::ConstantInitialized): _impl_{
447     /*decltype(_impl_._has_bits_)*/{}
448   , /*decltype(_impl_._cached_size_)*/{}
449   , /*decltype(_impl_.bytes_alloc_)*/::uint64_t{0u}
450   , /*decltype(_impl_.bytes_req_)*/::uint64_t{0u}
451   , /*decltype(_impl_.call_site_)*/::uint64_t{0u}
452   , /*decltype(_impl_.gfp_flags_)*/0u
453   , /*decltype(_impl_.node_)*/0
454   , /*decltype(_impl_.ptr_)*/::uint64_t{0u}} {}
455 struct KmallocNodeFtraceEventDefaultTypeInternal {
KmallocNodeFtraceEventDefaultTypeInternalperfetto::protos::KmallocNodeFtraceEventDefaultTypeInternal456   PROTOBUF_CONSTEXPR KmallocNodeFtraceEventDefaultTypeInternal()
457       : _instance(::_pbi::ConstantInitialized{}) {}
~KmallocNodeFtraceEventDefaultTypeInternalperfetto::protos::KmallocNodeFtraceEventDefaultTypeInternal458   ~KmallocNodeFtraceEventDefaultTypeInternal() {}
459   union {  // NOLINT(misc-non-private-member-variables-in-classes)
460     KmallocNodeFtraceEvent _instance;
461   };
462 };
463 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KmallocNodeFtraceEventDefaultTypeInternal _KmallocNodeFtraceEvent_default_instance_;
KmemCacheAllocFtraceEvent(::_pbi::ConstantInitialized)464 PROTOBUF_CONSTEXPR KmemCacheAllocFtraceEvent::KmemCacheAllocFtraceEvent(
465     ::_pbi::ConstantInitialized): _impl_{
466     /*decltype(_impl_._has_bits_)*/{}
467   , /*decltype(_impl_._cached_size_)*/{}
468   , /*decltype(_impl_.bytes_alloc_)*/::uint64_t{0u}
469   , /*decltype(_impl_.bytes_req_)*/::uint64_t{0u}
470   , /*decltype(_impl_.call_site_)*/::uint64_t{0u}
471   , /*decltype(_impl_.ptr_)*/::uint64_t{0u}
472   , /*decltype(_impl_.gfp_flags_)*/0u} {}
473 struct KmemCacheAllocFtraceEventDefaultTypeInternal {
KmemCacheAllocFtraceEventDefaultTypeInternalperfetto::protos::KmemCacheAllocFtraceEventDefaultTypeInternal474   PROTOBUF_CONSTEXPR KmemCacheAllocFtraceEventDefaultTypeInternal()
475       : _instance(::_pbi::ConstantInitialized{}) {}
~KmemCacheAllocFtraceEventDefaultTypeInternalperfetto::protos::KmemCacheAllocFtraceEventDefaultTypeInternal476   ~KmemCacheAllocFtraceEventDefaultTypeInternal() {}
477   union {  // NOLINT(misc-non-private-member-variables-in-classes)
478     KmemCacheAllocFtraceEvent _instance;
479   };
480 };
481 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KmemCacheAllocFtraceEventDefaultTypeInternal _KmemCacheAllocFtraceEvent_default_instance_;
KmemCacheAllocNodeFtraceEvent(::_pbi::ConstantInitialized)482 PROTOBUF_CONSTEXPR KmemCacheAllocNodeFtraceEvent::KmemCacheAllocNodeFtraceEvent(
483     ::_pbi::ConstantInitialized): _impl_{
484     /*decltype(_impl_._has_bits_)*/{}
485   , /*decltype(_impl_._cached_size_)*/{}
486   , /*decltype(_impl_.bytes_alloc_)*/::uint64_t{0u}
487   , /*decltype(_impl_.bytes_req_)*/::uint64_t{0u}
488   , /*decltype(_impl_.call_site_)*/::uint64_t{0u}
489   , /*decltype(_impl_.gfp_flags_)*/0u
490   , /*decltype(_impl_.node_)*/0
491   , /*decltype(_impl_.ptr_)*/::uint64_t{0u}} {}
492 struct KmemCacheAllocNodeFtraceEventDefaultTypeInternal {
KmemCacheAllocNodeFtraceEventDefaultTypeInternalperfetto::protos::KmemCacheAllocNodeFtraceEventDefaultTypeInternal493   PROTOBUF_CONSTEXPR KmemCacheAllocNodeFtraceEventDefaultTypeInternal()
494       : _instance(::_pbi::ConstantInitialized{}) {}
~KmemCacheAllocNodeFtraceEventDefaultTypeInternalperfetto::protos::KmemCacheAllocNodeFtraceEventDefaultTypeInternal495   ~KmemCacheAllocNodeFtraceEventDefaultTypeInternal() {}
496   union {  // NOLINT(misc-non-private-member-variables-in-classes)
497     KmemCacheAllocNodeFtraceEvent _instance;
498   };
499 };
500 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KmemCacheAllocNodeFtraceEventDefaultTypeInternal _KmemCacheAllocNodeFtraceEvent_default_instance_;
KmemCacheFreeFtraceEvent(::_pbi::ConstantInitialized)501 PROTOBUF_CONSTEXPR KmemCacheFreeFtraceEvent::KmemCacheFreeFtraceEvent(
502     ::_pbi::ConstantInitialized): _impl_{
503     /*decltype(_impl_._has_bits_)*/{}
504   , /*decltype(_impl_._cached_size_)*/{}
505   , /*decltype(_impl_.call_site_)*/::uint64_t{0u}
506   , /*decltype(_impl_.ptr_)*/::uint64_t{0u}} {}
507 struct KmemCacheFreeFtraceEventDefaultTypeInternal {
KmemCacheFreeFtraceEventDefaultTypeInternalperfetto::protos::KmemCacheFreeFtraceEventDefaultTypeInternal508   PROTOBUF_CONSTEXPR KmemCacheFreeFtraceEventDefaultTypeInternal()
509       : _instance(::_pbi::ConstantInitialized{}) {}
~KmemCacheFreeFtraceEventDefaultTypeInternalperfetto::protos::KmemCacheFreeFtraceEventDefaultTypeInternal510   ~KmemCacheFreeFtraceEventDefaultTypeInternal() {}
511   union {  // NOLINT(misc-non-private-member-variables-in-classes)
512     KmemCacheFreeFtraceEvent _instance;
513   };
514 };
515 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KmemCacheFreeFtraceEventDefaultTypeInternal _KmemCacheFreeFtraceEvent_default_instance_;
MigratePagesEndFtraceEvent(::_pbi::ConstantInitialized)516 PROTOBUF_CONSTEXPR MigratePagesEndFtraceEvent::MigratePagesEndFtraceEvent(
517     ::_pbi::ConstantInitialized): _impl_{
518     /*decltype(_impl_._has_bits_)*/{}
519   , /*decltype(_impl_._cached_size_)*/{}
520   , /*decltype(_impl_.mode_)*/0} {}
521 struct MigratePagesEndFtraceEventDefaultTypeInternal {
MigratePagesEndFtraceEventDefaultTypeInternalperfetto::protos::MigratePagesEndFtraceEventDefaultTypeInternal522   PROTOBUF_CONSTEXPR MigratePagesEndFtraceEventDefaultTypeInternal()
523       : _instance(::_pbi::ConstantInitialized{}) {}
~MigratePagesEndFtraceEventDefaultTypeInternalperfetto::protos::MigratePagesEndFtraceEventDefaultTypeInternal524   ~MigratePagesEndFtraceEventDefaultTypeInternal() {}
525   union {  // NOLINT(misc-non-private-member-variables-in-classes)
526     MigratePagesEndFtraceEvent _instance;
527   };
528 };
529 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MigratePagesEndFtraceEventDefaultTypeInternal _MigratePagesEndFtraceEvent_default_instance_;
MigratePagesStartFtraceEvent(::_pbi::ConstantInitialized)530 PROTOBUF_CONSTEXPR MigratePagesStartFtraceEvent::MigratePagesStartFtraceEvent(
531     ::_pbi::ConstantInitialized): _impl_{
532     /*decltype(_impl_._has_bits_)*/{}
533   , /*decltype(_impl_._cached_size_)*/{}
534   , /*decltype(_impl_.mode_)*/0} {}
535 struct MigratePagesStartFtraceEventDefaultTypeInternal {
MigratePagesStartFtraceEventDefaultTypeInternalperfetto::protos::MigratePagesStartFtraceEventDefaultTypeInternal536   PROTOBUF_CONSTEXPR MigratePagesStartFtraceEventDefaultTypeInternal()
537       : _instance(::_pbi::ConstantInitialized{}) {}
~MigratePagesStartFtraceEventDefaultTypeInternalperfetto::protos::MigratePagesStartFtraceEventDefaultTypeInternal538   ~MigratePagesStartFtraceEventDefaultTypeInternal() {}
539   union {  // NOLINT(misc-non-private-member-variables-in-classes)
540     MigratePagesStartFtraceEvent _instance;
541   };
542 };
543 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MigratePagesStartFtraceEventDefaultTypeInternal _MigratePagesStartFtraceEvent_default_instance_;
MigrateRetryFtraceEvent(::_pbi::ConstantInitialized)544 PROTOBUF_CONSTEXPR MigrateRetryFtraceEvent::MigrateRetryFtraceEvent(
545     ::_pbi::ConstantInitialized): _impl_{
546     /*decltype(_impl_._has_bits_)*/{}
547   , /*decltype(_impl_._cached_size_)*/{}
548   , /*decltype(_impl_.tries_)*/0} {}
549 struct MigrateRetryFtraceEventDefaultTypeInternal {
MigrateRetryFtraceEventDefaultTypeInternalperfetto::protos::MigrateRetryFtraceEventDefaultTypeInternal550   PROTOBUF_CONSTEXPR MigrateRetryFtraceEventDefaultTypeInternal()
551       : _instance(::_pbi::ConstantInitialized{}) {}
~MigrateRetryFtraceEventDefaultTypeInternalperfetto::protos::MigrateRetryFtraceEventDefaultTypeInternal552   ~MigrateRetryFtraceEventDefaultTypeInternal() {}
553   union {  // NOLINT(misc-non-private-member-variables-in-classes)
554     MigrateRetryFtraceEvent _instance;
555   };
556 };
557 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MigrateRetryFtraceEventDefaultTypeInternal _MigrateRetryFtraceEvent_default_instance_;
MmPageAllocFtraceEvent(::_pbi::ConstantInitialized)558 PROTOBUF_CONSTEXPR MmPageAllocFtraceEvent::MmPageAllocFtraceEvent(
559     ::_pbi::ConstantInitialized): _impl_{
560     /*decltype(_impl_._has_bits_)*/{}
561   , /*decltype(_impl_._cached_size_)*/{}
562   , /*decltype(_impl_.gfp_flags_)*/0u
563   , /*decltype(_impl_.migratetype_)*/0
564   , /*decltype(_impl_.page_)*/::uint64_t{0u}
565   , /*decltype(_impl_.pfn_)*/::uint64_t{0u}
566   , /*decltype(_impl_.order_)*/0u} {}
567 struct MmPageAllocFtraceEventDefaultTypeInternal {
MmPageAllocFtraceEventDefaultTypeInternalperfetto::protos::MmPageAllocFtraceEventDefaultTypeInternal568   PROTOBUF_CONSTEXPR MmPageAllocFtraceEventDefaultTypeInternal()
569       : _instance(::_pbi::ConstantInitialized{}) {}
~MmPageAllocFtraceEventDefaultTypeInternalperfetto::protos::MmPageAllocFtraceEventDefaultTypeInternal570   ~MmPageAllocFtraceEventDefaultTypeInternal() {}
571   union {  // NOLINT(misc-non-private-member-variables-in-classes)
572     MmPageAllocFtraceEvent _instance;
573   };
574 };
575 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MmPageAllocFtraceEventDefaultTypeInternal _MmPageAllocFtraceEvent_default_instance_;
MmPageAllocExtfragFtraceEvent(::_pbi::ConstantInitialized)576 PROTOBUF_CONSTEXPR MmPageAllocExtfragFtraceEvent::MmPageAllocExtfragFtraceEvent(
577     ::_pbi::ConstantInitialized): _impl_{
578     /*decltype(_impl_._has_bits_)*/{}
579   , /*decltype(_impl_._cached_size_)*/{}
580   , /*decltype(_impl_.alloc_migratetype_)*/0
581   , /*decltype(_impl_.alloc_order_)*/0
582   , /*decltype(_impl_.fallback_migratetype_)*/0
583   , /*decltype(_impl_.fallback_order_)*/0
584   , /*decltype(_impl_.page_)*/::uint64_t{0u}
585   , /*decltype(_impl_.pfn_)*/::uint64_t{0u}
586   , /*decltype(_impl_.change_ownership_)*/0} {}
587 struct MmPageAllocExtfragFtraceEventDefaultTypeInternal {
MmPageAllocExtfragFtraceEventDefaultTypeInternalperfetto::protos::MmPageAllocExtfragFtraceEventDefaultTypeInternal588   PROTOBUF_CONSTEXPR MmPageAllocExtfragFtraceEventDefaultTypeInternal()
589       : _instance(::_pbi::ConstantInitialized{}) {}
~MmPageAllocExtfragFtraceEventDefaultTypeInternalperfetto::protos::MmPageAllocExtfragFtraceEventDefaultTypeInternal590   ~MmPageAllocExtfragFtraceEventDefaultTypeInternal() {}
591   union {  // NOLINT(misc-non-private-member-variables-in-classes)
592     MmPageAllocExtfragFtraceEvent _instance;
593   };
594 };
595 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MmPageAllocExtfragFtraceEventDefaultTypeInternal _MmPageAllocExtfragFtraceEvent_default_instance_;
MmPageAllocZoneLockedFtraceEvent(::_pbi::ConstantInitialized)596 PROTOBUF_CONSTEXPR MmPageAllocZoneLockedFtraceEvent::MmPageAllocZoneLockedFtraceEvent(
597     ::_pbi::ConstantInitialized): _impl_{
598     /*decltype(_impl_._has_bits_)*/{}
599   , /*decltype(_impl_._cached_size_)*/{}
600   , /*decltype(_impl_.migratetype_)*/0
601   , /*decltype(_impl_.order_)*/0u
602   , /*decltype(_impl_.page_)*/::uint64_t{0u}
603   , /*decltype(_impl_.pfn_)*/::uint64_t{0u}} {}
604 struct MmPageAllocZoneLockedFtraceEventDefaultTypeInternal {
MmPageAllocZoneLockedFtraceEventDefaultTypeInternalperfetto::protos::MmPageAllocZoneLockedFtraceEventDefaultTypeInternal605   PROTOBUF_CONSTEXPR MmPageAllocZoneLockedFtraceEventDefaultTypeInternal()
606       : _instance(::_pbi::ConstantInitialized{}) {}
~MmPageAllocZoneLockedFtraceEventDefaultTypeInternalperfetto::protos::MmPageAllocZoneLockedFtraceEventDefaultTypeInternal607   ~MmPageAllocZoneLockedFtraceEventDefaultTypeInternal() {}
608   union {  // NOLINT(misc-non-private-member-variables-in-classes)
609     MmPageAllocZoneLockedFtraceEvent _instance;
610   };
611 };
612 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MmPageAllocZoneLockedFtraceEventDefaultTypeInternal _MmPageAllocZoneLockedFtraceEvent_default_instance_;
MmPageFreeFtraceEvent(::_pbi::ConstantInitialized)613 PROTOBUF_CONSTEXPR MmPageFreeFtraceEvent::MmPageFreeFtraceEvent(
614     ::_pbi::ConstantInitialized): _impl_{
615     /*decltype(_impl_._has_bits_)*/{}
616   , /*decltype(_impl_._cached_size_)*/{}
617   , /*decltype(_impl_.page_)*/::uint64_t{0u}
618   , /*decltype(_impl_.pfn_)*/::uint64_t{0u}
619   , /*decltype(_impl_.order_)*/0u} {}
620 struct MmPageFreeFtraceEventDefaultTypeInternal {
MmPageFreeFtraceEventDefaultTypeInternalperfetto::protos::MmPageFreeFtraceEventDefaultTypeInternal621   PROTOBUF_CONSTEXPR MmPageFreeFtraceEventDefaultTypeInternal()
622       : _instance(::_pbi::ConstantInitialized{}) {}
~MmPageFreeFtraceEventDefaultTypeInternalperfetto::protos::MmPageFreeFtraceEventDefaultTypeInternal623   ~MmPageFreeFtraceEventDefaultTypeInternal() {}
624   union {  // NOLINT(misc-non-private-member-variables-in-classes)
625     MmPageFreeFtraceEvent _instance;
626   };
627 };
628 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MmPageFreeFtraceEventDefaultTypeInternal _MmPageFreeFtraceEvent_default_instance_;
MmPageFreeBatchedFtraceEvent(::_pbi::ConstantInitialized)629 PROTOBUF_CONSTEXPR MmPageFreeBatchedFtraceEvent::MmPageFreeBatchedFtraceEvent(
630     ::_pbi::ConstantInitialized): _impl_{
631     /*decltype(_impl_._has_bits_)*/{}
632   , /*decltype(_impl_._cached_size_)*/{}
633   , /*decltype(_impl_.page_)*/::uint64_t{0u}
634   , /*decltype(_impl_.pfn_)*/::uint64_t{0u}
635   , /*decltype(_impl_.cold_)*/0} {}
636 struct MmPageFreeBatchedFtraceEventDefaultTypeInternal {
MmPageFreeBatchedFtraceEventDefaultTypeInternalperfetto::protos::MmPageFreeBatchedFtraceEventDefaultTypeInternal637   PROTOBUF_CONSTEXPR MmPageFreeBatchedFtraceEventDefaultTypeInternal()
638       : _instance(::_pbi::ConstantInitialized{}) {}
~MmPageFreeBatchedFtraceEventDefaultTypeInternalperfetto::protos::MmPageFreeBatchedFtraceEventDefaultTypeInternal639   ~MmPageFreeBatchedFtraceEventDefaultTypeInternal() {}
640   union {  // NOLINT(misc-non-private-member-variables-in-classes)
641     MmPageFreeBatchedFtraceEvent _instance;
642   };
643 };
644 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MmPageFreeBatchedFtraceEventDefaultTypeInternal _MmPageFreeBatchedFtraceEvent_default_instance_;
MmPagePcpuDrainFtraceEvent(::_pbi::ConstantInitialized)645 PROTOBUF_CONSTEXPR MmPagePcpuDrainFtraceEvent::MmPagePcpuDrainFtraceEvent(
646     ::_pbi::ConstantInitialized): _impl_{
647     /*decltype(_impl_._has_bits_)*/{}
648   , /*decltype(_impl_._cached_size_)*/{}
649   , /*decltype(_impl_.migratetype_)*/0
650   , /*decltype(_impl_.order_)*/0u
651   , /*decltype(_impl_.page_)*/::uint64_t{0u}
652   , /*decltype(_impl_.pfn_)*/::uint64_t{0u}} {}
653 struct MmPagePcpuDrainFtraceEventDefaultTypeInternal {
MmPagePcpuDrainFtraceEventDefaultTypeInternalperfetto::protos::MmPagePcpuDrainFtraceEventDefaultTypeInternal654   PROTOBUF_CONSTEXPR MmPagePcpuDrainFtraceEventDefaultTypeInternal()
655       : _instance(::_pbi::ConstantInitialized{}) {}
~MmPagePcpuDrainFtraceEventDefaultTypeInternalperfetto::protos::MmPagePcpuDrainFtraceEventDefaultTypeInternal656   ~MmPagePcpuDrainFtraceEventDefaultTypeInternal() {}
657   union {  // NOLINT(misc-non-private-member-variables-in-classes)
658     MmPagePcpuDrainFtraceEvent _instance;
659   };
660 };
661 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MmPagePcpuDrainFtraceEventDefaultTypeInternal _MmPagePcpuDrainFtraceEvent_default_instance_;
RssStatFtraceEvent(::_pbi::ConstantInitialized)662 PROTOBUF_CONSTEXPR RssStatFtraceEvent::RssStatFtraceEvent(
663     ::_pbi::ConstantInitialized): _impl_{
664     /*decltype(_impl_._has_bits_)*/{}
665   , /*decltype(_impl_._cached_size_)*/{}
666   , /*decltype(_impl_.size_)*/::int64_t{0}
667   , /*decltype(_impl_.member_)*/0
668   , /*decltype(_impl_.curr_)*/0u
669   , /*decltype(_impl_.mm_id_)*/0u} {}
670 struct RssStatFtraceEventDefaultTypeInternal {
RssStatFtraceEventDefaultTypeInternalperfetto::protos::RssStatFtraceEventDefaultTypeInternal671   PROTOBUF_CONSTEXPR RssStatFtraceEventDefaultTypeInternal()
672       : _instance(::_pbi::ConstantInitialized{}) {}
~RssStatFtraceEventDefaultTypeInternalperfetto::protos::RssStatFtraceEventDefaultTypeInternal673   ~RssStatFtraceEventDefaultTypeInternal() {}
674   union {  // NOLINT(misc-non-private-member-variables-in-classes)
675     RssStatFtraceEvent _instance;
676   };
677 };
678 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RssStatFtraceEventDefaultTypeInternal _RssStatFtraceEvent_default_instance_;
IonHeapShrinkFtraceEvent(::_pbi::ConstantInitialized)679 PROTOBUF_CONSTEXPR IonHeapShrinkFtraceEvent::IonHeapShrinkFtraceEvent(
680     ::_pbi::ConstantInitialized): _impl_{
681     /*decltype(_impl_._has_bits_)*/{}
682   , /*decltype(_impl_._cached_size_)*/{}
683   , /*decltype(_impl_.heap_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
684   , /*decltype(_impl_.len_)*/::uint64_t{0u}
685   , /*decltype(_impl_.total_allocated_)*/::int64_t{0}} {}
686 struct IonHeapShrinkFtraceEventDefaultTypeInternal {
IonHeapShrinkFtraceEventDefaultTypeInternalperfetto::protos::IonHeapShrinkFtraceEventDefaultTypeInternal687   PROTOBUF_CONSTEXPR IonHeapShrinkFtraceEventDefaultTypeInternal()
688       : _instance(::_pbi::ConstantInitialized{}) {}
~IonHeapShrinkFtraceEventDefaultTypeInternalperfetto::protos::IonHeapShrinkFtraceEventDefaultTypeInternal689   ~IonHeapShrinkFtraceEventDefaultTypeInternal() {}
690   union {  // NOLINT(misc-non-private-member-variables-in-classes)
691     IonHeapShrinkFtraceEvent _instance;
692   };
693 };
694 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IonHeapShrinkFtraceEventDefaultTypeInternal _IonHeapShrinkFtraceEvent_default_instance_;
IonHeapGrowFtraceEvent(::_pbi::ConstantInitialized)695 PROTOBUF_CONSTEXPR IonHeapGrowFtraceEvent::IonHeapGrowFtraceEvent(
696     ::_pbi::ConstantInitialized): _impl_{
697     /*decltype(_impl_._has_bits_)*/{}
698   , /*decltype(_impl_._cached_size_)*/{}
699   , /*decltype(_impl_.heap_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
700   , /*decltype(_impl_.len_)*/::uint64_t{0u}
701   , /*decltype(_impl_.total_allocated_)*/::int64_t{0}} {}
702 struct IonHeapGrowFtraceEventDefaultTypeInternal {
IonHeapGrowFtraceEventDefaultTypeInternalperfetto::protos::IonHeapGrowFtraceEventDefaultTypeInternal703   PROTOBUF_CONSTEXPR IonHeapGrowFtraceEventDefaultTypeInternal()
704       : _instance(::_pbi::ConstantInitialized{}) {}
~IonHeapGrowFtraceEventDefaultTypeInternalperfetto::protos::IonHeapGrowFtraceEventDefaultTypeInternal705   ~IonHeapGrowFtraceEventDefaultTypeInternal() {}
706   union {  // NOLINT(misc-non-private-member-variables-in-classes)
707     IonHeapGrowFtraceEvent _instance;
708   };
709 };
710 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IonHeapGrowFtraceEventDefaultTypeInternal _IonHeapGrowFtraceEvent_default_instance_;
IonBufferCreateFtraceEvent(::_pbi::ConstantInitialized)711 PROTOBUF_CONSTEXPR IonBufferCreateFtraceEvent::IonBufferCreateFtraceEvent(
712     ::_pbi::ConstantInitialized): _impl_{
713     /*decltype(_impl_._has_bits_)*/{}
714   , /*decltype(_impl_._cached_size_)*/{}
715   , /*decltype(_impl_.addr_)*/::uint64_t{0u}
716   , /*decltype(_impl_.len_)*/::uint64_t{0u}} {}
717 struct IonBufferCreateFtraceEventDefaultTypeInternal {
IonBufferCreateFtraceEventDefaultTypeInternalperfetto::protos::IonBufferCreateFtraceEventDefaultTypeInternal718   PROTOBUF_CONSTEXPR IonBufferCreateFtraceEventDefaultTypeInternal()
719       : _instance(::_pbi::ConstantInitialized{}) {}
~IonBufferCreateFtraceEventDefaultTypeInternalperfetto::protos::IonBufferCreateFtraceEventDefaultTypeInternal720   ~IonBufferCreateFtraceEventDefaultTypeInternal() {}
721   union {  // NOLINT(misc-non-private-member-variables-in-classes)
722     IonBufferCreateFtraceEvent _instance;
723   };
724 };
725 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IonBufferCreateFtraceEventDefaultTypeInternal _IonBufferCreateFtraceEvent_default_instance_;
IonBufferDestroyFtraceEvent(::_pbi::ConstantInitialized)726 PROTOBUF_CONSTEXPR IonBufferDestroyFtraceEvent::IonBufferDestroyFtraceEvent(
727     ::_pbi::ConstantInitialized): _impl_{
728     /*decltype(_impl_._has_bits_)*/{}
729   , /*decltype(_impl_._cached_size_)*/{}
730   , /*decltype(_impl_.addr_)*/::uint64_t{0u}
731   , /*decltype(_impl_.len_)*/::uint64_t{0u}} {}
732 struct IonBufferDestroyFtraceEventDefaultTypeInternal {
IonBufferDestroyFtraceEventDefaultTypeInternalperfetto::protos::IonBufferDestroyFtraceEventDefaultTypeInternal733   PROTOBUF_CONSTEXPR IonBufferDestroyFtraceEventDefaultTypeInternal()
734       : _instance(::_pbi::ConstantInitialized{}) {}
~IonBufferDestroyFtraceEventDefaultTypeInternalperfetto::protos::IonBufferDestroyFtraceEventDefaultTypeInternal735   ~IonBufferDestroyFtraceEventDefaultTypeInternal() {}
736   union {  // NOLINT(misc-non-private-member-variables-in-classes)
737     IonBufferDestroyFtraceEvent _instance;
738   };
739 };
740 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IonBufferDestroyFtraceEventDefaultTypeInternal _IonBufferDestroyFtraceEvent_default_instance_;
741 }  // namespace protos
742 }  // namespace perfetto
743 namespace perfetto {
744 namespace protos {
745 
746 // ===================================================================
747 
748 class AllocPagesIommuEndFtraceEvent::_Internal {
749  public:
750   using HasBits = decltype(std::declval<AllocPagesIommuEndFtraceEvent>()._impl_._has_bits_);
set_has_gfp_flags(HasBits * has_bits)751   static void set_has_gfp_flags(HasBits* has_bits) {
752     (*has_bits)[0] |= 1u;
753   }
set_has_order(HasBits * has_bits)754   static void set_has_order(HasBits* has_bits) {
755     (*has_bits)[0] |= 2u;
756   }
757 };
758 
AllocPagesIommuEndFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)759 AllocPagesIommuEndFtraceEvent::AllocPagesIommuEndFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
760                          bool is_message_owned)
761   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
762   SharedCtor(arena, is_message_owned);
763   // @@protoc_insertion_point(arena_constructor:perfetto.protos.AllocPagesIommuEndFtraceEvent)
764 }
AllocPagesIommuEndFtraceEvent(const AllocPagesIommuEndFtraceEvent & from)765 AllocPagesIommuEndFtraceEvent::AllocPagesIommuEndFtraceEvent(const AllocPagesIommuEndFtraceEvent& from)
766   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
767   AllocPagesIommuEndFtraceEvent* const _this = this; (void)_this;
768   new (&_impl_) Impl_{
769       decltype(_impl_._has_bits_){from._impl_._has_bits_}
770     , /*decltype(_impl_._cached_size_)*/{}
771     , decltype(_impl_.gfp_flags_){}
772     , decltype(_impl_.order_){}};
773 
774   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
775   ::memcpy(&_impl_.gfp_flags_, &from._impl_.gfp_flags_,
776     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.order_) -
777     reinterpret_cast<char*>(&_impl_.gfp_flags_)) + sizeof(_impl_.order_));
778   // @@protoc_insertion_point(copy_constructor:perfetto.protos.AllocPagesIommuEndFtraceEvent)
779 }
780 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)781 inline void AllocPagesIommuEndFtraceEvent::SharedCtor(
782     ::_pb::Arena* arena, bool is_message_owned) {
783   (void)arena;
784   (void)is_message_owned;
785   new (&_impl_) Impl_{
786       decltype(_impl_._has_bits_){}
787     , /*decltype(_impl_._cached_size_)*/{}
788     , decltype(_impl_.gfp_flags_){0u}
789     , decltype(_impl_.order_){0u}
790   };
791 }
792 
~AllocPagesIommuEndFtraceEvent()793 AllocPagesIommuEndFtraceEvent::~AllocPagesIommuEndFtraceEvent() {
794   // @@protoc_insertion_point(destructor:perfetto.protos.AllocPagesIommuEndFtraceEvent)
795   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
796   (void)arena;
797     return;
798   }
799   SharedDtor();
800 }
801 
SharedDtor()802 inline void AllocPagesIommuEndFtraceEvent::SharedDtor() {
803   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
804 }
805 
SetCachedSize(int size) const806 void AllocPagesIommuEndFtraceEvent::SetCachedSize(int size) const {
807   _impl_._cached_size_.Set(size);
808 }
809 
Clear()810 void AllocPagesIommuEndFtraceEvent::Clear() {
811 // @@protoc_insertion_point(message_clear_start:perfetto.protos.AllocPagesIommuEndFtraceEvent)
812   ::uint32_t cached_has_bits = 0;
813   // Prevent compiler warnings about cached_has_bits being unused
814   (void) cached_has_bits;
815 
816   cached_has_bits = _impl_._has_bits_[0];
817   if (cached_has_bits & 0x00000003u) {
818     ::memset(&_impl_.gfp_flags_, 0, static_cast<size_t>(
819         reinterpret_cast<char*>(&_impl_.order_) -
820         reinterpret_cast<char*>(&_impl_.gfp_flags_)) + sizeof(_impl_.order_));
821   }
822   _impl_._has_bits_.Clear();
823   _internal_metadata_.Clear<std::string>();
824 }
825 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)826 const char* AllocPagesIommuEndFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
827 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
828   _Internal::HasBits has_bits{};
829   while (!ctx->Done(&ptr)) {
830     ::uint32_t tag;
831     ptr = ::_pbi::ReadTag(ptr, &tag);
832     switch (tag >> 3) {
833       // optional uint32 gfp_flags = 1;
834       case 1:
835         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
836           _Internal::set_has_gfp_flags(&has_bits);
837           _impl_.gfp_flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
838           CHK_(ptr);
839         } else {
840           goto handle_unusual;
841         }
842         continue;
843       // optional uint32 order = 2;
844       case 2:
845         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
846           _Internal::set_has_order(&has_bits);
847           _impl_.order_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
848           CHK_(ptr);
849         } else {
850           goto handle_unusual;
851         }
852         continue;
853       default:
854         goto handle_unusual;
855     }  // switch
856   handle_unusual:
857     if ((tag == 0) || ((tag & 7) == 4)) {
858       CHK_(ptr);
859       ctx->SetLastTag(tag);
860       goto message_done;
861     }
862     ptr = UnknownFieldParse(
863         tag,
864         _internal_metadata_.mutable_unknown_fields<std::string>(),
865         ptr, ctx);
866     CHK_(ptr != nullptr);
867   }  // while
868 message_done:
869   _impl_._has_bits_.Or(has_bits);
870   return ptr;
871 failure:
872   ptr = nullptr;
873   goto message_done;
874 #undef CHK_
875 }
876 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const877 ::uint8_t* AllocPagesIommuEndFtraceEvent::_InternalSerialize(
878     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
879   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.AllocPagesIommuEndFtraceEvent)
880   ::uint32_t cached_has_bits = 0;
881   (void) cached_has_bits;
882 
883   cached_has_bits = _impl_._has_bits_[0];
884   // optional uint32 gfp_flags = 1;
885   if (cached_has_bits & 0x00000001u) {
886     target = stream->EnsureSpace(target);
887     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gfp_flags(), target);
888   }
889 
890   // optional uint32 order = 2;
891   if (cached_has_bits & 0x00000002u) {
892     target = stream->EnsureSpace(target);
893     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_order(), target);
894   }
895 
896   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
897     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
898         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
899   }
900   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.AllocPagesIommuEndFtraceEvent)
901   return target;
902 }
903 
ByteSizeLong() const904 size_t AllocPagesIommuEndFtraceEvent::ByteSizeLong() const {
905 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.AllocPagesIommuEndFtraceEvent)
906   size_t total_size = 0;
907 
908   ::uint32_t cached_has_bits = 0;
909   // Prevent compiler warnings about cached_has_bits being unused
910   (void) cached_has_bits;
911 
912   cached_has_bits = _impl_._has_bits_[0];
913   if (cached_has_bits & 0x00000003u) {
914     // optional uint32 gfp_flags = 1;
915     if (cached_has_bits & 0x00000001u) {
916       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_gfp_flags());
917     }
918 
919     // optional uint32 order = 2;
920     if (cached_has_bits & 0x00000002u) {
921       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_order());
922     }
923 
924   }
925   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
926     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
927   }
928   int cached_size = ::_pbi::ToCachedSize(total_size);
929   SetCachedSize(cached_size);
930   return total_size;
931 }
932 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)933 void AllocPagesIommuEndFtraceEvent::CheckTypeAndMergeFrom(
934     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
935   MergeFrom(*::_pbi::DownCast<const AllocPagesIommuEndFtraceEvent*>(
936       &from));
937 }
938 
MergeFrom(const AllocPagesIommuEndFtraceEvent & from)939 void AllocPagesIommuEndFtraceEvent::MergeFrom(const AllocPagesIommuEndFtraceEvent& from) {
940   AllocPagesIommuEndFtraceEvent* const _this = this;
941   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.AllocPagesIommuEndFtraceEvent)
942   GOOGLE_DCHECK_NE(&from, _this);
943   ::uint32_t cached_has_bits = 0;
944   (void) cached_has_bits;
945 
946   cached_has_bits = from._impl_._has_bits_[0];
947   if (cached_has_bits & 0x00000003u) {
948     if (cached_has_bits & 0x00000001u) {
949       _this->_impl_.gfp_flags_ = from._impl_.gfp_flags_;
950     }
951     if (cached_has_bits & 0x00000002u) {
952       _this->_impl_.order_ = from._impl_.order_;
953     }
954     _this->_impl_._has_bits_[0] |= cached_has_bits;
955   }
956   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
957 }
958 
CopyFrom(const AllocPagesIommuEndFtraceEvent & from)959 void AllocPagesIommuEndFtraceEvent::CopyFrom(const AllocPagesIommuEndFtraceEvent& from) {
960 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.AllocPagesIommuEndFtraceEvent)
961   if (&from == this) return;
962   Clear();
963   MergeFrom(from);
964 }
965 
IsInitialized() const966 bool AllocPagesIommuEndFtraceEvent::IsInitialized() const {
967   return true;
968 }
969 
InternalSwap(AllocPagesIommuEndFtraceEvent * other)970 void AllocPagesIommuEndFtraceEvent::InternalSwap(AllocPagesIommuEndFtraceEvent* other) {
971   using std::swap;
972   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
973   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
974   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
975       PROTOBUF_FIELD_OFFSET(AllocPagesIommuEndFtraceEvent, _impl_.order_)
976       + sizeof(AllocPagesIommuEndFtraceEvent::_impl_.order_)  // NOLINT
977       - PROTOBUF_FIELD_OFFSET(AllocPagesIommuEndFtraceEvent, _impl_.gfp_flags_)>(
978           reinterpret_cast<char*>(&_impl_.gfp_flags_),
979           reinterpret_cast<char*>(&other->_impl_.gfp_flags_));
980 }
981 
GetTypeName() const982 std::string AllocPagesIommuEndFtraceEvent::GetTypeName() const {
983   return "perfetto.protos.AllocPagesIommuEndFtraceEvent";
984 }
985 
986 
987 // ===================================================================
988 
989 class AllocPagesIommuFailFtraceEvent::_Internal {
990  public:
991   using HasBits = decltype(std::declval<AllocPagesIommuFailFtraceEvent>()._impl_._has_bits_);
set_has_gfp_flags(HasBits * has_bits)992   static void set_has_gfp_flags(HasBits* has_bits) {
993     (*has_bits)[0] |= 1u;
994   }
set_has_order(HasBits * has_bits)995   static void set_has_order(HasBits* has_bits) {
996     (*has_bits)[0] |= 2u;
997   }
998 };
999 
AllocPagesIommuFailFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1000 AllocPagesIommuFailFtraceEvent::AllocPagesIommuFailFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1001                          bool is_message_owned)
1002   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
1003   SharedCtor(arena, is_message_owned);
1004   // @@protoc_insertion_point(arena_constructor:perfetto.protos.AllocPagesIommuFailFtraceEvent)
1005 }
AllocPagesIommuFailFtraceEvent(const AllocPagesIommuFailFtraceEvent & from)1006 AllocPagesIommuFailFtraceEvent::AllocPagesIommuFailFtraceEvent(const AllocPagesIommuFailFtraceEvent& from)
1007   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
1008   AllocPagesIommuFailFtraceEvent* const _this = this; (void)_this;
1009   new (&_impl_) Impl_{
1010       decltype(_impl_._has_bits_){from._impl_._has_bits_}
1011     , /*decltype(_impl_._cached_size_)*/{}
1012     , decltype(_impl_.gfp_flags_){}
1013     , decltype(_impl_.order_){}};
1014 
1015   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1016   ::memcpy(&_impl_.gfp_flags_, &from._impl_.gfp_flags_,
1017     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.order_) -
1018     reinterpret_cast<char*>(&_impl_.gfp_flags_)) + sizeof(_impl_.order_));
1019   // @@protoc_insertion_point(copy_constructor:perfetto.protos.AllocPagesIommuFailFtraceEvent)
1020 }
1021 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1022 inline void AllocPagesIommuFailFtraceEvent::SharedCtor(
1023     ::_pb::Arena* arena, bool is_message_owned) {
1024   (void)arena;
1025   (void)is_message_owned;
1026   new (&_impl_) Impl_{
1027       decltype(_impl_._has_bits_){}
1028     , /*decltype(_impl_._cached_size_)*/{}
1029     , decltype(_impl_.gfp_flags_){0u}
1030     , decltype(_impl_.order_){0u}
1031   };
1032 }
1033 
~AllocPagesIommuFailFtraceEvent()1034 AllocPagesIommuFailFtraceEvent::~AllocPagesIommuFailFtraceEvent() {
1035   // @@protoc_insertion_point(destructor:perfetto.protos.AllocPagesIommuFailFtraceEvent)
1036   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
1037   (void)arena;
1038     return;
1039   }
1040   SharedDtor();
1041 }
1042 
SharedDtor()1043 inline void AllocPagesIommuFailFtraceEvent::SharedDtor() {
1044   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1045 }
1046 
SetCachedSize(int size) const1047 void AllocPagesIommuFailFtraceEvent::SetCachedSize(int size) const {
1048   _impl_._cached_size_.Set(size);
1049 }
1050 
Clear()1051 void AllocPagesIommuFailFtraceEvent::Clear() {
1052 // @@protoc_insertion_point(message_clear_start:perfetto.protos.AllocPagesIommuFailFtraceEvent)
1053   ::uint32_t cached_has_bits = 0;
1054   // Prevent compiler warnings about cached_has_bits being unused
1055   (void) cached_has_bits;
1056 
1057   cached_has_bits = _impl_._has_bits_[0];
1058   if (cached_has_bits & 0x00000003u) {
1059     ::memset(&_impl_.gfp_flags_, 0, static_cast<size_t>(
1060         reinterpret_cast<char*>(&_impl_.order_) -
1061         reinterpret_cast<char*>(&_impl_.gfp_flags_)) + sizeof(_impl_.order_));
1062   }
1063   _impl_._has_bits_.Clear();
1064   _internal_metadata_.Clear<std::string>();
1065 }
1066 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1067 const char* AllocPagesIommuFailFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1068 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1069   _Internal::HasBits has_bits{};
1070   while (!ctx->Done(&ptr)) {
1071     ::uint32_t tag;
1072     ptr = ::_pbi::ReadTag(ptr, &tag);
1073     switch (tag >> 3) {
1074       // optional uint32 gfp_flags = 1;
1075       case 1:
1076         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
1077           _Internal::set_has_gfp_flags(&has_bits);
1078           _impl_.gfp_flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1079           CHK_(ptr);
1080         } else {
1081           goto handle_unusual;
1082         }
1083         continue;
1084       // optional uint32 order = 2;
1085       case 2:
1086         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
1087           _Internal::set_has_order(&has_bits);
1088           _impl_.order_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1089           CHK_(ptr);
1090         } else {
1091           goto handle_unusual;
1092         }
1093         continue;
1094       default:
1095         goto handle_unusual;
1096     }  // switch
1097   handle_unusual:
1098     if ((tag == 0) || ((tag & 7) == 4)) {
1099       CHK_(ptr);
1100       ctx->SetLastTag(tag);
1101       goto message_done;
1102     }
1103     ptr = UnknownFieldParse(
1104         tag,
1105         _internal_metadata_.mutable_unknown_fields<std::string>(),
1106         ptr, ctx);
1107     CHK_(ptr != nullptr);
1108   }  // while
1109 message_done:
1110   _impl_._has_bits_.Or(has_bits);
1111   return ptr;
1112 failure:
1113   ptr = nullptr;
1114   goto message_done;
1115 #undef CHK_
1116 }
1117 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1118 ::uint8_t* AllocPagesIommuFailFtraceEvent::_InternalSerialize(
1119     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1120   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.AllocPagesIommuFailFtraceEvent)
1121   ::uint32_t cached_has_bits = 0;
1122   (void) cached_has_bits;
1123 
1124   cached_has_bits = _impl_._has_bits_[0];
1125   // optional uint32 gfp_flags = 1;
1126   if (cached_has_bits & 0x00000001u) {
1127     target = stream->EnsureSpace(target);
1128     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gfp_flags(), target);
1129   }
1130 
1131   // optional uint32 order = 2;
1132   if (cached_has_bits & 0x00000002u) {
1133     target = stream->EnsureSpace(target);
1134     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_order(), target);
1135   }
1136 
1137   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1138     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
1139         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
1140   }
1141   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.AllocPagesIommuFailFtraceEvent)
1142   return target;
1143 }
1144 
ByteSizeLong() const1145 size_t AllocPagesIommuFailFtraceEvent::ByteSizeLong() const {
1146 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.AllocPagesIommuFailFtraceEvent)
1147   size_t total_size = 0;
1148 
1149   ::uint32_t cached_has_bits = 0;
1150   // Prevent compiler warnings about cached_has_bits being unused
1151   (void) cached_has_bits;
1152 
1153   cached_has_bits = _impl_._has_bits_[0];
1154   if (cached_has_bits & 0x00000003u) {
1155     // optional uint32 gfp_flags = 1;
1156     if (cached_has_bits & 0x00000001u) {
1157       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_gfp_flags());
1158     }
1159 
1160     // optional uint32 order = 2;
1161     if (cached_has_bits & 0x00000002u) {
1162       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_order());
1163     }
1164 
1165   }
1166   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1167     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
1168   }
1169   int cached_size = ::_pbi::ToCachedSize(total_size);
1170   SetCachedSize(cached_size);
1171   return total_size;
1172 }
1173 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)1174 void AllocPagesIommuFailFtraceEvent::CheckTypeAndMergeFrom(
1175     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
1176   MergeFrom(*::_pbi::DownCast<const AllocPagesIommuFailFtraceEvent*>(
1177       &from));
1178 }
1179 
MergeFrom(const AllocPagesIommuFailFtraceEvent & from)1180 void AllocPagesIommuFailFtraceEvent::MergeFrom(const AllocPagesIommuFailFtraceEvent& from) {
1181   AllocPagesIommuFailFtraceEvent* const _this = this;
1182   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.AllocPagesIommuFailFtraceEvent)
1183   GOOGLE_DCHECK_NE(&from, _this);
1184   ::uint32_t cached_has_bits = 0;
1185   (void) cached_has_bits;
1186 
1187   cached_has_bits = from._impl_._has_bits_[0];
1188   if (cached_has_bits & 0x00000003u) {
1189     if (cached_has_bits & 0x00000001u) {
1190       _this->_impl_.gfp_flags_ = from._impl_.gfp_flags_;
1191     }
1192     if (cached_has_bits & 0x00000002u) {
1193       _this->_impl_.order_ = from._impl_.order_;
1194     }
1195     _this->_impl_._has_bits_[0] |= cached_has_bits;
1196   }
1197   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1198 }
1199 
CopyFrom(const AllocPagesIommuFailFtraceEvent & from)1200 void AllocPagesIommuFailFtraceEvent::CopyFrom(const AllocPagesIommuFailFtraceEvent& from) {
1201 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.AllocPagesIommuFailFtraceEvent)
1202   if (&from == this) return;
1203   Clear();
1204   MergeFrom(from);
1205 }
1206 
IsInitialized() const1207 bool AllocPagesIommuFailFtraceEvent::IsInitialized() const {
1208   return true;
1209 }
1210 
InternalSwap(AllocPagesIommuFailFtraceEvent * other)1211 void AllocPagesIommuFailFtraceEvent::InternalSwap(AllocPagesIommuFailFtraceEvent* other) {
1212   using std::swap;
1213   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1214   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1215   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1216       PROTOBUF_FIELD_OFFSET(AllocPagesIommuFailFtraceEvent, _impl_.order_)
1217       + sizeof(AllocPagesIommuFailFtraceEvent::_impl_.order_)  // NOLINT
1218       - PROTOBUF_FIELD_OFFSET(AllocPagesIommuFailFtraceEvent, _impl_.gfp_flags_)>(
1219           reinterpret_cast<char*>(&_impl_.gfp_flags_),
1220           reinterpret_cast<char*>(&other->_impl_.gfp_flags_));
1221 }
1222 
GetTypeName() const1223 std::string AllocPagesIommuFailFtraceEvent::GetTypeName() const {
1224   return "perfetto.protos.AllocPagesIommuFailFtraceEvent";
1225 }
1226 
1227 
1228 // ===================================================================
1229 
1230 class AllocPagesIommuStartFtraceEvent::_Internal {
1231  public:
1232   using HasBits = decltype(std::declval<AllocPagesIommuStartFtraceEvent>()._impl_._has_bits_);
set_has_gfp_flags(HasBits * has_bits)1233   static void set_has_gfp_flags(HasBits* has_bits) {
1234     (*has_bits)[0] |= 1u;
1235   }
set_has_order(HasBits * has_bits)1236   static void set_has_order(HasBits* has_bits) {
1237     (*has_bits)[0] |= 2u;
1238   }
1239 };
1240 
AllocPagesIommuStartFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1241 AllocPagesIommuStartFtraceEvent::AllocPagesIommuStartFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1242                          bool is_message_owned)
1243   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
1244   SharedCtor(arena, is_message_owned);
1245   // @@protoc_insertion_point(arena_constructor:perfetto.protos.AllocPagesIommuStartFtraceEvent)
1246 }
AllocPagesIommuStartFtraceEvent(const AllocPagesIommuStartFtraceEvent & from)1247 AllocPagesIommuStartFtraceEvent::AllocPagesIommuStartFtraceEvent(const AllocPagesIommuStartFtraceEvent& from)
1248   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
1249   AllocPagesIommuStartFtraceEvent* const _this = this; (void)_this;
1250   new (&_impl_) Impl_{
1251       decltype(_impl_._has_bits_){from._impl_._has_bits_}
1252     , /*decltype(_impl_._cached_size_)*/{}
1253     , decltype(_impl_.gfp_flags_){}
1254     , decltype(_impl_.order_){}};
1255 
1256   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1257   ::memcpy(&_impl_.gfp_flags_, &from._impl_.gfp_flags_,
1258     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.order_) -
1259     reinterpret_cast<char*>(&_impl_.gfp_flags_)) + sizeof(_impl_.order_));
1260   // @@protoc_insertion_point(copy_constructor:perfetto.protos.AllocPagesIommuStartFtraceEvent)
1261 }
1262 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1263 inline void AllocPagesIommuStartFtraceEvent::SharedCtor(
1264     ::_pb::Arena* arena, bool is_message_owned) {
1265   (void)arena;
1266   (void)is_message_owned;
1267   new (&_impl_) Impl_{
1268       decltype(_impl_._has_bits_){}
1269     , /*decltype(_impl_._cached_size_)*/{}
1270     , decltype(_impl_.gfp_flags_){0u}
1271     , decltype(_impl_.order_){0u}
1272   };
1273 }
1274 
~AllocPagesIommuStartFtraceEvent()1275 AllocPagesIommuStartFtraceEvent::~AllocPagesIommuStartFtraceEvent() {
1276   // @@protoc_insertion_point(destructor:perfetto.protos.AllocPagesIommuStartFtraceEvent)
1277   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
1278   (void)arena;
1279     return;
1280   }
1281   SharedDtor();
1282 }
1283 
SharedDtor()1284 inline void AllocPagesIommuStartFtraceEvent::SharedDtor() {
1285   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1286 }
1287 
SetCachedSize(int size) const1288 void AllocPagesIommuStartFtraceEvent::SetCachedSize(int size) const {
1289   _impl_._cached_size_.Set(size);
1290 }
1291 
Clear()1292 void AllocPagesIommuStartFtraceEvent::Clear() {
1293 // @@protoc_insertion_point(message_clear_start:perfetto.protos.AllocPagesIommuStartFtraceEvent)
1294   ::uint32_t cached_has_bits = 0;
1295   // Prevent compiler warnings about cached_has_bits being unused
1296   (void) cached_has_bits;
1297 
1298   cached_has_bits = _impl_._has_bits_[0];
1299   if (cached_has_bits & 0x00000003u) {
1300     ::memset(&_impl_.gfp_flags_, 0, static_cast<size_t>(
1301         reinterpret_cast<char*>(&_impl_.order_) -
1302         reinterpret_cast<char*>(&_impl_.gfp_flags_)) + sizeof(_impl_.order_));
1303   }
1304   _impl_._has_bits_.Clear();
1305   _internal_metadata_.Clear<std::string>();
1306 }
1307 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1308 const char* AllocPagesIommuStartFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1309 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1310   _Internal::HasBits has_bits{};
1311   while (!ctx->Done(&ptr)) {
1312     ::uint32_t tag;
1313     ptr = ::_pbi::ReadTag(ptr, &tag);
1314     switch (tag >> 3) {
1315       // optional uint32 gfp_flags = 1;
1316       case 1:
1317         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
1318           _Internal::set_has_gfp_flags(&has_bits);
1319           _impl_.gfp_flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1320           CHK_(ptr);
1321         } else {
1322           goto handle_unusual;
1323         }
1324         continue;
1325       // optional uint32 order = 2;
1326       case 2:
1327         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
1328           _Internal::set_has_order(&has_bits);
1329           _impl_.order_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1330           CHK_(ptr);
1331         } else {
1332           goto handle_unusual;
1333         }
1334         continue;
1335       default:
1336         goto handle_unusual;
1337     }  // switch
1338   handle_unusual:
1339     if ((tag == 0) || ((tag & 7) == 4)) {
1340       CHK_(ptr);
1341       ctx->SetLastTag(tag);
1342       goto message_done;
1343     }
1344     ptr = UnknownFieldParse(
1345         tag,
1346         _internal_metadata_.mutable_unknown_fields<std::string>(),
1347         ptr, ctx);
1348     CHK_(ptr != nullptr);
1349   }  // while
1350 message_done:
1351   _impl_._has_bits_.Or(has_bits);
1352   return ptr;
1353 failure:
1354   ptr = nullptr;
1355   goto message_done;
1356 #undef CHK_
1357 }
1358 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1359 ::uint8_t* AllocPagesIommuStartFtraceEvent::_InternalSerialize(
1360     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1361   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.AllocPagesIommuStartFtraceEvent)
1362   ::uint32_t cached_has_bits = 0;
1363   (void) cached_has_bits;
1364 
1365   cached_has_bits = _impl_._has_bits_[0];
1366   // optional uint32 gfp_flags = 1;
1367   if (cached_has_bits & 0x00000001u) {
1368     target = stream->EnsureSpace(target);
1369     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gfp_flags(), target);
1370   }
1371 
1372   // optional uint32 order = 2;
1373   if (cached_has_bits & 0x00000002u) {
1374     target = stream->EnsureSpace(target);
1375     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_order(), target);
1376   }
1377 
1378   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1379     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
1380         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
1381   }
1382   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.AllocPagesIommuStartFtraceEvent)
1383   return target;
1384 }
1385 
ByteSizeLong() const1386 size_t AllocPagesIommuStartFtraceEvent::ByteSizeLong() const {
1387 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.AllocPagesIommuStartFtraceEvent)
1388   size_t total_size = 0;
1389 
1390   ::uint32_t cached_has_bits = 0;
1391   // Prevent compiler warnings about cached_has_bits being unused
1392   (void) cached_has_bits;
1393 
1394   cached_has_bits = _impl_._has_bits_[0];
1395   if (cached_has_bits & 0x00000003u) {
1396     // optional uint32 gfp_flags = 1;
1397     if (cached_has_bits & 0x00000001u) {
1398       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_gfp_flags());
1399     }
1400 
1401     // optional uint32 order = 2;
1402     if (cached_has_bits & 0x00000002u) {
1403       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_order());
1404     }
1405 
1406   }
1407   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1408     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
1409   }
1410   int cached_size = ::_pbi::ToCachedSize(total_size);
1411   SetCachedSize(cached_size);
1412   return total_size;
1413 }
1414 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)1415 void AllocPagesIommuStartFtraceEvent::CheckTypeAndMergeFrom(
1416     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
1417   MergeFrom(*::_pbi::DownCast<const AllocPagesIommuStartFtraceEvent*>(
1418       &from));
1419 }
1420 
MergeFrom(const AllocPagesIommuStartFtraceEvent & from)1421 void AllocPagesIommuStartFtraceEvent::MergeFrom(const AllocPagesIommuStartFtraceEvent& from) {
1422   AllocPagesIommuStartFtraceEvent* const _this = this;
1423   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.AllocPagesIommuStartFtraceEvent)
1424   GOOGLE_DCHECK_NE(&from, _this);
1425   ::uint32_t cached_has_bits = 0;
1426   (void) cached_has_bits;
1427 
1428   cached_has_bits = from._impl_._has_bits_[0];
1429   if (cached_has_bits & 0x00000003u) {
1430     if (cached_has_bits & 0x00000001u) {
1431       _this->_impl_.gfp_flags_ = from._impl_.gfp_flags_;
1432     }
1433     if (cached_has_bits & 0x00000002u) {
1434       _this->_impl_.order_ = from._impl_.order_;
1435     }
1436     _this->_impl_._has_bits_[0] |= cached_has_bits;
1437   }
1438   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1439 }
1440 
CopyFrom(const AllocPagesIommuStartFtraceEvent & from)1441 void AllocPagesIommuStartFtraceEvent::CopyFrom(const AllocPagesIommuStartFtraceEvent& from) {
1442 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.AllocPagesIommuStartFtraceEvent)
1443   if (&from == this) return;
1444   Clear();
1445   MergeFrom(from);
1446 }
1447 
IsInitialized() const1448 bool AllocPagesIommuStartFtraceEvent::IsInitialized() const {
1449   return true;
1450 }
1451 
InternalSwap(AllocPagesIommuStartFtraceEvent * other)1452 void AllocPagesIommuStartFtraceEvent::InternalSwap(AllocPagesIommuStartFtraceEvent* other) {
1453   using std::swap;
1454   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1455   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1456   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1457       PROTOBUF_FIELD_OFFSET(AllocPagesIommuStartFtraceEvent, _impl_.order_)
1458       + sizeof(AllocPagesIommuStartFtraceEvent::_impl_.order_)  // NOLINT
1459       - PROTOBUF_FIELD_OFFSET(AllocPagesIommuStartFtraceEvent, _impl_.gfp_flags_)>(
1460           reinterpret_cast<char*>(&_impl_.gfp_flags_),
1461           reinterpret_cast<char*>(&other->_impl_.gfp_flags_));
1462 }
1463 
GetTypeName() const1464 std::string AllocPagesIommuStartFtraceEvent::GetTypeName() const {
1465   return "perfetto.protos.AllocPagesIommuStartFtraceEvent";
1466 }
1467 
1468 
1469 // ===================================================================
1470 
1471 class AllocPagesSysEndFtraceEvent::_Internal {
1472  public:
1473   using HasBits = decltype(std::declval<AllocPagesSysEndFtraceEvent>()._impl_._has_bits_);
set_has_gfp_flags(HasBits * has_bits)1474   static void set_has_gfp_flags(HasBits* has_bits) {
1475     (*has_bits)[0] |= 1u;
1476   }
set_has_order(HasBits * has_bits)1477   static void set_has_order(HasBits* has_bits) {
1478     (*has_bits)[0] |= 2u;
1479   }
1480 };
1481 
AllocPagesSysEndFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1482 AllocPagesSysEndFtraceEvent::AllocPagesSysEndFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1483                          bool is_message_owned)
1484   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
1485   SharedCtor(arena, is_message_owned);
1486   // @@protoc_insertion_point(arena_constructor:perfetto.protos.AllocPagesSysEndFtraceEvent)
1487 }
AllocPagesSysEndFtraceEvent(const AllocPagesSysEndFtraceEvent & from)1488 AllocPagesSysEndFtraceEvent::AllocPagesSysEndFtraceEvent(const AllocPagesSysEndFtraceEvent& from)
1489   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
1490   AllocPagesSysEndFtraceEvent* const _this = this; (void)_this;
1491   new (&_impl_) Impl_{
1492       decltype(_impl_._has_bits_){from._impl_._has_bits_}
1493     , /*decltype(_impl_._cached_size_)*/{}
1494     , decltype(_impl_.gfp_flags_){}
1495     , decltype(_impl_.order_){}};
1496 
1497   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1498   ::memcpy(&_impl_.gfp_flags_, &from._impl_.gfp_flags_,
1499     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.order_) -
1500     reinterpret_cast<char*>(&_impl_.gfp_flags_)) + sizeof(_impl_.order_));
1501   // @@protoc_insertion_point(copy_constructor:perfetto.protos.AllocPagesSysEndFtraceEvent)
1502 }
1503 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1504 inline void AllocPagesSysEndFtraceEvent::SharedCtor(
1505     ::_pb::Arena* arena, bool is_message_owned) {
1506   (void)arena;
1507   (void)is_message_owned;
1508   new (&_impl_) Impl_{
1509       decltype(_impl_._has_bits_){}
1510     , /*decltype(_impl_._cached_size_)*/{}
1511     , decltype(_impl_.gfp_flags_){0u}
1512     , decltype(_impl_.order_){0u}
1513   };
1514 }
1515 
~AllocPagesSysEndFtraceEvent()1516 AllocPagesSysEndFtraceEvent::~AllocPagesSysEndFtraceEvent() {
1517   // @@protoc_insertion_point(destructor:perfetto.protos.AllocPagesSysEndFtraceEvent)
1518   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
1519   (void)arena;
1520     return;
1521   }
1522   SharedDtor();
1523 }
1524 
SharedDtor()1525 inline void AllocPagesSysEndFtraceEvent::SharedDtor() {
1526   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1527 }
1528 
SetCachedSize(int size) const1529 void AllocPagesSysEndFtraceEvent::SetCachedSize(int size) const {
1530   _impl_._cached_size_.Set(size);
1531 }
1532 
Clear()1533 void AllocPagesSysEndFtraceEvent::Clear() {
1534 // @@protoc_insertion_point(message_clear_start:perfetto.protos.AllocPagesSysEndFtraceEvent)
1535   ::uint32_t cached_has_bits = 0;
1536   // Prevent compiler warnings about cached_has_bits being unused
1537   (void) cached_has_bits;
1538 
1539   cached_has_bits = _impl_._has_bits_[0];
1540   if (cached_has_bits & 0x00000003u) {
1541     ::memset(&_impl_.gfp_flags_, 0, static_cast<size_t>(
1542         reinterpret_cast<char*>(&_impl_.order_) -
1543         reinterpret_cast<char*>(&_impl_.gfp_flags_)) + sizeof(_impl_.order_));
1544   }
1545   _impl_._has_bits_.Clear();
1546   _internal_metadata_.Clear<std::string>();
1547 }
1548 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1549 const char* AllocPagesSysEndFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1550 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1551   _Internal::HasBits has_bits{};
1552   while (!ctx->Done(&ptr)) {
1553     ::uint32_t tag;
1554     ptr = ::_pbi::ReadTag(ptr, &tag);
1555     switch (tag >> 3) {
1556       // optional uint32 gfp_flags = 1;
1557       case 1:
1558         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
1559           _Internal::set_has_gfp_flags(&has_bits);
1560           _impl_.gfp_flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1561           CHK_(ptr);
1562         } else {
1563           goto handle_unusual;
1564         }
1565         continue;
1566       // optional uint32 order = 2;
1567       case 2:
1568         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
1569           _Internal::set_has_order(&has_bits);
1570           _impl_.order_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1571           CHK_(ptr);
1572         } else {
1573           goto handle_unusual;
1574         }
1575         continue;
1576       default:
1577         goto handle_unusual;
1578     }  // switch
1579   handle_unusual:
1580     if ((tag == 0) || ((tag & 7) == 4)) {
1581       CHK_(ptr);
1582       ctx->SetLastTag(tag);
1583       goto message_done;
1584     }
1585     ptr = UnknownFieldParse(
1586         tag,
1587         _internal_metadata_.mutable_unknown_fields<std::string>(),
1588         ptr, ctx);
1589     CHK_(ptr != nullptr);
1590   }  // while
1591 message_done:
1592   _impl_._has_bits_.Or(has_bits);
1593   return ptr;
1594 failure:
1595   ptr = nullptr;
1596   goto message_done;
1597 #undef CHK_
1598 }
1599 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1600 ::uint8_t* AllocPagesSysEndFtraceEvent::_InternalSerialize(
1601     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1602   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.AllocPagesSysEndFtraceEvent)
1603   ::uint32_t cached_has_bits = 0;
1604   (void) cached_has_bits;
1605 
1606   cached_has_bits = _impl_._has_bits_[0];
1607   // optional uint32 gfp_flags = 1;
1608   if (cached_has_bits & 0x00000001u) {
1609     target = stream->EnsureSpace(target);
1610     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gfp_flags(), target);
1611   }
1612 
1613   // optional uint32 order = 2;
1614   if (cached_has_bits & 0x00000002u) {
1615     target = stream->EnsureSpace(target);
1616     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_order(), target);
1617   }
1618 
1619   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1620     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
1621         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
1622   }
1623   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.AllocPagesSysEndFtraceEvent)
1624   return target;
1625 }
1626 
ByteSizeLong() const1627 size_t AllocPagesSysEndFtraceEvent::ByteSizeLong() const {
1628 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.AllocPagesSysEndFtraceEvent)
1629   size_t total_size = 0;
1630 
1631   ::uint32_t cached_has_bits = 0;
1632   // Prevent compiler warnings about cached_has_bits being unused
1633   (void) cached_has_bits;
1634 
1635   cached_has_bits = _impl_._has_bits_[0];
1636   if (cached_has_bits & 0x00000003u) {
1637     // optional uint32 gfp_flags = 1;
1638     if (cached_has_bits & 0x00000001u) {
1639       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_gfp_flags());
1640     }
1641 
1642     // optional uint32 order = 2;
1643     if (cached_has_bits & 0x00000002u) {
1644       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_order());
1645     }
1646 
1647   }
1648   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1649     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
1650   }
1651   int cached_size = ::_pbi::ToCachedSize(total_size);
1652   SetCachedSize(cached_size);
1653   return total_size;
1654 }
1655 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)1656 void AllocPagesSysEndFtraceEvent::CheckTypeAndMergeFrom(
1657     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
1658   MergeFrom(*::_pbi::DownCast<const AllocPagesSysEndFtraceEvent*>(
1659       &from));
1660 }
1661 
MergeFrom(const AllocPagesSysEndFtraceEvent & from)1662 void AllocPagesSysEndFtraceEvent::MergeFrom(const AllocPagesSysEndFtraceEvent& from) {
1663   AllocPagesSysEndFtraceEvent* const _this = this;
1664   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.AllocPagesSysEndFtraceEvent)
1665   GOOGLE_DCHECK_NE(&from, _this);
1666   ::uint32_t cached_has_bits = 0;
1667   (void) cached_has_bits;
1668 
1669   cached_has_bits = from._impl_._has_bits_[0];
1670   if (cached_has_bits & 0x00000003u) {
1671     if (cached_has_bits & 0x00000001u) {
1672       _this->_impl_.gfp_flags_ = from._impl_.gfp_flags_;
1673     }
1674     if (cached_has_bits & 0x00000002u) {
1675       _this->_impl_.order_ = from._impl_.order_;
1676     }
1677     _this->_impl_._has_bits_[0] |= cached_has_bits;
1678   }
1679   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1680 }
1681 
CopyFrom(const AllocPagesSysEndFtraceEvent & from)1682 void AllocPagesSysEndFtraceEvent::CopyFrom(const AllocPagesSysEndFtraceEvent& from) {
1683 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.AllocPagesSysEndFtraceEvent)
1684   if (&from == this) return;
1685   Clear();
1686   MergeFrom(from);
1687 }
1688 
IsInitialized() const1689 bool AllocPagesSysEndFtraceEvent::IsInitialized() const {
1690   return true;
1691 }
1692 
InternalSwap(AllocPagesSysEndFtraceEvent * other)1693 void AllocPagesSysEndFtraceEvent::InternalSwap(AllocPagesSysEndFtraceEvent* other) {
1694   using std::swap;
1695   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1696   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1697   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1698       PROTOBUF_FIELD_OFFSET(AllocPagesSysEndFtraceEvent, _impl_.order_)
1699       + sizeof(AllocPagesSysEndFtraceEvent::_impl_.order_)  // NOLINT
1700       - PROTOBUF_FIELD_OFFSET(AllocPagesSysEndFtraceEvent, _impl_.gfp_flags_)>(
1701           reinterpret_cast<char*>(&_impl_.gfp_flags_),
1702           reinterpret_cast<char*>(&other->_impl_.gfp_flags_));
1703 }
1704 
GetTypeName() const1705 std::string AllocPagesSysEndFtraceEvent::GetTypeName() const {
1706   return "perfetto.protos.AllocPagesSysEndFtraceEvent";
1707 }
1708 
1709 
1710 // ===================================================================
1711 
1712 class AllocPagesSysFailFtraceEvent::_Internal {
1713  public:
1714   using HasBits = decltype(std::declval<AllocPagesSysFailFtraceEvent>()._impl_._has_bits_);
set_has_gfp_flags(HasBits * has_bits)1715   static void set_has_gfp_flags(HasBits* has_bits) {
1716     (*has_bits)[0] |= 1u;
1717   }
set_has_order(HasBits * has_bits)1718   static void set_has_order(HasBits* has_bits) {
1719     (*has_bits)[0] |= 2u;
1720   }
1721 };
1722 
AllocPagesSysFailFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1723 AllocPagesSysFailFtraceEvent::AllocPagesSysFailFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1724                          bool is_message_owned)
1725   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
1726   SharedCtor(arena, is_message_owned);
1727   // @@protoc_insertion_point(arena_constructor:perfetto.protos.AllocPagesSysFailFtraceEvent)
1728 }
AllocPagesSysFailFtraceEvent(const AllocPagesSysFailFtraceEvent & from)1729 AllocPagesSysFailFtraceEvent::AllocPagesSysFailFtraceEvent(const AllocPagesSysFailFtraceEvent& from)
1730   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
1731   AllocPagesSysFailFtraceEvent* const _this = this; (void)_this;
1732   new (&_impl_) Impl_{
1733       decltype(_impl_._has_bits_){from._impl_._has_bits_}
1734     , /*decltype(_impl_._cached_size_)*/{}
1735     , decltype(_impl_.gfp_flags_){}
1736     , decltype(_impl_.order_){}};
1737 
1738   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1739   ::memcpy(&_impl_.gfp_flags_, &from._impl_.gfp_flags_,
1740     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.order_) -
1741     reinterpret_cast<char*>(&_impl_.gfp_flags_)) + sizeof(_impl_.order_));
1742   // @@protoc_insertion_point(copy_constructor:perfetto.protos.AllocPagesSysFailFtraceEvent)
1743 }
1744 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1745 inline void AllocPagesSysFailFtraceEvent::SharedCtor(
1746     ::_pb::Arena* arena, bool is_message_owned) {
1747   (void)arena;
1748   (void)is_message_owned;
1749   new (&_impl_) Impl_{
1750       decltype(_impl_._has_bits_){}
1751     , /*decltype(_impl_._cached_size_)*/{}
1752     , decltype(_impl_.gfp_flags_){0u}
1753     , decltype(_impl_.order_){0u}
1754   };
1755 }
1756 
~AllocPagesSysFailFtraceEvent()1757 AllocPagesSysFailFtraceEvent::~AllocPagesSysFailFtraceEvent() {
1758   // @@protoc_insertion_point(destructor:perfetto.protos.AllocPagesSysFailFtraceEvent)
1759   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
1760   (void)arena;
1761     return;
1762   }
1763   SharedDtor();
1764 }
1765 
SharedDtor()1766 inline void AllocPagesSysFailFtraceEvent::SharedDtor() {
1767   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1768 }
1769 
SetCachedSize(int size) const1770 void AllocPagesSysFailFtraceEvent::SetCachedSize(int size) const {
1771   _impl_._cached_size_.Set(size);
1772 }
1773 
Clear()1774 void AllocPagesSysFailFtraceEvent::Clear() {
1775 // @@protoc_insertion_point(message_clear_start:perfetto.protos.AllocPagesSysFailFtraceEvent)
1776   ::uint32_t cached_has_bits = 0;
1777   // Prevent compiler warnings about cached_has_bits being unused
1778   (void) cached_has_bits;
1779 
1780   cached_has_bits = _impl_._has_bits_[0];
1781   if (cached_has_bits & 0x00000003u) {
1782     ::memset(&_impl_.gfp_flags_, 0, static_cast<size_t>(
1783         reinterpret_cast<char*>(&_impl_.order_) -
1784         reinterpret_cast<char*>(&_impl_.gfp_flags_)) + sizeof(_impl_.order_));
1785   }
1786   _impl_._has_bits_.Clear();
1787   _internal_metadata_.Clear<std::string>();
1788 }
1789 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1790 const char* AllocPagesSysFailFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1791 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1792   _Internal::HasBits has_bits{};
1793   while (!ctx->Done(&ptr)) {
1794     ::uint32_t tag;
1795     ptr = ::_pbi::ReadTag(ptr, &tag);
1796     switch (tag >> 3) {
1797       // optional uint32 gfp_flags = 1;
1798       case 1:
1799         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
1800           _Internal::set_has_gfp_flags(&has_bits);
1801           _impl_.gfp_flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1802           CHK_(ptr);
1803         } else {
1804           goto handle_unusual;
1805         }
1806         continue;
1807       // optional uint32 order = 2;
1808       case 2:
1809         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
1810           _Internal::set_has_order(&has_bits);
1811           _impl_.order_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1812           CHK_(ptr);
1813         } else {
1814           goto handle_unusual;
1815         }
1816         continue;
1817       default:
1818         goto handle_unusual;
1819     }  // switch
1820   handle_unusual:
1821     if ((tag == 0) || ((tag & 7) == 4)) {
1822       CHK_(ptr);
1823       ctx->SetLastTag(tag);
1824       goto message_done;
1825     }
1826     ptr = UnknownFieldParse(
1827         tag,
1828         _internal_metadata_.mutable_unknown_fields<std::string>(),
1829         ptr, ctx);
1830     CHK_(ptr != nullptr);
1831   }  // while
1832 message_done:
1833   _impl_._has_bits_.Or(has_bits);
1834   return ptr;
1835 failure:
1836   ptr = nullptr;
1837   goto message_done;
1838 #undef CHK_
1839 }
1840 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1841 ::uint8_t* AllocPagesSysFailFtraceEvent::_InternalSerialize(
1842     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1843   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.AllocPagesSysFailFtraceEvent)
1844   ::uint32_t cached_has_bits = 0;
1845   (void) cached_has_bits;
1846 
1847   cached_has_bits = _impl_._has_bits_[0];
1848   // optional uint32 gfp_flags = 1;
1849   if (cached_has_bits & 0x00000001u) {
1850     target = stream->EnsureSpace(target);
1851     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gfp_flags(), target);
1852   }
1853 
1854   // optional uint32 order = 2;
1855   if (cached_has_bits & 0x00000002u) {
1856     target = stream->EnsureSpace(target);
1857     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_order(), target);
1858   }
1859 
1860   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1861     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
1862         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
1863   }
1864   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.AllocPagesSysFailFtraceEvent)
1865   return target;
1866 }
1867 
ByteSizeLong() const1868 size_t AllocPagesSysFailFtraceEvent::ByteSizeLong() const {
1869 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.AllocPagesSysFailFtraceEvent)
1870   size_t total_size = 0;
1871 
1872   ::uint32_t cached_has_bits = 0;
1873   // Prevent compiler warnings about cached_has_bits being unused
1874   (void) cached_has_bits;
1875 
1876   cached_has_bits = _impl_._has_bits_[0];
1877   if (cached_has_bits & 0x00000003u) {
1878     // optional uint32 gfp_flags = 1;
1879     if (cached_has_bits & 0x00000001u) {
1880       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_gfp_flags());
1881     }
1882 
1883     // optional uint32 order = 2;
1884     if (cached_has_bits & 0x00000002u) {
1885       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_order());
1886     }
1887 
1888   }
1889   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1890     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
1891   }
1892   int cached_size = ::_pbi::ToCachedSize(total_size);
1893   SetCachedSize(cached_size);
1894   return total_size;
1895 }
1896 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)1897 void AllocPagesSysFailFtraceEvent::CheckTypeAndMergeFrom(
1898     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
1899   MergeFrom(*::_pbi::DownCast<const AllocPagesSysFailFtraceEvent*>(
1900       &from));
1901 }
1902 
MergeFrom(const AllocPagesSysFailFtraceEvent & from)1903 void AllocPagesSysFailFtraceEvent::MergeFrom(const AllocPagesSysFailFtraceEvent& from) {
1904   AllocPagesSysFailFtraceEvent* const _this = this;
1905   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.AllocPagesSysFailFtraceEvent)
1906   GOOGLE_DCHECK_NE(&from, _this);
1907   ::uint32_t cached_has_bits = 0;
1908   (void) cached_has_bits;
1909 
1910   cached_has_bits = from._impl_._has_bits_[0];
1911   if (cached_has_bits & 0x00000003u) {
1912     if (cached_has_bits & 0x00000001u) {
1913       _this->_impl_.gfp_flags_ = from._impl_.gfp_flags_;
1914     }
1915     if (cached_has_bits & 0x00000002u) {
1916       _this->_impl_.order_ = from._impl_.order_;
1917     }
1918     _this->_impl_._has_bits_[0] |= cached_has_bits;
1919   }
1920   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1921 }
1922 
CopyFrom(const AllocPagesSysFailFtraceEvent & from)1923 void AllocPagesSysFailFtraceEvent::CopyFrom(const AllocPagesSysFailFtraceEvent& from) {
1924 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.AllocPagesSysFailFtraceEvent)
1925   if (&from == this) return;
1926   Clear();
1927   MergeFrom(from);
1928 }
1929 
IsInitialized() const1930 bool AllocPagesSysFailFtraceEvent::IsInitialized() const {
1931   return true;
1932 }
1933 
InternalSwap(AllocPagesSysFailFtraceEvent * other)1934 void AllocPagesSysFailFtraceEvent::InternalSwap(AllocPagesSysFailFtraceEvent* other) {
1935   using std::swap;
1936   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1937   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1938   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1939       PROTOBUF_FIELD_OFFSET(AllocPagesSysFailFtraceEvent, _impl_.order_)
1940       + sizeof(AllocPagesSysFailFtraceEvent::_impl_.order_)  // NOLINT
1941       - PROTOBUF_FIELD_OFFSET(AllocPagesSysFailFtraceEvent, _impl_.gfp_flags_)>(
1942           reinterpret_cast<char*>(&_impl_.gfp_flags_),
1943           reinterpret_cast<char*>(&other->_impl_.gfp_flags_));
1944 }
1945 
GetTypeName() const1946 std::string AllocPagesSysFailFtraceEvent::GetTypeName() const {
1947   return "perfetto.protos.AllocPagesSysFailFtraceEvent";
1948 }
1949 
1950 
1951 // ===================================================================
1952 
1953 class AllocPagesSysStartFtraceEvent::_Internal {
1954  public:
1955   using HasBits = decltype(std::declval<AllocPagesSysStartFtraceEvent>()._impl_._has_bits_);
set_has_gfp_flags(HasBits * has_bits)1956   static void set_has_gfp_flags(HasBits* has_bits) {
1957     (*has_bits)[0] |= 1u;
1958   }
set_has_order(HasBits * has_bits)1959   static void set_has_order(HasBits* has_bits) {
1960     (*has_bits)[0] |= 2u;
1961   }
1962 };
1963 
AllocPagesSysStartFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1964 AllocPagesSysStartFtraceEvent::AllocPagesSysStartFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1965                          bool is_message_owned)
1966   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
1967   SharedCtor(arena, is_message_owned);
1968   // @@protoc_insertion_point(arena_constructor:perfetto.protos.AllocPagesSysStartFtraceEvent)
1969 }
AllocPagesSysStartFtraceEvent(const AllocPagesSysStartFtraceEvent & from)1970 AllocPagesSysStartFtraceEvent::AllocPagesSysStartFtraceEvent(const AllocPagesSysStartFtraceEvent& from)
1971   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
1972   AllocPagesSysStartFtraceEvent* const _this = this; (void)_this;
1973   new (&_impl_) Impl_{
1974       decltype(_impl_._has_bits_){from._impl_._has_bits_}
1975     , /*decltype(_impl_._cached_size_)*/{}
1976     , decltype(_impl_.gfp_flags_){}
1977     , decltype(_impl_.order_){}};
1978 
1979   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1980   ::memcpy(&_impl_.gfp_flags_, &from._impl_.gfp_flags_,
1981     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.order_) -
1982     reinterpret_cast<char*>(&_impl_.gfp_flags_)) + sizeof(_impl_.order_));
1983   // @@protoc_insertion_point(copy_constructor:perfetto.protos.AllocPagesSysStartFtraceEvent)
1984 }
1985 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1986 inline void AllocPagesSysStartFtraceEvent::SharedCtor(
1987     ::_pb::Arena* arena, bool is_message_owned) {
1988   (void)arena;
1989   (void)is_message_owned;
1990   new (&_impl_) Impl_{
1991       decltype(_impl_._has_bits_){}
1992     , /*decltype(_impl_._cached_size_)*/{}
1993     , decltype(_impl_.gfp_flags_){0u}
1994     , decltype(_impl_.order_){0u}
1995   };
1996 }
1997 
~AllocPagesSysStartFtraceEvent()1998 AllocPagesSysStartFtraceEvent::~AllocPagesSysStartFtraceEvent() {
1999   // @@protoc_insertion_point(destructor:perfetto.protos.AllocPagesSysStartFtraceEvent)
2000   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
2001   (void)arena;
2002     return;
2003   }
2004   SharedDtor();
2005 }
2006 
SharedDtor()2007 inline void AllocPagesSysStartFtraceEvent::SharedDtor() {
2008   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2009 }
2010 
SetCachedSize(int size) const2011 void AllocPagesSysStartFtraceEvent::SetCachedSize(int size) const {
2012   _impl_._cached_size_.Set(size);
2013 }
2014 
Clear()2015 void AllocPagesSysStartFtraceEvent::Clear() {
2016 // @@protoc_insertion_point(message_clear_start:perfetto.protos.AllocPagesSysStartFtraceEvent)
2017   ::uint32_t cached_has_bits = 0;
2018   // Prevent compiler warnings about cached_has_bits being unused
2019   (void) cached_has_bits;
2020 
2021   cached_has_bits = _impl_._has_bits_[0];
2022   if (cached_has_bits & 0x00000003u) {
2023     ::memset(&_impl_.gfp_flags_, 0, static_cast<size_t>(
2024         reinterpret_cast<char*>(&_impl_.order_) -
2025         reinterpret_cast<char*>(&_impl_.gfp_flags_)) + sizeof(_impl_.order_));
2026   }
2027   _impl_._has_bits_.Clear();
2028   _internal_metadata_.Clear<std::string>();
2029 }
2030 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2031 const char* AllocPagesSysStartFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2032 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2033   _Internal::HasBits has_bits{};
2034   while (!ctx->Done(&ptr)) {
2035     ::uint32_t tag;
2036     ptr = ::_pbi::ReadTag(ptr, &tag);
2037     switch (tag >> 3) {
2038       // optional uint32 gfp_flags = 1;
2039       case 1:
2040         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
2041           _Internal::set_has_gfp_flags(&has_bits);
2042           _impl_.gfp_flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2043           CHK_(ptr);
2044         } else {
2045           goto handle_unusual;
2046         }
2047         continue;
2048       // optional uint32 order = 2;
2049       case 2:
2050         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
2051           _Internal::set_has_order(&has_bits);
2052           _impl_.order_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2053           CHK_(ptr);
2054         } else {
2055           goto handle_unusual;
2056         }
2057         continue;
2058       default:
2059         goto handle_unusual;
2060     }  // switch
2061   handle_unusual:
2062     if ((tag == 0) || ((tag & 7) == 4)) {
2063       CHK_(ptr);
2064       ctx->SetLastTag(tag);
2065       goto message_done;
2066     }
2067     ptr = UnknownFieldParse(
2068         tag,
2069         _internal_metadata_.mutable_unknown_fields<std::string>(),
2070         ptr, ctx);
2071     CHK_(ptr != nullptr);
2072   }  // while
2073 message_done:
2074   _impl_._has_bits_.Or(has_bits);
2075   return ptr;
2076 failure:
2077   ptr = nullptr;
2078   goto message_done;
2079 #undef CHK_
2080 }
2081 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2082 ::uint8_t* AllocPagesSysStartFtraceEvent::_InternalSerialize(
2083     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2084   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.AllocPagesSysStartFtraceEvent)
2085   ::uint32_t cached_has_bits = 0;
2086   (void) cached_has_bits;
2087 
2088   cached_has_bits = _impl_._has_bits_[0];
2089   // optional uint32 gfp_flags = 1;
2090   if (cached_has_bits & 0x00000001u) {
2091     target = stream->EnsureSpace(target);
2092     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gfp_flags(), target);
2093   }
2094 
2095   // optional uint32 order = 2;
2096   if (cached_has_bits & 0x00000002u) {
2097     target = stream->EnsureSpace(target);
2098     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_order(), target);
2099   }
2100 
2101   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2102     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
2103         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
2104   }
2105   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.AllocPagesSysStartFtraceEvent)
2106   return target;
2107 }
2108 
ByteSizeLong() const2109 size_t AllocPagesSysStartFtraceEvent::ByteSizeLong() const {
2110 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.AllocPagesSysStartFtraceEvent)
2111   size_t total_size = 0;
2112 
2113   ::uint32_t cached_has_bits = 0;
2114   // Prevent compiler warnings about cached_has_bits being unused
2115   (void) cached_has_bits;
2116 
2117   cached_has_bits = _impl_._has_bits_[0];
2118   if (cached_has_bits & 0x00000003u) {
2119     // optional uint32 gfp_flags = 1;
2120     if (cached_has_bits & 0x00000001u) {
2121       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_gfp_flags());
2122     }
2123 
2124     // optional uint32 order = 2;
2125     if (cached_has_bits & 0x00000002u) {
2126       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_order());
2127     }
2128 
2129   }
2130   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2131     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
2132   }
2133   int cached_size = ::_pbi::ToCachedSize(total_size);
2134   SetCachedSize(cached_size);
2135   return total_size;
2136 }
2137 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)2138 void AllocPagesSysStartFtraceEvent::CheckTypeAndMergeFrom(
2139     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
2140   MergeFrom(*::_pbi::DownCast<const AllocPagesSysStartFtraceEvent*>(
2141       &from));
2142 }
2143 
MergeFrom(const AllocPagesSysStartFtraceEvent & from)2144 void AllocPagesSysStartFtraceEvent::MergeFrom(const AllocPagesSysStartFtraceEvent& from) {
2145   AllocPagesSysStartFtraceEvent* const _this = this;
2146   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.AllocPagesSysStartFtraceEvent)
2147   GOOGLE_DCHECK_NE(&from, _this);
2148   ::uint32_t cached_has_bits = 0;
2149   (void) cached_has_bits;
2150 
2151   cached_has_bits = from._impl_._has_bits_[0];
2152   if (cached_has_bits & 0x00000003u) {
2153     if (cached_has_bits & 0x00000001u) {
2154       _this->_impl_.gfp_flags_ = from._impl_.gfp_flags_;
2155     }
2156     if (cached_has_bits & 0x00000002u) {
2157       _this->_impl_.order_ = from._impl_.order_;
2158     }
2159     _this->_impl_._has_bits_[0] |= cached_has_bits;
2160   }
2161   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2162 }
2163 
CopyFrom(const AllocPagesSysStartFtraceEvent & from)2164 void AllocPagesSysStartFtraceEvent::CopyFrom(const AllocPagesSysStartFtraceEvent& from) {
2165 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.AllocPagesSysStartFtraceEvent)
2166   if (&from == this) return;
2167   Clear();
2168   MergeFrom(from);
2169 }
2170 
IsInitialized() const2171 bool AllocPagesSysStartFtraceEvent::IsInitialized() const {
2172   return true;
2173 }
2174 
InternalSwap(AllocPagesSysStartFtraceEvent * other)2175 void AllocPagesSysStartFtraceEvent::InternalSwap(AllocPagesSysStartFtraceEvent* other) {
2176   using std::swap;
2177   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2178   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2179   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2180       PROTOBUF_FIELD_OFFSET(AllocPagesSysStartFtraceEvent, _impl_.order_)
2181       + sizeof(AllocPagesSysStartFtraceEvent::_impl_.order_)  // NOLINT
2182       - PROTOBUF_FIELD_OFFSET(AllocPagesSysStartFtraceEvent, _impl_.gfp_flags_)>(
2183           reinterpret_cast<char*>(&_impl_.gfp_flags_),
2184           reinterpret_cast<char*>(&other->_impl_.gfp_flags_));
2185 }
2186 
GetTypeName() const2187 std::string AllocPagesSysStartFtraceEvent::GetTypeName() const {
2188   return "perfetto.protos.AllocPagesSysStartFtraceEvent";
2189 }
2190 
2191 
2192 // ===================================================================
2193 
2194 class DmaAllocContiguousRetryFtraceEvent::_Internal {
2195  public:
2196   using HasBits = decltype(std::declval<DmaAllocContiguousRetryFtraceEvent>()._impl_._has_bits_);
set_has_tries(HasBits * has_bits)2197   static void set_has_tries(HasBits* has_bits) {
2198     (*has_bits)[0] |= 1u;
2199   }
2200 };
2201 
DmaAllocContiguousRetryFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2202 DmaAllocContiguousRetryFtraceEvent::DmaAllocContiguousRetryFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2203                          bool is_message_owned)
2204   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
2205   SharedCtor(arena, is_message_owned);
2206   // @@protoc_insertion_point(arena_constructor:perfetto.protos.DmaAllocContiguousRetryFtraceEvent)
2207 }
DmaAllocContiguousRetryFtraceEvent(const DmaAllocContiguousRetryFtraceEvent & from)2208 DmaAllocContiguousRetryFtraceEvent::DmaAllocContiguousRetryFtraceEvent(const DmaAllocContiguousRetryFtraceEvent& from)
2209   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
2210   DmaAllocContiguousRetryFtraceEvent* const _this = this; (void)_this;
2211   new (&_impl_) Impl_{
2212       decltype(_impl_._has_bits_){from._impl_._has_bits_}
2213     , /*decltype(_impl_._cached_size_)*/{}
2214     , decltype(_impl_.tries_){}};
2215 
2216   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2217   _this->_impl_.tries_ = from._impl_.tries_;
2218   // @@protoc_insertion_point(copy_constructor:perfetto.protos.DmaAllocContiguousRetryFtraceEvent)
2219 }
2220 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2221 inline void DmaAllocContiguousRetryFtraceEvent::SharedCtor(
2222     ::_pb::Arena* arena, bool is_message_owned) {
2223   (void)arena;
2224   (void)is_message_owned;
2225   new (&_impl_) Impl_{
2226       decltype(_impl_._has_bits_){}
2227     , /*decltype(_impl_._cached_size_)*/{}
2228     , decltype(_impl_.tries_){0}
2229   };
2230 }
2231 
~DmaAllocContiguousRetryFtraceEvent()2232 DmaAllocContiguousRetryFtraceEvent::~DmaAllocContiguousRetryFtraceEvent() {
2233   // @@protoc_insertion_point(destructor:perfetto.protos.DmaAllocContiguousRetryFtraceEvent)
2234   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
2235   (void)arena;
2236     return;
2237   }
2238   SharedDtor();
2239 }
2240 
SharedDtor()2241 inline void DmaAllocContiguousRetryFtraceEvent::SharedDtor() {
2242   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2243 }
2244 
SetCachedSize(int size) const2245 void DmaAllocContiguousRetryFtraceEvent::SetCachedSize(int size) const {
2246   _impl_._cached_size_.Set(size);
2247 }
2248 
Clear()2249 void DmaAllocContiguousRetryFtraceEvent::Clear() {
2250 // @@protoc_insertion_point(message_clear_start:perfetto.protos.DmaAllocContiguousRetryFtraceEvent)
2251   ::uint32_t cached_has_bits = 0;
2252   // Prevent compiler warnings about cached_has_bits being unused
2253   (void) cached_has_bits;
2254 
2255   _impl_.tries_ = 0;
2256   _impl_._has_bits_.Clear();
2257   _internal_metadata_.Clear<std::string>();
2258 }
2259 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2260 const char* DmaAllocContiguousRetryFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2261 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2262   _Internal::HasBits has_bits{};
2263   while (!ctx->Done(&ptr)) {
2264     ::uint32_t tag;
2265     ptr = ::_pbi::ReadTag(ptr, &tag);
2266     switch (tag >> 3) {
2267       // optional int32 tries = 1;
2268       case 1:
2269         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
2270           _Internal::set_has_tries(&has_bits);
2271           _impl_.tries_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2272           CHK_(ptr);
2273         } else {
2274           goto handle_unusual;
2275         }
2276         continue;
2277       default:
2278         goto handle_unusual;
2279     }  // switch
2280   handle_unusual:
2281     if ((tag == 0) || ((tag & 7) == 4)) {
2282       CHK_(ptr);
2283       ctx->SetLastTag(tag);
2284       goto message_done;
2285     }
2286     ptr = UnknownFieldParse(
2287         tag,
2288         _internal_metadata_.mutable_unknown_fields<std::string>(),
2289         ptr, ctx);
2290     CHK_(ptr != nullptr);
2291   }  // while
2292 message_done:
2293   _impl_._has_bits_.Or(has_bits);
2294   return ptr;
2295 failure:
2296   ptr = nullptr;
2297   goto message_done;
2298 #undef CHK_
2299 }
2300 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2301 ::uint8_t* DmaAllocContiguousRetryFtraceEvent::_InternalSerialize(
2302     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2303   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.DmaAllocContiguousRetryFtraceEvent)
2304   ::uint32_t cached_has_bits = 0;
2305   (void) cached_has_bits;
2306 
2307   cached_has_bits = _impl_._has_bits_[0];
2308   // optional int32 tries = 1;
2309   if (cached_has_bits & 0x00000001u) {
2310     target = stream->EnsureSpace(target);
2311     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_tries(), target);
2312   }
2313 
2314   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2315     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
2316         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
2317   }
2318   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.DmaAllocContiguousRetryFtraceEvent)
2319   return target;
2320 }
2321 
ByteSizeLong() const2322 size_t DmaAllocContiguousRetryFtraceEvent::ByteSizeLong() const {
2323 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.DmaAllocContiguousRetryFtraceEvent)
2324   size_t total_size = 0;
2325 
2326   ::uint32_t cached_has_bits = 0;
2327   // Prevent compiler warnings about cached_has_bits being unused
2328   (void) cached_has_bits;
2329 
2330   // optional int32 tries = 1;
2331   cached_has_bits = _impl_._has_bits_[0];
2332   if (cached_has_bits & 0x00000001u) {
2333     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_tries());
2334   }
2335 
2336   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2337     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
2338   }
2339   int cached_size = ::_pbi::ToCachedSize(total_size);
2340   SetCachedSize(cached_size);
2341   return total_size;
2342 }
2343 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)2344 void DmaAllocContiguousRetryFtraceEvent::CheckTypeAndMergeFrom(
2345     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
2346   MergeFrom(*::_pbi::DownCast<const DmaAllocContiguousRetryFtraceEvent*>(
2347       &from));
2348 }
2349 
MergeFrom(const DmaAllocContiguousRetryFtraceEvent & from)2350 void DmaAllocContiguousRetryFtraceEvent::MergeFrom(const DmaAllocContiguousRetryFtraceEvent& from) {
2351   DmaAllocContiguousRetryFtraceEvent* const _this = this;
2352   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.DmaAllocContiguousRetryFtraceEvent)
2353   GOOGLE_DCHECK_NE(&from, _this);
2354   ::uint32_t cached_has_bits = 0;
2355   (void) cached_has_bits;
2356 
2357   if (from._internal_has_tries()) {
2358     _this->_internal_set_tries(from._internal_tries());
2359   }
2360   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2361 }
2362 
CopyFrom(const DmaAllocContiguousRetryFtraceEvent & from)2363 void DmaAllocContiguousRetryFtraceEvent::CopyFrom(const DmaAllocContiguousRetryFtraceEvent& from) {
2364 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.DmaAllocContiguousRetryFtraceEvent)
2365   if (&from == this) return;
2366   Clear();
2367   MergeFrom(from);
2368 }
2369 
IsInitialized() const2370 bool DmaAllocContiguousRetryFtraceEvent::IsInitialized() const {
2371   return true;
2372 }
2373 
InternalSwap(DmaAllocContiguousRetryFtraceEvent * other)2374 void DmaAllocContiguousRetryFtraceEvent::InternalSwap(DmaAllocContiguousRetryFtraceEvent* other) {
2375   using std::swap;
2376   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2377   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2378   swap(_impl_.tries_, other->_impl_.tries_);
2379 }
2380 
GetTypeName() const2381 std::string DmaAllocContiguousRetryFtraceEvent::GetTypeName() const {
2382   return "perfetto.protos.DmaAllocContiguousRetryFtraceEvent";
2383 }
2384 
2385 
2386 // ===================================================================
2387 
2388 class IommuMapRangeFtraceEvent::_Internal {
2389  public:
2390   using HasBits = decltype(std::declval<IommuMapRangeFtraceEvent>()._impl_._has_bits_);
set_has_chunk_size(HasBits * has_bits)2391   static void set_has_chunk_size(HasBits* has_bits) {
2392     (*has_bits)[0] |= 1u;
2393   }
set_has_len(HasBits * has_bits)2394   static void set_has_len(HasBits* has_bits) {
2395     (*has_bits)[0] |= 2u;
2396   }
set_has_pa(HasBits * has_bits)2397   static void set_has_pa(HasBits* has_bits) {
2398     (*has_bits)[0] |= 4u;
2399   }
set_has_va(HasBits * has_bits)2400   static void set_has_va(HasBits* has_bits) {
2401     (*has_bits)[0] |= 8u;
2402   }
2403 };
2404 
IommuMapRangeFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2405 IommuMapRangeFtraceEvent::IommuMapRangeFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2406                          bool is_message_owned)
2407   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
2408   SharedCtor(arena, is_message_owned);
2409   // @@protoc_insertion_point(arena_constructor:perfetto.protos.IommuMapRangeFtraceEvent)
2410 }
IommuMapRangeFtraceEvent(const IommuMapRangeFtraceEvent & from)2411 IommuMapRangeFtraceEvent::IommuMapRangeFtraceEvent(const IommuMapRangeFtraceEvent& from)
2412   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
2413   IommuMapRangeFtraceEvent* const _this = this; (void)_this;
2414   new (&_impl_) Impl_{
2415       decltype(_impl_._has_bits_){from._impl_._has_bits_}
2416     , /*decltype(_impl_._cached_size_)*/{}
2417     , decltype(_impl_.chunk_size_){}
2418     , decltype(_impl_.len_){}
2419     , decltype(_impl_.pa_){}
2420     , decltype(_impl_.va_){}};
2421 
2422   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2423   ::memcpy(&_impl_.chunk_size_, &from._impl_.chunk_size_,
2424     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.va_) -
2425     reinterpret_cast<char*>(&_impl_.chunk_size_)) + sizeof(_impl_.va_));
2426   // @@protoc_insertion_point(copy_constructor:perfetto.protos.IommuMapRangeFtraceEvent)
2427 }
2428 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2429 inline void IommuMapRangeFtraceEvent::SharedCtor(
2430     ::_pb::Arena* arena, bool is_message_owned) {
2431   (void)arena;
2432   (void)is_message_owned;
2433   new (&_impl_) Impl_{
2434       decltype(_impl_._has_bits_){}
2435     , /*decltype(_impl_._cached_size_)*/{}
2436     , decltype(_impl_.chunk_size_){::uint64_t{0u}}
2437     , decltype(_impl_.len_){::uint64_t{0u}}
2438     , decltype(_impl_.pa_){::uint64_t{0u}}
2439     , decltype(_impl_.va_){::uint64_t{0u}}
2440   };
2441 }
2442 
~IommuMapRangeFtraceEvent()2443 IommuMapRangeFtraceEvent::~IommuMapRangeFtraceEvent() {
2444   // @@protoc_insertion_point(destructor:perfetto.protos.IommuMapRangeFtraceEvent)
2445   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
2446   (void)arena;
2447     return;
2448   }
2449   SharedDtor();
2450 }
2451 
SharedDtor()2452 inline void IommuMapRangeFtraceEvent::SharedDtor() {
2453   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2454 }
2455 
SetCachedSize(int size) const2456 void IommuMapRangeFtraceEvent::SetCachedSize(int size) const {
2457   _impl_._cached_size_.Set(size);
2458 }
2459 
Clear()2460 void IommuMapRangeFtraceEvent::Clear() {
2461 // @@protoc_insertion_point(message_clear_start:perfetto.protos.IommuMapRangeFtraceEvent)
2462   ::uint32_t cached_has_bits = 0;
2463   // Prevent compiler warnings about cached_has_bits being unused
2464   (void) cached_has_bits;
2465 
2466   cached_has_bits = _impl_._has_bits_[0];
2467   if (cached_has_bits & 0x0000000fu) {
2468     ::memset(&_impl_.chunk_size_, 0, static_cast<size_t>(
2469         reinterpret_cast<char*>(&_impl_.va_) -
2470         reinterpret_cast<char*>(&_impl_.chunk_size_)) + sizeof(_impl_.va_));
2471   }
2472   _impl_._has_bits_.Clear();
2473   _internal_metadata_.Clear<std::string>();
2474 }
2475 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2476 const char* IommuMapRangeFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2477 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2478   _Internal::HasBits has_bits{};
2479   while (!ctx->Done(&ptr)) {
2480     ::uint32_t tag;
2481     ptr = ::_pbi::ReadTag(ptr, &tag);
2482     switch (tag >> 3) {
2483       // optional uint64 chunk_size = 1;
2484       case 1:
2485         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
2486           _Internal::set_has_chunk_size(&has_bits);
2487           _impl_.chunk_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2488           CHK_(ptr);
2489         } else {
2490           goto handle_unusual;
2491         }
2492         continue;
2493       // optional uint64 len = 2;
2494       case 2:
2495         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
2496           _Internal::set_has_len(&has_bits);
2497           _impl_.len_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2498           CHK_(ptr);
2499         } else {
2500           goto handle_unusual;
2501         }
2502         continue;
2503       // optional uint64 pa = 3;
2504       case 3:
2505         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
2506           _Internal::set_has_pa(&has_bits);
2507           _impl_.pa_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2508           CHK_(ptr);
2509         } else {
2510           goto handle_unusual;
2511         }
2512         continue;
2513       // optional uint64 va = 4;
2514       case 4:
2515         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
2516           _Internal::set_has_va(&has_bits);
2517           _impl_.va_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2518           CHK_(ptr);
2519         } else {
2520           goto handle_unusual;
2521         }
2522         continue;
2523       default:
2524         goto handle_unusual;
2525     }  // switch
2526   handle_unusual:
2527     if ((tag == 0) || ((tag & 7) == 4)) {
2528       CHK_(ptr);
2529       ctx->SetLastTag(tag);
2530       goto message_done;
2531     }
2532     ptr = UnknownFieldParse(
2533         tag,
2534         _internal_metadata_.mutable_unknown_fields<std::string>(),
2535         ptr, ctx);
2536     CHK_(ptr != nullptr);
2537   }  // while
2538 message_done:
2539   _impl_._has_bits_.Or(has_bits);
2540   return ptr;
2541 failure:
2542   ptr = nullptr;
2543   goto message_done;
2544 #undef CHK_
2545 }
2546 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2547 ::uint8_t* IommuMapRangeFtraceEvent::_InternalSerialize(
2548     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2549   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.IommuMapRangeFtraceEvent)
2550   ::uint32_t cached_has_bits = 0;
2551   (void) cached_has_bits;
2552 
2553   cached_has_bits = _impl_._has_bits_[0];
2554   // optional uint64 chunk_size = 1;
2555   if (cached_has_bits & 0x00000001u) {
2556     target = stream->EnsureSpace(target);
2557     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_chunk_size(), target);
2558   }
2559 
2560   // optional uint64 len = 2;
2561   if (cached_has_bits & 0x00000002u) {
2562     target = stream->EnsureSpace(target);
2563     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_len(), target);
2564   }
2565 
2566   // optional uint64 pa = 3;
2567   if (cached_has_bits & 0x00000004u) {
2568     target = stream->EnsureSpace(target);
2569     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_pa(), target);
2570   }
2571 
2572   // optional uint64 va = 4;
2573   if (cached_has_bits & 0x00000008u) {
2574     target = stream->EnsureSpace(target);
2575     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_va(), target);
2576   }
2577 
2578   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2579     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
2580         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
2581   }
2582   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.IommuMapRangeFtraceEvent)
2583   return target;
2584 }
2585 
ByteSizeLong() const2586 size_t IommuMapRangeFtraceEvent::ByteSizeLong() const {
2587 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.IommuMapRangeFtraceEvent)
2588   size_t total_size = 0;
2589 
2590   ::uint32_t cached_has_bits = 0;
2591   // Prevent compiler warnings about cached_has_bits being unused
2592   (void) cached_has_bits;
2593 
2594   cached_has_bits = _impl_._has_bits_[0];
2595   if (cached_has_bits & 0x0000000fu) {
2596     // optional uint64 chunk_size = 1;
2597     if (cached_has_bits & 0x00000001u) {
2598       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_chunk_size());
2599     }
2600 
2601     // optional uint64 len = 2;
2602     if (cached_has_bits & 0x00000002u) {
2603       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_len());
2604     }
2605 
2606     // optional uint64 pa = 3;
2607     if (cached_has_bits & 0x00000004u) {
2608       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_pa());
2609     }
2610 
2611     // optional uint64 va = 4;
2612     if (cached_has_bits & 0x00000008u) {
2613       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_va());
2614     }
2615 
2616   }
2617   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2618     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
2619   }
2620   int cached_size = ::_pbi::ToCachedSize(total_size);
2621   SetCachedSize(cached_size);
2622   return total_size;
2623 }
2624 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)2625 void IommuMapRangeFtraceEvent::CheckTypeAndMergeFrom(
2626     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
2627   MergeFrom(*::_pbi::DownCast<const IommuMapRangeFtraceEvent*>(
2628       &from));
2629 }
2630 
MergeFrom(const IommuMapRangeFtraceEvent & from)2631 void IommuMapRangeFtraceEvent::MergeFrom(const IommuMapRangeFtraceEvent& from) {
2632   IommuMapRangeFtraceEvent* const _this = this;
2633   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.IommuMapRangeFtraceEvent)
2634   GOOGLE_DCHECK_NE(&from, _this);
2635   ::uint32_t cached_has_bits = 0;
2636   (void) cached_has_bits;
2637 
2638   cached_has_bits = from._impl_._has_bits_[0];
2639   if (cached_has_bits & 0x0000000fu) {
2640     if (cached_has_bits & 0x00000001u) {
2641       _this->_impl_.chunk_size_ = from._impl_.chunk_size_;
2642     }
2643     if (cached_has_bits & 0x00000002u) {
2644       _this->_impl_.len_ = from._impl_.len_;
2645     }
2646     if (cached_has_bits & 0x00000004u) {
2647       _this->_impl_.pa_ = from._impl_.pa_;
2648     }
2649     if (cached_has_bits & 0x00000008u) {
2650       _this->_impl_.va_ = from._impl_.va_;
2651     }
2652     _this->_impl_._has_bits_[0] |= cached_has_bits;
2653   }
2654   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2655 }
2656 
CopyFrom(const IommuMapRangeFtraceEvent & from)2657 void IommuMapRangeFtraceEvent::CopyFrom(const IommuMapRangeFtraceEvent& from) {
2658 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.IommuMapRangeFtraceEvent)
2659   if (&from == this) return;
2660   Clear();
2661   MergeFrom(from);
2662 }
2663 
IsInitialized() const2664 bool IommuMapRangeFtraceEvent::IsInitialized() const {
2665   return true;
2666 }
2667 
InternalSwap(IommuMapRangeFtraceEvent * other)2668 void IommuMapRangeFtraceEvent::InternalSwap(IommuMapRangeFtraceEvent* other) {
2669   using std::swap;
2670   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2671   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2672   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2673       PROTOBUF_FIELD_OFFSET(IommuMapRangeFtraceEvent, _impl_.va_)
2674       + sizeof(IommuMapRangeFtraceEvent::_impl_.va_)  // NOLINT
2675       - PROTOBUF_FIELD_OFFSET(IommuMapRangeFtraceEvent, _impl_.chunk_size_)>(
2676           reinterpret_cast<char*>(&_impl_.chunk_size_),
2677           reinterpret_cast<char*>(&other->_impl_.chunk_size_));
2678 }
2679 
GetTypeName() const2680 std::string IommuMapRangeFtraceEvent::GetTypeName() const {
2681   return "perfetto.protos.IommuMapRangeFtraceEvent";
2682 }
2683 
2684 
2685 // ===================================================================
2686 
2687 class IommuSecPtblMapRangeEndFtraceEvent::_Internal {
2688  public:
2689   using HasBits = decltype(std::declval<IommuSecPtblMapRangeEndFtraceEvent>()._impl_._has_bits_);
set_has_len(HasBits * has_bits)2690   static void set_has_len(HasBits* has_bits) {
2691     (*has_bits)[0] |= 1u;
2692   }
set_has_num(HasBits * has_bits)2693   static void set_has_num(HasBits* has_bits) {
2694     (*has_bits)[0] |= 2u;
2695   }
set_has_pa(HasBits * has_bits)2696   static void set_has_pa(HasBits* has_bits) {
2697     (*has_bits)[0] |= 4u;
2698   }
set_has_sec_id(HasBits * has_bits)2699   static void set_has_sec_id(HasBits* has_bits) {
2700     (*has_bits)[0] |= 16u;
2701   }
set_has_va(HasBits * has_bits)2702   static void set_has_va(HasBits* has_bits) {
2703     (*has_bits)[0] |= 8u;
2704   }
2705 };
2706 
IommuSecPtblMapRangeEndFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2707 IommuSecPtblMapRangeEndFtraceEvent::IommuSecPtblMapRangeEndFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2708                          bool is_message_owned)
2709   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
2710   SharedCtor(arena, is_message_owned);
2711   // @@protoc_insertion_point(arena_constructor:perfetto.protos.IommuSecPtblMapRangeEndFtraceEvent)
2712 }
IommuSecPtblMapRangeEndFtraceEvent(const IommuSecPtblMapRangeEndFtraceEvent & from)2713 IommuSecPtblMapRangeEndFtraceEvent::IommuSecPtblMapRangeEndFtraceEvent(const IommuSecPtblMapRangeEndFtraceEvent& from)
2714   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
2715   IommuSecPtblMapRangeEndFtraceEvent* const _this = this; (void)_this;
2716   new (&_impl_) Impl_{
2717       decltype(_impl_._has_bits_){from._impl_._has_bits_}
2718     , /*decltype(_impl_._cached_size_)*/{}
2719     , decltype(_impl_.len_){}
2720     , decltype(_impl_.num_){}
2721     , decltype(_impl_.pa_){}
2722     , decltype(_impl_.va_){}
2723     , decltype(_impl_.sec_id_){}};
2724 
2725   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2726   ::memcpy(&_impl_.len_, &from._impl_.len_,
2727     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.sec_id_) -
2728     reinterpret_cast<char*>(&_impl_.len_)) + sizeof(_impl_.sec_id_));
2729   // @@protoc_insertion_point(copy_constructor:perfetto.protos.IommuSecPtblMapRangeEndFtraceEvent)
2730 }
2731 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2732 inline void IommuSecPtblMapRangeEndFtraceEvent::SharedCtor(
2733     ::_pb::Arena* arena, bool is_message_owned) {
2734   (void)arena;
2735   (void)is_message_owned;
2736   new (&_impl_) Impl_{
2737       decltype(_impl_._has_bits_){}
2738     , /*decltype(_impl_._cached_size_)*/{}
2739     , decltype(_impl_.len_){::uint64_t{0u}}
2740     , decltype(_impl_.num_){0}
2741     , decltype(_impl_.pa_){0u}
2742     , decltype(_impl_.va_){::uint64_t{0u}}
2743     , decltype(_impl_.sec_id_){0}
2744   };
2745 }
2746 
~IommuSecPtblMapRangeEndFtraceEvent()2747 IommuSecPtblMapRangeEndFtraceEvent::~IommuSecPtblMapRangeEndFtraceEvent() {
2748   // @@protoc_insertion_point(destructor:perfetto.protos.IommuSecPtblMapRangeEndFtraceEvent)
2749   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
2750   (void)arena;
2751     return;
2752   }
2753   SharedDtor();
2754 }
2755 
SharedDtor()2756 inline void IommuSecPtblMapRangeEndFtraceEvent::SharedDtor() {
2757   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2758 }
2759 
SetCachedSize(int size) const2760 void IommuSecPtblMapRangeEndFtraceEvent::SetCachedSize(int size) const {
2761   _impl_._cached_size_.Set(size);
2762 }
2763 
Clear()2764 void IommuSecPtblMapRangeEndFtraceEvent::Clear() {
2765 // @@protoc_insertion_point(message_clear_start:perfetto.protos.IommuSecPtblMapRangeEndFtraceEvent)
2766   ::uint32_t cached_has_bits = 0;
2767   // Prevent compiler warnings about cached_has_bits being unused
2768   (void) cached_has_bits;
2769 
2770   cached_has_bits = _impl_._has_bits_[0];
2771   if (cached_has_bits & 0x0000001fu) {
2772     ::memset(&_impl_.len_, 0, static_cast<size_t>(
2773         reinterpret_cast<char*>(&_impl_.sec_id_) -
2774         reinterpret_cast<char*>(&_impl_.len_)) + sizeof(_impl_.sec_id_));
2775   }
2776   _impl_._has_bits_.Clear();
2777   _internal_metadata_.Clear<std::string>();
2778 }
2779 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2780 const char* IommuSecPtblMapRangeEndFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2781 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2782   _Internal::HasBits has_bits{};
2783   while (!ctx->Done(&ptr)) {
2784     ::uint32_t tag;
2785     ptr = ::_pbi::ReadTag(ptr, &tag);
2786     switch (tag >> 3) {
2787       // optional uint64 len = 1;
2788       case 1:
2789         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
2790           _Internal::set_has_len(&has_bits);
2791           _impl_.len_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2792           CHK_(ptr);
2793         } else {
2794           goto handle_unusual;
2795         }
2796         continue;
2797       // optional int32 num = 2;
2798       case 2:
2799         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
2800           _Internal::set_has_num(&has_bits);
2801           _impl_.num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2802           CHK_(ptr);
2803         } else {
2804           goto handle_unusual;
2805         }
2806         continue;
2807       // optional uint32 pa = 3;
2808       case 3:
2809         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
2810           _Internal::set_has_pa(&has_bits);
2811           _impl_.pa_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2812           CHK_(ptr);
2813         } else {
2814           goto handle_unusual;
2815         }
2816         continue;
2817       // optional int32 sec_id = 4;
2818       case 4:
2819         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
2820           _Internal::set_has_sec_id(&has_bits);
2821           _impl_.sec_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2822           CHK_(ptr);
2823         } else {
2824           goto handle_unusual;
2825         }
2826         continue;
2827       // optional uint64 va = 5;
2828       case 5:
2829         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
2830           _Internal::set_has_va(&has_bits);
2831           _impl_.va_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2832           CHK_(ptr);
2833         } else {
2834           goto handle_unusual;
2835         }
2836         continue;
2837       default:
2838         goto handle_unusual;
2839     }  // switch
2840   handle_unusual:
2841     if ((tag == 0) || ((tag & 7) == 4)) {
2842       CHK_(ptr);
2843       ctx->SetLastTag(tag);
2844       goto message_done;
2845     }
2846     ptr = UnknownFieldParse(
2847         tag,
2848         _internal_metadata_.mutable_unknown_fields<std::string>(),
2849         ptr, ctx);
2850     CHK_(ptr != nullptr);
2851   }  // while
2852 message_done:
2853   _impl_._has_bits_.Or(has_bits);
2854   return ptr;
2855 failure:
2856   ptr = nullptr;
2857   goto message_done;
2858 #undef CHK_
2859 }
2860 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2861 ::uint8_t* IommuSecPtblMapRangeEndFtraceEvent::_InternalSerialize(
2862     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2863   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.IommuSecPtblMapRangeEndFtraceEvent)
2864   ::uint32_t cached_has_bits = 0;
2865   (void) cached_has_bits;
2866 
2867   cached_has_bits = _impl_._has_bits_[0];
2868   // optional uint64 len = 1;
2869   if (cached_has_bits & 0x00000001u) {
2870     target = stream->EnsureSpace(target);
2871     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_len(), target);
2872   }
2873 
2874   // optional int32 num = 2;
2875   if (cached_has_bits & 0x00000002u) {
2876     target = stream->EnsureSpace(target);
2877     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_num(), target);
2878   }
2879 
2880   // optional uint32 pa = 3;
2881   if (cached_has_bits & 0x00000004u) {
2882     target = stream->EnsureSpace(target);
2883     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_pa(), target);
2884   }
2885 
2886   // optional int32 sec_id = 4;
2887   if (cached_has_bits & 0x00000010u) {
2888     target = stream->EnsureSpace(target);
2889     target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_sec_id(), target);
2890   }
2891 
2892   // optional uint64 va = 5;
2893   if (cached_has_bits & 0x00000008u) {
2894     target = stream->EnsureSpace(target);
2895     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_va(), target);
2896   }
2897 
2898   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2899     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
2900         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
2901   }
2902   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.IommuSecPtblMapRangeEndFtraceEvent)
2903   return target;
2904 }
2905 
ByteSizeLong() const2906 size_t IommuSecPtblMapRangeEndFtraceEvent::ByteSizeLong() const {
2907 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.IommuSecPtblMapRangeEndFtraceEvent)
2908   size_t total_size = 0;
2909 
2910   ::uint32_t cached_has_bits = 0;
2911   // Prevent compiler warnings about cached_has_bits being unused
2912   (void) cached_has_bits;
2913 
2914   cached_has_bits = _impl_._has_bits_[0];
2915   if (cached_has_bits & 0x0000001fu) {
2916     // optional uint64 len = 1;
2917     if (cached_has_bits & 0x00000001u) {
2918       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_len());
2919     }
2920 
2921     // optional int32 num = 2;
2922     if (cached_has_bits & 0x00000002u) {
2923       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_num());
2924     }
2925 
2926     // optional uint32 pa = 3;
2927     if (cached_has_bits & 0x00000004u) {
2928       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_pa());
2929     }
2930 
2931     // optional uint64 va = 5;
2932     if (cached_has_bits & 0x00000008u) {
2933       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_va());
2934     }
2935 
2936     // optional int32 sec_id = 4;
2937     if (cached_has_bits & 0x00000010u) {
2938       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_sec_id());
2939     }
2940 
2941   }
2942   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2943     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
2944   }
2945   int cached_size = ::_pbi::ToCachedSize(total_size);
2946   SetCachedSize(cached_size);
2947   return total_size;
2948 }
2949 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)2950 void IommuSecPtblMapRangeEndFtraceEvent::CheckTypeAndMergeFrom(
2951     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
2952   MergeFrom(*::_pbi::DownCast<const IommuSecPtblMapRangeEndFtraceEvent*>(
2953       &from));
2954 }
2955 
MergeFrom(const IommuSecPtblMapRangeEndFtraceEvent & from)2956 void IommuSecPtblMapRangeEndFtraceEvent::MergeFrom(const IommuSecPtblMapRangeEndFtraceEvent& from) {
2957   IommuSecPtblMapRangeEndFtraceEvent* const _this = this;
2958   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.IommuSecPtblMapRangeEndFtraceEvent)
2959   GOOGLE_DCHECK_NE(&from, _this);
2960   ::uint32_t cached_has_bits = 0;
2961   (void) cached_has_bits;
2962 
2963   cached_has_bits = from._impl_._has_bits_[0];
2964   if (cached_has_bits & 0x0000001fu) {
2965     if (cached_has_bits & 0x00000001u) {
2966       _this->_impl_.len_ = from._impl_.len_;
2967     }
2968     if (cached_has_bits & 0x00000002u) {
2969       _this->_impl_.num_ = from._impl_.num_;
2970     }
2971     if (cached_has_bits & 0x00000004u) {
2972       _this->_impl_.pa_ = from._impl_.pa_;
2973     }
2974     if (cached_has_bits & 0x00000008u) {
2975       _this->_impl_.va_ = from._impl_.va_;
2976     }
2977     if (cached_has_bits & 0x00000010u) {
2978       _this->_impl_.sec_id_ = from._impl_.sec_id_;
2979     }
2980     _this->_impl_._has_bits_[0] |= cached_has_bits;
2981   }
2982   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2983 }
2984 
CopyFrom(const IommuSecPtblMapRangeEndFtraceEvent & from)2985 void IommuSecPtblMapRangeEndFtraceEvent::CopyFrom(const IommuSecPtblMapRangeEndFtraceEvent& from) {
2986 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.IommuSecPtblMapRangeEndFtraceEvent)
2987   if (&from == this) return;
2988   Clear();
2989   MergeFrom(from);
2990 }
2991 
IsInitialized() const2992 bool IommuSecPtblMapRangeEndFtraceEvent::IsInitialized() const {
2993   return true;
2994 }
2995 
InternalSwap(IommuSecPtblMapRangeEndFtraceEvent * other)2996 void IommuSecPtblMapRangeEndFtraceEvent::InternalSwap(IommuSecPtblMapRangeEndFtraceEvent* other) {
2997   using std::swap;
2998   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2999   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3000   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
3001       PROTOBUF_FIELD_OFFSET(IommuSecPtblMapRangeEndFtraceEvent, _impl_.sec_id_)
3002       + sizeof(IommuSecPtblMapRangeEndFtraceEvent::_impl_.sec_id_)  // NOLINT
3003       - PROTOBUF_FIELD_OFFSET(IommuSecPtblMapRangeEndFtraceEvent, _impl_.len_)>(
3004           reinterpret_cast<char*>(&_impl_.len_),
3005           reinterpret_cast<char*>(&other->_impl_.len_));
3006 }
3007 
GetTypeName() const3008 std::string IommuSecPtblMapRangeEndFtraceEvent::GetTypeName() const {
3009   return "perfetto.protos.IommuSecPtblMapRangeEndFtraceEvent";
3010 }
3011 
3012 
3013 // ===================================================================
3014 
3015 class IommuSecPtblMapRangeStartFtraceEvent::_Internal {
3016  public:
3017   using HasBits = decltype(std::declval<IommuSecPtblMapRangeStartFtraceEvent>()._impl_._has_bits_);
set_has_len(HasBits * has_bits)3018   static void set_has_len(HasBits* has_bits) {
3019     (*has_bits)[0] |= 1u;
3020   }
set_has_num(HasBits * has_bits)3021   static void set_has_num(HasBits* has_bits) {
3022     (*has_bits)[0] |= 2u;
3023   }
set_has_pa(HasBits * has_bits)3024   static void set_has_pa(HasBits* has_bits) {
3025     (*has_bits)[0] |= 4u;
3026   }
set_has_sec_id(HasBits * has_bits)3027   static void set_has_sec_id(HasBits* has_bits) {
3028     (*has_bits)[0] |= 16u;
3029   }
set_has_va(HasBits * has_bits)3030   static void set_has_va(HasBits* has_bits) {
3031     (*has_bits)[0] |= 8u;
3032   }
3033 };
3034 
IommuSecPtblMapRangeStartFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3035 IommuSecPtblMapRangeStartFtraceEvent::IommuSecPtblMapRangeStartFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3036                          bool is_message_owned)
3037   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
3038   SharedCtor(arena, is_message_owned);
3039   // @@protoc_insertion_point(arena_constructor:perfetto.protos.IommuSecPtblMapRangeStartFtraceEvent)
3040 }
IommuSecPtblMapRangeStartFtraceEvent(const IommuSecPtblMapRangeStartFtraceEvent & from)3041 IommuSecPtblMapRangeStartFtraceEvent::IommuSecPtblMapRangeStartFtraceEvent(const IommuSecPtblMapRangeStartFtraceEvent& from)
3042   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
3043   IommuSecPtblMapRangeStartFtraceEvent* const _this = this; (void)_this;
3044   new (&_impl_) Impl_{
3045       decltype(_impl_._has_bits_){from._impl_._has_bits_}
3046     , /*decltype(_impl_._cached_size_)*/{}
3047     , decltype(_impl_.len_){}
3048     , decltype(_impl_.num_){}
3049     , decltype(_impl_.pa_){}
3050     , decltype(_impl_.va_){}
3051     , decltype(_impl_.sec_id_){}};
3052 
3053   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3054   ::memcpy(&_impl_.len_, &from._impl_.len_,
3055     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.sec_id_) -
3056     reinterpret_cast<char*>(&_impl_.len_)) + sizeof(_impl_.sec_id_));
3057   // @@protoc_insertion_point(copy_constructor:perfetto.protos.IommuSecPtblMapRangeStartFtraceEvent)
3058 }
3059 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3060 inline void IommuSecPtblMapRangeStartFtraceEvent::SharedCtor(
3061     ::_pb::Arena* arena, bool is_message_owned) {
3062   (void)arena;
3063   (void)is_message_owned;
3064   new (&_impl_) Impl_{
3065       decltype(_impl_._has_bits_){}
3066     , /*decltype(_impl_._cached_size_)*/{}
3067     , decltype(_impl_.len_){::uint64_t{0u}}
3068     , decltype(_impl_.num_){0}
3069     , decltype(_impl_.pa_){0u}
3070     , decltype(_impl_.va_){::uint64_t{0u}}
3071     , decltype(_impl_.sec_id_){0}
3072   };
3073 }
3074 
~IommuSecPtblMapRangeStartFtraceEvent()3075 IommuSecPtblMapRangeStartFtraceEvent::~IommuSecPtblMapRangeStartFtraceEvent() {
3076   // @@protoc_insertion_point(destructor:perfetto.protos.IommuSecPtblMapRangeStartFtraceEvent)
3077   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
3078   (void)arena;
3079     return;
3080   }
3081   SharedDtor();
3082 }
3083 
SharedDtor()3084 inline void IommuSecPtblMapRangeStartFtraceEvent::SharedDtor() {
3085   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3086 }
3087 
SetCachedSize(int size) const3088 void IommuSecPtblMapRangeStartFtraceEvent::SetCachedSize(int size) const {
3089   _impl_._cached_size_.Set(size);
3090 }
3091 
Clear()3092 void IommuSecPtblMapRangeStartFtraceEvent::Clear() {
3093 // @@protoc_insertion_point(message_clear_start:perfetto.protos.IommuSecPtblMapRangeStartFtraceEvent)
3094   ::uint32_t cached_has_bits = 0;
3095   // Prevent compiler warnings about cached_has_bits being unused
3096   (void) cached_has_bits;
3097 
3098   cached_has_bits = _impl_._has_bits_[0];
3099   if (cached_has_bits & 0x0000001fu) {
3100     ::memset(&_impl_.len_, 0, static_cast<size_t>(
3101         reinterpret_cast<char*>(&_impl_.sec_id_) -
3102         reinterpret_cast<char*>(&_impl_.len_)) + sizeof(_impl_.sec_id_));
3103   }
3104   _impl_._has_bits_.Clear();
3105   _internal_metadata_.Clear<std::string>();
3106 }
3107 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3108 const char* IommuSecPtblMapRangeStartFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3109 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3110   _Internal::HasBits has_bits{};
3111   while (!ctx->Done(&ptr)) {
3112     ::uint32_t tag;
3113     ptr = ::_pbi::ReadTag(ptr, &tag);
3114     switch (tag >> 3) {
3115       // optional uint64 len = 1;
3116       case 1:
3117         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
3118           _Internal::set_has_len(&has_bits);
3119           _impl_.len_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3120           CHK_(ptr);
3121         } else {
3122           goto handle_unusual;
3123         }
3124         continue;
3125       // optional int32 num = 2;
3126       case 2:
3127         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
3128           _Internal::set_has_num(&has_bits);
3129           _impl_.num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3130           CHK_(ptr);
3131         } else {
3132           goto handle_unusual;
3133         }
3134         continue;
3135       // optional uint32 pa = 3;
3136       case 3:
3137         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
3138           _Internal::set_has_pa(&has_bits);
3139           _impl_.pa_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3140           CHK_(ptr);
3141         } else {
3142           goto handle_unusual;
3143         }
3144         continue;
3145       // optional int32 sec_id = 4;
3146       case 4:
3147         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
3148           _Internal::set_has_sec_id(&has_bits);
3149           _impl_.sec_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3150           CHK_(ptr);
3151         } else {
3152           goto handle_unusual;
3153         }
3154         continue;
3155       // optional uint64 va = 5;
3156       case 5:
3157         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
3158           _Internal::set_has_va(&has_bits);
3159           _impl_.va_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3160           CHK_(ptr);
3161         } else {
3162           goto handle_unusual;
3163         }
3164         continue;
3165       default:
3166         goto handle_unusual;
3167     }  // switch
3168   handle_unusual:
3169     if ((tag == 0) || ((tag & 7) == 4)) {
3170       CHK_(ptr);
3171       ctx->SetLastTag(tag);
3172       goto message_done;
3173     }
3174     ptr = UnknownFieldParse(
3175         tag,
3176         _internal_metadata_.mutable_unknown_fields<std::string>(),
3177         ptr, ctx);
3178     CHK_(ptr != nullptr);
3179   }  // while
3180 message_done:
3181   _impl_._has_bits_.Or(has_bits);
3182   return ptr;
3183 failure:
3184   ptr = nullptr;
3185   goto message_done;
3186 #undef CHK_
3187 }
3188 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3189 ::uint8_t* IommuSecPtblMapRangeStartFtraceEvent::_InternalSerialize(
3190     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3191   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.IommuSecPtblMapRangeStartFtraceEvent)
3192   ::uint32_t cached_has_bits = 0;
3193   (void) cached_has_bits;
3194 
3195   cached_has_bits = _impl_._has_bits_[0];
3196   // optional uint64 len = 1;
3197   if (cached_has_bits & 0x00000001u) {
3198     target = stream->EnsureSpace(target);
3199     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_len(), target);
3200   }
3201 
3202   // optional int32 num = 2;
3203   if (cached_has_bits & 0x00000002u) {
3204     target = stream->EnsureSpace(target);
3205     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_num(), target);
3206   }
3207 
3208   // optional uint32 pa = 3;
3209   if (cached_has_bits & 0x00000004u) {
3210     target = stream->EnsureSpace(target);
3211     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_pa(), target);
3212   }
3213 
3214   // optional int32 sec_id = 4;
3215   if (cached_has_bits & 0x00000010u) {
3216     target = stream->EnsureSpace(target);
3217     target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_sec_id(), target);
3218   }
3219 
3220   // optional uint64 va = 5;
3221   if (cached_has_bits & 0x00000008u) {
3222     target = stream->EnsureSpace(target);
3223     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_va(), target);
3224   }
3225 
3226   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3227     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
3228         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
3229   }
3230   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.IommuSecPtblMapRangeStartFtraceEvent)
3231   return target;
3232 }
3233 
ByteSizeLong() const3234 size_t IommuSecPtblMapRangeStartFtraceEvent::ByteSizeLong() const {
3235 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.IommuSecPtblMapRangeStartFtraceEvent)
3236   size_t total_size = 0;
3237 
3238   ::uint32_t cached_has_bits = 0;
3239   // Prevent compiler warnings about cached_has_bits being unused
3240   (void) cached_has_bits;
3241 
3242   cached_has_bits = _impl_._has_bits_[0];
3243   if (cached_has_bits & 0x0000001fu) {
3244     // optional uint64 len = 1;
3245     if (cached_has_bits & 0x00000001u) {
3246       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_len());
3247     }
3248 
3249     // optional int32 num = 2;
3250     if (cached_has_bits & 0x00000002u) {
3251       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_num());
3252     }
3253 
3254     // optional uint32 pa = 3;
3255     if (cached_has_bits & 0x00000004u) {
3256       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_pa());
3257     }
3258 
3259     // optional uint64 va = 5;
3260     if (cached_has_bits & 0x00000008u) {
3261       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_va());
3262     }
3263 
3264     // optional int32 sec_id = 4;
3265     if (cached_has_bits & 0x00000010u) {
3266       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_sec_id());
3267     }
3268 
3269   }
3270   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3271     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
3272   }
3273   int cached_size = ::_pbi::ToCachedSize(total_size);
3274   SetCachedSize(cached_size);
3275   return total_size;
3276 }
3277 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)3278 void IommuSecPtblMapRangeStartFtraceEvent::CheckTypeAndMergeFrom(
3279     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
3280   MergeFrom(*::_pbi::DownCast<const IommuSecPtblMapRangeStartFtraceEvent*>(
3281       &from));
3282 }
3283 
MergeFrom(const IommuSecPtblMapRangeStartFtraceEvent & from)3284 void IommuSecPtblMapRangeStartFtraceEvent::MergeFrom(const IommuSecPtblMapRangeStartFtraceEvent& from) {
3285   IommuSecPtblMapRangeStartFtraceEvent* const _this = this;
3286   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.IommuSecPtblMapRangeStartFtraceEvent)
3287   GOOGLE_DCHECK_NE(&from, _this);
3288   ::uint32_t cached_has_bits = 0;
3289   (void) cached_has_bits;
3290 
3291   cached_has_bits = from._impl_._has_bits_[0];
3292   if (cached_has_bits & 0x0000001fu) {
3293     if (cached_has_bits & 0x00000001u) {
3294       _this->_impl_.len_ = from._impl_.len_;
3295     }
3296     if (cached_has_bits & 0x00000002u) {
3297       _this->_impl_.num_ = from._impl_.num_;
3298     }
3299     if (cached_has_bits & 0x00000004u) {
3300       _this->_impl_.pa_ = from._impl_.pa_;
3301     }
3302     if (cached_has_bits & 0x00000008u) {
3303       _this->_impl_.va_ = from._impl_.va_;
3304     }
3305     if (cached_has_bits & 0x00000010u) {
3306       _this->_impl_.sec_id_ = from._impl_.sec_id_;
3307     }
3308     _this->_impl_._has_bits_[0] |= cached_has_bits;
3309   }
3310   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3311 }
3312 
CopyFrom(const IommuSecPtblMapRangeStartFtraceEvent & from)3313 void IommuSecPtblMapRangeStartFtraceEvent::CopyFrom(const IommuSecPtblMapRangeStartFtraceEvent& from) {
3314 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.IommuSecPtblMapRangeStartFtraceEvent)
3315   if (&from == this) return;
3316   Clear();
3317   MergeFrom(from);
3318 }
3319 
IsInitialized() const3320 bool IommuSecPtblMapRangeStartFtraceEvent::IsInitialized() const {
3321   return true;
3322 }
3323 
InternalSwap(IommuSecPtblMapRangeStartFtraceEvent * other)3324 void IommuSecPtblMapRangeStartFtraceEvent::InternalSwap(IommuSecPtblMapRangeStartFtraceEvent* other) {
3325   using std::swap;
3326   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3327   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3328   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
3329       PROTOBUF_FIELD_OFFSET(IommuSecPtblMapRangeStartFtraceEvent, _impl_.sec_id_)
3330       + sizeof(IommuSecPtblMapRangeStartFtraceEvent::_impl_.sec_id_)  // NOLINT
3331       - PROTOBUF_FIELD_OFFSET(IommuSecPtblMapRangeStartFtraceEvent, _impl_.len_)>(
3332           reinterpret_cast<char*>(&_impl_.len_),
3333           reinterpret_cast<char*>(&other->_impl_.len_));
3334 }
3335 
GetTypeName() const3336 std::string IommuSecPtblMapRangeStartFtraceEvent::GetTypeName() const {
3337   return "perfetto.protos.IommuSecPtblMapRangeStartFtraceEvent";
3338 }
3339 
3340 
3341 // ===================================================================
3342 
3343 class IonAllocBufferEndFtraceEvent::_Internal {
3344  public:
3345   using HasBits = decltype(std::declval<IonAllocBufferEndFtraceEvent>()._impl_._has_bits_);
set_has_client_name(HasBits * has_bits)3346   static void set_has_client_name(HasBits* has_bits) {
3347     (*has_bits)[0] |= 1u;
3348   }
set_has_flags(HasBits * has_bits)3349   static void set_has_flags(HasBits* has_bits) {
3350     (*has_bits)[0] |= 4u;
3351   }
set_has_heap_name(HasBits * has_bits)3352   static void set_has_heap_name(HasBits* has_bits) {
3353     (*has_bits)[0] |= 2u;
3354   }
set_has_len(HasBits * has_bits)3355   static void set_has_len(HasBits* has_bits) {
3356     (*has_bits)[0] |= 16u;
3357   }
set_has_mask(HasBits * has_bits)3358   static void set_has_mask(HasBits* has_bits) {
3359     (*has_bits)[0] |= 8u;
3360   }
3361 };
3362 
IonAllocBufferEndFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3363 IonAllocBufferEndFtraceEvent::IonAllocBufferEndFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3364                          bool is_message_owned)
3365   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
3366   SharedCtor(arena, is_message_owned);
3367   // @@protoc_insertion_point(arena_constructor:perfetto.protos.IonAllocBufferEndFtraceEvent)
3368 }
IonAllocBufferEndFtraceEvent(const IonAllocBufferEndFtraceEvent & from)3369 IonAllocBufferEndFtraceEvent::IonAllocBufferEndFtraceEvent(const IonAllocBufferEndFtraceEvent& from)
3370   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
3371   IonAllocBufferEndFtraceEvent* const _this = this; (void)_this;
3372   new (&_impl_) Impl_{
3373       decltype(_impl_._has_bits_){from._impl_._has_bits_}
3374     , /*decltype(_impl_._cached_size_)*/{}
3375     , decltype(_impl_.client_name_){}
3376     , decltype(_impl_.heap_name_){}
3377     , decltype(_impl_.flags_){}
3378     , decltype(_impl_.mask_){}
3379     , decltype(_impl_.len_){}};
3380 
3381   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3382   _impl_.client_name_.InitDefault();
3383   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3384     _impl_.client_name_.Set("", GetArenaForAllocation());
3385   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3386   if (from._internal_has_client_name()) {
3387     _this->_impl_.client_name_.Set(from._internal_client_name(),
3388       _this->GetArenaForAllocation());
3389   }
3390   _impl_.heap_name_.InitDefault();
3391   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3392     _impl_.heap_name_.Set("", GetArenaForAllocation());
3393   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3394   if (from._internal_has_heap_name()) {
3395     _this->_impl_.heap_name_.Set(from._internal_heap_name(),
3396       _this->GetArenaForAllocation());
3397   }
3398   ::memcpy(&_impl_.flags_, &from._impl_.flags_,
3399     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.len_) -
3400     reinterpret_cast<char*>(&_impl_.flags_)) + sizeof(_impl_.len_));
3401   // @@protoc_insertion_point(copy_constructor:perfetto.protos.IonAllocBufferEndFtraceEvent)
3402 }
3403 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3404 inline void IonAllocBufferEndFtraceEvent::SharedCtor(
3405     ::_pb::Arena* arena, bool is_message_owned) {
3406   (void)arena;
3407   (void)is_message_owned;
3408   new (&_impl_) Impl_{
3409       decltype(_impl_._has_bits_){}
3410     , /*decltype(_impl_._cached_size_)*/{}
3411     , decltype(_impl_.client_name_){}
3412     , decltype(_impl_.heap_name_){}
3413     , decltype(_impl_.flags_){0u}
3414     , decltype(_impl_.mask_){0u}
3415     , decltype(_impl_.len_){::uint64_t{0u}}
3416   };
3417   _impl_.client_name_.InitDefault();
3418   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3419     _impl_.client_name_.Set("", GetArenaForAllocation());
3420   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3421   _impl_.heap_name_.InitDefault();
3422   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3423     _impl_.heap_name_.Set("", GetArenaForAllocation());
3424   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3425 }
3426 
~IonAllocBufferEndFtraceEvent()3427 IonAllocBufferEndFtraceEvent::~IonAllocBufferEndFtraceEvent() {
3428   // @@protoc_insertion_point(destructor:perfetto.protos.IonAllocBufferEndFtraceEvent)
3429   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
3430   (void)arena;
3431     return;
3432   }
3433   SharedDtor();
3434 }
3435 
SharedDtor()3436 inline void IonAllocBufferEndFtraceEvent::SharedDtor() {
3437   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3438   _impl_.client_name_.Destroy();
3439   _impl_.heap_name_.Destroy();
3440 }
3441 
SetCachedSize(int size) const3442 void IonAllocBufferEndFtraceEvent::SetCachedSize(int size) const {
3443   _impl_._cached_size_.Set(size);
3444 }
3445 
Clear()3446 void IonAllocBufferEndFtraceEvent::Clear() {
3447 // @@protoc_insertion_point(message_clear_start:perfetto.protos.IonAllocBufferEndFtraceEvent)
3448   ::uint32_t cached_has_bits = 0;
3449   // Prevent compiler warnings about cached_has_bits being unused
3450   (void) cached_has_bits;
3451 
3452   cached_has_bits = _impl_._has_bits_[0];
3453   if (cached_has_bits & 0x00000003u) {
3454     if (cached_has_bits & 0x00000001u) {
3455       _impl_.client_name_.ClearNonDefaultToEmpty();
3456     }
3457     if (cached_has_bits & 0x00000002u) {
3458       _impl_.heap_name_.ClearNonDefaultToEmpty();
3459     }
3460   }
3461   if (cached_has_bits & 0x0000001cu) {
3462     ::memset(&_impl_.flags_, 0, static_cast<size_t>(
3463         reinterpret_cast<char*>(&_impl_.len_) -
3464         reinterpret_cast<char*>(&_impl_.flags_)) + sizeof(_impl_.len_));
3465   }
3466   _impl_._has_bits_.Clear();
3467   _internal_metadata_.Clear<std::string>();
3468 }
3469 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3470 const char* IonAllocBufferEndFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3471 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3472   _Internal::HasBits has_bits{};
3473   while (!ctx->Done(&ptr)) {
3474     ::uint32_t tag;
3475     ptr = ::_pbi::ReadTag(ptr, &tag);
3476     switch (tag >> 3) {
3477       // optional string client_name = 1;
3478       case 1:
3479         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
3480           auto str = _internal_mutable_client_name();
3481           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3482           CHK_(ptr);
3483         } else {
3484           goto handle_unusual;
3485         }
3486         continue;
3487       // optional uint32 flags = 2;
3488       case 2:
3489         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
3490           _Internal::set_has_flags(&has_bits);
3491           _impl_.flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3492           CHK_(ptr);
3493         } else {
3494           goto handle_unusual;
3495         }
3496         continue;
3497       // optional string heap_name = 3;
3498       case 3:
3499         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
3500           auto str = _internal_mutable_heap_name();
3501           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3502           CHK_(ptr);
3503         } else {
3504           goto handle_unusual;
3505         }
3506         continue;
3507       // optional uint64 len = 4;
3508       case 4:
3509         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
3510           _Internal::set_has_len(&has_bits);
3511           _impl_.len_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3512           CHK_(ptr);
3513         } else {
3514           goto handle_unusual;
3515         }
3516         continue;
3517       // optional uint32 mask = 5;
3518       case 5:
3519         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
3520           _Internal::set_has_mask(&has_bits);
3521           _impl_.mask_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3522           CHK_(ptr);
3523         } else {
3524           goto handle_unusual;
3525         }
3526         continue;
3527       default:
3528         goto handle_unusual;
3529     }  // switch
3530   handle_unusual:
3531     if ((tag == 0) || ((tag & 7) == 4)) {
3532       CHK_(ptr);
3533       ctx->SetLastTag(tag);
3534       goto message_done;
3535     }
3536     ptr = UnknownFieldParse(
3537         tag,
3538         _internal_metadata_.mutable_unknown_fields<std::string>(),
3539         ptr, ctx);
3540     CHK_(ptr != nullptr);
3541   }  // while
3542 message_done:
3543   _impl_._has_bits_.Or(has_bits);
3544   return ptr;
3545 failure:
3546   ptr = nullptr;
3547   goto message_done;
3548 #undef CHK_
3549 }
3550 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3551 ::uint8_t* IonAllocBufferEndFtraceEvent::_InternalSerialize(
3552     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3553   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.IonAllocBufferEndFtraceEvent)
3554   ::uint32_t cached_has_bits = 0;
3555   (void) cached_has_bits;
3556 
3557   cached_has_bits = _impl_._has_bits_[0];
3558   // optional string client_name = 1;
3559   if (cached_has_bits & 0x00000001u) {
3560     target = stream->WriteStringMaybeAliased(
3561         1, this->_internal_client_name(), target);
3562   }
3563 
3564   // optional uint32 flags = 2;
3565   if (cached_has_bits & 0x00000004u) {
3566     target = stream->EnsureSpace(target);
3567     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_flags(), target);
3568   }
3569 
3570   // optional string heap_name = 3;
3571   if (cached_has_bits & 0x00000002u) {
3572     target = stream->WriteStringMaybeAliased(
3573         3, this->_internal_heap_name(), target);
3574   }
3575 
3576   // optional uint64 len = 4;
3577   if (cached_has_bits & 0x00000010u) {
3578     target = stream->EnsureSpace(target);
3579     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_len(), target);
3580   }
3581 
3582   // optional uint32 mask = 5;
3583   if (cached_has_bits & 0x00000008u) {
3584     target = stream->EnsureSpace(target);
3585     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_mask(), target);
3586   }
3587 
3588   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3589     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
3590         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
3591   }
3592   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.IonAllocBufferEndFtraceEvent)
3593   return target;
3594 }
3595 
ByteSizeLong() const3596 size_t IonAllocBufferEndFtraceEvent::ByteSizeLong() const {
3597 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.IonAllocBufferEndFtraceEvent)
3598   size_t total_size = 0;
3599 
3600   ::uint32_t cached_has_bits = 0;
3601   // Prevent compiler warnings about cached_has_bits being unused
3602   (void) cached_has_bits;
3603 
3604   cached_has_bits = _impl_._has_bits_[0];
3605   if (cached_has_bits & 0x0000001fu) {
3606     // optional string client_name = 1;
3607     if (cached_has_bits & 0x00000001u) {
3608       total_size += 1 +
3609         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3610           this->_internal_client_name());
3611     }
3612 
3613     // optional string heap_name = 3;
3614     if (cached_has_bits & 0x00000002u) {
3615       total_size += 1 +
3616         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3617           this->_internal_heap_name());
3618     }
3619 
3620     // optional uint32 flags = 2;
3621     if (cached_has_bits & 0x00000004u) {
3622       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_flags());
3623     }
3624 
3625     // optional uint32 mask = 5;
3626     if (cached_has_bits & 0x00000008u) {
3627       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_mask());
3628     }
3629 
3630     // optional uint64 len = 4;
3631     if (cached_has_bits & 0x00000010u) {
3632       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_len());
3633     }
3634 
3635   }
3636   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3637     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
3638   }
3639   int cached_size = ::_pbi::ToCachedSize(total_size);
3640   SetCachedSize(cached_size);
3641   return total_size;
3642 }
3643 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)3644 void IonAllocBufferEndFtraceEvent::CheckTypeAndMergeFrom(
3645     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
3646   MergeFrom(*::_pbi::DownCast<const IonAllocBufferEndFtraceEvent*>(
3647       &from));
3648 }
3649 
MergeFrom(const IonAllocBufferEndFtraceEvent & from)3650 void IonAllocBufferEndFtraceEvent::MergeFrom(const IonAllocBufferEndFtraceEvent& from) {
3651   IonAllocBufferEndFtraceEvent* const _this = this;
3652   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.IonAllocBufferEndFtraceEvent)
3653   GOOGLE_DCHECK_NE(&from, _this);
3654   ::uint32_t cached_has_bits = 0;
3655   (void) cached_has_bits;
3656 
3657   cached_has_bits = from._impl_._has_bits_[0];
3658   if (cached_has_bits & 0x0000001fu) {
3659     if (cached_has_bits & 0x00000001u) {
3660       _this->_internal_set_client_name(from._internal_client_name());
3661     }
3662     if (cached_has_bits & 0x00000002u) {
3663       _this->_internal_set_heap_name(from._internal_heap_name());
3664     }
3665     if (cached_has_bits & 0x00000004u) {
3666       _this->_impl_.flags_ = from._impl_.flags_;
3667     }
3668     if (cached_has_bits & 0x00000008u) {
3669       _this->_impl_.mask_ = from._impl_.mask_;
3670     }
3671     if (cached_has_bits & 0x00000010u) {
3672       _this->_impl_.len_ = from._impl_.len_;
3673     }
3674     _this->_impl_._has_bits_[0] |= cached_has_bits;
3675   }
3676   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3677 }
3678 
CopyFrom(const IonAllocBufferEndFtraceEvent & from)3679 void IonAllocBufferEndFtraceEvent::CopyFrom(const IonAllocBufferEndFtraceEvent& from) {
3680 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.IonAllocBufferEndFtraceEvent)
3681   if (&from == this) return;
3682   Clear();
3683   MergeFrom(from);
3684 }
3685 
IsInitialized() const3686 bool IonAllocBufferEndFtraceEvent::IsInitialized() const {
3687   return true;
3688 }
3689 
InternalSwap(IonAllocBufferEndFtraceEvent * other)3690 void IonAllocBufferEndFtraceEvent::InternalSwap(IonAllocBufferEndFtraceEvent* other) {
3691   using std::swap;
3692   auto* lhs_arena = GetArenaForAllocation();
3693   auto* rhs_arena = other->GetArenaForAllocation();
3694   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3695   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3696   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
3697       &_impl_.client_name_, lhs_arena,
3698       &other->_impl_.client_name_, rhs_arena
3699   );
3700   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
3701       &_impl_.heap_name_, lhs_arena,
3702       &other->_impl_.heap_name_, rhs_arena
3703   );
3704   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
3705       PROTOBUF_FIELD_OFFSET(IonAllocBufferEndFtraceEvent, _impl_.len_)
3706       + sizeof(IonAllocBufferEndFtraceEvent::_impl_.len_)  // NOLINT
3707       - PROTOBUF_FIELD_OFFSET(IonAllocBufferEndFtraceEvent, _impl_.flags_)>(
3708           reinterpret_cast<char*>(&_impl_.flags_),
3709           reinterpret_cast<char*>(&other->_impl_.flags_));
3710 }
3711 
GetTypeName() const3712 std::string IonAllocBufferEndFtraceEvent::GetTypeName() const {
3713   return "perfetto.protos.IonAllocBufferEndFtraceEvent";
3714 }
3715 
3716 
3717 // ===================================================================
3718 
3719 class IonAllocBufferFailFtraceEvent::_Internal {
3720  public:
3721   using HasBits = decltype(std::declval<IonAllocBufferFailFtraceEvent>()._impl_._has_bits_);
set_has_client_name(HasBits * has_bits)3722   static void set_has_client_name(HasBits* has_bits) {
3723     (*has_bits)[0] |= 1u;
3724   }
set_has_error(HasBits * has_bits)3725   static void set_has_error(HasBits* has_bits) {
3726     (*has_bits)[0] |= 4u;
3727   }
set_has_flags(HasBits * has_bits)3728   static void set_has_flags(HasBits* has_bits) {
3729     (*has_bits)[0] |= 8u;
3730   }
set_has_heap_name(HasBits * has_bits)3731   static void set_has_heap_name(HasBits* has_bits) {
3732     (*has_bits)[0] |= 2u;
3733   }
set_has_len(HasBits * has_bits)3734   static void set_has_len(HasBits* has_bits) {
3735     (*has_bits)[0] |= 32u;
3736   }
set_has_mask(HasBits * has_bits)3737   static void set_has_mask(HasBits* has_bits) {
3738     (*has_bits)[0] |= 16u;
3739   }
3740 };
3741 
IonAllocBufferFailFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3742 IonAllocBufferFailFtraceEvent::IonAllocBufferFailFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3743                          bool is_message_owned)
3744   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
3745   SharedCtor(arena, is_message_owned);
3746   // @@protoc_insertion_point(arena_constructor:perfetto.protos.IonAllocBufferFailFtraceEvent)
3747 }
IonAllocBufferFailFtraceEvent(const IonAllocBufferFailFtraceEvent & from)3748 IonAllocBufferFailFtraceEvent::IonAllocBufferFailFtraceEvent(const IonAllocBufferFailFtraceEvent& from)
3749   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
3750   IonAllocBufferFailFtraceEvent* const _this = this; (void)_this;
3751   new (&_impl_) Impl_{
3752       decltype(_impl_._has_bits_){from._impl_._has_bits_}
3753     , /*decltype(_impl_._cached_size_)*/{}
3754     , decltype(_impl_.client_name_){}
3755     , decltype(_impl_.heap_name_){}
3756     , decltype(_impl_.error_){}
3757     , decltype(_impl_.flags_){}
3758     , decltype(_impl_.mask_){}
3759     , decltype(_impl_.len_){}};
3760 
3761   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3762   _impl_.client_name_.InitDefault();
3763   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3764     _impl_.client_name_.Set("", GetArenaForAllocation());
3765   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3766   if (from._internal_has_client_name()) {
3767     _this->_impl_.client_name_.Set(from._internal_client_name(),
3768       _this->GetArenaForAllocation());
3769   }
3770   _impl_.heap_name_.InitDefault();
3771   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3772     _impl_.heap_name_.Set("", GetArenaForAllocation());
3773   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3774   if (from._internal_has_heap_name()) {
3775     _this->_impl_.heap_name_.Set(from._internal_heap_name(),
3776       _this->GetArenaForAllocation());
3777   }
3778   ::memcpy(&_impl_.error_, &from._impl_.error_,
3779     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.len_) -
3780     reinterpret_cast<char*>(&_impl_.error_)) + sizeof(_impl_.len_));
3781   // @@protoc_insertion_point(copy_constructor:perfetto.protos.IonAllocBufferFailFtraceEvent)
3782 }
3783 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3784 inline void IonAllocBufferFailFtraceEvent::SharedCtor(
3785     ::_pb::Arena* arena, bool is_message_owned) {
3786   (void)arena;
3787   (void)is_message_owned;
3788   new (&_impl_) Impl_{
3789       decltype(_impl_._has_bits_){}
3790     , /*decltype(_impl_._cached_size_)*/{}
3791     , decltype(_impl_.client_name_){}
3792     , decltype(_impl_.heap_name_){}
3793     , decltype(_impl_.error_){::int64_t{0}}
3794     , decltype(_impl_.flags_){0u}
3795     , decltype(_impl_.mask_){0u}
3796     , decltype(_impl_.len_){::uint64_t{0u}}
3797   };
3798   _impl_.client_name_.InitDefault();
3799   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3800     _impl_.client_name_.Set("", GetArenaForAllocation());
3801   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3802   _impl_.heap_name_.InitDefault();
3803   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3804     _impl_.heap_name_.Set("", GetArenaForAllocation());
3805   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3806 }
3807 
~IonAllocBufferFailFtraceEvent()3808 IonAllocBufferFailFtraceEvent::~IonAllocBufferFailFtraceEvent() {
3809   // @@protoc_insertion_point(destructor:perfetto.protos.IonAllocBufferFailFtraceEvent)
3810   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
3811   (void)arena;
3812     return;
3813   }
3814   SharedDtor();
3815 }
3816 
SharedDtor()3817 inline void IonAllocBufferFailFtraceEvent::SharedDtor() {
3818   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3819   _impl_.client_name_.Destroy();
3820   _impl_.heap_name_.Destroy();
3821 }
3822 
SetCachedSize(int size) const3823 void IonAllocBufferFailFtraceEvent::SetCachedSize(int size) const {
3824   _impl_._cached_size_.Set(size);
3825 }
3826 
Clear()3827 void IonAllocBufferFailFtraceEvent::Clear() {
3828 // @@protoc_insertion_point(message_clear_start:perfetto.protos.IonAllocBufferFailFtraceEvent)
3829   ::uint32_t cached_has_bits = 0;
3830   // Prevent compiler warnings about cached_has_bits being unused
3831   (void) cached_has_bits;
3832 
3833   cached_has_bits = _impl_._has_bits_[0];
3834   if (cached_has_bits & 0x00000003u) {
3835     if (cached_has_bits & 0x00000001u) {
3836       _impl_.client_name_.ClearNonDefaultToEmpty();
3837     }
3838     if (cached_has_bits & 0x00000002u) {
3839       _impl_.heap_name_.ClearNonDefaultToEmpty();
3840     }
3841   }
3842   if (cached_has_bits & 0x0000003cu) {
3843     ::memset(&_impl_.error_, 0, static_cast<size_t>(
3844         reinterpret_cast<char*>(&_impl_.len_) -
3845         reinterpret_cast<char*>(&_impl_.error_)) + sizeof(_impl_.len_));
3846   }
3847   _impl_._has_bits_.Clear();
3848   _internal_metadata_.Clear<std::string>();
3849 }
3850 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3851 const char* IonAllocBufferFailFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3852 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3853   _Internal::HasBits has_bits{};
3854   while (!ctx->Done(&ptr)) {
3855     ::uint32_t tag;
3856     ptr = ::_pbi::ReadTag(ptr, &tag);
3857     switch (tag >> 3) {
3858       // optional string client_name = 1;
3859       case 1:
3860         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
3861           auto str = _internal_mutable_client_name();
3862           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3863           CHK_(ptr);
3864         } else {
3865           goto handle_unusual;
3866         }
3867         continue;
3868       // optional int64 error = 2;
3869       case 2:
3870         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
3871           _Internal::set_has_error(&has_bits);
3872           _impl_.error_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3873           CHK_(ptr);
3874         } else {
3875           goto handle_unusual;
3876         }
3877         continue;
3878       // optional uint32 flags = 3;
3879       case 3:
3880         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
3881           _Internal::set_has_flags(&has_bits);
3882           _impl_.flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3883           CHK_(ptr);
3884         } else {
3885           goto handle_unusual;
3886         }
3887         continue;
3888       // optional string heap_name = 4;
3889       case 4:
3890         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
3891           auto str = _internal_mutable_heap_name();
3892           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3893           CHK_(ptr);
3894         } else {
3895           goto handle_unusual;
3896         }
3897         continue;
3898       // optional uint64 len = 5;
3899       case 5:
3900         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
3901           _Internal::set_has_len(&has_bits);
3902           _impl_.len_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3903           CHK_(ptr);
3904         } else {
3905           goto handle_unusual;
3906         }
3907         continue;
3908       // optional uint32 mask = 6;
3909       case 6:
3910         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
3911           _Internal::set_has_mask(&has_bits);
3912           _impl_.mask_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3913           CHK_(ptr);
3914         } else {
3915           goto handle_unusual;
3916         }
3917         continue;
3918       default:
3919         goto handle_unusual;
3920     }  // switch
3921   handle_unusual:
3922     if ((tag == 0) || ((tag & 7) == 4)) {
3923       CHK_(ptr);
3924       ctx->SetLastTag(tag);
3925       goto message_done;
3926     }
3927     ptr = UnknownFieldParse(
3928         tag,
3929         _internal_metadata_.mutable_unknown_fields<std::string>(),
3930         ptr, ctx);
3931     CHK_(ptr != nullptr);
3932   }  // while
3933 message_done:
3934   _impl_._has_bits_.Or(has_bits);
3935   return ptr;
3936 failure:
3937   ptr = nullptr;
3938   goto message_done;
3939 #undef CHK_
3940 }
3941 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3942 ::uint8_t* IonAllocBufferFailFtraceEvent::_InternalSerialize(
3943     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3944   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.IonAllocBufferFailFtraceEvent)
3945   ::uint32_t cached_has_bits = 0;
3946   (void) cached_has_bits;
3947 
3948   cached_has_bits = _impl_._has_bits_[0];
3949   // optional string client_name = 1;
3950   if (cached_has_bits & 0x00000001u) {
3951     target = stream->WriteStringMaybeAliased(
3952         1, this->_internal_client_name(), target);
3953   }
3954 
3955   // optional int64 error = 2;
3956   if (cached_has_bits & 0x00000004u) {
3957     target = stream->EnsureSpace(target);
3958     target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_error(), target);
3959   }
3960 
3961   // optional uint32 flags = 3;
3962   if (cached_has_bits & 0x00000008u) {
3963     target = stream->EnsureSpace(target);
3964     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_flags(), target);
3965   }
3966 
3967   // optional string heap_name = 4;
3968   if (cached_has_bits & 0x00000002u) {
3969     target = stream->WriteStringMaybeAliased(
3970         4, this->_internal_heap_name(), target);
3971   }
3972 
3973   // optional uint64 len = 5;
3974   if (cached_has_bits & 0x00000020u) {
3975     target = stream->EnsureSpace(target);
3976     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_len(), target);
3977   }
3978 
3979   // optional uint32 mask = 6;
3980   if (cached_has_bits & 0x00000010u) {
3981     target = stream->EnsureSpace(target);
3982     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_mask(), target);
3983   }
3984 
3985   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3986     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
3987         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
3988   }
3989   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.IonAllocBufferFailFtraceEvent)
3990   return target;
3991 }
3992 
ByteSizeLong() const3993 size_t IonAllocBufferFailFtraceEvent::ByteSizeLong() const {
3994 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.IonAllocBufferFailFtraceEvent)
3995   size_t total_size = 0;
3996 
3997   ::uint32_t cached_has_bits = 0;
3998   // Prevent compiler warnings about cached_has_bits being unused
3999   (void) cached_has_bits;
4000 
4001   cached_has_bits = _impl_._has_bits_[0];
4002   if (cached_has_bits & 0x0000003fu) {
4003     // optional string client_name = 1;
4004     if (cached_has_bits & 0x00000001u) {
4005       total_size += 1 +
4006         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4007           this->_internal_client_name());
4008     }
4009 
4010     // optional string heap_name = 4;
4011     if (cached_has_bits & 0x00000002u) {
4012       total_size += 1 +
4013         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4014           this->_internal_heap_name());
4015     }
4016 
4017     // optional int64 error = 2;
4018     if (cached_has_bits & 0x00000004u) {
4019       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_error());
4020     }
4021 
4022     // optional uint32 flags = 3;
4023     if (cached_has_bits & 0x00000008u) {
4024       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_flags());
4025     }
4026 
4027     // optional uint32 mask = 6;
4028     if (cached_has_bits & 0x00000010u) {
4029       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_mask());
4030     }
4031 
4032     // optional uint64 len = 5;
4033     if (cached_has_bits & 0x00000020u) {
4034       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_len());
4035     }
4036 
4037   }
4038   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4039     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
4040   }
4041   int cached_size = ::_pbi::ToCachedSize(total_size);
4042   SetCachedSize(cached_size);
4043   return total_size;
4044 }
4045 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)4046 void IonAllocBufferFailFtraceEvent::CheckTypeAndMergeFrom(
4047     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
4048   MergeFrom(*::_pbi::DownCast<const IonAllocBufferFailFtraceEvent*>(
4049       &from));
4050 }
4051 
MergeFrom(const IonAllocBufferFailFtraceEvent & from)4052 void IonAllocBufferFailFtraceEvent::MergeFrom(const IonAllocBufferFailFtraceEvent& from) {
4053   IonAllocBufferFailFtraceEvent* const _this = this;
4054   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.IonAllocBufferFailFtraceEvent)
4055   GOOGLE_DCHECK_NE(&from, _this);
4056   ::uint32_t cached_has_bits = 0;
4057   (void) cached_has_bits;
4058 
4059   cached_has_bits = from._impl_._has_bits_[0];
4060   if (cached_has_bits & 0x0000003fu) {
4061     if (cached_has_bits & 0x00000001u) {
4062       _this->_internal_set_client_name(from._internal_client_name());
4063     }
4064     if (cached_has_bits & 0x00000002u) {
4065       _this->_internal_set_heap_name(from._internal_heap_name());
4066     }
4067     if (cached_has_bits & 0x00000004u) {
4068       _this->_impl_.error_ = from._impl_.error_;
4069     }
4070     if (cached_has_bits & 0x00000008u) {
4071       _this->_impl_.flags_ = from._impl_.flags_;
4072     }
4073     if (cached_has_bits & 0x00000010u) {
4074       _this->_impl_.mask_ = from._impl_.mask_;
4075     }
4076     if (cached_has_bits & 0x00000020u) {
4077       _this->_impl_.len_ = from._impl_.len_;
4078     }
4079     _this->_impl_._has_bits_[0] |= cached_has_bits;
4080   }
4081   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4082 }
4083 
CopyFrom(const IonAllocBufferFailFtraceEvent & from)4084 void IonAllocBufferFailFtraceEvent::CopyFrom(const IonAllocBufferFailFtraceEvent& from) {
4085 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.IonAllocBufferFailFtraceEvent)
4086   if (&from == this) return;
4087   Clear();
4088   MergeFrom(from);
4089 }
4090 
IsInitialized() const4091 bool IonAllocBufferFailFtraceEvent::IsInitialized() const {
4092   return true;
4093 }
4094 
InternalSwap(IonAllocBufferFailFtraceEvent * other)4095 void IonAllocBufferFailFtraceEvent::InternalSwap(IonAllocBufferFailFtraceEvent* other) {
4096   using std::swap;
4097   auto* lhs_arena = GetArenaForAllocation();
4098   auto* rhs_arena = other->GetArenaForAllocation();
4099   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4100   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4101   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4102       &_impl_.client_name_, lhs_arena,
4103       &other->_impl_.client_name_, rhs_arena
4104   );
4105   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4106       &_impl_.heap_name_, lhs_arena,
4107       &other->_impl_.heap_name_, rhs_arena
4108   );
4109   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
4110       PROTOBUF_FIELD_OFFSET(IonAllocBufferFailFtraceEvent, _impl_.len_)
4111       + sizeof(IonAllocBufferFailFtraceEvent::_impl_.len_)  // NOLINT
4112       - PROTOBUF_FIELD_OFFSET(IonAllocBufferFailFtraceEvent, _impl_.error_)>(
4113           reinterpret_cast<char*>(&_impl_.error_),
4114           reinterpret_cast<char*>(&other->_impl_.error_));
4115 }
4116 
GetTypeName() const4117 std::string IonAllocBufferFailFtraceEvent::GetTypeName() const {
4118   return "perfetto.protos.IonAllocBufferFailFtraceEvent";
4119 }
4120 
4121 
4122 // ===================================================================
4123 
4124 class IonAllocBufferFallbackFtraceEvent::_Internal {
4125  public:
4126   using HasBits = decltype(std::declval<IonAllocBufferFallbackFtraceEvent>()._impl_._has_bits_);
set_has_client_name(HasBits * has_bits)4127   static void set_has_client_name(HasBits* has_bits) {
4128     (*has_bits)[0] |= 1u;
4129   }
set_has_error(HasBits * has_bits)4130   static void set_has_error(HasBits* has_bits) {
4131     (*has_bits)[0] |= 4u;
4132   }
set_has_flags(HasBits * has_bits)4133   static void set_has_flags(HasBits* has_bits) {
4134     (*has_bits)[0] |= 8u;
4135   }
set_has_heap_name(HasBits * has_bits)4136   static void set_has_heap_name(HasBits* has_bits) {
4137     (*has_bits)[0] |= 2u;
4138   }
set_has_len(HasBits * has_bits)4139   static void set_has_len(HasBits* has_bits) {
4140     (*has_bits)[0] |= 32u;
4141   }
set_has_mask(HasBits * has_bits)4142   static void set_has_mask(HasBits* has_bits) {
4143     (*has_bits)[0] |= 16u;
4144   }
4145 };
4146 
IonAllocBufferFallbackFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4147 IonAllocBufferFallbackFtraceEvent::IonAllocBufferFallbackFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4148                          bool is_message_owned)
4149   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
4150   SharedCtor(arena, is_message_owned);
4151   // @@protoc_insertion_point(arena_constructor:perfetto.protos.IonAllocBufferFallbackFtraceEvent)
4152 }
IonAllocBufferFallbackFtraceEvent(const IonAllocBufferFallbackFtraceEvent & from)4153 IonAllocBufferFallbackFtraceEvent::IonAllocBufferFallbackFtraceEvent(const IonAllocBufferFallbackFtraceEvent& from)
4154   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
4155   IonAllocBufferFallbackFtraceEvent* const _this = this; (void)_this;
4156   new (&_impl_) Impl_{
4157       decltype(_impl_._has_bits_){from._impl_._has_bits_}
4158     , /*decltype(_impl_._cached_size_)*/{}
4159     , decltype(_impl_.client_name_){}
4160     , decltype(_impl_.heap_name_){}
4161     , decltype(_impl_.error_){}
4162     , decltype(_impl_.flags_){}
4163     , decltype(_impl_.mask_){}
4164     , decltype(_impl_.len_){}};
4165 
4166   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4167   _impl_.client_name_.InitDefault();
4168   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4169     _impl_.client_name_.Set("", GetArenaForAllocation());
4170   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4171   if (from._internal_has_client_name()) {
4172     _this->_impl_.client_name_.Set(from._internal_client_name(),
4173       _this->GetArenaForAllocation());
4174   }
4175   _impl_.heap_name_.InitDefault();
4176   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4177     _impl_.heap_name_.Set("", GetArenaForAllocation());
4178   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4179   if (from._internal_has_heap_name()) {
4180     _this->_impl_.heap_name_.Set(from._internal_heap_name(),
4181       _this->GetArenaForAllocation());
4182   }
4183   ::memcpy(&_impl_.error_, &from._impl_.error_,
4184     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.len_) -
4185     reinterpret_cast<char*>(&_impl_.error_)) + sizeof(_impl_.len_));
4186   // @@protoc_insertion_point(copy_constructor:perfetto.protos.IonAllocBufferFallbackFtraceEvent)
4187 }
4188 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)4189 inline void IonAllocBufferFallbackFtraceEvent::SharedCtor(
4190     ::_pb::Arena* arena, bool is_message_owned) {
4191   (void)arena;
4192   (void)is_message_owned;
4193   new (&_impl_) Impl_{
4194       decltype(_impl_._has_bits_){}
4195     , /*decltype(_impl_._cached_size_)*/{}
4196     , decltype(_impl_.client_name_){}
4197     , decltype(_impl_.heap_name_){}
4198     , decltype(_impl_.error_){::int64_t{0}}
4199     , decltype(_impl_.flags_){0u}
4200     , decltype(_impl_.mask_){0u}
4201     , decltype(_impl_.len_){::uint64_t{0u}}
4202   };
4203   _impl_.client_name_.InitDefault();
4204   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4205     _impl_.client_name_.Set("", GetArenaForAllocation());
4206   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4207   _impl_.heap_name_.InitDefault();
4208   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4209     _impl_.heap_name_.Set("", GetArenaForAllocation());
4210   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4211 }
4212 
~IonAllocBufferFallbackFtraceEvent()4213 IonAllocBufferFallbackFtraceEvent::~IonAllocBufferFallbackFtraceEvent() {
4214   // @@protoc_insertion_point(destructor:perfetto.protos.IonAllocBufferFallbackFtraceEvent)
4215   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
4216   (void)arena;
4217     return;
4218   }
4219   SharedDtor();
4220 }
4221 
SharedDtor()4222 inline void IonAllocBufferFallbackFtraceEvent::SharedDtor() {
4223   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4224   _impl_.client_name_.Destroy();
4225   _impl_.heap_name_.Destroy();
4226 }
4227 
SetCachedSize(int size) const4228 void IonAllocBufferFallbackFtraceEvent::SetCachedSize(int size) const {
4229   _impl_._cached_size_.Set(size);
4230 }
4231 
Clear()4232 void IonAllocBufferFallbackFtraceEvent::Clear() {
4233 // @@protoc_insertion_point(message_clear_start:perfetto.protos.IonAllocBufferFallbackFtraceEvent)
4234   ::uint32_t cached_has_bits = 0;
4235   // Prevent compiler warnings about cached_has_bits being unused
4236   (void) cached_has_bits;
4237 
4238   cached_has_bits = _impl_._has_bits_[0];
4239   if (cached_has_bits & 0x00000003u) {
4240     if (cached_has_bits & 0x00000001u) {
4241       _impl_.client_name_.ClearNonDefaultToEmpty();
4242     }
4243     if (cached_has_bits & 0x00000002u) {
4244       _impl_.heap_name_.ClearNonDefaultToEmpty();
4245     }
4246   }
4247   if (cached_has_bits & 0x0000003cu) {
4248     ::memset(&_impl_.error_, 0, static_cast<size_t>(
4249         reinterpret_cast<char*>(&_impl_.len_) -
4250         reinterpret_cast<char*>(&_impl_.error_)) + sizeof(_impl_.len_));
4251   }
4252   _impl_._has_bits_.Clear();
4253   _internal_metadata_.Clear<std::string>();
4254 }
4255 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4256 const char* IonAllocBufferFallbackFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4257 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4258   _Internal::HasBits has_bits{};
4259   while (!ctx->Done(&ptr)) {
4260     ::uint32_t tag;
4261     ptr = ::_pbi::ReadTag(ptr, &tag);
4262     switch (tag >> 3) {
4263       // optional string client_name = 1;
4264       case 1:
4265         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
4266           auto str = _internal_mutable_client_name();
4267           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4268           CHK_(ptr);
4269         } else {
4270           goto handle_unusual;
4271         }
4272         continue;
4273       // optional int64 error = 2;
4274       case 2:
4275         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
4276           _Internal::set_has_error(&has_bits);
4277           _impl_.error_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4278           CHK_(ptr);
4279         } else {
4280           goto handle_unusual;
4281         }
4282         continue;
4283       // optional uint32 flags = 3;
4284       case 3:
4285         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
4286           _Internal::set_has_flags(&has_bits);
4287           _impl_.flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4288           CHK_(ptr);
4289         } else {
4290           goto handle_unusual;
4291         }
4292         continue;
4293       // optional string heap_name = 4;
4294       case 4:
4295         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
4296           auto str = _internal_mutable_heap_name();
4297           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4298           CHK_(ptr);
4299         } else {
4300           goto handle_unusual;
4301         }
4302         continue;
4303       // optional uint64 len = 5;
4304       case 5:
4305         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
4306           _Internal::set_has_len(&has_bits);
4307           _impl_.len_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4308           CHK_(ptr);
4309         } else {
4310           goto handle_unusual;
4311         }
4312         continue;
4313       // optional uint32 mask = 6;
4314       case 6:
4315         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
4316           _Internal::set_has_mask(&has_bits);
4317           _impl_.mask_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4318           CHK_(ptr);
4319         } else {
4320           goto handle_unusual;
4321         }
4322         continue;
4323       default:
4324         goto handle_unusual;
4325     }  // switch
4326   handle_unusual:
4327     if ((tag == 0) || ((tag & 7) == 4)) {
4328       CHK_(ptr);
4329       ctx->SetLastTag(tag);
4330       goto message_done;
4331     }
4332     ptr = UnknownFieldParse(
4333         tag,
4334         _internal_metadata_.mutable_unknown_fields<std::string>(),
4335         ptr, ctx);
4336     CHK_(ptr != nullptr);
4337   }  // while
4338 message_done:
4339   _impl_._has_bits_.Or(has_bits);
4340   return ptr;
4341 failure:
4342   ptr = nullptr;
4343   goto message_done;
4344 #undef CHK_
4345 }
4346 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4347 ::uint8_t* IonAllocBufferFallbackFtraceEvent::_InternalSerialize(
4348     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4349   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.IonAllocBufferFallbackFtraceEvent)
4350   ::uint32_t cached_has_bits = 0;
4351   (void) cached_has_bits;
4352 
4353   cached_has_bits = _impl_._has_bits_[0];
4354   // optional string client_name = 1;
4355   if (cached_has_bits & 0x00000001u) {
4356     target = stream->WriteStringMaybeAliased(
4357         1, this->_internal_client_name(), target);
4358   }
4359 
4360   // optional int64 error = 2;
4361   if (cached_has_bits & 0x00000004u) {
4362     target = stream->EnsureSpace(target);
4363     target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_error(), target);
4364   }
4365 
4366   // optional uint32 flags = 3;
4367   if (cached_has_bits & 0x00000008u) {
4368     target = stream->EnsureSpace(target);
4369     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_flags(), target);
4370   }
4371 
4372   // optional string heap_name = 4;
4373   if (cached_has_bits & 0x00000002u) {
4374     target = stream->WriteStringMaybeAliased(
4375         4, this->_internal_heap_name(), target);
4376   }
4377 
4378   // optional uint64 len = 5;
4379   if (cached_has_bits & 0x00000020u) {
4380     target = stream->EnsureSpace(target);
4381     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_len(), target);
4382   }
4383 
4384   // optional uint32 mask = 6;
4385   if (cached_has_bits & 0x00000010u) {
4386     target = stream->EnsureSpace(target);
4387     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_mask(), target);
4388   }
4389 
4390   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4391     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
4392         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
4393   }
4394   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.IonAllocBufferFallbackFtraceEvent)
4395   return target;
4396 }
4397 
ByteSizeLong() const4398 size_t IonAllocBufferFallbackFtraceEvent::ByteSizeLong() const {
4399 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.IonAllocBufferFallbackFtraceEvent)
4400   size_t total_size = 0;
4401 
4402   ::uint32_t cached_has_bits = 0;
4403   // Prevent compiler warnings about cached_has_bits being unused
4404   (void) cached_has_bits;
4405 
4406   cached_has_bits = _impl_._has_bits_[0];
4407   if (cached_has_bits & 0x0000003fu) {
4408     // optional string client_name = 1;
4409     if (cached_has_bits & 0x00000001u) {
4410       total_size += 1 +
4411         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4412           this->_internal_client_name());
4413     }
4414 
4415     // optional string heap_name = 4;
4416     if (cached_has_bits & 0x00000002u) {
4417       total_size += 1 +
4418         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4419           this->_internal_heap_name());
4420     }
4421 
4422     // optional int64 error = 2;
4423     if (cached_has_bits & 0x00000004u) {
4424       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_error());
4425     }
4426 
4427     // optional uint32 flags = 3;
4428     if (cached_has_bits & 0x00000008u) {
4429       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_flags());
4430     }
4431 
4432     // optional uint32 mask = 6;
4433     if (cached_has_bits & 0x00000010u) {
4434       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_mask());
4435     }
4436 
4437     // optional uint64 len = 5;
4438     if (cached_has_bits & 0x00000020u) {
4439       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_len());
4440     }
4441 
4442   }
4443   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4444     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
4445   }
4446   int cached_size = ::_pbi::ToCachedSize(total_size);
4447   SetCachedSize(cached_size);
4448   return total_size;
4449 }
4450 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)4451 void IonAllocBufferFallbackFtraceEvent::CheckTypeAndMergeFrom(
4452     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
4453   MergeFrom(*::_pbi::DownCast<const IonAllocBufferFallbackFtraceEvent*>(
4454       &from));
4455 }
4456 
MergeFrom(const IonAllocBufferFallbackFtraceEvent & from)4457 void IonAllocBufferFallbackFtraceEvent::MergeFrom(const IonAllocBufferFallbackFtraceEvent& from) {
4458   IonAllocBufferFallbackFtraceEvent* const _this = this;
4459   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.IonAllocBufferFallbackFtraceEvent)
4460   GOOGLE_DCHECK_NE(&from, _this);
4461   ::uint32_t cached_has_bits = 0;
4462   (void) cached_has_bits;
4463 
4464   cached_has_bits = from._impl_._has_bits_[0];
4465   if (cached_has_bits & 0x0000003fu) {
4466     if (cached_has_bits & 0x00000001u) {
4467       _this->_internal_set_client_name(from._internal_client_name());
4468     }
4469     if (cached_has_bits & 0x00000002u) {
4470       _this->_internal_set_heap_name(from._internal_heap_name());
4471     }
4472     if (cached_has_bits & 0x00000004u) {
4473       _this->_impl_.error_ = from._impl_.error_;
4474     }
4475     if (cached_has_bits & 0x00000008u) {
4476       _this->_impl_.flags_ = from._impl_.flags_;
4477     }
4478     if (cached_has_bits & 0x00000010u) {
4479       _this->_impl_.mask_ = from._impl_.mask_;
4480     }
4481     if (cached_has_bits & 0x00000020u) {
4482       _this->_impl_.len_ = from._impl_.len_;
4483     }
4484     _this->_impl_._has_bits_[0] |= cached_has_bits;
4485   }
4486   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4487 }
4488 
CopyFrom(const IonAllocBufferFallbackFtraceEvent & from)4489 void IonAllocBufferFallbackFtraceEvent::CopyFrom(const IonAllocBufferFallbackFtraceEvent& from) {
4490 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.IonAllocBufferFallbackFtraceEvent)
4491   if (&from == this) return;
4492   Clear();
4493   MergeFrom(from);
4494 }
4495 
IsInitialized() const4496 bool IonAllocBufferFallbackFtraceEvent::IsInitialized() const {
4497   return true;
4498 }
4499 
InternalSwap(IonAllocBufferFallbackFtraceEvent * other)4500 void IonAllocBufferFallbackFtraceEvent::InternalSwap(IonAllocBufferFallbackFtraceEvent* other) {
4501   using std::swap;
4502   auto* lhs_arena = GetArenaForAllocation();
4503   auto* rhs_arena = other->GetArenaForAllocation();
4504   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4505   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4506   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4507       &_impl_.client_name_, lhs_arena,
4508       &other->_impl_.client_name_, rhs_arena
4509   );
4510   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4511       &_impl_.heap_name_, lhs_arena,
4512       &other->_impl_.heap_name_, rhs_arena
4513   );
4514   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
4515       PROTOBUF_FIELD_OFFSET(IonAllocBufferFallbackFtraceEvent, _impl_.len_)
4516       + sizeof(IonAllocBufferFallbackFtraceEvent::_impl_.len_)  // NOLINT
4517       - PROTOBUF_FIELD_OFFSET(IonAllocBufferFallbackFtraceEvent, _impl_.error_)>(
4518           reinterpret_cast<char*>(&_impl_.error_),
4519           reinterpret_cast<char*>(&other->_impl_.error_));
4520 }
4521 
GetTypeName() const4522 std::string IonAllocBufferFallbackFtraceEvent::GetTypeName() const {
4523   return "perfetto.protos.IonAllocBufferFallbackFtraceEvent";
4524 }
4525 
4526 
4527 // ===================================================================
4528 
4529 class IonAllocBufferStartFtraceEvent::_Internal {
4530  public:
4531   using HasBits = decltype(std::declval<IonAllocBufferStartFtraceEvent>()._impl_._has_bits_);
set_has_client_name(HasBits * has_bits)4532   static void set_has_client_name(HasBits* has_bits) {
4533     (*has_bits)[0] |= 1u;
4534   }
set_has_flags(HasBits * has_bits)4535   static void set_has_flags(HasBits* has_bits) {
4536     (*has_bits)[0] |= 4u;
4537   }
set_has_heap_name(HasBits * has_bits)4538   static void set_has_heap_name(HasBits* has_bits) {
4539     (*has_bits)[0] |= 2u;
4540   }
set_has_len(HasBits * has_bits)4541   static void set_has_len(HasBits* has_bits) {
4542     (*has_bits)[0] |= 16u;
4543   }
set_has_mask(HasBits * has_bits)4544   static void set_has_mask(HasBits* has_bits) {
4545     (*has_bits)[0] |= 8u;
4546   }
4547 };
4548 
IonAllocBufferStartFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4549 IonAllocBufferStartFtraceEvent::IonAllocBufferStartFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4550                          bool is_message_owned)
4551   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
4552   SharedCtor(arena, is_message_owned);
4553   // @@protoc_insertion_point(arena_constructor:perfetto.protos.IonAllocBufferStartFtraceEvent)
4554 }
IonAllocBufferStartFtraceEvent(const IonAllocBufferStartFtraceEvent & from)4555 IonAllocBufferStartFtraceEvent::IonAllocBufferStartFtraceEvent(const IonAllocBufferStartFtraceEvent& from)
4556   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
4557   IonAllocBufferStartFtraceEvent* const _this = this; (void)_this;
4558   new (&_impl_) Impl_{
4559       decltype(_impl_._has_bits_){from._impl_._has_bits_}
4560     , /*decltype(_impl_._cached_size_)*/{}
4561     , decltype(_impl_.client_name_){}
4562     , decltype(_impl_.heap_name_){}
4563     , decltype(_impl_.flags_){}
4564     , decltype(_impl_.mask_){}
4565     , decltype(_impl_.len_){}};
4566 
4567   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4568   _impl_.client_name_.InitDefault();
4569   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4570     _impl_.client_name_.Set("", GetArenaForAllocation());
4571   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4572   if (from._internal_has_client_name()) {
4573     _this->_impl_.client_name_.Set(from._internal_client_name(),
4574       _this->GetArenaForAllocation());
4575   }
4576   _impl_.heap_name_.InitDefault();
4577   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4578     _impl_.heap_name_.Set("", GetArenaForAllocation());
4579   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4580   if (from._internal_has_heap_name()) {
4581     _this->_impl_.heap_name_.Set(from._internal_heap_name(),
4582       _this->GetArenaForAllocation());
4583   }
4584   ::memcpy(&_impl_.flags_, &from._impl_.flags_,
4585     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.len_) -
4586     reinterpret_cast<char*>(&_impl_.flags_)) + sizeof(_impl_.len_));
4587   // @@protoc_insertion_point(copy_constructor:perfetto.protos.IonAllocBufferStartFtraceEvent)
4588 }
4589 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)4590 inline void IonAllocBufferStartFtraceEvent::SharedCtor(
4591     ::_pb::Arena* arena, bool is_message_owned) {
4592   (void)arena;
4593   (void)is_message_owned;
4594   new (&_impl_) Impl_{
4595       decltype(_impl_._has_bits_){}
4596     , /*decltype(_impl_._cached_size_)*/{}
4597     , decltype(_impl_.client_name_){}
4598     , decltype(_impl_.heap_name_){}
4599     , decltype(_impl_.flags_){0u}
4600     , decltype(_impl_.mask_){0u}
4601     , decltype(_impl_.len_){::uint64_t{0u}}
4602   };
4603   _impl_.client_name_.InitDefault();
4604   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4605     _impl_.client_name_.Set("", GetArenaForAllocation());
4606   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4607   _impl_.heap_name_.InitDefault();
4608   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4609     _impl_.heap_name_.Set("", GetArenaForAllocation());
4610   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4611 }
4612 
~IonAllocBufferStartFtraceEvent()4613 IonAllocBufferStartFtraceEvent::~IonAllocBufferStartFtraceEvent() {
4614   // @@protoc_insertion_point(destructor:perfetto.protos.IonAllocBufferStartFtraceEvent)
4615   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
4616   (void)arena;
4617     return;
4618   }
4619   SharedDtor();
4620 }
4621 
SharedDtor()4622 inline void IonAllocBufferStartFtraceEvent::SharedDtor() {
4623   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4624   _impl_.client_name_.Destroy();
4625   _impl_.heap_name_.Destroy();
4626 }
4627 
SetCachedSize(int size) const4628 void IonAllocBufferStartFtraceEvent::SetCachedSize(int size) const {
4629   _impl_._cached_size_.Set(size);
4630 }
4631 
Clear()4632 void IonAllocBufferStartFtraceEvent::Clear() {
4633 // @@protoc_insertion_point(message_clear_start:perfetto.protos.IonAllocBufferStartFtraceEvent)
4634   ::uint32_t cached_has_bits = 0;
4635   // Prevent compiler warnings about cached_has_bits being unused
4636   (void) cached_has_bits;
4637 
4638   cached_has_bits = _impl_._has_bits_[0];
4639   if (cached_has_bits & 0x00000003u) {
4640     if (cached_has_bits & 0x00000001u) {
4641       _impl_.client_name_.ClearNonDefaultToEmpty();
4642     }
4643     if (cached_has_bits & 0x00000002u) {
4644       _impl_.heap_name_.ClearNonDefaultToEmpty();
4645     }
4646   }
4647   if (cached_has_bits & 0x0000001cu) {
4648     ::memset(&_impl_.flags_, 0, static_cast<size_t>(
4649         reinterpret_cast<char*>(&_impl_.len_) -
4650         reinterpret_cast<char*>(&_impl_.flags_)) + sizeof(_impl_.len_));
4651   }
4652   _impl_._has_bits_.Clear();
4653   _internal_metadata_.Clear<std::string>();
4654 }
4655 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4656 const char* IonAllocBufferStartFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4657 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4658   _Internal::HasBits has_bits{};
4659   while (!ctx->Done(&ptr)) {
4660     ::uint32_t tag;
4661     ptr = ::_pbi::ReadTag(ptr, &tag);
4662     switch (tag >> 3) {
4663       // optional string client_name = 1;
4664       case 1:
4665         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
4666           auto str = _internal_mutable_client_name();
4667           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4668           CHK_(ptr);
4669         } else {
4670           goto handle_unusual;
4671         }
4672         continue;
4673       // optional uint32 flags = 2;
4674       case 2:
4675         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
4676           _Internal::set_has_flags(&has_bits);
4677           _impl_.flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4678           CHK_(ptr);
4679         } else {
4680           goto handle_unusual;
4681         }
4682         continue;
4683       // optional string heap_name = 3;
4684       case 3:
4685         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
4686           auto str = _internal_mutable_heap_name();
4687           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4688           CHK_(ptr);
4689         } else {
4690           goto handle_unusual;
4691         }
4692         continue;
4693       // optional uint64 len = 4;
4694       case 4:
4695         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
4696           _Internal::set_has_len(&has_bits);
4697           _impl_.len_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4698           CHK_(ptr);
4699         } else {
4700           goto handle_unusual;
4701         }
4702         continue;
4703       // optional uint32 mask = 5;
4704       case 5:
4705         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
4706           _Internal::set_has_mask(&has_bits);
4707           _impl_.mask_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4708           CHK_(ptr);
4709         } else {
4710           goto handle_unusual;
4711         }
4712         continue;
4713       default:
4714         goto handle_unusual;
4715     }  // switch
4716   handle_unusual:
4717     if ((tag == 0) || ((tag & 7) == 4)) {
4718       CHK_(ptr);
4719       ctx->SetLastTag(tag);
4720       goto message_done;
4721     }
4722     ptr = UnknownFieldParse(
4723         tag,
4724         _internal_metadata_.mutable_unknown_fields<std::string>(),
4725         ptr, ctx);
4726     CHK_(ptr != nullptr);
4727   }  // while
4728 message_done:
4729   _impl_._has_bits_.Or(has_bits);
4730   return ptr;
4731 failure:
4732   ptr = nullptr;
4733   goto message_done;
4734 #undef CHK_
4735 }
4736 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4737 ::uint8_t* IonAllocBufferStartFtraceEvent::_InternalSerialize(
4738     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4739   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.IonAllocBufferStartFtraceEvent)
4740   ::uint32_t cached_has_bits = 0;
4741   (void) cached_has_bits;
4742 
4743   cached_has_bits = _impl_._has_bits_[0];
4744   // optional string client_name = 1;
4745   if (cached_has_bits & 0x00000001u) {
4746     target = stream->WriteStringMaybeAliased(
4747         1, this->_internal_client_name(), target);
4748   }
4749 
4750   // optional uint32 flags = 2;
4751   if (cached_has_bits & 0x00000004u) {
4752     target = stream->EnsureSpace(target);
4753     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_flags(), target);
4754   }
4755 
4756   // optional string heap_name = 3;
4757   if (cached_has_bits & 0x00000002u) {
4758     target = stream->WriteStringMaybeAliased(
4759         3, this->_internal_heap_name(), target);
4760   }
4761 
4762   // optional uint64 len = 4;
4763   if (cached_has_bits & 0x00000010u) {
4764     target = stream->EnsureSpace(target);
4765     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_len(), target);
4766   }
4767 
4768   // optional uint32 mask = 5;
4769   if (cached_has_bits & 0x00000008u) {
4770     target = stream->EnsureSpace(target);
4771     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_mask(), target);
4772   }
4773 
4774   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4775     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
4776         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
4777   }
4778   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.IonAllocBufferStartFtraceEvent)
4779   return target;
4780 }
4781 
ByteSizeLong() const4782 size_t IonAllocBufferStartFtraceEvent::ByteSizeLong() const {
4783 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.IonAllocBufferStartFtraceEvent)
4784   size_t total_size = 0;
4785 
4786   ::uint32_t cached_has_bits = 0;
4787   // Prevent compiler warnings about cached_has_bits being unused
4788   (void) cached_has_bits;
4789 
4790   cached_has_bits = _impl_._has_bits_[0];
4791   if (cached_has_bits & 0x0000001fu) {
4792     // optional string client_name = 1;
4793     if (cached_has_bits & 0x00000001u) {
4794       total_size += 1 +
4795         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4796           this->_internal_client_name());
4797     }
4798 
4799     // optional string heap_name = 3;
4800     if (cached_has_bits & 0x00000002u) {
4801       total_size += 1 +
4802         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4803           this->_internal_heap_name());
4804     }
4805 
4806     // optional uint32 flags = 2;
4807     if (cached_has_bits & 0x00000004u) {
4808       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_flags());
4809     }
4810 
4811     // optional uint32 mask = 5;
4812     if (cached_has_bits & 0x00000008u) {
4813       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_mask());
4814     }
4815 
4816     // optional uint64 len = 4;
4817     if (cached_has_bits & 0x00000010u) {
4818       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_len());
4819     }
4820 
4821   }
4822   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4823     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
4824   }
4825   int cached_size = ::_pbi::ToCachedSize(total_size);
4826   SetCachedSize(cached_size);
4827   return total_size;
4828 }
4829 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)4830 void IonAllocBufferStartFtraceEvent::CheckTypeAndMergeFrom(
4831     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
4832   MergeFrom(*::_pbi::DownCast<const IonAllocBufferStartFtraceEvent*>(
4833       &from));
4834 }
4835 
MergeFrom(const IonAllocBufferStartFtraceEvent & from)4836 void IonAllocBufferStartFtraceEvent::MergeFrom(const IonAllocBufferStartFtraceEvent& from) {
4837   IonAllocBufferStartFtraceEvent* const _this = this;
4838   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.IonAllocBufferStartFtraceEvent)
4839   GOOGLE_DCHECK_NE(&from, _this);
4840   ::uint32_t cached_has_bits = 0;
4841   (void) cached_has_bits;
4842 
4843   cached_has_bits = from._impl_._has_bits_[0];
4844   if (cached_has_bits & 0x0000001fu) {
4845     if (cached_has_bits & 0x00000001u) {
4846       _this->_internal_set_client_name(from._internal_client_name());
4847     }
4848     if (cached_has_bits & 0x00000002u) {
4849       _this->_internal_set_heap_name(from._internal_heap_name());
4850     }
4851     if (cached_has_bits & 0x00000004u) {
4852       _this->_impl_.flags_ = from._impl_.flags_;
4853     }
4854     if (cached_has_bits & 0x00000008u) {
4855       _this->_impl_.mask_ = from._impl_.mask_;
4856     }
4857     if (cached_has_bits & 0x00000010u) {
4858       _this->_impl_.len_ = from._impl_.len_;
4859     }
4860     _this->_impl_._has_bits_[0] |= cached_has_bits;
4861   }
4862   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4863 }
4864 
CopyFrom(const IonAllocBufferStartFtraceEvent & from)4865 void IonAllocBufferStartFtraceEvent::CopyFrom(const IonAllocBufferStartFtraceEvent& from) {
4866 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.IonAllocBufferStartFtraceEvent)
4867   if (&from == this) return;
4868   Clear();
4869   MergeFrom(from);
4870 }
4871 
IsInitialized() const4872 bool IonAllocBufferStartFtraceEvent::IsInitialized() const {
4873   return true;
4874 }
4875 
InternalSwap(IonAllocBufferStartFtraceEvent * other)4876 void IonAllocBufferStartFtraceEvent::InternalSwap(IonAllocBufferStartFtraceEvent* other) {
4877   using std::swap;
4878   auto* lhs_arena = GetArenaForAllocation();
4879   auto* rhs_arena = other->GetArenaForAllocation();
4880   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4881   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4882   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4883       &_impl_.client_name_, lhs_arena,
4884       &other->_impl_.client_name_, rhs_arena
4885   );
4886   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4887       &_impl_.heap_name_, lhs_arena,
4888       &other->_impl_.heap_name_, rhs_arena
4889   );
4890   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
4891       PROTOBUF_FIELD_OFFSET(IonAllocBufferStartFtraceEvent, _impl_.len_)
4892       + sizeof(IonAllocBufferStartFtraceEvent::_impl_.len_)  // NOLINT
4893       - PROTOBUF_FIELD_OFFSET(IonAllocBufferStartFtraceEvent, _impl_.flags_)>(
4894           reinterpret_cast<char*>(&_impl_.flags_),
4895           reinterpret_cast<char*>(&other->_impl_.flags_));
4896 }
4897 
GetTypeName() const4898 std::string IonAllocBufferStartFtraceEvent::GetTypeName() const {
4899   return "perfetto.protos.IonAllocBufferStartFtraceEvent";
4900 }
4901 
4902 
4903 // ===================================================================
4904 
4905 class IonCpAllocRetryFtraceEvent::_Internal {
4906  public:
4907   using HasBits = decltype(std::declval<IonCpAllocRetryFtraceEvent>()._impl_._has_bits_);
set_has_tries(HasBits * has_bits)4908   static void set_has_tries(HasBits* has_bits) {
4909     (*has_bits)[0] |= 1u;
4910   }
4911 };
4912 
IonCpAllocRetryFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4913 IonCpAllocRetryFtraceEvent::IonCpAllocRetryFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4914                          bool is_message_owned)
4915   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
4916   SharedCtor(arena, is_message_owned);
4917   // @@protoc_insertion_point(arena_constructor:perfetto.protos.IonCpAllocRetryFtraceEvent)
4918 }
IonCpAllocRetryFtraceEvent(const IonCpAllocRetryFtraceEvent & from)4919 IonCpAllocRetryFtraceEvent::IonCpAllocRetryFtraceEvent(const IonCpAllocRetryFtraceEvent& from)
4920   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
4921   IonCpAllocRetryFtraceEvent* const _this = this; (void)_this;
4922   new (&_impl_) Impl_{
4923       decltype(_impl_._has_bits_){from._impl_._has_bits_}
4924     , /*decltype(_impl_._cached_size_)*/{}
4925     , decltype(_impl_.tries_){}};
4926 
4927   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4928   _this->_impl_.tries_ = from._impl_.tries_;
4929   // @@protoc_insertion_point(copy_constructor:perfetto.protos.IonCpAllocRetryFtraceEvent)
4930 }
4931 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)4932 inline void IonCpAllocRetryFtraceEvent::SharedCtor(
4933     ::_pb::Arena* arena, bool is_message_owned) {
4934   (void)arena;
4935   (void)is_message_owned;
4936   new (&_impl_) Impl_{
4937       decltype(_impl_._has_bits_){}
4938     , /*decltype(_impl_._cached_size_)*/{}
4939     , decltype(_impl_.tries_){0}
4940   };
4941 }
4942 
~IonCpAllocRetryFtraceEvent()4943 IonCpAllocRetryFtraceEvent::~IonCpAllocRetryFtraceEvent() {
4944   // @@protoc_insertion_point(destructor:perfetto.protos.IonCpAllocRetryFtraceEvent)
4945   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
4946   (void)arena;
4947     return;
4948   }
4949   SharedDtor();
4950 }
4951 
SharedDtor()4952 inline void IonCpAllocRetryFtraceEvent::SharedDtor() {
4953   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4954 }
4955 
SetCachedSize(int size) const4956 void IonCpAllocRetryFtraceEvent::SetCachedSize(int size) const {
4957   _impl_._cached_size_.Set(size);
4958 }
4959 
Clear()4960 void IonCpAllocRetryFtraceEvent::Clear() {
4961 // @@protoc_insertion_point(message_clear_start:perfetto.protos.IonCpAllocRetryFtraceEvent)
4962   ::uint32_t cached_has_bits = 0;
4963   // Prevent compiler warnings about cached_has_bits being unused
4964   (void) cached_has_bits;
4965 
4966   _impl_.tries_ = 0;
4967   _impl_._has_bits_.Clear();
4968   _internal_metadata_.Clear<std::string>();
4969 }
4970 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4971 const char* IonCpAllocRetryFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4972 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4973   _Internal::HasBits has_bits{};
4974   while (!ctx->Done(&ptr)) {
4975     ::uint32_t tag;
4976     ptr = ::_pbi::ReadTag(ptr, &tag);
4977     switch (tag >> 3) {
4978       // optional int32 tries = 1;
4979       case 1:
4980         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
4981           _Internal::set_has_tries(&has_bits);
4982           _impl_.tries_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4983           CHK_(ptr);
4984         } else {
4985           goto handle_unusual;
4986         }
4987         continue;
4988       default:
4989         goto handle_unusual;
4990     }  // switch
4991   handle_unusual:
4992     if ((tag == 0) || ((tag & 7) == 4)) {
4993       CHK_(ptr);
4994       ctx->SetLastTag(tag);
4995       goto message_done;
4996     }
4997     ptr = UnknownFieldParse(
4998         tag,
4999         _internal_metadata_.mutable_unknown_fields<std::string>(),
5000         ptr, ctx);
5001     CHK_(ptr != nullptr);
5002   }  // while
5003 message_done:
5004   _impl_._has_bits_.Or(has_bits);
5005   return ptr;
5006 failure:
5007   ptr = nullptr;
5008   goto message_done;
5009 #undef CHK_
5010 }
5011 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5012 ::uint8_t* IonCpAllocRetryFtraceEvent::_InternalSerialize(
5013     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5014   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.IonCpAllocRetryFtraceEvent)
5015   ::uint32_t cached_has_bits = 0;
5016   (void) cached_has_bits;
5017 
5018   cached_has_bits = _impl_._has_bits_[0];
5019   // optional int32 tries = 1;
5020   if (cached_has_bits & 0x00000001u) {
5021     target = stream->EnsureSpace(target);
5022     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_tries(), target);
5023   }
5024 
5025   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5026     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
5027         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
5028   }
5029   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.IonCpAllocRetryFtraceEvent)
5030   return target;
5031 }
5032 
ByteSizeLong() const5033 size_t IonCpAllocRetryFtraceEvent::ByteSizeLong() const {
5034 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.IonCpAllocRetryFtraceEvent)
5035   size_t total_size = 0;
5036 
5037   ::uint32_t cached_has_bits = 0;
5038   // Prevent compiler warnings about cached_has_bits being unused
5039   (void) cached_has_bits;
5040 
5041   // optional int32 tries = 1;
5042   cached_has_bits = _impl_._has_bits_[0];
5043   if (cached_has_bits & 0x00000001u) {
5044     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_tries());
5045   }
5046 
5047   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5048     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
5049   }
5050   int cached_size = ::_pbi::ToCachedSize(total_size);
5051   SetCachedSize(cached_size);
5052   return total_size;
5053 }
5054 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)5055 void IonCpAllocRetryFtraceEvent::CheckTypeAndMergeFrom(
5056     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
5057   MergeFrom(*::_pbi::DownCast<const IonCpAllocRetryFtraceEvent*>(
5058       &from));
5059 }
5060 
MergeFrom(const IonCpAllocRetryFtraceEvent & from)5061 void IonCpAllocRetryFtraceEvent::MergeFrom(const IonCpAllocRetryFtraceEvent& from) {
5062   IonCpAllocRetryFtraceEvent* const _this = this;
5063   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.IonCpAllocRetryFtraceEvent)
5064   GOOGLE_DCHECK_NE(&from, _this);
5065   ::uint32_t cached_has_bits = 0;
5066   (void) cached_has_bits;
5067 
5068   if (from._internal_has_tries()) {
5069     _this->_internal_set_tries(from._internal_tries());
5070   }
5071   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5072 }
5073 
CopyFrom(const IonCpAllocRetryFtraceEvent & from)5074 void IonCpAllocRetryFtraceEvent::CopyFrom(const IonCpAllocRetryFtraceEvent& from) {
5075 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.IonCpAllocRetryFtraceEvent)
5076   if (&from == this) return;
5077   Clear();
5078   MergeFrom(from);
5079 }
5080 
IsInitialized() const5081 bool IonCpAllocRetryFtraceEvent::IsInitialized() const {
5082   return true;
5083 }
5084 
InternalSwap(IonCpAllocRetryFtraceEvent * other)5085 void IonCpAllocRetryFtraceEvent::InternalSwap(IonCpAllocRetryFtraceEvent* other) {
5086   using std::swap;
5087   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5088   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
5089   swap(_impl_.tries_, other->_impl_.tries_);
5090 }
5091 
GetTypeName() const5092 std::string IonCpAllocRetryFtraceEvent::GetTypeName() const {
5093   return "perfetto.protos.IonCpAllocRetryFtraceEvent";
5094 }
5095 
5096 
5097 // ===================================================================
5098 
5099 class IonCpSecureBufferEndFtraceEvent::_Internal {
5100  public:
5101   using HasBits = decltype(std::declval<IonCpSecureBufferEndFtraceEvent>()._impl_._has_bits_);
set_has_align(HasBits * has_bits)5102   static void set_has_align(HasBits* has_bits) {
5103     (*has_bits)[0] |= 2u;
5104   }
set_has_flags(HasBits * has_bits)5105   static void set_has_flags(HasBits* has_bits) {
5106     (*has_bits)[0] |= 4u;
5107   }
set_has_heap_name(HasBits * has_bits)5108   static void set_has_heap_name(HasBits* has_bits) {
5109     (*has_bits)[0] |= 1u;
5110   }
set_has_len(HasBits * has_bits)5111   static void set_has_len(HasBits* has_bits) {
5112     (*has_bits)[0] |= 8u;
5113   }
5114 };
5115 
IonCpSecureBufferEndFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5116 IonCpSecureBufferEndFtraceEvent::IonCpSecureBufferEndFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5117                          bool is_message_owned)
5118   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
5119   SharedCtor(arena, is_message_owned);
5120   // @@protoc_insertion_point(arena_constructor:perfetto.protos.IonCpSecureBufferEndFtraceEvent)
5121 }
IonCpSecureBufferEndFtraceEvent(const IonCpSecureBufferEndFtraceEvent & from)5122 IonCpSecureBufferEndFtraceEvent::IonCpSecureBufferEndFtraceEvent(const IonCpSecureBufferEndFtraceEvent& from)
5123   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
5124   IonCpSecureBufferEndFtraceEvent* const _this = this; (void)_this;
5125   new (&_impl_) Impl_{
5126       decltype(_impl_._has_bits_){from._impl_._has_bits_}
5127     , /*decltype(_impl_._cached_size_)*/{}
5128     , decltype(_impl_.heap_name_){}
5129     , decltype(_impl_.align_){}
5130     , decltype(_impl_.flags_){}
5131     , decltype(_impl_.len_){}};
5132 
5133   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5134   _impl_.heap_name_.InitDefault();
5135   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5136     _impl_.heap_name_.Set("", GetArenaForAllocation());
5137   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5138   if (from._internal_has_heap_name()) {
5139     _this->_impl_.heap_name_.Set(from._internal_heap_name(),
5140       _this->GetArenaForAllocation());
5141   }
5142   ::memcpy(&_impl_.align_, &from._impl_.align_,
5143     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.len_) -
5144     reinterpret_cast<char*>(&_impl_.align_)) + sizeof(_impl_.len_));
5145   // @@protoc_insertion_point(copy_constructor:perfetto.protos.IonCpSecureBufferEndFtraceEvent)
5146 }
5147 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5148 inline void IonCpSecureBufferEndFtraceEvent::SharedCtor(
5149     ::_pb::Arena* arena, bool is_message_owned) {
5150   (void)arena;
5151   (void)is_message_owned;
5152   new (&_impl_) Impl_{
5153       decltype(_impl_._has_bits_){}
5154     , /*decltype(_impl_._cached_size_)*/{}
5155     , decltype(_impl_.heap_name_){}
5156     , decltype(_impl_.align_){::uint64_t{0u}}
5157     , decltype(_impl_.flags_){::uint64_t{0u}}
5158     , decltype(_impl_.len_){::uint64_t{0u}}
5159   };
5160   _impl_.heap_name_.InitDefault();
5161   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5162     _impl_.heap_name_.Set("", GetArenaForAllocation());
5163   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5164 }
5165 
~IonCpSecureBufferEndFtraceEvent()5166 IonCpSecureBufferEndFtraceEvent::~IonCpSecureBufferEndFtraceEvent() {
5167   // @@protoc_insertion_point(destructor:perfetto.protos.IonCpSecureBufferEndFtraceEvent)
5168   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
5169   (void)arena;
5170     return;
5171   }
5172   SharedDtor();
5173 }
5174 
SharedDtor()5175 inline void IonCpSecureBufferEndFtraceEvent::SharedDtor() {
5176   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5177   _impl_.heap_name_.Destroy();
5178 }
5179 
SetCachedSize(int size) const5180 void IonCpSecureBufferEndFtraceEvent::SetCachedSize(int size) const {
5181   _impl_._cached_size_.Set(size);
5182 }
5183 
Clear()5184 void IonCpSecureBufferEndFtraceEvent::Clear() {
5185 // @@protoc_insertion_point(message_clear_start:perfetto.protos.IonCpSecureBufferEndFtraceEvent)
5186   ::uint32_t cached_has_bits = 0;
5187   // Prevent compiler warnings about cached_has_bits being unused
5188   (void) cached_has_bits;
5189 
5190   cached_has_bits = _impl_._has_bits_[0];
5191   if (cached_has_bits & 0x00000001u) {
5192     _impl_.heap_name_.ClearNonDefaultToEmpty();
5193   }
5194   if (cached_has_bits & 0x0000000eu) {
5195     ::memset(&_impl_.align_, 0, static_cast<size_t>(
5196         reinterpret_cast<char*>(&_impl_.len_) -
5197         reinterpret_cast<char*>(&_impl_.align_)) + sizeof(_impl_.len_));
5198   }
5199   _impl_._has_bits_.Clear();
5200   _internal_metadata_.Clear<std::string>();
5201 }
5202 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5203 const char* IonCpSecureBufferEndFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5204 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5205   _Internal::HasBits has_bits{};
5206   while (!ctx->Done(&ptr)) {
5207     ::uint32_t tag;
5208     ptr = ::_pbi::ReadTag(ptr, &tag);
5209     switch (tag >> 3) {
5210       // optional uint64 align = 1;
5211       case 1:
5212         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
5213           _Internal::set_has_align(&has_bits);
5214           _impl_.align_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5215           CHK_(ptr);
5216         } else {
5217           goto handle_unusual;
5218         }
5219         continue;
5220       // optional uint64 flags = 2;
5221       case 2:
5222         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
5223           _Internal::set_has_flags(&has_bits);
5224           _impl_.flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5225           CHK_(ptr);
5226         } else {
5227           goto handle_unusual;
5228         }
5229         continue;
5230       // optional string heap_name = 3;
5231       case 3:
5232         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
5233           auto str = _internal_mutable_heap_name();
5234           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
5235           CHK_(ptr);
5236         } else {
5237           goto handle_unusual;
5238         }
5239         continue;
5240       // optional uint64 len = 4;
5241       case 4:
5242         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
5243           _Internal::set_has_len(&has_bits);
5244           _impl_.len_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5245           CHK_(ptr);
5246         } else {
5247           goto handle_unusual;
5248         }
5249         continue;
5250       default:
5251         goto handle_unusual;
5252     }  // switch
5253   handle_unusual:
5254     if ((tag == 0) || ((tag & 7) == 4)) {
5255       CHK_(ptr);
5256       ctx->SetLastTag(tag);
5257       goto message_done;
5258     }
5259     ptr = UnknownFieldParse(
5260         tag,
5261         _internal_metadata_.mutable_unknown_fields<std::string>(),
5262         ptr, ctx);
5263     CHK_(ptr != nullptr);
5264   }  // while
5265 message_done:
5266   _impl_._has_bits_.Or(has_bits);
5267   return ptr;
5268 failure:
5269   ptr = nullptr;
5270   goto message_done;
5271 #undef CHK_
5272 }
5273 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5274 ::uint8_t* IonCpSecureBufferEndFtraceEvent::_InternalSerialize(
5275     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5276   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.IonCpSecureBufferEndFtraceEvent)
5277   ::uint32_t cached_has_bits = 0;
5278   (void) cached_has_bits;
5279 
5280   cached_has_bits = _impl_._has_bits_[0];
5281   // optional uint64 align = 1;
5282   if (cached_has_bits & 0x00000002u) {
5283     target = stream->EnsureSpace(target);
5284     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_align(), target);
5285   }
5286 
5287   // optional uint64 flags = 2;
5288   if (cached_has_bits & 0x00000004u) {
5289     target = stream->EnsureSpace(target);
5290     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_flags(), target);
5291   }
5292 
5293   // optional string heap_name = 3;
5294   if (cached_has_bits & 0x00000001u) {
5295     target = stream->WriteStringMaybeAliased(
5296         3, this->_internal_heap_name(), target);
5297   }
5298 
5299   // optional uint64 len = 4;
5300   if (cached_has_bits & 0x00000008u) {
5301     target = stream->EnsureSpace(target);
5302     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_len(), target);
5303   }
5304 
5305   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5306     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
5307         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
5308   }
5309   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.IonCpSecureBufferEndFtraceEvent)
5310   return target;
5311 }
5312 
ByteSizeLong() const5313 size_t IonCpSecureBufferEndFtraceEvent::ByteSizeLong() const {
5314 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.IonCpSecureBufferEndFtraceEvent)
5315   size_t total_size = 0;
5316 
5317   ::uint32_t cached_has_bits = 0;
5318   // Prevent compiler warnings about cached_has_bits being unused
5319   (void) cached_has_bits;
5320 
5321   cached_has_bits = _impl_._has_bits_[0];
5322   if (cached_has_bits & 0x0000000fu) {
5323     // optional string heap_name = 3;
5324     if (cached_has_bits & 0x00000001u) {
5325       total_size += 1 +
5326         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5327           this->_internal_heap_name());
5328     }
5329 
5330     // optional uint64 align = 1;
5331     if (cached_has_bits & 0x00000002u) {
5332       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_align());
5333     }
5334 
5335     // optional uint64 flags = 2;
5336     if (cached_has_bits & 0x00000004u) {
5337       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_flags());
5338     }
5339 
5340     // optional uint64 len = 4;
5341     if (cached_has_bits & 0x00000008u) {
5342       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_len());
5343     }
5344 
5345   }
5346   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5347     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
5348   }
5349   int cached_size = ::_pbi::ToCachedSize(total_size);
5350   SetCachedSize(cached_size);
5351   return total_size;
5352 }
5353 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)5354 void IonCpSecureBufferEndFtraceEvent::CheckTypeAndMergeFrom(
5355     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
5356   MergeFrom(*::_pbi::DownCast<const IonCpSecureBufferEndFtraceEvent*>(
5357       &from));
5358 }
5359 
MergeFrom(const IonCpSecureBufferEndFtraceEvent & from)5360 void IonCpSecureBufferEndFtraceEvent::MergeFrom(const IonCpSecureBufferEndFtraceEvent& from) {
5361   IonCpSecureBufferEndFtraceEvent* const _this = this;
5362   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.IonCpSecureBufferEndFtraceEvent)
5363   GOOGLE_DCHECK_NE(&from, _this);
5364   ::uint32_t cached_has_bits = 0;
5365   (void) cached_has_bits;
5366 
5367   cached_has_bits = from._impl_._has_bits_[0];
5368   if (cached_has_bits & 0x0000000fu) {
5369     if (cached_has_bits & 0x00000001u) {
5370       _this->_internal_set_heap_name(from._internal_heap_name());
5371     }
5372     if (cached_has_bits & 0x00000002u) {
5373       _this->_impl_.align_ = from._impl_.align_;
5374     }
5375     if (cached_has_bits & 0x00000004u) {
5376       _this->_impl_.flags_ = from._impl_.flags_;
5377     }
5378     if (cached_has_bits & 0x00000008u) {
5379       _this->_impl_.len_ = from._impl_.len_;
5380     }
5381     _this->_impl_._has_bits_[0] |= cached_has_bits;
5382   }
5383   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5384 }
5385 
CopyFrom(const IonCpSecureBufferEndFtraceEvent & from)5386 void IonCpSecureBufferEndFtraceEvent::CopyFrom(const IonCpSecureBufferEndFtraceEvent& from) {
5387 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.IonCpSecureBufferEndFtraceEvent)
5388   if (&from == this) return;
5389   Clear();
5390   MergeFrom(from);
5391 }
5392 
IsInitialized() const5393 bool IonCpSecureBufferEndFtraceEvent::IsInitialized() const {
5394   return true;
5395 }
5396 
InternalSwap(IonCpSecureBufferEndFtraceEvent * other)5397 void IonCpSecureBufferEndFtraceEvent::InternalSwap(IonCpSecureBufferEndFtraceEvent* other) {
5398   using std::swap;
5399   auto* lhs_arena = GetArenaForAllocation();
5400   auto* rhs_arena = other->GetArenaForAllocation();
5401   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5402   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
5403   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
5404       &_impl_.heap_name_, lhs_arena,
5405       &other->_impl_.heap_name_, rhs_arena
5406   );
5407   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
5408       PROTOBUF_FIELD_OFFSET(IonCpSecureBufferEndFtraceEvent, _impl_.len_)
5409       + sizeof(IonCpSecureBufferEndFtraceEvent::_impl_.len_)  // NOLINT
5410       - PROTOBUF_FIELD_OFFSET(IonCpSecureBufferEndFtraceEvent, _impl_.align_)>(
5411           reinterpret_cast<char*>(&_impl_.align_),
5412           reinterpret_cast<char*>(&other->_impl_.align_));
5413 }
5414 
GetTypeName() const5415 std::string IonCpSecureBufferEndFtraceEvent::GetTypeName() const {
5416   return "perfetto.protos.IonCpSecureBufferEndFtraceEvent";
5417 }
5418 
5419 
5420 // ===================================================================
5421 
5422 class IonCpSecureBufferStartFtraceEvent::_Internal {
5423  public:
5424   using HasBits = decltype(std::declval<IonCpSecureBufferStartFtraceEvent>()._impl_._has_bits_);
set_has_align(HasBits * has_bits)5425   static void set_has_align(HasBits* has_bits) {
5426     (*has_bits)[0] |= 2u;
5427   }
set_has_flags(HasBits * has_bits)5428   static void set_has_flags(HasBits* has_bits) {
5429     (*has_bits)[0] |= 4u;
5430   }
set_has_heap_name(HasBits * has_bits)5431   static void set_has_heap_name(HasBits* has_bits) {
5432     (*has_bits)[0] |= 1u;
5433   }
set_has_len(HasBits * has_bits)5434   static void set_has_len(HasBits* has_bits) {
5435     (*has_bits)[0] |= 8u;
5436   }
5437 };
5438 
IonCpSecureBufferStartFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5439 IonCpSecureBufferStartFtraceEvent::IonCpSecureBufferStartFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5440                          bool is_message_owned)
5441   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
5442   SharedCtor(arena, is_message_owned);
5443   // @@protoc_insertion_point(arena_constructor:perfetto.protos.IonCpSecureBufferStartFtraceEvent)
5444 }
IonCpSecureBufferStartFtraceEvent(const IonCpSecureBufferStartFtraceEvent & from)5445 IonCpSecureBufferStartFtraceEvent::IonCpSecureBufferStartFtraceEvent(const IonCpSecureBufferStartFtraceEvent& from)
5446   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
5447   IonCpSecureBufferStartFtraceEvent* const _this = this; (void)_this;
5448   new (&_impl_) Impl_{
5449       decltype(_impl_._has_bits_){from._impl_._has_bits_}
5450     , /*decltype(_impl_._cached_size_)*/{}
5451     , decltype(_impl_.heap_name_){}
5452     , decltype(_impl_.align_){}
5453     , decltype(_impl_.flags_){}
5454     , decltype(_impl_.len_){}};
5455 
5456   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5457   _impl_.heap_name_.InitDefault();
5458   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5459     _impl_.heap_name_.Set("", GetArenaForAllocation());
5460   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5461   if (from._internal_has_heap_name()) {
5462     _this->_impl_.heap_name_.Set(from._internal_heap_name(),
5463       _this->GetArenaForAllocation());
5464   }
5465   ::memcpy(&_impl_.align_, &from._impl_.align_,
5466     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.len_) -
5467     reinterpret_cast<char*>(&_impl_.align_)) + sizeof(_impl_.len_));
5468   // @@protoc_insertion_point(copy_constructor:perfetto.protos.IonCpSecureBufferStartFtraceEvent)
5469 }
5470 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5471 inline void IonCpSecureBufferStartFtraceEvent::SharedCtor(
5472     ::_pb::Arena* arena, bool is_message_owned) {
5473   (void)arena;
5474   (void)is_message_owned;
5475   new (&_impl_) Impl_{
5476       decltype(_impl_._has_bits_){}
5477     , /*decltype(_impl_._cached_size_)*/{}
5478     , decltype(_impl_.heap_name_){}
5479     , decltype(_impl_.align_){::uint64_t{0u}}
5480     , decltype(_impl_.flags_){::uint64_t{0u}}
5481     , decltype(_impl_.len_){::uint64_t{0u}}
5482   };
5483   _impl_.heap_name_.InitDefault();
5484   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5485     _impl_.heap_name_.Set("", GetArenaForAllocation());
5486   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5487 }
5488 
~IonCpSecureBufferStartFtraceEvent()5489 IonCpSecureBufferStartFtraceEvent::~IonCpSecureBufferStartFtraceEvent() {
5490   // @@protoc_insertion_point(destructor:perfetto.protos.IonCpSecureBufferStartFtraceEvent)
5491   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
5492   (void)arena;
5493     return;
5494   }
5495   SharedDtor();
5496 }
5497 
SharedDtor()5498 inline void IonCpSecureBufferStartFtraceEvent::SharedDtor() {
5499   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5500   _impl_.heap_name_.Destroy();
5501 }
5502 
SetCachedSize(int size) const5503 void IonCpSecureBufferStartFtraceEvent::SetCachedSize(int size) const {
5504   _impl_._cached_size_.Set(size);
5505 }
5506 
Clear()5507 void IonCpSecureBufferStartFtraceEvent::Clear() {
5508 // @@protoc_insertion_point(message_clear_start:perfetto.protos.IonCpSecureBufferStartFtraceEvent)
5509   ::uint32_t cached_has_bits = 0;
5510   // Prevent compiler warnings about cached_has_bits being unused
5511   (void) cached_has_bits;
5512 
5513   cached_has_bits = _impl_._has_bits_[0];
5514   if (cached_has_bits & 0x00000001u) {
5515     _impl_.heap_name_.ClearNonDefaultToEmpty();
5516   }
5517   if (cached_has_bits & 0x0000000eu) {
5518     ::memset(&_impl_.align_, 0, static_cast<size_t>(
5519         reinterpret_cast<char*>(&_impl_.len_) -
5520         reinterpret_cast<char*>(&_impl_.align_)) + sizeof(_impl_.len_));
5521   }
5522   _impl_._has_bits_.Clear();
5523   _internal_metadata_.Clear<std::string>();
5524 }
5525 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5526 const char* IonCpSecureBufferStartFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5527 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5528   _Internal::HasBits has_bits{};
5529   while (!ctx->Done(&ptr)) {
5530     ::uint32_t tag;
5531     ptr = ::_pbi::ReadTag(ptr, &tag);
5532     switch (tag >> 3) {
5533       // optional uint64 align = 1;
5534       case 1:
5535         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
5536           _Internal::set_has_align(&has_bits);
5537           _impl_.align_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5538           CHK_(ptr);
5539         } else {
5540           goto handle_unusual;
5541         }
5542         continue;
5543       // optional uint64 flags = 2;
5544       case 2:
5545         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
5546           _Internal::set_has_flags(&has_bits);
5547           _impl_.flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5548           CHK_(ptr);
5549         } else {
5550           goto handle_unusual;
5551         }
5552         continue;
5553       // optional string heap_name = 3;
5554       case 3:
5555         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
5556           auto str = _internal_mutable_heap_name();
5557           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
5558           CHK_(ptr);
5559         } else {
5560           goto handle_unusual;
5561         }
5562         continue;
5563       // optional uint64 len = 4;
5564       case 4:
5565         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
5566           _Internal::set_has_len(&has_bits);
5567           _impl_.len_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5568           CHK_(ptr);
5569         } else {
5570           goto handle_unusual;
5571         }
5572         continue;
5573       default:
5574         goto handle_unusual;
5575     }  // switch
5576   handle_unusual:
5577     if ((tag == 0) || ((tag & 7) == 4)) {
5578       CHK_(ptr);
5579       ctx->SetLastTag(tag);
5580       goto message_done;
5581     }
5582     ptr = UnknownFieldParse(
5583         tag,
5584         _internal_metadata_.mutable_unknown_fields<std::string>(),
5585         ptr, ctx);
5586     CHK_(ptr != nullptr);
5587   }  // while
5588 message_done:
5589   _impl_._has_bits_.Or(has_bits);
5590   return ptr;
5591 failure:
5592   ptr = nullptr;
5593   goto message_done;
5594 #undef CHK_
5595 }
5596 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5597 ::uint8_t* IonCpSecureBufferStartFtraceEvent::_InternalSerialize(
5598     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5599   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.IonCpSecureBufferStartFtraceEvent)
5600   ::uint32_t cached_has_bits = 0;
5601   (void) cached_has_bits;
5602 
5603   cached_has_bits = _impl_._has_bits_[0];
5604   // optional uint64 align = 1;
5605   if (cached_has_bits & 0x00000002u) {
5606     target = stream->EnsureSpace(target);
5607     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_align(), target);
5608   }
5609 
5610   // optional uint64 flags = 2;
5611   if (cached_has_bits & 0x00000004u) {
5612     target = stream->EnsureSpace(target);
5613     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_flags(), target);
5614   }
5615 
5616   // optional string heap_name = 3;
5617   if (cached_has_bits & 0x00000001u) {
5618     target = stream->WriteStringMaybeAliased(
5619         3, this->_internal_heap_name(), target);
5620   }
5621 
5622   // optional uint64 len = 4;
5623   if (cached_has_bits & 0x00000008u) {
5624     target = stream->EnsureSpace(target);
5625     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_len(), target);
5626   }
5627 
5628   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5629     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
5630         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
5631   }
5632   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.IonCpSecureBufferStartFtraceEvent)
5633   return target;
5634 }
5635 
ByteSizeLong() const5636 size_t IonCpSecureBufferStartFtraceEvent::ByteSizeLong() const {
5637 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.IonCpSecureBufferStartFtraceEvent)
5638   size_t total_size = 0;
5639 
5640   ::uint32_t cached_has_bits = 0;
5641   // Prevent compiler warnings about cached_has_bits being unused
5642   (void) cached_has_bits;
5643 
5644   cached_has_bits = _impl_._has_bits_[0];
5645   if (cached_has_bits & 0x0000000fu) {
5646     // optional string heap_name = 3;
5647     if (cached_has_bits & 0x00000001u) {
5648       total_size += 1 +
5649         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5650           this->_internal_heap_name());
5651     }
5652 
5653     // optional uint64 align = 1;
5654     if (cached_has_bits & 0x00000002u) {
5655       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_align());
5656     }
5657 
5658     // optional uint64 flags = 2;
5659     if (cached_has_bits & 0x00000004u) {
5660       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_flags());
5661     }
5662 
5663     // optional uint64 len = 4;
5664     if (cached_has_bits & 0x00000008u) {
5665       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_len());
5666     }
5667 
5668   }
5669   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5670     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
5671   }
5672   int cached_size = ::_pbi::ToCachedSize(total_size);
5673   SetCachedSize(cached_size);
5674   return total_size;
5675 }
5676 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)5677 void IonCpSecureBufferStartFtraceEvent::CheckTypeAndMergeFrom(
5678     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
5679   MergeFrom(*::_pbi::DownCast<const IonCpSecureBufferStartFtraceEvent*>(
5680       &from));
5681 }
5682 
MergeFrom(const IonCpSecureBufferStartFtraceEvent & from)5683 void IonCpSecureBufferStartFtraceEvent::MergeFrom(const IonCpSecureBufferStartFtraceEvent& from) {
5684   IonCpSecureBufferStartFtraceEvent* const _this = this;
5685   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.IonCpSecureBufferStartFtraceEvent)
5686   GOOGLE_DCHECK_NE(&from, _this);
5687   ::uint32_t cached_has_bits = 0;
5688   (void) cached_has_bits;
5689 
5690   cached_has_bits = from._impl_._has_bits_[0];
5691   if (cached_has_bits & 0x0000000fu) {
5692     if (cached_has_bits & 0x00000001u) {
5693       _this->_internal_set_heap_name(from._internal_heap_name());
5694     }
5695     if (cached_has_bits & 0x00000002u) {
5696       _this->_impl_.align_ = from._impl_.align_;
5697     }
5698     if (cached_has_bits & 0x00000004u) {
5699       _this->_impl_.flags_ = from._impl_.flags_;
5700     }
5701     if (cached_has_bits & 0x00000008u) {
5702       _this->_impl_.len_ = from._impl_.len_;
5703     }
5704     _this->_impl_._has_bits_[0] |= cached_has_bits;
5705   }
5706   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5707 }
5708 
CopyFrom(const IonCpSecureBufferStartFtraceEvent & from)5709 void IonCpSecureBufferStartFtraceEvent::CopyFrom(const IonCpSecureBufferStartFtraceEvent& from) {
5710 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.IonCpSecureBufferStartFtraceEvent)
5711   if (&from == this) return;
5712   Clear();
5713   MergeFrom(from);
5714 }
5715 
IsInitialized() const5716 bool IonCpSecureBufferStartFtraceEvent::IsInitialized() const {
5717   return true;
5718 }
5719 
InternalSwap(IonCpSecureBufferStartFtraceEvent * other)5720 void IonCpSecureBufferStartFtraceEvent::InternalSwap(IonCpSecureBufferStartFtraceEvent* other) {
5721   using std::swap;
5722   auto* lhs_arena = GetArenaForAllocation();
5723   auto* rhs_arena = other->GetArenaForAllocation();
5724   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5725   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
5726   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
5727       &_impl_.heap_name_, lhs_arena,
5728       &other->_impl_.heap_name_, rhs_arena
5729   );
5730   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
5731       PROTOBUF_FIELD_OFFSET(IonCpSecureBufferStartFtraceEvent, _impl_.len_)
5732       + sizeof(IonCpSecureBufferStartFtraceEvent::_impl_.len_)  // NOLINT
5733       - PROTOBUF_FIELD_OFFSET(IonCpSecureBufferStartFtraceEvent, _impl_.align_)>(
5734           reinterpret_cast<char*>(&_impl_.align_),
5735           reinterpret_cast<char*>(&other->_impl_.align_));
5736 }
5737 
GetTypeName() const5738 std::string IonCpSecureBufferStartFtraceEvent::GetTypeName() const {
5739   return "perfetto.protos.IonCpSecureBufferStartFtraceEvent";
5740 }
5741 
5742 
5743 // ===================================================================
5744 
5745 class IonPrefetchingFtraceEvent::_Internal {
5746  public:
5747   using HasBits = decltype(std::declval<IonPrefetchingFtraceEvent>()._impl_._has_bits_);
set_has_len(HasBits * has_bits)5748   static void set_has_len(HasBits* has_bits) {
5749     (*has_bits)[0] |= 1u;
5750   }
5751 };
5752 
IonPrefetchingFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5753 IonPrefetchingFtraceEvent::IonPrefetchingFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5754                          bool is_message_owned)
5755   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
5756   SharedCtor(arena, is_message_owned);
5757   // @@protoc_insertion_point(arena_constructor:perfetto.protos.IonPrefetchingFtraceEvent)
5758 }
IonPrefetchingFtraceEvent(const IonPrefetchingFtraceEvent & from)5759 IonPrefetchingFtraceEvent::IonPrefetchingFtraceEvent(const IonPrefetchingFtraceEvent& from)
5760   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
5761   IonPrefetchingFtraceEvent* const _this = this; (void)_this;
5762   new (&_impl_) Impl_{
5763       decltype(_impl_._has_bits_){from._impl_._has_bits_}
5764     , /*decltype(_impl_._cached_size_)*/{}
5765     , decltype(_impl_.len_){}};
5766 
5767   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5768   _this->_impl_.len_ = from._impl_.len_;
5769   // @@protoc_insertion_point(copy_constructor:perfetto.protos.IonPrefetchingFtraceEvent)
5770 }
5771 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5772 inline void IonPrefetchingFtraceEvent::SharedCtor(
5773     ::_pb::Arena* arena, bool is_message_owned) {
5774   (void)arena;
5775   (void)is_message_owned;
5776   new (&_impl_) Impl_{
5777       decltype(_impl_._has_bits_){}
5778     , /*decltype(_impl_._cached_size_)*/{}
5779     , decltype(_impl_.len_){::uint64_t{0u}}
5780   };
5781 }
5782 
~IonPrefetchingFtraceEvent()5783 IonPrefetchingFtraceEvent::~IonPrefetchingFtraceEvent() {
5784   // @@protoc_insertion_point(destructor:perfetto.protos.IonPrefetchingFtraceEvent)
5785   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
5786   (void)arena;
5787     return;
5788   }
5789   SharedDtor();
5790 }
5791 
SharedDtor()5792 inline void IonPrefetchingFtraceEvent::SharedDtor() {
5793   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5794 }
5795 
SetCachedSize(int size) const5796 void IonPrefetchingFtraceEvent::SetCachedSize(int size) const {
5797   _impl_._cached_size_.Set(size);
5798 }
5799 
Clear()5800 void IonPrefetchingFtraceEvent::Clear() {
5801 // @@protoc_insertion_point(message_clear_start:perfetto.protos.IonPrefetchingFtraceEvent)
5802   ::uint32_t cached_has_bits = 0;
5803   // Prevent compiler warnings about cached_has_bits being unused
5804   (void) cached_has_bits;
5805 
5806   _impl_.len_ = ::uint64_t{0u};
5807   _impl_._has_bits_.Clear();
5808   _internal_metadata_.Clear<std::string>();
5809 }
5810 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5811 const char* IonPrefetchingFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5812 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5813   _Internal::HasBits has_bits{};
5814   while (!ctx->Done(&ptr)) {
5815     ::uint32_t tag;
5816     ptr = ::_pbi::ReadTag(ptr, &tag);
5817     switch (tag >> 3) {
5818       // optional uint64 len = 1;
5819       case 1:
5820         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
5821           _Internal::set_has_len(&has_bits);
5822           _impl_.len_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5823           CHK_(ptr);
5824         } else {
5825           goto handle_unusual;
5826         }
5827         continue;
5828       default:
5829         goto handle_unusual;
5830     }  // switch
5831   handle_unusual:
5832     if ((tag == 0) || ((tag & 7) == 4)) {
5833       CHK_(ptr);
5834       ctx->SetLastTag(tag);
5835       goto message_done;
5836     }
5837     ptr = UnknownFieldParse(
5838         tag,
5839         _internal_metadata_.mutable_unknown_fields<std::string>(),
5840         ptr, ctx);
5841     CHK_(ptr != nullptr);
5842   }  // while
5843 message_done:
5844   _impl_._has_bits_.Or(has_bits);
5845   return ptr;
5846 failure:
5847   ptr = nullptr;
5848   goto message_done;
5849 #undef CHK_
5850 }
5851 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5852 ::uint8_t* IonPrefetchingFtraceEvent::_InternalSerialize(
5853     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5854   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.IonPrefetchingFtraceEvent)
5855   ::uint32_t cached_has_bits = 0;
5856   (void) cached_has_bits;
5857 
5858   cached_has_bits = _impl_._has_bits_[0];
5859   // optional uint64 len = 1;
5860   if (cached_has_bits & 0x00000001u) {
5861     target = stream->EnsureSpace(target);
5862     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_len(), target);
5863   }
5864 
5865   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5866     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
5867         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
5868   }
5869   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.IonPrefetchingFtraceEvent)
5870   return target;
5871 }
5872 
ByteSizeLong() const5873 size_t IonPrefetchingFtraceEvent::ByteSizeLong() const {
5874 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.IonPrefetchingFtraceEvent)
5875   size_t total_size = 0;
5876 
5877   ::uint32_t cached_has_bits = 0;
5878   // Prevent compiler warnings about cached_has_bits being unused
5879   (void) cached_has_bits;
5880 
5881   // optional uint64 len = 1;
5882   cached_has_bits = _impl_._has_bits_[0];
5883   if (cached_has_bits & 0x00000001u) {
5884     total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_len());
5885   }
5886 
5887   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5888     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
5889   }
5890   int cached_size = ::_pbi::ToCachedSize(total_size);
5891   SetCachedSize(cached_size);
5892   return total_size;
5893 }
5894 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)5895 void IonPrefetchingFtraceEvent::CheckTypeAndMergeFrom(
5896     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
5897   MergeFrom(*::_pbi::DownCast<const IonPrefetchingFtraceEvent*>(
5898       &from));
5899 }
5900 
MergeFrom(const IonPrefetchingFtraceEvent & from)5901 void IonPrefetchingFtraceEvent::MergeFrom(const IonPrefetchingFtraceEvent& from) {
5902   IonPrefetchingFtraceEvent* const _this = this;
5903   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.IonPrefetchingFtraceEvent)
5904   GOOGLE_DCHECK_NE(&from, _this);
5905   ::uint32_t cached_has_bits = 0;
5906   (void) cached_has_bits;
5907 
5908   if (from._internal_has_len()) {
5909     _this->_internal_set_len(from._internal_len());
5910   }
5911   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5912 }
5913 
CopyFrom(const IonPrefetchingFtraceEvent & from)5914 void IonPrefetchingFtraceEvent::CopyFrom(const IonPrefetchingFtraceEvent& from) {
5915 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.IonPrefetchingFtraceEvent)
5916   if (&from == this) return;
5917   Clear();
5918   MergeFrom(from);
5919 }
5920 
IsInitialized() const5921 bool IonPrefetchingFtraceEvent::IsInitialized() const {
5922   return true;
5923 }
5924 
InternalSwap(IonPrefetchingFtraceEvent * other)5925 void IonPrefetchingFtraceEvent::InternalSwap(IonPrefetchingFtraceEvent* other) {
5926   using std::swap;
5927   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5928   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
5929   swap(_impl_.len_, other->_impl_.len_);
5930 }
5931 
GetTypeName() const5932 std::string IonPrefetchingFtraceEvent::GetTypeName() const {
5933   return "perfetto.protos.IonPrefetchingFtraceEvent";
5934 }
5935 
5936 
5937 // ===================================================================
5938 
5939 class IonSecureCmaAddToPoolEndFtraceEvent::_Internal {
5940  public:
5941   using HasBits = decltype(std::declval<IonSecureCmaAddToPoolEndFtraceEvent>()._impl_._has_bits_);
set_has_is_prefetch(HasBits * has_bits)5942   static void set_has_is_prefetch(HasBits* has_bits) {
5943     (*has_bits)[0] |= 2u;
5944   }
set_has_len(HasBits * has_bits)5945   static void set_has_len(HasBits* has_bits) {
5946     (*has_bits)[0] |= 1u;
5947   }
set_has_pool_total(HasBits * has_bits)5948   static void set_has_pool_total(HasBits* has_bits) {
5949     (*has_bits)[0] |= 4u;
5950   }
5951 };
5952 
IonSecureCmaAddToPoolEndFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5953 IonSecureCmaAddToPoolEndFtraceEvent::IonSecureCmaAddToPoolEndFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5954                          bool is_message_owned)
5955   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
5956   SharedCtor(arena, is_message_owned);
5957   // @@protoc_insertion_point(arena_constructor:perfetto.protos.IonSecureCmaAddToPoolEndFtraceEvent)
5958 }
IonSecureCmaAddToPoolEndFtraceEvent(const IonSecureCmaAddToPoolEndFtraceEvent & from)5959 IonSecureCmaAddToPoolEndFtraceEvent::IonSecureCmaAddToPoolEndFtraceEvent(const IonSecureCmaAddToPoolEndFtraceEvent& from)
5960   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
5961   IonSecureCmaAddToPoolEndFtraceEvent* const _this = this; (void)_this;
5962   new (&_impl_) Impl_{
5963       decltype(_impl_._has_bits_){from._impl_._has_bits_}
5964     , /*decltype(_impl_._cached_size_)*/{}
5965     , decltype(_impl_.len_){}
5966     , decltype(_impl_.is_prefetch_){}
5967     , decltype(_impl_.pool_total_){}};
5968 
5969   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5970   ::memcpy(&_impl_.len_, &from._impl_.len_,
5971     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.pool_total_) -
5972     reinterpret_cast<char*>(&_impl_.len_)) + sizeof(_impl_.pool_total_));
5973   // @@protoc_insertion_point(copy_constructor:perfetto.protos.IonSecureCmaAddToPoolEndFtraceEvent)
5974 }
5975 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5976 inline void IonSecureCmaAddToPoolEndFtraceEvent::SharedCtor(
5977     ::_pb::Arena* arena, bool is_message_owned) {
5978   (void)arena;
5979   (void)is_message_owned;
5980   new (&_impl_) Impl_{
5981       decltype(_impl_._has_bits_){}
5982     , /*decltype(_impl_._cached_size_)*/{}
5983     , decltype(_impl_.len_){::uint64_t{0u}}
5984     , decltype(_impl_.is_prefetch_){0u}
5985     , decltype(_impl_.pool_total_){0}
5986   };
5987 }
5988 
~IonSecureCmaAddToPoolEndFtraceEvent()5989 IonSecureCmaAddToPoolEndFtraceEvent::~IonSecureCmaAddToPoolEndFtraceEvent() {
5990   // @@protoc_insertion_point(destructor:perfetto.protos.IonSecureCmaAddToPoolEndFtraceEvent)
5991   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
5992   (void)arena;
5993     return;
5994   }
5995   SharedDtor();
5996 }
5997 
SharedDtor()5998 inline void IonSecureCmaAddToPoolEndFtraceEvent::SharedDtor() {
5999   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
6000 }
6001 
SetCachedSize(int size) const6002 void IonSecureCmaAddToPoolEndFtraceEvent::SetCachedSize(int size) const {
6003   _impl_._cached_size_.Set(size);
6004 }
6005 
Clear()6006 void IonSecureCmaAddToPoolEndFtraceEvent::Clear() {
6007 // @@protoc_insertion_point(message_clear_start:perfetto.protos.IonSecureCmaAddToPoolEndFtraceEvent)
6008   ::uint32_t cached_has_bits = 0;
6009   // Prevent compiler warnings about cached_has_bits being unused
6010   (void) cached_has_bits;
6011 
6012   cached_has_bits = _impl_._has_bits_[0];
6013   if (cached_has_bits & 0x00000007u) {
6014     ::memset(&_impl_.len_, 0, static_cast<size_t>(
6015         reinterpret_cast<char*>(&_impl_.pool_total_) -
6016         reinterpret_cast<char*>(&_impl_.len_)) + sizeof(_impl_.pool_total_));
6017   }
6018   _impl_._has_bits_.Clear();
6019   _internal_metadata_.Clear<std::string>();
6020 }
6021 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)6022 const char* IonSecureCmaAddToPoolEndFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
6023 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6024   _Internal::HasBits has_bits{};
6025   while (!ctx->Done(&ptr)) {
6026     ::uint32_t tag;
6027     ptr = ::_pbi::ReadTag(ptr, &tag);
6028     switch (tag >> 3) {
6029       // optional uint32 is_prefetch = 1;
6030       case 1:
6031         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
6032           _Internal::set_has_is_prefetch(&has_bits);
6033           _impl_.is_prefetch_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6034           CHK_(ptr);
6035         } else {
6036           goto handle_unusual;
6037         }
6038         continue;
6039       // optional uint64 len = 2;
6040       case 2:
6041         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
6042           _Internal::set_has_len(&has_bits);
6043           _impl_.len_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6044           CHK_(ptr);
6045         } else {
6046           goto handle_unusual;
6047         }
6048         continue;
6049       // optional int32 pool_total = 3;
6050       case 3:
6051         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
6052           _Internal::set_has_pool_total(&has_bits);
6053           _impl_.pool_total_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6054           CHK_(ptr);
6055         } else {
6056           goto handle_unusual;
6057         }
6058         continue;
6059       default:
6060         goto handle_unusual;
6061     }  // switch
6062   handle_unusual:
6063     if ((tag == 0) || ((tag & 7) == 4)) {
6064       CHK_(ptr);
6065       ctx->SetLastTag(tag);
6066       goto message_done;
6067     }
6068     ptr = UnknownFieldParse(
6069         tag,
6070         _internal_metadata_.mutable_unknown_fields<std::string>(),
6071         ptr, ctx);
6072     CHK_(ptr != nullptr);
6073   }  // while
6074 message_done:
6075   _impl_._has_bits_.Or(has_bits);
6076   return ptr;
6077 failure:
6078   ptr = nullptr;
6079   goto message_done;
6080 #undef CHK_
6081 }
6082 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const6083 ::uint8_t* IonSecureCmaAddToPoolEndFtraceEvent::_InternalSerialize(
6084     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
6085   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.IonSecureCmaAddToPoolEndFtraceEvent)
6086   ::uint32_t cached_has_bits = 0;
6087   (void) cached_has_bits;
6088 
6089   cached_has_bits = _impl_._has_bits_[0];
6090   // optional uint32 is_prefetch = 1;
6091   if (cached_has_bits & 0x00000002u) {
6092     target = stream->EnsureSpace(target);
6093     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_is_prefetch(), target);
6094   }
6095 
6096   // optional uint64 len = 2;
6097   if (cached_has_bits & 0x00000001u) {
6098     target = stream->EnsureSpace(target);
6099     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_len(), target);
6100   }
6101 
6102   // optional int32 pool_total = 3;
6103   if (cached_has_bits & 0x00000004u) {
6104     target = stream->EnsureSpace(target);
6105     target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_pool_total(), target);
6106   }
6107 
6108   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6109     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
6110         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
6111   }
6112   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.IonSecureCmaAddToPoolEndFtraceEvent)
6113   return target;
6114 }
6115 
ByteSizeLong() const6116 size_t IonSecureCmaAddToPoolEndFtraceEvent::ByteSizeLong() const {
6117 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.IonSecureCmaAddToPoolEndFtraceEvent)
6118   size_t total_size = 0;
6119 
6120   ::uint32_t cached_has_bits = 0;
6121   // Prevent compiler warnings about cached_has_bits being unused
6122   (void) cached_has_bits;
6123 
6124   cached_has_bits = _impl_._has_bits_[0];
6125   if (cached_has_bits & 0x00000007u) {
6126     // optional uint64 len = 2;
6127     if (cached_has_bits & 0x00000001u) {
6128       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_len());
6129     }
6130 
6131     // optional uint32 is_prefetch = 1;
6132     if (cached_has_bits & 0x00000002u) {
6133       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_is_prefetch());
6134     }
6135 
6136     // optional int32 pool_total = 3;
6137     if (cached_has_bits & 0x00000004u) {
6138       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_pool_total());
6139     }
6140 
6141   }
6142   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6143     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
6144   }
6145   int cached_size = ::_pbi::ToCachedSize(total_size);
6146   SetCachedSize(cached_size);
6147   return total_size;
6148 }
6149 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)6150 void IonSecureCmaAddToPoolEndFtraceEvent::CheckTypeAndMergeFrom(
6151     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
6152   MergeFrom(*::_pbi::DownCast<const IonSecureCmaAddToPoolEndFtraceEvent*>(
6153       &from));
6154 }
6155 
MergeFrom(const IonSecureCmaAddToPoolEndFtraceEvent & from)6156 void IonSecureCmaAddToPoolEndFtraceEvent::MergeFrom(const IonSecureCmaAddToPoolEndFtraceEvent& from) {
6157   IonSecureCmaAddToPoolEndFtraceEvent* const _this = this;
6158   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.IonSecureCmaAddToPoolEndFtraceEvent)
6159   GOOGLE_DCHECK_NE(&from, _this);
6160   ::uint32_t cached_has_bits = 0;
6161   (void) cached_has_bits;
6162 
6163   cached_has_bits = from._impl_._has_bits_[0];
6164   if (cached_has_bits & 0x00000007u) {
6165     if (cached_has_bits & 0x00000001u) {
6166       _this->_impl_.len_ = from._impl_.len_;
6167     }
6168     if (cached_has_bits & 0x00000002u) {
6169       _this->_impl_.is_prefetch_ = from._impl_.is_prefetch_;
6170     }
6171     if (cached_has_bits & 0x00000004u) {
6172       _this->_impl_.pool_total_ = from._impl_.pool_total_;
6173     }
6174     _this->_impl_._has_bits_[0] |= cached_has_bits;
6175   }
6176   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6177 }
6178 
CopyFrom(const IonSecureCmaAddToPoolEndFtraceEvent & from)6179 void IonSecureCmaAddToPoolEndFtraceEvent::CopyFrom(const IonSecureCmaAddToPoolEndFtraceEvent& from) {
6180 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.IonSecureCmaAddToPoolEndFtraceEvent)
6181   if (&from == this) return;
6182   Clear();
6183   MergeFrom(from);
6184 }
6185 
IsInitialized() const6186 bool IonSecureCmaAddToPoolEndFtraceEvent::IsInitialized() const {
6187   return true;
6188 }
6189 
InternalSwap(IonSecureCmaAddToPoolEndFtraceEvent * other)6190 void IonSecureCmaAddToPoolEndFtraceEvent::InternalSwap(IonSecureCmaAddToPoolEndFtraceEvent* other) {
6191   using std::swap;
6192   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6193   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
6194   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
6195       PROTOBUF_FIELD_OFFSET(IonSecureCmaAddToPoolEndFtraceEvent, _impl_.pool_total_)
6196       + sizeof(IonSecureCmaAddToPoolEndFtraceEvent::_impl_.pool_total_)  // NOLINT
6197       - PROTOBUF_FIELD_OFFSET(IonSecureCmaAddToPoolEndFtraceEvent, _impl_.len_)>(
6198           reinterpret_cast<char*>(&_impl_.len_),
6199           reinterpret_cast<char*>(&other->_impl_.len_));
6200 }
6201 
GetTypeName() const6202 std::string IonSecureCmaAddToPoolEndFtraceEvent::GetTypeName() const {
6203   return "perfetto.protos.IonSecureCmaAddToPoolEndFtraceEvent";
6204 }
6205 
6206 
6207 // ===================================================================
6208 
6209 class IonSecureCmaAddToPoolStartFtraceEvent::_Internal {
6210  public:
6211   using HasBits = decltype(std::declval<IonSecureCmaAddToPoolStartFtraceEvent>()._impl_._has_bits_);
set_has_is_prefetch(HasBits * has_bits)6212   static void set_has_is_prefetch(HasBits* has_bits) {
6213     (*has_bits)[0] |= 2u;
6214   }
set_has_len(HasBits * has_bits)6215   static void set_has_len(HasBits* has_bits) {
6216     (*has_bits)[0] |= 1u;
6217   }
set_has_pool_total(HasBits * has_bits)6218   static void set_has_pool_total(HasBits* has_bits) {
6219     (*has_bits)[0] |= 4u;
6220   }
6221 };
6222 
IonSecureCmaAddToPoolStartFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)6223 IonSecureCmaAddToPoolStartFtraceEvent::IonSecureCmaAddToPoolStartFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6224                          bool is_message_owned)
6225   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
6226   SharedCtor(arena, is_message_owned);
6227   // @@protoc_insertion_point(arena_constructor:perfetto.protos.IonSecureCmaAddToPoolStartFtraceEvent)
6228 }
IonSecureCmaAddToPoolStartFtraceEvent(const IonSecureCmaAddToPoolStartFtraceEvent & from)6229 IonSecureCmaAddToPoolStartFtraceEvent::IonSecureCmaAddToPoolStartFtraceEvent(const IonSecureCmaAddToPoolStartFtraceEvent& from)
6230   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
6231   IonSecureCmaAddToPoolStartFtraceEvent* const _this = this; (void)_this;
6232   new (&_impl_) Impl_{
6233       decltype(_impl_._has_bits_){from._impl_._has_bits_}
6234     , /*decltype(_impl_._cached_size_)*/{}
6235     , decltype(_impl_.len_){}
6236     , decltype(_impl_.is_prefetch_){}
6237     , decltype(_impl_.pool_total_){}};
6238 
6239   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6240   ::memcpy(&_impl_.len_, &from._impl_.len_,
6241     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.pool_total_) -
6242     reinterpret_cast<char*>(&_impl_.len_)) + sizeof(_impl_.pool_total_));
6243   // @@protoc_insertion_point(copy_constructor:perfetto.protos.IonSecureCmaAddToPoolStartFtraceEvent)
6244 }
6245 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)6246 inline void IonSecureCmaAddToPoolStartFtraceEvent::SharedCtor(
6247     ::_pb::Arena* arena, bool is_message_owned) {
6248   (void)arena;
6249   (void)is_message_owned;
6250   new (&_impl_) Impl_{
6251       decltype(_impl_._has_bits_){}
6252     , /*decltype(_impl_._cached_size_)*/{}
6253     , decltype(_impl_.len_){::uint64_t{0u}}
6254     , decltype(_impl_.is_prefetch_){0u}
6255     , decltype(_impl_.pool_total_){0}
6256   };
6257 }
6258 
~IonSecureCmaAddToPoolStartFtraceEvent()6259 IonSecureCmaAddToPoolStartFtraceEvent::~IonSecureCmaAddToPoolStartFtraceEvent() {
6260   // @@protoc_insertion_point(destructor:perfetto.protos.IonSecureCmaAddToPoolStartFtraceEvent)
6261   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
6262   (void)arena;
6263     return;
6264   }
6265   SharedDtor();
6266 }
6267 
SharedDtor()6268 inline void IonSecureCmaAddToPoolStartFtraceEvent::SharedDtor() {
6269   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
6270 }
6271 
SetCachedSize(int size) const6272 void IonSecureCmaAddToPoolStartFtraceEvent::SetCachedSize(int size) const {
6273   _impl_._cached_size_.Set(size);
6274 }
6275 
Clear()6276 void IonSecureCmaAddToPoolStartFtraceEvent::Clear() {
6277 // @@protoc_insertion_point(message_clear_start:perfetto.protos.IonSecureCmaAddToPoolStartFtraceEvent)
6278   ::uint32_t cached_has_bits = 0;
6279   // Prevent compiler warnings about cached_has_bits being unused
6280   (void) cached_has_bits;
6281 
6282   cached_has_bits = _impl_._has_bits_[0];
6283   if (cached_has_bits & 0x00000007u) {
6284     ::memset(&_impl_.len_, 0, static_cast<size_t>(
6285         reinterpret_cast<char*>(&_impl_.pool_total_) -
6286         reinterpret_cast<char*>(&_impl_.len_)) + sizeof(_impl_.pool_total_));
6287   }
6288   _impl_._has_bits_.Clear();
6289   _internal_metadata_.Clear<std::string>();
6290 }
6291 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)6292 const char* IonSecureCmaAddToPoolStartFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
6293 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6294   _Internal::HasBits has_bits{};
6295   while (!ctx->Done(&ptr)) {
6296     ::uint32_t tag;
6297     ptr = ::_pbi::ReadTag(ptr, &tag);
6298     switch (tag >> 3) {
6299       // optional uint32 is_prefetch = 1;
6300       case 1:
6301         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
6302           _Internal::set_has_is_prefetch(&has_bits);
6303           _impl_.is_prefetch_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6304           CHK_(ptr);
6305         } else {
6306           goto handle_unusual;
6307         }
6308         continue;
6309       // optional uint64 len = 2;
6310       case 2:
6311         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
6312           _Internal::set_has_len(&has_bits);
6313           _impl_.len_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6314           CHK_(ptr);
6315         } else {
6316           goto handle_unusual;
6317         }
6318         continue;
6319       // optional int32 pool_total = 3;
6320       case 3:
6321         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
6322           _Internal::set_has_pool_total(&has_bits);
6323           _impl_.pool_total_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6324           CHK_(ptr);
6325         } else {
6326           goto handle_unusual;
6327         }
6328         continue;
6329       default:
6330         goto handle_unusual;
6331     }  // switch
6332   handle_unusual:
6333     if ((tag == 0) || ((tag & 7) == 4)) {
6334       CHK_(ptr);
6335       ctx->SetLastTag(tag);
6336       goto message_done;
6337     }
6338     ptr = UnknownFieldParse(
6339         tag,
6340         _internal_metadata_.mutable_unknown_fields<std::string>(),
6341         ptr, ctx);
6342     CHK_(ptr != nullptr);
6343   }  // while
6344 message_done:
6345   _impl_._has_bits_.Or(has_bits);
6346   return ptr;
6347 failure:
6348   ptr = nullptr;
6349   goto message_done;
6350 #undef CHK_
6351 }
6352 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const6353 ::uint8_t* IonSecureCmaAddToPoolStartFtraceEvent::_InternalSerialize(
6354     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
6355   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.IonSecureCmaAddToPoolStartFtraceEvent)
6356   ::uint32_t cached_has_bits = 0;
6357   (void) cached_has_bits;
6358 
6359   cached_has_bits = _impl_._has_bits_[0];
6360   // optional uint32 is_prefetch = 1;
6361   if (cached_has_bits & 0x00000002u) {
6362     target = stream->EnsureSpace(target);
6363     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_is_prefetch(), target);
6364   }
6365 
6366   // optional uint64 len = 2;
6367   if (cached_has_bits & 0x00000001u) {
6368     target = stream->EnsureSpace(target);
6369     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_len(), target);
6370   }
6371 
6372   // optional int32 pool_total = 3;
6373   if (cached_has_bits & 0x00000004u) {
6374     target = stream->EnsureSpace(target);
6375     target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_pool_total(), target);
6376   }
6377 
6378   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6379     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
6380         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
6381   }
6382   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.IonSecureCmaAddToPoolStartFtraceEvent)
6383   return target;
6384 }
6385 
ByteSizeLong() const6386 size_t IonSecureCmaAddToPoolStartFtraceEvent::ByteSizeLong() const {
6387 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.IonSecureCmaAddToPoolStartFtraceEvent)
6388   size_t total_size = 0;
6389 
6390   ::uint32_t cached_has_bits = 0;
6391   // Prevent compiler warnings about cached_has_bits being unused
6392   (void) cached_has_bits;
6393 
6394   cached_has_bits = _impl_._has_bits_[0];
6395   if (cached_has_bits & 0x00000007u) {
6396     // optional uint64 len = 2;
6397     if (cached_has_bits & 0x00000001u) {
6398       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_len());
6399     }
6400 
6401     // optional uint32 is_prefetch = 1;
6402     if (cached_has_bits & 0x00000002u) {
6403       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_is_prefetch());
6404     }
6405 
6406     // optional int32 pool_total = 3;
6407     if (cached_has_bits & 0x00000004u) {
6408       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_pool_total());
6409     }
6410 
6411   }
6412   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6413     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
6414   }
6415   int cached_size = ::_pbi::ToCachedSize(total_size);
6416   SetCachedSize(cached_size);
6417   return total_size;
6418 }
6419 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)6420 void IonSecureCmaAddToPoolStartFtraceEvent::CheckTypeAndMergeFrom(
6421     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
6422   MergeFrom(*::_pbi::DownCast<const IonSecureCmaAddToPoolStartFtraceEvent*>(
6423       &from));
6424 }
6425 
MergeFrom(const IonSecureCmaAddToPoolStartFtraceEvent & from)6426 void IonSecureCmaAddToPoolStartFtraceEvent::MergeFrom(const IonSecureCmaAddToPoolStartFtraceEvent& from) {
6427   IonSecureCmaAddToPoolStartFtraceEvent* const _this = this;
6428   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.IonSecureCmaAddToPoolStartFtraceEvent)
6429   GOOGLE_DCHECK_NE(&from, _this);
6430   ::uint32_t cached_has_bits = 0;
6431   (void) cached_has_bits;
6432 
6433   cached_has_bits = from._impl_._has_bits_[0];
6434   if (cached_has_bits & 0x00000007u) {
6435     if (cached_has_bits & 0x00000001u) {
6436       _this->_impl_.len_ = from._impl_.len_;
6437     }
6438     if (cached_has_bits & 0x00000002u) {
6439       _this->_impl_.is_prefetch_ = from._impl_.is_prefetch_;
6440     }
6441     if (cached_has_bits & 0x00000004u) {
6442       _this->_impl_.pool_total_ = from._impl_.pool_total_;
6443     }
6444     _this->_impl_._has_bits_[0] |= cached_has_bits;
6445   }
6446   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6447 }
6448 
CopyFrom(const IonSecureCmaAddToPoolStartFtraceEvent & from)6449 void IonSecureCmaAddToPoolStartFtraceEvent::CopyFrom(const IonSecureCmaAddToPoolStartFtraceEvent& from) {
6450 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.IonSecureCmaAddToPoolStartFtraceEvent)
6451   if (&from == this) return;
6452   Clear();
6453   MergeFrom(from);
6454 }
6455 
IsInitialized() const6456 bool IonSecureCmaAddToPoolStartFtraceEvent::IsInitialized() const {
6457   return true;
6458 }
6459 
InternalSwap(IonSecureCmaAddToPoolStartFtraceEvent * other)6460 void IonSecureCmaAddToPoolStartFtraceEvent::InternalSwap(IonSecureCmaAddToPoolStartFtraceEvent* other) {
6461   using std::swap;
6462   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6463   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
6464   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
6465       PROTOBUF_FIELD_OFFSET(IonSecureCmaAddToPoolStartFtraceEvent, _impl_.pool_total_)
6466       + sizeof(IonSecureCmaAddToPoolStartFtraceEvent::_impl_.pool_total_)  // NOLINT
6467       - PROTOBUF_FIELD_OFFSET(IonSecureCmaAddToPoolStartFtraceEvent, _impl_.len_)>(
6468           reinterpret_cast<char*>(&_impl_.len_),
6469           reinterpret_cast<char*>(&other->_impl_.len_));
6470 }
6471 
GetTypeName() const6472 std::string IonSecureCmaAddToPoolStartFtraceEvent::GetTypeName() const {
6473   return "perfetto.protos.IonSecureCmaAddToPoolStartFtraceEvent";
6474 }
6475 
6476 
6477 // ===================================================================
6478 
6479 class IonSecureCmaAllocateEndFtraceEvent::_Internal {
6480  public:
6481   using HasBits = decltype(std::declval<IonSecureCmaAllocateEndFtraceEvent>()._impl_._has_bits_);
set_has_align(HasBits * has_bits)6482   static void set_has_align(HasBits* has_bits) {
6483     (*has_bits)[0] |= 2u;
6484   }
set_has_flags(HasBits * has_bits)6485   static void set_has_flags(HasBits* has_bits) {
6486     (*has_bits)[0] |= 4u;
6487   }
set_has_heap_name(HasBits * has_bits)6488   static void set_has_heap_name(HasBits* has_bits) {
6489     (*has_bits)[0] |= 1u;
6490   }
set_has_len(HasBits * has_bits)6491   static void set_has_len(HasBits* has_bits) {
6492     (*has_bits)[0] |= 8u;
6493   }
6494 };
6495 
IonSecureCmaAllocateEndFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)6496 IonSecureCmaAllocateEndFtraceEvent::IonSecureCmaAllocateEndFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6497                          bool is_message_owned)
6498   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
6499   SharedCtor(arena, is_message_owned);
6500   // @@protoc_insertion_point(arena_constructor:perfetto.protos.IonSecureCmaAllocateEndFtraceEvent)
6501 }
IonSecureCmaAllocateEndFtraceEvent(const IonSecureCmaAllocateEndFtraceEvent & from)6502 IonSecureCmaAllocateEndFtraceEvent::IonSecureCmaAllocateEndFtraceEvent(const IonSecureCmaAllocateEndFtraceEvent& from)
6503   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
6504   IonSecureCmaAllocateEndFtraceEvent* const _this = this; (void)_this;
6505   new (&_impl_) Impl_{
6506       decltype(_impl_._has_bits_){from._impl_._has_bits_}
6507     , /*decltype(_impl_._cached_size_)*/{}
6508     , decltype(_impl_.heap_name_){}
6509     , decltype(_impl_.align_){}
6510     , decltype(_impl_.flags_){}
6511     , decltype(_impl_.len_){}};
6512 
6513   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6514   _impl_.heap_name_.InitDefault();
6515   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6516     _impl_.heap_name_.Set("", GetArenaForAllocation());
6517   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6518   if (from._internal_has_heap_name()) {
6519     _this->_impl_.heap_name_.Set(from._internal_heap_name(),
6520       _this->GetArenaForAllocation());
6521   }
6522   ::memcpy(&_impl_.align_, &from._impl_.align_,
6523     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.len_) -
6524     reinterpret_cast<char*>(&_impl_.align_)) + sizeof(_impl_.len_));
6525   // @@protoc_insertion_point(copy_constructor:perfetto.protos.IonSecureCmaAllocateEndFtraceEvent)
6526 }
6527 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)6528 inline void IonSecureCmaAllocateEndFtraceEvent::SharedCtor(
6529     ::_pb::Arena* arena, bool is_message_owned) {
6530   (void)arena;
6531   (void)is_message_owned;
6532   new (&_impl_) Impl_{
6533       decltype(_impl_._has_bits_){}
6534     , /*decltype(_impl_._cached_size_)*/{}
6535     , decltype(_impl_.heap_name_){}
6536     , decltype(_impl_.align_){::uint64_t{0u}}
6537     , decltype(_impl_.flags_){::uint64_t{0u}}
6538     , decltype(_impl_.len_){::uint64_t{0u}}
6539   };
6540   _impl_.heap_name_.InitDefault();
6541   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6542     _impl_.heap_name_.Set("", GetArenaForAllocation());
6543   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6544 }
6545 
~IonSecureCmaAllocateEndFtraceEvent()6546 IonSecureCmaAllocateEndFtraceEvent::~IonSecureCmaAllocateEndFtraceEvent() {
6547   // @@protoc_insertion_point(destructor:perfetto.protos.IonSecureCmaAllocateEndFtraceEvent)
6548   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
6549   (void)arena;
6550     return;
6551   }
6552   SharedDtor();
6553 }
6554 
SharedDtor()6555 inline void IonSecureCmaAllocateEndFtraceEvent::SharedDtor() {
6556   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
6557   _impl_.heap_name_.Destroy();
6558 }
6559 
SetCachedSize(int size) const6560 void IonSecureCmaAllocateEndFtraceEvent::SetCachedSize(int size) const {
6561   _impl_._cached_size_.Set(size);
6562 }
6563 
Clear()6564 void IonSecureCmaAllocateEndFtraceEvent::Clear() {
6565 // @@protoc_insertion_point(message_clear_start:perfetto.protos.IonSecureCmaAllocateEndFtraceEvent)
6566   ::uint32_t cached_has_bits = 0;
6567   // Prevent compiler warnings about cached_has_bits being unused
6568   (void) cached_has_bits;
6569 
6570   cached_has_bits = _impl_._has_bits_[0];
6571   if (cached_has_bits & 0x00000001u) {
6572     _impl_.heap_name_.ClearNonDefaultToEmpty();
6573   }
6574   if (cached_has_bits & 0x0000000eu) {
6575     ::memset(&_impl_.align_, 0, static_cast<size_t>(
6576         reinterpret_cast<char*>(&_impl_.len_) -
6577         reinterpret_cast<char*>(&_impl_.align_)) + sizeof(_impl_.len_));
6578   }
6579   _impl_._has_bits_.Clear();
6580   _internal_metadata_.Clear<std::string>();
6581 }
6582 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)6583 const char* IonSecureCmaAllocateEndFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
6584 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6585   _Internal::HasBits has_bits{};
6586   while (!ctx->Done(&ptr)) {
6587     ::uint32_t tag;
6588     ptr = ::_pbi::ReadTag(ptr, &tag);
6589     switch (tag >> 3) {
6590       // optional uint64 align = 1;
6591       case 1:
6592         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
6593           _Internal::set_has_align(&has_bits);
6594           _impl_.align_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6595           CHK_(ptr);
6596         } else {
6597           goto handle_unusual;
6598         }
6599         continue;
6600       // optional uint64 flags = 2;
6601       case 2:
6602         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
6603           _Internal::set_has_flags(&has_bits);
6604           _impl_.flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6605           CHK_(ptr);
6606         } else {
6607           goto handle_unusual;
6608         }
6609         continue;
6610       // optional string heap_name = 3;
6611       case 3:
6612         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
6613           auto str = _internal_mutable_heap_name();
6614           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
6615           CHK_(ptr);
6616         } else {
6617           goto handle_unusual;
6618         }
6619         continue;
6620       // optional uint64 len = 4;
6621       case 4:
6622         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
6623           _Internal::set_has_len(&has_bits);
6624           _impl_.len_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6625           CHK_(ptr);
6626         } else {
6627           goto handle_unusual;
6628         }
6629         continue;
6630       default:
6631         goto handle_unusual;
6632     }  // switch
6633   handle_unusual:
6634     if ((tag == 0) || ((tag & 7) == 4)) {
6635       CHK_(ptr);
6636       ctx->SetLastTag(tag);
6637       goto message_done;
6638     }
6639     ptr = UnknownFieldParse(
6640         tag,
6641         _internal_metadata_.mutable_unknown_fields<std::string>(),
6642         ptr, ctx);
6643     CHK_(ptr != nullptr);
6644   }  // while
6645 message_done:
6646   _impl_._has_bits_.Or(has_bits);
6647   return ptr;
6648 failure:
6649   ptr = nullptr;
6650   goto message_done;
6651 #undef CHK_
6652 }
6653 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const6654 ::uint8_t* IonSecureCmaAllocateEndFtraceEvent::_InternalSerialize(
6655     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
6656   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.IonSecureCmaAllocateEndFtraceEvent)
6657   ::uint32_t cached_has_bits = 0;
6658   (void) cached_has_bits;
6659 
6660   cached_has_bits = _impl_._has_bits_[0];
6661   // optional uint64 align = 1;
6662   if (cached_has_bits & 0x00000002u) {
6663     target = stream->EnsureSpace(target);
6664     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_align(), target);
6665   }
6666 
6667   // optional uint64 flags = 2;
6668   if (cached_has_bits & 0x00000004u) {
6669     target = stream->EnsureSpace(target);
6670     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_flags(), target);
6671   }
6672 
6673   // optional string heap_name = 3;
6674   if (cached_has_bits & 0x00000001u) {
6675     target = stream->WriteStringMaybeAliased(
6676         3, this->_internal_heap_name(), target);
6677   }
6678 
6679   // optional uint64 len = 4;
6680   if (cached_has_bits & 0x00000008u) {
6681     target = stream->EnsureSpace(target);
6682     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_len(), target);
6683   }
6684 
6685   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6686     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
6687         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
6688   }
6689   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.IonSecureCmaAllocateEndFtraceEvent)
6690   return target;
6691 }
6692 
ByteSizeLong() const6693 size_t IonSecureCmaAllocateEndFtraceEvent::ByteSizeLong() const {
6694 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.IonSecureCmaAllocateEndFtraceEvent)
6695   size_t total_size = 0;
6696 
6697   ::uint32_t cached_has_bits = 0;
6698   // Prevent compiler warnings about cached_has_bits being unused
6699   (void) cached_has_bits;
6700 
6701   cached_has_bits = _impl_._has_bits_[0];
6702   if (cached_has_bits & 0x0000000fu) {
6703     // optional string heap_name = 3;
6704     if (cached_has_bits & 0x00000001u) {
6705       total_size += 1 +
6706         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6707           this->_internal_heap_name());
6708     }
6709 
6710     // optional uint64 align = 1;
6711     if (cached_has_bits & 0x00000002u) {
6712       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_align());
6713     }
6714 
6715     // optional uint64 flags = 2;
6716     if (cached_has_bits & 0x00000004u) {
6717       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_flags());
6718     }
6719 
6720     // optional uint64 len = 4;
6721     if (cached_has_bits & 0x00000008u) {
6722       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_len());
6723     }
6724 
6725   }
6726   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6727     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
6728   }
6729   int cached_size = ::_pbi::ToCachedSize(total_size);
6730   SetCachedSize(cached_size);
6731   return total_size;
6732 }
6733 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)6734 void IonSecureCmaAllocateEndFtraceEvent::CheckTypeAndMergeFrom(
6735     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
6736   MergeFrom(*::_pbi::DownCast<const IonSecureCmaAllocateEndFtraceEvent*>(
6737       &from));
6738 }
6739 
MergeFrom(const IonSecureCmaAllocateEndFtraceEvent & from)6740 void IonSecureCmaAllocateEndFtraceEvent::MergeFrom(const IonSecureCmaAllocateEndFtraceEvent& from) {
6741   IonSecureCmaAllocateEndFtraceEvent* const _this = this;
6742   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.IonSecureCmaAllocateEndFtraceEvent)
6743   GOOGLE_DCHECK_NE(&from, _this);
6744   ::uint32_t cached_has_bits = 0;
6745   (void) cached_has_bits;
6746 
6747   cached_has_bits = from._impl_._has_bits_[0];
6748   if (cached_has_bits & 0x0000000fu) {
6749     if (cached_has_bits & 0x00000001u) {
6750       _this->_internal_set_heap_name(from._internal_heap_name());
6751     }
6752     if (cached_has_bits & 0x00000002u) {
6753       _this->_impl_.align_ = from._impl_.align_;
6754     }
6755     if (cached_has_bits & 0x00000004u) {
6756       _this->_impl_.flags_ = from._impl_.flags_;
6757     }
6758     if (cached_has_bits & 0x00000008u) {
6759       _this->_impl_.len_ = from._impl_.len_;
6760     }
6761     _this->_impl_._has_bits_[0] |= cached_has_bits;
6762   }
6763   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6764 }
6765 
CopyFrom(const IonSecureCmaAllocateEndFtraceEvent & from)6766 void IonSecureCmaAllocateEndFtraceEvent::CopyFrom(const IonSecureCmaAllocateEndFtraceEvent& from) {
6767 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.IonSecureCmaAllocateEndFtraceEvent)
6768   if (&from == this) return;
6769   Clear();
6770   MergeFrom(from);
6771 }
6772 
IsInitialized() const6773 bool IonSecureCmaAllocateEndFtraceEvent::IsInitialized() const {
6774   return true;
6775 }
6776 
InternalSwap(IonSecureCmaAllocateEndFtraceEvent * other)6777 void IonSecureCmaAllocateEndFtraceEvent::InternalSwap(IonSecureCmaAllocateEndFtraceEvent* other) {
6778   using std::swap;
6779   auto* lhs_arena = GetArenaForAllocation();
6780   auto* rhs_arena = other->GetArenaForAllocation();
6781   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6782   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
6783   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
6784       &_impl_.heap_name_, lhs_arena,
6785       &other->_impl_.heap_name_, rhs_arena
6786   );
6787   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
6788       PROTOBUF_FIELD_OFFSET(IonSecureCmaAllocateEndFtraceEvent, _impl_.len_)
6789       + sizeof(IonSecureCmaAllocateEndFtraceEvent::_impl_.len_)  // NOLINT
6790       - PROTOBUF_FIELD_OFFSET(IonSecureCmaAllocateEndFtraceEvent, _impl_.align_)>(
6791           reinterpret_cast<char*>(&_impl_.align_),
6792           reinterpret_cast<char*>(&other->_impl_.align_));
6793 }
6794 
GetTypeName() const6795 std::string IonSecureCmaAllocateEndFtraceEvent::GetTypeName() const {
6796   return "perfetto.protos.IonSecureCmaAllocateEndFtraceEvent";
6797 }
6798 
6799 
6800 // ===================================================================
6801 
6802 class IonSecureCmaAllocateStartFtraceEvent::_Internal {
6803  public:
6804   using HasBits = decltype(std::declval<IonSecureCmaAllocateStartFtraceEvent>()._impl_._has_bits_);
set_has_align(HasBits * has_bits)6805   static void set_has_align(HasBits* has_bits) {
6806     (*has_bits)[0] |= 2u;
6807   }
set_has_flags(HasBits * has_bits)6808   static void set_has_flags(HasBits* has_bits) {
6809     (*has_bits)[0] |= 4u;
6810   }
set_has_heap_name(HasBits * has_bits)6811   static void set_has_heap_name(HasBits* has_bits) {
6812     (*has_bits)[0] |= 1u;
6813   }
set_has_len(HasBits * has_bits)6814   static void set_has_len(HasBits* has_bits) {
6815     (*has_bits)[0] |= 8u;
6816   }
6817 };
6818 
IonSecureCmaAllocateStartFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)6819 IonSecureCmaAllocateStartFtraceEvent::IonSecureCmaAllocateStartFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6820                          bool is_message_owned)
6821   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
6822   SharedCtor(arena, is_message_owned);
6823   // @@protoc_insertion_point(arena_constructor:perfetto.protos.IonSecureCmaAllocateStartFtraceEvent)
6824 }
IonSecureCmaAllocateStartFtraceEvent(const IonSecureCmaAllocateStartFtraceEvent & from)6825 IonSecureCmaAllocateStartFtraceEvent::IonSecureCmaAllocateStartFtraceEvent(const IonSecureCmaAllocateStartFtraceEvent& from)
6826   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
6827   IonSecureCmaAllocateStartFtraceEvent* const _this = this; (void)_this;
6828   new (&_impl_) Impl_{
6829       decltype(_impl_._has_bits_){from._impl_._has_bits_}
6830     , /*decltype(_impl_._cached_size_)*/{}
6831     , decltype(_impl_.heap_name_){}
6832     , decltype(_impl_.align_){}
6833     , decltype(_impl_.flags_){}
6834     , decltype(_impl_.len_){}};
6835 
6836   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6837   _impl_.heap_name_.InitDefault();
6838   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6839     _impl_.heap_name_.Set("", GetArenaForAllocation());
6840   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6841   if (from._internal_has_heap_name()) {
6842     _this->_impl_.heap_name_.Set(from._internal_heap_name(),
6843       _this->GetArenaForAllocation());
6844   }
6845   ::memcpy(&_impl_.align_, &from._impl_.align_,
6846     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.len_) -
6847     reinterpret_cast<char*>(&_impl_.align_)) + sizeof(_impl_.len_));
6848   // @@protoc_insertion_point(copy_constructor:perfetto.protos.IonSecureCmaAllocateStartFtraceEvent)
6849 }
6850 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)6851 inline void IonSecureCmaAllocateStartFtraceEvent::SharedCtor(
6852     ::_pb::Arena* arena, bool is_message_owned) {
6853   (void)arena;
6854   (void)is_message_owned;
6855   new (&_impl_) Impl_{
6856       decltype(_impl_._has_bits_){}
6857     , /*decltype(_impl_._cached_size_)*/{}
6858     , decltype(_impl_.heap_name_){}
6859     , decltype(_impl_.align_){::uint64_t{0u}}
6860     , decltype(_impl_.flags_){::uint64_t{0u}}
6861     , decltype(_impl_.len_){::uint64_t{0u}}
6862   };
6863   _impl_.heap_name_.InitDefault();
6864   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6865     _impl_.heap_name_.Set("", GetArenaForAllocation());
6866   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6867 }
6868 
~IonSecureCmaAllocateStartFtraceEvent()6869 IonSecureCmaAllocateStartFtraceEvent::~IonSecureCmaAllocateStartFtraceEvent() {
6870   // @@protoc_insertion_point(destructor:perfetto.protos.IonSecureCmaAllocateStartFtraceEvent)
6871   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
6872   (void)arena;
6873     return;
6874   }
6875   SharedDtor();
6876 }
6877 
SharedDtor()6878 inline void IonSecureCmaAllocateStartFtraceEvent::SharedDtor() {
6879   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
6880   _impl_.heap_name_.Destroy();
6881 }
6882 
SetCachedSize(int size) const6883 void IonSecureCmaAllocateStartFtraceEvent::SetCachedSize(int size) const {
6884   _impl_._cached_size_.Set(size);
6885 }
6886 
Clear()6887 void IonSecureCmaAllocateStartFtraceEvent::Clear() {
6888 // @@protoc_insertion_point(message_clear_start:perfetto.protos.IonSecureCmaAllocateStartFtraceEvent)
6889   ::uint32_t cached_has_bits = 0;
6890   // Prevent compiler warnings about cached_has_bits being unused
6891   (void) cached_has_bits;
6892 
6893   cached_has_bits = _impl_._has_bits_[0];
6894   if (cached_has_bits & 0x00000001u) {
6895     _impl_.heap_name_.ClearNonDefaultToEmpty();
6896   }
6897   if (cached_has_bits & 0x0000000eu) {
6898     ::memset(&_impl_.align_, 0, static_cast<size_t>(
6899         reinterpret_cast<char*>(&_impl_.len_) -
6900         reinterpret_cast<char*>(&_impl_.align_)) + sizeof(_impl_.len_));
6901   }
6902   _impl_._has_bits_.Clear();
6903   _internal_metadata_.Clear<std::string>();
6904 }
6905 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)6906 const char* IonSecureCmaAllocateStartFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
6907 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6908   _Internal::HasBits has_bits{};
6909   while (!ctx->Done(&ptr)) {
6910     ::uint32_t tag;
6911     ptr = ::_pbi::ReadTag(ptr, &tag);
6912     switch (tag >> 3) {
6913       // optional uint64 align = 1;
6914       case 1:
6915         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
6916           _Internal::set_has_align(&has_bits);
6917           _impl_.align_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6918           CHK_(ptr);
6919         } else {
6920           goto handle_unusual;
6921         }
6922         continue;
6923       // optional uint64 flags = 2;
6924       case 2:
6925         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
6926           _Internal::set_has_flags(&has_bits);
6927           _impl_.flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6928           CHK_(ptr);
6929         } else {
6930           goto handle_unusual;
6931         }
6932         continue;
6933       // optional string heap_name = 3;
6934       case 3:
6935         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
6936           auto str = _internal_mutable_heap_name();
6937           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
6938           CHK_(ptr);
6939         } else {
6940           goto handle_unusual;
6941         }
6942         continue;
6943       // optional uint64 len = 4;
6944       case 4:
6945         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
6946           _Internal::set_has_len(&has_bits);
6947           _impl_.len_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6948           CHK_(ptr);
6949         } else {
6950           goto handle_unusual;
6951         }
6952         continue;
6953       default:
6954         goto handle_unusual;
6955     }  // switch
6956   handle_unusual:
6957     if ((tag == 0) || ((tag & 7) == 4)) {
6958       CHK_(ptr);
6959       ctx->SetLastTag(tag);
6960       goto message_done;
6961     }
6962     ptr = UnknownFieldParse(
6963         tag,
6964         _internal_metadata_.mutable_unknown_fields<std::string>(),
6965         ptr, ctx);
6966     CHK_(ptr != nullptr);
6967   }  // while
6968 message_done:
6969   _impl_._has_bits_.Or(has_bits);
6970   return ptr;
6971 failure:
6972   ptr = nullptr;
6973   goto message_done;
6974 #undef CHK_
6975 }
6976 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const6977 ::uint8_t* IonSecureCmaAllocateStartFtraceEvent::_InternalSerialize(
6978     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
6979   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.IonSecureCmaAllocateStartFtraceEvent)
6980   ::uint32_t cached_has_bits = 0;
6981   (void) cached_has_bits;
6982 
6983   cached_has_bits = _impl_._has_bits_[0];
6984   // optional uint64 align = 1;
6985   if (cached_has_bits & 0x00000002u) {
6986     target = stream->EnsureSpace(target);
6987     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_align(), target);
6988   }
6989 
6990   // optional uint64 flags = 2;
6991   if (cached_has_bits & 0x00000004u) {
6992     target = stream->EnsureSpace(target);
6993     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_flags(), target);
6994   }
6995 
6996   // optional string heap_name = 3;
6997   if (cached_has_bits & 0x00000001u) {
6998     target = stream->WriteStringMaybeAliased(
6999         3, this->_internal_heap_name(), target);
7000   }
7001 
7002   // optional uint64 len = 4;
7003   if (cached_has_bits & 0x00000008u) {
7004     target = stream->EnsureSpace(target);
7005     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_len(), target);
7006   }
7007 
7008   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7009     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
7010         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
7011   }
7012   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.IonSecureCmaAllocateStartFtraceEvent)
7013   return target;
7014 }
7015 
ByteSizeLong() const7016 size_t IonSecureCmaAllocateStartFtraceEvent::ByteSizeLong() const {
7017 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.IonSecureCmaAllocateStartFtraceEvent)
7018   size_t total_size = 0;
7019 
7020   ::uint32_t cached_has_bits = 0;
7021   // Prevent compiler warnings about cached_has_bits being unused
7022   (void) cached_has_bits;
7023 
7024   cached_has_bits = _impl_._has_bits_[0];
7025   if (cached_has_bits & 0x0000000fu) {
7026     // optional string heap_name = 3;
7027     if (cached_has_bits & 0x00000001u) {
7028       total_size += 1 +
7029         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
7030           this->_internal_heap_name());
7031     }
7032 
7033     // optional uint64 align = 1;
7034     if (cached_has_bits & 0x00000002u) {
7035       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_align());
7036     }
7037 
7038     // optional uint64 flags = 2;
7039     if (cached_has_bits & 0x00000004u) {
7040       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_flags());
7041     }
7042 
7043     // optional uint64 len = 4;
7044     if (cached_has_bits & 0x00000008u) {
7045       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_len());
7046     }
7047 
7048   }
7049   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7050     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
7051   }
7052   int cached_size = ::_pbi::ToCachedSize(total_size);
7053   SetCachedSize(cached_size);
7054   return total_size;
7055 }
7056 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)7057 void IonSecureCmaAllocateStartFtraceEvent::CheckTypeAndMergeFrom(
7058     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
7059   MergeFrom(*::_pbi::DownCast<const IonSecureCmaAllocateStartFtraceEvent*>(
7060       &from));
7061 }
7062 
MergeFrom(const IonSecureCmaAllocateStartFtraceEvent & from)7063 void IonSecureCmaAllocateStartFtraceEvent::MergeFrom(const IonSecureCmaAllocateStartFtraceEvent& from) {
7064   IonSecureCmaAllocateStartFtraceEvent* const _this = this;
7065   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.IonSecureCmaAllocateStartFtraceEvent)
7066   GOOGLE_DCHECK_NE(&from, _this);
7067   ::uint32_t cached_has_bits = 0;
7068   (void) cached_has_bits;
7069 
7070   cached_has_bits = from._impl_._has_bits_[0];
7071   if (cached_has_bits & 0x0000000fu) {
7072     if (cached_has_bits & 0x00000001u) {
7073       _this->_internal_set_heap_name(from._internal_heap_name());
7074     }
7075     if (cached_has_bits & 0x00000002u) {
7076       _this->_impl_.align_ = from._impl_.align_;
7077     }
7078     if (cached_has_bits & 0x00000004u) {
7079       _this->_impl_.flags_ = from._impl_.flags_;
7080     }
7081     if (cached_has_bits & 0x00000008u) {
7082       _this->_impl_.len_ = from._impl_.len_;
7083     }
7084     _this->_impl_._has_bits_[0] |= cached_has_bits;
7085   }
7086   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7087 }
7088 
CopyFrom(const IonSecureCmaAllocateStartFtraceEvent & from)7089 void IonSecureCmaAllocateStartFtraceEvent::CopyFrom(const IonSecureCmaAllocateStartFtraceEvent& from) {
7090 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.IonSecureCmaAllocateStartFtraceEvent)
7091   if (&from == this) return;
7092   Clear();
7093   MergeFrom(from);
7094 }
7095 
IsInitialized() const7096 bool IonSecureCmaAllocateStartFtraceEvent::IsInitialized() const {
7097   return true;
7098 }
7099 
InternalSwap(IonSecureCmaAllocateStartFtraceEvent * other)7100 void IonSecureCmaAllocateStartFtraceEvent::InternalSwap(IonSecureCmaAllocateStartFtraceEvent* other) {
7101   using std::swap;
7102   auto* lhs_arena = GetArenaForAllocation();
7103   auto* rhs_arena = other->GetArenaForAllocation();
7104   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7105   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
7106   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
7107       &_impl_.heap_name_, lhs_arena,
7108       &other->_impl_.heap_name_, rhs_arena
7109   );
7110   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
7111       PROTOBUF_FIELD_OFFSET(IonSecureCmaAllocateStartFtraceEvent, _impl_.len_)
7112       + sizeof(IonSecureCmaAllocateStartFtraceEvent::_impl_.len_)  // NOLINT
7113       - PROTOBUF_FIELD_OFFSET(IonSecureCmaAllocateStartFtraceEvent, _impl_.align_)>(
7114           reinterpret_cast<char*>(&_impl_.align_),
7115           reinterpret_cast<char*>(&other->_impl_.align_));
7116 }
7117 
GetTypeName() const7118 std::string IonSecureCmaAllocateStartFtraceEvent::GetTypeName() const {
7119   return "perfetto.protos.IonSecureCmaAllocateStartFtraceEvent";
7120 }
7121 
7122 
7123 // ===================================================================
7124 
7125 class IonSecureCmaShrinkPoolEndFtraceEvent::_Internal {
7126  public:
7127   using HasBits = decltype(std::declval<IonSecureCmaShrinkPoolEndFtraceEvent>()._impl_._has_bits_);
set_has_drained_size(HasBits * has_bits)7128   static void set_has_drained_size(HasBits* has_bits) {
7129     (*has_bits)[0] |= 1u;
7130   }
set_has_skipped_size(HasBits * has_bits)7131   static void set_has_skipped_size(HasBits* has_bits) {
7132     (*has_bits)[0] |= 2u;
7133   }
7134 };
7135 
IonSecureCmaShrinkPoolEndFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)7136 IonSecureCmaShrinkPoolEndFtraceEvent::IonSecureCmaShrinkPoolEndFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7137                          bool is_message_owned)
7138   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
7139   SharedCtor(arena, is_message_owned);
7140   // @@protoc_insertion_point(arena_constructor:perfetto.protos.IonSecureCmaShrinkPoolEndFtraceEvent)
7141 }
IonSecureCmaShrinkPoolEndFtraceEvent(const IonSecureCmaShrinkPoolEndFtraceEvent & from)7142 IonSecureCmaShrinkPoolEndFtraceEvent::IonSecureCmaShrinkPoolEndFtraceEvent(const IonSecureCmaShrinkPoolEndFtraceEvent& from)
7143   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
7144   IonSecureCmaShrinkPoolEndFtraceEvent* const _this = this; (void)_this;
7145   new (&_impl_) Impl_{
7146       decltype(_impl_._has_bits_){from._impl_._has_bits_}
7147     , /*decltype(_impl_._cached_size_)*/{}
7148     , decltype(_impl_.drained_size_){}
7149     , decltype(_impl_.skipped_size_){}};
7150 
7151   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7152   ::memcpy(&_impl_.drained_size_, &from._impl_.drained_size_,
7153     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.skipped_size_) -
7154     reinterpret_cast<char*>(&_impl_.drained_size_)) + sizeof(_impl_.skipped_size_));
7155   // @@protoc_insertion_point(copy_constructor:perfetto.protos.IonSecureCmaShrinkPoolEndFtraceEvent)
7156 }
7157 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)7158 inline void IonSecureCmaShrinkPoolEndFtraceEvent::SharedCtor(
7159     ::_pb::Arena* arena, bool is_message_owned) {
7160   (void)arena;
7161   (void)is_message_owned;
7162   new (&_impl_) Impl_{
7163       decltype(_impl_._has_bits_){}
7164     , /*decltype(_impl_._cached_size_)*/{}
7165     , decltype(_impl_.drained_size_){::uint64_t{0u}}
7166     , decltype(_impl_.skipped_size_){::uint64_t{0u}}
7167   };
7168 }
7169 
~IonSecureCmaShrinkPoolEndFtraceEvent()7170 IonSecureCmaShrinkPoolEndFtraceEvent::~IonSecureCmaShrinkPoolEndFtraceEvent() {
7171   // @@protoc_insertion_point(destructor:perfetto.protos.IonSecureCmaShrinkPoolEndFtraceEvent)
7172   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
7173   (void)arena;
7174     return;
7175   }
7176   SharedDtor();
7177 }
7178 
SharedDtor()7179 inline void IonSecureCmaShrinkPoolEndFtraceEvent::SharedDtor() {
7180   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
7181 }
7182 
SetCachedSize(int size) const7183 void IonSecureCmaShrinkPoolEndFtraceEvent::SetCachedSize(int size) const {
7184   _impl_._cached_size_.Set(size);
7185 }
7186 
Clear()7187 void IonSecureCmaShrinkPoolEndFtraceEvent::Clear() {
7188 // @@protoc_insertion_point(message_clear_start:perfetto.protos.IonSecureCmaShrinkPoolEndFtraceEvent)
7189   ::uint32_t cached_has_bits = 0;
7190   // Prevent compiler warnings about cached_has_bits being unused
7191   (void) cached_has_bits;
7192 
7193   cached_has_bits = _impl_._has_bits_[0];
7194   if (cached_has_bits & 0x00000003u) {
7195     ::memset(&_impl_.drained_size_, 0, static_cast<size_t>(
7196         reinterpret_cast<char*>(&_impl_.skipped_size_) -
7197         reinterpret_cast<char*>(&_impl_.drained_size_)) + sizeof(_impl_.skipped_size_));
7198   }
7199   _impl_._has_bits_.Clear();
7200   _internal_metadata_.Clear<std::string>();
7201 }
7202 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)7203 const char* IonSecureCmaShrinkPoolEndFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
7204 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7205   _Internal::HasBits has_bits{};
7206   while (!ctx->Done(&ptr)) {
7207     ::uint32_t tag;
7208     ptr = ::_pbi::ReadTag(ptr, &tag);
7209     switch (tag >> 3) {
7210       // optional uint64 drained_size = 1;
7211       case 1:
7212         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
7213           _Internal::set_has_drained_size(&has_bits);
7214           _impl_.drained_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7215           CHK_(ptr);
7216         } else {
7217           goto handle_unusual;
7218         }
7219         continue;
7220       // optional uint64 skipped_size = 2;
7221       case 2:
7222         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
7223           _Internal::set_has_skipped_size(&has_bits);
7224           _impl_.skipped_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7225           CHK_(ptr);
7226         } else {
7227           goto handle_unusual;
7228         }
7229         continue;
7230       default:
7231         goto handle_unusual;
7232     }  // switch
7233   handle_unusual:
7234     if ((tag == 0) || ((tag & 7) == 4)) {
7235       CHK_(ptr);
7236       ctx->SetLastTag(tag);
7237       goto message_done;
7238     }
7239     ptr = UnknownFieldParse(
7240         tag,
7241         _internal_metadata_.mutable_unknown_fields<std::string>(),
7242         ptr, ctx);
7243     CHK_(ptr != nullptr);
7244   }  // while
7245 message_done:
7246   _impl_._has_bits_.Or(has_bits);
7247   return ptr;
7248 failure:
7249   ptr = nullptr;
7250   goto message_done;
7251 #undef CHK_
7252 }
7253 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const7254 ::uint8_t* IonSecureCmaShrinkPoolEndFtraceEvent::_InternalSerialize(
7255     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7256   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.IonSecureCmaShrinkPoolEndFtraceEvent)
7257   ::uint32_t cached_has_bits = 0;
7258   (void) cached_has_bits;
7259 
7260   cached_has_bits = _impl_._has_bits_[0];
7261   // optional uint64 drained_size = 1;
7262   if (cached_has_bits & 0x00000001u) {
7263     target = stream->EnsureSpace(target);
7264     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_drained_size(), target);
7265   }
7266 
7267   // optional uint64 skipped_size = 2;
7268   if (cached_has_bits & 0x00000002u) {
7269     target = stream->EnsureSpace(target);
7270     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_skipped_size(), target);
7271   }
7272 
7273   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7274     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
7275         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
7276   }
7277   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.IonSecureCmaShrinkPoolEndFtraceEvent)
7278   return target;
7279 }
7280 
ByteSizeLong() const7281 size_t IonSecureCmaShrinkPoolEndFtraceEvent::ByteSizeLong() const {
7282 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.IonSecureCmaShrinkPoolEndFtraceEvent)
7283   size_t total_size = 0;
7284 
7285   ::uint32_t cached_has_bits = 0;
7286   // Prevent compiler warnings about cached_has_bits being unused
7287   (void) cached_has_bits;
7288 
7289   cached_has_bits = _impl_._has_bits_[0];
7290   if (cached_has_bits & 0x00000003u) {
7291     // optional uint64 drained_size = 1;
7292     if (cached_has_bits & 0x00000001u) {
7293       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_drained_size());
7294     }
7295 
7296     // optional uint64 skipped_size = 2;
7297     if (cached_has_bits & 0x00000002u) {
7298       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_skipped_size());
7299     }
7300 
7301   }
7302   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7303     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
7304   }
7305   int cached_size = ::_pbi::ToCachedSize(total_size);
7306   SetCachedSize(cached_size);
7307   return total_size;
7308 }
7309 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)7310 void IonSecureCmaShrinkPoolEndFtraceEvent::CheckTypeAndMergeFrom(
7311     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
7312   MergeFrom(*::_pbi::DownCast<const IonSecureCmaShrinkPoolEndFtraceEvent*>(
7313       &from));
7314 }
7315 
MergeFrom(const IonSecureCmaShrinkPoolEndFtraceEvent & from)7316 void IonSecureCmaShrinkPoolEndFtraceEvent::MergeFrom(const IonSecureCmaShrinkPoolEndFtraceEvent& from) {
7317   IonSecureCmaShrinkPoolEndFtraceEvent* const _this = this;
7318   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.IonSecureCmaShrinkPoolEndFtraceEvent)
7319   GOOGLE_DCHECK_NE(&from, _this);
7320   ::uint32_t cached_has_bits = 0;
7321   (void) cached_has_bits;
7322 
7323   cached_has_bits = from._impl_._has_bits_[0];
7324   if (cached_has_bits & 0x00000003u) {
7325     if (cached_has_bits & 0x00000001u) {
7326       _this->_impl_.drained_size_ = from._impl_.drained_size_;
7327     }
7328     if (cached_has_bits & 0x00000002u) {
7329       _this->_impl_.skipped_size_ = from._impl_.skipped_size_;
7330     }
7331     _this->_impl_._has_bits_[0] |= cached_has_bits;
7332   }
7333   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7334 }
7335 
CopyFrom(const IonSecureCmaShrinkPoolEndFtraceEvent & from)7336 void IonSecureCmaShrinkPoolEndFtraceEvent::CopyFrom(const IonSecureCmaShrinkPoolEndFtraceEvent& from) {
7337 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.IonSecureCmaShrinkPoolEndFtraceEvent)
7338   if (&from == this) return;
7339   Clear();
7340   MergeFrom(from);
7341 }
7342 
IsInitialized() const7343 bool IonSecureCmaShrinkPoolEndFtraceEvent::IsInitialized() const {
7344   return true;
7345 }
7346 
InternalSwap(IonSecureCmaShrinkPoolEndFtraceEvent * other)7347 void IonSecureCmaShrinkPoolEndFtraceEvent::InternalSwap(IonSecureCmaShrinkPoolEndFtraceEvent* other) {
7348   using std::swap;
7349   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7350   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
7351   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
7352       PROTOBUF_FIELD_OFFSET(IonSecureCmaShrinkPoolEndFtraceEvent, _impl_.skipped_size_)
7353       + sizeof(IonSecureCmaShrinkPoolEndFtraceEvent::_impl_.skipped_size_)  // NOLINT
7354       - PROTOBUF_FIELD_OFFSET(IonSecureCmaShrinkPoolEndFtraceEvent, _impl_.drained_size_)>(
7355           reinterpret_cast<char*>(&_impl_.drained_size_),
7356           reinterpret_cast<char*>(&other->_impl_.drained_size_));
7357 }
7358 
GetTypeName() const7359 std::string IonSecureCmaShrinkPoolEndFtraceEvent::GetTypeName() const {
7360   return "perfetto.protos.IonSecureCmaShrinkPoolEndFtraceEvent";
7361 }
7362 
7363 
7364 // ===================================================================
7365 
7366 class IonSecureCmaShrinkPoolStartFtraceEvent::_Internal {
7367  public:
7368   using HasBits = decltype(std::declval<IonSecureCmaShrinkPoolStartFtraceEvent>()._impl_._has_bits_);
set_has_drained_size(HasBits * has_bits)7369   static void set_has_drained_size(HasBits* has_bits) {
7370     (*has_bits)[0] |= 1u;
7371   }
set_has_skipped_size(HasBits * has_bits)7372   static void set_has_skipped_size(HasBits* has_bits) {
7373     (*has_bits)[0] |= 2u;
7374   }
7375 };
7376 
IonSecureCmaShrinkPoolStartFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)7377 IonSecureCmaShrinkPoolStartFtraceEvent::IonSecureCmaShrinkPoolStartFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7378                          bool is_message_owned)
7379   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
7380   SharedCtor(arena, is_message_owned);
7381   // @@protoc_insertion_point(arena_constructor:perfetto.protos.IonSecureCmaShrinkPoolStartFtraceEvent)
7382 }
IonSecureCmaShrinkPoolStartFtraceEvent(const IonSecureCmaShrinkPoolStartFtraceEvent & from)7383 IonSecureCmaShrinkPoolStartFtraceEvent::IonSecureCmaShrinkPoolStartFtraceEvent(const IonSecureCmaShrinkPoolStartFtraceEvent& from)
7384   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
7385   IonSecureCmaShrinkPoolStartFtraceEvent* const _this = this; (void)_this;
7386   new (&_impl_) Impl_{
7387       decltype(_impl_._has_bits_){from._impl_._has_bits_}
7388     , /*decltype(_impl_._cached_size_)*/{}
7389     , decltype(_impl_.drained_size_){}
7390     , decltype(_impl_.skipped_size_){}};
7391 
7392   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7393   ::memcpy(&_impl_.drained_size_, &from._impl_.drained_size_,
7394     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.skipped_size_) -
7395     reinterpret_cast<char*>(&_impl_.drained_size_)) + sizeof(_impl_.skipped_size_));
7396   // @@protoc_insertion_point(copy_constructor:perfetto.protos.IonSecureCmaShrinkPoolStartFtraceEvent)
7397 }
7398 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)7399 inline void IonSecureCmaShrinkPoolStartFtraceEvent::SharedCtor(
7400     ::_pb::Arena* arena, bool is_message_owned) {
7401   (void)arena;
7402   (void)is_message_owned;
7403   new (&_impl_) Impl_{
7404       decltype(_impl_._has_bits_){}
7405     , /*decltype(_impl_._cached_size_)*/{}
7406     , decltype(_impl_.drained_size_){::uint64_t{0u}}
7407     , decltype(_impl_.skipped_size_){::uint64_t{0u}}
7408   };
7409 }
7410 
~IonSecureCmaShrinkPoolStartFtraceEvent()7411 IonSecureCmaShrinkPoolStartFtraceEvent::~IonSecureCmaShrinkPoolStartFtraceEvent() {
7412   // @@protoc_insertion_point(destructor:perfetto.protos.IonSecureCmaShrinkPoolStartFtraceEvent)
7413   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
7414   (void)arena;
7415     return;
7416   }
7417   SharedDtor();
7418 }
7419 
SharedDtor()7420 inline void IonSecureCmaShrinkPoolStartFtraceEvent::SharedDtor() {
7421   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
7422 }
7423 
SetCachedSize(int size) const7424 void IonSecureCmaShrinkPoolStartFtraceEvent::SetCachedSize(int size) const {
7425   _impl_._cached_size_.Set(size);
7426 }
7427 
Clear()7428 void IonSecureCmaShrinkPoolStartFtraceEvent::Clear() {
7429 // @@protoc_insertion_point(message_clear_start:perfetto.protos.IonSecureCmaShrinkPoolStartFtraceEvent)
7430   ::uint32_t cached_has_bits = 0;
7431   // Prevent compiler warnings about cached_has_bits being unused
7432   (void) cached_has_bits;
7433 
7434   cached_has_bits = _impl_._has_bits_[0];
7435   if (cached_has_bits & 0x00000003u) {
7436     ::memset(&_impl_.drained_size_, 0, static_cast<size_t>(
7437         reinterpret_cast<char*>(&_impl_.skipped_size_) -
7438         reinterpret_cast<char*>(&_impl_.drained_size_)) + sizeof(_impl_.skipped_size_));
7439   }
7440   _impl_._has_bits_.Clear();
7441   _internal_metadata_.Clear<std::string>();
7442 }
7443 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)7444 const char* IonSecureCmaShrinkPoolStartFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
7445 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7446   _Internal::HasBits has_bits{};
7447   while (!ctx->Done(&ptr)) {
7448     ::uint32_t tag;
7449     ptr = ::_pbi::ReadTag(ptr, &tag);
7450     switch (tag >> 3) {
7451       // optional uint64 drained_size = 1;
7452       case 1:
7453         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
7454           _Internal::set_has_drained_size(&has_bits);
7455           _impl_.drained_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7456           CHK_(ptr);
7457         } else {
7458           goto handle_unusual;
7459         }
7460         continue;
7461       // optional uint64 skipped_size = 2;
7462       case 2:
7463         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
7464           _Internal::set_has_skipped_size(&has_bits);
7465           _impl_.skipped_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7466           CHK_(ptr);
7467         } else {
7468           goto handle_unusual;
7469         }
7470         continue;
7471       default:
7472         goto handle_unusual;
7473     }  // switch
7474   handle_unusual:
7475     if ((tag == 0) || ((tag & 7) == 4)) {
7476       CHK_(ptr);
7477       ctx->SetLastTag(tag);
7478       goto message_done;
7479     }
7480     ptr = UnknownFieldParse(
7481         tag,
7482         _internal_metadata_.mutable_unknown_fields<std::string>(),
7483         ptr, ctx);
7484     CHK_(ptr != nullptr);
7485   }  // while
7486 message_done:
7487   _impl_._has_bits_.Or(has_bits);
7488   return ptr;
7489 failure:
7490   ptr = nullptr;
7491   goto message_done;
7492 #undef CHK_
7493 }
7494 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const7495 ::uint8_t* IonSecureCmaShrinkPoolStartFtraceEvent::_InternalSerialize(
7496     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7497   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.IonSecureCmaShrinkPoolStartFtraceEvent)
7498   ::uint32_t cached_has_bits = 0;
7499   (void) cached_has_bits;
7500 
7501   cached_has_bits = _impl_._has_bits_[0];
7502   // optional uint64 drained_size = 1;
7503   if (cached_has_bits & 0x00000001u) {
7504     target = stream->EnsureSpace(target);
7505     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_drained_size(), target);
7506   }
7507 
7508   // optional uint64 skipped_size = 2;
7509   if (cached_has_bits & 0x00000002u) {
7510     target = stream->EnsureSpace(target);
7511     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_skipped_size(), target);
7512   }
7513 
7514   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7515     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
7516         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
7517   }
7518   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.IonSecureCmaShrinkPoolStartFtraceEvent)
7519   return target;
7520 }
7521 
ByteSizeLong() const7522 size_t IonSecureCmaShrinkPoolStartFtraceEvent::ByteSizeLong() const {
7523 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.IonSecureCmaShrinkPoolStartFtraceEvent)
7524   size_t total_size = 0;
7525 
7526   ::uint32_t cached_has_bits = 0;
7527   // Prevent compiler warnings about cached_has_bits being unused
7528   (void) cached_has_bits;
7529 
7530   cached_has_bits = _impl_._has_bits_[0];
7531   if (cached_has_bits & 0x00000003u) {
7532     // optional uint64 drained_size = 1;
7533     if (cached_has_bits & 0x00000001u) {
7534       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_drained_size());
7535     }
7536 
7537     // optional uint64 skipped_size = 2;
7538     if (cached_has_bits & 0x00000002u) {
7539       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_skipped_size());
7540     }
7541 
7542   }
7543   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7544     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
7545   }
7546   int cached_size = ::_pbi::ToCachedSize(total_size);
7547   SetCachedSize(cached_size);
7548   return total_size;
7549 }
7550 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)7551 void IonSecureCmaShrinkPoolStartFtraceEvent::CheckTypeAndMergeFrom(
7552     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
7553   MergeFrom(*::_pbi::DownCast<const IonSecureCmaShrinkPoolStartFtraceEvent*>(
7554       &from));
7555 }
7556 
MergeFrom(const IonSecureCmaShrinkPoolStartFtraceEvent & from)7557 void IonSecureCmaShrinkPoolStartFtraceEvent::MergeFrom(const IonSecureCmaShrinkPoolStartFtraceEvent& from) {
7558   IonSecureCmaShrinkPoolStartFtraceEvent* const _this = this;
7559   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.IonSecureCmaShrinkPoolStartFtraceEvent)
7560   GOOGLE_DCHECK_NE(&from, _this);
7561   ::uint32_t cached_has_bits = 0;
7562   (void) cached_has_bits;
7563 
7564   cached_has_bits = from._impl_._has_bits_[0];
7565   if (cached_has_bits & 0x00000003u) {
7566     if (cached_has_bits & 0x00000001u) {
7567       _this->_impl_.drained_size_ = from._impl_.drained_size_;
7568     }
7569     if (cached_has_bits & 0x00000002u) {
7570       _this->_impl_.skipped_size_ = from._impl_.skipped_size_;
7571     }
7572     _this->_impl_._has_bits_[0] |= cached_has_bits;
7573   }
7574   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7575 }
7576 
CopyFrom(const IonSecureCmaShrinkPoolStartFtraceEvent & from)7577 void IonSecureCmaShrinkPoolStartFtraceEvent::CopyFrom(const IonSecureCmaShrinkPoolStartFtraceEvent& from) {
7578 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.IonSecureCmaShrinkPoolStartFtraceEvent)
7579   if (&from == this) return;
7580   Clear();
7581   MergeFrom(from);
7582 }
7583 
IsInitialized() const7584 bool IonSecureCmaShrinkPoolStartFtraceEvent::IsInitialized() const {
7585   return true;
7586 }
7587 
InternalSwap(IonSecureCmaShrinkPoolStartFtraceEvent * other)7588 void IonSecureCmaShrinkPoolStartFtraceEvent::InternalSwap(IonSecureCmaShrinkPoolStartFtraceEvent* other) {
7589   using std::swap;
7590   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7591   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
7592   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
7593       PROTOBUF_FIELD_OFFSET(IonSecureCmaShrinkPoolStartFtraceEvent, _impl_.skipped_size_)
7594       + sizeof(IonSecureCmaShrinkPoolStartFtraceEvent::_impl_.skipped_size_)  // NOLINT
7595       - PROTOBUF_FIELD_OFFSET(IonSecureCmaShrinkPoolStartFtraceEvent, _impl_.drained_size_)>(
7596           reinterpret_cast<char*>(&_impl_.drained_size_),
7597           reinterpret_cast<char*>(&other->_impl_.drained_size_));
7598 }
7599 
GetTypeName() const7600 std::string IonSecureCmaShrinkPoolStartFtraceEvent::GetTypeName() const {
7601   return "perfetto.protos.IonSecureCmaShrinkPoolStartFtraceEvent";
7602 }
7603 
7604 
7605 // ===================================================================
7606 
7607 class KfreeFtraceEvent::_Internal {
7608  public:
7609   using HasBits = decltype(std::declval<KfreeFtraceEvent>()._impl_._has_bits_);
set_has_call_site(HasBits * has_bits)7610   static void set_has_call_site(HasBits* has_bits) {
7611     (*has_bits)[0] |= 1u;
7612   }
set_has_ptr(HasBits * has_bits)7613   static void set_has_ptr(HasBits* has_bits) {
7614     (*has_bits)[0] |= 2u;
7615   }
7616 };
7617 
KfreeFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)7618 KfreeFtraceEvent::KfreeFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7619                          bool is_message_owned)
7620   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
7621   SharedCtor(arena, is_message_owned);
7622   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KfreeFtraceEvent)
7623 }
KfreeFtraceEvent(const KfreeFtraceEvent & from)7624 KfreeFtraceEvent::KfreeFtraceEvent(const KfreeFtraceEvent& from)
7625   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
7626   KfreeFtraceEvent* const _this = this; (void)_this;
7627   new (&_impl_) Impl_{
7628       decltype(_impl_._has_bits_){from._impl_._has_bits_}
7629     , /*decltype(_impl_._cached_size_)*/{}
7630     , decltype(_impl_.call_site_){}
7631     , decltype(_impl_.ptr_){}};
7632 
7633   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7634   ::memcpy(&_impl_.call_site_, &from._impl_.call_site_,
7635     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.ptr_) -
7636     reinterpret_cast<char*>(&_impl_.call_site_)) + sizeof(_impl_.ptr_));
7637   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KfreeFtraceEvent)
7638 }
7639 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)7640 inline void KfreeFtraceEvent::SharedCtor(
7641     ::_pb::Arena* arena, bool is_message_owned) {
7642   (void)arena;
7643   (void)is_message_owned;
7644   new (&_impl_) Impl_{
7645       decltype(_impl_._has_bits_){}
7646     , /*decltype(_impl_._cached_size_)*/{}
7647     , decltype(_impl_.call_site_){::uint64_t{0u}}
7648     , decltype(_impl_.ptr_){::uint64_t{0u}}
7649   };
7650 }
7651 
~KfreeFtraceEvent()7652 KfreeFtraceEvent::~KfreeFtraceEvent() {
7653   // @@protoc_insertion_point(destructor:perfetto.protos.KfreeFtraceEvent)
7654   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
7655   (void)arena;
7656     return;
7657   }
7658   SharedDtor();
7659 }
7660 
SharedDtor()7661 inline void KfreeFtraceEvent::SharedDtor() {
7662   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
7663 }
7664 
SetCachedSize(int size) const7665 void KfreeFtraceEvent::SetCachedSize(int size) const {
7666   _impl_._cached_size_.Set(size);
7667 }
7668 
Clear()7669 void KfreeFtraceEvent::Clear() {
7670 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KfreeFtraceEvent)
7671   ::uint32_t cached_has_bits = 0;
7672   // Prevent compiler warnings about cached_has_bits being unused
7673   (void) cached_has_bits;
7674 
7675   cached_has_bits = _impl_._has_bits_[0];
7676   if (cached_has_bits & 0x00000003u) {
7677     ::memset(&_impl_.call_site_, 0, static_cast<size_t>(
7678         reinterpret_cast<char*>(&_impl_.ptr_) -
7679         reinterpret_cast<char*>(&_impl_.call_site_)) + sizeof(_impl_.ptr_));
7680   }
7681   _impl_._has_bits_.Clear();
7682   _internal_metadata_.Clear<std::string>();
7683 }
7684 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)7685 const char* KfreeFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
7686 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7687   _Internal::HasBits has_bits{};
7688   while (!ctx->Done(&ptr)) {
7689     ::uint32_t tag;
7690     ptr = ::_pbi::ReadTag(ptr, &tag);
7691     switch (tag >> 3) {
7692       // optional uint64 call_site = 1;
7693       case 1:
7694         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
7695           _Internal::set_has_call_site(&has_bits);
7696           _impl_.call_site_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7697           CHK_(ptr);
7698         } else {
7699           goto handle_unusual;
7700         }
7701         continue;
7702       // optional uint64 ptr = 2;
7703       case 2:
7704         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
7705           _Internal::set_has_ptr(&has_bits);
7706           _impl_.ptr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7707           CHK_(ptr);
7708         } else {
7709           goto handle_unusual;
7710         }
7711         continue;
7712       default:
7713         goto handle_unusual;
7714     }  // switch
7715   handle_unusual:
7716     if ((tag == 0) || ((tag & 7) == 4)) {
7717       CHK_(ptr);
7718       ctx->SetLastTag(tag);
7719       goto message_done;
7720     }
7721     ptr = UnknownFieldParse(
7722         tag,
7723         _internal_metadata_.mutable_unknown_fields<std::string>(),
7724         ptr, ctx);
7725     CHK_(ptr != nullptr);
7726   }  // while
7727 message_done:
7728   _impl_._has_bits_.Or(has_bits);
7729   return ptr;
7730 failure:
7731   ptr = nullptr;
7732   goto message_done;
7733 #undef CHK_
7734 }
7735 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const7736 ::uint8_t* KfreeFtraceEvent::_InternalSerialize(
7737     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7738   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KfreeFtraceEvent)
7739   ::uint32_t cached_has_bits = 0;
7740   (void) cached_has_bits;
7741 
7742   cached_has_bits = _impl_._has_bits_[0];
7743   // optional uint64 call_site = 1;
7744   if (cached_has_bits & 0x00000001u) {
7745     target = stream->EnsureSpace(target);
7746     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_call_site(), target);
7747   }
7748 
7749   // optional uint64 ptr = 2;
7750   if (cached_has_bits & 0x00000002u) {
7751     target = stream->EnsureSpace(target);
7752     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_ptr(), target);
7753   }
7754 
7755   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7756     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
7757         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
7758   }
7759   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KfreeFtraceEvent)
7760   return target;
7761 }
7762 
ByteSizeLong() const7763 size_t KfreeFtraceEvent::ByteSizeLong() const {
7764 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KfreeFtraceEvent)
7765   size_t total_size = 0;
7766 
7767   ::uint32_t cached_has_bits = 0;
7768   // Prevent compiler warnings about cached_has_bits being unused
7769   (void) cached_has_bits;
7770 
7771   cached_has_bits = _impl_._has_bits_[0];
7772   if (cached_has_bits & 0x00000003u) {
7773     // optional uint64 call_site = 1;
7774     if (cached_has_bits & 0x00000001u) {
7775       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_call_site());
7776     }
7777 
7778     // optional uint64 ptr = 2;
7779     if (cached_has_bits & 0x00000002u) {
7780       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_ptr());
7781     }
7782 
7783   }
7784   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7785     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
7786   }
7787   int cached_size = ::_pbi::ToCachedSize(total_size);
7788   SetCachedSize(cached_size);
7789   return total_size;
7790 }
7791 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)7792 void KfreeFtraceEvent::CheckTypeAndMergeFrom(
7793     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
7794   MergeFrom(*::_pbi::DownCast<const KfreeFtraceEvent*>(
7795       &from));
7796 }
7797 
MergeFrom(const KfreeFtraceEvent & from)7798 void KfreeFtraceEvent::MergeFrom(const KfreeFtraceEvent& from) {
7799   KfreeFtraceEvent* const _this = this;
7800   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KfreeFtraceEvent)
7801   GOOGLE_DCHECK_NE(&from, _this);
7802   ::uint32_t cached_has_bits = 0;
7803   (void) cached_has_bits;
7804 
7805   cached_has_bits = from._impl_._has_bits_[0];
7806   if (cached_has_bits & 0x00000003u) {
7807     if (cached_has_bits & 0x00000001u) {
7808       _this->_impl_.call_site_ = from._impl_.call_site_;
7809     }
7810     if (cached_has_bits & 0x00000002u) {
7811       _this->_impl_.ptr_ = from._impl_.ptr_;
7812     }
7813     _this->_impl_._has_bits_[0] |= cached_has_bits;
7814   }
7815   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7816 }
7817 
CopyFrom(const KfreeFtraceEvent & from)7818 void KfreeFtraceEvent::CopyFrom(const KfreeFtraceEvent& from) {
7819 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KfreeFtraceEvent)
7820   if (&from == this) return;
7821   Clear();
7822   MergeFrom(from);
7823 }
7824 
IsInitialized() const7825 bool KfreeFtraceEvent::IsInitialized() const {
7826   return true;
7827 }
7828 
InternalSwap(KfreeFtraceEvent * other)7829 void KfreeFtraceEvent::InternalSwap(KfreeFtraceEvent* other) {
7830   using std::swap;
7831   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7832   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
7833   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
7834       PROTOBUF_FIELD_OFFSET(KfreeFtraceEvent, _impl_.ptr_)
7835       + sizeof(KfreeFtraceEvent::_impl_.ptr_)  // NOLINT
7836       - PROTOBUF_FIELD_OFFSET(KfreeFtraceEvent, _impl_.call_site_)>(
7837           reinterpret_cast<char*>(&_impl_.call_site_),
7838           reinterpret_cast<char*>(&other->_impl_.call_site_));
7839 }
7840 
GetTypeName() const7841 std::string KfreeFtraceEvent::GetTypeName() const {
7842   return "perfetto.protos.KfreeFtraceEvent";
7843 }
7844 
7845 
7846 // ===================================================================
7847 
7848 class KmallocFtraceEvent::_Internal {
7849  public:
7850   using HasBits = decltype(std::declval<KmallocFtraceEvent>()._impl_._has_bits_);
set_has_bytes_alloc(HasBits * has_bits)7851   static void set_has_bytes_alloc(HasBits* has_bits) {
7852     (*has_bits)[0] |= 1u;
7853   }
set_has_bytes_req(HasBits * has_bits)7854   static void set_has_bytes_req(HasBits* has_bits) {
7855     (*has_bits)[0] |= 2u;
7856   }
set_has_call_site(HasBits * has_bits)7857   static void set_has_call_site(HasBits* has_bits) {
7858     (*has_bits)[0] |= 4u;
7859   }
set_has_gfp_flags(HasBits * has_bits)7860   static void set_has_gfp_flags(HasBits* has_bits) {
7861     (*has_bits)[0] |= 16u;
7862   }
set_has_ptr(HasBits * has_bits)7863   static void set_has_ptr(HasBits* has_bits) {
7864     (*has_bits)[0] |= 8u;
7865   }
7866 };
7867 
KmallocFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)7868 KmallocFtraceEvent::KmallocFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7869                          bool is_message_owned)
7870   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
7871   SharedCtor(arena, is_message_owned);
7872   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KmallocFtraceEvent)
7873 }
KmallocFtraceEvent(const KmallocFtraceEvent & from)7874 KmallocFtraceEvent::KmallocFtraceEvent(const KmallocFtraceEvent& from)
7875   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
7876   KmallocFtraceEvent* const _this = this; (void)_this;
7877   new (&_impl_) Impl_{
7878       decltype(_impl_._has_bits_){from._impl_._has_bits_}
7879     , /*decltype(_impl_._cached_size_)*/{}
7880     , decltype(_impl_.bytes_alloc_){}
7881     , decltype(_impl_.bytes_req_){}
7882     , decltype(_impl_.call_site_){}
7883     , decltype(_impl_.ptr_){}
7884     , decltype(_impl_.gfp_flags_){}};
7885 
7886   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7887   ::memcpy(&_impl_.bytes_alloc_, &from._impl_.bytes_alloc_,
7888     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.gfp_flags_) -
7889     reinterpret_cast<char*>(&_impl_.bytes_alloc_)) + sizeof(_impl_.gfp_flags_));
7890   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KmallocFtraceEvent)
7891 }
7892 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)7893 inline void KmallocFtraceEvent::SharedCtor(
7894     ::_pb::Arena* arena, bool is_message_owned) {
7895   (void)arena;
7896   (void)is_message_owned;
7897   new (&_impl_) Impl_{
7898       decltype(_impl_._has_bits_){}
7899     , /*decltype(_impl_._cached_size_)*/{}
7900     , decltype(_impl_.bytes_alloc_){::uint64_t{0u}}
7901     , decltype(_impl_.bytes_req_){::uint64_t{0u}}
7902     , decltype(_impl_.call_site_){::uint64_t{0u}}
7903     , decltype(_impl_.ptr_){::uint64_t{0u}}
7904     , decltype(_impl_.gfp_flags_){0u}
7905   };
7906 }
7907 
~KmallocFtraceEvent()7908 KmallocFtraceEvent::~KmallocFtraceEvent() {
7909   // @@protoc_insertion_point(destructor:perfetto.protos.KmallocFtraceEvent)
7910   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
7911   (void)arena;
7912     return;
7913   }
7914   SharedDtor();
7915 }
7916 
SharedDtor()7917 inline void KmallocFtraceEvent::SharedDtor() {
7918   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
7919 }
7920 
SetCachedSize(int size) const7921 void KmallocFtraceEvent::SetCachedSize(int size) const {
7922   _impl_._cached_size_.Set(size);
7923 }
7924 
Clear()7925 void KmallocFtraceEvent::Clear() {
7926 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KmallocFtraceEvent)
7927   ::uint32_t cached_has_bits = 0;
7928   // Prevent compiler warnings about cached_has_bits being unused
7929   (void) cached_has_bits;
7930 
7931   cached_has_bits = _impl_._has_bits_[0];
7932   if (cached_has_bits & 0x0000001fu) {
7933     ::memset(&_impl_.bytes_alloc_, 0, static_cast<size_t>(
7934         reinterpret_cast<char*>(&_impl_.gfp_flags_) -
7935         reinterpret_cast<char*>(&_impl_.bytes_alloc_)) + sizeof(_impl_.gfp_flags_));
7936   }
7937   _impl_._has_bits_.Clear();
7938   _internal_metadata_.Clear<std::string>();
7939 }
7940 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)7941 const char* KmallocFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
7942 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7943   _Internal::HasBits has_bits{};
7944   while (!ctx->Done(&ptr)) {
7945     ::uint32_t tag;
7946     ptr = ::_pbi::ReadTag(ptr, &tag);
7947     switch (tag >> 3) {
7948       // optional uint64 bytes_alloc = 1;
7949       case 1:
7950         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
7951           _Internal::set_has_bytes_alloc(&has_bits);
7952           _impl_.bytes_alloc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7953           CHK_(ptr);
7954         } else {
7955           goto handle_unusual;
7956         }
7957         continue;
7958       // optional uint64 bytes_req = 2;
7959       case 2:
7960         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
7961           _Internal::set_has_bytes_req(&has_bits);
7962           _impl_.bytes_req_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7963           CHK_(ptr);
7964         } else {
7965           goto handle_unusual;
7966         }
7967         continue;
7968       // optional uint64 call_site = 3;
7969       case 3:
7970         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
7971           _Internal::set_has_call_site(&has_bits);
7972           _impl_.call_site_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7973           CHK_(ptr);
7974         } else {
7975           goto handle_unusual;
7976         }
7977         continue;
7978       // optional uint32 gfp_flags = 4;
7979       case 4:
7980         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
7981           _Internal::set_has_gfp_flags(&has_bits);
7982           _impl_.gfp_flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
7983           CHK_(ptr);
7984         } else {
7985           goto handle_unusual;
7986         }
7987         continue;
7988       // optional uint64 ptr = 5;
7989       case 5:
7990         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
7991           _Internal::set_has_ptr(&has_bits);
7992           _impl_.ptr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7993           CHK_(ptr);
7994         } else {
7995           goto handle_unusual;
7996         }
7997         continue;
7998       default:
7999         goto handle_unusual;
8000     }  // switch
8001   handle_unusual:
8002     if ((tag == 0) || ((tag & 7) == 4)) {
8003       CHK_(ptr);
8004       ctx->SetLastTag(tag);
8005       goto message_done;
8006     }
8007     ptr = UnknownFieldParse(
8008         tag,
8009         _internal_metadata_.mutable_unknown_fields<std::string>(),
8010         ptr, ctx);
8011     CHK_(ptr != nullptr);
8012   }  // while
8013 message_done:
8014   _impl_._has_bits_.Or(has_bits);
8015   return ptr;
8016 failure:
8017   ptr = nullptr;
8018   goto message_done;
8019 #undef CHK_
8020 }
8021 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const8022 ::uint8_t* KmallocFtraceEvent::_InternalSerialize(
8023     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8024   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KmallocFtraceEvent)
8025   ::uint32_t cached_has_bits = 0;
8026   (void) cached_has_bits;
8027 
8028   cached_has_bits = _impl_._has_bits_[0];
8029   // optional uint64 bytes_alloc = 1;
8030   if (cached_has_bits & 0x00000001u) {
8031     target = stream->EnsureSpace(target);
8032     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_bytes_alloc(), target);
8033   }
8034 
8035   // optional uint64 bytes_req = 2;
8036   if (cached_has_bits & 0x00000002u) {
8037     target = stream->EnsureSpace(target);
8038     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_bytes_req(), target);
8039   }
8040 
8041   // optional uint64 call_site = 3;
8042   if (cached_has_bits & 0x00000004u) {
8043     target = stream->EnsureSpace(target);
8044     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_call_site(), target);
8045   }
8046 
8047   // optional uint32 gfp_flags = 4;
8048   if (cached_has_bits & 0x00000010u) {
8049     target = stream->EnsureSpace(target);
8050     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_gfp_flags(), target);
8051   }
8052 
8053   // optional uint64 ptr = 5;
8054   if (cached_has_bits & 0x00000008u) {
8055     target = stream->EnsureSpace(target);
8056     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_ptr(), target);
8057   }
8058 
8059   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8060     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
8061         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
8062   }
8063   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KmallocFtraceEvent)
8064   return target;
8065 }
8066 
ByteSizeLong() const8067 size_t KmallocFtraceEvent::ByteSizeLong() const {
8068 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KmallocFtraceEvent)
8069   size_t total_size = 0;
8070 
8071   ::uint32_t cached_has_bits = 0;
8072   // Prevent compiler warnings about cached_has_bits being unused
8073   (void) cached_has_bits;
8074 
8075   cached_has_bits = _impl_._has_bits_[0];
8076   if (cached_has_bits & 0x0000001fu) {
8077     // optional uint64 bytes_alloc = 1;
8078     if (cached_has_bits & 0x00000001u) {
8079       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_bytes_alloc());
8080     }
8081 
8082     // optional uint64 bytes_req = 2;
8083     if (cached_has_bits & 0x00000002u) {
8084       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_bytes_req());
8085     }
8086 
8087     // optional uint64 call_site = 3;
8088     if (cached_has_bits & 0x00000004u) {
8089       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_call_site());
8090     }
8091 
8092     // optional uint64 ptr = 5;
8093     if (cached_has_bits & 0x00000008u) {
8094       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_ptr());
8095     }
8096 
8097     // optional uint32 gfp_flags = 4;
8098     if (cached_has_bits & 0x00000010u) {
8099       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_gfp_flags());
8100     }
8101 
8102   }
8103   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8104     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
8105   }
8106   int cached_size = ::_pbi::ToCachedSize(total_size);
8107   SetCachedSize(cached_size);
8108   return total_size;
8109 }
8110 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)8111 void KmallocFtraceEvent::CheckTypeAndMergeFrom(
8112     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
8113   MergeFrom(*::_pbi::DownCast<const KmallocFtraceEvent*>(
8114       &from));
8115 }
8116 
MergeFrom(const KmallocFtraceEvent & from)8117 void KmallocFtraceEvent::MergeFrom(const KmallocFtraceEvent& from) {
8118   KmallocFtraceEvent* const _this = this;
8119   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KmallocFtraceEvent)
8120   GOOGLE_DCHECK_NE(&from, _this);
8121   ::uint32_t cached_has_bits = 0;
8122   (void) cached_has_bits;
8123 
8124   cached_has_bits = from._impl_._has_bits_[0];
8125   if (cached_has_bits & 0x0000001fu) {
8126     if (cached_has_bits & 0x00000001u) {
8127       _this->_impl_.bytes_alloc_ = from._impl_.bytes_alloc_;
8128     }
8129     if (cached_has_bits & 0x00000002u) {
8130       _this->_impl_.bytes_req_ = from._impl_.bytes_req_;
8131     }
8132     if (cached_has_bits & 0x00000004u) {
8133       _this->_impl_.call_site_ = from._impl_.call_site_;
8134     }
8135     if (cached_has_bits & 0x00000008u) {
8136       _this->_impl_.ptr_ = from._impl_.ptr_;
8137     }
8138     if (cached_has_bits & 0x00000010u) {
8139       _this->_impl_.gfp_flags_ = from._impl_.gfp_flags_;
8140     }
8141     _this->_impl_._has_bits_[0] |= cached_has_bits;
8142   }
8143   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8144 }
8145 
CopyFrom(const KmallocFtraceEvent & from)8146 void KmallocFtraceEvent::CopyFrom(const KmallocFtraceEvent& from) {
8147 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KmallocFtraceEvent)
8148   if (&from == this) return;
8149   Clear();
8150   MergeFrom(from);
8151 }
8152 
IsInitialized() const8153 bool KmallocFtraceEvent::IsInitialized() const {
8154   return true;
8155 }
8156 
InternalSwap(KmallocFtraceEvent * other)8157 void KmallocFtraceEvent::InternalSwap(KmallocFtraceEvent* other) {
8158   using std::swap;
8159   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8160   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
8161   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
8162       PROTOBUF_FIELD_OFFSET(KmallocFtraceEvent, _impl_.gfp_flags_)
8163       + sizeof(KmallocFtraceEvent::_impl_.gfp_flags_)  // NOLINT
8164       - PROTOBUF_FIELD_OFFSET(KmallocFtraceEvent, _impl_.bytes_alloc_)>(
8165           reinterpret_cast<char*>(&_impl_.bytes_alloc_),
8166           reinterpret_cast<char*>(&other->_impl_.bytes_alloc_));
8167 }
8168 
GetTypeName() const8169 std::string KmallocFtraceEvent::GetTypeName() const {
8170   return "perfetto.protos.KmallocFtraceEvent";
8171 }
8172 
8173 
8174 // ===================================================================
8175 
8176 class KmallocNodeFtraceEvent::_Internal {
8177  public:
8178   using HasBits = decltype(std::declval<KmallocNodeFtraceEvent>()._impl_._has_bits_);
set_has_bytes_alloc(HasBits * has_bits)8179   static void set_has_bytes_alloc(HasBits* has_bits) {
8180     (*has_bits)[0] |= 1u;
8181   }
set_has_bytes_req(HasBits * has_bits)8182   static void set_has_bytes_req(HasBits* has_bits) {
8183     (*has_bits)[0] |= 2u;
8184   }
set_has_call_site(HasBits * has_bits)8185   static void set_has_call_site(HasBits* has_bits) {
8186     (*has_bits)[0] |= 4u;
8187   }
set_has_gfp_flags(HasBits * has_bits)8188   static void set_has_gfp_flags(HasBits* has_bits) {
8189     (*has_bits)[0] |= 8u;
8190   }
set_has_node(HasBits * has_bits)8191   static void set_has_node(HasBits* has_bits) {
8192     (*has_bits)[0] |= 16u;
8193   }
set_has_ptr(HasBits * has_bits)8194   static void set_has_ptr(HasBits* has_bits) {
8195     (*has_bits)[0] |= 32u;
8196   }
8197 };
8198 
KmallocNodeFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)8199 KmallocNodeFtraceEvent::KmallocNodeFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8200                          bool is_message_owned)
8201   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
8202   SharedCtor(arena, is_message_owned);
8203   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KmallocNodeFtraceEvent)
8204 }
KmallocNodeFtraceEvent(const KmallocNodeFtraceEvent & from)8205 KmallocNodeFtraceEvent::KmallocNodeFtraceEvent(const KmallocNodeFtraceEvent& from)
8206   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
8207   KmallocNodeFtraceEvent* const _this = this; (void)_this;
8208   new (&_impl_) Impl_{
8209       decltype(_impl_._has_bits_){from._impl_._has_bits_}
8210     , /*decltype(_impl_._cached_size_)*/{}
8211     , decltype(_impl_.bytes_alloc_){}
8212     , decltype(_impl_.bytes_req_){}
8213     , decltype(_impl_.call_site_){}
8214     , decltype(_impl_.gfp_flags_){}
8215     , decltype(_impl_.node_){}
8216     , decltype(_impl_.ptr_){}};
8217 
8218   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8219   ::memcpy(&_impl_.bytes_alloc_, &from._impl_.bytes_alloc_,
8220     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.ptr_) -
8221     reinterpret_cast<char*>(&_impl_.bytes_alloc_)) + sizeof(_impl_.ptr_));
8222   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KmallocNodeFtraceEvent)
8223 }
8224 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)8225 inline void KmallocNodeFtraceEvent::SharedCtor(
8226     ::_pb::Arena* arena, bool is_message_owned) {
8227   (void)arena;
8228   (void)is_message_owned;
8229   new (&_impl_) Impl_{
8230       decltype(_impl_._has_bits_){}
8231     , /*decltype(_impl_._cached_size_)*/{}
8232     , decltype(_impl_.bytes_alloc_){::uint64_t{0u}}
8233     , decltype(_impl_.bytes_req_){::uint64_t{0u}}
8234     , decltype(_impl_.call_site_){::uint64_t{0u}}
8235     , decltype(_impl_.gfp_flags_){0u}
8236     , decltype(_impl_.node_){0}
8237     , decltype(_impl_.ptr_){::uint64_t{0u}}
8238   };
8239 }
8240 
~KmallocNodeFtraceEvent()8241 KmallocNodeFtraceEvent::~KmallocNodeFtraceEvent() {
8242   // @@protoc_insertion_point(destructor:perfetto.protos.KmallocNodeFtraceEvent)
8243   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
8244   (void)arena;
8245     return;
8246   }
8247   SharedDtor();
8248 }
8249 
SharedDtor()8250 inline void KmallocNodeFtraceEvent::SharedDtor() {
8251   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
8252 }
8253 
SetCachedSize(int size) const8254 void KmallocNodeFtraceEvent::SetCachedSize(int size) const {
8255   _impl_._cached_size_.Set(size);
8256 }
8257 
Clear()8258 void KmallocNodeFtraceEvent::Clear() {
8259 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KmallocNodeFtraceEvent)
8260   ::uint32_t cached_has_bits = 0;
8261   // Prevent compiler warnings about cached_has_bits being unused
8262   (void) cached_has_bits;
8263 
8264   cached_has_bits = _impl_._has_bits_[0];
8265   if (cached_has_bits & 0x0000003fu) {
8266     ::memset(&_impl_.bytes_alloc_, 0, static_cast<size_t>(
8267         reinterpret_cast<char*>(&_impl_.ptr_) -
8268         reinterpret_cast<char*>(&_impl_.bytes_alloc_)) + sizeof(_impl_.ptr_));
8269   }
8270   _impl_._has_bits_.Clear();
8271   _internal_metadata_.Clear<std::string>();
8272 }
8273 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)8274 const char* KmallocNodeFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
8275 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8276   _Internal::HasBits has_bits{};
8277   while (!ctx->Done(&ptr)) {
8278     ::uint32_t tag;
8279     ptr = ::_pbi::ReadTag(ptr, &tag);
8280     switch (tag >> 3) {
8281       // optional uint64 bytes_alloc = 1;
8282       case 1:
8283         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
8284           _Internal::set_has_bytes_alloc(&has_bits);
8285           _impl_.bytes_alloc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8286           CHK_(ptr);
8287         } else {
8288           goto handle_unusual;
8289         }
8290         continue;
8291       // optional uint64 bytes_req = 2;
8292       case 2:
8293         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
8294           _Internal::set_has_bytes_req(&has_bits);
8295           _impl_.bytes_req_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8296           CHK_(ptr);
8297         } else {
8298           goto handle_unusual;
8299         }
8300         continue;
8301       // optional uint64 call_site = 3;
8302       case 3:
8303         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
8304           _Internal::set_has_call_site(&has_bits);
8305           _impl_.call_site_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8306           CHK_(ptr);
8307         } else {
8308           goto handle_unusual;
8309         }
8310         continue;
8311       // optional uint32 gfp_flags = 4;
8312       case 4:
8313         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
8314           _Internal::set_has_gfp_flags(&has_bits);
8315           _impl_.gfp_flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
8316           CHK_(ptr);
8317         } else {
8318           goto handle_unusual;
8319         }
8320         continue;
8321       // optional int32 node = 5;
8322       case 5:
8323         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
8324           _Internal::set_has_node(&has_bits);
8325           _impl_.node_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
8326           CHK_(ptr);
8327         } else {
8328           goto handle_unusual;
8329         }
8330         continue;
8331       // optional uint64 ptr = 6;
8332       case 6:
8333         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
8334           _Internal::set_has_ptr(&has_bits);
8335           _impl_.ptr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8336           CHK_(ptr);
8337         } else {
8338           goto handle_unusual;
8339         }
8340         continue;
8341       default:
8342         goto handle_unusual;
8343     }  // switch
8344   handle_unusual:
8345     if ((tag == 0) || ((tag & 7) == 4)) {
8346       CHK_(ptr);
8347       ctx->SetLastTag(tag);
8348       goto message_done;
8349     }
8350     ptr = UnknownFieldParse(
8351         tag,
8352         _internal_metadata_.mutable_unknown_fields<std::string>(),
8353         ptr, ctx);
8354     CHK_(ptr != nullptr);
8355   }  // while
8356 message_done:
8357   _impl_._has_bits_.Or(has_bits);
8358   return ptr;
8359 failure:
8360   ptr = nullptr;
8361   goto message_done;
8362 #undef CHK_
8363 }
8364 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const8365 ::uint8_t* KmallocNodeFtraceEvent::_InternalSerialize(
8366     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8367   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KmallocNodeFtraceEvent)
8368   ::uint32_t cached_has_bits = 0;
8369   (void) cached_has_bits;
8370 
8371   cached_has_bits = _impl_._has_bits_[0];
8372   // optional uint64 bytes_alloc = 1;
8373   if (cached_has_bits & 0x00000001u) {
8374     target = stream->EnsureSpace(target);
8375     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_bytes_alloc(), target);
8376   }
8377 
8378   // optional uint64 bytes_req = 2;
8379   if (cached_has_bits & 0x00000002u) {
8380     target = stream->EnsureSpace(target);
8381     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_bytes_req(), target);
8382   }
8383 
8384   // optional uint64 call_site = 3;
8385   if (cached_has_bits & 0x00000004u) {
8386     target = stream->EnsureSpace(target);
8387     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_call_site(), target);
8388   }
8389 
8390   // optional uint32 gfp_flags = 4;
8391   if (cached_has_bits & 0x00000008u) {
8392     target = stream->EnsureSpace(target);
8393     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_gfp_flags(), target);
8394   }
8395 
8396   // optional int32 node = 5;
8397   if (cached_has_bits & 0x00000010u) {
8398     target = stream->EnsureSpace(target);
8399     target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_node(), target);
8400   }
8401 
8402   // optional uint64 ptr = 6;
8403   if (cached_has_bits & 0x00000020u) {
8404     target = stream->EnsureSpace(target);
8405     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(6, this->_internal_ptr(), target);
8406   }
8407 
8408   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8409     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
8410         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
8411   }
8412   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KmallocNodeFtraceEvent)
8413   return target;
8414 }
8415 
ByteSizeLong() const8416 size_t KmallocNodeFtraceEvent::ByteSizeLong() const {
8417 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KmallocNodeFtraceEvent)
8418   size_t total_size = 0;
8419 
8420   ::uint32_t cached_has_bits = 0;
8421   // Prevent compiler warnings about cached_has_bits being unused
8422   (void) cached_has_bits;
8423 
8424   cached_has_bits = _impl_._has_bits_[0];
8425   if (cached_has_bits & 0x0000003fu) {
8426     // optional uint64 bytes_alloc = 1;
8427     if (cached_has_bits & 0x00000001u) {
8428       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_bytes_alloc());
8429     }
8430 
8431     // optional uint64 bytes_req = 2;
8432     if (cached_has_bits & 0x00000002u) {
8433       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_bytes_req());
8434     }
8435 
8436     // optional uint64 call_site = 3;
8437     if (cached_has_bits & 0x00000004u) {
8438       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_call_site());
8439     }
8440 
8441     // optional uint32 gfp_flags = 4;
8442     if (cached_has_bits & 0x00000008u) {
8443       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_gfp_flags());
8444     }
8445 
8446     // optional int32 node = 5;
8447     if (cached_has_bits & 0x00000010u) {
8448       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_node());
8449     }
8450 
8451     // optional uint64 ptr = 6;
8452     if (cached_has_bits & 0x00000020u) {
8453       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_ptr());
8454     }
8455 
8456   }
8457   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8458     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
8459   }
8460   int cached_size = ::_pbi::ToCachedSize(total_size);
8461   SetCachedSize(cached_size);
8462   return total_size;
8463 }
8464 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)8465 void KmallocNodeFtraceEvent::CheckTypeAndMergeFrom(
8466     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
8467   MergeFrom(*::_pbi::DownCast<const KmallocNodeFtraceEvent*>(
8468       &from));
8469 }
8470 
MergeFrom(const KmallocNodeFtraceEvent & from)8471 void KmallocNodeFtraceEvent::MergeFrom(const KmallocNodeFtraceEvent& from) {
8472   KmallocNodeFtraceEvent* const _this = this;
8473   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KmallocNodeFtraceEvent)
8474   GOOGLE_DCHECK_NE(&from, _this);
8475   ::uint32_t cached_has_bits = 0;
8476   (void) cached_has_bits;
8477 
8478   cached_has_bits = from._impl_._has_bits_[0];
8479   if (cached_has_bits & 0x0000003fu) {
8480     if (cached_has_bits & 0x00000001u) {
8481       _this->_impl_.bytes_alloc_ = from._impl_.bytes_alloc_;
8482     }
8483     if (cached_has_bits & 0x00000002u) {
8484       _this->_impl_.bytes_req_ = from._impl_.bytes_req_;
8485     }
8486     if (cached_has_bits & 0x00000004u) {
8487       _this->_impl_.call_site_ = from._impl_.call_site_;
8488     }
8489     if (cached_has_bits & 0x00000008u) {
8490       _this->_impl_.gfp_flags_ = from._impl_.gfp_flags_;
8491     }
8492     if (cached_has_bits & 0x00000010u) {
8493       _this->_impl_.node_ = from._impl_.node_;
8494     }
8495     if (cached_has_bits & 0x00000020u) {
8496       _this->_impl_.ptr_ = from._impl_.ptr_;
8497     }
8498     _this->_impl_._has_bits_[0] |= cached_has_bits;
8499   }
8500   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8501 }
8502 
CopyFrom(const KmallocNodeFtraceEvent & from)8503 void KmallocNodeFtraceEvent::CopyFrom(const KmallocNodeFtraceEvent& from) {
8504 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KmallocNodeFtraceEvent)
8505   if (&from == this) return;
8506   Clear();
8507   MergeFrom(from);
8508 }
8509 
IsInitialized() const8510 bool KmallocNodeFtraceEvent::IsInitialized() const {
8511   return true;
8512 }
8513 
InternalSwap(KmallocNodeFtraceEvent * other)8514 void KmallocNodeFtraceEvent::InternalSwap(KmallocNodeFtraceEvent* other) {
8515   using std::swap;
8516   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8517   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
8518   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
8519       PROTOBUF_FIELD_OFFSET(KmallocNodeFtraceEvent, _impl_.ptr_)
8520       + sizeof(KmallocNodeFtraceEvent::_impl_.ptr_)  // NOLINT
8521       - PROTOBUF_FIELD_OFFSET(KmallocNodeFtraceEvent, _impl_.bytes_alloc_)>(
8522           reinterpret_cast<char*>(&_impl_.bytes_alloc_),
8523           reinterpret_cast<char*>(&other->_impl_.bytes_alloc_));
8524 }
8525 
GetTypeName() const8526 std::string KmallocNodeFtraceEvent::GetTypeName() const {
8527   return "perfetto.protos.KmallocNodeFtraceEvent";
8528 }
8529 
8530 
8531 // ===================================================================
8532 
8533 class KmemCacheAllocFtraceEvent::_Internal {
8534  public:
8535   using HasBits = decltype(std::declval<KmemCacheAllocFtraceEvent>()._impl_._has_bits_);
set_has_bytes_alloc(HasBits * has_bits)8536   static void set_has_bytes_alloc(HasBits* has_bits) {
8537     (*has_bits)[0] |= 1u;
8538   }
set_has_bytes_req(HasBits * has_bits)8539   static void set_has_bytes_req(HasBits* has_bits) {
8540     (*has_bits)[0] |= 2u;
8541   }
set_has_call_site(HasBits * has_bits)8542   static void set_has_call_site(HasBits* has_bits) {
8543     (*has_bits)[0] |= 4u;
8544   }
set_has_gfp_flags(HasBits * has_bits)8545   static void set_has_gfp_flags(HasBits* has_bits) {
8546     (*has_bits)[0] |= 16u;
8547   }
set_has_ptr(HasBits * has_bits)8548   static void set_has_ptr(HasBits* has_bits) {
8549     (*has_bits)[0] |= 8u;
8550   }
8551 };
8552 
KmemCacheAllocFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)8553 KmemCacheAllocFtraceEvent::KmemCacheAllocFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8554                          bool is_message_owned)
8555   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
8556   SharedCtor(arena, is_message_owned);
8557   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KmemCacheAllocFtraceEvent)
8558 }
KmemCacheAllocFtraceEvent(const KmemCacheAllocFtraceEvent & from)8559 KmemCacheAllocFtraceEvent::KmemCacheAllocFtraceEvent(const KmemCacheAllocFtraceEvent& from)
8560   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
8561   KmemCacheAllocFtraceEvent* const _this = this; (void)_this;
8562   new (&_impl_) Impl_{
8563       decltype(_impl_._has_bits_){from._impl_._has_bits_}
8564     , /*decltype(_impl_._cached_size_)*/{}
8565     , decltype(_impl_.bytes_alloc_){}
8566     , decltype(_impl_.bytes_req_){}
8567     , decltype(_impl_.call_site_){}
8568     , decltype(_impl_.ptr_){}
8569     , decltype(_impl_.gfp_flags_){}};
8570 
8571   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8572   ::memcpy(&_impl_.bytes_alloc_, &from._impl_.bytes_alloc_,
8573     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.gfp_flags_) -
8574     reinterpret_cast<char*>(&_impl_.bytes_alloc_)) + sizeof(_impl_.gfp_flags_));
8575   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KmemCacheAllocFtraceEvent)
8576 }
8577 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)8578 inline void KmemCacheAllocFtraceEvent::SharedCtor(
8579     ::_pb::Arena* arena, bool is_message_owned) {
8580   (void)arena;
8581   (void)is_message_owned;
8582   new (&_impl_) Impl_{
8583       decltype(_impl_._has_bits_){}
8584     , /*decltype(_impl_._cached_size_)*/{}
8585     , decltype(_impl_.bytes_alloc_){::uint64_t{0u}}
8586     , decltype(_impl_.bytes_req_){::uint64_t{0u}}
8587     , decltype(_impl_.call_site_){::uint64_t{0u}}
8588     , decltype(_impl_.ptr_){::uint64_t{0u}}
8589     , decltype(_impl_.gfp_flags_){0u}
8590   };
8591 }
8592 
~KmemCacheAllocFtraceEvent()8593 KmemCacheAllocFtraceEvent::~KmemCacheAllocFtraceEvent() {
8594   // @@protoc_insertion_point(destructor:perfetto.protos.KmemCacheAllocFtraceEvent)
8595   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
8596   (void)arena;
8597     return;
8598   }
8599   SharedDtor();
8600 }
8601 
SharedDtor()8602 inline void KmemCacheAllocFtraceEvent::SharedDtor() {
8603   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
8604 }
8605 
SetCachedSize(int size) const8606 void KmemCacheAllocFtraceEvent::SetCachedSize(int size) const {
8607   _impl_._cached_size_.Set(size);
8608 }
8609 
Clear()8610 void KmemCacheAllocFtraceEvent::Clear() {
8611 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KmemCacheAllocFtraceEvent)
8612   ::uint32_t cached_has_bits = 0;
8613   // Prevent compiler warnings about cached_has_bits being unused
8614   (void) cached_has_bits;
8615 
8616   cached_has_bits = _impl_._has_bits_[0];
8617   if (cached_has_bits & 0x0000001fu) {
8618     ::memset(&_impl_.bytes_alloc_, 0, static_cast<size_t>(
8619         reinterpret_cast<char*>(&_impl_.gfp_flags_) -
8620         reinterpret_cast<char*>(&_impl_.bytes_alloc_)) + sizeof(_impl_.gfp_flags_));
8621   }
8622   _impl_._has_bits_.Clear();
8623   _internal_metadata_.Clear<std::string>();
8624 }
8625 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)8626 const char* KmemCacheAllocFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
8627 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8628   _Internal::HasBits has_bits{};
8629   while (!ctx->Done(&ptr)) {
8630     ::uint32_t tag;
8631     ptr = ::_pbi::ReadTag(ptr, &tag);
8632     switch (tag >> 3) {
8633       // optional uint64 bytes_alloc = 1;
8634       case 1:
8635         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
8636           _Internal::set_has_bytes_alloc(&has_bits);
8637           _impl_.bytes_alloc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8638           CHK_(ptr);
8639         } else {
8640           goto handle_unusual;
8641         }
8642         continue;
8643       // optional uint64 bytes_req = 2;
8644       case 2:
8645         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
8646           _Internal::set_has_bytes_req(&has_bits);
8647           _impl_.bytes_req_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8648           CHK_(ptr);
8649         } else {
8650           goto handle_unusual;
8651         }
8652         continue;
8653       // optional uint64 call_site = 3;
8654       case 3:
8655         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
8656           _Internal::set_has_call_site(&has_bits);
8657           _impl_.call_site_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8658           CHK_(ptr);
8659         } else {
8660           goto handle_unusual;
8661         }
8662         continue;
8663       // optional uint32 gfp_flags = 4;
8664       case 4:
8665         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
8666           _Internal::set_has_gfp_flags(&has_bits);
8667           _impl_.gfp_flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
8668           CHK_(ptr);
8669         } else {
8670           goto handle_unusual;
8671         }
8672         continue;
8673       // optional uint64 ptr = 5;
8674       case 5:
8675         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
8676           _Internal::set_has_ptr(&has_bits);
8677           _impl_.ptr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8678           CHK_(ptr);
8679         } else {
8680           goto handle_unusual;
8681         }
8682         continue;
8683       default:
8684         goto handle_unusual;
8685     }  // switch
8686   handle_unusual:
8687     if ((tag == 0) || ((tag & 7) == 4)) {
8688       CHK_(ptr);
8689       ctx->SetLastTag(tag);
8690       goto message_done;
8691     }
8692     ptr = UnknownFieldParse(
8693         tag,
8694         _internal_metadata_.mutable_unknown_fields<std::string>(),
8695         ptr, ctx);
8696     CHK_(ptr != nullptr);
8697   }  // while
8698 message_done:
8699   _impl_._has_bits_.Or(has_bits);
8700   return ptr;
8701 failure:
8702   ptr = nullptr;
8703   goto message_done;
8704 #undef CHK_
8705 }
8706 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const8707 ::uint8_t* KmemCacheAllocFtraceEvent::_InternalSerialize(
8708     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8709   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KmemCacheAllocFtraceEvent)
8710   ::uint32_t cached_has_bits = 0;
8711   (void) cached_has_bits;
8712 
8713   cached_has_bits = _impl_._has_bits_[0];
8714   // optional uint64 bytes_alloc = 1;
8715   if (cached_has_bits & 0x00000001u) {
8716     target = stream->EnsureSpace(target);
8717     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_bytes_alloc(), target);
8718   }
8719 
8720   // optional uint64 bytes_req = 2;
8721   if (cached_has_bits & 0x00000002u) {
8722     target = stream->EnsureSpace(target);
8723     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_bytes_req(), target);
8724   }
8725 
8726   // optional uint64 call_site = 3;
8727   if (cached_has_bits & 0x00000004u) {
8728     target = stream->EnsureSpace(target);
8729     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_call_site(), target);
8730   }
8731 
8732   // optional uint32 gfp_flags = 4;
8733   if (cached_has_bits & 0x00000010u) {
8734     target = stream->EnsureSpace(target);
8735     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_gfp_flags(), target);
8736   }
8737 
8738   // optional uint64 ptr = 5;
8739   if (cached_has_bits & 0x00000008u) {
8740     target = stream->EnsureSpace(target);
8741     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_ptr(), target);
8742   }
8743 
8744   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8745     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
8746         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
8747   }
8748   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KmemCacheAllocFtraceEvent)
8749   return target;
8750 }
8751 
ByteSizeLong() const8752 size_t KmemCacheAllocFtraceEvent::ByteSizeLong() const {
8753 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KmemCacheAllocFtraceEvent)
8754   size_t total_size = 0;
8755 
8756   ::uint32_t cached_has_bits = 0;
8757   // Prevent compiler warnings about cached_has_bits being unused
8758   (void) cached_has_bits;
8759 
8760   cached_has_bits = _impl_._has_bits_[0];
8761   if (cached_has_bits & 0x0000001fu) {
8762     // optional uint64 bytes_alloc = 1;
8763     if (cached_has_bits & 0x00000001u) {
8764       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_bytes_alloc());
8765     }
8766 
8767     // optional uint64 bytes_req = 2;
8768     if (cached_has_bits & 0x00000002u) {
8769       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_bytes_req());
8770     }
8771 
8772     // optional uint64 call_site = 3;
8773     if (cached_has_bits & 0x00000004u) {
8774       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_call_site());
8775     }
8776 
8777     // optional uint64 ptr = 5;
8778     if (cached_has_bits & 0x00000008u) {
8779       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_ptr());
8780     }
8781 
8782     // optional uint32 gfp_flags = 4;
8783     if (cached_has_bits & 0x00000010u) {
8784       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_gfp_flags());
8785     }
8786 
8787   }
8788   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8789     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
8790   }
8791   int cached_size = ::_pbi::ToCachedSize(total_size);
8792   SetCachedSize(cached_size);
8793   return total_size;
8794 }
8795 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)8796 void KmemCacheAllocFtraceEvent::CheckTypeAndMergeFrom(
8797     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
8798   MergeFrom(*::_pbi::DownCast<const KmemCacheAllocFtraceEvent*>(
8799       &from));
8800 }
8801 
MergeFrom(const KmemCacheAllocFtraceEvent & from)8802 void KmemCacheAllocFtraceEvent::MergeFrom(const KmemCacheAllocFtraceEvent& from) {
8803   KmemCacheAllocFtraceEvent* const _this = this;
8804   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KmemCacheAllocFtraceEvent)
8805   GOOGLE_DCHECK_NE(&from, _this);
8806   ::uint32_t cached_has_bits = 0;
8807   (void) cached_has_bits;
8808 
8809   cached_has_bits = from._impl_._has_bits_[0];
8810   if (cached_has_bits & 0x0000001fu) {
8811     if (cached_has_bits & 0x00000001u) {
8812       _this->_impl_.bytes_alloc_ = from._impl_.bytes_alloc_;
8813     }
8814     if (cached_has_bits & 0x00000002u) {
8815       _this->_impl_.bytes_req_ = from._impl_.bytes_req_;
8816     }
8817     if (cached_has_bits & 0x00000004u) {
8818       _this->_impl_.call_site_ = from._impl_.call_site_;
8819     }
8820     if (cached_has_bits & 0x00000008u) {
8821       _this->_impl_.ptr_ = from._impl_.ptr_;
8822     }
8823     if (cached_has_bits & 0x00000010u) {
8824       _this->_impl_.gfp_flags_ = from._impl_.gfp_flags_;
8825     }
8826     _this->_impl_._has_bits_[0] |= cached_has_bits;
8827   }
8828   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8829 }
8830 
CopyFrom(const KmemCacheAllocFtraceEvent & from)8831 void KmemCacheAllocFtraceEvent::CopyFrom(const KmemCacheAllocFtraceEvent& from) {
8832 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KmemCacheAllocFtraceEvent)
8833   if (&from == this) return;
8834   Clear();
8835   MergeFrom(from);
8836 }
8837 
IsInitialized() const8838 bool KmemCacheAllocFtraceEvent::IsInitialized() const {
8839   return true;
8840 }
8841 
InternalSwap(KmemCacheAllocFtraceEvent * other)8842 void KmemCacheAllocFtraceEvent::InternalSwap(KmemCacheAllocFtraceEvent* other) {
8843   using std::swap;
8844   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8845   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
8846   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
8847       PROTOBUF_FIELD_OFFSET(KmemCacheAllocFtraceEvent, _impl_.gfp_flags_)
8848       + sizeof(KmemCacheAllocFtraceEvent::_impl_.gfp_flags_)  // NOLINT
8849       - PROTOBUF_FIELD_OFFSET(KmemCacheAllocFtraceEvent, _impl_.bytes_alloc_)>(
8850           reinterpret_cast<char*>(&_impl_.bytes_alloc_),
8851           reinterpret_cast<char*>(&other->_impl_.bytes_alloc_));
8852 }
8853 
GetTypeName() const8854 std::string KmemCacheAllocFtraceEvent::GetTypeName() const {
8855   return "perfetto.protos.KmemCacheAllocFtraceEvent";
8856 }
8857 
8858 
8859 // ===================================================================
8860 
8861 class KmemCacheAllocNodeFtraceEvent::_Internal {
8862  public:
8863   using HasBits = decltype(std::declval<KmemCacheAllocNodeFtraceEvent>()._impl_._has_bits_);
set_has_bytes_alloc(HasBits * has_bits)8864   static void set_has_bytes_alloc(HasBits* has_bits) {
8865     (*has_bits)[0] |= 1u;
8866   }
set_has_bytes_req(HasBits * has_bits)8867   static void set_has_bytes_req(HasBits* has_bits) {
8868     (*has_bits)[0] |= 2u;
8869   }
set_has_call_site(HasBits * has_bits)8870   static void set_has_call_site(HasBits* has_bits) {
8871     (*has_bits)[0] |= 4u;
8872   }
set_has_gfp_flags(HasBits * has_bits)8873   static void set_has_gfp_flags(HasBits* has_bits) {
8874     (*has_bits)[0] |= 8u;
8875   }
set_has_node(HasBits * has_bits)8876   static void set_has_node(HasBits* has_bits) {
8877     (*has_bits)[0] |= 16u;
8878   }
set_has_ptr(HasBits * has_bits)8879   static void set_has_ptr(HasBits* has_bits) {
8880     (*has_bits)[0] |= 32u;
8881   }
8882 };
8883 
KmemCacheAllocNodeFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)8884 KmemCacheAllocNodeFtraceEvent::KmemCacheAllocNodeFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8885                          bool is_message_owned)
8886   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
8887   SharedCtor(arena, is_message_owned);
8888   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KmemCacheAllocNodeFtraceEvent)
8889 }
KmemCacheAllocNodeFtraceEvent(const KmemCacheAllocNodeFtraceEvent & from)8890 KmemCacheAllocNodeFtraceEvent::KmemCacheAllocNodeFtraceEvent(const KmemCacheAllocNodeFtraceEvent& from)
8891   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
8892   KmemCacheAllocNodeFtraceEvent* const _this = this; (void)_this;
8893   new (&_impl_) Impl_{
8894       decltype(_impl_._has_bits_){from._impl_._has_bits_}
8895     , /*decltype(_impl_._cached_size_)*/{}
8896     , decltype(_impl_.bytes_alloc_){}
8897     , decltype(_impl_.bytes_req_){}
8898     , decltype(_impl_.call_site_){}
8899     , decltype(_impl_.gfp_flags_){}
8900     , decltype(_impl_.node_){}
8901     , decltype(_impl_.ptr_){}};
8902 
8903   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8904   ::memcpy(&_impl_.bytes_alloc_, &from._impl_.bytes_alloc_,
8905     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.ptr_) -
8906     reinterpret_cast<char*>(&_impl_.bytes_alloc_)) + sizeof(_impl_.ptr_));
8907   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KmemCacheAllocNodeFtraceEvent)
8908 }
8909 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)8910 inline void KmemCacheAllocNodeFtraceEvent::SharedCtor(
8911     ::_pb::Arena* arena, bool is_message_owned) {
8912   (void)arena;
8913   (void)is_message_owned;
8914   new (&_impl_) Impl_{
8915       decltype(_impl_._has_bits_){}
8916     , /*decltype(_impl_._cached_size_)*/{}
8917     , decltype(_impl_.bytes_alloc_){::uint64_t{0u}}
8918     , decltype(_impl_.bytes_req_){::uint64_t{0u}}
8919     , decltype(_impl_.call_site_){::uint64_t{0u}}
8920     , decltype(_impl_.gfp_flags_){0u}
8921     , decltype(_impl_.node_){0}
8922     , decltype(_impl_.ptr_){::uint64_t{0u}}
8923   };
8924 }
8925 
~KmemCacheAllocNodeFtraceEvent()8926 KmemCacheAllocNodeFtraceEvent::~KmemCacheAllocNodeFtraceEvent() {
8927   // @@protoc_insertion_point(destructor:perfetto.protos.KmemCacheAllocNodeFtraceEvent)
8928   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
8929   (void)arena;
8930     return;
8931   }
8932   SharedDtor();
8933 }
8934 
SharedDtor()8935 inline void KmemCacheAllocNodeFtraceEvent::SharedDtor() {
8936   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
8937 }
8938 
SetCachedSize(int size) const8939 void KmemCacheAllocNodeFtraceEvent::SetCachedSize(int size) const {
8940   _impl_._cached_size_.Set(size);
8941 }
8942 
Clear()8943 void KmemCacheAllocNodeFtraceEvent::Clear() {
8944 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KmemCacheAllocNodeFtraceEvent)
8945   ::uint32_t cached_has_bits = 0;
8946   // Prevent compiler warnings about cached_has_bits being unused
8947   (void) cached_has_bits;
8948 
8949   cached_has_bits = _impl_._has_bits_[0];
8950   if (cached_has_bits & 0x0000003fu) {
8951     ::memset(&_impl_.bytes_alloc_, 0, static_cast<size_t>(
8952         reinterpret_cast<char*>(&_impl_.ptr_) -
8953         reinterpret_cast<char*>(&_impl_.bytes_alloc_)) + sizeof(_impl_.ptr_));
8954   }
8955   _impl_._has_bits_.Clear();
8956   _internal_metadata_.Clear<std::string>();
8957 }
8958 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)8959 const char* KmemCacheAllocNodeFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
8960 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8961   _Internal::HasBits has_bits{};
8962   while (!ctx->Done(&ptr)) {
8963     ::uint32_t tag;
8964     ptr = ::_pbi::ReadTag(ptr, &tag);
8965     switch (tag >> 3) {
8966       // optional uint64 bytes_alloc = 1;
8967       case 1:
8968         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
8969           _Internal::set_has_bytes_alloc(&has_bits);
8970           _impl_.bytes_alloc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8971           CHK_(ptr);
8972         } else {
8973           goto handle_unusual;
8974         }
8975         continue;
8976       // optional uint64 bytes_req = 2;
8977       case 2:
8978         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
8979           _Internal::set_has_bytes_req(&has_bits);
8980           _impl_.bytes_req_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8981           CHK_(ptr);
8982         } else {
8983           goto handle_unusual;
8984         }
8985         continue;
8986       // optional uint64 call_site = 3;
8987       case 3:
8988         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
8989           _Internal::set_has_call_site(&has_bits);
8990           _impl_.call_site_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8991           CHK_(ptr);
8992         } else {
8993           goto handle_unusual;
8994         }
8995         continue;
8996       // optional uint32 gfp_flags = 4;
8997       case 4:
8998         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
8999           _Internal::set_has_gfp_flags(&has_bits);
9000           _impl_.gfp_flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9001           CHK_(ptr);
9002         } else {
9003           goto handle_unusual;
9004         }
9005         continue;
9006       // optional int32 node = 5;
9007       case 5:
9008         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
9009           _Internal::set_has_node(&has_bits);
9010           _impl_.node_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9011           CHK_(ptr);
9012         } else {
9013           goto handle_unusual;
9014         }
9015         continue;
9016       // optional uint64 ptr = 6;
9017       case 6:
9018         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
9019           _Internal::set_has_ptr(&has_bits);
9020           _impl_.ptr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
9021           CHK_(ptr);
9022         } else {
9023           goto handle_unusual;
9024         }
9025         continue;
9026       default:
9027         goto handle_unusual;
9028     }  // switch
9029   handle_unusual:
9030     if ((tag == 0) || ((tag & 7) == 4)) {
9031       CHK_(ptr);
9032       ctx->SetLastTag(tag);
9033       goto message_done;
9034     }
9035     ptr = UnknownFieldParse(
9036         tag,
9037         _internal_metadata_.mutable_unknown_fields<std::string>(),
9038         ptr, ctx);
9039     CHK_(ptr != nullptr);
9040   }  // while
9041 message_done:
9042   _impl_._has_bits_.Or(has_bits);
9043   return ptr;
9044 failure:
9045   ptr = nullptr;
9046   goto message_done;
9047 #undef CHK_
9048 }
9049 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const9050 ::uint8_t* KmemCacheAllocNodeFtraceEvent::_InternalSerialize(
9051     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
9052   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KmemCacheAllocNodeFtraceEvent)
9053   ::uint32_t cached_has_bits = 0;
9054   (void) cached_has_bits;
9055 
9056   cached_has_bits = _impl_._has_bits_[0];
9057   // optional uint64 bytes_alloc = 1;
9058   if (cached_has_bits & 0x00000001u) {
9059     target = stream->EnsureSpace(target);
9060     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_bytes_alloc(), target);
9061   }
9062 
9063   // optional uint64 bytes_req = 2;
9064   if (cached_has_bits & 0x00000002u) {
9065     target = stream->EnsureSpace(target);
9066     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_bytes_req(), target);
9067   }
9068 
9069   // optional uint64 call_site = 3;
9070   if (cached_has_bits & 0x00000004u) {
9071     target = stream->EnsureSpace(target);
9072     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_call_site(), target);
9073   }
9074 
9075   // optional uint32 gfp_flags = 4;
9076   if (cached_has_bits & 0x00000008u) {
9077     target = stream->EnsureSpace(target);
9078     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_gfp_flags(), target);
9079   }
9080 
9081   // optional int32 node = 5;
9082   if (cached_has_bits & 0x00000010u) {
9083     target = stream->EnsureSpace(target);
9084     target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_node(), target);
9085   }
9086 
9087   // optional uint64 ptr = 6;
9088   if (cached_has_bits & 0x00000020u) {
9089     target = stream->EnsureSpace(target);
9090     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(6, this->_internal_ptr(), target);
9091   }
9092 
9093   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9094     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
9095         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
9096   }
9097   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KmemCacheAllocNodeFtraceEvent)
9098   return target;
9099 }
9100 
ByteSizeLong() const9101 size_t KmemCacheAllocNodeFtraceEvent::ByteSizeLong() const {
9102 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KmemCacheAllocNodeFtraceEvent)
9103   size_t total_size = 0;
9104 
9105   ::uint32_t cached_has_bits = 0;
9106   // Prevent compiler warnings about cached_has_bits being unused
9107   (void) cached_has_bits;
9108 
9109   cached_has_bits = _impl_._has_bits_[0];
9110   if (cached_has_bits & 0x0000003fu) {
9111     // optional uint64 bytes_alloc = 1;
9112     if (cached_has_bits & 0x00000001u) {
9113       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_bytes_alloc());
9114     }
9115 
9116     // optional uint64 bytes_req = 2;
9117     if (cached_has_bits & 0x00000002u) {
9118       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_bytes_req());
9119     }
9120 
9121     // optional uint64 call_site = 3;
9122     if (cached_has_bits & 0x00000004u) {
9123       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_call_site());
9124     }
9125 
9126     // optional uint32 gfp_flags = 4;
9127     if (cached_has_bits & 0x00000008u) {
9128       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_gfp_flags());
9129     }
9130 
9131     // optional int32 node = 5;
9132     if (cached_has_bits & 0x00000010u) {
9133       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_node());
9134     }
9135 
9136     // optional uint64 ptr = 6;
9137     if (cached_has_bits & 0x00000020u) {
9138       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_ptr());
9139     }
9140 
9141   }
9142   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9143     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
9144   }
9145   int cached_size = ::_pbi::ToCachedSize(total_size);
9146   SetCachedSize(cached_size);
9147   return total_size;
9148 }
9149 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)9150 void KmemCacheAllocNodeFtraceEvent::CheckTypeAndMergeFrom(
9151     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
9152   MergeFrom(*::_pbi::DownCast<const KmemCacheAllocNodeFtraceEvent*>(
9153       &from));
9154 }
9155 
MergeFrom(const KmemCacheAllocNodeFtraceEvent & from)9156 void KmemCacheAllocNodeFtraceEvent::MergeFrom(const KmemCacheAllocNodeFtraceEvent& from) {
9157   KmemCacheAllocNodeFtraceEvent* const _this = this;
9158   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KmemCacheAllocNodeFtraceEvent)
9159   GOOGLE_DCHECK_NE(&from, _this);
9160   ::uint32_t cached_has_bits = 0;
9161   (void) cached_has_bits;
9162 
9163   cached_has_bits = from._impl_._has_bits_[0];
9164   if (cached_has_bits & 0x0000003fu) {
9165     if (cached_has_bits & 0x00000001u) {
9166       _this->_impl_.bytes_alloc_ = from._impl_.bytes_alloc_;
9167     }
9168     if (cached_has_bits & 0x00000002u) {
9169       _this->_impl_.bytes_req_ = from._impl_.bytes_req_;
9170     }
9171     if (cached_has_bits & 0x00000004u) {
9172       _this->_impl_.call_site_ = from._impl_.call_site_;
9173     }
9174     if (cached_has_bits & 0x00000008u) {
9175       _this->_impl_.gfp_flags_ = from._impl_.gfp_flags_;
9176     }
9177     if (cached_has_bits & 0x00000010u) {
9178       _this->_impl_.node_ = from._impl_.node_;
9179     }
9180     if (cached_has_bits & 0x00000020u) {
9181       _this->_impl_.ptr_ = from._impl_.ptr_;
9182     }
9183     _this->_impl_._has_bits_[0] |= cached_has_bits;
9184   }
9185   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9186 }
9187 
CopyFrom(const KmemCacheAllocNodeFtraceEvent & from)9188 void KmemCacheAllocNodeFtraceEvent::CopyFrom(const KmemCacheAllocNodeFtraceEvent& from) {
9189 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KmemCacheAllocNodeFtraceEvent)
9190   if (&from == this) return;
9191   Clear();
9192   MergeFrom(from);
9193 }
9194 
IsInitialized() const9195 bool KmemCacheAllocNodeFtraceEvent::IsInitialized() const {
9196   return true;
9197 }
9198 
InternalSwap(KmemCacheAllocNodeFtraceEvent * other)9199 void KmemCacheAllocNodeFtraceEvent::InternalSwap(KmemCacheAllocNodeFtraceEvent* other) {
9200   using std::swap;
9201   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
9202   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
9203   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
9204       PROTOBUF_FIELD_OFFSET(KmemCacheAllocNodeFtraceEvent, _impl_.ptr_)
9205       + sizeof(KmemCacheAllocNodeFtraceEvent::_impl_.ptr_)  // NOLINT
9206       - PROTOBUF_FIELD_OFFSET(KmemCacheAllocNodeFtraceEvent, _impl_.bytes_alloc_)>(
9207           reinterpret_cast<char*>(&_impl_.bytes_alloc_),
9208           reinterpret_cast<char*>(&other->_impl_.bytes_alloc_));
9209 }
9210 
GetTypeName() const9211 std::string KmemCacheAllocNodeFtraceEvent::GetTypeName() const {
9212   return "perfetto.protos.KmemCacheAllocNodeFtraceEvent";
9213 }
9214 
9215 
9216 // ===================================================================
9217 
9218 class KmemCacheFreeFtraceEvent::_Internal {
9219  public:
9220   using HasBits = decltype(std::declval<KmemCacheFreeFtraceEvent>()._impl_._has_bits_);
set_has_call_site(HasBits * has_bits)9221   static void set_has_call_site(HasBits* has_bits) {
9222     (*has_bits)[0] |= 1u;
9223   }
set_has_ptr(HasBits * has_bits)9224   static void set_has_ptr(HasBits* has_bits) {
9225     (*has_bits)[0] |= 2u;
9226   }
9227 };
9228 
KmemCacheFreeFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)9229 KmemCacheFreeFtraceEvent::KmemCacheFreeFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9230                          bool is_message_owned)
9231   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
9232   SharedCtor(arena, is_message_owned);
9233   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KmemCacheFreeFtraceEvent)
9234 }
KmemCacheFreeFtraceEvent(const KmemCacheFreeFtraceEvent & from)9235 KmemCacheFreeFtraceEvent::KmemCacheFreeFtraceEvent(const KmemCacheFreeFtraceEvent& from)
9236   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
9237   KmemCacheFreeFtraceEvent* const _this = this; (void)_this;
9238   new (&_impl_) Impl_{
9239       decltype(_impl_._has_bits_){from._impl_._has_bits_}
9240     , /*decltype(_impl_._cached_size_)*/{}
9241     , decltype(_impl_.call_site_){}
9242     , decltype(_impl_.ptr_){}};
9243 
9244   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9245   ::memcpy(&_impl_.call_site_, &from._impl_.call_site_,
9246     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.ptr_) -
9247     reinterpret_cast<char*>(&_impl_.call_site_)) + sizeof(_impl_.ptr_));
9248   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KmemCacheFreeFtraceEvent)
9249 }
9250 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)9251 inline void KmemCacheFreeFtraceEvent::SharedCtor(
9252     ::_pb::Arena* arena, bool is_message_owned) {
9253   (void)arena;
9254   (void)is_message_owned;
9255   new (&_impl_) Impl_{
9256       decltype(_impl_._has_bits_){}
9257     , /*decltype(_impl_._cached_size_)*/{}
9258     , decltype(_impl_.call_site_){::uint64_t{0u}}
9259     , decltype(_impl_.ptr_){::uint64_t{0u}}
9260   };
9261 }
9262 
~KmemCacheFreeFtraceEvent()9263 KmemCacheFreeFtraceEvent::~KmemCacheFreeFtraceEvent() {
9264   // @@protoc_insertion_point(destructor:perfetto.protos.KmemCacheFreeFtraceEvent)
9265   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
9266   (void)arena;
9267     return;
9268   }
9269   SharedDtor();
9270 }
9271 
SharedDtor()9272 inline void KmemCacheFreeFtraceEvent::SharedDtor() {
9273   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
9274 }
9275 
SetCachedSize(int size) const9276 void KmemCacheFreeFtraceEvent::SetCachedSize(int size) const {
9277   _impl_._cached_size_.Set(size);
9278 }
9279 
Clear()9280 void KmemCacheFreeFtraceEvent::Clear() {
9281 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KmemCacheFreeFtraceEvent)
9282   ::uint32_t cached_has_bits = 0;
9283   // Prevent compiler warnings about cached_has_bits being unused
9284   (void) cached_has_bits;
9285 
9286   cached_has_bits = _impl_._has_bits_[0];
9287   if (cached_has_bits & 0x00000003u) {
9288     ::memset(&_impl_.call_site_, 0, static_cast<size_t>(
9289         reinterpret_cast<char*>(&_impl_.ptr_) -
9290         reinterpret_cast<char*>(&_impl_.call_site_)) + sizeof(_impl_.ptr_));
9291   }
9292   _impl_._has_bits_.Clear();
9293   _internal_metadata_.Clear<std::string>();
9294 }
9295 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)9296 const char* KmemCacheFreeFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
9297 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9298   _Internal::HasBits has_bits{};
9299   while (!ctx->Done(&ptr)) {
9300     ::uint32_t tag;
9301     ptr = ::_pbi::ReadTag(ptr, &tag);
9302     switch (tag >> 3) {
9303       // optional uint64 call_site = 1;
9304       case 1:
9305         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
9306           _Internal::set_has_call_site(&has_bits);
9307           _impl_.call_site_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
9308           CHK_(ptr);
9309         } else {
9310           goto handle_unusual;
9311         }
9312         continue;
9313       // optional uint64 ptr = 2;
9314       case 2:
9315         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
9316           _Internal::set_has_ptr(&has_bits);
9317           _impl_.ptr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
9318           CHK_(ptr);
9319         } else {
9320           goto handle_unusual;
9321         }
9322         continue;
9323       default:
9324         goto handle_unusual;
9325     }  // switch
9326   handle_unusual:
9327     if ((tag == 0) || ((tag & 7) == 4)) {
9328       CHK_(ptr);
9329       ctx->SetLastTag(tag);
9330       goto message_done;
9331     }
9332     ptr = UnknownFieldParse(
9333         tag,
9334         _internal_metadata_.mutable_unknown_fields<std::string>(),
9335         ptr, ctx);
9336     CHK_(ptr != nullptr);
9337   }  // while
9338 message_done:
9339   _impl_._has_bits_.Or(has_bits);
9340   return ptr;
9341 failure:
9342   ptr = nullptr;
9343   goto message_done;
9344 #undef CHK_
9345 }
9346 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const9347 ::uint8_t* KmemCacheFreeFtraceEvent::_InternalSerialize(
9348     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
9349   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KmemCacheFreeFtraceEvent)
9350   ::uint32_t cached_has_bits = 0;
9351   (void) cached_has_bits;
9352 
9353   cached_has_bits = _impl_._has_bits_[0];
9354   // optional uint64 call_site = 1;
9355   if (cached_has_bits & 0x00000001u) {
9356     target = stream->EnsureSpace(target);
9357     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_call_site(), target);
9358   }
9359 
9360   // optional uint64 ptr = 2;
9361   if (cached_has_bits & 0x00000002u) {
9362     target = stream->EnsureSpace(target);
9363     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_ptr(), target);
9364   }
9365 
9366   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9367     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
9368         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
9369   }
9370   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KmemCacheFreeFtraceEvent)
9371   return target;
9372 }
9373 
ByteSizeLong() const9374 size_t KmemCacheFreeFtraceEvent::ByteSizeLong() const {
9375 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KmemCacheFreeFtraceEvent)
9376   size_t total_size = 0;
9377 
9378   ::uint32_t cached_has_bits = 0;
9379   // Prevent compiler warnings about cached_has_bits being unused
9380   (void) cached_has_bits;
9381 
9382   cached_has_bits = _impl_._has_bits_[0];
9383   if (cached_has_bits & 0x00000003u) {
9384     // optional uint64 call_site = 1;
9385     if (cached_has_bits & 0x00000001u) {
9386       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_call_site());
9387     }
9388 
9389     // optional uint64 ptr = 2;
9390     if (cached_has_bits & 0x00000002u) {
9391       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_ptr());
9392     }
9393 
9394   }
9395   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9396     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
9397   }
9398   int cached_size = ::_pbi::ToCachedSize(total_size);
9399   SetCachedSize(cached_size);
9400   return total_size;
9401 }
9402 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)9403 void KmemCacheFreeFtraceEvent::CheckTypeAndMergeFrom(
9404     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
9405   MergeFrom(*::_pbi::DownCast<const KmemCacheFreeFtraceEvent*>(
9406       &from));
9407 }
9408 
MergeFrom(const KmemCacheFreeFtraceEvent & from)9409 void KmemCacheFreeFtraceEvent::MergeFrom(const KmemCacheFreeFtraceEvent& from) {
9410   KmemCacheFreeFtraceEvent* const _this = this;
9411   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KmemCacheFreeFtraceEvent)
9412   GOOGLE_DCHECK_NE(&from, _this);
9413   ::uint32_t cached_has_bits = 0;
9414   (void) cached_has_bits;
9415 
9416   cached_has_bits = from._impl_._has_bits_[0];
9417   if (cached_has_bits & 0x00000003u) {
9418     if (cached_has_bits & 0x00000001u) {
9419       _this->_impl_.call_site_ = from._impl_.call_site_;
9420     }
9421     if (cached_has_bits & 0x00000002u) {
9422       _this->_impl_.ptr_ = from._impl_.ptr_;
9423     }
9424     _this->_impl_._has_bits_[0] |= cached_has_bits;
9425   }
9426   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9427 }
9428 
CopyFrom(const KmemCacheFreeFtraceEvent & from)9429 void KmemCacheFreeFtraceEvent::CopyFrom(const KmemCacheFreeFtraceEvent& from) {
9430 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KmemCacheFreeFtraceEvent)
9431   if (&from == this) return;
9432   Clear();
9433   MergeFrom(from);
9434 }
9435 
IsInitialized() const9436 bool KmemCacheFreeFtraceEvent::IsInitialized() const {
9437   return true;
9438 }
9439 
InternalSwap(KmemCacheFreeFtraceEvent * other)9440 void KmemCacheFreeFtraceEvent::InternalSwap(KmemCacheFreeFtraceEvent* other) {
9441   using std::swap;
9442   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
9443   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
9444   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
9445       PROTOBUF_FIELD_OFFSET(KmemCacheFreeFtraceEvent, _impl_.ptr_)
9446       + sizeof(KmemCacheFreeFtraceEvent::_impl_.ptr_)  // NOLINT
9447       - PROTOBUF_FIELD_OFFSET(KmemCacheFreeFtraceEvent, _impl_.call_site_)>(
9448           reinterpret_cast<char*>(&_impl_.call_site_),
9449           reinterpret_cast<char*>(&other->_impl_.call_site_));
9450 }
9451 
GetTypeName() const9452 std::string KmemCacheFreeFtraceEvent::GetTypeName() const {
9453   return "perfetto.protos.KmemCacheFreeFtraceEvent";
9454 }
9455 
9456 
9457 // ===================================================================
9458 
9459 class MigratePagesEndFtraceEvent::_Internal {
9460  public:
9461   using HasBits = decltype(std::declval<MigratePagesEndFtraceEvent>()._impl_._has_bits_);
set_has_mode(HasBits * has_bits)9462   static void set_has_mode(HasBits* has_bits) {
9463     (*has_bits)[0] |= 1u;
9464   }
9465 };
9466 
MigratePagesEndFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)9467 MigratePagesEndFtraceEvent::MigratePagesEndFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9468                          bool is_message_owned)
9469   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
9470   SharedCtor(arena, is_message_owned);
9471   // @@protoc_insertion_point(arena_constructor:perfetto.protos.MigratePagesEndFtraceEvent)
9472 }
MigratePagesEndFtraceEvent(const MigratePagesEndFtraceEvent & from)9473 MigratePagesEndFtraceEvent::MigratePagesEndFtraceEvent(const MigratePagesEndFtraceEvent& from)
9474   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
9475   MigratePagesEndFtraceEvent* const _this = this; (void)_this;
9476   new (&_impl_) Impl_{
9477       decltype(_impl_._has_bits_){from._impl_._has_bits_}
9478     , /*decltype(_impl_._cached_size_)*/{}
9479     , decltype(_impl_.mode_){}};
9480 
9481   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9482   _this->_impl_.mode_ = from._impl_.mode_;
9483   // @@protoc_insertion_point(copy_constructor:perfetto.protos.MigratePagesEndFtraceEvent)
9484 }
9485 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)9486 inline void MigratePagesEndFtraceEvent::SharedCtor(
9487     ::_pb::Arena* arena, bool is_message_owned) {
9488   (void)arena;
9489   (void)is_message_owned;
9490   new (&_impl_) Impl_{
9491       decltype(_impl_._has_bits_){}
9492     , /*decltype(_impl_._cached_size_)*/{}
9493     , decltype(_impl_.mode_){0}
9494   };
9495 }
9496 
~MigratePagesEndFtraceEvent()9497 MigratePagesEndFtraceEvent::~MigratePagesEndFtraceEvent() {
9498   // @@protoc_insertion_point(destructor:perfetto.protos.MigratePagesEndFtraceEvent)
9499   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
9500   (void)arena;
9501     return;
9502   }
9503   SharedDtor();
9504 }
9505 
SharedDtor()9506 inline void MigratePagesEndFtraceEvent::SharedDtor() {
9507   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
9508 }
9509 
SetCachedSize(int size) const9510 void MigratePagesEndFtraceEvent::SetCachedSize(int size) const {
9511   _impl_._cached_size_.Set(size);
9512 }
9513 
Clear()9514 void MigratePagesEndFtraceEvent::Clear() {
9515 // @@protoc_insertion_point(message_clear_start:perfetto.protos.MigratePagesEndFtraceEvent)
9516   ::uint32_t cached_has_bits = 0;
9517   // Prevent compiler warnings about cached_has_bits being unused
9518   (void) cached_has_bits;
9519 
9520   _impl_.mode_ = 0;
9521   _impl_._has_bits_.Clear();
9522   _internal_metadata_.Clear<std::string>();
9523 }
9524 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)9525 const char* MigratePagesEndFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
9526 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9527   _Internal::HasBits has_bits{};
9528   while (!ctx->Done(&ptr)) {
9529     ::uint32_t tag;
9530     ptr = ::_pbi::ReadTag(ptr, &tag);
9531     switch (tag >> 3) {
9532       // optional int32 mode = 1;
9533       case 1:
9534         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
9535           _Internal::set_has_mode(&has_bits);
9536           _impl_.mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9537           CHK_(ptr);
9538         } else {
9539           goto handle_unusual;
9540         }
9541         continue;
9542       default:
9543         goto handle_unusual;
9544     }  // switch
9545   handle_unusual:
9546     if ((tag == 0) || ((tag & 7) == 4)) {
9547       CHK_(ptr);
9548       ctx->SetLastTag(tag);
9549       goto message_done;
9550     }
9551     ptr = UnknownFieldParse(
9552         tag,
9553         _internal_metadata_.mutable_unknown_fields<std::string>(),
9554         ptr, ctx);
9555     CHK_(ptr != nullptr);
9556   }  // while
9557 message_done:
9558   _impl_._has_bits_.Or(has_bits);
9559   return ptr;
9560 failure:
9561   ptr = nullptr;
9562   goto message_done;
9563 #undef CHK_
9564 }
9565 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const9566 ::uint8_t* MigratePagesEndFtraceEvent::_InternalSerialize(
9567     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
9568   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.MigratePagesEndFtraceEvent)
9569   ::uint32_t cached_has_bits = 0;
9570   (void) cached_has_bits;
9571 
9572   cached_has_bits = _impl_._has_bits_[0];
9573   // optional int32 mode = 1;
9574   if (cached_has_bits & 0x00000001u) {
9575     target = stream->EnsureSpace(target);
9576     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_mode(), target);
9577   }
9578 
9579   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9580     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
9581         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
9582   }
9583   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.MigratePagesEndFtraceEvent)
9584   return target;
9585 }
9586 
ByteSizeLong() const9587 size_t MigratePagesEndFtraceEvent::ByteSizeLong() const {
9588 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.MigratePagesEndFtraceEvent)
9589   size_t total_size = 0;
9590 
9591   ::uint32_t cached_has_bits = 0;
9592   // Prevent compiler warnings about cached_has_bits being unused
9593   (void) cached_has_bits;
9594 
9595   // optional int32 mode = 1;
9596   cached_has_bits = _impl_._has_bits_[0];
9597   if (cached_has_bits & 0x00000001u) {
9598     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_mode());
9599   }
9600 
9601   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9602     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
9603   }
9604   int cached_size = ::_pbi::ToCachedSize(total_size);
9605   SetCachedSize(cached_size);
9606   return total_size;
9607 }
9608 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)9609 void MigratePagesEndFtraceEvent::CheckTypeAndMergeFrom(
9610     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
9611   MergeFrom(*::_pbi::DownCast<const MigratePagesEndFtraceEvent*>(
9612       &from));
9613 }
9614 
MergeFrom(const MigratePagesEndFtraceEvent & from)9615 void MigratePagesEndFtraceEvent::MergeFrom(const MigratePagesEndFtraceEvent& from) {
9616   MigratePagesEndFtraceEvent* const _this = this;
9617   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.MigratePagesEndFtraceEvent)
9618   GOOGLE_DCHECK_NE(&from, _this);
9619   ::uint32_t cached_has_bits = 0;
9620   (void) cached_has_bits;
9621 
9622   if (from._internal_has_mode()) {
9623     _this->_internal_set_mode(from._internal_mode());
9624   }
9625   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9626 }
9627 
CopyFrom(const MigratePagesEndFtraceEvent & from)9628 void MigratePagesEndFtraceEvent::CopyFrom(const MigratePagesEndFtraceEvent& from) {
9629 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.MigratePagesEndFtraceEvent)
9630   if (&from == this) return;
9631   Clear();
9632   MergeFrom(from);
9633 }
9634 
IsInitialized() const9635 bool MigratePagesEndFtraceEvent::IsInitialized() const {
9636   return true;
9637 }
9638 
InternalSwap(MigratePagesEndFtraceEvent * other)9639 void MigratePagesEndFtraceEvent::InternalSwap(MigratePagesEndFtraceEvent* other) {
9640   using std::swap;
9641   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
9642   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
9643   swap(_impl_.mode_, other->_impl_.mode_);
9644 }
9645 
GetTypeName() const9646 std::string MigratePagesEndFtraceEvent::GetTypeName() const {
9647   return "perfetto.protos.MigratePagesEndFtraceEvent";
9648 }
9649 
9650 
9651 // ===================================================================
9652 
9653 class MigratePagesStartFtraceEvent::_Internal {
9654  public:
9655   using HasBits = decltype(std::declval<MigratePagesStartFtraceEvent>()._impl_._has_bits_);
set_has_mode(HasBits * has_bits)9656   static void set_has_mode(HasBits* has_bits) {
9657     (*has_bits)[0] |= 1u;
9658   }
9659 };
9660 
MigratePagesStartFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)9661 MigratePagesStartFtraceEvent::MigratePagesStartFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9662                          bool is_message_owned)
9663   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
9664   SharedCtor(arena, is_message_owned);
9665   // @@protoc_insertion_point(arena_constructor:perfetto.protos.MigratePagesStartFtraceEvent)
9666 }
MigratePagesStartFtraceEvent(const MigratePagesStartFtraceEvent & from)9667 MigratePagesStartFtraceEvent::MigratePagesStartFtraceEvent(const MigratePagesStartFtraceEvent& from)
9668   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
9669   MigratePagesStartFtraceEvent* const _this = this; (void)_this;
9670   new (&_impl_) Impl_{
9671       decltype(_impl_._has_bits_){from._impl_._has_bits_}
9672     , /*decltype(_impl_._cached_size_)*/{}
9673     , decltype(_impl_.mode_){}};
9674 
9675   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9676   _this->_impl_.mode_ = from._impl_.mode_;
9677   // @@protoc_insertion_point(copy_constructor:perfetto.protos.MigratePagesStartFtraceEvent)
9678 }
9679 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)9680 inline void MigratePagesStartFtraceEvent::SharedCtor(
9681     ::_pb::Arena* arena, bool is_message_owned) {
9682   (void)arena;
9683   (void)is_message_owned;
9684   new (&_impl_) Impl_{
9685       decltype(_impl_._has_bits_){}
9686     , /*decltype(_impl_._cached_size_)*/{}
9687     , decltype(_impl_.mode_){0}
9688   };
9689 }
9690 
~MigratePagesStartFtraceEvent()9691 MigratePagesStartFtraceEvent::~MigratePagesStartFtraceEvent() {
9692   // @@protoc_insertion_point(destructor:perfetto.protos.MigratePagesStartFtraceEvent)
9693   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
9694   (void)arena;
9695     return;
9696   }
9697   SharedDtor();
9698 }
9699 
SharedDtor()9700 inline void MigratePagesStartFtraceEvent::SharedDtor() {
9701   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
9702 }
9703 
SetCachedSize(int size) const9704 void MigratePagesStartFtraceEvent::SetCachedSize(int size) const {
9705   _impl_._cached_size_.Set(size);
9706 }
9707 
Clear()9708 void MigratePagesStartFtraceEvent::Clear() {
9709 // @@protoc_insertion_point(message_clear_start:perfetto.protos.MigratePagesStartFtraceEvent)
9710   ::uint32_t cached_has_bits = 0;
9711   // Prevent compiler warnings about cached_has_bits being unused
9712   (void) cached_has_bits;
9713 
9714   _impl_.mode_ = 0;
9715   _impl_._has_bits_.Clear();
9716   _internal_metadata_.Clear<std::string>();
9717 }
9718 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)9719 const char* MigratePagesStartFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
9720 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9721   _Internal::HasBits has_bits{};
9722   while (!ctx->Done(&ptr)) {
9723     ::uint32_t tag;
9724     ptr = ::_pbi::ReadTag(ptr, &tag);
9725     switch (tag >> 3) {
9726       // optional int32 mode = 1;
9727       case 1:
9728         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
9729           _Internal::set_has_mode(&has_bits);
9730           _impl_.mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9731           CHK_(ptr);
9732         } else {
9733           goto handle_unusual;
9734         }
9735         continue;
9736       default:
9737         goto handle_unusual;
9738     }  // switch
9739   handle_unusual:
9740     if ((tag == 0) || ((tag & 7) == 4)) {
9741       CHK_(ptr);
9742       ctx->SetLastTag(tag);
9743       goto message_done;
9744     }
9745     ptr = UnknownFieldParse(
9746         tag,
9747         _internal_metadata_.mutable_unknown_fields<std::string>(),
9748         ptr, ctx);
9749     CHK_(ptr != nullptr);
9750   }  // while
9751 message_done:
9752   _impl_._has_bits_.Or(has_bits);
9753   return ptr;
9754 failure:
9755   ptr = nullptr;
9756   goto message_done;
9757 #undef CHK_
9758 }
9759 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const9760 ::uint8_t* MigratePagesStartFtraceEvent::_InternalSerialize(
9761     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
9762   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.MigratePagesStartFtraceEvent)
9763   ::uint32_t cached_has_bits = 0;
9764   (void) cached_has_bits;
9765 
9766   cached_has_bits = _impl_._has_bits_[0];
9767   // optional int32 mode = 1;
9768   if (cached_has_bits & 0x00000001u) {
9769     target = stream->EnsureSpace(target);
9770     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_mode(), target);
9771   }
9772 
9773   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9774     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
9775         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
9776   }
9777   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.MigratePagesStartFtraceEvent)
9778   return target;
9779 }
9780 
ByteSizeLong() const9781 size_t MigratePagesStartFtraceEvent::ByteSizeLong() const {
9782 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.MigratePagesStartFtraceEvent)
9783   size_t total_size = 0;
9784 
9785   ::uint32_t cached_has_bits = 0;
9786   // Prevent compiler warnings about cached_has_bits being unused
9787   (void) cached_has_bits;
9788 
9789   // optional int32 mode = 1;
9790   cached_has_bits = _impl_._has_bits_[0];
9791   if (cached_has_bits & 0x00000001u) {
9792     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_mode());
9793   }
9794 
9795   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9796     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
9797   }
9798   int cached_size = ::_pbi::ToCachedSize(total_size);
9799   SetCachedSize(cached_size);
9800   return total_size;
9801 }
9802 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)9803 void MigratePagesStartFtraceEvent::CheckTypeAndMergeFrom(
9804     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
9805   MergeFrom(*::_pbi::DownCast<const MigratePagesStartFtraceEvent*>(
9806       &from));
9807 }
9808 
MergeFrom(const MigratePagesStartFtraceEvent & from)9809 void MigratePagesStartFtraceEvent::MergeFrom(const MigratePagesStartFtraceEvent& from) {
9810   MigratePagesStartFtraceEvent* const _this = this;
9811   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.MigratePagesStartFtraceEvent)
9812   GOOGLE_DCHECK_NE(&from, _this);
9813   ::uint32_t cached_has_bits = 0;
9814   (void) cached_has_bits;
9815 
9816   if (from._internal_has_mode()) {
9817     _this->_internal_set_mode(from._internal_mode());
9818   }
9819   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9820 }
9821 
CopyFrom(const MigratePagesStartFtraceEvent & from)9822 void MigratePagesStartFtraceEvent::CopyFrom(const MigratePagesStartFtraceEvent& from) {
9823 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.MigratePagesStartFtraceEvent)
9824   if (&from == this) return;
9825   Clear();
9826   MergeFrom(from);
9827 }
9828 
IsInitialized() const9829 bool MigratePagesStartFtraceEvent::IsInitialized() const {
9830   return true;
9831 }
9832 
InternalSwap(MigratePagesStartFtraceEvent * other)9833 void MigratePagesStartFtraceEvent::InternalSwap(MigratePagesStartFtraceEvent* other) {
9834   using std::swap;
9835   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
9836   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
9837   swap(_impl_.mode_, other->_impl_.mode_);
9838 }
9839 
GetTypeName() const9840 std::string MigratePagesStartFtraceEvent::GetTypeName() const {
9841   return "perfetto.protos.MigratePagesStartFtraceEvent";
9842 }
9843 
9844 
9845 // ===================================================================
9846 
9847 class MigrateRetryFtraceEvent::_Internal {
9848  public:
9849   using HasBits = decltype(std::declval<MigrateRetryFtraceEvent>()._impl_._has_bits_);
set_has_tries(HasBits * has_bits)9850   static void set_has_tries(HasBits* has_bits) {
9851     (*has_bits)[0] |= 1u;
9852   }
9853 };
9854 
MigrateRetryFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)9855 MigrateRetryFtraceEvent::MigrateRetryFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9856                          bool is_message_owned)
9857   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
9858   SharedCtor(arena, is_message_owned);
9859   // @@protoc_insertion_point(arena_constructor:perfetto.protos.MigrateRetryFtraceEvent)
9860 }
MigrateRetryFtraceEvent(const MigrateRetryFtraceEvent & from)9861 MigrateRetryFtraceEvent::MigrateRetryFtraceEvent(const MigrateRetryFtraceEvent& from)
9862   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
9863   MigrateRetryFtraceEvent* const _this = this; (void)_this;
9864   new (&_impl_) Impl_{
9865       decltype(_impl_._has_bits_){from._impl_._has_bits_}
9866     , /*decltype(_impl_._cached_size_)*/{}
9867     , decltype(_impl_.tries_){}};
9868 
9869   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9870   _this->_impl_.tries_ = from._impl_.tries_;
9871   // @@protoc_insertion_point(copy_constructor:perfetto.protos.MigrateRetryFtraceEvent)
9872 }
9873 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)9874 inline void MigrateRetryFtraceEvent::SharedCtor(
9875     ::_pb::Arena* arena, bool is_message_owned) {
9876   (void)arena;
9877   (void)is_message_owned;
9878   new (&_impl_) Impl_{
9879       decltype(_impl_._has_bits_){}
9880     , /*decltype(_impl_._cached_size_)*/{}
9881     , decltype(_impl_.tries_){0}
9882   };
9883 }
9884 
~MigrateRetryFtraceEvent()9885 MigrateRetryFtraceEvent::~MigrateRetryFtraceEvent() {
9886   // @@protoc_insertion_point(destructor:perfetto.protos.MigrateRetryFtraceEvent)
9887   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
9888   (void)arena;
9889     return;
9890   }
9891   SharedDtor();
9892 }
9893 
SharedDtor()9894 inline void MigrateRetryFtraceEvent::SharedDtor() {
9895   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
9896 }
9897 
SetCachedSize(int size) const9898 void MigrateRetryFtraceEvent::SetCachedSize(int size) const {
9899   _impl_._cached_size_.Set(size);
9900 }
9901 
Clear()9902 void MigrateRetryFtraceEvent::Clear() {
9903 // @@protoc_insertion_point(message_clear_start:perfetto.protos.MigrateRetryFtraceEvent)
9904   ::uint32_t cached_has_bits = 0;
9905   // Prevent compiler warnings about cached_has_bits being unused
9906   (void) cached_has_bits;
9907 
9908   _impl_.tries_ = 0;
9909   _impl_._has_bits_.Clear();
9910   _internal_metadata_.Clear<std::string>();
9911 }
9912 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)9913 const char* MigrateRetryFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
9914 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9915   _Internal::HasBits has_bits{};
9916   while (!ctx->Done(&ptr)) {
9917     ::uint32_t tag;
9918     ptr = ::_pbi::ReadTag(ptr, &tag);
9919     switch (tag >> 3) {
9920       // optional int32 tries = 1;
9921       case 1:
9922         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
9923           _Internal::set_has_tries(&has_bits);
9924           _impl_.tries_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9925           CHK_(ptr);
9926         } else {
9927           goto handle_unusual;
9928         }
9929         continue;
9930       default:
9931         goto handle_unusual;
9932     }  // switch
9933   handle_unusual:
9934     if ((tag == 0) || ((tag & 7) == 4)) {
9935       CHK_(ptr);
9936       ctx->SetLastTag(tag);
9937       goto message_done;
9938     }
9939     ptr = UnknownFieldParse(
9940         tag,
9941         _internal_metadata_.mutable_unknown_fields<std::string>(),
9942         ptr, ctx);
9943     CHK_(ptr != nullptr);
9944   }  // while
9945 message_done:
9946   _impl_._has_bits_.Or(has_bits);
9947   return ptr;
9948 failure:
9949   ptr = nullptr;
9950   goto message_done;
9951 #undef CHK_
9952 }
9953 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const9954 ::uint8_t* MigrateRetryFtraceEvent::_InternalSerialize(
9955     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
9956   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.MigrateRetryFtraceEvent)
9957   ::uint32_t cached_has_bits = 0;
9958   (void) cached_has_bits;
9959 
9960   cached_has_bits = _impl_._has_bits_[0];
9961   // optional int32 tries = 1;
9962   if (cached_has_bits & 0x00000001u) {
9963     target = stream->EnsureSpace(target);
9964     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_tries(), target);
9965   }
9966 
9967   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9968     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
9969         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
9970   }
9971   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.MigrateRetryFtraceEvent)
9972   return target;
9973 }
9974 
ByteSizeLong() const9975 size_t MigrateRetryFtraceEvent::ByteSizeLong() const {
9976 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.MigrateRetryFtraceEvent)
9977   size_t total_size = 0;
9978 
9979   ::uint32_t cached_has_bits = 0;
9980   // Prevent compiler warnings about cached_has_bits being unused
9981   (void) cached_has_bits;
9982 
9983   // optional int32 tries = 1;
9984   cached_has_bits = _impl_._has_bits_[0];
9985   if (cached_has_bits & 0x00000001u) {
9986     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_tries());
9987   }
9988 
9989   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9990     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
9991   }
9992   int cached_size = ::_pbi::ToCachedSize(total_size);
9993   SetCachedSize(cached_size);
9994   return total_size;
9995 }
9996 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)9997 void MigrateRetryFtraceEvent::CheckTypeAndMergeFrom(
9998     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
9999   MergeFrom(*::_pbi::DownCast<const MigrateRetryFtraceEvent*>(
10000       &from));
10001 }
10002 
MergeFrom(const MigrateRetryFtraceEvent & from)10003 void MigrateRetryFtraceEvent::MergeFrom(const MigrateRetryFtraceEvent& from) {
10004   MigrateRetryFtraceEvent* const _this = this;
10005   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.MigrateRetryFtraceEvent)
10006   GOOGLE_DCHECK_NE(&from, _this);
10007   ::uint32_t cached_has_bits = 0;
10008   (void) cached_has_bits;
10009 
10010   if (from._internal_has_tries()) {
10011     _this->_internal_set_tries(from._internal_tries());
10012   }
10013   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
10014 }
10015 
CopyFrom(const MigrateRetryFtraceEvent & from)10016 void MigrateRetryFtraceEvent::CopyFrom(const MigrateRetryFtraceEvent& from) {
10017 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.MigrateRetryFtraceEvent)
10018   if (&from == this) return;
10019   Clear();
10020   MergeFrom(from);
10021 }
10022 
IsInitialized() const10023 bool MigrateRetryFtraceEvent::IsInitialized() const {
10024   return true;
10025 }
10026 
InternalSwap(MigrateRetryFtraceEvent * other)10027 void MigrateRetryFtraceEvent::InternalSwap(MigrateRetryFtraceEvent* other) {
10028   using std::swap;
10029   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
10030   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
10031   swap(_impl_.tries_, other->_impl_.tries_);
10032 }
10033 
GetTypeName() const10034 std::string MigrateRetryFtraceEvent::GetTypeName() const {
10035   return "perfetto.protos.MigrateRetryFtraceEvent";
10036 }
10037 
10038 
10039 // ===================================================================
10040 
10041 class MmPageAllocFtraceEvent::_Internal {
10042  public:
10043   using HasBits = decltype(std::declval<MmPageAllocFtraceEvent>()._impl_._has_bits_);
set_has_gfp_flags(HasBits * has_bits)10044   static void set_has_gfp_flags(HasBits* has_bits) {
10045     (*has_bits)[0] |= 1u;
10046   }
set_has_migratetype(HasBits * has_bits)10047   static void set_has_migratetype(HasBits* has_bits) {
10048     (*has_bits)[0] |= 2u;
10049   }
set_has_order(HasBits * has_bits)10050   static void set_has_order(HasBits* has_bits) {
10051     (*has_bits)[0] |= 16u;
10052   }
set_has_page(HasBits * has_bits)10053   static void set_has_page(HasBits* has_bits) {
10054     (*has_bits)[0] |= 4u;
10055   }
set_has_pfn(HasBits * has_bits)10056   static void set_has_pfn(HasBits* has_bits) {
10057     (*has_bits)[0] |= 8u;
10058   }
10059 };
10060 
MmPageAllocFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)10061 MmPageAllocFtraceEvent::MmPageAllocFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
10062                          bool is_message_owned)
10063   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
10064   SharedCtor(arena, is_message_owned);
10065   // @@protoc_insertion_point(arena_constructor:perfetto.protos.MmPageAllocFtraceEvent)
10066 }
MmPageAllocFtraceEvent(const MmPageAllocFtraceEvent & from)10067 MmPageAllocFtraceEvent::MmPageAllocFtraceEvent(const MmPageAllocFtraceEvent& from)
10068   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
10069   MmPageAllocFtraceEvent* const _this = this; (void)_this;
10070   new (&_impl_) Impl_{
10071       decltype(_impl_._has_bits_){from._impl_._has_bits_}
10072     , /*decltype(_impl_._cached_size_)*/{}
10073     , decltype(_impl_.gfp_flags_){}
10074     , decltype(_impl_.migratetype_){}
10075     , decltype(_impl_.page_){}
10076     , decltype(_impl_.pfn_){}
10077     , decltype(_impl_.order_){}};
10078 
10079   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
10080   ::memcpy(&_impl_.gfp_flags_, &from._impl_.gfp_flags_,
10081     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.order_) -
10082     reinterpret_cast<char*>(&_impl_.gfp_flags_)) + sizeof(_impl_.order_));
10083   // @@protoc_insertion_point(copy_constructor:perfetto.protos.MmPageAllocFtraceEvent)
10084 }
10085 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)10086 inline void MmPageAllocFtraceEvent::SharedCtor(
10087     ::_pb::Arena* arena, bool is_message_owned) {
10088   (void)arena;
10089   (void)is_message_owned;
10090   new (&_impl_) Impl_{
10091       decltype(_impl_._has_bits_){}
10092     , /*decltype(_impl_._cached_size_)*/{}
10093     , decltype(_impl_.gfp_flags_){0u}
10094     , decltype(_impl_.migratetype_){0}
10095     , decltype(_impl_.page_){::uint64_t{0u}}
10096     , decltype(_impl_.pfn_){::uint64_t{0u}}
10097     , decltype(_impl_.order_){0u}
10098   };
10099 }
10100 
~MmPageAllocFtraceEvent()10101 MmPageAllocFtraceEvent::~MmPageAllocFtraceEvent() {
10102   // @@protoc_insertion_point(destructor:perfetto.protos.MmPageAllocFtraceEvent)
10103   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
10104   (void)arena;
10105     return;
10106   }
10107   SharedDtor();
10108 }
10109 
SharedDtor()10110 inline void MmPageAllocFtraceEvent::SharedDtor() {
10111   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
10112 }
10113 
SetCachedSize(int size) const10114 void MmPageAllocFtraceEvent::SetCachedSize(int size) const {
10115   _impl_._cached_size_.Set(size);
10116 }
10117 
Clear()10118 void MmPageAllocFtraceEvent::Clear() {
10119 // @@protoc_insertion_point(message_clear_start:perfetto.protos.MmPageAllocFtraceEvent)
10120   ::uint32_t cached_has_bits = 0;
10121   // Prevent compiler warnings about cached_has_bits being unused
10122   (void) cached_has_bits;
10123 
10124   cached_has_bits = _impl_._has_bits_[0];
10125   if (cached_has_bits & 0x0000001fu) {
10126     ::memset(&_impl_.gfp_flags_, 0, static_cast<size_t>(
10127         reinterpret_cast<char*>(&_impl_.order_) -
10128         reinterpret_cast<char*>(&_impl_.gfp_flags_)) + sizeof(_impl_.order_));
10129   }
10130   _impl_._has_bits_.Clear();
10131   _internal_metadata_.Clear<std::string>();
10132 }
10133 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)10134 const char* MmPageAllocFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
10135 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
10136   _Internal::HasBits has_bits{};
10137   while (!ctx->Done(&ptr)) {
10138     ::uint32_t tag;
10139     ptr = ::_pbi::ReadTag(ptr, &tag);
10140     switch (tag >> 3) {
10141       // optional uint32 gfp_flags = 1;
10142       case 1:
10143         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
10144           _Internal::set_has_gfp_flags(&has_bits);
10145           _impl_.gfp_flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
10146           CHK_(ptr);
10147         } else {
10148           goto handle_unusual;
10149         }
10150         continue;
10151       // optional int32 migratetype = 2;
10152       case 2:
10153         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
10154           _Internal::set_has_migratetype(&has_bits);
10155           _impl_.migratetype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
10156           CHK_(ptr);
10157         } else {
10158           goto handle_unusual;
10159         }
10160         continue;
10161       // optional uint32 order = 3;
10162       case 3:
10163         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
10164           _Internal::set_has_order(&has_bits);
10165           _impl_.order_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
10166           CHK_(ptr);
10167         } else {
10168           goto handle_unusual;
10169         }
10170         continue;
10171       // optional uint64 page = 4;
10172       case 4:
10173         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
10174           _Internal::set_has_page(&has_bits);
10175           _impl_.page_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
10176           CHK_(ptr);
10177         } else {
10178           goto handle_unusual;
10179         }
10180         continue;
10181       // optional uint64 pfn = 5;
10182       case 5:
10183         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
10184           _Internal::set_has_pfn(&has_bits);
10185           _impl_.pfn_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
10186           CHK_(ptr);
10187         } else {
10188           goto handle_unusual;
10189         }
10190         continue;
10191       default:
10192         goto handle_unusual;
10193     }  // switch
10194   handle_unusual:
10195     if ((tag == 0) || ((tag & 7) == 4)) {
10196       CHK_(ptr);
10197       ctx->SetLastTag(tag);
10198       goto message_done;
10199     }
10200     ptr = UnknownFieldParse(
10201         tag,
10202         _internal_metadata_.mutable_unknown_fields<std::string>(),
10203         ptr, ctx);
10204     CHK_(ptr != nullptr);
10205   }  // while
10206 message_done:
10207   _impl_._has_bits_.Or(has_bits);
10208   return ptr;
10209 failure:
10210   ptr = nullptr;
10211   goto message_done;
10212 #undef CHK_
10213 }
10214 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const10215 ::uint8_t* MmPageAllocFtraceEvent::_InternalSerialize(
10216     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
10217   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.MmPageAllocFtraceEvent)
10218   ::uint32_t cached_has_bits = 0;
10219   (void) cached_has_bits;
10220 
10221   cached_has_bits = _impl_._has_bits_[0];
10222   // optional uint32 gfp_flags = 1;
10223   if (cached_has_bits & 0x00000001u) {
10224     target = stream->EnsureSpace(target);
10225     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gfp_flags(), target);
10226   }
10227 
10228   // optional int32 migratetype = 2;
10229   if (cached_has_bits & 0x00000002u) {
10230     target = stream->EnsureSpace(target);
10231     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_migratetype(), target);
10232   }
10233 
10234   // optional uint32 order = 3;
10235   if (cached_has_bits & 0x00000010u) {
10236     target = stream->EnsureSpace(target);
10237     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_order(), target);
10238   }
10239 
10240   // optional uint64 page = 4;
10241   if (cached_has_bits & 0x00000004u) {
10242     target = stream->EnsureSpace(target);
10243     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_page(), target);
10244   }
10245 
10246   // optional uint64 pfn = 5;
10247   if (cached_has_bits & 0x00000008u) {
10248     target = stream->EnsureSpace(target);
10249     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_pfn(), target);
10250   }
10251 
10252   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
10253     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
10254         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
10255   }
10256   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.MmPageAllocFtraceEvent)
10257   return target;
10258 }
10259 
ByteSizeLong() const10260 size_t MmPageAllocFtraceEvent::ByteSizeLong() const {
10261 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.MmPageAllocFtraceEvent)
10262   size_t total_size = 0;
10263 
10264   ::uint32_t cached_has_bits = 0;
10265   // Prevent compiler warnings about cached_has_bits being unused
10266   (void) cached_has_bits;
10267 
10268   cached_has_bits = _impl_._has_bits_[0];
10269   if (cached_has_bits & 0x0000001fu) {
10270     // optional uint32 gfp_flags = 1;
10271     if (cached_has_bits & 0x00000001u) {
10272       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_gfp_flags());
10273     }
10274 
10275     // optional int32 migratetype = 2;
10276     if (cached_has_bits & 0x00000002u) {
10277       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_migratetype());
10278     }
10279 
10280     // optional uint64 page = 4;
10281     if (cached_has_bits & 0x00000004u) {
10282       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_page());
10283     }
10284 
10285     // optional uint64 pfn = 5;
10286     if (cached_has_bits & 0x00000008u) {
10287       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_pfn());
10288     }
10289 
10290     // optional uint32 order = 3;
10291     if (cached_has_bits & 0x00000010u) {
10292       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_order());
10293     }
10294 
10295   }
10296   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
10297     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
10298   }
10299   int cached_size = ::_pbi::ToCachedSize(total_size);
10300   SetCachedSize(cached_size);
10301   return total_size;
10302 }
10303 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)10304 void MmPageAllocFtraceEvent::CheckTypeAndMergeFrom(
10305     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
10306   MergeFrom(*::_pbi::DownCast<const MmPageAllocFtraceEvent*>(
10307       &from));
10308 }
10309 
MergeFrom(const MmPageAllocFtraceEvent & from)10310 void MmPageAllocFtraceEvent::MergeFrom(const MmPageAllocFtraceEvent& from) {
10311   MmPageAllocFtraceEvent* const _this = this;
10312   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.MmPageAllocFtraceEvent)
10313   GOOGLE_DCHECK_NE(&from, _this);
10314   ::uint32_t cached_has_bits = 0;
10315   (void) cached_has_bits;
10316 
10317   cached_has_bits = from._impl_._has_bits_[0];
10318   if (cached_has_bits & 0x0000001fu) {
10319     if (cached_has_bits & 0x00000001u) {
10320       _this->_impl_.gfp_flags_ = from._impl_.gfp_flags_;
10321     }
10322     if (cached_has_bits & 0x00000002u) {
10323       _this->_impl_.migratetype_ = from._impl_.migratetype_;
10324     }
10325     if (cached_has_bits & 0x00000004u) {
10326       _this->_impl_.page_ = from._impl_.page_;
10327     }
10328     if (cached_has_bits & 0x00000008u) {
10329       _this->_impl_.pfn_ = from._impl_.pfn_;
10330     }
10331     if (cached_has_bits & 0x00000010u) {
10332       _this->_impl_.order_ = from._impl_.order_;
10333     }
10334     _this->_impl_._has_bits_[0] |= cached_has_bits;
10335   }
10336   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
10337 }
10338 
CopyFrom(const MmPageAllocFtraceEvent & from)10339 void MmPageAllocFtraceEvent::CopyFrom(const MmPageAllocFtraceEvent& from) {
10340 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.MmPageAllocFtraceEvent)
10341   if (&from == this) return;
10342   Clear();
10343   MergeFrom(from);
10344 }
10345 
IsInitialized() const10346 bool MmPageAllocFtraceEvent::IsInitialized() const {
10347   return true;
10348 }
10349 
InternalSwap(MmPageAllocFtraceEvent * other)10350 void MmPageAllocFtraceEvent::InternalSwap(MmPageAllocFtraceEvent* other) {
10351   using std::swap;
10352   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
10353   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
10354   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
10355       PROTOBUF_FIELD_OFFSET(MmPageAllocFtraceEvent, _impl_.order_)
10356       + sizeof(MmPageAllocFtraceEvent::_impl_.order_)  // NOLINT
10357       - PROTOBUF_FIELD_OFFSET(MmPageAllocFtraceEvent, _impl_.gfp_flags_)>(
10358           reinterpret_cast<char*>(&_impl_.gfp_flags_),
10359           reinterpret_cast<char*>(&other->_impl_.gfp_flags_));
10360 }
10361 
GetTypeName() const10362 std::string MmPageAllocFtraceEvent::GetTypeName() const {
10363   return "perfetto.protos.MmPageAllocFtraceEvent";
10364 }
10365 
10366 
10367 // ===================================================================
10368 
10369 class MmPageAllocExtfragFtraceEvent::_Internal {
10370  public:
10371   using HasBits = decltype(std::declval<MmPageAllocExtfragFtraceEvent>()._impl_._has_bits_);
set_has_alloc_migratetype(HasBits * has_bits)10372   static void set_has_alloc_migratetype(HasBits* has_bits) {
10373     (*has_bits)[0] |= 1u;
10374   }
set_has_alloc_order(HasBits * has_bits)10375   static void set_has_alloc_order(HasBits* has_bits) {
10376     (*has_bits)[0] |= 2u;
10377   }
set_has_fallback_migratetype(HasBits * has_bits)10378   static void set_has_fallback_migratetype(HasBits* has_bits) {
10379     (*has_bits)[0] |= 4u;
10380   }
set_has_fallback_order(HasBits * has_bits)10381   static void set_has_fallback_order(HasBits* has_bits) {
10382     (*has_bits)[0] |= 8u;
10383   }
set_has_page(HasBits * has_bits)10384   static void set_has_page(HasBits* has_bits) {
10385     (*has_bits)[0] |= 16u;
10386   }
set_has_change_ownership(HasBits * has_bits)10387   static void set_has_change_ownership(HasBits* has_bits) {
10388     (*has_bits)[0] |= 64u;
10389   }
set_has_pfn(HasBits * has_bits)10390   static void set_has_pfn(HasBits* has_bits) {
10391     (*has_bits)[0] |= 32u;
10392   }
10393 };
10394 
MmPageAllocExtfragFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)10395 MmPageAllocExtfragFtraceEvent::MmPageAllocExtfragFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
10396                          bool is_message_owned)
10397   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
10398   SharedCtor(arena, is_message_owned);
10399   // @@protoc_insertion_point(arena_constructor:perfetto.protos.MmPageAllocExtfragFtraceEvent)
10400 }
MmPageAllocExtfragFtraceEvent(const MmPageAllocExtfragFtraceEvent & from)10401 MmPageAllocExtfragFtraceEvent::MmPageAllocExtfragFtraceEvent(const MmPageAllocExtfragFtraceEvent& from)
10402   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
10403   MmPageAllocExtfragFtraceEvent* const _this = this; (void)_this;
10404   new (&_impl_) Impl_{
10405       decltype(_impl_._has_bits_){from._impl_._has_bits_}
10406     , /*decltype(_impl_._cached_size_)*/{}
10407     , decltype(_impl_.alloc_migratetype_){}
10408     , decltype(_impl_.alloc_order_){}
10409     , decltype(_impl_.fallback_migratetype_){}
10410     , decltype(_impl_.fallback_order_){}
10411     , decltype(_impl_.page_){}
10412     , decltype(_impl_.pfn_){}
10413     , decltype(_impl_.change_ownership_){}};
10414 
10415   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
10416   ::memcpy(&_impl_.alloc_migratetype_, &from._impl_.alloc_migratetype_,
10417     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.change_ownership_) -
10418     reinterpret_cast<char*>(&_impl_.alloc_migratetype_)) + sizeof(_impl_.change_ownership_));
10419   // @@protoc_insertion_point(copy_constructor:perfetto.protos.MmPageAllocExtfragFtraceEvent)
10420 }
10421 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)10422 inline void MmPageAllocExtfragFtraceEvent::SharedCtor(
10423     ::_pb::Arena* arena, bool is_message_owned) {
10424   (void)arena;
10425   (void)is_message_owned;
10426   new (&_impl_) Impl_{
10427       decltype(_impl_._has_bits_){}
10428     , /*decltype(_impl_._cached_size_)*/{}
10429     , decltype(_impl_.alloc_migratetype_){0}
10430     , decltype(_impl_.alloc_order_){0}
10431     , decltype(_impl_.fallback_migratetype_){0}
10432     , decltype(_impl_.fallback_order_){0}
10433     , decltype(_impl_.page_){::uint64_t{0u}}
10434     , decltype(_impl_.pfn_){::uint64_t{0u}}
10435     , decltype(_impl_.change_ownership_){0}
10436   };
10437 }
10438 
~MmPageAllocExtfragFtraceEvent()10439 MmPageAllocExtfragFtraceEvent::~MmPageAllocExtfragFtraceEvent() {
10440   // @@protoc_insertion_point(destructor:perfetto.protos.MmPageAllocExtfragFtraceEvent)
10441   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
10442   (void)arena;
10443     return;
10444   }
10445   SharedDtor();
10446 }
10447 
SharedDtor()10448 inline void MmPageAllocExtfragFtraceEvent::SharedDtor() {
10449   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
10450 }
10451 
SetCachedSize(int size) const10452 void MmPageAllocExtfragFtraceEvent::SetCachedSize(int size) const {
10453   _impl_._cached_size_.Set(size);
10454 }
10455 
Clear()10456 void MmPageAllocExtfragFtraceEvent::Clear() {
10457 // @@protoc_insertion_point(message_clear_start:perfetto.protos.MmPageAllocExtfragFtraceEvent)
10458   ::uint32_t cached_has_bits = 0;
10459   // Prevent compiler warnings about cached_has_bits being unused
10460   (void) cached_has_bits;
10461 
10462   cached_has_bits = _impl_._has_bits_[0];
10463   if (cached_has_bits & 0x0000007fu) {
10464     ::memset(&_impl_.alloc_migratetype_, 0, static_cast<size_t>(
10465         reinterpret_cast<char*>(&_impl_.change_ownership_) -
10466         reinterpret_cast<char*>(&_impl_.alloc_migratetype_)) + sizeof(_impl_.change_ownership_));
10467   }
10468   _impl_._has_bits_.Clear();
10469   _internal_metadata_.Clear<std::string>();
10470 }
10471 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)10472 const char* MmPageAllocExtfragFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
10473 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
10474   _Internal::HasBits has_bits{};
10475   while (!ctx->Done(&ptr)) {
10476     ::uint32_t tag;
10477     ptr = ::_pbi::ReadTag(ptr, &tag);
10478     switch (tag >> 3) {
10479       // optional int32 alloc_migratetype = 1;
10480       case 1:
10481         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
10482           _Internal::set_has_alloc_migratetype(&has_bits);
10483           _impl_.alloc_migratetype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
10484           CHK_(ptr);
10485         } else {
10486           goto handle_unusual;
10487         }
10488         continue;
10489       // optional int32 alloc_order = 2;
10490       case 2:
10491         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
10492           _Internal::set_has_alloc_order(&has_bits);
10493           _impl_.alloc_order_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
10494           CHK_(ptr);
10495         } else {
10496           goto handle_unusual;
10497         }
10498         continue;
10499       // optional int32 fallback_migratetype = 3;
10500       case 3:
10501         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
10502           _Internal::set_has_fallback_migratetype(&has_bits);
10503           _impl_.fallback_migratetype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
10504           CHK_(ptr);
10505         } else {
10506           goto handle_unusual;
10507         }
10508         continue;
10509       // optional int32 fallback_order = 4;
10510       case 4:
10511         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
10512           _Internal::set_has_fallback_order(&has_bits);
10513           _impl_.fallback_order_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
10514           CHK_(ptr);
10515         } else {
10516           goto handle_unusual;
10517         }
10518         continue;
10519       // optional uint64 page = 5;
10520       case 5:
10521         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
10522           _Internal::set_has_page(&has_bits);
10523           _impl_.page_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
10524           CHK_(ptr);
10525         } else {
10526           goto handle_unusual;
10527         }
10528         continue;
10529       // optional int32 change_ownership = 6;
10530       case 6:
10531         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
10532           _Internal::set_has_change_ownership(&has_bits);
10533           _impl_.change_ownership_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
10534           CHK_(ptr);
10535         } else {
10536           goto handle_unusual;
10537         }
10538         continue;
10539       // optional uint64 pfn = 7;
10540       case 7:
10541         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
10542           _Internal::set_has_pfn(&has_bits);
10543           _impl_.pfn_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
10544           CHK_(ptr);
10545         } else {
10546           goto handle_unusual;
10547         }
10548         continue;
10549       default:
10550         goto handle_unusual;
10551     }  // switch
10552   handle_unusual:
10553     if ((tag == 0) || ((tag & 7) == 4)) {
10554       CHK_(ptr);
10555       ctx->SetLastTag(tag);
10556       goto message_done;
10557     }
10558     ptr = UnknownFieldParse(
10559         tag,
10560         _internal_metadata_.mutable_unknown_fields<std::string>(),
10561         ptr, ctx);
10562     CHK_(ptr != nullptr);
10563   }  // while
10564 message_done:
10565   _impl_._has_bits_.Or(has_bits);
10566   return ptr;
10567 failure:
10568   ptr = nullptr;
10569   goto message_done;
10570 #undef CHK_
10571 }
10572 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const10573 ::uint8_t* MmPageAllocExtfragFtraceEvent::_InternalSerialize(
10574     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
10575   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.MmPageAllocExtfragFtraceEvent)
10576   ::uint32_t cached_has_bits = 0;
10577   (void) cached_has_bits;
10578 
10579   cached_has_bits = _impl_._has_bits_[0];
10580   // optional int32 alloc_migratetype = 1;
10581   if (cached_has_bits & 0x00000001u) {
10582     target = stream->EnsureSpace(target);
10583     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_alloc_migratetype(), target);
10584   }
10585 
10586   // optional int32 alloc_order = 2;
10587   if (cached_has_bits & 0x00000002u) {
10588     target = stream->EnsureSpace(target);
10589     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_alloc_order(), target);
10590   }
10591 
10592   // optional int32 fallback_migratetype = 3;
10593   if (cached_has_bits & 0x00000004u) {
10594     target = stream->EnsureSpace(target);
10595     target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_fallback_migratetype(), target);
10596   }
10597 
10598   // optional int32 fallback_order = 4;
10599   if (cached_has_bits & 0x00000008u) {
10600     target = stream->EnsureSpace(target);
10601     target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_fallback_order(), target);
10602   }
10603 
10604   // optional uint64 page = 5;
10605   if (cached_has_bits & 0x00000010u) {
10606     target = stream->EnsureSpace(target);
10607     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_page(), target);
10608   }
10609 
10610   // optional int32 change_ownership = 6;
10611   if (cached_has_bits & 0x00000040u) {
10612     target = stream->EnsureSpace(target);
10613     target = ::_pbi::WireFormatLite::WriteInt32ToArray(6, this->_internal_change_ownership(), target);
10614   }
10615 
10616   // optional uint64 pfn = 7;
10617   if (cached_has_bits & 0x00000020u) {
10618     target = stream->EnsureSpace(target);
10619     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(7, this->_internal_pfn(), target);
10620   }
10621 
10622   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
10623     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
10624         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
10625   }
10626   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.MmPageAllocExtfragFtraceEvent)
10627   return target;
10628 }
10629 
ByteSizeLong() const10630 size_t MmPageAllocExtfragFtraceEvent::ByteSizeLong() const {
10631 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.MmPageAllocExtfragFtraceEvent)
10632   size_t total_size = 0;
10633 
10634   ::uint32_t cached_has_bits = 0;
10635   // Prevent compiler warnings about cached_has_bits being unused
10636   (void) cached_has_bits;
10637 
10638   cached_has_bits = _impl_._has_bits_[0];
10639   if (cached_has_bits & 0x0000007fu) {
10640     // optional int32 alloc_migratetype = 1;
10641     if (cached_has_bits & 0x00000001u) {
10642       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_alloc_migratetype());
10643     }
10644 
10645     // optional int32 alloc_order = 2;
10646     if (cached_has_bits & 0x00000002u) {
10647       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_alloc_order());
10648     }
10649 
10650     // optional int32 fallback_migratetype = 3;
10651     if (cached_has_bits & 0x00000004u) {
10652       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_fallback_migratetype());
10653     }
10654 
10655     // optional int32 fallback_order = 4;
10656     if (cached_has_bits & 0x00000008u) {
10657       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_fallback_order());
10658     }
10659 
10660     // optional uint64 page = 5;
10661     if (cached_has_bits & 0x00000010u) {
10662       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_page());
10663     }
10664 
10665     // optional uint64 pfn = 7;
10666     if (cached_has_bits & 0x00000020u) {
10667       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_pfn());
10668     }
10669 
10670     // optional int32 change_ownership = 6;
10671     if (cached_has_bits & 0x00000040u) {
10672       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_change_ownership());
10673     }
10674 
10675   }
10676   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
10677     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
10678   }
10679   int cached_size = ::_pbi::ToCachedSize(total_size);
10680   SetCachedSize(cached_size);
10681   return total_size;
10682 }
10683 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)10684 void MmPageAllocExtfragFtraceEvent::CheckTypeAndMergeFrom(
10685     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
10686   MergeFrom(*::_pbi::DownCast<const MmPageAllocExtfragFtraceEvent*>(
10687       &from));
10688 }
10689 
MergeFrom(const MmPageAllocExtfragFtraceEvent & from)10690 void MmPageAllocExtfragFtraceEvent::MergeFrom(const MmPageAllocExtfragFtraceEvent& from) {
10691   MmPageAllocExtfragFtraceEvent* const _this = this;
10692   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.MmPageAllocExtfragFtraceEvent)
10693   GOOGLE_DCHECK_NE(&from, _this);
10694   ::uint32_t cached_has_bits = 0;
10695   (void) cached_has_bits;
10696 
10697   cached_has_bits = from._impl_._has_bits_[0];
10698   if (cached_has_bits & 0x0000007fu) {
10699     if (cached_has_bits & 0x00000001u) {
10700       _this->_impl_.alloc_migratetype_ = from._impl_.alloc_migratetype_;
10701     }
10702     if (cached_has_bits & 0x00000002u) {
10703       _this->_impl_.alloc_order_ = from._impl_.alloc_order_;
10704     }
10705     if (cached_has_bits & 0x00000004u) {
10706       _this->_impl_.fallback_migratetype_ = from._impl_.fallback_migratetype_;
10707     }
10708     if (cached_has_bits & 0x00000008u) {
10709       _this->_impl_.fallback_order_ = from._impl_.fallback_order_;
10710     }
10711     if (cached_has_bits & 0x00000010u) {
10712       _this->_impl_.page_ = from._impl_.page_;
10713     }
10714     if (cached_has_bits & 0x00000020u) {
10715       _this->_impl_.pfn_ = from._impl_.pfn_;
10716     }
10717     if (cached_has_bits & 0x00000040u) {
10718       _this->_impl_.change_ownership_ = from._impl_.change_ownership_;
10719     }
10720     _this->_impl_._has_bits_[0] |= cached_has_bits;
10721   }
10722   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
10723 }
10724 
CopyFrom(const MmPageAllocExtfragFtraceEvent & from)10725 void MmPageAllocExtfragFtraceEvent::CopyFrom(const MmPageAllocExtfragFtraceEvent& from) {
10726 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.MmPageAllocExtfragFtraceEvent)
10727   if (&from == this) return;
10728   Clear();
10729   MergeFrom(from);
10730 }
10731 
IsInitialized() const10732 bool MmPageAllocExtfragFtraceEvent::IsInitialized() const {
10733   return true;
10734 }
10735 
InternalSwap(MmPageAllocExtfragFtraceEvent * other)10736 void MmPageAllocExtfragFtraceEvent::InternalSwap(MmPageAllocExtfragFtraceEvent* other) {
10737   using std::swap;
10738   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
10739   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
10740   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
10741       PROTOBUF_FIELD_OFFSET(MmPageAllocExtfragFtraceEvent, _impl_.change_ownership_)
10742       + sizeof(MmPageAllocExtfragFtraceEvent::_impl_.change_ownership_)  // NOLINT
10743       - PROTOBUF_FIELD_OFFSET(MmPageAllocExtfragFtraceEvent, _impl_.alloc_migratetype_)>(
10744           reinterpret_cast<char*>(&_impl_.alloc_migratetype_),
10745           reinterpret_cast<char*>(&other->_impl_.alloc_migratetype_));
10746 }
10747 
GetTypeName() const10748 std::string MmPageAllocExtfragFtraceEvent::GetTypeName() const {
10749   return "perfetto.protos.MmPageAllocExtfragFtraceEvent";
10750 }
10751 
10752 
10753 // ===================================================================
10754 
10755 class MmPageAllocZoneLockedFtraceEvent::_Internal {
10756  public:
10757   using HasBits = decltype(std::declval<MmPageAllocZoneLockedFtraceEvent>()._impl_._has_bits_);
set_has_migratetype(HasBits * has_bits)10758   static void set_has_migratetype(HasBits* has_bits) {
10759     (*has_bits)[0] |= 1u;
10760   }
set_has_order(HasBits * has_bits)10761   static void set_has_order(HasBits* has_bits) {
10762     (*has_bits)[0] |= 2u;
10763   }
set_has_page(HasBits * has_bits)10764   static void set_has_page(HasBits* has_bits) {
10765     (*has_bits)[0] |= 4u;
10766   }
set_has_pfn(HasBits * has_bits)10767   static void set_has_pfn(HasBits* has_bits) {
10768     (*has_bits)[0] |= 8u;
10769   }
10770 };
10771 
MmPageAllocZoneLockedFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)10772 MmPageAllocZoneLockedFtraceEvent::MmPageAllocZoneLockedFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
10773                          bool is_message_owned)
10774   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
10775   SharedCtor(arena, is_message_owned);
10776   // @@protoc_insertion_point(arena_constructor:perfetto.protos.MmPageAllocZoneLockedFtraceEvent)
10777 }
MmPageAllocZoneLockedFtraceEvent(const MmPageAllocZoneLockedFtraceEvent & from)10778 MmPageAllocZoneLockedFtraceEvent::MmPageAllocZoneLockedFtraceEvent(const MmPageAllocZoneLockedFtraceEvent& from)
10779   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
10780   MmPageAllocZoneLockedFtraceEvent* const _this = this; (void)_this;
10781   new (&_impl_) Impl_{
10782       decltype(_impl_._has_bits_){from._impl_._has_bits_}
10783     , /*decltype(_impl_._cached_size_)*/{}
10784     , decltype(_impl_.migratetype_){}
10785     , decltype(_impl_.order_){}
10786     , decltype(_impl_.page_){}
10787     , decltype(_impl_.pfn_){}};
10788 
10789   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
10790   ::memcpy(&_impl_.migratetype_, &from._impl_.migratetype_,
10791     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.pfn_) -
10792     reinterpret_cast<char*>(&_impl_.migratetype_)) + sizeof(_impl_.pfn_));
10793   // @@protoc_insertion_point(copy_constructor:perfetto.protos.MmPageAllocZoneLockedFtraceEvent)
10794 }
10795 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)10796 inline void MmPageAllocZoneLockedFtraceEvent::SharedCtor(
10797     ::_pb::Arena* arena, bool is_message_owned) {
10798   (void)arena;
10799   (void)is_message_owned;
10800   new (&_impl_) Impl_{
10801       decltype(_impl_._has_bits_){}
10802     , /*decltype(_impl_._cached_size_)*/{}
10803     , decltype(_impl_.migratetype_){0}
10804     , decltype(_impl_.order_){0u}
10805     , decltype(_impl_.page_){::uint64_t{0u}}
10806     , decltype(_impl_.pfn_){::uint64_t{0u}}
10807   };
10808 }
10809 
~MmPageAllocZoneLockedFtraceEvent()10810 MmPageAllocZoneLockedFtraceEvent::~MmPageAllocZoneLockedFtraceEvent() {
10811   // @@protoc_insertion_point(destructor:perfetto.protos.MmPageAllocZoneLockedFtraceEvent)
10812   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
10813   (void)arena;
10814     return;
10815   }
10816   SharedDtor();
10817 }
10818 
SharedDtor()10819 inline void MmPageAllocZoneLockedFtraceEvent::SharedDtor() {
10820   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
10821 }
10822 
SetCachedSize(int size) const10823 void MmPageAllocZoneLockedFtraceEvent::SetCachedSize(int size) const {
10824   _impl_._cached_size_.Set(size);
10825 }
10826 
Clear()10827 void MmPageAllocZoneLockedFtraceEvent::Clear() {
10828 // @@protoc_insertion_point(message_clear_start:perfetto.protos.MmPageAllocZoneLockedFtraceEvent)
10829   ::uint32_t cached_has_bits = 0;
10830   // Prevent compiler warnings about cached_has_bits being unused
10831   (void) cached_has_bits;
10832 
10833   cached_has_bits = _impl_._has_bits_[0];
10834   if (cached_has_bits & 0x0000000fu) {
10835     ::memset(&_impl_.migratetype_, 0, static_cast<size_t>(
10836         reinterpret_cast<char*>(&_impl_.pfn_) -
10837         reinterpret_cast<char*>(&_impl_.migratetype_)) + sizeof(_impl_.pfn_));
10838   }
10839   _impl_._has_bits_.Clear();
10840   _internal_metadata_.Clear<std::string>();
10841 }
10842 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)10843 const char* MmPageAllocZoneLockedFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
10844 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
10845   _Internal::HasBits has_bits{};
10846   while (!ctx->Done(&ptr)) {
10847     ::uint32_t tag;
10848     ptr = ::_pbi::ReadTag(ptr, &tag);
10849     switch (tag >> 3) {
10850       // optional int32 migratetype = 1;
10851       case 1:
10852         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
10853           _Internal::set_has_migratetype(&has_bits);
10854           _impl_.migratetype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
10855           CHK_(ptr);
10856         } else {
10857           goto handle_unusual;
10858         }
10859         continue;
10860       // optional uint32 order = 2;
10861       case 2:
10862         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
10863           _Internal::set_has_order(&has_bits);
10864           _impl_.order_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
10865           CHK_(ptr);
10866         } else {
10867           goto handle_unusual;
10868         }
10869         continue;
10870       // optional uint64 page = 3;
10871       case 3:
10872         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
10873           _Internal::set_has_page(&has_bits);
10874           _impl_.page_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
10875           CHK_(ptr);
10876         } else {
10877           goto handle_unusual;
10878         }
10879         continue;
10880       // optional uint64 pfn = 4;
10881       case 4:
10882         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
10883           _Internal::set_has_pfn(&has_bits);
10884           _impl_.pfn_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
10885           CHK_(ptr);
10886         } else {
10887           goto handle_unusual;
10888         }
10889         continue;
10890       default:
10891         goto handle_unusual;
10892     }  // switch
10893   handle_unusual:
10894     if ((tag == 0) || ((tag & 7) == 4)) {
10895       CHK_(ptr);
10896       ctx->SetLastTag(tag);
10897       goto message_done;
10898     }
10899     ptr = UnknownFieldParse(
10900         tag,
10901         _internal_metadata_.mutable_unknown_fields<std::string>(),
10902         ptr, ctx);
10903     CHK_(ptr != nullptr);
10904   }  // while
10905 message_done:
10906   _impl_._has_bits_.Or(has_bits);
10907   return ptr;
10908 failure:
10909   ptr = nullptr;
10910   goto message_done;
10911 #undef CHK_
10912 }
10913 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const10914 ::uint8_t* MmPageAllocZoneLockedFtraceEvent::_InternalSerialize(
10915     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
10916   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.MmPageAllocZoneLockedFtraceEvent)
10917   ::uint32_t cached_has_bits = 0;
10918   (void) cached_has_bits;
10919 
10920   cached_has_bits = _impl_._has_bits_[0];
10921   // optional int32 migratetype = 1;
10922   if (cached_has_bits & 0x00000001u) {
10923     target = stream->EnsureSpace(target);
10924     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_migratetype(), target);
10925   }
10926 
10927   // optional uint32 order = 2;
10928   if (cached_has_bits & 0x00000002u) {
10929     target = stream->EnsureSpace(target);
10930     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_order(), target);
10931   }
10932 
10933   // optional uint64 page = 3;
10934   if (cached_has_bits & 0x00000004u) {
10935     target = stream->EnsureSpace(target);
10936     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_page(), target);
10937   }
10938 
10939   // optional uint64 pfn = 4;
10940   if (cached_has_bits & 0x00000008u) {
10941     target = stream->EnsureSpace(target);
10942     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_pfn(), target);
10943   }
10944 
10945   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
10946     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
10947         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
10948   }
10949   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.MmPageAllocZoneLockedFtraceEvent)
10950   return target;
10951 }
10952 
ByteSizeLong() const10953 size_t MmPageAllocZoneLockedFtraceEvent::ByteSizeLong() const {
10954 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.MmPageAllocZoneLockedFtraceEvent)
10955   size_t total_size = 0;
10956 
10957   ::uint32_t cached_has_bits = 0;
10958   // Prevent compiler warnings about cached_has_bits being unused
10959   (void) cached_has_bits;
10960 
10961   cached_has_bits = _impl_._has_bits_[0];
10962   if (cached_has_bits & 0x0000000fu) {
10963     // optional int32 migratetype = 1;
10964     if (cached_has_bits & 0x00000001u) {
10965       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_migratetype());
10966     }
10967 
10968     // optional uint32 order = 2;
10969     if (cached_has_bits & 0x00000002u) {
10970       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_order());
10971     }
10972 
10973     // optional uint64 page = 3;
10974     if (cached_has_bits & 0x00000004u) {
10975       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_page());
10976     }
10977 
10978     // optional uint64 pfn = 4;
10979     if (cached_has_bits & 0x00000008u) {
10980       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_pfn());
10981     }
10982 
10983   }
10984   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
10985     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
10986   }
10987   int cached_size = ::_pbi::ToCachedSize(total_size);
10988   SetCachedSize(cached_size);
10989   return total_size;
10990 }
10991 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)10992 void MmPageAllocZoneLockedFtraceEvent::CheckTypeAndMergeFrom(
10993     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
10994   MergeFrom(*::_pbi::DownCast<const MmPageAllocZoneLockedFtraceEvent*>(
10995       &from));
10996 }
10997 
MergeFrom(const MmPageAllocZoneLockedFtraceEvent & from)10998 void MmPageAllocZoneLockedFtraceEvent::MergeFrom(const MmPageAllocZoneLockedFtraceEvent& from) {
10999   MmPageAllocZoneLockedFtraceEvent* const _this = this;
11000   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.MmPageAllocZoneLockedFtraceEvent)
11001   GOOGLE_DCHECK_NE(&from, _this);
11002   ::uint32_t cached_has_bits = 0;
11003   (void) cached_has_bits;
11004 
11005   cached_has_bits = from._impl_._has_bits_[0];
11006   if (cached_has_bits & 0x0000000fu) {
11007     if (cached_has_bits & 0x00000001u) {
11008       _this->_impl_.migratetype_ = from._impl_.migratetype_;
11009     }
11010     if (cached_has_bits & 0x00000002u) {
11011       _this->_impl_.order_ = from._impl_.order_;
11012     }
11013     if (cached_has_bits & 0x00000004u) {
11014       _this->_impl_.page_ = from._impl_.page_;
11015     }
11016     if (cached_has_bits & 0x00000008u) {
11017       _this->_impl_.pfn_ = from._impl_.pfn_;
11018     }
11019     _this->_impl_._has_bits_[0] |= cached_has_bits;
11020   }
11021   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
11022 }
11023 
CopyFrom(const MmPageAllocZoneLockedFtraceEvent & from)11024 void MmPageAllocZoneLockedFtraceEvent::CopyFrom(const MmPageAllocZoneLockedFtraceEvent& from) {
11025 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.MmPageAllocZoneLockedFtraceEvent)
11026   if (&from == this) return;
11027   Clear();
11028   MergeFrom(from);
11029 }
11030 
IsInitialized() const11031 bool MmPageAllocZoneLockedFtraceEvent::IsInitialized() const {
11032   return true;
11033 }
11034 
InternalSwap(MmPageAllocZoneLockedFtraceEvent * other)11035 void MmPageAllocZoneLockedFtraceEvent::InternalSwap(MmPageAllocZoneLockedFtraceEvent* other) {
11036   using std::swap;
11037   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
11038   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
11039   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
11040       PROTOBUF_FIELD_OFFSET(MmPageAllocZoneLockedFtraceEvent, _impl_.pfn_)
11041       + sizeof(MmPageAllocZoneLockedFtraceEvent::_impl_.pfn_)  // NOLINT
11042       - PROTOBUF_FIELD_OFFSET(MmPageAllocZoneLockedFtraceEvent, _impl_.migratetype_)>(
11043           reinterpret_cast<char*>(&_impl_.migratetype_),
11044           reinterpret_cast<char*>(&other->_impl_.migratetype_));
11045 }
11046 
GetTypeName() const11047 std::string MmPageAllocZoneLockedFtraceEvent::GetTypeName() const {
11048   return "perfetto.protos.MmPageAllocZoneLockedFtraceEvent";
11049 }
11050 
11051 
11052 // ===================================================================
11053 
11054 class MmPageFreeFtraceEvent::_Internal {
11055  public:
11056   using HasBits = decltype(std::declval<MmPageFreeFtraceEvent>()._impl_._has_bits_);
set_has_order(HasBits * has_bits)11057   static void set_has_order(HasBits* has_bits) {
11058     (*has_bits)[0] |= 4u;
11059   }
set_has_page(HasBits * has_bits)11060   static void set_has_page(HasBits* has_bits) {
11061     (*has_bits)[0] |= 1u;
11062   }
set_has_pfn(HasBits * has_bits)11063   static void set_has_pfn(HasBits* has_bits) {
11064     (*has_bits)[0] |= 2u;
11065   }
11066 };
11067 
MmPageFreeFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)11068 MmPageFreeFtraceEvent::MmPageFreeFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
11069                          bool is_message_owned)
11070   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
11071   SharedCtor(arena, is_message_owned);
11072   // @@protoc_insertion_point(arena_constructor:perfetto.protos.MmPageFreeFtraceEvent)
11073 }
MmPageFreeFtraceEvent(const MmPageFreeFtraceEvent & from)11074 MmPageFreeFtraceEvent::MmPageFreeFtraceEvent(const MmPageFreeFtraceEvent& from)
11075   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
11076   MmPageFreeFtraceEvent* const _this = this; (void)_this;
11077   new (&_impl_) Impl_{
11078       decltype(_impl_._has_bits_){from._impl_._has_bits_}
11079     , /*decltype(_impl_._cached_size_)*/{}
11080     , decltype(_impl_.page_){}
11081     , decltype(_impl_.pfn_){}
11082     , decltype(_impl_.order_){}};
11083 
11084   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
11085   ::memcpy(&_impl_.page_, &from._impl_.page_,
11086     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.order_) -
11087     reinterpret_cast<char*>(&_impl_.page_)) + sizeof(_impl_.order_));
11088   // @@protoc_insertion_point(copy_constructor:perfetto.protos.MmPageFreeFtraceEvent)
11089 }
11090 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)11091 inline void MmPageFreeFtraceEvent::SharedCtor(
11092     ::_pb::Arena* arena, bool is_message_owned) {
11093   (void)arena;
11094   (void)is_message_owned;
11095   new (&_impl_) Impl_{
11096       decltype(_impl_._has_bits_){}
11097     , /*decltype(_impl_._cached_size_)*/{}
11098     , decltype(_impl_.page_){::uint64_t{0u}}
11099     , decltype(_impl_.pfn_){::uint64_t{0u}}
11100     , decltype(_impl_.order_){0u}
11101   };
11102 }
11103 
~MmPageFreeFtraceEvent()11104 MmPageFreeFtraceEvent::~MmPageFreeFtraceEvent() {
11105   // @@protoc_insertion_point(destructor:perfetto.protos.MmPageFreeFtraceEvent)
11106   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
11107   (void)arena;
11108     return;
11109   }
11110   SharedDtor();
11111 }
11112 
SharedDtor()11113 inline void MmPageFreeFtraceEvent::SharedDtor() {
11114   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
11115 }
11116 
SetCachedSize(int size) const11117 void MmPageFreeFtraceEvent::SetCachedSize(int size) const {
11118   _impl_._cached_size_.Set(size);
11119 }
11120 
Clear()11121 void MmPageFreeFtraceEvent::Clear() {
11122 // @@protoc_insertion_point(message_clear_start:perfetto.protos.MmPageFreeFtraceEvent)
11123   ::uint32_t cached_has_bits = 0;
11124   // Prevent compiler warnings about cached_has_bits being unused
11125   (void) cached_has_bits;
11126 
11127   cached_has_bits = _impl_._has_bits_[0];
11128   if (cached_has_bits & 0x00000007u) {
11129     ::memset(&_impl_.page_, 0, static_cast<size_t>(
11130         reinterpret_cast<char*>(&_impl_.order_) -
11131         reinterpret_cast<char*>(&_impl_.page_)) + sizeof(_impl_.order_));
11132   }
11133   _impl_._has_bits_.Clear();
11134   _internal_metadata_.Clear<std::string>();
11135 }
11136 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)11137 const char* MmPageFreeFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
11138 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
11139   _Internal::HasBits has_bits{};
11140   while (!ctx->Done(&ptr)) {
11141     ::uint32_t tag;
11142     ptr = ::_pbi::ReadTag(ptr, &tag);
11143     switch (tag >> 3) {
11144       // optional uint32 order = 1;
11145       case 1:
11146         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
11147           _Internal::set_has_order(&has_bits);
11148           _impl_.order_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
11149           CHK_(ptr);
11150         } else {
11151           goto handle_unusual;
11152         }
11153         continue;
11154       // optional uint64 page = 2;
11155       case 2:
11156         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
11157           _Internal::set_has_page(&has_bits);
11158           _impl_.page_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
11159           CHK_(ptr);
11160         } else {
11161           goto handle_unusual;
11162         }
11163         continue;
11164       // optional uint64 pfn = 3;
11165       case 3:
11166         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
11167           _Internal::set_has_pfn(&has_bits);
11168           _impl_.pfn_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
11169           CHK_(ptr);
11170         } else {
11171           goto handle_unusual;
11172         }
11173         continue;
11174       default:
11175         goto handle_unusual;
11176     }  // switch
11177   handle_unusual:
11178     if ((tag == 0) || ((tag & 7) == 4)) {
11179       CHK_(ptr);
11180       ctx->SetLastTag(tag);
11181       goto message_done;
11182     }
11183     ptr = UnknownFieldParse(
11184         tag,
11185         _internal_metadata_.mutable_unknown_fields<std::string>(),
11186         ptr, ctx);
11187     CHK_(ptr != nullptr);
11188   }  // while
11189 message_done:
11190   _impl_._has_bits_.Or(has_bits);
11191   return ptr;
11192 failure:
11193   ptr = nullptr;
11194   goto message_done;
11195 #undef CHK_
11196 }
11197 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const11198 ::uint8_t* MmPageFreeFtraceEvent::_InternalSerialize(
11199     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
11200   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.MmPageFreeFtraceEvent)
11201   ::uint32_t cached_has_bits = 0;
11202   (void) cached_has_bits;
11203 
11204   cached_has_bits = _impl_._has_bits_[0];
11205   // optional uint32 order = 1;
11206   if (cached_has_bits & 0x00000004u) {
11207     target = stream->EnsureSpace(target);
11208     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_order(), target);
11209   }
11210 
11211   // optional uint64 page = 2;
11212   if (cached_has_bits & 0x00000001u) {
11213     target = stream->EnsureSpace(target);
11214     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_page(), target);
11215   }
11216 
11217   // optional uint64 pfn = 3;
11218   if (cached_has_bits & 0x00000002u) {
11219     target = stream->EnsureSpace(target);
11220     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_pfn(), target);
11221   }
11222 
11223   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11224     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
11225         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
11226   }
11227   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.MmPageFreeFtraceEvent)
11228   return target;
11229 }
11230 
ByteSizeLong() const11231 size_t MmPageFreeFtraceEvent::ByteSizeLong() const {
11232 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.MmPageFreeFtraceEvent)
11233   size_t total_size = 0;
11234 
11235   ::uint32_t cached_has_bits = 0;
11236   // Prevent compiler warnings about cached_has_bits being unused
11237   (void) cached_has_bits;
11238 
11239   cached_has_bits = _impl_._has_bits_[0];
11240   if (cached_has_bits & 0x00000007u) {
11241     // optional uint64 page = 2;
11242     if (cached_has_bits & 0x00000001u) {
11243       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_page());
11244     }
11245 
11246     // optional uint64 pfn = 3;
11247     if (cached_has_bits & 0x00000002u) {
11248       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_pfn());
11249     }
11250 
11251     // optional uint32 order = 1;
11252     if (cached_has_bits & 0x00000004u) {
11253       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_order());
11254     }
11255 
11256   }
11257   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11258     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
11259   }
11260   int cached_size = ::_pbi::ToCachedSize(total_size);
11261   SetCachedSize(cached_size);
11262   return total_size;
11263 }
11264 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)11265 void MmPageFreeFtraceEvent::CheckTypeAndMergeFrom(
11266     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
11267   MergeFrom(*::_pbi::DownCast<const MmPageFreeFtraceEvent*>(
11268       &from));
11269 }
11270 
MergeFrom(const MmPageFreeFtraceEvent & from)11271 void MmPageFreeFtraceEvent::MergeFrom(const MmPageFreeFtraceEvent& from) {
11272   MmPageFreeFtraceEvent* const _this = this;
11273   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.MmPageFreeFtraceEvent)
11274   GOOGLE_DCHECK_NE(&from, _this);
11275   ::uint32_t cached_has_bits = 0;
11276   (void) cached_has_bits;
11277 
11278   cached_has_bits = from._impl_._has_bits_[0];
11279   if (cached_has_bits & 0x00000007u) {
11280     if (cached_has_bits & 0x00000001u) {
11281       _this->_impl_.page_ = from._impl_.page_;
11282     }
11283     if (cached_has_bits & 0x00000002u) {
11284       _this->_impl_.pfn_ = from._impl_.pfn_;
11285     }
11286     if (cached_has_bits & 0x00000004u) {
11287       _this->_impl_.order_ = from._impl_.order_;
11288     }
11289     _this->_impl_._has_bits_[0] |= cached_has_bits;
11290   }
11291   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
11292 }
11293 
CopyFrom(const MmPageFreeFtraceEvent & from)11294 void MmPageFreeFtraceEvent::CopyFrom(const MmPageFreeFtraceEvent& from) {
11295 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.MmPageFreeFtraceEvent)
11296   if (&from == this) return;
11297   Clear();
11298   MergeFrom(from);
11299 }
11300 
IsInitialized() const11301 bool MmPageFreeFtraceEvent::IsInitialized() const {
11302   return true;
11303 }
11304 
InternalSwap(MmPageFreeFtraceEvent * other)11305 void MmPageFreeFtraceEvent::InternalSwap(MmPageFreeFtraceEvent* other) {
11306   using std::swap;
11307   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
11308   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
11309   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
11310       PROTOBUF_FIELD_OFFSET(MmPageFreeFtraceEvent, _impl_.order_)
11311       + sizeof(MmPageFreeFtraceEvent::_impl_.order_)  // NOLINT
11312       - PROTOBUF_FIELD_OFFSET(MmPageFreeFtraceEvent, _impl_.page_)>(
11313           reinterpret_cast<char*>(&_impl_.page_),
11314           reinterpret_cast<char*>(&other->_impl_.page_));
11315 }
11316 
GetTypeName() const11317 std::string MmPageFreeFtraceEvent::GetTypeName() const {
11318   return "perfetto.protos.MmPageFreeFtraceEvent";
11319 }
11320 
11321 
11322 // ===================================================================
11323 
11324 class MmPageFreeBatchedFtraceEvent::_Internal {
11325  public:
11326   using HasBits = decltype(std::declval<MmPageFreeBatchedFtraceEvent>()._impl_._has_bits_);
set_has_cold(HasBits * has_bits)11327   static void set_has_cold(HasBits* has_bits) {
11328     (*has_bits)[0] |= 4u;
11329   }
set_has_page(HasBits * has_bits)11330   static void set_has_page(HasBits* has_bits) {
11331     (*has_bits)[0] |= 1u;
11332   }
set_has_pfn(HasBits * has_bits)11333   static void set_has_pfn(HasBits* has_bits) {
11334     (*has_bits)[0] |= 2u;
11335   }
11336 };
11337 
MmPageFreeBatchedFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)11338 MmPageFreeBatchedFtraceEvent::MmPageFreeBatchedFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
11339                          bool is_message_owned)
11340   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
11341   SharedCtor(arena, is_message_owned);
11342   // @@protoc_insertion_point(arena_constructor:perfetto.protos.MmPageFreeBatchedFtraceEvent)
11343 }
MmPageFreeBatchedFtraceEvent(const MmPageFreeBatchedFtraceEvent & from)11344 MmPageFreeBatchedFtraceEvent::MmPageFreeBatchedFtraceEvent(const MmPageFreeBatchedFtraceEvent& from)
11345   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
11346   MmPageFreeBatchedFtraceEvent* const _this = this; (void)_this;
11347   new (&_impl_) Impl_{
11348       decltype(_impl_._has_bits_){from._impl_._has_bits_}
11349     , /*decltype(_impl_._cached_size_)*/{}
11350     , decltype(_impl_.page_){}
11351     , decltype(_impl_.pfn_){}
11352     , decltype(_impl_.cold_){}};
11353 
11354   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
11355   ::memcpy(&_impl_.page_, &from._impl_.page_,
11356     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.cold_) -
11357     reinterpret_cast<char*>(&_impl_.page_)) + sizeof(_impl_.cold_));
11358   // @@protoc_insertion_point(copy_constructor:perfetto.protos.MmPageFreeBatchedFtraceEvent)
11359 }
11360 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)11361 inline void MmPageFreeBatchedFtraceEvent::SharedCtor(
11362     ::_pb::Arena* arena, bool is_message_owned) {
11363   (void)arena;
11364   (void)is_message_owned;
11365   new (&_impl_) Impl_{
11366       decltype(_impl_._has_bits_){}
11367     , /*decltype(_impl_._cached_size_)*/{}
11368     , decltype(_impl_.page_){::uint64_t{0u}}
11369     , decltype(_impl_.pfn_){::uint64_t{0u}}
11370     , decltype(_impl_.cold_){0}
11371   };
11372 }
11373 
~MmPageFreeBatchedFtraceEvent()11374 MmPageFreeBatchedFtraceEvent::~MmPageFreeBatchedFtraceEvent() {
11375   // @@protoc_insertion_point(destructor:perfetto.protos.MmPageFreeBatchedFtraceEvent)
11376   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
11377   (void)arena;
11378     return;
11379   }
11380   SharedDtor();
11381 }
11382 
SharedDtor()11383 inline void MmPageFreeBatchedFtraceEvent::SharedDtor() {
11384   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
11385 }
11386 
SetCachedSize(int size) const11387 void MmPageFreeBatchedFtraceEvent::SetCachedSize(int size) const {
11388   _impl_._cached_size_.Set(size);
11389 }
11390 
Clear()11391 void MmPageFreeBatchedFtraceEvent::Clear() {
11392 // @@protoc_insertion_point(message_clear_start:perfetto.protos.MmPageFreeBatchedFtraceEvent)
11393   ::uint32_t cached_has_bits = 0;
11394   // Prevent compiler warnings about cached_has_bits being unused
11395   (void) cached_has_bits;
11396 
11397   cached_has_bits = _impl_._has_bits_[0];
11398   if (cached_has_bits & 0x00000007u) {
11399     ::memset(&_impl_.page_, 0, static_cast<size_t>(
11400         reinterpret_cast<char*>(&_impl_.cold_) -
11401         reinterpret_cast<char*>(&_impl_.page_)) + sizeof(_impl_.cold_));
11402   }
11403   _impl_._has_bits_.Clear();
11404   _internal_metadata_.Clear<std::string>();
11405 }
11406 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)11407 const char* MmPageFreeBatchedFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
11408 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
11409   _Internal::HasBits has_bits{};
11410   while (!ctx->Done(&ptr)) {
11411     ::uint32_t tag;
11412     ptr = ::_pbi::ReadTag(ptr, &tag);
11413     switch (tag >> 3) {
11414       // optional int32 cold = 1;
11415       case 1:
11416         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
11417           _Internal::set_has_cold(&has_bits);
11418           _impl_.cold_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
11419           CHK_(ptr);
11420         } else {
11421           goto handle_unusual;
11422         }
11423         continue;
11424       // optional uint64 page = 2;
11425       case 2:
11426         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
11427           _Internal::set_has_page(&has_bits);
11428           _impl_.page_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
11429           CHK_(ptr);
11430         } else {
11431           goto handle_unusual;
11432         }
11433         continue;
11434       // optional uint64 pfn = 3;
11435       case 3:
11436         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
11437           _Internal::set_has_pfn(&has_bits);
11438           _impl_.pfn_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
11439           CHK_(ptr);
11440         } else {
11441           goto handle_unusual;
11442         }
11443         continue;
11444       default:
11445         goto handle_unusual;
11446     }  // switch
11447   handle_unusual:
11448     if ((tag == 0) || ((tag & 7) == 4)) {
11449       CHK_(ptr);
11450       ctx->SetLastTag(tag);
11451       goto message_done;
11452     }
11453     ptr = UnknownFieldParse(
11454         tag,
11455         _internal_metadata_.mutable_unknown_fields<std::string>(),
11456         ptr, ctx);
11457     CHK_(ptr != nullptr);
11458   }  // while
11459 message_done:
11460   _impl_._has_bits_.Or(has_bits);
11461   return ptr;
11462 failure:
11463   ptr = nullptr;
11464   goto message_done;
11465 #undef CHK_
11466 }
11467 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const11468 ::uint8_t* MmPageFreeBatchedFtraceEvent::_InternalSerialize(
11469     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
11470   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.MmPageFreeBatchedFtraceEvent)
11471   ::uint32_t cached_has_bits = 0;
11472   (void) cached_has_bits;
11473 
11474   cached_has_bits = _impl_._has_bits_[0];
11475   // optional int32 cold = 1;
11476   if (cached_has_bits & 0x00000004u) {
11477     target = stream->EnsureSpace(target);
11478     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_cold(), target);
11479   }
11480 
11481   // optional uint64 page = 2;
11482   if (cached_has_bits & 0x00000001u) {
11483     target = stream->EnsureSpace(target);
11484     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_page(), target);
11485   }
11486 
11487   // optional uint64 pfn = 3;
11488   if (cached_has_bits & 0x00000002u) {
11489     target = stream->EnsureSpace(target);
11490     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_pfn(), target);
11491   }
11492 
11493   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11494     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
11495         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
11496   }
11497   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.MmPageFreeBatchedFtraceEvent)
11498   return target;
11499 }
11500 
ByteSizeLong() const11501 size_t MmPageFreeBatchedFtraceEvent::ByteSizeLong() const {
11502 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.MmPageFreeBatchedFtraceEvent)
11503   size_t total_size = 0;
11504 
11505   ::uint32_t cached_has_bits = 0;
11506   // Prevent compiler warnings about cached_has_bits being unused
11507   (void) cached_has_bits;
11508 
11509   cached_has_bits = _impl_._has_bits_[0];
11510   if (cached_has_bits & 0x00000007u) {
11511     // optional uint64 page = 2;
11512     if (cached_has_bits & 0x00000001u) {
11513       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_page());
11514     }
11515 
11516     // optional uint64 pfn = 3;
11517     if (cached_has_bits & 0x00000002u) {
11518       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_pfn());
11519     }
11520 
11521     // optional int32 cold = 1;
11522     if (cached_has_bits & 0x00000004u) {
11523       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_cold());
11524     }
11525 
11526   }
11527   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11528     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
11529   }
11530   int cached_size = ::_pbi::ToCachedSize(total_size);
11531   SetCachedSize(cached_size);
11532   return total_size;
11533 }
11534 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)11535 void MmPageFreeBatchedFtraceEvent::CheckTypeAndMergeFrom(
11536     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
11537   MergeFrom(*::_pbi::DownCast<const MmPageFreeBatchedFtraceEvent*>(
11538       &from));
11539 }
11540 
MergeFrom(const MmPageFreeBatchedFtraceEvent & from)11541 void MmPageFreeBatchedFtraceEvent::MergeFrom(const MmPageFreeBatchedFtraceEvent& from) {
11542   MmPageFreeBatchedFtraceEvent* const _this = this;
11543   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.MmPageFreeBatchedFtraceEvent)
11544   GOOGLE_DCHECK_NE(&from, _this);
11545   ::uint32_t cached_has_bits = 0;
11546   (void) cached_has_bits;
11547 
11548   cached_has_bits = from._impl_._has_bits_[0];
11549   if (cached_has_bits & 0x00000007u) {
11550     if (cached_has_bits & 0x00000001u) {
11551       _this->_impl_.page_ = from._impl_.page_;
11552     }
11553     if (cached_has_bits & 0x00000002u) {
11554       _this->_impl_.pfn_ = from._impl_.pfn_;
11555     }
11556     if (cached_has_bits & 0x00000004u) {
11557       _this->_impl_.cold_ = from._impl_.cold_;
11558     }
11559     _this->_impl_._has_bits_[0] |= cached_has_bits;
11560   }
11561   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
11562 }
11563 
CopyFrom(const MmPageFreeBatchedFtraceEvent & from)11564 void MmPageFreeBatchedFtraceEvent::CopyFrom(const MmPageFreeBatchedFtraceEvent& from) {
11565 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.MmPageFreeBatchedFtraceEvent)
11566   if (&from == this) return;
11567   Clear();
11568   MergeFrom(from);
11569 }
11570 
IsInitialized() const11571 bool MmPageFreeBatchedFtraceEvent::IsInitialized() const {
11572   return true;
11573 }
11574 
InternalSwap(MmPageFreeBatchedFtraceEvent * other)11575 void MmPageFreeBatchedFtraceEvent::InternalSwap(MmPageFreeBatchedFtraceEvent* other) {
11576   using std::swap;
11577   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
11578   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
11579   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
11580       PROTOBUF_FIELD_OFFSET(MmPageFreeBatchedFtraceEvent, _impl_.cold_)
11581       + sizeof(MmPageFreeBatchedFtraceEvent::_impl_.cold_)  // NOLINT
11582       - PROTOBUF_FIELD_OFFSET(MmPageFreeBatchedFtraceEvent, _impl_.page_)>(
11583           reinterpret_cast<char*>(&_impl_.page_),
11584           reinterpret_cast<char*>(&other->_impl_.page_));
11585 }
11586 
GetTypeName() const11587 std::string MmPageFreeBatchedFtraceEvent::GetTypeName() const {
11588   return "perfetto.protos.MmPageFreeBatchedFtraceEvent";
11589 }
11590 
11591 
11592 // ===================================================================
11593 
11594 class MmPagePcpuDrainFtraceEvent::_Internal {
11595  public:
11596   using HasBits = decltype(std::declval<MmPagePcpuDrainFtraceEvent>()._impl_._has_bits_);
set_has_migratetype(HasBits * has_bits)11597   static void set_has_migratetype(HasBits* has_bits) {
11598     (*has_bits)[0] |= 1u;
11599   }
set_has_order(HasBits * has_bits)11600   static void set_has_order(HasBits* has_bits) {
11601     (*has_bits)[0] |= 2u;
11602   }
set_has_page(HasBits * has_bits)11603   static void set_has_page(HasBits* has_bits) {
11604     (*has_bits)[0] |= 4u;
11605   }
set_has_pfn(HasBits * has_bits)11606   static void set_has_pfn(HasBits* has_bits) {
11607     (*has_bits)[0] |= 8u;
11608   }
11609 };
11610 
MmPagePcpuDrainFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)11611 MmPagePcpuDrainFtraceEvent::MmPagePcpuDrainFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
11612                          bool is_message_owned)
11613   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
11614   SharedCtor(arena, is_message_owned);
11615   // @@protoc_insertion_point(arena_constructor:perfetto.protos.MmPagePcpuDrainFtraceEvent)
11616 }
MmPagePcpuDrainFtraceEvent(const MmPagePcpuDrainFtraceEvent & from)11617 MmPagePcpuDrainFtraceEvent::MmPagePcpuDrainFtraceEvent(const MmPagePcpuDrainFtraceEvent& from)
11618   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
11619   MmPagePcpuDrainFtraceEvent* const _this = this; (void)_this;
11620   new (&_impl_) Impl_{
11621       decltype(_impl_._has_bits_){from._impl_._has_bits_}
11622     , /*decltype(_impl_._cached_size_)*/{}
11623     , decltype(_impl_.migratetype_){}
11624     , decltype(_impl_.order_){}
11625     , decltype(_impl_.page_){}
11626     , decltype(_impl_.pfn_){}};
11627 
11628   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
11629   ::memcpy(&_impl_.migratetype_, &from._impl_.migratetype_,
11630     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.pfn_) -
11631     reinterpret_cast<char*>(&_impl_.migratetype_)) + sizeof(_impl_.pfn_));
11632   // @@protoc_insertion_point(copy_constructor:perfetto.protos.MmPagePcpuDrainFtraceEvent)
11633 }
11634 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)11635 inline void MmPagePcpuDrainFtraceEvent::SharedCtor(
11636     ::_pb::Arena* arena, bool is_message_owned) {
11637   (void)arena;
11638   (void)is_message_owned;
11639   new (&_impl_) Impl_{
11640       decltype(_impl_._has_bits_){}
11641     , /*decltype(_impl_._cached_size_)*/{}
11642     , decltype(_impl_.migratetype_){0}
11643     , decltype(_impl_.order_){0u}
11644     , decltype(_impl_.page_){::uint64_t{0u}}
11645     , decltype(_impl_.pfn_){::uint64_t{0u}}
11646   };
11647 }
11648 
~MmPagePcpuDrainFtraceEvent()11649 MmPagePcpuDrainFtraceEvent::~MmPagePcpuDrainFtraceEvent() {
11650   // @@protoc_insertion_point(destructor:perfetto.protos.MmPagePcpuDrainFtraceEvent)
11651   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
11652   (void)arena;
11653     return;
11654   }
11655   SharedDtor();
11656 }
11657 
SharedDtor()11658 inline void MmPagePcpuDrainFtraceEvent::SharedDtor() {
11659   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
11660 }
11661 
SetCachedSize(int size) const11662 void MmPagePcpuDrainFtraceEvent::SetCachedSize(int size) const {
11663   _impl_._cached_size_.Set(size);
11664 }
11665 
Clear()11666 void MmPagePcpuDrainFtraceEvent::Clear() {
11667 // @@protoc_insertion_point(message_clear_start:perfetto.protos.MmPagePcpuDrainFtraceEvent)
11668   ::uint32_t cached_has_bits = 0;
11669   // Prevent compiler warnings about cached_has_bits being unused
11670   (void) cached_has_bits;
11671 
11672   cached_has_bits = _impl_._has_bits_[0];
11673   if (cached_has_bits & 0x0000000fu) {
11674     ::memset(&_impl_.migratetype_, 0, static_cast<size_t>(
11675         reinterpret_cast<char*>(&_impl_.pfn_) -
11676         reinterpret_cast<char*>(&_impl_.migratetype_)) + sizeof(_impl_.pfn_));
11677   }
11678   _impl_._has_bits_.Clear();
11679   _internal_metadata_.Clear<std::string>();
11680 }
11681 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)11682 const char* MmPagePcpuDrainFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
11683 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
11684   _Internal::HasBits has_bits{};
11685   while (!ctx->Done(&ptr)) {
11686     ::uint32_t tag;
11687     ptr = ::_pbi::ReadTag(ptr, &tag);
11688     switch (tag >> 3) {
11689       // optional int32 migratetype = 1;
11690       case 1:
11691         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
11692           _Internal::set_has_migratetype(&has_bits);
11693           _impl_.migratetype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
11694           CHK_(ptr);
11695         } else {
11696           goto handle_unusual;
11697         }
11698         continue;
11699       // optional uint32 order = 2;
11700       case 2:
11701         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
11702           _Internal::set_has_order(&has_bits);
11703           _impl_.order_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
11704           CHK_(ptr);
11705         } else {
11706           goto handle_unusual;
11707         }
11708         continue;
11709       // optional uint64 page = 3;
11710       case 3:
11711         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
11712           _Internal::set_has_page(&has_bits);
11713           _impl_.page_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
11714           CHK_(ptr);
11715         } else {
11716           goto handle_unusual;
11717         }
11718         continue;
11719       // optional uint64 pfn = 4;
11720       case 4:
11721         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
11722           _Internal::set_has_pfn(&has_bits);
11723           _impl_.pfn_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
11724           CHK_(ptr);
11725         } else {
11726           goto handle_unusual;
11727         }
11728         continue;
11729       default:
11730         goto handle_unusual;
11731     }  // switch
11732   handle_unusual:
11733     if ((tag == 0) || ((tag & 7) == 4)) {
11734       CHK_(ptr);
11735       ctx->SetLastTag(tag);
11736       goto message_done;
11737     }
11738     ptr = UnknownFieldParse(
11739         tag,
11740         _internal_metadata_.mutable_unknown_fields<std::string>(),
11741         ptr, ctx);
11742     CHK_(ptr != nullptr);
11743   }  // while
11744 message_done:
11745   _impl_._has_bits_.Or(has_bits);
11746   return ptr;
11747 failure:
11748   ptr = nullptr;
11749   goto message_done;
11750 #undef CHK_
11751 }
11752 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const11753 ::uint8_t* MmPagePcpuDrainFtraceEvent::_InternalSerialize(
11754     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
11755   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.MmPagePcpuDrainFtraceEvent)
11756   ::uint32_t cached_has_bits = 0;
11757   (void) cached_has_bits;
11758 
11759   cached_has_bits = _impl_._has_bits_[0];
11760   // optional int32 migratetype = 1;
11761   if (cached_has_bits & 0x00000001u) {
11762     target = stream->EnsureSpace(target);
11763     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_migratetype(), target);
11764   }
11765 
11766   // optional uint32 order = 2;
11767   if (cached_has_bits & 0x00000002u) {
11768     target = stream->EnsureSpace(target);
11769     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_order(), target);
11770   }
11771 
11772   // optional uint64 page = 3;
11773   if (cached_has_bits & 0x00000004u) {
11774     target = stream->EnsureSpace(target);
11775     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_page(), target);
11776   }
11777 
11778   // optional uint64 pfn = 4;
11779   if (cached_has_bits & 0x00000008u) {
11780     target = stream->EnsureSpace(target);
11781     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_pfn(), target);
11782   }
11783 
11784   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11785     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
11786         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
11787   }
11788   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.MmPagePcpuDrainFtraceEvent)
11789   return target;
11790 }
11791 
ByteSizeLong() const11792 size_t MmPagePcpuDrainFtraceEvent::ByteSizeLong() const {
11793 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.MmPagePcpuDrainFtraceEvent)
11794   size_t total_size = 0;
11795 
11796   ::uint32_t cached_has_bits = 0;
11797   // Prevent compiler warnings about cached_has_bits being unused
11798   (void) cached_has_bits;
11799 
11800   cached_has_bits = _impl_._has_bits_[0];
11801   if (cached_has_bits & 0x0000000fu) {
11802     // optional int32 migratetype = 1;
11803     if (cached_has_bits & 0x00000001u) {
11804       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_migratetype());
11805     }
11806 
11807     // optional uint32 order = 2;
11808     if (cached_has_bits & 0x00000002u) {
11809       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_order());
11810     }
11811 
11812     // optional uint64 page = 3;
11813     if (cached_has_bits & 0x00000004u) {
11814       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_page());
11815     }
11816 
11817     // optional uint64 pfn = 4;
11818     if (cached_has_bits & 0x00000008u) {
11819       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_pfn());
11820     }
11821 
11822   }
11823   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11824     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
11825   }
11826   int cached_size = ::_pbi::ToCachedSize(total_size);
11827   SetCachedSize(cached_size);
11828   return total_size;
11829 }
11830 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)11831 void MmPagePcpuDrainFtraceEvent::CheckTypeAndMergeFrom(
11832     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
11833   MergeFrom(*::_pbi::DownCast<const MmPagePcpuDrainFtraceEvent*>(
11834       &from));
11835 }
11836 
MergeFrom(const MmPagePcpuDrainFtraceEvent & from)11837 void MmPagePcpuDrainFtraceEvent::MergeFrom(const MmPagePcpuDrainFtraceEvent& from) {
11838   MmPagePcpuDrainFtraceEvent* const _this = this;
11839   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.MmPagePcpuDrainFtraceEvent)
11840   GOOGLE_DCHECK_NE(&from, _this);
11841   ::uint32_t cached_has_bits = 0;
11842   (void) cached_has_bits;
11843 
11844   cached_has_bits = from._impl_._has_bits_[0];
11845   if (cached_has_bits & 0x0000000fu) {
11846     if (cached_has_bits & 0x00000001u) {
11847       _this->_impl_.migratetype_ = from._impl_.migratetype_;
11848     }
11849     if (cached_has_bits & 0x00000002u) {
11850       _this->_impl_.order_ = from._impl_.order_;
11851     }
11852     if (cached_has_bits & 0x00000004u) {
11853       _this->_impl_.page_ = from._impl_.page_;
11854     }
11855     if (cached_has_bits & 0x00000008u) {
11856       _this->_impl_.pfn_ = from._impl_.pfn_;
11857     }
11858     _this->_impl_._has_bits_[0] |= cached_has_bits;
11859   }
11860   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
11861 }
11862 
CopyFrom(const MmPagePcpuDrainFtraceEvent & from)11863 void MmPagePcpuDrainFtraceEvent::CopyFrom(const MmPagePcpuDrainFtraceEvent& from) {
11864 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.MmPagePcpuDrainFtraceEvent)
11865   if (&from == this) return;
11866   Clear();
11867   MergeFrom(from);
11868 }
11869 
IsInitialized() const11870 bool MmPagePcpuDrainFtraceEvent::IsInitialized() const {
11871   return true;
11872 }
11873 
InternalSwap(MmPagePcpuDrainFtraceEvent * other)11874 void MmPagePcpuDrainFtraceEvent::InternalSwap(MmPagePcpuDrainFtraceEvent* other) {
11875   using std::swap;
11876   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
11877   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
11878   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
11879       PROTOBUF_FIELD_OFFSET(MmPagePcpuDrainFtraceEvent, _impl_.pfn_)
11880       + sizeof(MmPagePcpuDrainFtraceEvent::_impl_.pfn_)  // NOLINT
11881       - PROTOBUF_FIELD_OFFSET(MmPagePcpuDrainFtraceEvent, _impl_.migratetype_)>(
11882           reinterpret_cast<char*>(&_impl_.migratetype_),
11883           reinterpret_cast<char*>(&other->_impl_.migratetype_));
11884 }
11885 
GetTypeName() const11886 std::string MmPagePcpuDrainFtraceEvent::GetTypeName() const {
11887   return "perfetto.protos.MmPagePcpuDrainFtraceEvent";
11888 }
11889 
11890 
11891 // ===================================================================
11892 
11893 class RssStatFtraceEvent::_Internal {
11894  public:
11895   using HasBits = decltype(std::declval<RssStatFtraceEvent>()._impl_._has_bits_);
set_has_member(HasBits * has_bits)11896   static void set_has_member(HasBits* has_bits) {
11897     (*has_bits)[0] |= 2u;
11898   }
set_has_size(HasBits * has_bits)11899   static void set_has_size(HasBits* has_bits) {
11900     (*has_bits)[0] |= 1u;
11901   }
set_has_curr(HasBits * has_bits)11902   static void set_has_curr(HasBits* has_bits) {
11903     (*has_bits)[0] |= 4u;
11904   }
set_has_mm_id(HasBits * has_bits)11905   static void set_has_mm_id(HasBits* has_bits) {
11906     (*has_bits)[0] |= 8u;
11907   }
11908 };
11909 
RssStatFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)11910 RssStatFtraceEvent::RssStatFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
11911                          bool is_message_owned)
11912   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
11913   SharedCtor(arena, is_message_owned);
11914   // @@protoc_insertion_point(arena_constructor:perfetto.protos.RssStatFtraceEvent)
11915 }
RssStatFtraceEvent(const RssStatFtraceEvent & from)11916 RssStatFtraceEvent::RssStatFtraceEvent(const RssStatFtraceEvent& from)
11917   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
11918   RssStatFtraceEvent* const _this = this; (void)_this;
11919   new (&_impl_) Impl_{
11920       decltype(_impl_._has_bits_){from._impl_._has_bits_}
11921     , /*decltype(_impl_._cached_size_)*/{}
11922     , decltype(_impl_.size_){}
11923     , decltype(_impl_.member_){}
11924     , decltype(_impl_.curr_){}
11925     , decltype(_impl_.mm_id_){}};
11926 
11927   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
11928   ::memcpy(&_impl_.size_, &from._impl_.size_,
11929     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.mm_id_) -
11930     reinterpret_cast<char*>(&_impl_.size_)) + sizeof(_impl_.mm_id_));
11931   // @@protoc_insertion_point(copy_constructor:perfetto.protos.RssStatFtraceEvent)
11932 }
11933 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)11934 inline void RssStatFtraceEvent::SharedCtor(
11935     ::_pb::Arena* arena, bool is_message_owned) {
11936   (void)arena;
11937   (void)is_message_owned;
11938   new (&_impl_) Impl_{
11939       decltype(_impl_._has_bits_){}
11940     , /*decltype(_impl_._cached_size_)*/{}
11941     , decltype(_impl_.size_){::int64_t{0}}
11942     , decltype(_impl_.member_){0}
11943     , decltype(_impl_.curr_){0u}
11944     , decltype(_impl_.mm_id_){0u}
11945   };
11946 }
11947 
~RssStatFtraceEvent()11948 RssStatFtraceEvent::~RssStatFtraceEvent() {
11949   // @@protoc_insertion_point(destructor:perfetto.protos.RssStatFtraceEvent)
11950   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
11951   (void)arena;
11952     return;
11953   }
11954   SharedDtor();
11955 }
11956 
SharedDtor()11957 inline void RssStatFtraceEvent::SharedDtor() {
11958   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
11959 }
11960 
SetCachedSize(int size) const11961 void RssStatFtraceEvent::SetCachedSize(int size) const {
11962   _impl_._cached_size_.Set(size);
11963 }
11964 
Clear()11965 void RssStatFtraceEvent::Clear() {
11966 // @@protoc_insertion_point(message_clear_start:perfetto.protos.RssStatFtraceEvent)
11967   ::uint32_t cached_has_bits = 0;
11968   // Prevent compiler warnings about cached_has_bits being unused
11969   (void) cached_has_bits;
11970 
11971   cached_has_bits = _impl_._has_bits_[0];
11972   if (cached_has_bits & 0x0000000fu) {
11973     ::memset(&_impl_.size_, 0, static_cast<size_t>(
11974         reinterpret_cast<char*>(&_impl_.mm_id_) -
11975         reinterpret_cast<char*>(&_impl_.size_)) + sizeof(_impl_.mm_id_));
11976   }
11977   _impl_._has_bits_.Clear();
11978   _internal_metadata_.Clear<std::string>();
11979 }
11980 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)11981 const char* RssStatFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
11982 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
11983   _Internal::HasBits has_bits{};
11984   while (!ctx->Done(&ptr)) {
11985     ::uint32_t tag;
11986     ptr = ::_pbi::ReadTag(ptr, &tag);
11987     switch (tag >> 3) {
11988       // optional int32 member = 1;
11989       case 1:
11990         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
11991           _Internal::set_has_member(&has_bits);
11992           _impl_.member_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
11993           CHK_(ptr);
11994         } else {
11995           goto handle_unusual;
11996         }
11997         continue;
11998       // optional int64 size = 2;
11999       case 2:
12000         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
12001           _Internal::set_has_size(&has_bits);
12002           _impl_.size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
12003           CHK_(ptr);
12004         } else {
12005           goto handle_unusual;
12006         }
12007         continue;
12008       // optional uint32 curr = 3;
12009       case 3:
12010         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
12011           _Internal::set_has_curr(&has_bits);
12012           _impl_.curr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
12013           CHK_(ptr);
12014         } else {
12015           goto handle_unusual;
12016         }
12017         continue;
12018       // optional uint32 mm_id = 4;
12019       case 4:
12020         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
12021           _Internal::set_has_mm_id(&has_bits);
12022           _impl_.mm_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
12023           CHK_(ptr);
12024         } else {
12025           goto handle_unusual;
12026         }
12027         continue;
12028       default:
12029         goto handle_unusual;
12030     }  // switch
12031   handle_unusual:
12032     if ((tag == 0) || ((tag & 7) == 4)) {
12033       CHK_(ptr);
12034       ctx->SetLastTag(tag);
12035       goto message_done;
12036     }
12037     ptr = UnknownFieldParse(
12038         tag,
12039         _internal_metadata_.mutable_unknown_fields<std::string>(),
12040         ptr, ctx);
12041     CHK_(ptr != nullptr);
12042   }  // while
12043 message_done:
12044   _impl_._has_bits_.Or(has_bits);
12045   return ptr;
12046 failure:
12047   ptr = nullptr;
12048   goto message_done;
12049 #undef CHK_
12050 }
12051 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const12052 ::uint8_t* RssStatFtraceEvent::_InternalSerialize(
12053     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
12054   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.RssStatFtraceEvent)
12055   ::uint32_t cached_has_bits = 0;
12056   (void) cached_has_bits;
12057 
12058   cached_has_bits = _impl_._has_bits_[0];
12059   // optional int32 member = 1;
12060   if (cached_has_bits & 0x00000002u) {
12061     target = stream->EnsureSpace(target);
12062     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_member(), target);
12063   }
12064 
12065   // optional int64 size = 2;
12066   if (cached_has_bits & 0x00000001u) {
12067     target = stream->EnsureSpace(target);
12068     target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_size(), target);
12069   }
12070 
12071   // optional uint32 curr = 3;
12072   if (cached_has_bits & 0x00000004u) {
12073     target = stream->EnsureSpace(target);
12074     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_curr(), target);
12075   }
12076 
12077   // optional uint32 mm_id = 4;
12078   if (cached_has_bits & 0x00000008u) {
12079     target = stream->EnsureSpace(target);
12080     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_mm_id(), target);
12081   }
12082 
12083   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
12084     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
12085         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
12086   }
12087   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.RssStatFtraceEvent)
12088   return target;
12089 }
12090 
ByteSizeLong() const12091 size_t RssStatFtraceEvent::ByteSizeLong() const {
12092 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.RssStatFtraceEvent)
12093   size_t total_size = 0;
12094 
12095   ::uint32_t cached_has_bits = 0;
12096   // Prevent compiler warnings about cached_has_bits being unused
12097   (void) cached_has_bits;
12098 
12099   cached_has_bits = _impl_._has_bits_[0];
12100   if (cached_has_bits & 0x0000000fu) {
12101     // optional int64 size = 2;
12102     if (cached_has_bits & 0x00000001u) {
12103       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_size());
12104     }
12105 
12106     // optional int32 member = 1;
12107     if (cached_has_bits & 0x00000002u) {
12108       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_member());
12109     }
12110 
12111     // optional uint32 curr = 3;
12112     if (cached_has_bits & 0x00000004u) {
12113       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_curr());
12114     }
12115 
12116     // optional uint32 mm_id = 4;
12117     if (cached_has_bits & 0x00000008u) {
12118       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_mm_id());
12119     }
12120 
12121   }
12122   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
12123     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
12124   }
12125   int cached_size = ::_pbi::ToCachedSize(total_size);
12126   SetCachedSize(cached_size);
12127   return total_size;
12128 }
12129 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)12130 void RssStatFtraceEvent::CheckTypeAndMergeFrom(
12131     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
12132   MergeFrom(*::_pbi::DownCast<const RssStatFtraceEvent*>(
12133       &from));
12134 }
12135 
MergeFrom(const RssStatFtraceEvent & from)12136 void RssStatFtraceEvent::MergeFrom(const RssStatFtraceEvent& from) {
12137   RssStatFtraceEvent* const _this = this;
12138   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.RssStatFtraceEvent)
12139   GOOGLE_DCHECK_NE(&from, _this);
12140   ::uint32_t cached_has_bits = 0;
12141   (void) cached_has_bits;
12142 
12143   cached_has_bits = from._impl_._has_bits_[0];
12144   if (cached_has_bits & 0x0000000fu) {
12145     if (cached_has_bits & 0x00000001u) {
12146       _this->_impl_.size_ = from._impl_.size_;
12147     }
12148     if (cached_has_bits & 0x00000002u) {
12149       _this->_impl_.member_ = from._impl_.member_;
12150     }
12151     if (cached_has_bits & 0x00000004u) {
12152       _this->_impl_.curr_ = from._impl_.curr_;
12153     }
12154     if (cached_has_bits & 0x00000008u) {
12155       _this->_impl_.mm_id_ = from._impl_.mm_id_;
12156     }
12157     _this->_impl_._has_bits_[0] |= cached_has_bits;
12158   }
12159   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
12160 }
12161 
CopyFrom(const RssStatFtraceEvent & from)12162 void RssStatFtraceEvent::CopyFrom(const RssStatFtraceEvent& from) {
12163 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.RssStatFtraceEvent)
12164   if (&from == this) return;
12165   Clear();
12166   MergeFrom(from);
12167 }
12168 
IsInitialized() const12169 bool RssStatFtraceEvent::IsInitialized() const {
12170   return true;
12171 }
12172 
InternalSwap(RssStatFtraceEvent * other)12173 void RssStatFtraceEvent::InternalSwap(RssStatFtraceEvent* other) {
12174   using std::swap;
12175   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
12176   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
12177   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
12178       PROTOBUF_FIELD_OFFSET(RssStatFtraceEvent, _impl_.mm_id_)
12179       + sizeof(RssStatFtraceEvent::_impl_.mm_id_)  // NOLINT
12180       - PROTOBUF_FIELD_OFFSET(RssStatFtraceEvent, _impl_.size_)>(
12181           reinterpret_cast<char*>(&_impl_.size_),
12182           reinterpret_cast<char*>(&other->_impl_.size_));
12183 }
12184 
GetTypeName() const12185 std::string RssStatFtraceEvent::GetTypeName() const {
12186   return "perfetto.protos.RssStatFtraceEvent";
12187 }
12188 
12189 
12190 // ===================================================================
12191 
12192 class IonHeapShrinkFtraceEvent::_Internal {
12193  public:
12194   using HasBits = decltype(std::declval<IonHeapShrinkFtraceEvent>()._impl_._has_bits_);
set_has_heap_name(HasBits * has_bits)12195   static void set_has_heap_name(HasBits* has_bits) {
12196     (*has_bits)[0] |= 1u;
12197   }
set_has_len(HasBits * has_bits)12198   static void set_has_len(HasBits* has_bits) {
12199     (*has_bits)[0] |= 2u;
12200   }
set_has_total_allocated(HasBits * has_bits)12201   static void set_has_total_allocated(HasBits* has_bits) {
12202     (*has_bits)[0] |= 4u;
12203   }
12204 };
12205 
IonHeapShrinkFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)12206 IonHeapShrinkFtraceEvent::IonHeapShrinkFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
12207                          bool is_message_owned)
12208   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
12209   SharedCtor(arena, is_message_owned);
12210   // @@protoc_insertion_point(arena_constructor:perfetto.protos.IonHeapShrinkFtraceEvent)
12211 }
IonHeapShrinkFtraceEvent(const IonHeapShrinkFtraceEvent & from)12212 IonHeapShrinkFtraceEvent::IonHeapShrinkFtraceEvent(const IonHeapShrinkFtraceEvent& from)
12213   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
12214   IonHeapShrinkFtraceEvent* const _this = this; (void)_this;
12215   new (&_impl_) Impl_{
12216       decltype(_impl_._has_bits_){from._impl_._has_bits_}
12217     , /*decltype(_impl_._cached_size_)*/{}
12218     , decltype(_impl_.heap_name_){}
12219     , decltype(_impl_.len_){}
12220     , decltype(_impl_.total_allocated_){}};
12221 
12222   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
12223   _impl_.heap_name_.InitDefault();
12224   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12225     _impl_.heap_name_.Set("", GetArenaForAllocation());
12226   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12227   if (from._internal_has_heap_name()) {
12228     _this->_impl_.heap_name_.Set(from._internal_heap_name(),
12229       _this->GetArenaForAllocation());
12230   }
12231   ::memcpy(&_impl_.len_, &from._impl_.len_,
12232     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.total_allocated_) -
12233     reinterpret_cast<char*>(&_impl_.len_)) + sizeof(_impl_.total_allocated_));
12234   // @@protoc_insertion_point(copy_constructor:perfetto.protos.IonHeapShrinkFtraceEvent)
12235 }
12236 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)12237 inline void IonHeapShrinkFtraceEvent::SharedCtor(
12238     ::_pb::Arena* arena, bool is_message_owned) {
12239   (void)arena;
12240   (void)is_message_owned;
12241   new (&_impl_) Impl_{
12242       decltype(_impl_._has_bits_){}
12243     , /*decltype(_impl_._cached_size_)*/{}
12244     , decltype(_impl_.heap_name_){}
12245     , decltype(_impl_.len_){::uint64_t{0u}}
12246     , decltype(_impl_.total_allocated_){::int64_t{0}}
12247   };
12248   _impl_.heap_name_.InitDefault();
12249   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12250     _impl_.heap_name_.Set("", GetArenaForAllocation());
12251   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12252 }
12253 
~IonHeapShrinkFtraceEvent()12254 IonHeapShrinkFtraceEvent::~IonHeapShrinkFtraceEvent() {
12255   // @@protoc_insertion_point(destructor:perfetto.protos.IonHeapShrinkFtraceEvent)
12256   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
12257   (void)arena;
12258     return;
12259   }
12260   SharedDtor();
12261 }
12262 
SharedDtor()12263 inline void IonHeapShrinkFtraceEvent::SharedDtor() {
12264   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
12265   _impl_.heap_name_.Destroy();
12266 }
12267 
SetCachedSize(int size) const12268 void IonHeapShrinkFtraceEvent::SetCachedSize(int size) const {
12269   _impl_._cached_size_.Set(size);
12270 }
12271 
Clear()12272 void IonHeapShrinkFtraceEvent::Clear() {
12273 // @@protoc_insertion_point(message_clear_start:perfetto.protos.IonHeapShrinkFtraceEvent)
12274   ::uint32_t cached_has_bits = 0;
12275   // Prevent compiler warnings about cached_has_bits being unused
12276   (void) cached_has_bits;
12277 
12278   cached_has_bits = _impl_._has_bits_[0];
12279   if (cached_has_bits & 0x00000001u) {
12280     _impl_.heap_name_.ClearNonDefaultToEmpty();
12281   }
12282   if (cached_has_bits & 0x00000006u) {
12283     ::memset(&_impl_.len_, 0, static_cast<size_t>(
12284         reinterpret_cast<char*>(&_impl_.total_allocated_) -
12285         reinterpret_cast<char*>(&_impl_.len_)) + sizeof(_impl_.total_allocated_));
12286   }
12287   _impl_._has_bits_.Clear();
12288   _internal_metadata_.Clear<std::string>();
12289 }
12290 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)12291 const char* IonHeapShrinkFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
12292 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
12293   _Internal::HasBits has_bits{};
12294   while (!ctx->Done(&ptr)) {
12295     ::uint32_t tag;
12296     ptr = ::_pbi::ReadTag(ptr, &tag);
12297     switch (tag >> 3) {
12298       // optional string heap_name = 1;
12299       case 1:
12300         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
12301           auto str = _internal_mutable_heap_name();
12302           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
12303           CHK_(ptr);
12304         } else {
12305           goto handle_unusual;
12306         }
12307         continue;
12308       // optional uint64 len = 2;
12309       case 2:
12310         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
12311           _Internal::set_has_len(&has_bits);
12312           _impl_.len_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
12313           CHK_(ptr);
12314         } else {
12315           goto handle_unusual;
12316         }
12317         continue;
12318       // optional int64 total_allocated = 3;
12319       case 3:
12320         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
12321           _Internal::set_has_total_allocated(&has_bits);
12322           _impl_.total_allocated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
12323           CHK_(ptr);
12324         } else {
12325           goto handle_unusual;
12326         }
12327         continue;
12328       default:
12329         goto handle_unusual;
12330     }  // switch
12331   handle_unusual:
12332     if ((tag == 0) || ((tag & 7) == 4)) {
12333       CHK_(ptr);
12334       ctx->SetLastTag(tag);
12335       goto message_done;
12336     }
12337     ptr = UnknownFieldParse(
12338         tag,
12339         _internal_metadata_.mutable_unknown_fields<std::string>(),
12340         ptr, ctx);
12341     CHK_(ptr != nullptr);
12342   }  // while
12343 message_done:
12344   _impl_._has_bits_.Or(has_bits);
12345   return ptr;
12346 failure:
12347   ptr = nullptr;
12348   goto message_done;
12349 #undef CHK_
12350 }
12351 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const12352 ::uint8_t* IonHeapShrinkFtraceEvent::_InternalSerialize(
12353     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
12354   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.IonHeapShrinkFtraceEvent)
12355   ::uint32_t cached_has_bits = 0;
12356   (void) cached_has_bits;
12357 
12358   cached_has_bits = _impl_._has_bits_[0];
12359   // optional string heap_name = 1;
12360   if (cached_has_bits & 0x00000001u) {
12361     target = stream->WriteStringMaybeAliased(
12362         1, this->_internal_heap_name(), target);
12363   }
12364 
12365   // optional uint64 len = 2;
12366   if (cached_has_bits & 0x00000002u) {
12367     target = stream->EnsureSpace(target);
12368     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_len(), target);
12369   }
12370 
12371   // optional int64 total_allocated = 3;
12372   if (cached_has_bits & 0x00000004u) {
12373     target = stream->EnsureSpace(target);
12374     target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_total_allocated(), target);
12375   }
12376 
12377   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
12378     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
12379         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
12380   }
12381   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.IonHeapShrinkFtraceEvent)
12382   return target;
12383 }
12384 
ByteSizeLong() const12385 size_t IonHeapShrinkFtraceEvent::ByteSizeLong() const {
12386 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.IonHeapShrinkFtraceEvent)
12387   size_t total_size = 0;
12388 
12389   ::uint32_t cached_has_bits = 0;
12390   // Prevent compiler warnings about cached_has_bits being unused
12391   (void) cached_has_bits;
12392 
12393   cached_has_bits = _impl_._has_bits_[0];
12394   if (cached_has_bits & 0x00000007u) {
12395     // optional string heap_name = 1;
12396     if (cached_has_bits & 0x00000001u) {
12397       total_size += 1 +
12398         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
12399           this->_internal_heap_name());
12400     }
12401 
12402     // optional uint64 len = 2;
12403     if (cached_has_bits & 0x00000002u) {
12404       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_len());
12405     }
12406 
12407     // optional int64 total_allocated = 3;
12408     if (cached_has_bits & 0x00000004u) {
12409       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_total_allocated());
12410     }
12411 
12412   }
12413   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
12414     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
12415   }
12416   int cached_size = ::_pbi::ToCachedSize(total_size);
12417   SetCachedSize(cached_size);
12418   return total_size;
12419 }
12420 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)12421 void IonHeapShrinkFtraceEvent::CheckTypeAndMergeFrom(
12422     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
12423   MergeFrom(*::_pbi::DownCast<const IonHeapShrinkFtraceEvent*>(
12424       &from));
12425 }
12426 
MergeFrom(const IonHeapShrinkFtraceEvent & from)12427 void IonHeapShrinkFtraceEvent::MergeFrom(const IonHeapShrinkFtraceEvent& from) {
12428   IonHeapShrinkFtraceEvent* const _this = this;
12429   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.IonHeapShrinkFtraceEvent)
12430   GOOGLE_DCHECK_NE(&from, _this);
12431   ::uint32_t cached_has_bits = 0;
12432   (void) cached_has_bits;
12433 
12434   cached_has_bits = from._impl_._has_bits_[0];
12435   if (cached_has_bits & 0x00000007u) {
12436     if (cached_has_bits & 0x00000001u) {
12437       _this->_internal_set_heap_name(from._internal_heap_name());
12438     }
12439     if (cached_has_bits & 0x00000002u) {
12440       _this->_impl_.len_ = from._impl_.len_;
12441     }
12442     if (cached_has_bits & 0x00000004u) {
12443       _this->_impl_.total_allocated_ = from._impl_.total_allocated_;
12444     }
12445     _this->_impl_._has_bits_[0] |= cached_has_bits;
12446   }
12447   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
12448 }
12449 
CopyFrom(const IonHeapShrinkFtraceEvent & from)12450 void IonHeapShrinkFtraceEvent::CopyFrom(const IonHeapShrinkFtraceEvent& from) {
12451 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.IonHeapShrinkFtraceEvent)
12452   if (&from == this) return;
12453   Clear();
12454   MergeFrom(from);
12455 }
12456 
IsInitialized() const12457 bool IonHeapShrinkFtraceEvent::IsInitialized() const {
12458   return true;
12459 }
12460 
InternalSwap(IonHeapShrinkFtraceEvent * other)12461 void IonHeapShrinkFtraceEvent::InternalSwap(IonHeapShrinkFtraceEvent* other) {
12462   using std::swap;
12463   auto* lhs_arena = GetArenaForAllocation();
12464   auto* rhs_arena = other->GetArenaForAllocation();
12465   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
12466   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
12467   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
12468       &_impl_.heap_name_, lhs_arena,
12469       &other->_impl_.heap_name_, rhs_arena
12470   );
12471   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
12472       PROTOBUF_FIELD_OFFSET(IonHeapShrinkFtraceEvent, _impl_.total_allocated_)
12473       + sizeof(IonHeapShrinkFtraceEvent::_impl_.total_allocated_)  // NOLINT
12474       - PROTOBUF_FIELD_OFFSET(IonHeapShrinkFtraceEvent, _impl_.len_)>(
12475           reinterpret_cast<char*>(&_impl_.len_),
12476           reinterpret_cast<char*>(&other->_impl_.len_));
12477 }
12478 
GetTypeName() const12479 std::string IonHeapShrinkFtraceEvent::GetTypeName() const {
12480   return "perfetto.protos.IonHeapShrinkFtraceEvent";
12481 }
12482 
12483 
12484 // ===================================================================
12485 
12486 class IonHeapGrowFtraceEvent::_Internal {
12487  public:
12488   using HasBits = decltype(std::declval<IonHeapGrowFtraceEvent>()._impl_._has_bits_);
set_has_heap_name(HasBits * has_bits)12489   static void set_has_heap_name(HasBits* has_bits) {
12490     (*has_bits)[0] |= 1u;
12491   }
set_has_len(HasBits * has_bits)12492   static void set_has_len(HasBits* has_bits) {
12493     (*has_bits)[0] |= 2u;
12494   }
set_has_total_allocated(HasBits * has_bits)12495   static void set_has_total_allocated(HasBits* has_bits) {
12496     (*has_bits)[0] |= 4u;
12497   }
12498 };
12499 
IonHeapGrowFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)12500 IonHeapGrowFtraceEvent::IonHeapGrowFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
12501                          bool is_message_owned)
12502   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
12503   SharedCtor(arena, is_message_owned);
12504   // @@protoc_insertion_point(arena_constructor:perfetto.protos.IonHeapGrowFtraceEvent)
12505 }
IonHeapGrowFtraceEvent(const IonHeapGrowFtraceEvent & from)12506 IonHeapGrowFtraceEvent::IonHeapGrowFtraceEvent(const IonHeapGrowFtraceEvent& from)
12507   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
12508   IonHeapGrowFtraceEvent* const _this = this; (void)_this;
12509   new (&_impl_) Impl_{
12510       decltype(_impl_._has_bits_){from._impl_._has_bits_}
12511     , /*decltype(_impl_._cached_size_)*/{}
12512     , decltype(_impl_.heap_name_){}
12513     , decltype(_impl_.len_){}
12514     , decltype(_impl_.total_allocated_){}};
12515 
12516   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
12517   _impl_.heap_name_.InitDefault();
12518   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12519     _impl_.heap_name_.Set("", GetArenaForAllocation());
12520   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12521   if (from._internal_has_heap_name()) {
12522     _this->_impl_.heap_name_.Set(from._internal_heap_name(),
12523       _this->GetArenaForAllocation());
12524   }
12525   ::memcpy(&_impl_.len_, &from._impl_.len_,
12526     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.total_allocated_) -
12527     reinterpret_cast<char*>(&_impl_.len_)) + sizeof(_impl_.total_allocated_));
12528   // @@protoc_insertion_point(copy_constructor:perfetto.protos.IonHeapGrowFtraceEvent)
12529 }
12530 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)12531 inline void IonHeapGrowFtraceEvent::SharedCtor(
12532     ::_pb::Arena* arena, bool is_message_owned) {
12533   (void)arena;
12534   (void)is_message_owned;
12535   new (&_impl_) Impl_{
12536       decltype(_impl_._has_bits_){}
12537     , /*decltype(_impl_._cached_size_)*/{}
12538     , decltype(_impl_.heap_name_){}
12539     , decltype(_impl_.len_){::uint64_t{0u}}
12540     , decltype(_impl_.total_allocated_){::int64_t{0}}
12541   };
12542   _impl_.heap_name_.InitDefault();
12543   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12544     _impl_.heap_name_.Set("", GetArenaForAllocation());
12545   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12546 }
12547 
~IonHeapGrowFtraceEvent()12548 IonHeapGrowFtraceEvent::~IonHeapGrowFtraceEvent() {
12549   // @@protoc_insertion_point(destructor:perfetto.protos.IonHeapGrowFtraceEvent)
12550   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
12551   (void)arena;
12552     return;
12553   }
12554   SharedDtor();
12555 }
12556 
SharedDtor()12557 inline void IonHeapGrowFtraceEvent::SharedDtor() {
12558   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
12559   _impl_.heap_name_.Destroy();
12560 }
12561 
SetCachedSize(int size) const12562 void IonHeapGrowFtraceEvent::SetCachedSize(int size) const {
12563   _impl_._cached_size_.Set(size);
12564 }
12565 
Clear()12566 void IonHeapGrowFtraceEvent::Clear() {
12567 // @@protoc_insertion_point(message_clear_start:perfetto.protos.IonHeapGrowFtraceEvent)
12568   ::uint32_t cached_has_bits = 0;
12569   // Prevent compiler warnings about cached_has_bits being unused
12570   (void) cached_has_bits;
12571 
12572   cached_has_bits = _impl_._has_bits_[0];
12573   if (cached_has_bits & 0x00000001u) {
12574     _impl_.heap_name_.ClearNonDefaultToEmpty();
12575   }
12576   if (cached_has_bits & 0x00000006u) {
12577     ::memset(&_impl_.len_, 0, static_cast<size_t>(
12578         reinterpret_cast<char*>(&_impl_.total_allocated_) -
12579         reinterpret_cast<char*>(&_impl_.len_)) + sizeof(_impl_.total_allocated_));
12580   }
12581   _impl_._has_bits_.Clear();
12582   _internal_metadata_.Clear<std::string>();
12583 }
12584 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)12585 const char* IonHeapGrowFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
12586 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
12587   _Internal::HasBits has_bits{};
12588   while (!ctx->Done(&ptr)) {
12589     ::uint32_t tag;
12590     ptr = ::_pbi::ReadTag(ptr, &tag);
12591     switch (tag >> 3) {
12592       // optional string heap_name = 1;
12593       case 1:
12594         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
12595           auto str = _internal_mutable_heap_name();
12596           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
12597           CHK_(ptr);
12598         } else {
12599           goto handle_unusual;
12600         }
12601         continue;
12602       // optional uint64 len = 2;
12603       case 2:
12604         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
12605           _Internal::set_has_len(&has_bits);
12606           _impl_.len_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
12607           CHK_(ptr);
12608         } else {
12609           goto handle_unusual;
12610         }
12611         continue;
12612       // optional int64 total_allocated = 3;
12613       case 3:
12614         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
12615           _Internal::set_has_total_allocated(&has_bits);
12616           _impl_.total_allocated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
12617           CHK_(ptr);
12618         } else {
12619           goto handle_unusual;
12620         }
12621         continue;
12622       default:
12623         goto handle_unusual;
12624     }  // switch
12625   handle_unusual:
12626     if ((tag == 0) || ((tag & 7) == 4)) {
12627       CHK_(ptr);
12628       ctx->SetLastTag(tag);
12629       goto message_done;
12630     }
12631     ptr = UnknownFieldParse(
12632         tag,
12633         _internal_metadata_.mutable_unknown_fields<std::string>(),
12634         ptr, ctx);
12635     CHK_(ptr != nullptr);
12636   }  // while
12637 message_done:
12638   _impl_._has_bits_.Or(has_bits);
12639   return ptr;
12640 failure:
12641   ptr = nullptr;
12642   goto message_done;
12643 #undef CHK_
12644 }
12645 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const12646 ::uint8_t* IonHeapGrowFtraceEvent::_InternalSerialize(
12647     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
12648   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.IonHeapGrowFtraceEvent)
12649   ::uint32_t cached_has_bits = 0;
12650   (void) cached_has_bits;
12651 
12652   cached_has_bits = _impl_._has_bits_[0];
12653   // optional string heap_name = 1;
12654   if (cached_has_bits & 0x00000001u) {
12655     target = stream->WriteStringMaybeAliased(
12656         1, this->_internal_heap_name(), target);
12657   }
12658 
12659   // optional uint64 len = 2;
12660   if (cached_has_bits & 0x00000002u) {
12661     target = stream->EnsureSpace(target);
12662     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_len(), target);
12663   }
12664 
12665   // optional int64 total_allocated = 3;
12666   if (cached_has_bits & 0x00000004u) {
12667     target = stream->EnsureSpace(target);
12668     target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_total_allocated(), target);
12669   }
12670 
12671   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
12672     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
12673         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
12674   }
12675   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.IonHeapGrowFtraceEvent)
12676   return target;
12677 }
12678 
ByteSizeLong() const12679 size_t IonHeapGrowFtraceEvent::ByteSizeLong() const {
12680 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.IonHeapGrowFtraceEvent)
12681   size_t total_size = 0;
12682 
12683   ::uint32_t cached_has_bits = 0;
12684   // Prevent compiler warnings about cached_has_bits being unused
12685   (void) cached_has_bits;
12686 
12687   cached_has_bits = _impl_._has_bits_[0];
12688   if (cached_has_bits & 0x00000007u) {
12689     // optional string heap_name = 1;
12690     if (cached_has_bits & 0x00000001u) {
12691       total_size += 1 +
12692         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
12693           this->_internal_heap_name());
12694     }
12695 
12696     // optional uint64 len = 2;
12697     if (cached_has_bits & 0x00000002u) {
12698       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_len());
12699     }
12700 
12701     // optional int64 total_allocated = 3;
12702     if (cached_has_bits & 0x00000004u) {
12703       total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_total_allocated());
12704     }
12705 
12706   }
12707   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
12708     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
12709   }
12710   int cached_size = ::_pbi::ToCachedSize(total_size);
12711   SetCachedSize(cached_size);
12712   return total_size;
12713 }
12714 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)12715 void IonHeapGrowFtraceEvent::CheckTypeAndMergeFrom(
12716     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
12717   MergeFrom(*::_pbi::DownCast<const IonHeapGrowFtraceEvent*>(
12718       &from));
12719 }
12720 
MergeFrom(const IonHeapGrowFtraceEvent & from)12721 void IonHeapGrowFtraceEvent::MergeFrom(const IonHeapGrowFtraceEvent& from) {
12722   IonHeapGrowFtraceEvent* const _this = this;
12723   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.IonHeapGrowFtraceEvent)
12724   GOOGLE_DCHECK_NE(&from, _this);
12725   ::uint32_t cached_has_bits = 0;
12726   (void) cached_has_bits;
12727 
12728   cached_has_bits = from._impl_._has_bits_[0];
12729   if (cached_has_bits & 0x00000007u) {
12730     if (cached_has_bits & 0x00000001u) {
12731       _this->_internal_set_heap_name(from._internal_heap_name());
12732     }
12733     if (cached_has_bits & 0x00000002u) {
12734       _this->_impl_.len_ = from._impl_.len_;
12735     }
12736     if (cached_has_bits & 0x00000004u) {
12737       _this->_impl_.total_allocated_ = from._impl_.total_allocated_;
12738     }
12739     _this->_impl_._has_bits_[0] |= cached_has_bits;
12740   }
12741   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
12742 }
12743 
CopyFrom(const IonHeapGrowFtraceEvent & from)12744 void IonHeapGrowFtraceEvent::CopyFrom(const IonHeapGrowFtraceEvent& from) {
12745 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.IonHeapGrowFtraceEvent)
12746   if (&from == this) return;
12747   Clear();
12748   MergeFrom(from);
12749 }
12750 
IsInitialized() const12751 bool IonHeapGrowFtraceEvent::IsInitialized() const {
12752   return true;
12753 }
12754 
InternalSwap(IonHeapGrowFtraceEvent * other)12755 void IonHeapGrowFtraceEvent::InternalSwap(IonHeapGrowFtraceEvent* other) {
12756   using std::swap;
12757   auto* lhs_arena = GetArenaForAllocation();
12758   auto* rhs_arena = other->GetArenaForAllocation();
12759   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
12760   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
12761   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
12762       &_impl_.heap_name_, lhs_arena,
12763       &other->_impl_.heap_name_, rhs_arena
12764   );
12765   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
12766       PROTOBUF_FIELD_OFFSET(IonHeapGrowFtraceEvent, _impl_.total_allocated_)
12767       + sizeof(IonHeapGrowFtraceEvent::_impl_.total_allocated_)  // NOLINT
12768       - PROTOBUF_FIELD_OFFSET(IonHeapGrowFtraceEvent, _impl_.len_)>(
12769           reinterpret_cast<char*>(&_impl_.len_),
12770           reinterpret_cast<char*>(&other->_impl_.len_));
12771 }
12772 
GetTypeName() const12773 std::string IonHeapGrowFtraceEvent::GetTypeName() const {
12774   return "perfetto.protos.IonHeapGrowFtraceEvent";
12775 }
12776 
12777 
12778 // ===================================================================
12779 
12780 class IonBufferCreateFtraceEvent::_Internal {
12781  public:
12782   using HasBits = decltype(std::declval<IonBufferCreateFtraceEvent>()._impl_._has_bits_);
set_has_addr(HasBits * has_bits)12783   static void set_has_addr(HasBits* has_bits) {
12784     (*has_bits)[0] |= 1u;
12785   }
set_has_len(HasBits * has_bits)12786   static void set_has_len(HasBits* has_bits) {
12787     (*has_bits)[0] |= 2u;
12788   }
12789 };
12790 
IonBufferCreateFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)12791 IonBufferCreateFtraceEvent::IonBufferCreateFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
12792                          bool is_message_owned)
12793   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
12794   SharedCtor(arena, is_message_owned);
12795   // @@protoc_insertion_point(arena_constructor:perfetto.protos.IonBufferCreateFtraceEvent)
12796 }
IonBufferCreateFtraceEvent(const IonBufferCreateFtraceEvent & from)12797 IonBufferCreateFtraceEvent::IonBufferCreateFtraceEvent(const IonBufferCreateFtraceEvent& from)
12798   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
12799   IonBufferCreateFtraceEvent* const _this = this; (void)_this;
12800   new (&_impl_) Impl_{
12801       decltype(_impl_._has_bits_){from._impl_._has_bits_}
12802     , /*decltype(_impl_._cached_size_)*/{}
12803     , decltype(_impl_.addr_){}
12804     , decltype(_impl_.len_){}};
12805 
12806   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
12807   ::memcpy(&_impl_.addr_, &from._impl_.addr_,
12808     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.len_) -
12809     reinterpret_cast<char*>(&_impl_.addr_)) + sizeof(_impl_.len_));
12810   // @@protoc_insertion_point(copy_constructor:perfetto.protos.IonBufferCreateFtraceEvent)
12811 }
12812 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)12813 inline void IonBufferCreateFtraceEvent::SharedCtor(
12814     ::_pb::Arena* arena, bool is_message_owned) {
12815   (void)arena;
12816   (void)is_message_owned;
12817   new (&_impl_) Impl_{
12818       decltype(_impl_._has_bits_){}
12819     , /*decltype(_impl_._cached_size_)*/{}
12820     , decltype(_impl_.addr_){::uint64_t{0u}}
12821     , decltype(_impl_.len_){::uint64_t{0u}}
12822   };
12823 }
12824 
~IonBufferCreateFtraceEvent()12825 IonBufferCreateFtraceEvent::~IonBufferCreateFtraceEvent() {
12826   // @@protoc_insertion_point(destructor:perfetto.protos.IonBufferCreateFtraceEvent)
12827   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
12828   (void)arena;
12829     return;
12830   }
12831   SharedDtor();
12832 }
12833 
SharedDtor()12834 inline void IonBufferCreateFtraceEvent::SharedDtor() {
12835   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
12836 }
12837 
SetCachedSize(int size) const12838 void IonBufferCreateFtraceEvent::SetCachedSize(int size) const {
12839   _impl_._cached_size_.Set(size);
12840 }
12841 
Clear()12842 void IonBufferCreateFtraceEvent::Clear() {
12843 // @@protoc_insertion_point(message_clear_start:perfetto.protos.IonBufferCreateFtraceEvent)
12844   ::uint32_t cached_has_bits = 0;
12845   // Prevent compiler warnings about cached_has_bits being unused
12846   (void) cached_has_bits;
12847 
12848   cached_has_bits = _impl_._has_bits_[0];
12849   if (cached_has_bits & 0x00000003u) {
12850     ::memset(&_impl_.addr_, 0, static_cast<size_t>(
12851         reinterpret_cast<char*>(&_impl_.len_) -
12852         reinterpret_cast<char*>(&_impl_.addr_)) + sizeof(_impl_.len_));
12853   }
12854   _impl_._has_bits_.Clear();
12855   _internal_metadata_.Clear<std::string>();
12856 }
12857 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)12858 const char* IonBufferCreateFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
12859 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
12860   _Internal::HasBits has_bits{};
12861   while (!ctx->Done(&ptr)) {
12862     ::uint32_t tag;
12863     ptr = ::_pbi::ReadTag(ptr, &tag);
12864     switch (tag >> 3) {
12865       // optional uint64 addr = 1;
12866       case 1:
12867         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
12868           _Internal::set_has_addr(&has_bits);
12869           _impl_.addr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
12870           CHK_(ptr);
12871         } else {
12872           goto handle_unusual;
12873         }
12874         continue;
12875       // optional uint64 len = 2;
12876       case 2:
12877         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
12878           _Internal::set_has_len(&has_bits);
12879           _impl_.len_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
12880           CHK_(ptr);
12881         } else {
12882           goto handle_unusual;
12883         }
12884         continue;
12885       default:
12886         goto handle_unusual;
12887     }  // switch
12888   handle_unusual:
12889     if ((tag == 0) || ((tag & 7) == 4)) {
12890       CHK_(ptr);
12891       ctx->SetLastTag(tag);
12892       goto message_done;
12893     }
12894     ptr = UnknownFieldParse(
12895         tag,
12896         _internal_metadata_.mutable_unknown_fields<std::string>(),
12897         ptr, ctx);
12898     CHK_(ptr != nullptr);
12899   }  // while
12900 message_done:
12901   _impl_._has_bits_.Or(has_bits);
12902   return ptr;
12903 failure:
12904   ptr = nullptr;
12905   goto message_done;
12906 #undef CHK_
12907 }
12908 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const12909 ::uint8_t* IonBufferCreateFtraceEvent::_InternalSerialize(
12910     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
12911   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.IonBufferCreateFtraceEvent)
12912   ::uint32_t cached_has_bits = 0;
12913   (void) cached_has_bits;
12914 
12915   cached_has_bits = _impl_._has_bits_[0];
12916   // optional uint64 addr = 1;
12917   if (cached_has_bits & 0x00000001u) {
12918     target = stream->EnsureSpace(target);
12919     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_addr(), target);
12920   }
12921 
12922   // optional uint64 len = 2;
12923   if (cached_has_bits & 0x00000002u) {
12924     target = stream->EnsureSpace(target);
12925     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_len(), target);
12926   }
12927 
12928   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
12929     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
12930         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
12931   }
12932   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.IonBufferCreateFtraceEvent)
12933   return target;
12934 }
12935 
ByteSizeLong() const12936 size_t IonBufferCreateFtraceEvent::ByteSizeLong() const {
12937 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.IonBufferCreateFtraceEvent)
12938   size_t total_size = 0;
12939 
12940   ::uint32_t cached_has_bits = 0;
12941   // Prevent compiler warnings about cached_has_bits being unused
12942   (void) cached_has_bits;
12943 
12944   cached_has_bits = _impl_._has_bits_[0];
12945   if (cached_has_bits & 0x00000003u) {
12946     // optional uint64 addr = 1;
12947     if (cached_has_bits & 0x00000001u) {
12948       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_addr());
12949     }
12950 
12951     // optional uint64 len = 2;
12952     if (cached_has_bits & 0x00000002u) {
12953       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_len());
12954     }
12955 
12956   }
12957   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
12958     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
12959   }
12960   int cached_size = ::_pbi::ToCachedSize(total_size);
12961   SetCachedSize(cached_size);
12962   return total_size;
12963 }
12964 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)12965 void IonBufferCreateFtraceEvent::CheckTypeAndMergeFrom(
12966     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
12967   MergeFrom(*::_pbi::DownCast<const IonBufferCreateFtraceEvent*>(
12968       &from));
12969 }
12970 
MergeFrom(const IonBufferCreateFtraceEvent & from)12971 void IonBufferCreateFtraceEvent::MergeFrom(const IonBufferCreateFtraceEvent& from) {
12972   IonBufferCreateFtraceEvent* const _this = this;
12973   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.IonBufferCreateFtraceEvent)
12974   GOOGLE_DCHECK_NE(&from, _this);
12975   ::uint32_t cached_has_bits = 0;
12976   (void) cached_has_bits;
12977 
12978   cached_has_bits = from._impl_._has_bits_[0];
12979   if (cached_has_bits & 0x00000003u) {
12980     if (cached_has_bits & 0x00000001u) {
12981       _this->_impl_.addr_ = from._impl_.addr_;
12982     }
12983     if (cached_has_bits & 0x00000002u) {
12984       _this->_impl_.len_ = from._impl_.len_;
12985     }
12986     _this->_impl_._has_bits_[0] |= cached_has_bits;
12987   }
12988   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
12989 }
12990 
CopyFrom(const IonBufferCreateFtraceEvent & from)12991 void IonBufferCreateFtraceEvent::CopyFrom(const IonBufferCreateFtraceEvent& from) {
12992 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.IonBufferCreateFtraceEvent)
12993   if (&from == this) return;
12994   Clear();
12995   MergeFrom(from);
12996 }
12997 
IsInitialized() const12998 bool IonBufferCreateFtraceEvent::IsInitialized() const {
12999   return true;
13000 }
13001 
InternalSwap(IonBufferCreateFtraceEvent * other)13002 void IonBufferCreateFtraceEvent::InternalSwap(IonBufferCreateFtraceEvent* other) {
13003   using std::swap;
13004   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
13005   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
13006   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
13007       PROTOBUF_FIELD_OFFSET(IonBufferCreateFtraceEvent, _impl_.len_)
13008       + sizeof(IonBufferCreateFtraceEvent::_impl_.len_)  // NOLINT
13009       - PROTOBUF_FIELD_OFFSET(IonBufferCreateFtraceEvent, _impl_.addr_)>(
13010           reinterpret_cast<char*>(&_impl_.addr_),
13011           reinterpret_cast<char*>(&other->_impl_.addr_));
13012 }
13013 
GetTypeName() const13014 std::string IonBufferCreateFtraceEvent::GetTypeName() const {
13015   return "perfetto.protos.IonBufferCreateFtraceEvent";
13016 }
13017 
13018 
13019 // ===================================================================
13020 
13021 class IonBufferDestroyFtraceEvent::_Internal {
13022  public:
13023   using HasBits = decltype(std::declval<IonBufferDestroyFtraceEvent>()._impl_._has_bits_);
set_has_addr(HasBits * has_bits)13024   static void set_has_addr(HasBits* has_bits) {
13025     (*has_bits)[0] |= 1u;
13026   }
set_has_len(HasBits * has_bits)13027   static void set_has_len(HasBits* has_bits) {
13028     (*has_bits)[0] |= 2u;
13029   }
13030 };
13031 
IonBufferDestroyFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)13032 IonBufferDestroyFtraceEvent::IonBufferDestroyFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
13033                          bool is_message_owned)
13034   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
13035   SharedCtor(arena, is_message_owned);
13036   // @@protoc_insertion_point(arena_constructor:perfetto.protos.IonBufferDestroyFtraceEvent)
13037 }
IonBufferDestroyFtraceEvent(const IonBufferDestroyFtraceEvent & from)13038 IonBufferDestroyFtraceEvent::IonBufferDestroyFtraceEvent(const IonBufferDestroyFtraceEvent& from)
13039   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
13040   IonBufferDestroyFtraceEvent* const _this = this; (void)_this;
13041   new (&_impl_) Impl_{
13042       decltype(_impl_._has_bits_){from._impl_._has_bits_}
13043     , /*decltype(_impl_._cached_size_)*/{}
13044     , decltype(_impl_.addr_){}
13045     , decltype(_impl_.len_){}};
13046 
13047   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
13048   ::memcpy(&_impl_.addr_, &from._impl_.addr_,
13049     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.len_) -
13050     reinterpret_cast<char*>(&_impl_.addr_)) + sizeof(_impl_.len_));
13051   // @@protoc_insertion_point(copy_constructor:perfetto.protos.IonBufferDestroyFtraceEvent)
13052 }
13053 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)13054 inline void IonBufferDestroyFtraceEvent::SharedCtor(
13055     ::_pb::Arena* arena, bool is_message_owned) {
13056   (void)arena;
13057   (void)is_message_owned;
13058   new (&_impl_) Impl_{
13059       decltype(_impl_._has_bits_){}
13060     , /*decltype(_impl_._cached_size_)*/{}
13061     , decltype(_impl_.addr_){::uint64_t{0u}}
13062     , decltype(_impl_.len_){::uint64_t{0u}}
13063   };
13064 }
13065 
~IonBufferDestroyFtraceEvent()13066 IonBufferDestroyFtraceEvent::~IonBufferDestroyFtraceEvent() {
13067   // @@protoc_insertion_point(destructor:perfetto.protos.IonBufferDestroyFtraceEvent)
13068   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
13069   (void)arena;
13070     return;
13071   }
13072   SharedDtor();
13073 }
13074 
SharedDtor()13075 inline void IonBufferDestroyFtraceEvent::SharedDtor() {
13076   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
13077 }
13078 
SetCachedSize(int size) const13079 void IonBufferDestroyFtraceEvent::SetCachedSize(int size) const {
13080   _impl_._cached_size_.Set(size);
13081 }
13082 
Clear()13083 void IonBufferDestroyFtraceEvent::Clear() {
13084 // @@protoc_insertion_point(message_clear_start:perfetto.protos.IonBufferDestroyFtraceEvent)
13085   ::uint32_t cached_has_bits = 0;
13086   // Prevent compiler warnings about cached_has_bits being unused
13087   (void) cached_has_bits;
13088 
13089   cached_has_bits = _impl_._has_bits_[0];
13090   if (cached_has_bits & 0x00000003u) {
13091     ::memset(&_impl_.addr_, 0, static_cast<size_t>(
13092         reinterpret_cast<char*>(&_impl_.len_) -
13093         reinterpret_cast<char*>(&_impl_.addr_)) + sizeof(_impl_.len_));
13094   }
13095   _impl_._has_bits_.Clear();
13096   _internal_metadata_.Clear<std::string>();
13097 }
13098 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)13099 const char* IonBufferDestroyFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
13100 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
13101   _Internal::HasBits has_bits{};
13102   while (!ctx->Done(&ptr)) {
13103     ::uint32_t tag;
13104     ptr = ::_pbi::ReadTag(ptr, &tag);
13105     switch (tag >> 3) {
13106       // optional uint64 addr = 1;
13107       case 1:
13108         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
13109           _Internal::set_has_addr(&has_bits);
13110           _impl_.addr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
13111           CHK_(ptr);
13112         } else {
13113           goto handle_unusual;
13114         }
13115         continue;
13116       // optional uint64 len = 2;
13117       case 2:
13118         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
13119           _Internal::set_has_len(&has_bits);
13120           _impl_.len_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
13121           CHK_(ptr);
13122         } else {
13123           goto handle_unusual;
13124         }
13125         continue;
13126       default:
13127         goto handle_unusual;
13128     }  // switch
13129   handle_unusual:
13130     if ((tag == 0) || ((tag & 7) == 4)) {
13131       CHK_(ptr);
13132       ctx->SetLastTag(tag);
13133       goto message_done;
13134     }
13135     ptr = UnknownFieldParse(
13136         tag,
13137         _internal_metadata_.mutable_unknown_fields<std::string>(),
13138         ptr, ctx);
13139     CHK_(ptr != nullptr);
13140   }  // while
13141 message_done:
13142   _impl_._has_bits_.Or(has_bits);
13143   return ptr;
13144 failure:
13145   ptr = nullptr;
13146   goto message_done;
13147 #undef CHK_
13148 }
13149 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const13150 ::uint8_t* IonBufferDestroyFtraceEvent::_InternalSerialize(
13151     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
13152   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.IonBufferDestroyFtraceEvent)
13153   ::uint32_t cached_has_bits = 0;
13154   (void) cached_has_bits;
13155 
13156   cached_has_bits = _impl_._has_bits_[0];
13157   // optional uint64 addr = 1;
13158   if (cached_has_bits & 0x00000001u) {
13159     target = stream->EnsureSpace(target);
13160     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_addr(), target);
13161   }
13162 
13163   // optional uint64 len = 2;
13164   if (cached_has_bits & 0x00000002u) {
13165     target = stream->EnsureSpace(target);
13166     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_len(), target);
13167   }
13168 
13169   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
13170     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
13171         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
13172   }
13173   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.IonBufferDestroyFtraceEvent)
13174   return target;
13175 }
13176 
ByteSizeLong() const13177 size_t IonBufferDestroyFtraceEvent::ByteSizeLong() const {
13178 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.IonBufferDestroyFtraceEvent)
13179   size_t total_size = 0;
13180 
13181   ::uint32_t cached_has_bits = 0;
13182   // Prevent compiler warnings about cached_has_bits being unused
13183   (void) cached_has_bits;
13184 
13185   cached_has_bits = _impl_._has_bits_[0];
13186   if (cached_has_bits & 0x00000003u) {
13187     // optional uint64 addr = 1;
13188     if (cached_has_bits & 0x00000001u) {
13189       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_addr());
13190     }
13191 
13192     // optional uint64 len = 2;
13193     if (cached_has_bits & 0x00000002u) {
13194       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_len());
13195     }
13196 
13197   }
13198   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
13199     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
13200   }
13201   int cached_size = ::_pbi::ToCachedSize(total_size);
13202   SetCachedSize(cached_size);
13203   return total_size;
13204 }
13205 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)13206 void IonBufferDestroyFtraceEvent::CheckTypeAndMergeFrom(
13207     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
13208   MergeFrom(*::_pbi::DownCast<const IonBufferDestroyFtraceEvent*>(
13209       &from));
13210 }
13211 
MergeFrom(const IonBufferDestroyFtraceEvent & from)13212 void IonBufferDestroyFtraceEvent::MergeFrom(const IonBufferDestroyFtraceEvent& from) {
13213   IonBufferDestroyFtraceEvent* const _this = this;
13214   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.IonBufferDestroyFtraceEvent)
13215   GOOGLE_DCHECK_NE(&from, _this);
13216   ::uint32_t cached_has_bits = 0;
13217   (void) cached_has_bits;
13218 
13219   cached_has_bits = from._impl_._has_bits_[0];
13220   if (cached_has_bits & 0x00000003u) {
13221     if (cached_has_bits & 0x00000001u) {
13222       _this->_impl_.addr_ = from._impl_.addr_;
13223     }
13224     if (cached_has_bits & 0x00000002u) {
13225       _this->_impl_.len_ = from._impl_.len_;
13226     }
13227     _this->_impl_._has_bits_[0] |= cached_has_bits;
13228   }
13229   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
13230 }
13231 
CopyFrom(const IonBufferDestroyFtraceEvent & from)13232 void IonBufferDestroyFtraceEvent::CopyFrom(const IonBufferDestroyFtraceEvent& from) {
13233 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.IonBufferDestroyFtraceEvent)
13234   if (&from == this) return;
13235   Clear();
13236   MergeFrom(from);
13237 }
13238 
IsInitialized() const13239 bool IonBufferDestroyFtraceEvent::IsInitialized() const {
13240   return true;
13241 }
13242 
InternalSwap(IonBufferDestroyFtraceEvent * other)13243 void IonBufferDestroyFtraceEvent::InternalSwap(IonBufferDestroyFtraceEvent* other) {
13244   using std::swap;
13245   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
13246   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
13247   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
13248       PROTOBUF_FIELD_OFFSET(IonBufferDestroyFtraceEvent, _impl_.len_)
13249       + sizeof(IonBufferDestroyFtraceEvent::_impl_.len_)  // NOLINT
13250       - PROTOBUF_FIELD_OFFSET(IonBufferDestroyFtraceEvent, _impl_.addr_)>(
13251           reinterpret_cast<char*>(&_impl_.addr_),
13252           reinterpret_cast<char*>(&other->_impl_.addr_));
13253 }
13254 
GetTypeName() const13255 std::string IonBufferDestroyFtraceEvent::GetTypeName() const {
13256   return "perfetto.protos.IonBufferDestroyFtraceEvent";
13257 }
13258 
13259 
13260 // @@protoc_insertion_point(namespace_scope)
13261 }  // namespace protos
13262 }  // namespace perfetto
13263 PROTOBUF_NAMESPACE_OPEN
13264 template<> PROTOBUF_NOINLINE ::perfetto::protos::AllocPagesIommuEndFtraceEvent*
CreateMaybeMessage(Arena * arena)13265 Arena::CreateMaybeMessage< ::perfetto::protos::AllocPagesIommuEndFtraceEvent >(Arena* arena) {
13266   return Arena::CreateMessageInternal< ::perfetto::protos::AllocPagesIommuEndFtraceEvent >(arena);
13267 }
13268 template<> PROTOBUF_NOINLINE ::perfetto::protos::AllocPagesIommuFailFtraceEvent*
CreateMaybeMessage(Arena * arena)13269 Arena::CreateMaybeMessage< ::perfetto::protos::AllocPagesIommuFailFtraceEvent >(Arena* arena) {
13270   return Arena::CreateMessageInternal< ::perfetto::protos::AllocPagesIommuFailFtraceEvent >(arena);
13271 }
13272 template<> PROTOBUF_NOINLINE ::perfetto::protos::AllocPagesIommuStartFtraceEvent*
CreateMaybeMessage(Arena * arena)13273 Arena::CreateMaybeMessage< ::perfetto::protos::AllocPagesIommuStartFtraceEvent >(Arena* arena) {
13274   return Arena::CreateMessageInternal< ::perfetto::protos::AllocPagesIommuStartFtraceEvent >(arena);
13275 }
13276 template<> PROTOBUF_NOINLINE ::perfetto::protos::AllocPagesSysEndFtraceEvent*
CreateMaybeMessage(Arena * arena)13277 Arena::CreateMaybeMessage< ::perfetto::protos::AllocPagesSysEndFtraceEvent >(Arena* arena) {
13278   return Arena::CreateMessageInternal< ::perfetto::protos::AllocPagesSysEndFtraceEvent >(arena);
13279 }
13280 template<> PROTOBUF_NOINLINE ::perfetto::protos::AllocPagesSysFailFtraceEvent*
CreateMaybeMessage(Arena * arena)13281 Arena::CreateMaybeMessage< ::perfetto::protos::AllocPagesSysFailFtraceEvent >(Arena* arena) {
13282   return Arena::CreateMessageInternal< ::perfetto::protos::AllocPagesSysFailFtraceEvent >(arena);
13283 }
13284 template<> PROTOBUF_NOINLINE ::perfetto::protos::AllocPagesSysStartFtraceEvent*
CreateMaybeMessage(Arena * arena)13285 Arena::CreateMaybeMessage< ::perfetto::protos::AllocPagesSysStartFtraceEvent >(Arena* arena) {
13286   return Arena::CreateMessageInternal< ::perfetto::protos::AllocPagesSysStartFtraceEvent >(arena);
13287 }
13288 template<> PROTOBUF_NOINLINE ::perfetto::protos::DmaAllocContiguousRetryFtraceEvent*
CreateMaybeMessage(Arena * arena)13289 Arena::CreateMaybeMessage< ::perfetto::protos::DmaAllocContiguousRetryFtraceEvent >(Arena* arena) {
13290   return Arena::CreateMessageInternal< ::perfetto::protos::DmaAllocContiguousRetryFtraceEvent >(arena);
13291 }
13292 template<> PROTOBUF_NOINLINE ::perfetto::protos::IommuMapRangeFtraceEvent*
CreateMaybeMessage(Arena * arena)13293 Arena::CreateMaybeMessage< ::perfetto::protos::IommuMapRangeFtraceEvent >(Arena* arena) {
13294   return Arena::CreateMessageInternal< ::perfetto::protos::IommuMapRangeFtraceEvent >(arena);
13295 }
13296 template<> PROTOBUF_NOINLINE ::perfetto::protos::IommuSecPtblMapRangeEndFtraceEvent*
CreateMaybeMessage(Arena * arena)13297 Arena::CreateMaybeMessage< ::perfetto::protos::IommuSecPtblMapRangeEndFtraceEvent >(Arena* arena) {
13298   return Arena::CreateMessageInternal< ::perfetto::protos::IommuSecPtblMapRangeEndFtraceEvent >(arena);
13299 }
13300 template<> PROTOBUF_NOINLINE ::perfetto::protos::IommuSecPtblMapRangeStartFtraceEvent*
CreateMaybeMessage(Arena * arena)13301 Arena::CreateMaybeMessage< ::perfetto::protos::IommuSecPtblMapRangeStartFtraceEvent >(Arena* arena) {
13302   return Arena::CreateMessageInternal< ::perfetto::protos::IommuSecPtblMapRangeStartFtraceEvent >(arena);
13303 }
13304 template<> PROTOBUF_NOINLINE ::perfetto::protos::IonAllocBufferEndFtraceEvent*
CreateMaybeMessage(Arena * arena)13305 Arena::CreateMaybeMessage< ::perfetto::protos::IonAllocBufferEndFtraceEvent >(Arena* arena) {
13306   return Arena::CreateMessageInternal< ::perfetto::protos::IonAllocBufferEndFtraceEvent >(arena);
13307 }
13308 template<> PROTOBUF_NOINLINE ::perfetto::protos::IonAllocBufferFailFtraceEvent*
CreateMaybeMessage(Arena * arena)13309 Arena::CreateMaybeMessage< ::perfetto::protos::IonAllocBufferFailFtraceEvent >(Arena* arena) {
13310   return Arena::CreateMessageInternal< ::perfetto::protos::IonAllocBufferFailFtraceEvent >(arena);
13311 }
13312 template<> PROTOBUF_NOINLINE ::perfetto::protos::IonAllocBufferFallbackFtraceEvent*
CreateMaybeMessage(Arena * arena)13313 Arena::CreateMaybeMessage< ::perfetto::protos::IonAllocBufferFallbackFtraceEvent >(Arena* arena) {
13314   return Arena::CreateMessageInternal< ::perfetto::protos::IonAllocBufferFallbackFtraceEvent >(arena);
13315 }
13316 template<> PROTOBUF_NOINLINE ::perfetto::protos::IonAllocBufferStartFtraceEvent*
CreateMaybeMessage(Arena * arena)13317 Arena::CreateMaybeMessage< ::perfetto::protos::IonAllocBufferStartFtraceEvent >(Arena* arena) {
13318   return Arena::CreateMessageInternal< ::perfetto::protos::IonAllocBufferStartFtraceEvent >(arena);
13319 }
13320 template<> PROTOBUF_NOINLINE ::perfetto::protos::IonCpAllocRetryFtraceEvent*
CreateMaybeMessage(Arena * arena)13321 Arena::CreateMaybeMessage< ::perfetto::protos::IonCpAllocRetryFtraceEvent >(Arena* arena) {
13322   return Arena::CreateMessageInternal< ::perfetto::protos::IonCpAllocRetryFtraceEvent >(arena);
13323 }
13324 template<> PROTOBUF_NOINLINE ::perfetto::protos::IonCpSecureBufferEndFtraceEvent*
CreateMaybeMessage(Arena * arena)13325 Arena::CreateMaybeMessage< ::perfetto::protos::IonCpSecureBufferEndFtraceEvent >(Arena* arena) {
13326   return Arena::CreateMessageInternal< ::perfetto::protos::IonCpSecureBufferEndFtraceEvent >(arena);
13327 }
13328 template<> PROTOBUF_NOINLINE ::perfetto::protos::IonCpSecureBufferStartFtraceEvent*
CreateMaybeMessage(Arena * arena)13329 Arena::CreateMaybeMessage< ::perfetto::protos::IonCpSecureBufferStartFtraceEvent >(Arena* arena) {
13330   return Arena::CreateMessageInternal< ::perfetto::protos::IonCpSecureBufferStartFtraceEvent >(arena);
13331 }
13332 template<> PROTOBUF_NOINLINE ::perfetto::protos::IonPrefetchingFtraceEvent*
CreateMaybeMessage(Arena * arena)13333 Arena::CreateMaybeMessage< ::perfetto::protos::IonPrefetchingFtraceEvent >(Arena* arena) {
13334   return Arena::CreateMessageInternal< ::perfetto::protos::IonPrefetchingFtraceEvent >(arena);
13335 }
13336 template<> PROTOBUF_NOINLINE ::perfetto::protos::IonSecureCmaAddToPoolEndFtraceEvent*
CreateMaybeMessage(Arena * arena)13337 Arena::CreateMaybeMessage< ::perfetto::protos::IonSecureCmaAddToPoolEndFtraceEvent >(Arena* arena) {
13338   return Arena::CreateMessageInternal< ::perfetto::protos::IonSecureCmaAddToPoolEndFtraceEvent >(arena);
13339 }
13340 template<> PROTOBUF_NOINLINE ::perfetto::protos::IonSecureCmaAddToPoolStartFtraceEvent*
CreateMaybeMessage(Arena * arena)13341 Arena::CreateMaybeMessage< ::perfetto::protos::IonSecureCmaAddToPoolStartFtraceEvent >(Arena* arena) {
13342   return Arena::CreateMessageInternal< ::perfetto::protos::IonSecureCmaAddToPoolStartFtraceEvent >(arena);
13343 }
13344 template<> PROTOBUF_NOINLINE ::perfetto::protos::IonSecureCmaAllocateEndFtraceEvent*
CreateMaybeMessage(Arena * arena)13345 Arena::CreateMaybeMessage< ::perfetto::protos::IonSecureCmaAllocateEndFtraceEvent >(Arena* arena) {
13346   return Arena::CreateMessageInternal< ::perfetto::protos::IonSecureCmaAllocateEndFtraceEvent >(arena);
13347 }
13348 template<> PROTOBUF_NOINLINE ::perfetto::protos::IonSecureCmaAllocateStartFtraceEvent*
CreateMaybeMessage(Arena * arena)13349 Arena::CreateMaybeMessage< ::perfetto::protos::IonSecureCmaAllocateStartFtraceEvent >(Arena* arena) {
13350   return Arena::CreateMessageInternal< ::perfetto::protos::IonSecureCmaAllocateStartFtraceEvent >(arena);
13351 }
13352 template<> PROTOBUF_NOINLINE ::perfetto::protos::IonSecureCmaShrinkPoolEndFtraceEvent*
CreateMaybeMessage(Arena * arena)13353 Arena::CreateMaybeMessage< ::perfetto::protos::IonSecureCmaShrinkPoolEndFtraceEvent >(Arena* arena) {
13354   return Arena::CreateMessageInternal< ::perfetto::protos::IonSecureCmaShrinkPoolEndFtraceEvent >(arena);
13355 }
13356 template<> PROTOBUF_NOINLINE ::perfetto::protos::IonSecureCmaShrinkPoolStartFtraceEvent*
CreateMaybeMessage(Arena * arena)13357 Arena::CreateMaybeMessage< ::perfetto::protos::IonSecureCmaShrinkPoolStartFtraceEvent >(Arena* arena) {
13358   return Arena::CreateMessageInternal< ::perfetto::protos::IonSecureCmaShrinkPoolStartFtraceEvent >(arena);
13359 }
13360 template<> PROTOBUF_NOINLINE ::perfetto::protos::KfreeFtraceEvent*
CreateMaybeMessage(Arena * arena)13361 Arena::CreateMaybeMessage< ::perfetto::protos::KfreeFtraceEvent >(Arena* arena) {
13362   return Arena::CreateMessageInternal< ::perfetto::protos::KfreeFtraceEvent >(arena);
13363 }
13364 template<> PROTOBUF_NOINLINE ::perfetto::protos::KmallocFtraceEvent*
CreateMaybeMessage(Arena * arena)13365 Arena::CreateMaybeMessage< ::perfetto::protos::KmallocFtraceEvent >(Arena* arena) {
13366   return Arena::CreateMessageInternal< ::perfetto::protos::KmallocFtraceEvent >(arena);
13367 }
13368 template<> PROTOBUF_NOINLINE ::perfetto::protos::KmallocNodeFtraceEvent*
CreateMaybeMessage(Arena * arena)13369 Arena::CreateMaybeMessage< ::perfetto::protos::KmallocNodeFtraceEvent >(Arena* arena) {
13370   return Arena::CreateMessageInternal< ::perfetto::protos::KmallocNodeFtraceEvent >(arena);
13371 }
13372 template<> PROTOBUF_NOINLINE ::perfetto::protos::KmemCacheAllocFtraceEvent*
CreateMaybeMessage(Arena * arena)13373 Arena::CreateMaybeMessage< ::perfetto::protos::KmemCacheAllocFtraceEvent >(Arena* arena) {
13374   return Arena::CreateMessageInternal< ::perfetto::protos::KmemCacheAllocFtraceEvent >(arena);
13375 }
13376 template<> PROTOBUF_NOINLINE ::perfetto::protos::KmemCacheAllocNodeFtraceEvent*
CreateMaybeMessage(Arena * arena)13377 Arena::CreateMaybeMessage< ::perfetto::protos::KmemCacheAllocNodeFtraceEvent >(Arena* arena) {
13378   return Arena::CreateMessageInternal< ::perfetto::protos::KmemCacheAllocNodeFtraceEvent >(arena);
13379 }
13380 template<> PROTOBUF_NOINLINE ::perfetto::protos::KmemCacheFreeFtraceEvent*
CreateMaybeMessage(Arena * arena)13381 Arena::CreateMaybeMessage< ::perfetto::protos::KmemCacheFreeFtraceEvent >(Arena* arena) {
13382   return Arena::CreateMessageInternal< ::perfetto::protos::KmemCacheFreeFtraceEvent >(arena);
13383 }
13384 template<> PROTOBUF_NOINLINE ::perfetto::protos::MigratePagesEndFtraceEvent*
CreateMaybeMessage(Arena * arena)13385 Arena::CreateMaybeMessage< ::perfetto::protos::MigratePagesEndFtraceEvent >(Arena* arena) {
13386   return Arena::CreateMessageInternal< ::perfetto::protos::MigratePagesEndFtraceEvent >(arena);
13387 }
13388 template<> PROTOBUF_NOINLINE ::perfetto::protos::MigratePagesStartFtraceEvent*
CreateMaybeMessage(Arena * arena)13389 Arena::CreateMaybeMessage< ::perfetto::protos::MigratePagesStartFtraceEvent >(Arena* arena) {
13390   return Arena::CreateMessageInternal< ::perfetto::protos::MigratePagesStartFtraceEvent >(arena);
13391 }
13392 template<> PROTOBUF_NOINLINE ::perfetto::protos::MigrateRetryFtraceEvent*
CreateMaybeMessage(Arena * arena)13393 Arena::CreateMaybeMessage< ::perfetto::protos::MigrateRetryFtraceEvent >(Arena* arena) {
13394   return Arena::CreateMessageInternal< ::perfetto::protos::MigrateRetryFtraceEvent >(arena);
13395 }
13396 template<> PROTOBUF_NOINLINE ::perfetto::protos::MmPageAllocFtraceEvent*
CreateMaybeMessage(Arena * arena)13397 Arena::CreateMaybeMessage< ::perfetto::protos::MmPageAllocFtraceEvent >(Arena* arena) {
13398   return Arena::CreateMessageInternal< ::perfetto::protos::MmPageAllocFtraceEvent >(arena);
13399 }
13400 template<> PROTOBUF_NOINLINE ::perfetto::protos::MmPageAllocExtfragFtraceEvent*
CreateMaybeMessage(Arena * arena)13401 Arena::CreateMaybeMessage< ::perfetto::protos::MmPageAllocExtfragFtraceEvent >(Arena* arena) {
13402   return Arena::CreateMessageInternal< ::perfetto::protos::MmPageAllocExtfragFtraceEvent >(arena);
13403 }
13404 template<> PROTOBUF_NOINLINE ::perfetto::protos::MmPageAllocZoneLockedFtraceEvent*
CreateMaybeMessage(Arena * arena)13405 Arena::CreateMaybeMessage< ::perfetto::protos::MmPageAllocZoneLockedFtraceEvent >(Arena* arena) {
13406   return Arena::CreateMessageInternal< ::perfetto::protos::MmPageAllocZoneLockedFtraceEvent >(arena);
13407 }
13408 template<> PROTOBUF_NOINLINE ::perfetto::protos::MmPageFreeFtraceEvent*
CreateMaybeMessage(Arena * arena)13409 Arena::CreateMaybeMessage< ::perfetto::protos::MmPageFreeFtraceEvent >(Arena* arena) {
13410   return Arena::CreateMessageInternal< ::perfetto::protos::MmPageFreeFtraceEvent >(arena);
13411 }
13412 template<> PROTOBUF_NOINLINE ::perfetto::protos::MmPageFreeBatchedFtraceEvent*
CreateMaybeMessage(Arena * arena)13413 Arena::CreateMaybeMessage< ::perfetto::protos::MmPageFreeBatchedFtraceEvent >(Arena* arena) {
13414   return Arena::CreateMessageInternal< ::perfetto::protos::MmPageFreeBatchedFtraceEvent >(arena);
13415 }
13416 template<> PROTOBUF_NOINLINE ::perfetto::protos::MmPagePcpuDrainFtraceEvent*
CreateMaybeMessage(Arena * arena)13417 Arena::CreateMaybeMessage< ::perfetto::protos::MmPagePcpuDrainFtraceEvent >(Arena* arena) {
13418   return Arena::CreateMessageInternal< ::perfetto::protos::MmPagePcpuDrainFtraceEvent >(arena);
13419 }
13420 template<> PROTOBUF_NOINLINE ::perfetto::protos::RssStatFtraceEvent*
CreateMaybeMessage(Arena * arena)13421 Arena::CreateMaybeMessage< ::perfetto::protos::RssStatFtraceEvent >(Arena* arena) {
13422   return Arena::CreateMessageInternal< ::perfetto::protos::RssStatFtraceEvent >(arena);
13423 }
13424 template<> PROTOBUF_NOINLINE ::perfetto::protos::IonHeapShrinkFtraceEvent*
CreateMaybeMessage(Arena * arena)13425 Arena::CreateMaybeMessage< ::perfetto::protos::IonHeapShrinkFtraceEvent >(Arena* arena) {
13426   return Arena::CreateMessageInternal< ::perfetto::protos::IonHeapShrinkFtraceEvent >(arena);
13427 }
13428 template<> PROTOBUF_NOINLINE ::perfetto::protos::IonHeapGrowFtraceEvent*
CreateMaybeMessage(Arena * arena)13429 Arena::CreateMaybeMessage< ::perfetto::protos::IonHeapGrowFtraceEvent >(Arena* arena) {
13430   return Arena::CreateMessageInternal< ::perfetto::protos::IonHeapGrowFtraceEvent >(arena);
13431 }
13432 template<> PROTOBUF_NOINLINE ::perfetto::protos::IonBufferCreateFtraceEvent*
CreateMaybeMessage(Arena * arena)13433 Arena::CreateMaybeMessage< ::perfetto::protos::IonBufferCreateFtraceEvent >(Arena* arena) {
13434   return Arena::CreateMessageInternal< ::perfetto::protos::IonBufferCreateFtraceEvent >(arena);
13435 }
13436 template<> PROTOBUF_NOINLINE ::perfetto::protos::IonBufferDestroyFtraceEvent*
CreateMaybeMessage(Arena * arena)13437 Arena::CreateMaybeMessage< ::perfetto::protos::IonBufferDestroyFtraceEvent >(Arena* arena) {
13438   return Arena::CreateMessageInternal< ::perfetto::protos::IonBufferDestroyFtraceEvent >(arena);
13439 }
13440 PROTOBUF_NAMESPACE_CLOSE
13441 
13442 // @@protoc_insertion_point(global_scope)
13443 #include <google/protobuf/port_undef.inc>
13444