1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: protos/perfetto/trace/power/android_energy_estimation_breakdown.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2ftrace_2fpower_2fandroid_5fenergy_5festimation_5fbreakdown_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2ftrace_2fpower_2fandroid_5fenergy_5festimation_5fbreakdown_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 #include "protos/perfetto/common/android_energy_consumer_descriptor.pb.h"
33 // @@protoc_insertion_point(includes)
34 #include <google/protobuf/port_def.inc>
35 #define PROTOBUF_INTERNAL_EXPORT_protos_2fperfetto_2ftrace_2fpower_2fandroid_5fenergy_5festimation_5fbreakdown_2eproto
36 PROTOBUF_NAMESPACE_OPEN
37 namespace internal {
38 class AnyMetadata;
39 }  // namespace internal
40 PROTOBUF_NAMESPACE_CLOSE
41 
42 // Internal implementation detail -- do not use these members.
43 struct TableStruct_protos_2fperfetto_2ftrace_2fpower_2fandroid_5fenergy_5festimation_5fbreakdown_2eproto {
44   static const ::uint32_t offsets[];
45 };
46 namespace perfetto {
47 namespace protos {
48 class AndroidEnergyEstimationBreakdown;
49 struct AndroidEnergyEstimationBreakdownDefaultTypeInternal;
50 extern AndroidEnergyEstimationBreakdownDefaultTypeInternal _AndroidEnergyEstimationBreakdown_default_instance_;
51 class AndroidEnergyEstimationBreakdown_EnergyUidBreakdown;
52 struct AndroidEnergyEstimationBreakdown_EnergyUidBreakdownDefaultTypeInternal;
53 extern AndroidEnergyEstimationBreakdown_EnergyUidBreakdownDefaultTypeInternal _AndroidEnergyEstimationBreakdown_EnergyUidBreakdown_default_instance_;
54 }  // namespace protos
55 }  // namespace perfetto
56 PROTOBUF_NAMESPACE_OPEN
57 template<> ::perfetto::protos::AndroidEnergyEstimationBreakdown* Arena::CreateMaybeMessage<::perfetto::protos::AndroidEnergyEstimationBreakdown>(Arena*);
58 template<> ::perfetto::protos::AndroidEnergyEstimationBreakdown_EnergyUidBreakdown* Arena::CreateMaybeMessage<::perfetto::protos::AndroidEnergyEstimationBreakdown_EnergyUidBreakdown>(Arena*);
59 PROTOBUF_NAMESPACE_CLOSE
60 namespace perfetto {
61 namespace protos {
62 
63 // ===================================================================
64 
65 class AndroidEnergyEstimationBreakdown_EnergyUidBreakdown final :
66     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:perfetto.protos.AndroidEnergyEstimationBreakdown.EnergyUidBreakdown) */ {
67  public:
AndroidEnergyEstimationBreakdown_EnergyUidBreakdown()68   inline AndroidEnergyEstimationBreakdown_EnergyUidBreakdown() : AndroidEnergyEstimationBreakdown_EnergyUidBreakdown(nullptr) {}
69   ~AndroidEnergyEstimationBreakdown_EnergyUidBreakdown() override;
70   explicit PROTOBUF_CONSTEXPR AndroidEnergyEstimationBreakdown_EnergyUidBreakdown(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
71 
72   AndroidEnergyEstimationBreakdown_EnergyUidBreakdown(const AndroidEnergyEstimationBreakdown_EnergyUidBreakdown& from);
AndroidEnergyEstimationBreakdown_EnergyUidBreakdown(AndroidEnergyEstimationBreakdown_EnergyUidBreakdown && from)73   AndroidEnergyEstimationBreakdown_EnergyUidBreakdown(AndroidEnergyEstimationBreakdown_EnergyUidBreakdown&& from) noexcept
74     : AndroidEnergyEstimationBreakdown_EnergyUidBreakdown() {
75     *this = ::std::move(from);
76   }
77 
78   inline AndroidEnergyEstimationBreakdown_EnergyUidBreakdown& operator=(const AndroidEnergyEstimationBreakdown_EnergyUidBreakdown& from) {
79     if (this == &from) return *this;
80     CopyFrom(from);
81     return *this;
82   }
83   inline AndroidEnergyEstimationBreakdown_EnergyUidBreakdown& operator=(AndroidEnergyEstimationBreakdown_EnergyUidBreakdown&& from) noexcept {
84     if (this == &from) return *this;
85     if (GetOwningArena() == from.GetOwningArena()
86   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
87         && GetOwningArena() != nullptr
88   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
89     ) {
90       InternalSwap(&from);
91     } else {
92       CopyFrom(from);
93     }
94     return *this;
95   }
96 
unknown_fields()97   inline const std::string& unknown_fields() const {
98     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
99   }
mutable_unknown_fields()100   inline std::string* mutable_unknown_fields() {
101     return _internal_metadata_.mutable_unknown_fields<std::string>();
102   }
103 
default_instance()104   static const AndroidEnergyEstimationBreakdown_EnergyUidBreakdown& default_instance() {
105     return *internal_default_instance();
106   }
internal_default_instance()107   static inline const AndroidEnergyEstimationBreakdown_EnergyUidBreakdown* internal_default_instance() {
108     return reinterpret_cast<const AndroidEnergyEstimationBreakdown_EnergyUidBreakdown*>(
109                &_AndroidEnergyEstimationBreakdown_EnergyUidBreakdown_default_instance_);
110   }
111   static constexpr int kIndexInFileMessages =
112     0;
113 
swap(AndroidEnergyEstimationBreakdown_EnergyUidBreakdown & a,AndroidEnergyEstimationBreakdown_EnergyUidBreakdown & b)114   friend void swap(AndroidEnergyEstimationBreakdown_EnergyUidBreakdown& a, AndroidEnergyEstimationBreakdown_EnergyUidBreakdown& b) {
115     a.Swap(&b);
116   }
Swap(AndroidEnergyEstimationBreakdown_EnergyUidBreakdown * other)117   inline void Swap(AndroidEnergyEstimationBreakdown_EnergyUidBreakdown* other) {
118     if (other == this) return;
119   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
120     if (GetOwningArena() != nullptr &&
121         GetOwningArena() == other->GetOwningArena()) {
122    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
123     if (GetOwningArena() == other->GetOwningArena()) {
124   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
125       InternalSwap(other);
126     } else {
127       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
128     }
129   }
130   void UnsafeArenaSwap(AndroidEnergyEstimationBreakdown_EnergyUidBreakdown* other) {
131     if (other == this) return;
132     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
133     InternalSwap(other);
134   }
135 
136   // implements Message ----------------------------------------------
137 
138   AndroidEnergyEstimationBreakdown_EnergyUidBreakdown* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
139     return CreateMaybeMessage<AndroidEnergyEstimationBreakdown_EnergyUidBreakdown>(arena);
140   }
141   AndroidEnergyEstimationBreakdown_EnergyUidBreakdown* New() const {
142     return New(nullptr);
143   }
144   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
145   void CopyFrom(const AndroidEnergyEstimationBreakdown_EnergyUidBreakdown& from);
146   void MergeFrom(const AndroidEnergyEstimationBreakdown_EnergyUidBreakdown& from);
147   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
148   bool IsInitialized() const final;
149 
150   size_t ByteSizeLong() const final;
151   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
152   ::uint8_t* _InternalSerialize(
153       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
154   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
155 
156   private:
157   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
158   void SharedDtor();
159   void SetCachedSize(int size) const;
160   void InternalSwap(AndroidEnergyEstimationBreakdown_EnergyUidBreakdown* other);
161 
162   private:
163   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
164   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
165     return "perfetto.protos.AndroidEnergyEstimationBreakdown.EnergyUidBreakdown";
166   }
167   protected:
168   explicit AndroidEnergyEstimationBreakdown_EnergyUidBreakdown(::PROTOBUF_NAMESPACE_ID::Arena* arena,
169                        bool is_message_owned = false);
170   public:
171 
172   std::string GetTypeName() const final;
173 
174   // nested types ----------------------------------------------------
175 
176   // accessors -------------------------------------------------------
177 
178   enum : int {
179     kEnergyUwsFieldNumber = 2,
180     kUidFieldNumber = 1,
181   };
182   // optional int64 energy_uws = 2;
183   bool has_energy_uws() const;
184   private:
185   bool _internal_has_energy_uws() const;
186   public:
187   void clear_energy_uws();
188   ::int64_t energy_uws() const;
189   void set_energy_uws(::int64_t value);
190   private:
191   ::int64_t _internal_energy_uws() const;
192   void _internal_set_energy_uws(::int64_t value);
193   public:
194 
195   // optional int32 uid = 1;
196   bool has_uid() const;
197   private:
198   bool _internal_has_uid() const;
199   public:
200   void clear_uid();
201   ::int32_t uid() const;
202   void set_uid(::int32_t value);
203   private:
204   ::int32_t _internal_uid() const;
205   void _internal_set_uid(::int32_t value);
206   public:
207 
208   // @@protoc_insertion_point(class_scope:perfetto.protos.AndroidEnergyEstimationBreakdown.EnergyUidBreakdown)
209  private:
210   class _Internal;
211 
212   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
213   typedef void InternalArenaConstructable_;
214   typedef void DestructorSkippable_;
215   struct Impl_ {
216     ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
217     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
218     ::int64_t energy_uws_;
219     ::int32_t uid_;
220   };
221   union { Impl_ _impl_; };
222   friend struct ::TableStruct_protos_2fperfetto_2ftrace_2fpower_2fandroid_5fenergy_5festimation_5fbreakdown_2eproto;
223 };
224 // -------------------------------------------------------------------
225 
226 class AndroidEnergyEstimationBreakdown final :
227     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:perfetto.protos.AndroidEnergyEstimationBreakdown) */ {
228  public:
AndroidEnergyEstimationBreakdown()229   inline AndroidEnergyEstimationBreakdown() : AndroidEnergyEstimationBreakdown(nullptr) {}
230   ~AndroidEnergyEstimationBreakdown() override;
231   explicit PROTOBUF_CONSTEXPR AndroidEnergyEstimationBreakdown(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
232 
233   AndroidEnergyEstimationBreakdown(const AndroidEnergyEstimationBreakdown& from);
AndroidEnergyEstimationBreakdown(AndroidEnergyEstimationBreakdown && from)234   AndroidEnergyEstimationBreakdown(AndroidEnergyEstimationBreakdown&& from) noexcept
235     : AndroidEnergyEstimationBreakdown() {
236     *this = ::std::move(from);
237   }
238 
239   inline AndroidEnergyEstimationBreakdown& operator=(const AndroidEnergyEstimationBreakdown& from) {
240     if (this == &from) return *this;
241     CopyFrom(from);
242     return *this;
243   }
244   inline AndroidEnergyEstimationBreakdown& operator=(AndroidEnergyEstimationBreakdown&& from) noexcept {
245     if (this == &from) return *this;
246     if (GetOwningArena() == from.GetOwningArena()
247   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
248         && GetOwningArena() != nullptr
249   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
250     ) {
251       InternalSwap(&from);
252     } else {
253       CopyFrom(from);
254     }
255     return *this;
256   }
257 
unknown_fields()258   inline const std::string& unknown_fields() const {
259     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
260   }
mutable_unknown_fields()261   inline std::string* mutable_unknown_fields() {
262     return _internal_metadata_.mutable_unknown_fields<std::string>();
263   }
264 
default_instance()265   static const AndroidEnergyEstimationBreakdown& default_instance() {
266     return *internal_default_instance();
267   }
internal_default_instance()268   static inline const AndroidEnergyEstimationBreakdown* internal_default_instance() {
269     return reinterpret_cast<const AndroidEnergyEstimationBreakdown*>(
270                &_AndroidEnergyEstimationBreakdown_default_instance_);
271   }
272   static constexpr int kIndexInFileMessages =
273     1;
274 
swap(AndroidEnergyEstimationBreakdown & a,AndroidEnergyEstimationBreakdown & b)275   friend void swap(AndroidEnergyEstimationBreakdown& a, AndroidEnergyEstimationBreakdown& b) {
276     a.Swap(&b);
277   }
Swap(AndroidEnergyEstimationBreakdown * other)278   inline void Swap(AndroidEnergyEstimationBreakdown* other) {
279     if (other == this) return;
280   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
281     if (GetOwningArena() != nullptr &&
282         GetOwningArena() == other->GetOwningArena()) {
283    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
284     if (GetOwningArena() == other->GetOwningArena()) {
285   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
286       InternalSwap(other);
287     } else {
288       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
289     }
290   }
291   void UnsafeArenaSwap(AndroidEnergyEstimationBreakdown* other) {
292     if (other == this) return;
293     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
294     InternalSwap(other);
295   }
296 
297   // implements Message ----------------------------------------------
298 
299   AndroidEnergyEstimationBreakdown* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
300     return CreateMaybeMessage<AndroidEnergyEstimationBreakdown>(arena);
301   }
302   AndroidEnergyEstimationBreakdown* New() const {
303     return New(nullptr);
304   }
305   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
306   void CopyFrom(const AndroidEnergyEstimationBreakdown& from);
307   void MergeFrom(const AndroidEnergyEstimationBreakdown& from);
308   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
309   bool IsInitialized() const final;
310 
311   size_t ByteSizeLong() const final;
312   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
313   ::uint8_t* _InternalSerialize(
314       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
315   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
316 
317   private:
318   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
319   void SharedDtor();
320   void SetCachedSize(int size) const;
321   void InternalSwap(AndroidEnergyEstimationBreakdown* other);
322 
323   private:
324   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
325   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
326     return "perfetto.protos.AndroidEnergyEstimationBreakdown";
327   }
328   protected:
329   explicit AndroidEnergyEstimationBreakdown(::PROTOBUF_NAMESPACE_ID::Arena* arena,
330                        bool is_message_owned = false);
331   public:
332 
333   std::string GetTypeName() const final;
334 
335   // nested types ----------------------------------------------------
336 
337   typedef AndroidEnergyEstimationBreakdown_EnergyUidBreakdown EnergyUidBreakdown;
338 
339   // accessors -------------------------------------------------------
340 
341   enum : int {
342     kPerUidBreakdownFieldNumber = 4,
343     kEnergyConsumerDescriptorFieldNumber = 1,
344     kEnergyUwsFieldNumber = 3,
345     kEnergyConsumerIdFieldNumber = 2,
346   };
347   // repeated .perfetto.protos.AndroidEnergyEstimationBreakdown.EnergyUidBreakdown per_uid_breakdown = 4;
348   int per_uid_breakdown_size() const;
349   private:
350   int _internal_per_uid_breakdown_size() const;
351   public:
352   void clear_per_uid_breakdown();
353   ::perfetto::protos::AndroidEnergyEstimationBreakdown_EnergyUidBreakdown* mutable_per_uid_breakdown(int index);
354   ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::perfetto::protos::AndroidEnergyEstimationBreakdown_EnergyUidBreakdown >*
355       mutable_per_uid_breakdown();
356   private:
357   const ::perfetto::protos::AndroidEnergyEstimationBreakdown_EnergyUidBreakdown& _internal_per_uid_breakdown(int index) const;
358   ::perfetto::protos::AndroidEnergyEstimationBreakdown_EnergyUidBreakdown* _internal_add_per_uid_breakdown();
359   public:
360   const ::perfetto::protos::AndroidEnergyEstimationBreakdown_EnergyUidBreakdown& per_uid_breakdown(int index) const;
361   ::perfetto::protos::AndroidEnergyEstimationBreakdown_EnergyUidBreakdown* add_per_uid_breakdown();
362   const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::perfetto::protos::AndroidEnergyEstimationBreakdown_EnergyUidBreakdown >&
363       per_uid_breakdown() const;
364 
365   // optional .perfetto.protos.AndroidEnergyConsumerDescriptor energy_consumer_descriptor = 1;
366   bool has_energy_consumer_descriptor() const;
367   private:
368   bool _internal_has_energy_consumer_descriptor() const;
369   public:
370   void clear_energy_consumer_descriptor();
371   const ::perfetto::protos::AndroidEnergyConsumerDescriptor& energy_consumer_descriptor() const;
372   PROTOBUF_NODISCARD ::perfetto::protos::AndroidEnergyConsumerDescriptor* release_energy_consumer_descriptor();
373   ::perfetto::protos::AndroidEnergyConsumerDescriptor* mutable_energy_consumer_descriptor();
374   void set_allocated_energy_consumer_descriptor(::perfetto::protos::AndroidEnergyConsumerDescriptor* energy_consumer_descriptor);
375   private:
376   const ::perfetto::protos::AndroidEnergyConsumerDescriptor& _internal_energy_consumer_descriptor() const;
377   ::perfetto::protos::AndroidEnergyConsumerDescriptor* _internal_mutable_energy_consumer_descriptor();
378   public:
379   void unsafe_arena_set_allocated_energy_consumer_descriptor(
380       ::perfetto::protos::AndroidEnergyConsumerDescriptor* energy_consumer_descriptor);
381   ::perfetto::protos::AndroidEnergyConsumerDescriptor* unsafe_arena_release_energy_consumer_descriptor();
382 
383   // optional int64 energy_uws = 3;
384   bool has_energy_uws() const;
385   private:
386   bool _internal_has_energy_uws() const;
387   public:
388   void clear_energy_uws();
389   ::int64_t energy_uws() const;
390   void set_energy_uws(::int64_t value);
391   private:
392   ::int64_t _internal_energy_uws() const;
393   void _internal_set_energy_uws(::int64_t value);
394   public:
395 
396   // optional int32 energy_consumer_id = 2;
397   bool has_energy_consumer_id() const;
398   private:
399   bool _internal_has_energy_consumer_id() const;
400   public:
401   void clear_energy_consumer_id();
402   ::int32_t energy_consumer_id() const;
403   void set_energy_consumer_id(::int32_t value);
404   private:
405   ::int32_t _internal_energy_consumer_id() const;
406   void _internal_set_energy_consumer_id(::int32_t value);
407   public:
408 
409   // @@protoc_insertion_point(class_scope:perfetto.protos.AndroidEnergyEstimationBreakdown)
410  private:
411   class _Internal;
412 
413   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
414   typedef void InternalArenaConstructable_;
415   typedef void DestructorSkippable_;
416   struct Impl_ {
417     ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
418     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
419     ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::perfetto::protos::AndroidEnergyEstimationBreakdown_EnergyUidBreakdown > per_uid_breakdown_;
420     ::perfetto::protos::AndroidEnergyConsumerDescriptor* energy_consumer_descriptor_;
421     ::int64_t energy_uws_;
422     ::int32_t energy_consumer_id_;
423   };
424   union { Impl_ _impl_; };
425   friend struct ::TableStruct_protos_2fperfetto_2ftrace_2fpower_2fandroid_5fenergy_5festimation_5fbreakdown_2eproto;
426 };
427 // ===================================================================
428 
429 
430 // ===================================================================
431 
432 #ifdef __GNUC__
433   #pragma GCC diagnostic push
434   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
435 #endif  // __GNUC__
436 // AndroidEnergyEstimationBreakdown_EnergyUidBreakdown
437 
438 // optional int32 uid = 1;
_internal_has_uid()439 inline bool AndroidEnergyEstimationBreakdown_EnergyUidBreakdown::_internal_has_uid() const {
440   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
441   return value;
442 }
has_uid()443 inline bool AndroidEnergyEstimationBreakdown_EnergyUidBreakdown::has_uid() const {
444   return _internal_has_uid();
445 }
clear_uid()446 inline void AndroidEnergyEstimationBreakdown_EnergyUidBreakdown::clear_uid() {
447   _impl_.uid_ = 0;
448   _impl_._has_bits_[0] &= ~0x00000002u;
449 }
_internal_uid()450 inline ::int32_t AndroidEnergyEstimationBreakdown_EnergyUidBreakdown::_internal_uid() const {
451   return _impl_.uid_;
452 }
uid()453 inline ::int32_t AndroidEnergyEstimationBreakdown_EnergyUidBreakdown::uid() const {
454   // @@protoc_insertion_point(field_get:perfetto.protos.AndroidEnergyEstimationBreakdown.EnergyUidBreakdown.uid)
455   return _internal_uid();
456 }
_internal_set_uid(::int32_t value)457 inline void AndroidEnergyEstimationBreakdown_EnergyUidBreakdown::_internal_set_uid(::int32_t value) {
458   _impl_._has_bits_[0] |= 0x00000002u;
459   _impl_.uid_ = value;
460 }
set_uid(::int32_t value)461 inline void AndroidEnergyEstimationBreakdown_EnergyUidBreakdown::set_uid(::int32_t value) {
462   _internal_set_uid(value);
463   // @@protoc_insertion_point(field_set:perfetto.protos.AndroidEnergyEstimationBreakdown.EnergyUidBreakdown.uid)
464 }
465 
466 // optional int64 energy_uws = 2;
_internal_has_energy_uws()467 inline bool AndroidEnergyEstimationBreakdown_EnergyUidBreakdown::_internal_has_energy_uws() const {
468   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
469   return value;
470 }
has_energy_uws()471 inline bool AndroidEnergyEstimationBreakdown_EnergyUidBreakdown::has_energy_uws() const {
472   return _internal_has_energy_uws();
473 }
clear_energy_uws()474 inline void AndroidEnergyEstimationBreakdown_EnergyUidBreakdown::clear_energy_uws() {
475   _impl_.energy_uws_ = ::int64_t{0};
476   _impl_._has_bits_[0] &= ~0x00000001u;
477 }
_internal_energy_uws()478 inline ::int64_t AndroidEnergyEstimationBreakdown_EnergyUidBreakdown::_internal_energy_uws() const {
479   return _impl_.energy_uws_;
480 }
energy_uws()481 inline ::int64_t AndroidEnergyEstimationBreakdown_EnergyUidBreakdown::energy_uws() const {
482   // @@protoc_insertion_point(field_get:perfetto.protos.AndroidEnergyEstimationBreakdown.EnergyUidBreakdown.energy_uws)
483   return _internal_energy_uws();
484 }
_internal_set_energy_uws(::int64_t value)485 inline void AndroidEnergyEstimationBreakdown_EnergyUidBreakdown::_internal_set_energy_uws(::int64_t value) {
486   _impl_._has_bits_[0] |= 0x00000001u;
487   _impl_.energy_uws_ = value;
488 }
set_energy_uws(::int64_t value)489 inline void AndroidEnergyEstimationBreakdown_EnergyUidBreakdown::set_energy_uws(::int64_t value) {
490   _internal_set_energy_uws(value);
491   // @@protoc_insertion_point(field_set:perfetto.protos.AndroidEnergyEstimationBreakdown.EnergyUidBreakdown.energy_uws)
492 }
493 
494 // -------------------------------------------------------------------
495 
496 // AndroidEnergyEstimationBreakdown
497 
498 // optional .perfetto.protos.AndroidEnergyConsumerDescriptor energy_consumer_descriptor = 1;
_internal_has_energy_consumer_descriptor()499 inline bool AndroidEnergyEstimationBreakdown::_internal_has_energy_consumer_descriptor() const {
500   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
501   PROTOBUF_ASSUME(!value || _impl_.energy_consumer_descriptor_ != nullptr);
502   return value;
503 }
has_energy_consumer_descriptor()504 inline bool AndroidEnergyEstimationBreakdown::has_energy_consumer_descriptor() const {
505   return _internal_has_energy_consumer_descriptor();
506 }
_internal_energy_consumer_descriptor()507 inline const ::perfetto::protos::AndroidEnergyConsumerDescriptor& AndroidEnergyEstimationBreakdown::_internal_energy_consumer_descriptor() const {
508   const ::perfetto::protos::AndroidEnergyConsumerDescriptor* p = _impl_.energy_consumer_descriptor_;
509   return p != nullptr ? *p : reinterpret_cast<const ::perfetto::protos::AndroidEnergyConsumerDescriptor&>(
510       ::perfetto::protos::_AndroidEnergyConsumerDescriptor_default_instance_);
511 }
energy_consumer_descriptor()512 inline const ::perfetto::protos::AndroidEnergyConsumerDescriptor& AndroidEnergyEstimationBreakdown::energy_consumer_descriptor() const {
513   // @@protoc_insertion_point(field_get:perfetto.protos.AndroidEnergyEstimationBreakdown.energy_consumer_descriptor)
514   return _internal_energy_consumer_descriptor();
515 }
unsafe_arena_set_allocated_energy_consumer_descriptor(::perfetto::protos::AndroidEnergyConsumerDescriptor * energy_consumer_descriptor)516 inline void AndroidEnergyEstimationBreakdown::unsafe_arena_set_allocated_energy_consumer_descriptor(
517     ::perfetto::protos::AndroidEnergyConsumerDescriptor* energy_consumer_descriptor) {
518   if (GetArenaForAllocation() == nullptr) {
519     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.energy_consumer_descriptor_);
520   }
521   _impl_.energy_consumer_descriptor_ = energy_consumer_descriptor;
522   if (energy_consumer_descriptor) {
523     _impl_._has_bits_[0] |= 0x00000001u;
524   } else {
525     _impl_._has_bits_[0] &= ~0x00000001u;
526   }
527   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:perfetto.protos.AndroidEnergyEstimationBreakdown.energy_consumer_descriptor)
528 }
release_energy_consumer_descriptor()529 inline ::perfetto::protos::AndroidEnergyConsumerDescriptor* AndroidEnergyEstimationBreakdown::release_energy_consumer_descriptor() {
530   _impl_._has_bits_[0] &= ~0x00000001u;
531   ::perfetto::protos::AndroidEnergyConsumerDescriptor* temp = _impl_.energy_consumer_descriptor_;
532   _impl_.energy_consumer_descriptor_ = nullptr;
533 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
534   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
535   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
536   if (GetArenaForAllocation() == nullptr) { delete old; }
537 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
538   if (GetArenaForAllocation() != nullptr) {
539     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
540   }
541 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
542   return temp;
543 }
unsafe_arena_release_energy_consumer_descriptor()544 inline ::perfetto::protos::AndroidEnergyConsumerDescriptor* AndroidEnergyEstimationBreakdown::unsafe_arena_release_energy_consumer_descriptor() {
545   // @@protoc_insertion_point(field_release:perfetto.protos.AndroidEnergyEstimationBreakdown.energy_consumer_descriptor)
546   _impl_._has_bits_[0] &= ~0x00000001u;
547   ::perfetto::protos::AndroidEnergyConsumerDescriptor* temp = _impl_.energy_consumer_descriptor_;
548   _impl_.energy_consumer_descriptor_ = nullptr;
549   return temp;
550 }
_internal_mutable_energy_consumer_descriptor()551 inline ::perfetto::protos::AndroidEnergyConsumerDescriptor* AndroidEnergyEstimationBreakdown::_internal_mutable_energy_consumer_descriptor() {
552   _impl_._has_bits_[0] |= 0x00000001u;
553   if (_impl_.energy_consumer_descriptor_ == nullptr) {
554     auto* p = CreateMaybeMessage<::perfetto::protos::AndroidEnergyConsumerDescriptor>(GetArenaForAllocation());
555     _impl_.energy_consumer_descriptor_ = p;
556   }
557   return _impl_.energy_consumer_descriptor_;
558 }
mutable_energy_consumer_descriptor()559 inline ::perfetto::protos::AndroidEnergyConsumerDescriptor* AndroidEnergyEstimationBreakdown::mutable_energy_consumer_descriptor() {
560   ::perfetto::protos::AndroidEnergyConsumerDescriptor* _msg = _internal_mutable_energy_consumer_descriptor();
561   // @@protoc_insertion_point(field_mutable:perfetto.protos.AndroidEnergyEstimationBreakdown.energy_consumer_descriptor)
562   return _msg;
563 }
set_allocated_energy_consumer_descriptor(::perfetto::protos::AndroidEnergyConsumerDescriptor * energy_consumer_descriptor)564 inline void AndroidEnergyEstimationBreakdown::set_allocated_energy_consumer_descriptor(::perfetto::protos::AndroidEnergyConsumerDescriptor* energy_consumer_descriptor) {
565   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
566   if (message_arena == nullptr) {
567     delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.energy_consumer_descriptor_);
568   }
569   if (energy_consumer_descriptor) {
570     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
571         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
572                 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(energy_consumer_descriptor));
573     if (message_arena != submessage_arena) {
574       energy_consumer_descriptor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
575           message_arena, energy_consumer_descriptor, submessage_arena);
576     }
577     _impl_._has_bits_[0] |= 0x00000001u;
578   } else {
579     _impl_._has_bits_[0] &= ~0x00000001u;
580   }
581   _impl_.energy_consumer_descriptor_ = energy_consumer_descriptor;
582   // @@protoc_insertion_point(field_set_allocated:perfetto.protos.AndroidEnergyEstimationBreakdown.energy_consumer_descriptor)
583 }
584 
585 // optional int32 energy_consumer_id = 2;
_internal_has_energy_consumer_id()586 inline bool AndroidEnergyEstimationBreakdown::_internal_has_energy_consumer_id() const {
587   bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
588   return value;
589 }
has_energy_consumer_id()590 inline bool AndroidEnergyEstimationBreakdown::has_energy_consumer_id() const {
591   return _internal_has_energy_consumer_id();
592 }
clear_energy_consumer_id()593 inline void AndroidEnergyEstimationBreakdown::clear_energy_consumer_id() {
594   _impl_.energy_consumer_id_ = 0;
595   _impl_._has_bits_[0] &= ~0x00000004u;
596 }
_internal_energy_consumer_id()597 inline ::int32_t AndroidEnergyEstimationBreakdown::_internal_energy_consumer_id() const {
598   return _impl_.energy_consumer_id_;
599 }
energy_consumer_id()600 inline ::int32_t AndroidEnergyEstimationBreakdown::energy_consumer_id() const {
601   // @@protoc_insertion_point(field_get:perfetto.protos.AndroidEnergyEstimationBreakdown.energy_consumer_id)
602   return _internal_energy_consumer_id();
603 }
_internal_set_energy_consumer_id(::int32_t value)604 inline void AndroidEnergyEstimationBreakdown::_internal_set_energy_consumer_id(::int32_t value) {
605   _impl_._has_bits_[0] |= 0x00000004u;
606   _impl_.energy_consumer_id_ = value;
607 }
set_energy_consumer_id(::int32_t value)608 inline void AndroidEnergyEstimationBreakdown::set_energy_consumer_id(::int32_t value) {
609   _internal_set_energy_consumer_id(value);
610   // @@protoc_insertion_point(field_set:perfetto.protos.AndroidEnergyEstimationBreakdown.energy_consumer_id)
611 }
612 
613 // optional int64 energy_uws = 3;
_internal_has_energy_uws()614 inline bool AndroidEnergyEstimationBreakdown::_internal_has_energy_uws() const {
615   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
616   return value;
617 }
has_energy_uws()618 inline bool AndroidEnergyEstimationBreakdown::has_energy_uws() const {
619   return _internal_has_energy_uws();
620 }
clear_energy_uws()621 inline void AndroidEnergyEstimationBreakdown::clear_energy_uws() {
622   _impl_.energy_uws_ = ::int64_t{0};
623   _impl_._has_bits_[0] &= ~0x00000002u;
624 }
_internal_energy_uws()625 inline ::int64_t AndroidEnergyEstimationBreakdown::_internal_energy_uws() const {
626   return _impl_.energy_uws_;
627 }
energy_uws()628 inline ::int64_t AndroidEnergyEstimationBreakdown::energy_uws() const {
629   // @@protoc_insertion_point(field_get:perfetto.protos.AndroidEnergyEstimationBreakdown.energy_uws)
630   return _internal_energy_uws();
631 }
_internal_set_energy_uws(::int64_t value)632 inline void AndroidEnergyEstimationBreakdown::_internal_set_energy_uws(::int64_t value) {
633   _impl_._has_bits_[0] |= 0x00000002u;
634   _impl_.energy_uws_ = value;
635 }
set_energy_uws(::int64_t value)636 inline void AndroidEnergyEstimationBreakdown::set_energy_uws(::int64_t value) {
637   _internal_set_energy_uws(value);
638   // @@protoc_insertion_point(field_set:perfetto.protos.AndroidEnergyEstimationBreakdown.energy_uws)
639 }
640 
641 // repeated .perfetto.protos.AndroidEnergyEstimationBreakdown.EnergyUidBreakdown per_uid_breakdown = 4;
_internal_per_uid_breakdown_size()642 inline int AndroidEnergyEstimationBreakdown::_internal_per_uid_breakdown_size() const {
643   return _impl_.per_uid_breakdown_.size();
644 }
per_uid_breakdown_size()645 inline int AndroidEnergyEstimationBreakdown::per_uid_breakdown_size() const {
646   return _internal_per_uid_breakdown_size();
647 }
clear_per_uid_breakdown()648 inline void AndroidEnergyEstimationBreakdown::clear_per_uid_breakdown() {
649   _impl_.per_uid_breakdown_.Clear();
650 }
mutable_per_uid_breakdown(int index)651 inline ::perfetto::protos::AndroidEnergyEstimationBreakdown_EnergyUidBreakdown* AndroidEnergyEstimationBreakdown::mutable_per_uid_breakdown(int index) {
652   // @@protoc_insertion_point(field_mutable:perfetto.protos.AndroidEnergyEstimationBreakdown.per_uid_breakdown)
653   return _impl_.per_uid_breakdown_.Mutable(index);
654 }
655 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::perfetto::protos::AndroidEnergyEstimationBreakdown_EnergyUidBreakdown >*
mutable_per_uid_breakdown()656 AndroidEnergyEstimationBreakdown::mutable_per_uid_breakdown() {
657   // @@protoc_insertion_point(field_mutable_list:perfetto.protos.AndroidEnergyEstimationBreakdown.per_uid_breakdown)
658   return &_impl_.per_uid_breakdown_;
659 }
_internal_per_uid_breakdown(int index)660 inline const ::perfetto::protos::AndroidEnergyEstimationBreakdown_EnergyUidBreakdown& AndroidEnergyEstimationBreakdown::_internal_per_uid_breakdown(int index) const {
661   return _impl_.per_uid_breakdown_.Get(index);
662 }
per_uid_breakdown(int index)663 inline const ::perfetto::protos::AndroidEnergyEstimationBreakdown_EnergyUidBreakdown& AndroidEnergyEstimationBreakdown::per_uid_breakdown(int index) const {
664   // @@protoc_insertion_point(field_get:perfetto.protos.AndroidEnergyEstimationBreakdown.per_uid_breakdown)
665   return _internal_per_uid_breakdown(index);
666 }
_internal_add_per_uid_breakdown()667 inline ::perfetto::protos::AndroidEnergyEstimationBreakdown_EnergyUidBreakdown* AndroidEnergyEstimationBreakdown::_internal_add_per_uid_breakdown() {
668   return _impl_.per_uid_breakdown_.Add();
669 }
add_per_uid_breakdown()670 inline ::perfetto::protos::AndroidEnergyEstimationBreakdown_EnergyUidBreakdown* AndroidEnergyEstimationBreakdown::add_per_uid_breakdown() {
671   ::perfetto::protos::AndroidEnergyEstimationBreakdown_EnergyUidBreakdown* _add = _internal_add_per_uid_breakdown();
672   // @@protoc_insertion_point(field_add:perfetto.protos.AndroidEnergyEstimationBreakdown.per_uid_breakdown)
673   return _add;
674 }
675 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::perfetto::protos::AndroidEnergyEstimationBreakdown_EnergyUidBreakdown >&
per_uid_breakdown()676 AndroidEnergyEstimationBreakdown::per_uid_breakdown() const {
677   // @@protoc_insertion_point(field_list:perfetto.protos.AndroidEnergyEstimationBreakdown.per_uid_breakdown)
678   return _impl_.per_uid_breakdown_;
679 }
680 
681 #ifdef __GNUC__
682   #pragma GCC diagnostic pop
683 #endif  // __GNUC__
684 // -------------------------------------------------------------------
685 
686 
687 // @@protoc_insertion_point(namespace_scope)
688 
689 }  // namespace protos
690 }  // namespace perfetto
691 
692 // @@protoc_insertion_point(global_scope)
693 
694 #include <google/protobuf/port_undef.inc>
695 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2ftrace_2fpower_2fandroid_5fenergy_5festimation_5fbreakdown_2eproto
696