1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: protos/perfetto/common/ftrace_descriptor.proto
3 
4 #include "protos/perfetto/common/ftrace_descriptor.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 {
FtraceDescriptor_AtraceCategory(::_pbi::ConstantInitialized)23 PROTOBUF_CONSTEXPR FtraceDescriptor_AtraceCategory::FtraceDescriptor_AtraceCategory(
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_.description_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {}
29 struct FtraceDescriptor_AtraceCategoryDefaultTypeInternal {
FtraceDescriptor_AtraceCategoryDefaultTypeInternalperfetto::protos::FtraceDescriptor_AtraceCategoryDefaultTypeInternal30   PROTOBUF_CONSTEXPR FtraceDescriptor_AtraceCategoryDefaultTypeInternal()
31       : _instance(::_pbi::ConstantInitialized{}) {}
~FtraceDescriptor_AtraceCategoryDefaultTypeInternalperfetto::protos::FtraceDescriptor_AtraceCategoryDefaultTypeInternal32   ~FtraceDescriptor_AtraceCategoryDefaultTypeInternal() {}
33   union {  // NOLINT(misc-non-private-member-variables-in-classes)
34     FtraceDescriptor_AtraceCategory _instance;
35   };
36 };
37 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FtraceDescriptor_AtraceCategoryDefaultTypeInternal _FtraceDescriptor_AtraceCategory_default_instance_;
FtraceDescriptor(::_pbi::ConstantInitialized)38 PROTOBUF_CONSTEXPR FtraceDescriptor::FtraceDescriptor(
39     ::_pbi::ConstantInitialized): _impl_{
40     /*decltype(_impl_.atrace_categories_)*/{}
41   , /*decltype(_impl_._cached_size_)*/{}} {}
42 struct FtraceDescriptorDefaultTypeInternal {
FtraceDescriptorDefaultTypeInternalperfetto::protos::FtraceDescriptorDefaultTypeInternal43   PROTOBUF_CONSTEXPR FtraceDescriptorDefaultTypeInternal()
44       : _instance(::_pbi::ConstantInitialized{}) {}
~FtraceDescriptorDefaultTypeInternalperfetto::protos::FtraceDescriptorDefaultTypeInternal45   ~FtraceDescriptorDefaultTypeInternal() {}
46   union {  // NOLINT(misc-non-private-member-variables-in-classes)
47     FtraceDescriptor _instance;
48   };
49 };
50 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FtraceDescriptorDefaultTypeInternal _FtraceDescriptor_default_instance_;
51 }  // namespace protos
52 }  // namespace perfetto
53 namespace perfetto {
54 namespace protos {
55 
56 // ===================================================================
57 
58 class FtraceDescriptor_AtraceCategory::_Internal {
59  public:
60   using HasBits = decltype(std::declval<FtraceDescriptor_AtraceCategory>()._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_description(HasBits * has_bits)64   static void set_has_description(HasBits* has_bits) {
65     (*has_bits)[0] |= 2u;
66   }
67 };
68 
FtraceDescriptor_AtraceCategory(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)69 FtraceDescriptor_AtraceCategory::FtraceDescriptor_AtraceCategory(::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.FtraceDescriptor.AtraceCategory)
74 }
FtraceDescriptor_AtraceCategory(const FtraceDescriptor_AtraceCategory & from)75 FtraceDescriptor_AtraceCategory::FtraceDescriptor_AtraceCategory(const FtraceDescriptor_AtraceCategory& from)
76   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
77   FtraceDescriptor_AtraceCategory* 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_.description_){}};
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_.description_.InitDefault();
94   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
95     _impl_.description_.Set("", GetArenaForAllocation());
96   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
97   if (from._internal_has_description()) {
98     _this->_impl_.description_.Set(from._internal_description(),
99       _this->GetArenaForAllocation());
100   }
101   // @@protoc_insertion_point(copy_constructor:perfetto.protos.FtraceDescriptor.AtraceCategory)
102 }
103 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)104 inline void FtraceDescriptor_AtraceCategory::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_.description_){}
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_.description_.InitDefault();
119   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
120     _impl_.description_.Set("", GetArenaForAllocation());
121   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
122 }
123 
~FtraceDescriptor_AtraceCategory()124 FtraceDescriptor_AtraceCategory::~FtraceDescriptor_AtraceCategory() {
125   // @@protoc_insertion_point(destructor:perfetto.protos.FtraceDescriptor.AtraceCategory)
126   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
127   (void)arena;
128     return;
129   }
130   SharedDtor();
131 }
132 
SharedDtor()133 inline void FtraceDescriptor_AtraceCategory::SharedDtor() {
134   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
135   _impl_.name_.Destroy();
136   _impl_.description_.Destroy();
137 }
138 
SetCachedSize(int size) const139 void FtraceDescriptor_AtraceCategory::SetCachedSize(int size) const {
140   _impl_._cached_size_.Set(size);
141 }
142 
Clear()143 void FtraceDescriptor_AtraceCategory::Clear() {
144 // @@protoc_insertion_point(message_clear_start:perfetto.protos.FtraceDescriptor.AtraceCategory)
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_.description_.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* FtraceDescriptor_AtraceCategory::_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 description = 2;
180       case 2:
181         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
182           auto str = _internal_mutable_description();
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* FtraceDescriptor_AtraceCategory::_InternalSerialize(
214     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
215   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.FtraceDescriptor.AtraceCategory)
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 description = 2;
227   if (cached_has_bits & 0x00000002u) {
228     target = stream->WriteStringMaybeAliased(
229         2, this->_internal_description(), 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.FtraceDescriptor.AtraceCategory)
237   return target;
238 }
239 
ByteSizeLong() const240 size_t FtraceDescriptor_AtraceCategory::ByteSizeLong() const {
241 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.FtraceDescriptor.AtraceCategory)
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 description = 2;
258     if (cached_has_bits & 0x00000002u) {
259       total_size += 1 +
260         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
261           this->_internal_description());
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 FtraceDescriptor_AtraceCategory::CheckTypeAndMergeFrom(
274     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
275   MergeFrom(*::_pbi::DownCast<const FtraceDescriptor_AtraceCategory*>(
276       &from));
277 }
278 
MergeFrom(const FtraceDescriptor_AtraceCategory & from)279 void FtraceDescriptor_AtraceCategory::MergeFrom(const FtraceDescriptor_AtraceCategory& from) {
280   FtraceDescriptor_AtraceCategory* const _this = this;
281   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.FtraceDescriptor.AtraceCategory)
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_description(from._internal_description());
293     }
294   }
295   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
296 }
297 
CopyFrom(const FtraceDescriptor_AtraceCategory & from)298 void FtraceDescriptor_AtraceCategory::CopyFrom(const FtraceDescriptor_AtraceCategory& from) {
299 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.FtraceDescriptor.AtraceCategory)
300   if (&from == this) return;
301   Clear();
302   MergeFrom(from);
303 }
304 
IsInitialized() const305 bool FtraceDescriptor_AtraceCategory::IsInitialized() const {
306   return true;
307 }
308 
InternalSwap(FtraceDescriptor_AtraceCategory * other)309 void FtraceDescriptor_AtraceCategory::InternalSwap(FtraceDescriptor_AtraceCategory* 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_.description_, lhs_arena,
321       &other->_impl_.description_, rhs_arena
322   );
323 }
324 
GetTypeName() const325 std::string FtraceDescriptor_AtraceCategory::GetTypeName() const {
326   return "perfetto.protos.FtraceDescriptor.AtraceCategory";
327 }
328 
329 
330 // ===================================================================
331 
332 class FtraceDescriptor::_Internal {
333  public:
334 };
335 
FtraceDescriptor(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)336 FtraceDescriptor::FtraceDescriptor(::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.FtraceDescriptor)
341 }
FtraceDescriptor(const FtraceDescriptor & from)342 FtraceDescriptor::FtraceDescriptor(const FtraceDescriptor& from)
343   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
344   FtraceDescriptor* const _this = this; (void)_this;
345   new (&_impl_) Impl_{
346       decltype(_impl_.atrace_categories_){from._impl_.atrace_categories_}
347     , /*decltype(_impl_._cached_size_)*/{}};
348 
349   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
350   // @@protoc_insertion_point(copy_constructor:perfetto.protos.FtraceDescriptor)
351 }
352 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)353 inline void FtraceDescriptor::SharedCtor(
354     ::_pb::Arena* arena, bool is_message_owned) {
355   (void)arena;
356   (void)is_message_owned;
357   new (&_impl_) Impl_{
358       decltype(_impl_.atrace_categories_){arena}
359     , /*decltype(_impl_._cached_size_)*/{}
360   };
361 }
362 
~FtraceDescriptor()363 FtraceDescriptor::~FtraceDescriptor() {
364   // @@protoc_insertion_point(destructor:perfetto.protos.FtraceDescriptor)
365   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
366   (void)arena;
367     return;
368   }
369   SharedDtor();
370 }
371 
SharedDtor()372 inline void FtraceDescriptor::SharedDtor() {
373   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
374   _impl_.atrace_categories_.~RepeatedPtrField();
375 }
376 
SetCachedSize(int size) const377 void FtraceDescriptor::SetCachedSize(int size) const {
378   _impl_._cached_size_.Set(size);
379 }
380 
Clear()381 void FtraceDescriptor::Clear() {
382 // @@protoc_insertion_point(message_clear_start:perfetto.protos.FtraceDescriptor)
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_.atrace_categories_.Clear();
388   _internal_metadata_.Clear<std::string>();
389 }
390 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)391 const char* FtraceDescriptor::_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.FtraceDescriptor.AtraceCategory atrace_categories = 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_atrace_categories(), 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* FtraceDescriptor::_InternalSerialize(
435     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
436   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.FtraceDescriptor)
437   ::uint32_t cached_has_bits = 0;
438   (void) cached_has_bits;
439 
440   // repeated .perfetto.protos.FtraceDescriptor.AtraceCategory atrace_categories = 1;
441   for (unsigned i = 0,
442       n = static_cast<unsigned>(this->_internal_atrace_categories_size()); i < n; i++) {
443     const auto& repfield = this->_internal_atrace_categories(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.FtraceDescriptor)
453   return target;
454 }
455 
ByteSizeLong() const456 size_t FtraceDescriptor::ByteSizeLong() const {
457 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.FtraceDescriptor)
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.FtraceDescriptor.AtraceCategory atrace_categories = 1;
465   total_size += 1UL * this->_internal_atrace_categories_size();
466   for (const auto& msg : this->_impl_.atrace_categories_) {
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 FtraceDescriptor::CheckTypeAndMergeFrom(
480     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
481   MergeFrom(*::_pbi::DownCast<const FtraceDescriptor*>(
482       &from));
483 }
484 
MergeFrom(const FtraceDescriptor & from)485 void FtraceDescriptor::MergeFrom(const FtraceDescriptor& from) {
486   FtraceDescriptor* const _this = this;
487   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.FtraceDescriptor)
488   GOOGLE_DCHECK_NE(&from, _this);
489   ::uint32_t cached_has_bits = 0;
490   (void) cached_has_bits;
491 
492   _this->_impl_.atrace_categories_.MergeFrom(from._impl_.atrace_categories_);
493   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
494 }
495 
CopyFrom(const FtraceDescriptor & from)496 void FtraceDescriptor::CopyFrom(const FtraceDescriptor& from) {
497 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.FtraceDescriptor)
498   if (&from == this) return;
499   Clear();
500   MergeFrom(from);
501 }
502 
IsInitialized() const503 bool FtraceDescriptor::IsInitialized() const {
504   return true;
505 }
506 
InternalSwap(FtraceDescriptor * other)507 void FtraceDescriptor::InternalSwap(FtraceDescriptor* other) {
508   using std::swap;
509   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
510   _impl_.atrace_categories_.InternalSwap(&other->_impl_.atrace_categories_);
511 }
512 
GetTypeName() const513 std::string FtraceDescriptor::GetTypeName() const {
514   return "perfetto.protos.FtraceDescriptor";
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::FtraceDescriptor_AtraceCategory*
CreateMaybeMessage(Arena * arena)523 Arena::CreateMaybeMessage< ::perfetto::protos::FtraceDescriptor_AtraceCategory >(Arena* arena) {
524   return Arena::CreateMessageInternal< ::perfetto::protos::FtraceDescriptor_AtraceCategory >(arena);
525 }
526 template<> PROTOBUF_NOINLINE ::perfetto::protos::FtraceDescriptor*
CreateMaybeMessage(Arena * arena)527 Arena::CreateMaybeMessage< ::perfetto::protos::FtraceDescriptor >(Arena* arena) {
528   return Arena::CreateMessageInternal< ::perfetto::protos::FtraceDescriptor >(arena);
529 }
530 PROTOBUF_NAMESPACE_CLOSE
531 
532 // @@protoc_insertion_point(global_scope)
533 #include <google/protobuf/port_undef.inc>
534