1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: sampled_profile.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_sampled_5fprofile_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_sampled_5fprofile_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3021000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
22 #include <google/protobuf/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/metadata_lite.h>
28 #include <google/protobuf/message_lite.h>
29 #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
30 #include <google/protobuf/extension_set.h>  // IWYU pragma: export
31 #include <google/protobuf/map.h>  // IWYU pragma: export
32 #include <google/protobuf/map_entry_lite.h>
33 #include <google/protobuf/map_field_lite.h>
34 #include <google/protobuf/generated_enum_util.h>
35 #include "call_stack_profile.pb.h"
36 #include "device_state.pb.h"
37 #include "execution_context.pb.h"
38 #include "perf_data.pb.h"
39 #include "perf_stat.pb.h"
40 #include "system_profile.pb.h"
41 // @@protoc_insertion_point(includes)
42 #include <google/protobuf/port_def.inc>
43 #define PROTOBUF_INTERNAL_EXPORT_sampled_5fprofile_2eproto
44 PROTOBUF_NAMESPACE_OPEN
45 namespace internal {
46 class AnyMetadata;
47 }  // namespace internal
48 PROTOBUF_NAMESPACE_CLOSE
49 
50 // Internal implementation detail -- do not use these members.
51 struct TableStruct_sampled_5fprofile_2eproto {
52   static const uint32_t offsets[];
53 };
54 namespace metrics {
55 class SampledProfile;
56 struct SampledProfileDefaultTypeInternal;
57 extern SampledProfileDefaultTypeInternal _SampledProfile_default_instance_;
58 class SampledProfile_ProcessTypesEntry_DoNotUse;
59 struct SampledProfile_ProcessTypesEntry_DoNotUseDefaultTypeInternal;
60 extern SampledProfile_ProcessTypesEntry_DoNotUseDefaultTypeInternal _SampledProfile_ProcessTypesEntry_DoNotUse_default_instance_;
61 class SampledProfile_ThreadTypesEntry_DoNotUse;
62 struct SampledProfile_ThreadTypesEntry_DoNotUseDefaultTypeInternal;
63 extern SampledProfile_ThreadTypesEntry_DoNotUseDefaultTypeInternal _SampledProfile_ThreadTypesEntry_DoNotUse_default_instance_;
64 }  // namespace metrics
65 PROTOBUF_NAMESPACE_OPEN
66 template<> ::metrics::SampledProfile* Arena::CreateMaybeMessage<::metrics::SampledProfile>(Arena*);
67 template<> ::metrics::SampledProfile_ProcessTypesEntry_DoNotUse* Arena::CreateMaybeMessage<::metrics::SampledProfile_ProcessTypesEntry_DoNotUse>(Arena*);
68 template<> ::metrics::SampledProfile_ThreadTypesEntry_DoNotUse* Arena::CreateMaybeMessage<::metrics::SampledProfile_ThreadTypesEntry_DoNotUse>(Arena*);
69 PROTOBUF_NAMESPACE_CLOSE
70 namespace metrics {
71 
72 enum SampledProfile_TriggerEvent : int {
73   SampledProfile_TriggerEvent_UNKNOWN_TRIGGER_EVENT = 0,
74   SampledProfile_TriggerEvent_PERIODIC_COLLECTION = 1,
75   SampledProfile_TriggerEvent_RESUME_FROM_SUSPEND = 2,
76   SampledProfile_TriggerEvent_RESTORE_SESSION = 3,
77   SampledProfile_TriggerEvent_PROCESS_STARTUP = 4,
78   SampledProfile_TriggerEvent_JANKY_TASK = 5,
79   SampledProfile_TriggerEvent_THREAD_HUNG = 6,
80   SampledProfile_TriggerEvent_PERIODIC_HEAP_COLLECTION = 7
81 };
82 bool SampledProfile_TriggerEvent_IsValid(int value);
83 constexpr SampledProfile_TriggerEvent SampledProfile_TriggerEvent_TriggerEvent_MIN = SampledProfile_TriggerEvent_UNKNOWN_TRIGGER_EVENT;
84 constexpr SampledProfile_TriggerEvent SampledProfile_TriggerEvent_TriggerEvent_MAX = SampledProfile_TriggerEvent_PERIODIC_HEAP_COLLECTION;
85 constexpr int SampledProfile_TriggerEvent_TriggerEvent_ARRAYSIZE = SampledProfile_TriggerEvent_TriggerEvent_MAX + 1;
86 
87 const std::string& SampledProfile_TriggerEvent_Name(SampledProfile_TriggerEvent value);
88 template<typename T>
SampledProfile_TriggerEvent_Name(T enum_t_value)89 inline const std::string& SampledProfile_TriggerEvent_Name(T enum_t_value) {
90   static_assert(::std::is_same<T, SampledProfile_TriggerEvent>::value ||
91     ::std::is_integral<T>::value,
92     "Incorrect type passed to function SampledProfile_TriggerEvent_Name.");
93   return SampledProfile_TriggerEvent_Name(static_cast<SampledProfile_TriggerEvent>(enum_t_value));
94 }
95 bool SampledProfile_TriggerEvent_Parse(
96     ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SampledProfile_TriggerEvent* value);
97 // ===================================================================
98 
99 class SampledProfile_ProcessTypesEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntryLite<SampledProfile_ProcessTypesEntry_DoNotUse,
100     uint32_t, ::metrics::Process,
101     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32,
102     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM> {
103 public:
104   typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntryLite<SampledProfile_ProcessTypesEntry_DoNotUse,
105     uint32_t, ::metrics::Process,
106     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32,
107     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM> SuperType;
108   SampledProfile_ProcessTypesEntry_DoNotUse();
109   explicit PROTOBUF_CONSTEXPR SampledProfile_ProcessTypesEntry_DoNotUse(
110       ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
111   explicit SampledProfile_ProcessTypesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
112   void MergeFrom(const SampledProfile_ProcessTypesEntry_DoNotUse& other);
internal_default_instance()113   static const SampledProfile_ProcessTypesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const SampledProfile_ProcessTypesEntry_DoNotUse*>(&_SampledProfile_ProcessTypesEntry_DoNotUse_default_instance_); }
ValidateKey(void *)114   static bool ValidateKey(void*) { return true; }
ValidateValue(void *)115   static bool ValidateValue(void*) { return true; }
116   friend struct ::TableStruct_sampled_5fprofile_2eproto;
117 };
118 
119 // -------------------------------------------------------------------
120 
121 class SampledProfile_ThreadTypesEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntryLite<SampledProfile_ThreadTypesEntry_DoNotUse,
122     uint32_t, ::metrics::Thread,
123     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32,
124     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM> {
125 public:
126   typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntryLite<SampledProfile_ThreadTypesEntry_DoNotUse,
127     uint32_t, ::metrics::Thread,
128     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32,
129     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM> SuperType;
130   SampledProfile_ThreadTypesEntry_DoNotUse();
131   explicit PROTOBUF_CONSTEXPR SampledProfile_ThreadTypesEntry_DoNotUse(
132       ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
133   explicit SampledProfile_ThreadTypesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
134   void MergeFrom(const SampledProfile_ThreadTypesEntry_DoNotUse& other);
internal_default_instance()135   static const SampledProfile_ThreadTypesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const SampledProfile_ThreadTypesEntry_DoNotUse*>(&_SampledProfile_ThreadTypesEntry_DoNotUse_default_instance_); }
ValidateKey(void *)136   static bool ValidateKey(void*) { return true; }
ValidateValue(void *)137   static bool ValidateValue(void*) { return true; }
138   friend struct ::TableStruct_sampled_5fprofile_2eproto;
139 };
140 
141 // -------------------------------------------------------------------
142 
143 class SampledProfile final :
144     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:metrics.SampledProfile) */ {
145  public:
SampledProfile()146   inline SampledProfile() : SampledProfile(nullptr) {}
147   ~SampledProfile() override;
148   explicit PROTOBUF_CONSTEXPR SampledProfile(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
149 
150   SampledProfile(const SampledProfile& from);
SampledProfile(SampledProfile && from)151   SampledProfile(SampledProfile&& from) noexcept
152     : SampledProfile() {
153     *this = ::std::move(from);
154   }
155 
156   inline SampledProfile& operator=(const SampledProfile& from) {
157     CopyFrom(from);
158     return *this;
159   }
160   inline SampledProfile& operator=(SampledProfile&& from) noexcept {
161     if (this == &from) return *this;
162     if (GetOwningArena() == from.GetOwningArena()
163   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
164         && GetOwningArena() != nullptr
165   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
166     ) {
167       InternalSwap(&from);
168     } else {
169       CopyFrom(from);
170     }
171     return *this;
172   }
173 
unknown_fields()174   inline const std::string& unknown_fields() const {
175     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
176   }
mutable_unknown_fields()177   inline std::string* mutable_unknown_fields() {
178     return _internal_metadata_.mutable_unknown_fields<std::string>();
179   }
180 
default_instance()181   static const SampledProfile& default_instance() {
182     return *internal_default_instance();
183   }
internal_default_instance()184   static inline const SampledProfile* internal_default_instance() {
185     return reinterpret_cast<const SampledProfile*>(
186                &_SampledProfile_default_instance_);
187   }
188   static constexpr int kIndexInFileMessages =
189     2;
190 
swap(SampledProfile & a,SampledProfile & b)191   friend void swap(SampledProfile& a, SampledProfile& b) {
192     a.Swap(&b);
193   }
Swap(SampledProfile * other)194   PROTOBUF_NOINLINE void Swap(SampledProfile* other) {
195     if (other == this) return;
196   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
197     if (GetOwningArena() != nullptr &&
198         GetOwningArena() == other->GetOwningArena()) {
199    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
200     if (GetOwningArena() == other->GetOwningArena()) {
201   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
202       InternalSwap(other);
203     } else {
204       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
205     }
206   }
207   void UnsafeArenaSwap(SampledProfile* other) {
208     if (other == this) return;
209     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
210     InternalSwap(other);
211   }
212 
213   // implements Message ----------------------------------------------
214 
215   SampledProfile* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
216     return CreateMaybeMessage<SampledProfile>(arena);
217   }
218   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
219   void CopyFrom(const SampledProfile& from);
220   void MergeFrom(const SampledProfile& from);
221   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
222   bool IsInitialized() const final;
223 
224   size_t ByteSizeLong() const final;
225   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
226   uint8_t* _InternalSerialize(
227       uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
228   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
229 
230   private:
231   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
232   void SharedDtor();
233   void SetCachedSize(int size) const;
234   void InternalSwap(SampledProfile* other);
235 
236   private:
237   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
238   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
239     return "metrics.SampledProfile";
240   }
241   protected:
242   explicit SampledProfile(::PROTOBUF_NAMESPACE_ID::Arena* arena,
243                        bool is_message_owned = false);
244   public:
245 
246   std::string GetTypeName() const final;
247 
248   // nested types ----------------------------------------------------
249 
250 
251   typedef SampledProfile_TriggerEvent TriggerEvent;
252   static constexpr TriggerEvent UNKNOWN_TRIGGER_EVENT =
253     SampledProfile_TriggerEvent_UNKNOWN_TRIGGER_EVENT;
254   static constexpr TriggerEvent PERIODIC_COLLECTION =
255     SampledProfile_TriggerEvent_PERIODIC_COLLECTION;
256   static constexpr TriggerEvent RESUME_FROM_SUSPEND =
257     SampledProfile_TriggerEvent_RESUME_FROM_SUSPEND;
258   static constexpr TriggerEvent RESTORE_SESSION =
259     SampledProfile_TriggerEvent_RESTORE_SESSION;
260   static constexpr TriggerEvent PROCESS_STARTUP =
261     SampledProfile_TriggerEvent_PROCESS_STARTUP;
262   static constexpr TriggerEvent JANKY_TASK =
263     SampledProfile_TriggerEvent_JANKY_TASK;
264   static constexpr TriggerEvent THREAD_HUNG =
265     SampledProfile_TriggerEvent_THREAD_HUNG;
266   static constexpr TriggerEvent PERIODIC_HEAP_COLLECTION =
267     SampledProfile_TriggerEvent_PERIODIC_HEAP_COLLECTION;
268   static inline bool TriggerEvent_IsValid(int value) {
269     return SampledProfile_TriggerEvent_IsValid(value);
270   }
271   static constexpr TriggerEvent TriggerEvent_MIN =
272     SampledProfile_TriggerEvent_TriggerEvent_MIN;
273   static constexpr TriggerEvent TriggerEvent_MAX =
274     SampledProfile_TriggerEvent_TriggerEvent_MAX;
275   static constexpr int TriggerEvent_ARRAYSIZE =
276     SampledProfile_TriggerEvent_TriggerEvent_ARRAYSIZE;
277   template<typename T>
278   static inline const std::string& TriggerEvent_Name(T enum_t_value) {
279     static_assert(::std::is_same<T, TriggerEvent>::value ||
280       ::std::is_integral<T>::value,
281       "Incorrect type passed to function TriggerEvent_Name.");
282     return SampledProfile_TriggerEvent_Name(enum_t_value);
283   }
284   static inline bool TriggerEvent_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
285       TriggerEvent* value) {
286     return SampledProfile_TriggerEvent_Parse(name, value);
287   }
288 
289   // accessors -------------------------------------------------------
290 
291   enum : int {
292     kProcessTypesFieldNumber = 13,
293     kThreadTypesFieldNumber = 14,
294     kCpuMaxFrequencyMhzFieldNumber = 15,
295     kLacrosPidsFieldNumber = 18,
296     kLacrosVersionFieldNumber = 19,
297     kPerfDataFieldNumber = 4,
298     kCallStackProfileFieldNumber = 9,
299     kPerfStatFieldNumber = 10,
300     kMsAfterBootFieldNumber = 2,
301     kMsAfterLoginFieldNumber = 3,
302     kTriggerEventFieldNumber = 1,
303     kNumTabsRestoredFieldNumber = 7,
304     kSuspendDurationMsFieldNumber = 5,
305     kMsAfterResumeFieldNumber = 6,
306     kMsAfterRestoreFieldNumber = 8,
307     kProcessFieldNumber = 11,
308     kThreadFieldNumber = 12,
309     kPsiCpuLast10SPctFieldNumber = 16,
310     kPsiCpuLast60SPctFieldNumber = 17,
311     kLacrosChannelFieldNumber = 20,
312     kThermalStateFieldNumber = 21,
313     kCpuSpeedLimitPercentFieldNumber = 22,
314   };
315   // map<uint32, .metrics.Process> process_types = 13;
316   int process_types_size() const;
317   private:
318   int _internal_process_types_size() const;
319   public:
320   void clear_process_types();
321   private:
322   const ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, ::metrics::Process >&
323       _internal_process_types() const;
324   ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, ::metrics::Process >*
325       _internal_mutable_process_types();
326   public:
327   const ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, ::metrics::Process >&
328       process_types() const;
329   ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, ::metrics::Process >*
330       mutable_process_types();
331 
332   // map<uint32, .metrics.Thread> thread_types = 14;
333   int thread_types_size() const;
334   private:
335   int _internal_thread_types_size() const;
336   public:
337   void clear_thread_types();
338   private:
339   const ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, ::metrics::Thread >&
340       _internal_thread_types() const;
341   ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, ::metrics::Thread >*
342       _internal_mutable_thread_types();
343   public:
344   const ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, ::metrics::Thread >&
345       thread_types() const;
346   ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, ::metrics::Thread >*
347       mutable_thread_types();
348 
349   // repeated uint32 cpu_max_frequency_mhz = 15;
350   int cpu_max_frequency_mhz_size() const;
351   private:
352   int _internal_cpu_max_frequency_mhz_size() const;
353   public:
354   void clear_cpu_max_frequency_mhz();
355   private:
356   uint32_t _internal_cpu_max_frequency_mhz(int index) const;
357   const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
358       _internal_cpu_max_frequency_mhz() const;
359   void _internal_add_cpu_max_frequency_mhz(uint32_t value);
360   ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
361       _internal_mutable_cpu_max_frequency_mhz();
362   public:
363   uint32_t cpu_max_frequency_mhz(int index) const;
364   void set_cpu_max_frequency_mhz(int index, uint32_t value);
365   void add_cpu_max_frequency_mhz(uint32_t value);
366   const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
367       cpu_max_frequency_mhz() const;
368   ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
369       mutable_cpu_max_frequency_mhz();
370 
371   // repeated uint32 lacros_pids = 18 [packed = true];
372   int lacros_pids_size() const;
373   private:
374   int _internal_lacros_pids_size() const;
375   public:
376   void clear_lacros_pids();
377   private:
378   uint32_t _internal_lacros_pids(int index) const;
379   const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
380       _internal_lacros_pids() const;
381   void _internal_add_lacros_pids(uint32_t value);
382   ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
383       _internal_mutable_lacros_pids();
384   public:
385   uint32_t lacros_pids(int index) const;
386   void set_lacros_pids(int index, uint32_t value);
387   void add_lacros_pids(uint32_t value);
388   const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
389       lacros_pids() const;
390   ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
391       mutable_lacros_pids();
392 
393   // optional string lacros_version = 19;
394   bool has_lacros_version() const;
395   private:
396   bool _internal_has_lacros_version() const;
397   public:
398   void clear_lacros_version();
399   const std::string& lacros_version() const;
400   template <typename ArgT0 = const std::string&, typename... ArgT>
401   void set_lacros_version(ArgT0&& arg0, ArgT... args);
402   std::string* mutable_lacros_version();
403   PROTOBUF_NODISCARD std::string* release_lacros_version();
404   void set_allocated_lacros_version(std::string* lacros_version);
405   private:
406   const std::string& _internal_lacros_version() const;
407   inline PROTOBUF_ALWAYS_INLINE void _internal_set_lacros_version(const std::string& value);
408   std::string* _internal_mutable_lacros_version();
409   public:
410 
411   // optional .metrics.PerfDataProto perf_data = 4;
412   bool has_perf_data() const;
413   private:
414   bool _internal_has_perf_data() const;
415   public:
416   void clear_perf_data();
417   const ::metrics::PerfDataProto& perf_data() const;
418   PROTOBUF_NODISCARD ::metrics::PerfDataProto* release_perf_data();
419   ::metrics::PerfDataProto* mutable_perf_data();
420   void set_allocated_perf_data(::metrics::PerfDataProto* perf_data);
421   private:
422   const ::metrics::PerfDataProto& _internal_perf_data() const;
423   ::metrics::PerfDataProto* _internal_mutable_perf_data();
424   public:
425   void unsafe_arena_set_allocated_perf_data(
426       ::metrics::PerfDataProto* perf_data);
427   ::metrics::PerfDataProto* unsafe_arena_release_perf_data();
428 
429   // optional .metrics.CallStackProfile call_stack_profile = 9;
430   bool has_call_stack_profile() const;
431   private:
432   bool _internal_has_call_stack_profile() const;
433   public:
434   void clear_call_stack_profile();
435   const ::metrics::CallStackProfile& call_stack_profile() const;
436   PROTOBUF_NODISCARD ::metrics::CallStackProfile* release_call_stack_profile();
437   ::metrics::CallStackProfile* mutable_call_stack_profile();
438   void set_allocated_call_stack_profile(::metrics::CallStackProfile* call_stack_profile);
439   private:
440   const ::metrics::CallStackProfile& _internal_call_stack_profile() const;
441   ::metrics::CallStackProfile* _internal_mutable_call_stack_profile();
442   public:
443   void unsafe_arena_set_allocated_call_stack_profile(
444       ::metrics::CallStackProfile* call_stack_profile);
445   ::metrics::CallStackProfile* unsafe_arena_release_call_stack_profile();
446 
447   // optional .metrics.PerfStatProto perf_stat = 10;
448   bool has_perf_stat() const;
449   private:
450   bool _internal_has_perf_stat() const;
451   public:
452   void clear_perf_stat();
453   const ::metrics::PerfStatProto& perf_stat() const;
454   PROTOBUF_NODISCARD ::metrics::PerfStatProto* release_perf_stat();
455   ::metrics::PerfStatProto* mutable_perf_stat();
456   void set_allocated_perf_stat(::metrics::PerfStatProto* perf_stat);
457   private:
458   const ::metrics::PerfStatProto& _internal_perf_stat() const;
459   ::metrics::PerfStatProto* _internal_mutable_perf_stat();
460   public:
461   void unsafe_arena_set_allocated_perf_stat(
462       ::metrics::PerfStatProto* perf_stat);
463   ::metrics::PerfStatProto* unsafe_arena_release_perf_stat();
464 
465   // optional int64 ms_after_boot = 2;
466   bool has_ms_after_boot() const;
467   private:
468   bool _internal_has_ms_after_boot() const;
469   public:
470   void clear_ms_after_boot();
471   int64_t ms_after_boot() const;
472   void set_ms_after_boot(int64_t value);
473   private:
474   int64_t _internal_ms_after_boot() const;
475   void _internal_set_ms_after_boot(int64_t value);
476   public:
477 
478   // optional int64 ms_after_login = 3;
479   bool has_ms_after_login() const;
480   private:
481   bool _internal_has_ms_after_login() const;
482   public:
483   void clear_ms_after_login();
484   int64_t ms_after_login() const;
485   void set_ms_after_login(int64_t value);
486   private:
487   int64_t _internal_ms_after_login() const;
488   void _internal_set_ms_after_login(int64_t value);
489   public:
490 
491   // optional .metrics.SampledProfile.TriggerEvent trigger_event = 1;
492   bool has_trigger_event() const;
493   private:
494   bool _internal_has_trigger_event() const;
495   public:
496   void clear_trigger_event();
497   ::metrics::SampledProfile_TriggerEvent trigger_event() const;
498   void set_trigger_event(::metrics::SampledProfile_TriggerEvent value);
499   private:
500   ::metrics::SampledProfile_TriggerEvent _internal_trigger_event() const;
501   void _internal_set_trigger_event(::metrics::SampledProfile_TriggerEvent value);
502   public:
503 
504   // optional int32 num_tabs_restored = 7;
505   bool has_num_tabs_restored() const;
506   private:
507   bool _internal_has_num_tabs_restored() const;
508   public:
509   void clear_num_tabs_restored();
510   int32_t num_tabs_restored() const;
511   void set_num_tabs_restored(int32_t value);
512   private:
513   int32_t _internal_num_tabs_restored() const;
514   void _internal_set_num_tabs_restored(int32_t value);
515   public:
516 
517   // optional int64 suspend_duration_ms = 5;
518   bool has_suspend_duration_ms() const;
519   private:
520   bool _internal_has_suspend_duration_ms() const;
521   public:
522   void clear_suspend_duration_ms();
523   int64_t suspend_duration_ms() const;
524   void set_suspend_duration_ms(int64_t value);
525   private:
526   int64_t _internal_suspend_duration_ms() const;
527   void _internal_set_suspend_duration_ms(int64_t value);
528   public:
529 
530   // optional int64 ms_after_resume = 6;
531   bool has_ms_after_resume() const;
532   private:
533   bool _internal_has_ms_after_resume() const;
534   public:
535   void clear_ms_after_resume();
536   int64_t ms_after_resume() const;
537   void set_ms_after_resume(int64_t value);
538   private:
539   int64_t _internal_ms_after_resume() const;
540   void _internal_set_ms_after_resume(int64_t value);
541   public:
542 
543   // optional int64 ms_after_restore = 8;
544   bool has_ms_after_restore() const;
545   private:
546   bool _internal_has_ms_after_restore() const;
547   public:
548   void clear_ms_after_restore();
549   int64_t ms_after_restore() const;
550   void set_ms_after_restore(int64_t value);
551   private:
552   int64_t _internal_ms_after_restore() const;
553   void _internal_set_ms_after_restore(int64_t value);
554   public:
555 
556   // optional .metrics.Process process = 11;
557   bool has_process() const;
558   private:
559   bool _internal_has_process() const;
560   public:
561   void clear_process();
562   ::metrics::Process process() const;
563   void set_process(::metrics::Process value);
564   private:
565   ::metrics::Process _internal_process() const;
566   void _internal_set_process(::metrics::Process value);
567   public:
568 
569   // optional .metrics.Thread thread = 12;
570   bool has_thread() const;
571   private:
572   bool _internal_has_thread() const;
573   public:
574   void clear_thread();
575   ::metrics::Thread thread() const;
576   void set_thread(::metrics::Thread value);
577   private:
578   ::metrics::Thread _internal_thread() const;
579   void _internal_set_thread(::metrics::Thread value);
580   public:
581 
582   // optional float psi_cpu_last_10s_pct = 16;
583   bool has_psi_cpu_last_10s_pct() const;
584   private:
585   bool _internal_has_psi_cpu_last_10s_pct() const;
586   public:
587   void clear_psi_cpu_last_10s_pct();
588   float psi_cpu_last_10s_pct() const;
589   void set_psi_cpu_last_10s_pct(float value);
590   private:
591   float _internal_psi_cpu_last_10s_pct() const;
592   void _internal_set_psi_cpu_last_10s_pct(float value);
593   public:
594 
595   // optional float psi_cpu_last_60s_pct = 17;
596   bool has_psi_cpu_last_60s_pct() const;
597   private:
598   bool _internal_has_psi_cpu_last_60s_pct() const;
599   public:
600   void clear_psi_cpu_last_60s_pct();
601   float psi_cpu_last_60s_pct() const;
602   void set_psi_cpu_last_60s_pct(float value);
603   private:
604   float _internal_psi_cpu_last_60s_pct() const;
605   void _internal_set_psi_cpu_last_60s_pct(float value);
606   public:
607 
608   // optional .metrics.SystemProfileProto.Channel lacros_channel = 20;
609   bool has_lacros_channel() const;
610   private:
611   bool _internal_has_lacros_channel() const;
612   public:
613   void clear_lacros_channel();
614   ::metrics::SystemProfileProto_Channel lacros_channel() const;
615   void set_lacros_channel(::metrics::SystemProfileProto_Channel value);
616   private:
617   ::metrics::SystemProfileProto_Channel _internal_lacros_channel() const;
618   void _internal_set_lacros_channel(::metrics::SystemProfileProto_Channel value);
619   public:
620 
621   // optional .metrics.ThermalState thermal_state = 21;
622   bool has_thermal_state() const;
623   private:
624   bool _internal_has_thermal_state() const;
625   public:
626   void clear_thermal_state();
627   ::metrics::ThermalState thermal_state() const;
628   void set_thermal_state(::metrics::ThermalState value);
629   private:
630   ::metrics::ThermalState _internal_thermal_state() const;
631   void _internal_set_thermal_state(::metrics::ThermalState value);
632   public:
633 
634   // optional int32 cpu_speed_limit_percent = 22;
635   bool has_cpu_speed_limit_percent() const;
636   private:
637   bool _internal_has_cpu_speed_limit_percent() const;
638   public:
639   void clear_cpu_speed_limit_percent();
640   int32_t cpu_speed_limit_percent() const;
641   void set_cpu_speed_limit_percent(int32_t value);
642   private:
643   int32_t _internal_cpu_speed_limit_percent() const;
644   void _internal_set_cpu_speed_limit_percent(int32_t value);
645   public:
646 
647   // @@protoc_insertion_point(class_scope:metrics.SampledProfile)
648  private:
649   class _Internal;
650 
651   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
652   typedef void InternalArenaConstructable_;
653   typedef void DestructorSkippable_;
654   struct Impl_ {
655     ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
656     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
657     ::PROTOBUF_NAMESPACE_ID::internal::MapFieldLite<
658         SampledProfile_ProcessTypesEntry_DoNotUse,
659         uint32_t, ::metrics::Process,
660         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32,
661         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM> process_types_;
662     ::PROTOBUF_NAMESPACE_ID::internal::MapFieldLite<
663         SampledProfile_ThreadTypesEntry_DoNotUse,
664         uint32_t, ::metrics::Thread,
665         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32,
666         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM> thread_types_;
667     ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t > cpu_max_frequency_mhz_;
668     ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t > lacros_pids_;
669     mutable std::atomic<int> _lacros_pids_cached_byte_size_;
670     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr lacros_version_;
671     ::metrics::PerfDataProto* perf_data_;
672     ::metrics::CallStackProfile* call_stack_profile_;
673     ::metrics::PerfStatProto* perf_stat_;
674     int64_t ms_after_boot_;
675     int64_t ms_after_login_;
676     int trigger_event_;
677     int32_t num_tabs_restored_;
678     int64_t suspend_duration_ms_;
679     int64_t ms_after_resume_;
680     int64_t ms_after_restore_;
681     int process_;
682     int thread_;
683     float psi_cpu_last_10s_pct_;
684     float psi_cpu_last_60s_pct_;
685     int lacros_channel_;
686     int thermal_state_;
687     int32_t cpu_speed_limit_percent_;
688   };
689   union { Impl_ _impl_; };
690   friend struct ::TableStruct_sampled_5fprofile_2eproto;
691 };
692 // ===================================================================
693 
694 
695 // ===================================================================
696 
697 #ifdef __GNUC__
698   #pragma GCC diagnostic push
699   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
700 #endif  // __GNUC__
701 // -------------------------------------------------------------------
702 
703 // -------------------------------------------------------------------
704 
705 // SampledProfile
706 
707 // optional .metrics.SampledProfile.TriggerEvent trigger_event = 1;
_internal_has_trigger_event()708 inline bool SampledProfile::_internal_has_trigger_event() const {
709   bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
710   return value;
711 }
has_trigger_event()712 inline bool SampledProfile::has_trigger_event() const {
713   return _internal_has_trigger_event();
714 }
clear_trigger_event()715 inline void SampledProfile::clear_trigger_event() {
716   _impl_.trigger_event_ = 0;
717   _impl_._has_bits_[0] &= ~0x00000040u;
718 }
_internal_trigger_event()719 inline ::metrics::SampledProfile_TriggerEvent SampledProfile::_internal_trigger_event() const {
720   return static_cast< ::metrics::SampledProfile_TriggerEvent >(_impl_.trigger_event_);
721 }
trigger_event()722 inline ::metrics::SampledProfile_TriggerEvent SampledProfile::trigger_event() const {
723   // @@protoc_insertion_point(field_get:metrics.SampledProfile.trigger_event)
724   return _internal_trigger_event();
725 }
_internal_set_trigger_event(::metrics::SampledProfile_TriggerEvent value)726 inline void SampledProfile::_internal_set_trigger_event(::metrics::SampledProfile_TriggerEvent value) {
727   assert(::metrics::SampledProfile_TriggerEvent_IsValid(value));
728   _impl_._has_bits_[0] |= 0x00000040u;
729   _impl_.trigger_event_ = value;
730 }
set_trigger_event(::metrics::SampledProfile_TriggerEvent value)731 inline void SampledProfile::set_trigger_event(::metrics::SampledProfile_TriggerEvent value) {
732   _internal_set_trigger_event(value);
733   // @@protoc_insertion_point(field_set:metrics.SampledProfile.trigger_event)
734 }
735 
736 // optional .metrics.Process process = 11;
_internal_has_process()737 inline bool SampledProfile::_internal_has_process() const {
738   bool value = (_impl_._has_bits_[0] & 0x00000800u) != 0;
739   return value;
740 }
has_process()741 inline bool SampledProfile::has_process() const {
742   return _internal_has_process();
743 }
clear_process()744 inline void SampledProfile::clear_process() {
745   _impl_.process_ = 0;
746   _impl_._has_bits_[0] &= ~0x00000800u;
747 }
_internal_process()748 inline ::metrics::Process SampledProfile::_internal_process() const {
749   return static_cast< ::metrics::Process >(_impl_.process_);
750 }
process()751 inline ::metrics::Process SampledProfile::process() const {
752   // @@protoc_insertion_point(field_get:metrics.SampledProfile.process)
753   return _internal_process();
754 }
_internal_set_process(::metrics::Process value)755 inline void SampledProfile::_internal_set_process(::metrics::Process value) {
756   assert(::metrics::Process_IsValid(value));
757   _impl_._has_bits_[0] |= 0x00000800u;
758   _impl_.process_ = value;
759 }
set_process(::metrics::Process value)760 inline void SampledProfile::set_process(::metrics::Process value) {
761   _internal_set_process(value);
762   // @@protoc_insertion_point(field_set:metrics.SampledProfile.process)
763 }
764 
765 // optional .metrics.Thread thread = 12;
_internal_has_thread()766 inline bool SampledProfile::_internal_has_thread() const {
767   bool value = (_impl_._has_bits_[0] & 0x00001000u) != 0;
768   return value;
769 }
has_thread()770 inline bool SampledProfile::has_thread() const {
771   return _internal_has_thread();
772 }
clear_thread()773 inline void SampledProfile::clear_thread() {
774   _impl_.thread_ = 0;
775   _impl_._has_bits_[0] &= ~0x00001000u;
776 }
_internal_thread()777 inline ::metrics::Thread SampledProfile::_internal_thread() const {
778   return static_cast< ::metrics::Thread >(_impl_.thread_);
779 }
thread()780 inline ::metrics::Thread SampledProfile::thread() const {
781   // @@protoc_insertion_point(field_get:metrics.SampledProfile.thread)
782   return _internal_thread();
783 }
_internal_set_thread(::metrics::Thread value)784 inline void SampledProfile::_internal_set_thread(::metrics::Thread value) {
785   assert(::metrics::Thread_IsValid(value));
786   _impl_._has_bits_[0] |= 0x00001000u;
787   _impl_.thread_ = value;
788 }
set_thread(::metrics::Thread value)789 inline void SampledProfile::set_thread(::metrics::Thread value) {
790   _internal_set_thread(value);
791   // @@protoc_insertion_point(field_set:metrics.SampledProfile.thread)
792 }
793 
794 // map<uint32, .metrics.Process> process_types = 13;
_internal_process_types_size()795 inline int SampledProfile::_internal_process_types_size() const {
796   return _impl_.process_types_.size();
797 }
process_types_size()798 inline int SampledProfile::process_types_size() const {
799   return _internal_process_types_size();
800 }
clear_process_types()801 inline void SampledProfile::clear_process_types() {
802   _impl_.process_types_.Clear();
803 }
804 inline const ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, ::metrics::Process >&
_internal_process_types()805 SampledProfile::_internal_process_types() const {
806   return _impl_.process_types_.GetMap();
807 }
808 inline const ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, ::metrics::Process >&
process_types()809 SampledProfile::process_types() const {
810   // @@protoc_insertion_point(field_map:metrics.SampledProfile.process_types)
811   return _internal_process_types();
812 }
813 inline ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, ::metrics::Process >*
_internal_mutable_process_types()814 SampledProfile::_internal_mutable_process_types() {
815   return _impl_.process_types_.MutableMap();
816 }
817 inline ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, ::metrics::Process >*
mutable_process_types()818 SampledProfile::mutable_process_types() {
819   // @@protoc_insertion_point(field_mutable_map:metrics.SampledProfile.process_types)
820   return _internal_mutable_process_types();
821 }
822 
823 // repeated uint32 lacros_pids = 18 [packed = true];
_internal_lacros_pids_size()824 inline int SampledProfile::_internal_lacros_pids_size() const {
825   return _impl_.lacros_pids_.size();
826 }
lacros_pids_size()827 inline int SampledProfile::lacros_pids_size() const {
828   return _internal_lacros_pids_size();
829 }
clear_lacros_pids()830 inline void SampledProfile::clear_lacros_pids() {
831   _impl_.lacros_pids_.Clear();
832 }
_internal_lacros_pids(int index)833 inline uint32_t SampledProfile::_internal_lacros_pids(int index) const {
834   return _impl_.lacros_pids_.Get(index);
835 }
lacros_pids(int index)836 inline uint32_t SampledProfile::lacros_pids(int index) const {
837   // @@protoc_insertion_point(field_get:metrics.SampledProfile.lacros_pids)
838   return _internal_lacros_pids(index);
839 }
set_lacros_pids(int index,uint32_t value)840 inline void SampledProfile::set_lacros_pids(int index, uint32_t value) {
841   _impl_.lacros_pids_.Set(index, value);
842   // @@protoc_insertion_point(field_set:metrics.SampledProfile.lacros_pids)
843 }
_internal_add_lacros_pids(uint32_t value)844 inline void SampledProfile::_internal_add_lacros_pids(uint32_t value) {
845   _impl_.lacros_pids_.Add(value);
846 }
add_lacros_pids(uint32_t value)847 inline void SampledProfile::add_lacros_pids(uint32_t value) {
848   _internal_add_lacros_pids(value);
849   // @@protoc_insertion_point(field_add:metrics.SampledProfile.lacros_pids)
850 }
851 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
_internal_lacros_pids()852 SampledProfile::_internal_lacros_pids() const {
853   return _impl_.lacros_pids_;
854 }
855 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
lacros_pids()856 SampledProfile::lacros_pids() const {
857   // @@protoc_insertion_point(field_list:metrics.SampledProfile.lacros_pids)
858   return _internal_lacros_pids();
859 }
860 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
_internal_mutable_lacros_pids()861 SampledProfile::_internal_mutable_lacros_pids() {
862   return &_impl_.lacros_pids_;
863 }
864 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
mutable_lacros_pids()865 SampledProfile::mutable_lacros_pids() {
866   // @@protoc_insertion_point(field_mutable_list:metrics.SampledProfile.lacros_pids)
867   return _internal_mutable_lacros_pids();
868 }
869 
870 // optional string lacros_version = 19;
_internal_has_lacros_version()871 inline bool SampledProfile::_internal_has_lacros_version() const {
872   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
873   return value;
874 }
has_lacros_version()875 inline bool SampledProfile::has_lacros_version() const {
876   return _internal_has_lacros_version();
877 }
clear_lacros_version()878 inline void SampledProfile::clear_lacros_version() {
879   _impl_.lacros_version_.ClearToEmpty();
880   _impl_._has_bits_[0] &= ~0x00000001u;
881 }
lacros_version()882 inline const std::string& SampledProfile::lacros_version() const {
883   // @@protoc_insertion_point(field_get:metrics.SampledProfile.lacros_version)
884   return _internal_lacros_version();
885 }
886 template <typename ArgT0, typename... ArgT>
887 inline PROTOBUF_ALWAYS_INLINE
set_lacros_version(ArgT0 && arg0,ArgT...args)888 void SampledProfile::set_lacros_version(ArgT0&& arg0, ArgT... args) {
889  _impl_._has_bits_[0] |= 0x00000001u;
890  _impl_.lacros_version_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
891   // @@protoc_insertion_point(field_set:metrics.SampledProfile.lacros_version)
892 }
mutable_lacros_version()893 inline std::string* SampledProfile::mutable_lacros_version() {
894   std::string* _s = _internal_mutable_lacros_version();
895   // @@protoc_insertion_point(field_mutable:metrics.SampledProfile.lacros_version)
896   return _s;
897 }
_internal_lacros_version()898 inline const std::string& SampledProfile::_internal_lacros_version() const {
899   return _impl_.lacros_version_.Get();
900 }
_internal_set_lacros_version(const std::string & value)901 inline void SampledProfile::_internal_set_lacros_version(const std::string& value) {
902   _impl_._has_bits_[0] |= 0x00000001u;
903   _impl_.lacros_version_.Set(value, GetArenaForAllocation());
904 }
_internal_mutable_lacros_version()905 inline std::string* SampledProfile::_internal_mutable_lacros_version() {
906   _impl_._has_bits_[0] |= 0x00000001u;
907   return _impl_.lacros_version_.Mutable(GetArenaForAllocation());
908 }
release_lacros_version()909 inline std::string* SampledProfile::release_lacros_version() {
910   // @@protoc_insertion_point(field_release:metrics.SampledProfile.lacros_version)
911   if (!_internal_has_lacros_version()) {
912     return nullptr;
913   }
914   _impl_._has_bits_[0] &= ~0x00000001u;
915   auto* p = _impl_.lacros_version_.Release();
916 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
917   if (_impl_.lacros_version_.IsDefault()) {
918     _impl_.lacros_version_.Set("", GetArenaForAllocation());
919   }
920 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
921   return p;
922 }
set_allocated_lacros_version(std::string * lacros_version)923 inline void SampledProfile::set_allocated_lacros_version(std::string* lacros_version) {
924   if (lacros_version != nullptr) {
925     _impl_._has_bits_[0] |= 0x00000001u;
926   } else {
927     _impl_._has_bits_[0] &= ~0x00000001u;
928   }
929   _impl_.lacros_version_.SetAllocated(lacros_version, GetArenaForAllocation());
930 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
931   if (_impl_.lacros_version_.IsDefault()) {
932     _impl_.lacros_version_.Set("", GetArenaForAllocation());
933   }
934 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
935   // @@protoc_insertion_point(field_set_allocated:metrics.SampledProfile.lacros_version)
936 }
937 
938 // optional .metrics.SystemProfileProto.Channel lacros_channel = 20;
_internal_has_lacros_channel()939 inline bool SampledProfile::_internal_has_lacros_channel() const {
940   bool value = (_impl_._has_bits_[0] & 0x00008000u) != 0;
941   return value;
942 }
has_lacros_channel()943 inline bool SampledProfile::has_lacros_channel() const {
944   return _internal_has_lacros_channel();
945 }
clear_lacros_channel()946 inline void SampledProfile::clear_lacros_channel() {
947   _impl_.lacros_channel_ = 0;
948   _impl_._has_bits_[0] &= ~0x00008000u;
949 }
_internal_lacros_channel()950 inline ::metrics::SystemProfileProto_Channel SampledProfile::_internal_lacros_channel() const {
951   return static_cast< ::metrics::SystemProfileProto_Channel >(_impl_.lacros_channel_);
952 }
lacros_channel()953 inline ::metrics::SystemProfileProto_Channel SampledProfile::lacros_channel() const {
954   // @@protoc_insertion_point(field_get:metrics.SampledProfile.lacros_channel)
955   return _internal_lacros_channel();
956 }
_internal_set_lacros_channel(::metrics::SystemProfileProto_Channel value)957 inline void SampledProfile::_internal_set_lacros_channel(::metrics::SystemProfileProto_Channel value) {
958   assert(::metrics::SystemProfileProto_Channel_IsValid(value));
959   _impl_._has_bits_[0] |= 0x00008000u;
960   _impl_.lacros_channel_ = value;
961 }
set_lacros_channel(::metrics::SystemProfileProto_Channel value)962 inline void SampledProfile::set_lacros_channel(::metrics::SystemProfileProto_Channel value) {
963   _internal_set_lacros_channel(value);
964   // @@protoc_insertion_point(field_set:metrics.SampledProfile.lacros_channel)
965 }
966 
967 // map<uint32, .metrics.Thread> thread_types = 14;
_internal_thread_types_size()968 inline int SampledProfile::_internal_thread_types_size() const {
969   return _impl_.thread_types_.size();
970 }
thread_types_size()971 inline int SampledProfile::thread_types_size() const {
972   return _internal_thread_types_size();
973 }
clear_thread_types()974 inline void SampledProfile::clear_thread_types() {
975   _impl_.thread_types_.Clear();
976 }
977 inline const ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, ::metrics::Thread >&
_internal_thread_types()978 SampledProfile::_internal_thread_types() const {
979   return _impl_.thread_types_.GetMap();
980 }
981 inline const ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, ::metrics::Thread >&
thread_types()982 SampledProfile::thread_types() const {
983   // @@protoc_insertion_point(field_map:metrics.SampledProfile.thread_types)
984   return _internal_thread_types();
985 }
986 inline ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, ::metrics::Thread >*
_internal_mutable_thread_types()987 SampledProfile::_internal_mutable_thread_types() {
988   return _impl_.thread_types_.MutableMap();
989 }
990 inline ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, ::metrics::Thread >*
mutable_thread_types()991 SampledProfile::mutable_thread_types() {
992   // @@protoc_insertion_point(field_mutable_map:metrics.SampledProfile.thread_types)
993   return _internal_mutable_thread_types();
994 }
995 
996 // optional int64 ms_after_boot = 2;
_internal_has_ms_after_boot()997 inline bool SampledProfile::_internal_has_ms_after_boot() const {
998   bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
999   return value;
1000 }
has_ms_after_boot()1001 inline bool SampledProfile::has_ms_after_boot() const {
1002   return _internal_has_ms_after_boot();
1003 }
clear_ms_after_boot()1004 inline void SampledProfile::clear_ms_after_boot() {
1005   _impl_.ms_after_boot_ = int64_t{0};
1006   _impl_._has_bits_[0] &= ~0x00000010u;
1007 }
_internal_ms_after_boot()1008 inline int64_t SampledProfile::_internal_ms_after_boot() const {
1009   return _impl_.ms_after_boot_;
1010 }
ms_after_boot()1011 inline int64_t SampledProfile::ms_after_boot() const {
1012   // @@protoc_insertion_point(field_get:metrics.SampledProfile.ms_after_boot)
1013   return _internal_ms_after_boot();
1014 }
_internal_set_ms_after_boot(int64_t value)1015 inline void SampledProfile::_internal_set_ms_after_boot(int64_t value) {
1016   _impl_._has_bits_[0] |= 0x00000010u;
1017   _impl_.ms_after_boot_ = value;
1018 }
set_ms_after_boot(int64_t value)1019 inline void SampledProfile::set_ms_after_boot(int64_t value) {
1020   _internal_set_ms_after_boot(value);
1021   // @@protoc_insertion_point(field_set:metrics.SampledProfile.ms_after_boot)
1022 }
1023 
1024 // optional int64 ms_after_login = 3;
_internal_has_ms_after_login()1025 inline bool SampledProfile::_internal_has_ms_after_login() const {
1026   bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
1027   return value;
1028 }
has_ms_after_login()1029 inline bool SampledProfile::has_ms_after_login() const {
1030   return _internal_has_ms_after_login();
1031 }
clear_ms_after_login()1032 inline void SampledProfile::clear_ms_after_login() {
1033   _impl_.ms_after_login_ = int64_t{0};
1034   _impl_._has_bits_[0] &= ~0x00000020u;
1035 }
_internal_ms_after_login()1036 inline int64_t SampledProfile::_internal_ms_after_login() const {
1037   return _impl_.ms_after_login_;
1038 }
ms_after_login()1039 inline int64_t SampledProfile::ms_after_login() const {
1040   // @@protoc_insertion_point(field_get:metrics.SampledProfile.ms_after_login)
1041   return _internal_ms_after_login();
1042 }
_internal_set_ms_after_login(int64_t value)1043 inline void SampledProfile::_internal_set_ms_after_login(int64_t value) {
1044   _impl_._has_bits_[0] |= 0x00000020u;
1045   _impl_.ms_after_login_ = value;
1046 }
set_ms_after_login(int64_t value)1047 inline void SampledProfile::set_ms_after_login(int64_t value) {
1048   _internal_set_ms_after_login(value);
1049   // @@protoc_insertion_point(field_set:metrics.SampledProfile.ms_after_login)
1050 }
1051 
1052 // optional int64 suspend_duration_ms = 5;
_internal_has_suspend_duration_ms()1053 inline bool SampledProfile::_internal_has_suspend_duration_ms() const {
1054   bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0;
1055   return value;
1056 }
has_suspend_duration_ms()1057 inline bool SampledProfile::has_suspend_duration_ms() const {
1058   return _internal_has_suspend_duration_ms();
1059 }
clear_suspend_duration_ms()1060 inline void SampledProfile::clear_suspend_duration_ms() {
1061   _impl_.suspend_duration_ms_ = int64_t{0};
1062   _impl_._has_bits_[0] &= ~0x00000100u;
1063 }
_internal_suspend_duration_ms()1064 inline int64_t SampledProfile::_internal_suspend_duration_ms() const {
1065   return _impl_.suspend_duration_ms_;
1066 }
suspend_duration_ms()1067 inline int64_t SampledProfile::suspend_duration_ms() const {
1068   // @@protoc_insertion_point(field_get:metrics.SampledProfile.suspend_duration_ms)
1069   return _internal_suspend_duration_ms();
1070 }
_internal_set_suspend_duration_ms(int64_t value)1071 inline void SampledProfile::_internal_set_suspend_duration_ms(int64_t value) {
1072   _impl_._has_bits_[0] |= 0x00000100u;
1073   _impl_.suspend_duration_ms_ = value;
1074 }
set_suspend_duration_ms(int64_t value)1075 inline void SampledProfile::set_suspend_duration_ms(int64_t value) {
1076   _internal_set_suspend_duration_ms(value);
1077   // @@protoc_insertion_point(field_set:metrics.SampledProfile.suspend_duration_ms)
1078 }
1079 
1080 // optional int64 ms_after_resume = 6;
_internal_has_ms_after_resume()1081 inline bool SampledProfile::_internal_has_ms_after_resume() const {
1082   bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0;
1083   return value;
1084 }
has_ms_after_resume()1085 inline bool SampledProfile::has_ms_after_resume() const {
1086   return _internal_has_ms_after_resume();
1087 }
clear_ms_after_resume()1088 inline void SampledProfile::clear_ms_after_resume() {
1089   _impl_.ms_after_resume_ = int64_t{0};
1090   _impl_._has_bits_[0] &= ~0x00000200u;
1091 }
_internal_ms_after_resume()1092 inline int64_t SampledProfile::_internal_ms_after_resume() const {
1093   return _impl_.ms_after_resume_;
1094 }
ms_after_resume()1095 inline int64_t SampledProfile::ms_after_resume() const {
1096   // @@protoc_insertion_point(field_get:metrics.SampledProfile.ms_after_resume)
1097   return _internal_ms_after_resume();
1098 }
_internal_set_ms_after_resume(int64_t value)1099 inline void SampledProfile::_internal_set_ms_after_resume(int64_t value) {
1100   _impl_._has_bits_[0] |= 0x00000200u;
1101   _impl_.ms_after_resume_ = value;
1102 }
set_ms_after_resume(int64_t value)1103 inline void SampledProfile::set_ms_after_resume(int64_t value) {
1104   _internal_set_ms_after_resume(value);
1105   // @@protoc_insertion_point(field_set:metrics.SampledProfile.ms_after_resume)
1106 }
1107 
1108 // optional int32 num_tabs_restored = 7;
_internal_has_num_tabs_restored()1109 inline bool SampledProfile::_internal_has_num_tabs_restored() const {
1110   bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
1111   return value;
1112 }
has_num_tabs_restored()1113 inline bool SampledProfile::has_num_tabs_restored() const {
1114   return _internal_has_num_tabs_restored();
1115 }
clear_num_tabs_restored()1116 inline void SampledProfile::clear_num_tabs_restored() {
1117   _impl_.num_tabs_restored_ = 0;
1118   _impl_._has_bits_[0] &= ~0x00000080u;
1119 }
_internal_num_tabs_restored()1120 inline int32_t SampledProfile::_internal_num_tabs_restored() const {
1121   return _impl_.num_tabs_restored_;
1122 }
num_tabs_restored()1123 inline int32_t SampledProfile::num_tabs_restored() const {
1124   // @@protoc_insertion_point(field_get:metrics.SampledProfile.num_tabs_restored)
1125   return _internal_num_tabs_restored();
1126 }
_internal_set_num_tabs_restored(int32_t value)1127 inline void SampledProfile::_internal_set_num_tabs_restored(int32_t value) {
1128   _impl_._has_bits_[0] |= 0x00000080u;
1129   _impl_.num_tabs_restored_ = value;
1130 }
set_num_tabs_restored(int32_t value)1131 inline void SampledProfile::set_num_tabs_restored(int32_t value) {
1132   _internal_set_num_tabs_restored(value);
1133   // @@protoc_insertion_point(field_set:metrics.SampledProfile.num_tabs_restored)
1134 }
1135 
1136 // optional int64 ms_after_restore = 8;
_internal_has_ms_after_restore()1137 inline bool SampledProfile::_internal_has_ms_after_restore() const {
1138   bool value = (_impl_._has_bits_[0] & 0x00000400u) != 0;
1139   return value;
1140 }
has_ms_after_restore()1141 inline bool SampledProfile::has_ms_after_restore() const {
1142   return _internal_has_ms_after_restore();
1143 }
clear_ms_after_restore()1144 inline void SampledProfile::clear_ms_after_restore() {
1145   _impl_.ms_after_restore_ = int64_t{0};
1146   _impl_._has_bits_[0] &= ~0x00000400u;
1147 }
_internal_ms_after_restore()1148 inline int64_t SampledProfile::_internal_ms_after_restore() const {
1149   return _impl_.ms_after_restore_;
1150 }
ms_after_restore()1151 inline int64_t SampledProfile::ms_after_restore() const {
1152   // @@protoc_insertion_point(field_get:metrics.SampledProfile.ms_after_restore)
1153   return _internal_ms_after_restore();
1154 }
_internal_set_ms_after_restore(int64_t value)1155 inline void SampledProfile::_internal_set_ms_after_restore(int64_t value) {
1156   _impl_._has_bits_[0] |= 0x00000400u;
1157   _impl_.ms_after_restore_ = value;
1158 }
set_ms_after_restore(int64_t value)1159 inline void SampledProfile::set_ms_after_restore(int64_t value) {
1160   _internal_set_ms_after_restore(value);
1161   // @@protoc_insertion_point(field_set:metrics.SampledProfile.ms_after_restore)
1162 }
1163 
1164 // optional .metrics.PerfDataProto perf_data = 4;
_internal_has_perf_data()1165 inline bool SampledProfile::_internal_has_perf_data() const {
1166   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1167   PROTOBUF_ASSUME(!value || _impl_.perf_data_ != nullptr);
1168   return value;
1169 }
has_perf_data()1170 inline bool SampledProfile::has_perf_data() const {
1171   return _internal_has_perf_data();
1172 }
_internal_perf_data()1173 inline const ::metrics::PerfDataProto& SampledProfile::_internal_perf_data() const {
1174   const ::metrics::PerfDataProto* p = _impl_.perf_data_;
1175   return p != nullptr ? *p : reinterpret_cast<const ::metrics::PerfDataProto&>(
1176       ::metrics::_PerfDataProto_default_instance_);
1177 }
perf_data()1178 inline const ::metrics::PerfDataProto& SampledProfile::perf_data() const {
1179   // @@protoc_insertion_point(field_get:metrics.SampledProfile.perf_data)
1180   return _internal_perf_data();
1181 }
unsafe_arena_set_allocated_perf_data(::metrics::PerfDataProto * perf_data)1182 inline void SampledProfile::unsafe_arena_set_allocated_perf_data(
1183     ::metrics::PerfDataProto* perf_data) {
1184   if (GetArenaForAllocation() == nullptr) {
1185     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.perf_data_);
1186   }
1187   _impl_.perf_data_ = perf_data;
1188   if (perf_data) {
1189     _impl_._has_bits_[0] |= 0x00000002u;
1190   } else {
1191     _impl_._has_bits_[0] &= ~0x00000002u;
1192   }
1193   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:metrics.SampledProfile.perf_data)
1194 }
release_perf_data()1195 inline ::metrics::PerfDataProto* SampledProfile::release_perf_data() {
1196   _impl_._has_bits_[0] &= ~0x00000002u;
1197   ::metrics::PerfDataProto* temp = _impl_.perf_data_;
1198   _impl_.perf_data_ = nullptr;
1199 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1200   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
1201   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1202   if (GetArenaForAllocation() == nullptr) { delete old; }
1203 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
1204   if (GetArenaForAllocation() != nullptr) {
1205     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1206   }
1207 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
1208   return temp;
1209 }
unsafe_arena_release_perf_data()1210 inline ::metrics::PerfDataProto* SampledProfile::unsafe_arena_release_perf_data() {
1211   // @@protoc_insertion_point(field_release:metrics.SampledProfile.perf_data)
1212   _impl_._has_bits_[0] &= ~0x00000002u;
1213   ::metrics::PerfDataProto* temp = _impl_.perf_data_;
1214   _impl_.perf_data_ = nullptr;
1215   return temp;
1216 }
_internal_mutable_perf_data()1217 inline ::metrics::PerfDataProto* SampledProfile::_internal_mutable_perf_data() {
1218   _impl_._has_bits_[0] |= 0x00000002u;
1219   if (_impl_.perf_data_ == nullptr) {
1220     auto* p = CreateMaybeMessage<::metrics::PerfDataProto>(GetArenaForAllocation());
1221     _impl_.perf_data_ = p;
1222   }
1223   return _impl_.perf_data_;
1224 }
mutable_perf_data()1225 inline ::metrics::PerfDataProto* SampledProfile::mutable_perf_data() {
1226   ::metrics::PerfDataProto* _msg = _internal_mutable_perf_data();
1227   // @@protoc_insertion_point(field_mutable:metrics.SampledProfile.perf_data)
1228   return _msg;
1229 }
set_allocated_perf_data(::metrics::PerfDataProto * perf_data)1230 inline void SampledProfile::set_allocated_perf_data(::metrics::PerfDataProto* perf_data) {
1231   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1232   if (message_arena == nullptr) {
1233     delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.perf_data_);
1234   }
1235   if (perf_data) {
1236     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1237         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
1238                 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(perf_data));
1239     if (message_arena != submessage_arena) {
1240       perf_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1241           message_arena, perf_data, submessage_arena);
1242     }
1243     _impl_._has_bits_[0] |= 0x00000002u;
1244   } else {
1245     _impl_._has_bits_[0] &= ~0x00000002u;
1246   }
1247   _impl_.perf_data_ = perf_data;
1248   // @@protoc_insertion_point(field_set_allocated:metrics.SampledProfile.perf_data)
1249 }
1250 
1251 // optional .metrics.CallStackProfile call_stack_profile = 9;
_internal_has_call_stack_profile()1252 inline bool SampledProfile::_internal_has_call_stack_profile() const {
1253   bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1254   PROTOBUF_ASSUME(!value || _impl_.call_stack_profile_ != nullptr);
1255   return value;
1256 }
has_call_stack_profile()1257 inline bool SampledProfile::has_call_stack_profile() const {
1258   return _internal_has_call_stack_profile();
1259 }
_internal_call_stack_profile()1260 inline const ::metrics::CallStackProfile& SampledProfile::_internal_call_stack_profile() const {
1261   const ::metrics::CallStackProfile* p = _impl_.call_stack_profile_;
1262   return p != nullptr ? *p : reinterpret_cast<const ::metrics::CallStackProfile&>(
1263       ::metrics::_CallStackProfile_default_instance_);
1264 }
call_stack_profile()1265 inline const ::metrics::CallStackProfile& SampledProfile::call_stack_profile() const {
1266   // @@protoc_insertion_point(field_get:metrics.SampledProfile.call_stack_profile)
1267   return _internal_call_stack_profile();
1268 }
unsafe_arena_set_allocated_call_stack_profile(::metrics::CallStackProfile * call_stack_profile)1269 inline void SampledProfile::unsafe_arena_set_allocated_call_stack_profile(
1270     ::metrics::CallStackProfile* call_stack_profile) {
1271   if (GetArenaForAllocation() == nullptr) {
1272     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.call_stack_profile_);
1273   }
1274   _impl_.call_stack_profile_ = call_stack_profile;
1275   if (call_stack_profile) {
1276     _impl_._has_bits_[0] |= 0x00000004u;
1277   } else {
1278     _impl_._has_bits_[0] &= ~0x00000004u;
1279   }
1280   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:metrics.SampledProfile.call_stack_profile)
1281 }
release_call_stack_profile()1282 inline ::metrics::CallStackProfile* SampledProfile::release_call_stack_profile() {
1283   _impl_._has_bits_[0] &= ~0x00000004u;
1284   ::metrics::CallStackProfile* temp = _impl_.call_stack_profile_;
1285   _impl_.call_stack_profile_ = nullptr;
1286 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1287   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
1288   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1289   if (GetArenaForAllocation() == nullptr) { delete old; }
1290 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
1291   if (GetArenaForAllocation() != nullptr) {
1292     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1293   }
1294 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
1295   return temp;
1296 }
unsafe_arena_release_call_stack_profile()1297 inline ::metrics::CallStackProfile* SampledProfile::unsafe_arena_release_call_stack_profile() {
1298   // @@protoc_insertion_point(field_release:metrics.SampledProfile.call_stack_profile)
1299   _impl_._has_bits_[0] &= ~0x00000004u;
1300   ::metrics::CallStackProfile* temp = _impl_.call_stack_profile_;
1301   _impl_.call_stack_profile_ = nullptr;
1302   return temp;
1303 }
_internal_mutable_call_stack_profile()1304 inline ::metrics::CallStackProfile* SampledProfile::_internal_mutable_call_stack_profile() {
1305   _impl_._has_bits_[0] |= 0x00000004u;
1306   if (_impl_.call_stack_profile_ == nullptr) {
1307     auto* p = CreateMaybeMessage<::metrics::CallStackProfile>(GetArenaForAllocation());
1308     _impl_.call_stack_profile_ = p;
1309   }
1310   return _impl_.call_stack_profile_;
1311 }
mutable_call_stack_profile()1312 inline ::metrics::CallStackProfile* SampledProfile::mutable_call_stack_profile() {
1313   ::metrics::CallStackProfile* _msg = _internal_mutable_call_stack_profile();
1314   // @@protoc_insertion_point(field_mutable:metrics.SampledProfile.call_stack_profile)
1315   return _msg;
1316 }
set_allocated_call_stack_profile(::metrics::CallStackProfile * call_stack_profile)1317 inline void SampledProfile::set_allocated_call_stack_profile(::metrics::CallStackProfile* call_stack_profile) {
1318   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1319   if (message_arena == nullptr) {
1320     delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.call_stack_profile_);
1321   }
1322   if (call_stack_profile) {
1323     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1324         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
1325                 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(call_stack_profile));
1326     if (message_arena != submessage_arena) {
1327       call_stack_profile = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1328           message_arena, call_stack_profile, submessage_arena);
1329     }
1330     _impl_._has_bits_[0] |= 0x00000004u;
1331   } else {
1332     _impl_._has_bits_[0] &= ~0x00000004u;
1333   }
1334   _impl_.call_stack_profile_ = call_stack_profile;
1335   // @@protoc_insertion_point(field_set_allocated:metrics.SampledProfile.call_stack_profile)
1336 }
1337 
1338 // optional .metrics.PerfStatProto perf_stat = 10;
_internal_has_perf_stat()1339 inline bool SampledProfile::_internal_has_perf_stat() const {
1340   bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
1341   PROTOBUF_ASSUME(!value || _impl_.perf_stat_ != nullptr);
1342   return value;
1343 }
has_perf_stat()1344 inline bool SampledProfile::has_perf_stat() const {
1345   return _internal_has_perf_stat();
1346 }
_internal_perf_stat()1347 inline const ::metrics::PerfStatProto& SampledProfile::_internal_perf_stat() const {
1348   const ::metrics::PerfStatProto* p = _impl_.perf_stat_;
1349   return p != nullptr ? *p : reinterpret_cast<const ::metrics::PerfStatProto&>(
1350       ::metrics::_PerfStatProto_default_instance_);
1351 }
perf_stat()1352 inline const ::metrics::PerfStatProto& SampledProfile::perf_stat() const {
1353   // @@protoc_insertion_point(field_get:metrics.SampledProfile.perf_stat)
1354   return _internal_perf_stat();
1355 }
unsafe_arena_set_allocated_perf_stat(::metrics::PerfStatProto * perf_stat)1356 inline void SampledProfile::unsafe_arena_set_allocated_perf_stat(
1357     ::metrics::PerfStatProto* perf_stat) {
1358   if (GetArenaForAllocation() == nullptr) {
1359     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.perf_stat_);
1360   }
1361   _impl_.perf_stat_ = perf_stat;
1362   if (perf_stat) {
1363     _impl_._has_bits_[0] |= 0x00000008u;
1364   } else {
1365     _impl_._has_bits_[0] &= ~0x00000008u;
1366   }
1367   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:metrics.SampledProfile.perf_stat)
1368 }
release_perf_stat()1369 inline ::metrics::PerfStatProto* SampledProfile::release_perf_stat() {
1370   _impl_._has_bits_[0] &= ~0x00000008u;
1371   ::metrics::PerfStatProto* temp = _impl_.perf_stat_;
1372   _impl_.perf_stat_ = nullptr;
1373 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1374   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
1375   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1376   if (GetArenaForAllocation() == nullptr) { delete old; }
1377 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
1378   if (GetArenaForAllocation() != nullptr) {
1379     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1380   }
1381 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
1382   return temp;
1383 }
unsafe_arena_release_perf_stat()1384 inline ::metrics::PerfStatProto* SampledProfile::unsafe_arena_release_perf_stat() {
1385   // @@protoc_insertion_point(field_release:metrics.SampledProfile.perf_stat)
1386   _impl_._has_bits_[0] &= ~0x00000008u;
1387   ::metrics::PerfStatProto* temp = _impl_.perf_stat_;
1388   _impl_.perf_stat_ = nullptr;
1389   return temp;
1390 }
_internal_mutable_perf_stat()1391 inline ::metrics::PerfStatProto* SampledProfile::_internal_mutable_perf_stat() {
1392   _impl_._has_bits_[0] |= 0x00000008u;
1393   if (_impl_.perf_stat_ == nullptr) {
1394     auto* p = CreateMaybeMessage<::metrics::PerfStatProto>(GetArenaForAllocation());
1395     _impl_.perf_stat_ = p;
1396   }
1397   return _impl_.perf_stat_;
1398 }
mutable_perf_stat()1399 inline ::metrics::PerfStatProto* SampledProfile::mutable_perf_stat() {
1400   ::metrics::PerfStatProto* _msg = _internal_mutable_perf_stat();
1401   // @@protoc_insertion_point(field_mutable:metrics.SampledProfile.perf_stat)
1402   return _msg;
1403 }
set_allocated_perf_stat(::metrics::PerfStatProto * perf_stat)1404 inline void SampledProfile::set_allocated_perf_stat(::metrics::PerfStatProto* perf_stat) {
1405   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1406   if (message_arena == nullptr) {
1407     delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.perf_stat_);
1408   }
1409   if (perf_stat) {
1410     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1411         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
1412                 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(perf_stat));
1413     if (message_arena != submessage_arena) {
1414       perf_stat = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1415           message_arena, perf_stat, submessage_arena);
1416     }
1417     _impl_._has_bits_[0] |= 0x00000008u;
1418   } else {
1419     _impl_._has_bits_[0] &= ~0x00000008u;
1420   }
1421   _impl_.perf_stat_ = perf_stat;
1422   // @@protoc_insertion_point(field_set_allocated:metrics.SampledProfile.perf_stat)
1423 }
1424 
1425 // repeated uint32 cpu_max_frequency_mhz = 15;
_internal_cpu_max_frequency_mhz_size()1426 inline int SampledProfile::_internal_cpu_max_frequency_mhz_size() const {
1427   return _impl_.cpu_max_frequency_mhz_.size();
1428 }
cpu_max_frequency_mhz_size()1429 inline int SampledProfile::cpu_max_frequency_mhz_size() const {
1430   return _internal_cpu_max_frequency_mhz_size();
1431 }
clear_cpu_max_frequency_mhz()1432 inline void SampledProfile::clear_cpu_max_frequency_mhz() {
1433   _impl_.cpu_max_frequency_mhz_.Clear();
1434 }
_internal_cpu_max_frequency_mhz(int index)1435 inline uint32_t SampledProfile::_internal_cpu_max_frequency_mhz(int index) const {
1436   return _impl_.cpu_max_frequency_mhz_.Get(index);
1437 }
cpu_max_frequency_mhz(int index)1438 inline uint32_t SampledProfile::cpu_max_frequency_mhz(int index) const {
1439   // @@protoc_insertion_point(field_get:metrics.SampledProfile.cpu_max_frequency_mhz)
1440   return _internal_cpu_max_frequency_mhz(index);
1441 }
set_cpu_max_frequency_mhz(int index,uint32_t value)1442 inline void SampledProfile::set_cpu_max_frequency_mhz(int index, uint32_t value) {
1443   _impl_.cpu_max_frequency_mhz_.Set(index, value);
1444   // @@protoc_insertion_point(field_set:metrics.SampledProfile.cpu_max_frequency_mhz)
1445 }
_internal_add_cpu_max_frequency_mhz(uint32_t value)1446 inline void SampledProfile::_internal_add_cpu_max_frequency_mhz(uint32_t value) {
1447   _impl_.cpu_max_frequency_mhz_.Add(value);
1448 }
add_cpu_max_frequency_mhz(uint32_t value)1449 inline void SampledProfile::add_cpu_max_frequency_mhz(uint32_t value) {
1450   _internal_add_cpu_max_frequency_mhz(value);
1451   // @@protoc_insertion_point(field_add:metrics.SampledProfile.cpu_max_frequency_mhz)
1452 }
1453 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
_internal_cpu_max_frequency_mhz()1454 SampledProfile::_internal_cpu_max_frequency_mhz() const {
1455   return _impl_.cpu_max_frequency_mhz_;
1456 }
1457 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
cpu_max_frequency_mhz()1458 SampledProfile::cpu_max_frequency_mhz() const {
1459   // @@protoc_insertion_point(field_list:metrics.SampledProfile.cpu_max_frequency_mhz)
1460   return _internal_cpu_max_frequency_mhz();
1461 }
1462 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
_internal_mutable_cpu_max_frequency_mhz()1463 SampledProfile::_internal_mutable_cpu_max_frequency_mhz() {
1464   return &_impl_.cpu_max_frequency_mhz_;
1465 }
1466 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
mutable_cpu_max_frequency_mhz()1467 SampledProfile::mutable_cpu_max_frequency_mhz() {
1468   // @@protoc_insertion_point(field_mutable_list:metrics.SampledProfile.cpu_max_frequency_mhz)
1469   return _internal_mutable_cpu_max_frequency_mhz();
1470 }
1471 
1472 // optional float psi_cpu_last_10s_pct = 16;
_internal_has_psi_cpu_last_10s_pct()1473 inline bool SampledProfile::_internal_has_psi_cpu_last_10s_pct() const {
1474   bool value = (_impl_._has_bits_[0] & 0x00002000u) != 0;
1475   return value;
1476 }
has_psi_cpu_last_10s_pct()1477 inline bool SampledProfile::has_psi_cpu_last_10s_pct() const {
1478   return _internal_has_psi_cpu_last_10s_pct();
1479 }
clear_psi_cpu_last_10s_pct()1480 inline void SampledProfile::clear_psi_cpu_last_10s_pct() {
1481   _impl_.psi_cpu_last_10s_pct_ = 0;
1482   _impl_._has_bits_[0] &= ~0x00002000u;
1483 }
_internal_psi_cpu_last_10s_pct()1484 inline float SampledProfile::_internal_psi_cpu_last_10s_pct() const {
1485   return _impl_.psi_cpu_last_10s_pct_;
1486 }
psi_cpu_last_10s_pct()1487 inline float SampledProfile::psi_cpu_last_10s_pct() const {
1488   // @@protoc_insertion_point(field_get:metrics.SampledProfile.psi_cpu_last_10s_pct)
1489   return _internal_psi_cpu_last_10s_pct();
1490 }
_internal_set_psi_cpu_last_10s_pct(float value)1491 inline void SampledProfile::_internal_set_psi_cpu_last_10s_pct(float value) {
1492   _impl_._has_bits_[0] |= 0x00002000u;
1493   _impl_.psi_cpu_last_10s_pct_ = value;
1494 }
set_psi_cpu_last_10s_pct(float value)1495 inline void SampledProfile::set_psi_cpu_last_10s_pct(float value) {
1496   _internal_set_psi_cpu_last_10s_pct(value);
1497   // @@protoc_insertion_point(field_set:metrics.SampledProfile.psi_cpu_last_10s_pct)
1498 }
1499 
1500 // optional float psi_cpu_last_60s_pct = 17;
_internal_has_psi_cpu_last_60s_pct()1501 inline bool SampledProfile::_internal_has_psi_cpu_last_60s_pct() const {
1502   bool value = (_impl_._has_bits_[0] & 0x00004000u) != 0;
1503   return value;
1504 }
has_psi_cpu_last_60s_pct()1505 inline bool SampledProfile::has_psi_cpu_last_60s_pct() const {
1506   return _internal_has_psi_cpu_last_60s_pct();
1507 }
clear_psi_cpu_last_60s_pct()1508 inline void SampledProfile::clear_psi_cpu_last_60s_pct() {
1509   _impl_.psi_cpu_last_60s_pct_ = 0;
1510   _impl_._has_bits_[0] &= ~0x00004000u;
1511 }
_internal_psi_cpu_last_60s_pct()1512 inline float SampledProfile::_internal_psi_cpu_last_60s_pct() const {
1513   return _impl_.psi_cpu_last_60s_pct_;
1514 }
psi_cpu_last_60s_pct()1515 inline float SampledProfile::psi_cpu_last_60s_pct() const {
1516   // @@protoc_insertion_point(field_get:metrics.SampledProfile.psi_cpu_last_60s_pct)
1517   return _internal_psi_cpu_last_60s_pct();
1518 }
_internal_set_psi_cpu_last_60s_pct(float value)1519 inline void SampledProfile::_internal_set_psi_cpu_last_60s_pct(float value) {
1520   _impl_._has_bits_[0] |= 0x00004000u;
1521   _impl_.psi_cpu_last_60s_pct_ = value;
1522 }
set_psi_cpu_last_60s_pct(float value)1523 inline void SampledProfile::set_psi_cpu_last_60s_pct(float value) {
1524   _internal_set_psi_cpu_last_60s_pct(value);
1525   // @@protoc_insertion_point(field_set:metrics.SampledProfile.psi_cpu_last_60s_pct)
1526 }
1527 
1528 // optional .metrics.ThermalState thermal_state = 21;
_internal_has_thermal_state()1529 inline bool SampledProfile::_internal_has_thermal_state() const {
1530   bool value = (_impl_._has_bits_[0] & 0x00010000u) != 0;
1531   return value;
1532 }
has_thermal_state()1533 inline bool SampledProfile::has_thermal_state() const {
1534   return _internal_has_thermal_state();
1535 }
clear_thermal_state()1536 inline void SampledProfile::clear_thermal_state() {
1537   _impl_.thermal_state_ = 0;
1538   _impl_._has_bits_[0] &= ~0x00010000u;
1539 }
_internal_thermal_state()1540 inline ::metrics::ThermalState SampledProfile::_internal_thermal_state() const {
1541   return static_cast< ::metrics::ThermalState >(_impl_.thermal_state_);
1542 }
thermal_state()1543 inline ::metrics::ThermalState SampledProfile::thermal_state() const {
1544   // @@protoc_insertion_point(field_get:metrics.SampledProfile.thermal_state)
1545   return _internal_thermal_state();
1546 }
_internal_set_thermal_state(::metrics::ThermalState value)1547 inline void SampledProfile::_internal_set_thermal_state(::metrics::ThermalState value) {
1548   assert(::metrics::ThermalState_IsValid(value));
1549   _impl_._has_bits_[0] |= 0x00010000u;
1550   _impl_.thermal_state_ = value;
1551 }
set_thermal_state(::metrics::ThermalState value)1552 inline void SampledProfile::set_thermal_state(::metrics::ThermalState value) {
1553   _internal_set_thermal_state(value);
1554   // @@protoc_insertion_point(field_set:metrics.SampledProfile.thermal_state)
1555 }
1556 
1557 // optional int32 cpu_speed_limit_percent = 22;
_internal_has_cpu_speed_limit_percent()1558 inline bool SampledProfile::_internal_has_cpu_speed_limit_percent() const {
1559   bool value = (_impl_._has_bits_[0] & 0x00020000u) != 0;
1560   return value;
1561 }
has_cpu_speed_limit_percent()1562 inline bool SampledProfile::has_cpu_speed_limit_percent() const {
1563   return _internal_has_cpu_speed_limit_percent();
1564 }
clear_cpu_speed_limit_percent()1565 inline void SampledProfile::clear_cpu_speed_limit_percent() {
1566   _impl_.cpu_speed_limit_percent_ = 0;
1567   _impl_._has_bits_[0] &= ~0x00020000u;
1568 }
_internal_cpu_speed_limit_percent()1569 inline int32_t SampledProfile::_internal_cpu_speed_limit_percent() const {
1570   return _impl_.cpu_speed_limit_percent_;
1571 }
cpu_speed_limit_percent()1572 inline int32_t SampledProfile::cpu_speed_limit_percent() const {
1573   // @@protoc_insertion_point(field_get:metrics.SampledProfile.cpu_speed_limit_percent)
1574   return _internal_cpu_speed_limit_percent();
1575 }
_internal_set_cpu_speed_limit_percent(int32_t value)1576 inline void SampledProfile::_internal_set_cpu_speed_limit_percent(int32_t value) {
1577   _impl_._has_bits_[0] |= 0x00020000u;
1578   _impl_.cpu_speed_limit_percent_ = value;
1579 }
set_cpu_speed_limit_percent(int32_t value)1580 inline void SampledProfile::set_cpu_speed_limit_percent(int32_t value) {
1581   _internal_set_cpu_speed_limit_percent(value);
1582   // @@protoc_insertion_point(field_set:metrics.SampledProfile.cpu_speed_limit_percent)
1583 }
1584 
1585 #ifdef __GNUC__
1586   #pragma GCC diagnostic pop
1587 #endif  // __GNUC__
1588 // -------------------------------------------------------------------
1589 
1590 // -------------------------------------------------------------------
1591 
1592 
1593 // @@protoc_insertion_point(namespace_scope)
1594 
1595 }  // namespace metrics
1596 
1597 PROTOBUF_NAMESPACE_OPEN
1598 
1599 template <> struct is_proto_enum< ::metrics::SampledProfile_TriggerEvent> : ::std::true_type {};
1600 
1601 PROTOBUF_NAMESPACE_CLOSE
1602 
1603 // @@protoc_insertion_point(global_scope)
1604 
1605 #include <google/protobuf/port_undef.inc>
1606 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_sampled_5fprofile_2eproto
1607