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