1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: protos/perfetto/trace/power/android_entity_state_residency.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2ftrace_2fpower_2fandroid_5fentity_5fstate_5fresidency_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2ftrace_2fpower_2fandroid_5fentity_5fstate_5fresidency_2eproto
6 
7 #include <cstdint>
8 #include <limits>
9 #include <string>
10 
11 #include <google/protobuf/port_def.inc>
12 #if PROTOBUF_VERSION < 3021000
13 #error This file was generated by a newer version of protoc which is
14 #error incompatible with your Protocol Buffer headers. Please update
15 #error your headers.
16 #endif
17 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
18 #error This file was generated by an older version of protoc which is
19 #error incompatible with your Protocol Buffer headers. Please
20 #error regenerate this file with a newer version of protoc.
21 #endif
22 
23 #include <google/protobuf/port_undef.inc>
24 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arena.h>
26 #include <google/protobuf/arenastring.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/message_lite.h>
30 #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
31 #include <google/protobuf/extension_set.h>  // IWYU pragma: export
32 // @@protoc_insertion_point(includes)
33 #include <google/protobuf/port_def.inc>
34 #define PROTOBUF_INTERNAL_EXPORT_protos_2fperfetto_2ftrace_2fpower_2fandroid_5fentity_5fstate_5fresidency_2eproto
35 PROTOBUF_NAMESPACE_OPEN
36 namespace internal {
37 class AnyMetadata;
38 }  // namespace internal
39 PROTOBUF_NAMESPACE_CLOSE
40 
41 // Internal implementation detail -- do not use these members.
42 struct TableStruct_protos_2fperfetto_2ftrace_2fpower_2fandroid_5fentity_5fstate_5fresidency_2eproto {
43   static const ::uint32_t offsets[];
44 };
45 namespace perfetto {
46 namespace protos {
47 class EntityStateResidency;
48 struct EntityStateResidencyDefaultTypeInternal;
49 extern EntityStateResidencyDefaultTypeInternal _EntityStateResidency_default_instance_;
50 class EntityStateResidency_PowerEntityState;
51 struct EntityStateResidency_PowerEntityStateDefaultTypeInternal;
52 extern EntityStateResidency_PowerEntityStateDefaultTypeInternal _EntityStateResidency_PowerEntityState_default_instance_;
53 class EntityStateResidency_StateResidency;
54 struct EntityStateResidency_StateResidencyDefaultTypeInternal;
55 extern EntityStateResidency_StateResidencyDefaultTypeInternal _EntityStateResidency_StateResidency_default_instance_;
56 }  // namespace protos
57 }  // namespace perfetto
58 PROTOBUF_NAMESPACE_OPEN
59 template<> ::perfetto::protos::EntityStateResidency* Arena::CreateMaybeMessage<::perfetto::protos::EntityStateResidency>(Arena*);
60 template<> ::perfetto::protos::EntityStateResidency_PowerEntityState* Arena::CreateMaybeMessage<::perfetto::protos::EntityStateResidency_PowerEntityState>(Arena*);
61 template<> ::perfetto::protos::EntityStateResidency_StateResidency* Arena::CreateMaybeMessage<::perfetto::protos::EntityStateResidency_StateResidency>(Arena*);
62 PROTOBUF_NAMESPACE_CLOSE
63 namespace perfetto {
64 namespace protos {
65 
66 // ===================================================================
67 
68 class EntityStateResidency_PowerEntityState final :
69     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:perfetto.protos.EntityStateResidency.PowerEntityState) */ {
70  public:
EntityStateResidency_PowerEntityState()71   inline EntityStateResidency_PowerEntityState() : EntityStateResidency_PowerEntityState(nullptr) {}
72   ~EntityStateResidency_PowerEntityState() override;
73   explicit PROTOBUF_CONSTEXPR EntityStateResidency_PowerEntityState(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
74 
75   EntityStateResidency_PowerEntityState(const EntityStateResidency_PowerEntityState& from);
EntityStateResidency_PowerEntityState(EntityStateResidency_PowerEntityState && from)76   EntityStateResidency_PowerEntityState(EntityStateResidency_PowerEntityState&& from) noexcept
77     : EntityStateResidency_PowerEntityState() {
78     *this = ::std::move(from);
79   }
80 
81   inline EntityStateResidency_PowerEntityState& operator=(const EntityStateResidency_PowerEntityState& from) {
82     if (this == &from) return *this;
83     CopyFrom(from);
84     return *this;
85   }
86   inline EntityStateResidency_PowerEntityState& operator=(EntityStateResidency_PowerEntityState&& from) noexcept {
87     if (this == &from) return *this;
88     if (GetOwningArena() == from.GetOwningArena()
89   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
90         && GetOwningArena() != nullptr
91   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
92     ) {
93       InternalSwap(&from);
94     } else {
95       CopyFrom(from);
96     }
97     return *this;
98   }
99 
unknown_fields()100   inline const std::string& unknown_fields() const {
101     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
102   }
mutable_unknown_fields()103   inline std::string* mutable_unknown_fields() {
104     return _internal_metadata_.mutable_unknown_fields<std::string>();
105   }
106 
default_instance()107   static const EntityStateResidency_PowerEntityState& default_instance() {
108     return *internal_default_instance();
109   }
internal_default_instance()110   static inline const EntityStateResidency_PowerEntityState* internal_default_instance() {
111     return reinterpret_cast<const EntityStateResidency_PowerEntityState*>(
112                &_EntityStateResidency_PowerEntityState_default_instance_);
113   }
114   static constexpr int kIndexInFileMessages =
115     0;
116 
swap(EntityStateResidency_PowerEntityState & a,EntityStateResidency_PowerEntityState & b)117   friend void swap(EntityStateResidency_PowerEntityState& a, EntityStateResidency_PowerEntityState& b) {
118     a.Swap(&b);
119   }
Swap(EntityStateResidency_PowerEntityState * other)120   inline void Swap(EntityStateResidency_PowerEntityState* other) {
121     if (other == this) return;
122   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
123     if (GetOwningArena() != nullptr &&
124         GetOwningArena() == other->GetOwningArena()) {
125    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
126     if (GetOwningArena() == other->GetOwningArena()) {
127   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
128       InternalSwap(other);
129     } else {
130       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
131     }
132   }
133   void UnsafeArenaSwap(EntityStateResidency_PowerEntityState* other) {
134     if (other == this) return;
135     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
136     InternalSwap(other);
137   }
138 
139   // implements Message ----------------------------------------------
140 
141   EntityStateResidency_PowerEntityState* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
142     return CreateMaybeMessage<EntityStateResidency_PowerEntityState>(arena);
143   }
144   EntityStateResidency_PowerEntityState* New() const {
145     return New(nullptr);
146   }
147   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
148   void CopyFrom(const EntityStateResidency_PowerEntityState& from);
149   void MergeFrom(const EntityStateResidency_PowerEntityState& from);
150   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
151   bool IsInitialized() const final;
152 
153   size_t ByteSizeLong() const final;
154   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
155   ::uint8_t* _InternalSerialize(
156       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
157   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
158 
159   private:
160   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
161   void SharedDtor();
162   void SetCachedSize(int size) const;
163   void InternalSwap(EntityStateResidency_PowerEntityState* other);
164 
165   private:
166   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
167   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
168     return "perfetto.protos.EntityStateResidency.PowerEntityState";
169   }
170   protected:
171   explicit EntityStateResidency_PowerEntityState(::PROTOBUF_NAMESPACE_ID::Arena* arena,
172                        bool is_message_owned = false);
173   public:
174 
175   std::string GetTypeName() const final;
176 
177   // nested types ----------------------------------------------------
178 
179   // accessors -------------------------------------------------------
180 
181   enum : int {
182     kEntityNameFieldNumber = 3,
183     kStateNameFieldNumber = 4,
184     kEntityIndexFieldNumber = 1,
185     kStateIndexFieldNumber = 2,
186   };
187   // optional string entity_name = 3;
188   bool has_entity_name() const;
189   private:
190   bool _internal_has_entity_name() const;
191   public:
192   void clear_entity_name();
193   const std::string& entity_name() const;
194   template <typename ArgT0 = const std::string&, typename... ArgT>
195   void set_entity_name(ArgT0&& arg0, ArgT... args);
196   std::string* mutable_entity_name();
197   PROTOBUF_NODISCARD std::string* release_entity_name();
198   void set_allocated_entity_name(std::string* entity_name);
199   private:
200   const std::string& _internal_entity_name() const;
201   inline PROTOBUF_ALWAYS_INLINE void _internal_set_entity_name(const std::string& value);
202   std::string* _internal_mutable_entity_name();
203   public:
204 
205   // optional string state_name = 4;
206   bool has_state_name() const;
207   private:
208   bool _internal_has_state_name() const;
209   public:
210   void clear_state_name();
211   const std::string& state_name() const;
212   template <typename ArgT0 = const std::string&, typename... ArgT>
213   void set_state_name(ArgT0&& arg0, ArgT... args);
214   std::string* mutable_state_name();
215   PROTOBUF_NODISCARD std::string* release_state_name();
216   void set_allocated_state_name(std::string* state_name);
217   private:
218   const std::string& _internal_state_name() const;
219   inline PROTOBUF_ALWAYS_INLINE void _internal_set_state_name(const std::string& value);
220   std::string* _internal_mutable_state_name();
221   public:
222 
223   // optional int32 entity_index = 1;
224   bool has_entity_index() const;
225   private:
226   bool _internal_has_entity_index() const;
227   public:
228   void clear_entity_index();
229   ::int32_t entity_index() const;
230   void set_entity_index(::int32_t value);
231   private:
232   ::int32_t _internal_entity_index() const;
233   void _internal_set_entity_index(::int32_t value);
234   public:
235 
236   // optional int32 state_index = 2;
237   bool has_state_index() const;
238   private:
239   bool _internal_has_state_index() const;
240   public:
241   void clear_state_index();
242   ::int32_t state_index() const;
243   void set_state_index(::int32_t value);
244   private:
245   ::int32_t _internal_state_index() const;
246   void _internal_set_state_index(::int32_t value);
247   public:
248 
249   // @@protoc_insertion_point(class_scope:perfetto.protos.EntityStateResidency.PowerEntityState)
250  private:
251   class _Internal;
252 
253   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
254   typedef void InternalArenaConstructable_;
255   typedef void DestructorSkippable_;
256   struct Impl_ {
257     ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
258     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
259     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr entity_name_;
260     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr state_name_;
261     ::int32_t entity_index_;
262     ::int32_t state_index_;
263   };
264   union { Impl_ _impl_; };
265   friend struct ::TableStruct_protos_2fperfetto_2ftrace_2fpower_2fandroid_5fentity_5fstate_5fresidency_2eproto;
266 };
267 // -------------------------------------------------------------------
268 
269 class EntityStateResidency_StateResidency final :
270     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:perfetto.protos.EntityStateResidency.StateResidency) */ {
271  public:
EntityStateResidency_StateResidency()272   inline EntityStateResidency_StateResidency() : EntityStateResidency_StateResidency(nullptr) {}
273   ~EntityStateResidency_StateResidency() override;
274   explicit PROTOBUF_CONSTEXPR EntityStateResidency_StateResidency(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
275 
276   EntityStateResidency_StateResidency(const EntityStateResidency_StateResidency& from);
EntityStateResidency_StateResidency(EntityStateResidency_StateResidency && from)277   EntityStateResidency_StateResidency(EntityStateResidency_StateResidency&& from) noexcept
278     : EntityStateResidency_StateResidency() {
279     *this = ::std::move(from);
280   }
281 
282   inline EntityStateResidency_StateResidency& operator=(const EntityStateResidency_StateResidency& from) {
283     if (this == &from) return *this;
284     CopyFrom(from);
285     return *this;
286   }
287   inline EntityStateResidency_StateResidency& operator=(EntityStateResidency_StateResidency&& from) noexcept {
288     if (this == &from) return *this;
289     if (GetOwningArena() == from.GetOwningArena()
290   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
291         && GetOwningArena() != nullptr
292   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
293     ) {
294       InternalSwap(&from);
295     } else {
296       CopyFrom(from);
297     }
298     return *this;
299   }
300 
unknown_fields()301   inline const std::string& unknown_fields() const {
302     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
303   }
mutable_unknown_fields()304   inline std::string* mutable_unknown_fields() {
305     return _internal_metadata_.mutable_unknown_fields<std::string>();
306   }
307 
default_instance()308   static const EntityStateResidency_StateResidency& default_instance() {
309     return *internal_default_instance();
310   }
internal_default_instance()311   static inline const EntityStateResidency_StateResidency* internal_default_instance() {
312     return reinterpret_cast<const EntityStateResidency_StateResidency*>(
313                &_EntityStateResidency_StateResidency_default_instance_);
314   }
315   static constexpr int kIndexInFileMessages =
316     1;
317 
swap(EntityStateResidency_StateResidency & a,EntityStateResidency_StateResidency & b)318   friend void swap(EntityStateResidency_StateResidency& a, EntityStateResidency_StateResidency& b) {
319     a.Swap(&b);
320   }
Swap(EntityStateResidency_StateResidency * other)321   inline void Swap(EntityStateResidency_StateResidency* other) {
322     if (other == this) return;
323   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
324     if (GetOwningArena() != nullptr &&
325         GetOwningArena() == other->GetOwningArena()) {
326    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
327     if (GetOwningArena() == other->GetOwningArena()) {
328   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
329       InternalSwap(other);
330     } else {
331       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
332     }
333   }
334   void UnsafeArenaSwap(EntityStateResidency_StateResidency* other) {
335     if (other == this) return;
336     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
337     InternalSwap(other);
338   }
339 
340   // implements Message ----------------------------------------------
341 
342   EntityStateResidency_StateResidency* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
343     return CreateMaybeMessage<EntityStateResidency_StateResidency>(arena);
344   }
345   EntityStateResidency_StateResidency* New() const {
346     return New(nullptr);
347   }
348   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
349   void CopyFrom(const EntityStateResidency_StateResidency& from);
350   void MergeFrom(const EntityStateResidency_StateResidency& from);
351   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
352   bool IsInitialized() const final;
353 
354   size_t ByteSizeLong() const final;
355   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
356   ::uint8_t* _InternalSerialize(
357       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
358   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
359 
360   private:
361   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
362   void SharedDtor();
363   void SetCachedSize(int size) const;
364   void InternalSwap(EntityStateResidency_StateResidency* other);
365 
366   private:
367   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
368   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
369     return "perfetto.protos.EntityStateResidency.StateResidency";
370   }
371   protected:
372   explicit EntityStateResidency_StateResidency(::PROTOBUF_NAMESPACE_ID::Arena* arena,
373                        bool is_message_owned = false);
374   public:
375 
376   std::string GetTypeName() const final;
377 
378   // nested types ----------------------------------------------------
379 
380   // accessors -------------------------------------------------------
381 
382   enum : int {
383     kEntityIndexFieldNumber = 1,
384     kStateIndexFieldNumber = 2,
385     kTotalTimeInStateMsFieldNumber = 3,
386     kTotalStateEntryCountFieldNumber = 4,
387     kLastEntryTimestampMsFieldNumber = 5,
388   };
389   // optional int32 entity_index = 1;
390   bool has_entity_index() const;
391   private:
392   bool _internal_has_entity_index() const;
393   public:
394   void clear_entity_index();
395   ::int32_t entity_index() const;
396   void set_entity_index(::int32_t value);
397   private:
398   ::int32_t _internal_entity_index() const;
399   void _internal_set_entity_index(::int32_t value);
400   public:
401 
402   // optional int32 state_index = 2;
403   bool has_state_index() const;
404   private:
405   bool _internal_has_state_index() const;
406   public:
407   void clear_state_index();
408   ::int32_t state_index() const;
409   void set_state_index(::int32_t value);
410   private:
411   ::int32_t _internal_state_index() const;
412   void _internal_set_state_index(::int32_t value);
413   public:
414 
415   // optional uint64 total_time_in_state_ms = 3;
416   bool has_total_time_in_state_ms() const;
417   private:
418   bool _internal_has_total_time_in_state_ms() const;
419   public:
420   void clear_total_time_in_state_ms();
421   ::uint64_t total_time_in_state_ms() const;
422   void set_total_time_in_state_ms(::uint64_t value);
423   private:
424   ::uint64_t _internal_total_time_in_state_ms() const;
425   void _internal_set_total_time_in_state_ms(::uint64_t value);
426   public:
427 
428   // optional uint64 total_state_entry_count = 4;
429   bool has_total_state_entry_count() const;
430   private:
431   bool _internal_has_total_state_entry_count() const;
432   public:
433   void clear_total_state_entry_count();
434   ::uint64_t total_state_entry_count() const;
435   void set_total_state_entry_count(::uint64_t value);
436   private:
437   ::uint64_t _internal_total_state_entry_count() const;
438   void _internal_set_total_state_entry_count(::uint64_t value);
439   public:
440 
441   // optional uint64 last_entry_timestamp_ms = 5;
442   bool has_last_entry_timestamp_ms() const;
443   private:
444   bool _internal_has_last_entry_timestamp_ms() const;
445   public:
446   void clear_last_entry_timestamp_ms();
447   ::uint64_t last_entry_timestamp_ms() const;
448   void set_last_entry_timestamp_ms(::uint64_t value);
449   private:
450   ::uint64_t _internal_last_entry_timestamp_ms() const;
451   void _internal_set_last_entry_timestamp_ms(::uint64_t value);
452   public:
453 
454   // @@protoc_insertion_point(class_scope:perfetto.protos.EntityStateResidency.StateResidency)
455  private:
456   class _Internal;
457 
458   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
459   typedef void InternalArenaConstructable_;
460   typedef void DestructorSkippable_;
461   struct Impl_ {
462     ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
463     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
464     ::int32_t entity_index_;
465     ::int32_t state_index_;
466     ::uint64_t total_time_in_state_ms_;
467     ::uint64_t total_state_entry_count_;
468     ::uint64_t last_entry_timestamp_ms_;
469   };
470   union { Impl_ _impl_; };
471   friend struct ::TableStruct_protos_2fperfetto_2ftrace_2fpower_2fandroid_5fentity_5fstate_5fresidency_2eproto;
472 };
473 // -------------------------------------------------------------------
474 
475 class EntityStateResidency final :
476     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:perfetto.protos.EntityStateResidency) */ {
477  public:
EntityStateResidency()478   inline EntityStateResidency() : EntityStateResidency(nullptr) {}
479   ~EntityStateResidency() override;
480   explicit PROTOBUF_CONSTEXPR EntityStateResidency(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
481 
482   EntityStateResidency(const EntityStateResidency& from);
EntityStateResidency(EntityStateResidency && from)483   EntityStateResidency(EntityStateResidency&& from) noexcept
484     : EntityStateResidency() {
485     *this = ::std::move(from);
486   }
487 
488   inline EntityStateResidency& operator=(const EntityStateResidency& from) {
489     if (this == &from) return *this;
490     CopyFrom(from);
491     return *this;
492   }
493   inline EntityStateResidency& operator=(EntityStateResidency&& from) noexcept {
494     if (this == &from) return *this;
495     if (GetOwningArena() == from.GetOwningArena()
496   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
497         && GetOwningArena() != nullptr
498   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
499     ) {
500       InternalSwap(&from);
501     } else {
502       CopyFrom(from);
503     }
504     return *this;
505   }
506 
unknown_fields()507   inline const std::string& unknown_fields() const {
508     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
509   }
mutable_unknown_fields()510   inline std::string* mutable_unknown_fields() {
511     return _internal_metadata_.mutable_unknown_fields<std::string>();
512   }
513 
default_instance()514   static const EntityStateResidency& default_instance() {
515     return *internal_default_instance();
516   }
internal_default_instance()517   static inline const EntityStateResidency* internal_default_instance() {
518     return reinterpret_cast<const EntityStateResidency*>(
519                &_EntityStateResidency_default_instance_);
520   }
521   static constexpr int kIndexInFileMessages =
522     2;
523 
swap(EntityStateResidency & a,EntityStateResidency & b)524   friend void swap(EntityStateResidency& a, EntityStateResidency& b) {
525     a.Swap(&b);
526   }
Swap(EntityStateResidency * other)527   inline void Swap(EntityStateResidency* other) {
528     if (other == this) return;
529   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
530     if (GetOwningArena() != nullptr &&
531         GetOwningArena() == other->GetOwningArena()) {
532    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
533     if (GetOwningArena() == other->GetOwningArena()) {
534   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
535       InternalSwap(other);
536     } else {
537       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
538     }
539   }
540   void UnsafeArenaSwap(EntityStateResidency* other) {
541     if (other == this) return;
542     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
543     InternalSwap(other);
544   }
545 
546   // implements Message ----------------------------------------------
547 
548   EntityStateResidency* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
549     return CreateMaybeMessage<EntityStateResidency>(arena);
550   }
551   EntityStateResidency* New() const {
552     return New(nullptr);
553   }
554   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
555   void CopyFrom(const EntityStateResidency& from);
556   void MergeFrom(const EntityStateResidency& from);
557   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
558   bool IsInitialized() const final;
559 
560   size_t ByteSizeLong() const final;
561   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
562   ::uint8_t* _InternalSerialize(
563       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
564   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
565 
566   private:
567   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
568   void SharedDtor();
569   void SetCachedSize(int size) const;
570   void InternalSwap(EntityStateResidency* other);
571 
572   private:
573   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
574   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
575     return "perfetto.protos.EntityStateResidency";
576   }
577   protected:
578   explicit EntityStateResidency(::PROTOBUF_NAMESPACE_ID::Arena* arena,
579                        bool is_message_owned = false);
580   public:
581 
582   std::string GetTypeName() const final;
583 
584   // nested types ----------------------------------------------------
585 
586   typedef EntityStateResidency_PowerEntityState PowerEntityState;
587   typedef EntityStateResidency_StateResidency StateResidency;
588 
589   // accessors -------------------------------------------------------
590 
591   enum : int {
592     kPowerEntityStateFieldNumber = 1,
593     kResidencyFieldNumber = 2,
594   };
595   // repeated .perfetto.protos.EntityStateResidency.PowerEntityState power_entity_state = 1;
596   int power_entity_state_size() const;
597   private:
598   int _internal_power_entity_state_size() const;
599   public:
600   void clear_power_entity_state();
601   ::perfetto::protos::EntityStateResidency_PowerEntityState* mutable_power_entity_state(int index);
602   ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::perfetto::protos::EntityStateResidency_PowerEntityState >*
603       mutable_power_entity_state();
604   private:
605   const ::perfetto::protos::EntityStateResidency_PowerEntityState& _internal_power_entity_state(int index) const;
606   ::perfetto::protos::EntityStateResidency_PowerEntityState* _internal_add_power_entity_state();
607   public:
608   const ::perfetto::protos::EntityStateResidency_PowerEntityState& power_entity_state(int index) const;
609   ::perfetto::protos::EntityStateResidency_PowerEntityState* add_power_entity_state();
610   const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::perfetto::protos::EntityStateResidency_PowerEntityState >&
611       power_entity_state() const;
612 
613   // repeated .perfetto.protos.EntityStateResidency.StateResidency residency = 2;
614   int residency_size() const;
615   private:
616   int _internal_residency_size() const;
617   public:
618   void clear_residency();
619   ::perfetto::protos::EntityStateResidency_StateResidency* mutable_residency(int index);
620   ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::perfetto::protos::EntityStateResidency_StateResidency >*
621       mutable_residency();
622   private:
623   const ::perfetto::protos::EntityStateResidency_StateResidency& _internal_residency(int index) const;
624   ::perfetto::protos::EntityStateResidency_StateResidency* _internal_add_residency();
625   public:
626   const ::perfetto::protos::EntityStateResidency_StateResidency& residency(int index) const;
627   ::perfetto::protos::EntityStateResidency_StateResidency* add_residency();
628   const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::perfetto::protos::EntityStateResidency_StateResidency >&
629       residency() const;
630 
631   // @@protoc_insertion_point(class_scope:perfetto.protos.EntityStateResidency)
632  private:
633   class _Internal;
634 
635   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
636   typedef void InternalArenaConstructable_;
637   typedef void DestructorSkippable_;
638   struct Impl_ {
639     ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::perfetto::protos::EntityStateResidency_PowerEntityState > power_entity_state_;
640     ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::perfetto::protos::EntityStateResidency_StateResidency > residency_;
641     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
642   };
643   union { Impl_ _impl_; };
644   friend struct ::TableStruct_protos_2fperfetto_2ftrace_2fpower_2fandroid_5fentity_5fstate_5fresidency_2eproto;
645 };
646 // ===================================================================
647 
648 
649 // ===================================================================
650 
651 #ifdef __GNUC__
652   #pragma GCC diagnostic push
653   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
654 #endif  // __GNUC__
655 // EntityStateResidency_PowerEntityState
656 
657 // optional int32 entity_index = 1;
_internal_has_entity_index()658 inline bool EntityStateResidency_PowerEntityState::_internal_has_entity_index() const {
659   bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
660   return value;
661 }
has_entity_index()662 inline bool EntityStateResidency_PowerEntityState::has_entity_index() const {
663   return _internal_has_entity_index();
664 }
clear_entity_index()665 inline void EntityStateResidency_PowerEntityState::clear_entity_index() {
666   _impl_.entity_index_ = 0;
667   _impl_._has_bits_[0] &= ~0x00000004u;
668 }
_internal_entity_index()669 inline ::int32_t EntityStateResidency_PowerEntityState::_internal_entity_index() const {
670   return _impl_.entity_index_;
671 }
entity_index()672 inline ::int32_t EntityStateResidency_PowerEntityState::entity_index() const {
673   // @@protoc_insertion_point(field_get:perfetto.protos.EntityStateResidency.PowerEntityState.entity_index)
674   return _internal_entity_index();
675 }
_internal_set_entity_index(::int32_t value)676 inline void EntityStateResidency_PowerEntityState::_internal_set_entity_index(::int32_t value) {
677   _impl_._has_bits_[0] |= 0x00000004u;
678   _impl_.entity_index_ = value;
679 }
set_entity_index(::int32_t value)680 inline void EntityStateResidency_PowerEntityState::set_entity_index(::int32_t value) {
681   _internal_set_entity_index(value);
682   // @@protoc_insertion_point(field_set:perfetto.protos.EntityStateResidency.PowerEntityState.entity_index)
683 }
684 
685 // optional int32 state_index = 2;
_internal_has_state_index()686 inline bool EntityStateResidency_PowerEntityState::_internal_has_state_index() const {
687   bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
688   return value;
689 }
has_state_index()690 inline bool EntityStateResidency_PowerEntityState::has_state_index() const {
691   return _internal_has_state_index();
692 }
clear_state_index()693 inline void EntityStateResidency_PowerEntityState::clear_state_index() {
694   _impl_.state_index_ = 0;
695   _impl_._has_bits_[0] &= ~0x00000008u;
696 }
_internal_state_index()697 inline ::int32_t EntityStateResidency_PowerEntityState::_internal_state_index() const {
698   return _impl_.state_index_;
699 }
state_index()700 inline ::int32_t EntityStateResidency_PowerEntityState::state_index() const {
701   // @@protoc_insertion_point(field_get:perfetto.protos.EntityStateResidency.PowerEntityState.state_index)
702   return _internal_state_index();
703 }
_internal_set_state_index(::int32_t value)704 inline void EntityStateResidency_PowerEntityState::_internal_set_state_index(::int32_t value) {
705   _impl_._has_bits_[0] |= 0x00000008u;
706   _impl_.state_index_ = value;
707 }
set_state_index(::int32_t value)708 inline void EntityStateResidency_PowerEntityState::set_state_index(::int32_t value) {
709   _internal_set_state_index(value);
710   // @@protoc_insertion_point(field_set:perfetto.protos.EntityStateResidency.PowerEntityState.state_index)
711 }
712 
713 // optional string entity_name = 3;
_internal_has_entity_name()714 inline bool EntityStateResidency_PowerEntityState::_internal_has_entity_name() const {
715   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
716   return value;
717 }
has_entity_name()718 inline bool EntityStateResidency_PowerEntityState::has_entity_name() const {
719   return _internal_has_entity_name();
720 }
clear_entity_name()721 inline void EntityStateResidency_PowerEntityState::clear_entity_name() {
722   _impl_.entity_name_.ClearToEmpty();
723   _impl_._has_bits_[0] &= ~0x00000001u;
724 }
entity_name()725 inline const std::string& EntityStateResidency_PowerEntityState::entity_name() const {
726   // @@protoc_insertion_point(field_get:perfetto.protos.EntityStateResidency.PowerEntityState.entity_name)
727   return _internal_entity_name();
728 }
729 template <typename ArgT0, typename... ArgT>
730 inline PROTOBUF_ALWAYS_INLINE
set_entity_name(ArgT0 && arg0,ArgT...args)731 void EntityStateResidency_PowerEntityState::set_entity_name(ArgT0&& arg0, ArgT... args) {
732  _impl_._has_bits_[0] |= 0x00000001u;
733  _impl_.entity_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
734   // @@protoc_insertion_point(field_set:perfetto.protos.EntityStateResidency.PowerEntityState.entity_name)
735 }
mutable_entity_name()736 inline std::string* EntityStateResidency_PowerEntityState::mutable_entity_name() {
737   std::string* _s = _internal_mutable_entity_name();
738   // @@protoc_insertion_point(field_mutable:perfetto.protos.EntityStateResidency.PowerEntityState.entity_name)
739   return _s;
740 }
_internal_entity_name()741 inline const std::string& EntityStateResidency_PowerEntityState::_internal_entity_name() const {
742   return _impl_.entity_name_.Get();
743 }
_internal_set_entity_name(const std::string & value)744 inline void EntityStateResidency_PowerEntityState::_internal_set_entity_name(const std::string& value) {
745   _impl_._has_bits_[0] |= 0x00000001u;
746   _impl_.entity_name_.Set(value, GetArenaForAllocation());
747 }
_internal_mutable_entity_name()748 inline std::string* EntityStateResidency_PowerEntityState::_internal_mutable_entity_name() {
749   _impl_._has_bits_[0] |= 0x00000001u;
750   return _impl_.entity_name_.Mutable(GetArenaForAllocation());
751 }
release_entity_name()752 inline std::string* EntityStateResidency_PowerEntityState::release_entity_name() {
753   // @@protoc_insertion_point(field_release:perfetto.protos.EntityStateResidency.PowerEntityState.entity_name)
754   if (!_internal_has_entity_name()) {
755     return nullptr;
756   }
757   _impl_._has_bits_[0] &= ~0x00000001u;
758   auto* p = _impl_.entity_name_.Release();
759 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
760   if (_impl_.entity_name_.IsDefault()) {
761     _impl_.entity_name_.Set("", GetArenaForAllocation());
762   }
763 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
764   return p;
765 }
set_allocated_entity_name(std::string * entity_name)766 inline void EntityStateResidency_PowerEntityState::set_allocated_entity_name(std::string* entity_name) {
767   if (entity_name != nullptr) {
768     _impl_._has_bits_[0] |= 0x00000001u;
769   } else {
770     _impl_._has_bits_[0] &= ~0x00000001u;
771   }
772   _impl_.entity_name_.SetAllocated(entity_name, GetArenaForAllocation());
773 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
774   if (_impl_.entity_name_.IsDefault()) {
775     _impl_.entity_name_.Set("", GetArenaForAllocation());
776   }
777 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
778   // @@protoc_insertion_point(field_set_allocated:perfetto.protos.EntityStateResidency.PowerEntityState.entity_name)
779 }
780 
781 // optional string state_name = 4;
_internal_has_state_name()782 inline bool EntityStateResidency_PowerEntityState::_internal_has_state_name() const {
783   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
784   return value;
785 }
has_state_name()786 inline bool EntityStateResidency_PowerEntityState::has_state_name() const {
787   return _internal_has_state_name();
788 }
clear_state_name()789 inline void EntityStateResidency_PowerEntityState::clear_state_name() {
790   _impl_.state_name_.ClearToEmpty();
791   _impl_._has_bits_[0] &= ~0x00000002u;
792 }
state_name()793 inline const std::string& EntityStateResidency_PowerEntityState::state_name() const {
794   // @@protoc_insertion_point(field_get:perfetto.protos.EntityStateResidency.PowerEntityState.state_name)
795   return _internal_state_name();
796 }
797 template <typename ArgT0, typename... ArgT>
798 inline PROTOBUF_ALWAYS_INLINE
set_state_name(ArgT0 && arg0,ArgT...args)799 void EntityStateResidency_PowerEntityState::set_state_name(ArgT0&& arg0, ArgT... args) {
800  _impl_._has_bits_[0] |= 0x00000002u;
801  _impl_.state_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
802   // @@protoc_insertion_point(field_set:perfetto.protos.EntityStateResidency.PowerEntityState.state_name)
803 }
mutable_state_name()804 inline std::string* EntityStateResidency_PowerEntityState::mutable_state_name() {
805   std::string* _s = _internal_mutable_state_name();
806   // @@protoc_insertion_point(field_mutable:perfetto.protos.EntityStateResidency.PowerEntityState.state_name)
807   return _s;
808 }
_internal_state_name()809 inline const std::string& EntityStateResidency_PowerEntityState::_internal_state_name() const {
810   return _impl_.state_name_.Get();
811 }
_internal_set_state_name(const std::string & value)812 inline void EntityStateResidency_PowerEntityState::_internal_set_state_name(const std::string& value) {
813   _impl_._has_bits_[0] |= 0x00000002u;
814   _impl_.state_name_.Set(value, GetArenaForAllocation());
815 }
_internal_mutable_state_name()816 inline std::string* EntityStateResidency_PowerEntityState::_internal_mutable_state_name() {
817   _impl_._has_bits_[0] |= 0x00000002u;
818   return _impl_.state_name_.Mutable(GetArenaForAllocation());
819 }
release_state_name()820 inline std::string* EntityStateResidency_PowerEntityState::release_state_name() {
821   // @@protoc_insertion_point(field_release:perfetto.protos.EntityStateResidency.PowerEntityState.state_name)
822   if (!_internal_has_state_name()) {
823     return nullptr;
824   }
825   _impl_._has_bits_[0] &= ~0x00000002u;
826   auto* p = _impl_.state_name_.Release();
827 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
828   if (_impl_.state_name_.IsDefault()) {
829     _impl_.state_name_.Set("", GetArenaForAllocation());
830   }
831 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
832   return p;
833 }
set_allocated_state_name(std::string * state_name)834 inline void EntityStateResidency_PowerEntityState::set_allocated_state_name(std::string* state_name) {
835   if (state_name != nullptr) {
836     _impl_._has_bits_[0] |= 0x00000002u;
837   } else {
838     _impl_._has_bits_[0] &= ~0x00000002u;
839   }
840   _impl_.state_name_.SetAllocated(state_name, GetArenaForAllocation());
841 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
842   if (_impl_.state_name_.IsDefault()) {
843     _impl_.state_name_.Set("", GetArenaForAllocation());
844   }
845 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
846   // @@protoc_insertion_point(field_set_allocated:perfetto.protos.EntityStateResidency.PowerEntityState.state_name)
847 }
848 
849 // -------------------------------------------------------------------
850 
851 // EntityStateResidency_StateResidency
852 
853 // optional int32 entity_index = 1;
_internal_has_entity_index()854 inline bool EntityStateResidency_StateResidency::_internal_has_entity_index() const {
855   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
856   return value;
857 }
has_entity_index()858 inline bool EntityStateResidency_StateResidency::has_entity_index() const {
859   return _internal_has_entity_index();
860 }
clear_entity_index()861 inline void EntityStateResidency_StateResidency::clear_entity_index() {
862   _impl_.entity_index_ = 0;
863   _impl_._has_bits_[0] &= ~0x00000001u;
864 }
_internal_entity_index()865 inline ::int32_t EntityStateResidency_StateResidency::_internal_entity_index() const {
866   return _impl_.entity_index_;
867 }
entity_index()868 inline ::int32_t EntityStateResidency_StateResidency::entity_index() const {
869   // @@protoc_insertion_point(field_get:perfetto.protos.EntityStateResidency.StateResidency.entity_index)
870   return _internal_entity_index();
871 }
_internal_set_entity_index(::int32_t value)872 inline void EntityStateResidency_StateResidency::_internal_set_entity_index(::int32_t value) {
873   _impl_._has_bits_[0] |= 0x00000001u;
874   _impl_.entity_index_ = value;
875 }
set_entity_index(::int32_t value)876 inline void EntityStateResidency_StateResidency::set_entity_index(::int32_t value) {
877   _internal_set_entity_index(value);
878   // @@protoc_insertion_point(field_set:perfetto.protos.EntityStateResidency.StateResidency.entity_index)
879 }
880 
881 // optional int32 state_index = 2;
_internal_has_state_index()882 inline bool EntityStateResidency_StateResidency::_internal_has_state_index() const {
883   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
884   return value;
885 }
has_state_index()886 inline bool EntityStateResidency_StateResidency::has_state_index() const {
887   return _internal_has_state_index();
888 }
clear_state_index()889 inline void EntityStateResidency_StateResidency::clear_state_index() {
890   _impl_.state_index_ = 0;
891   _impl_._has_bits_[0] &= ~0x00000002u;
892 }
_internal_state_index()893 inline ::int32_t EntityStateResidency_StateResidency::_internal_state_index() const {
894   return _impl_.state_index_;
895 }
state_index()896 inline ::int32_t EntityStateResidency_StateResidency::state_index() const {
897   // @@protoc_insertion_point(field_get:perfetto.protos.EntityStateResidency.StateResidency.state_index)
898   return _internal_state_index();
899 }
_internal_set_state_index(::int32_t value)900 inline void EntityStateResidency_StateResidency::_internal_set_state_index(::int32_t value) {
901   _impl_._has_bits_[0] |= 0x00000002u;
902   _impl_.state_index_ = value;
903 }
set_state_index(::int32_t value)904 inline void EntityStateResidency_StateResidency::set_state_index(::int32_t value) {
905   _internal_set_state_index(value);
906   // @@protoc_insertion_point(field_set:perfetto.protos.EntityStateResidency.StateResidency.state_index)
907 }
908 
909 // optional uint64 total_time_in_state_ms = 3;
_internal_has_total_time_in_state_ms()910 inline bool EntityStateResidency_StateResidency::_internal_has_total_time_in_state_ms() const {
911   bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
912   return value;
913 }
has_total_time_in_state_ms()914 inline bool EntityStateResidency_StateResidency::has_total_time_in_state_ms() const {
915   return _internal_has_total_time_in_state_ms();
916 }
clear_total_time_in_state_ms()917 inline void EntityStateResidency_StateResidency::clear_total_time_in_state_ms() {
918   _impl_.total_time_in_state_ms_ = ::uint64_t{0u};
919   _impl_._has_bits_[0] &= ~0x00000004u;
920 }
_internal_total_time_in_state_ms()921 inline ::uint64_t EntityStateResidency_StateResidency::_internal_total_time_in_state_ms() const {
922   return _impl_.total_time_in_state_ms_;
923 }
total_time_in_state_ms()924 inline ::uint64_t EntityStateResidency_StateResidency::total_time_in_state_ms() const {
925   // @@protoc_insertion_point(field_get:perfetto.protos.EntityStateResidency.StateResidency.total_time_in_state_ms)
926   return _internal_total_time_in_state_ms();
927 }
_internal_set_total_time_in_state_ms(::uint64_t value)928 inline void EntityStateResidency_StateResidency::_internal_set_total_time_in_state_ms(::uint64_t value) {
929   _impl_._has_bits_[0] |= 0x00000004u;
930   _impl_.total_time_in_state_ms_ = value;
931 }
set_total_time_in_state_ms(::uint64_t value)932 inline void EntityStateResidency_StateResidency::set_total_time_in_state_ms(::uint64_t value) {
933   _internal_set_total_time_in_state_ms(value);
934   // @@protoc_insertion_point(field_set:perfetto.protos.EntityStateResidency.StateResidency.total_time_in_state_ms)
935 }
936 
937 // optional uint64 total_state_entry_count = 4;
_internal_has_total_state_entry_count()938 inline bool EntityStateResidency_StateResidency::_internal_has_total_state_entry_count() const {
939   bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
940   return value;
941 }
has_total_state_entry_count()942 inline bool EntityStateResidency_StateResidency::has_total_state_entry_count() const {
943   return _internal_has_total_state_entry_count();
944 }
clear_total_state_entry_count()945 inline void EntityStateResidency_StateResidency::clear_total_state_entry_count() {
946   _impl_.total_state_entry_count_ = ::uint64_t{0u};
947   _impl_._has_bits_[0] &= ~0x00000008u;
948 }
_internal_total_state_entry_count()949 inline ::uint64_t EntityStateResidency_StateResidency::_internal_total_state_entry_count() const {
950   return _impl_.total_state_entry_count_;
951 }
total_state_entry_count()952 inline ::uint64_t EntityStateResidency_StateResidency::total_state_entry_count() const {
953   // @@protoc_insertion_point(field_get:perfetto.protos.EntityStateResidency.StateResidency.total_state_entry_count)
954   return _internal_total_state_entry_count();
955 }
_internal_set_total_state_entry_count(::uint64_t value)956 inline void EntityStateResidency_StateResidency::_internal_set_total_state_entry_count(::uint64_t value) {
957   _impl_._has_bits_[0] |= 0x00000008u;
958   _impl_.total_state_entry_count_ = value;
959 }
set_total_state_entry_count(::uint64_t value)960 inline void EntityStateResidency_StateResidency::set_total_state_entry_count(::uint64_t value) {
961   _internal_set_total_state_entry_count(value);
962   // @@protoc_insertion_point(field_set:perfetto.protos.EntityStateResidency.StateResidency.total_state_entry_count)
963 }
964 
965 // optional uint64 last_entry_timestamp_ms = 5;
_internal_has_last_entry_timestamp_ms()966 inline bool EntityStateResidency_StateResidency::_internal_has_last_entry_timestamp_ms() const {
967   bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
968   return value;
969 }
has_last_entry_timestamp_ms()970 inline bool EntityStateResidency_StateResidency::has_last_entry_timestamp_ms() const {
971   return _internal_has_last_entry_timestamp_ms();
972 }
clear_last_entry_timestamp_ms()973 inline void EntityStateResidency_StateResidency::clear_last_entry_timestamp_ms() {
974   _impl_.last_entry_timestamp_ms_ = ::uint64_t{0u};
975   _impl_._has_bits_[0] &= ~0x00000010u;
976 }
_internal_last_entry_timestamp_ms()977 inline ::uint64_t EntityStateResidency_StateResidency::_internal_last_entry_timestamp_ms() const {
978   return _impl_.last_entry_timestamp_ms_;
979 }
last_entry_timestamp_ms()980 inline ::uint64_t EntityStateResidency_StateResidency::last_entry_timestamp_ms() const {
981   // @@protoc_insertion_point(field_get:perfetto.protos.EntityStateResidency.StateResidency.last_entry_timestamp_ms)
982   return _internal_last_entry_timestamp_ms();
983 }
_internal_set_last_entry_timestamp_ms(::uint64_t value)984 inline void EntityStateResidency_StateResidency::_internal_set_last_entry_timestamp_ms(::uint64_t value) {
985   _impl_._has_bits_[0] |= 0x00000010u;
986   _impl_.last_entry_timestamp_ms_ = value;
987 }
set_last_entry_timestamp_ms(::uint64_t value)988 inline void EntityStateResidency_StateResidency::set_last_entry_timestamp_ms(::uint64_t value) {
989   _internal_set_last_entry_timestamp_ms(value);
990   // @@protoc_insertion_point(field_set:perfetto.protos.EntityStateResidency.StateResidency.last_entry_timestamp_ms)
991 }
992 
993 // -------------------------------------------------------------------
994 
995 // EntityStateResidency
996 
997 // repeated .perfetto.protos.EntityStateResidency.PowerEntityState power_entity_state = 1;
_internal_power_entity_state_size()998 inline int EntityStateResidency::_internal_power_entity_state_size() const {
999   return _impl_.power_entity_state_.size();
1000 }
power_entity_state_size()1001 inline int EntityStateResidency::power_entity_state_size() const {
1002   return _internal_power_entity_state_size();
1003 }
clear_power_entity_state()1004 inline void EntityStateResidency::clear_power_entity_state() {
1005   _impl_.power_entity_state_.Clear();
1006 }
mutable_power_entity_state(int index)1007 inline ::perfetto::protos::EntityStateResidency_PowerEntityState* EntityStateResidency::mutable_power_entity_state(int index) {
1008   // @@protoc_insertion_point(field_mutable:perfetto.protos.EntityStateResidency.power_entity_state)
1009   return _impl_.power_entity_state_.Mutable(index);
1010 }
1011 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::perfetto::protos::EntityStateResidency_PowerEntityState >*
mutable_power_entity_state()1012 EntityStateResidency::mutable_power_entity_state() {
1013   // @@protoc_insertion_point(field_mutable_list:perfetto.protos.EntityStateResidency.power_entity_state)
1014   return &_impl_.power_entity_state_;
1015 }
_internal_power_entity_state(int index)1016 inline const ::perfetto::protos::EntityStateResidency_PowerEntityState& EntityStateResidency::_internal_power_entity_state(int index) const {
1017   return _impl_.power_entity_state_.Get(index);
1018 }
power_entity_state(int index)1019 inline const ::perfetto::protos::EntityStateResidency_PowerEntityState& EntityStateResidency::power_entity_state(int index) const {
1020   // @@protoc_insertion_point(field_get:perfetto.protos.EntityStateResidency.power_entity_state)
1021   return _internal_power_entity_state(index);
1022 }
_internal_add_power_entity_state()1023 inline ::perfetto::protos::EntityStateResidency_PowerEntityState* EntityStateResidency::_internal_add_power_entity_state() {
1024   return _impl_.power_entity_state_.Add();
1025 }
add_power_entity_state()1026 inline ::perfetto::protos::EntityStateResidency_PowerEntityState* EntityStateResidency::add_power_entity_state() {
1027   ::perfetto::protos::EntityStateResidency_PowerEntityState* _add = _internal_add_power_entity_state();
1028   // @@protoc_insertion_point(field_add:perfetto.protos.EntityStateResidency.power_entity_state)
1029   return _add;
1030 }
1031 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::perfetto::protos::EntityStateResidency_PowerEntityState >&
power_entity_state()1032 EntityStateResidency::power_entity_state() const {
1033   // @@protoc_insertion_point(field_list:perfetto.protos.EntityStateResidency.power_entity_state)
1034   return _impl_.power_entity_state_;
1035 }
1036 
1037 // repeated .perfetto.protos.EntityStateResidency.StateResidency residency = 2;
_internal_residency_size()1038 inline int EntityStateResidency::_internal_residency_size() const {
1039   return _impl_.residency_.size();
1040 }
residency_size()1041 inline int EntityStateResidency::residency_size() const {
1042   return _internal_residency_size();
1043 }
clear_residency()1044 inline void EntityStateResidency::clear_residency() {
1045   _impl_.residency_.Clear();
1046 }
mutable_residency(int index)1047 inline ::perfetto::protos::EntityStateResidency_StateResidency* EntityStateResidency::mutable_residency(int index) {
1048   // @@protoc_insertion_point(field_mutable:perfetto.protos.EntityStateResidency.residency)
1049   return _impl_.residency_.Mutable(index);
1050 }
1051 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::perfetto::protos::EntityStateResidency_StateResidency >*
mutable_residency()1052 EntityStateResidency::mutable_residency() {
1053   // @@protoc_insertion_point(field_mutable_list:perfetto.protos.EntityStateResidency.residency)
1054   return &_impl_.residency_;
1055 }
_internal_residency(int index)1056 inline const ::perfetto::protos::EntityStateResidency_StateResidency& EntityStateResidency::_internal_residency(int index) const {
1057   return _impl_.residency_.Get(index);
1058 }
residency(int index)1059 inline const ::perfetto::protos::EntityStateResidency_StateResidency& EntityStateResidency::residency(int index) const {
1060   // @@protoc_insertion_point(field_get:perfetto.protos.EntityStateResidency.residency)
1061   return _internal_residency(index);
1062 }
_internal_add_residency()1063 inline ::perfetto::protos::EntityStateResidency_StateResidency* EntityStateResidency::_internal_add_residency() {
1064   return _impl_.residency_.Add();
1065 }
add_residency()1066 inline ::perfetto::protos::EntityStateResidency_StateResidency* EntityStateResidency::add_residency() {
1067   ::perfetto::protos::EntityStateResidency_StateResidency* _add = _internal_add_residency();
1068   // @@protoc_insertion_point(field_add:perfetto.protos.EntityStateResidency.residency)
1069   return _add;
1070 }
1071 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::perfetto::protos::EntityStateResidency_StateResidency >&
residency()1072 EntityStateResidency::residency() const {
1073   // @@protoc_insertion_point(field_list:perfetto.protos.EntityStateResidency.residency)
1074   return _impl_.residency_;
1075 }
1076 
1077 #ifdef __GNUC__
1078   #pragma GCC diagnostic pop
1079 #endif  // __GNUC__
1080 // -------------------------------------------------------------------
1081 
1082 // -------------------------------------------------------------------
1083 
1084 
1085 // @@protoc_insertion_point(namespace_scope)
1086 
1087 }  // namespace protos
1088 }  // namespace perfetto
1089 
1090 // @@protoc_insertion_point(global_scope)
1091 
1092 #include <google/protobuf/port_undef.inc>
1093 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2ftrace_2fpower_2fandroid_5fentity_5fstate_5fresidency_2eproto
1094