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