Skip to main content

perfetto_protos/
perfetto.protos.rs

1// This file is @generated by prost-build.
2#[derive(Clone, PartialEq, ::prost::Message)]
3pub struct ObservableEvents {
4    #[prost(message, repeated, tag = "1")]
5    pub instance_state_changes: ::prost::alloc::vec::Vec<
6        observable_events::DataSourceInstanceStateChange,
7    >,
8    #[prost(bool, optional, tag = "2")]
9    pub all_data_sources_started: ::core::option::Option<bool>,
10    #[prost(message, optional, tag = "3")]
11    pub clone_trigger_hit: ::core::option::Option<observable_events::CloneTriggerHit>,
12}
13/// Nested message and enum types in `ObservableEvents`.
14pub mod observable_events {
15    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
16    pub struct DataSourceInstanceStateChange {
17        #[prost(string, optional, tag = "1")]
18        pub producer_name: ::core::option::Option<::prost::alloc::string::String>,
19        #[prost(string, optional, tag = "2")]
20        pub data_source_name: ::core::option::Option<::prost::alloc::string::String>,
21        #[prost(enumeration = "DataSourceInstanceState", optional, tag = "3")]
22        pub state: ::core::option::Option<i32>,
23    }
24    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
25    pub struct CloneTriggerHit {
26        /// The TracingSessionID of the original tracing session which had a
27        /// CLONE_SNAPSHOT trigger defined. This is necessary just because the
28        /// consumer has no idea of what is the TSID of its own tracing session and
29        /// there is no other good way to plumb it.
30        #[prost(int64, optional, tag = "1")]
31        pub tracing_session_id: ::core::option::Option<i64>,
32        /// The name of the CLONE_SNAPSHOT trigger which was hit.
33        #[prost(string, optional, tag = "2")]
34        pub trigger_name: ::core::option::Option<::prost::alloc::string::String>,
35        /// The name of the producer that sent the CLONE_SNAPSHOT trigger.
36        #[prost(string, optional, tag = "3")]
37        pub producer_name: ::core::option::Option<::prost::alloc::string::String>,
38        /// The uid of the producer that sent the CLONE_SNAPSHOT trigger.
39        #[prost(uint32, optional, tag = "4")]
40        pub producer_uid: ::core::option::Option<u32>,
41        /// The timestamp of the CLONE_SNAPSHOT trigger which was hit.
42        #[prost(uint64, optional, tag = "5")]
43        pub boot_time_ns: ::core::option::Option<u64>,
44        /// The configured delay of the CLONE_SNAPSHOT trigger which was hit. For
45        /// informational purposes only.
46        #[prost(uint64, optional, tag = "6")]
47        pub trigger_delay_ms: ::core::option::Option<u64>,
48    }
49    /// Note: internally these are used as OR flags. Next values: 4, 8, 16, ...
50    #[derive(
51        Clone,
52        Copy,
53        Debug,
54        PartialEq,
55        Eq,
56        Hash,
57        PartialOrd,
58        Ord,
59        ::prost::Enumeration
60    )]
61    #[repr(i32)]
62    pub enum Type {
63        Unspecified = 0,
64        /// State changes of data source instances associated with the consumer's
65        /// session. Note that not all data sources may support these notifications.
66        /// See |will_notify_on_start/stop| in DataSourceDescriptor.
67        DataSourcesInstances = 1,
68        /// State change triggered when all data sources are in the STARTED state.
69        /// For data sources that registered with |will_notify_on_start| this happens
70        /// only after the data source has acked the start. This allows the consumer
71        /// to synchronize with the data sources and to perform actions (e.g. start a
72        /// test binary) only after trace recording is actually started.
73        /// Introduced in Android 11 (R).
74        AllDataSourcesStarted = 2,
75        /// When a tracing session has one or more triggers of type CLONE_SNAPSHOT
76        /// and a matching trigger is hit, the service will send this notification to
77        /// the consumer after |stop_delay_ms|.
78        CloneTriggerHit = 4,
79    }
80    impl Type {
81        /// String value of the enum field names used in the ProtoBuf definition.
82        ///
83        /// The values are not transformed in any way and thus are considered stable
84        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
85        pub fn as_str_name(&self) -> &'static str {
86            match self {
87                Self::Unspecified => "TYPE_UNSPECIFIED",
88                Self::DataSourcesInstances => "TYPE_DATA_SOURCES_INSTANCES",
89                Self::AllDataSourcesStarted => "TYPE_ALL_DATA_SOURCES_STARTED",
90                Self::CloneTriggerHit => "TYPE_CLONE_TRIGGER_HIT",
91            }
92        }
93        /// Creates an enum from field names used in the ProtoBuf definition.
94        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
95            match value {
96                "TYPE_UNSPECIFIED" => Some(Self::Unspecified),
97                "TYPE_DATA_SOURCES_INSTANCES" => Some(Self::DataSourcesInstances),
98                "TYPE_ALL_DATA_SOURCES_STARTED" => Some(Self::AllDataSourcesStarted),
99                "TYPE_CLONE_TRIGGER_HIT" => Some(Self::CloneTriggerHit),
100                _ => None,
101            }
102        }
103    }
104    #[derive(
105        Clone,
106        Copy,
107        Debug,
108        PartialEq,
109        Eq,
110        Hash,
111        PartialOrd,
112        Ord,
113        ::prost::Enumeration
114    )]
115    #[repr(i32)]
116    pub enum DataSourceInstanceState {
117        /// A data source is created in stopped state.
118        Stopped = 1,
119        Started = 2,
120    }
121    impl DataSourceInstanceState {
122        /// String value of the enum field names used in the ProtoBuf definition.
123        ///
124        /// The values are not transformed in any way and thus are considered stable
125        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
126        pub fn as_str_name(&self) -> &'static str {
127            match self {
128                Self::Stopped => "DATA_SOURCE_INSTANCE_STATE_STOPPED",
129                Self::Started => "DATA_SOURCE_INSTANCE_STATE_STARTED",
130            }
131        }
132        /// Creates an enum from field names used in the ProtoBuf definition.
133        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
134            match value {
135                "DATA_SOURCE_INSTANCE_STATE_STOPPED" => Some(Self::Stopped),
136                "DATA_SOURCE_INSTANCE_STATE_STARTED" => Some(Self::Started),
137                _ => None,
138            }
139        }
140    }
141}
142#[derive(Clone, PartialEq, ::prost::Message)]
143pub struct FtraceDescriptor {
144    /// Report the available atrace categories.
145    ///
146    /// Used by Traceur via `perfetto --query`.
147    #[prost(message, repeated, tag = "1")]
148    pub atrace_categories: ::prost::alloc::vec::Vec<ftrace_descriptor::AtraceCategory>,
149}
150/// Nested message and enum types in `FtraceDescriptor`.
151pub mod ftrace_descriptor {
152    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
153    pub struct AtraceCategory {
154        #[prost(string, optional, tag = "1")]
155        pub name: ::core::option::Option<::prost::alloc::string::String>,
156        #[prost(string, optional, tag = "2")]
157        pub description: ::core::option::Option<::prost::alloc::string::String>,
158    }
159}
160/// Description of GPU counters.
161/// This message is sent by a GPU counter producer to specify the counters
162/// available in the hardware.
163#[derive(Clone, PartialEq, ::prost::Message)]
164pub struct GpuCounterDescriptor {
165    #[prost(message, repeated, tag = "1")]
166    pub specs: ::prost::alloc::vec::Vec<gpu_counter_descriptor::GpuCounterSpec>,
167    #[prost(message, repeated, tag = "2")]
168    pub blocks: ::prost::alloc::vec::Vec<gpu_counter_descriptor::GpuCounterBlock>,
169    #[prost(message, repeated, tag = "6")]
170    pub counter_groups: ::prost::alloc::vec::Vec<
171        gpu_counter_descriptor::GpuCounterGroupSpec,
172    >,
173    /// optional.  Minimum sampling period supported by the producer in
174    /// nanoseconds.
175    #[prost(uint64, optional, tag = "3")]
176    pub min_sampling_period_ns: ::core::option::Option<u64>,
177    /// optional.  Maximum sampling period supported by the producer in
178    /// nanoseconds.
179    #[prost(uint64, optional, tag = "4")]
180    pub max_sampling_period_ns: ::core::option::Option<u64>,
181    /// optional.  The producer supports counter sampling by instrumenting the
182    /// command buffer.
183    #[prost(bool, optional, tag = "5")]
184    pub supports_instrumented_sampling: ::core::option::Option<bool>,
185    /// optional.  The producer supports selecting counters by name via
186    /// GpuCounterConfig.counter_names. Not all producers support this; Android
187    /// GPU producers typically do not.
188    #[prost(bool, optional, tag = "7")]
189    pub supports_counter_names: ::core::option::Option<bool>,
190    /// optional.  The producer supports glob patterns in
191    /// GpuCounterConfig.counter_names for matching multiple counters by name.
192    #[prost(bool, optional, tag = "8")]
193    pub supports_counter_name_globs: ::core::option::Option<bool>,
194}
195/// Nested message and enum types in `GpuCounterDescriptor`.
196pub mod gpu_counter_descriptor {
197    #[derive(Clone, PartialEq, ::prost::Message)]
198    pub struct GpuCounterSpec {
199        #[prost(uint32, optional, tag = "1")]
200        pub counter_id: ::core::option::Option<u32>,
201        #[prost(string, optional, tag = "2")]
202        pub name: ::core::option::Option<::prost::alloc::string::String>,
203        #[prost(string, optional, tag = "3")]
204        pub description: ::core::option::Option<::prost::alloc::string::String>,
205        #[prost(enumeration = "MeasureUnit", repeated, packed = "false", tag = "7")]
206        pub numerator_units: ::prost::alloc::vec::Vec<i32>,
207        #[prost(enumeration = "MeasureUnit", repeated, packed = "false", tag = "8")]
208        pub denominator_units: ::prost::alloc::vec::Vec<i32>,
209        #[prost(bool, optional, tag = "9")]
210        pub select_by_default: ::core::option::Option<bool>,
211        #[prost(enumeration = "GpuCounterGroup", repeated, packed = "false", tag = "10")]
212        pub groups: ::prost::alloc::vec::Vec<i32>,
213        #[prost(enumeration = "gpu_counter_spec::ValueDirection", optional, tag = "11")]
214        pub value_direction: ::core::option::Option<i32>,
215        #[prost(oneof = "gpu_counter_spec::PeakValue", tags = "5, 6")]
216        pub peak_value: ::core::option::Option<gpu_counter_spec::PeakValue>,
217    }
218    /// Nested message and enum types in `GpuCounterSpec`.
219    pub mod gpu_counter_spec {
220        /// Direction of the time interval that each emitted sample applies to.
221        /// A GPU counter is sampled at discrete timestamps, but its value really
222        /// represents a measurement over some interval around that timestamp
223        /// (e.g. average GPU utilization over the sampling window). This field
224        /// tells trace processor on which side of the timestamp that interval
225        /// lies, which controls where the value is drawn in the UI.
226        ///
227        /// Example: samples at t=10, 20, 30 with values 5, 7, 0.
228        ///    BACKWARDS_LOOKING: 5 covers (-inf, 10], 7 covers (10, 20], 0 covers
229        ///      (20, 30]; the UI draws 7 between t=10 and t=20.
230        ///    FORWARDS_LOOKING:  5 covers [10, 20), 7 covers [20, 30), 0 covers
231        ///      [30, +inf); the UI draws 5 between t=10 and t=20.
232        #[derive(
233            Clone,
234            Copy,
235            Debug,
236            PartialEq,
237            Eq,
238            Hash,
239            PartialOrd,
240            Ord,
241            ::prost::Enumeration
242        )]
243        #[repr(i32)]
244        pub enum ValueDirection {
245            /// Treated as BACKWARDS_LOOKING (the historical default).
246            Unspecified = 0,
247            /// The value applies to the interval ending at this event's timestamp.
248            /// This is the convention used by AGI and most existing GPU producers,
249            /// where a sample reports what happened during the window leading up
250            /// to the timestamp.
251            BackwardsLooking = 1,
252            /// The value applies to the interval starting at this event's
253            /// timestamp, matching standard Perfetto counters. Producers that emit
254            /// explicit zero samples to denote "no activity from here on" should
255            /// use this so the zero is not back-propagated over earlier non-zero
256            /// samples (<https://github.com/google/perfetto/issues/5683>).
257            ForwardsLooking = 2,
258        }
259        impl ValueDirection {
260            /// String value of the enum field names used in the ProtoBuf definition.
261            ///
262            /// The values are not transformed in any way and thus are considered stable
263            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
264            pub fn as_str_name(&self) -> &'static str {
265                match self {
266                    Self::Unspecified => "VALUE_DIRECTION_UNSPECIFIED",
267                    Self::BackwardsLooking => "VALUE_DIRECTION_BACKWARDS_LOOKING",
268                    Self::ForwardsLooking => "VALUE_DIRECTION_FORWARDS_LOOKING",
269                }
270            }
271            /// Creates an enum from field names used in the ProtoBuf definition.
272            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
273                match value {
274                    "VALUE_DIRECTION_UNSPECIFIED" => Some(Self::Unspecified),
275                    "VALUE_DIRECTION_BACKWARDS_LOOKING" => Some(Self::BackwardsLooking),
276                    "VALUE_DIRECTION_FORWARDS_LOOKING" => Some(Self::ForwardsLooking),
277                    _ => None,
278                }
279            }
280        }
281        #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
282        pub enum PeakValue {
283            #[prost(int64, tag = "5")]
284            IntPeakValue(i64),
285            #[prost(double, tag = "6")]
286            DoublePeakValue(f64),
287        }
288    }
289    /// Allow producer to group counters into block to represent counter islands.
290    /// A capacity may be specified to indicate the number of counters that can be
291    /// enable simultaneously in that block.
292    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
293    pub struct GpuCounterBlock {
294        /// required. Unique ID for the counter group.
295        #[prost(uint32, optional, tag = "1")]
296        pub block_id: ::core::option::Option<u32>,
297        /// optional. Number of counters supported by the block. No limit if unset.
298        #[prost(uint32, optional, tag = "2")]
299        pub block_capacity: ::core::option::Option<u32>,
300        /// optional. Name of block.
301        #[prost(string, optional, tag = "3")]
302        pub name: ::core::option::Option<::prost::alloc::string::String>,
303        /// optional. Description for the block.
304        #[prost(string, optional, tag = "4")]
305        pub description: ::core::option::Option<::prost::alloc::string::String>,
306        /// list of counters that are part of the block.
307        #[prost(uint32, repeated, packed = "false", tag = "5")]
308        pub counter_ids: ::prost::alloc::vec::Vec<u32>,
309    }
310    /// Allow producer to define custom counter groups. Unlike the fixed
311    /// GpuCounterGroup enum (which provides broad categories), these groups
312    /// let the producer define hardware-specific groupings that the UI uses
313    /// to organize counter tracks. Can also be used to provide display names
314    /// and descriptions for the fixed GpuCounterGroup enum values by setting
315    /// group_id to the enum value.
316    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
317    pub struct GpuCounterGroupSpec {
318        /// required. Unique ID for this group within the descriptor.
319        #[prost(uint32, optional, tag = "1")]
320        pub group_id: ::core::option::Option<u32>,
321        /// optional. Display name for the group.
322        #[prost(string, optional, tag = "2")]
323        pub name: ::core::option::Option<::prost::alloc::string::String>,
324        /// optional. Description of the group.
325        #[prost(string, optional, tag = "3")]
326        pub description: ::core::option::Option<::prost::alloc::string::String>,
327        /// Counters that belong directly to this group (by counter_id).
328        #[prost(uint32, repeated, packed = "false", tag = "4")]
329        pub counter_ids: ::prost::alloc::vec::Vec<u32>,
330    }
331    /// Logical groups for a counter.  This is used in the UI to present the
332    /// related counters together.
333    #[derive(
334        Clone,
335        Copy,
336        Debug,
337        PartialEq,
338        Eq,
339        Hash,
340        PartialOrd,
341        Ord,
342        ::prost::Enumeration
343    )]
344    #[repr(i32)]
345    pub enum GpuCounterGroup {
346        Unclassified = 0,
347        System = 1,
348        Vertices = 2,
349        Fragments = 3,
350        Primitives = 4,
351        /// Includes counters relating to caching and bandwidth.
352        Memory = 5,
353        Compute = 6,
354        RayTracing = 7,
355    }
356    impl GpuCounterGroup {
357        /// String value of the enum field names used in the ProtoBuf definition.
358        ///
359        /// The values are not transformed in any way and thus are considered stable
360        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
361        pub fn as_str_name(&self) -> &'static str {
362            match self {
363                Self::Unclassified => "UNCLASSIFIED",
364                Self::System => "SYSTEM",
365                Self::Vertices => "VERTICES",
366                Self::Fragments => "FRAGMENTS",
367                Self::Primitives => "PRIMITIVES",
368                Self::Memory => "MEMORY",
369                Self::Compute => "COMPUTE",
370                Self::RayTracing => "RAY_TRACING",
371            }
372        }
373        /// Creates an enum from field names used in the ProtoBuf definition.
374        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
375            match value {
376                "UNCLASSIFIED" => Some(Self::Unclassified),
377                "SYSTEM" => Some(Self::System),
378                "VERTICES" => Some(Self::Vertices),
379                "FRAGMENTS" => Some(Self::Fragments),
380                "PRIMITIVES" => Some(Self::Primitives),
381                "MEMORY" => Some(Self::Memory),
382                "COMPUTE" => Some(Self::Compute),
383                "RAY_TRACING" => Some(Self::RayTracing),
384                _ => None,
385            }
386        }
387    }
388    /// next id: 41
389    #[derive(
390        Clone,
391        Copy,
392        Debug,
393        PartialEq,
394        Eq,
395        Hash,
396        PartialOrd,
397        Ord,
398        ::prost::Enumeration
399    )]
400    #[repr(i32)]
401    pub enum MeasureUnit {
402        None = 0,
403        Bit = 1,
404        Kilobit = 2,
405        Megabit = 3,
406        Gigabit = 4,
407        Terabit = 5,
408        Petabit = 6,
409        Byte = 7,
410        Kilobyte = 8,
411        Megabyte = 9,
412        Gigabyte = 10,
413        Terabyte = 11,
414        Petabyte = 12,
415        Hertz = 13,
416        Kilohertz = 14,
417        Megahertz = 15,
418        Gigahertz = 16,
419        Terahertz = 17,
420        Petahertz = 18,
421        Nanosecond = 19,
422        Microsecond = 20,
423        Millisecond = 21,
424        Second = 22,
425        Minute = 23,
426        Hour = 24,
427        Vertex = 25,
428        Pixel = 26,
429        Triangle = 27,
430        Primitive = 38,
431        Fragment = 39,
432        Milliwatt = 28,
433        Watt = 29,
434        Kilowatt = 30,
435        Joule = 31,
436        Volt = 32,
437        Ampere = 33,
438        Celsius = 34,
439        Fahrenheit = 35,
440        Kelvin = 36,
441        /// Values should be out of 100.
442        Percent = 37,
443        Instruction = 40,
444    }
445    impl MeasureUnit {
446        /// String value of the enum field names used in the ProtoBuf definition.
447        ///
448        /// The values are not transformed in any way and thus are considered stable
449        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
450        pub fn as_str_name(&self) -> &'static str {
451            match self {
452                Self::None => "NONE",
453                Self::Bit => "BIT",
454                Self::Kilobit => "KILOBIT",
455                Self::Megabit => "MEGABIT",
456                Self::Gigabit => "GIGABIT",
457                Self::Terabit => "TERABIT",
458                Self::Petabit => "PETABIT",
459                Self::Byte => "BYTE",
460                Self::Kilobyte => "KILOBYTE",
461                Self::Megabyte => "MEGABYTE",
462                Self::Gigabyte => "GIGABYTE",
463                Self::Terabyte => "TERABYTE",
464                Self::Petabyte => "PETABYTE",
465                Self::Hertz => "HERTZ",
466                Self::Kilohertz => "KILOHERTZ",
467                Self::Megahertz => "MEGAHERTZ",
468                Self::Gigahertz => "GIGAHERTZ",
469                Self::Terahertz => "TERAHERTZ",
470                Self::Petahertz => "PETAHERTZ",
471                Self::Nanosecond => "NANOSECOND",
472                Self::Microsecond => "MICROSECOND",
473                Self::Millisecond => "MILLISECOND",
474                Self::Second => "SECOND",
475                Self::Minute => "MINUTE",
476                Self::Hour => "HOUR",
477                Self::Vertex => "VERTEX",
478                Self::Pixel => "PIXEL",
479                Self::Triangle => "TRIANGLE",
480                Self::Primitive => "PRIMITIVE",
481                Self::Fragment => "FRAGMENT",
482                Self::Milliwatt => "MILLIWATT",
483                Self::Watt => "WATT",
484                Self::Kilowatt => "KILOWATT",
485                Self::Joule => "JOULE",
486                Self::Volt => "VOLT",
487                Self::Ampere => "AMPERE",
488                Self::Celsius => "CELSIUS",
489                Self::Fahrenheit => "FAHRENHEIT",
490                Self::Kelvin => "KELVIN",
491                Self::Percent => "PERCENT",
492                Self::Instruction => "INSTRUCTION",
493            }
494        }
495        /// Creates an enum from field names used in the ProtoBuf definition.
496        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
497            match value {
498                "NONE" => Some(Self::None),
499                "BIT" => Some(Self::Bit),
500                "KILOBIT" => Some(Self::Kilobit),
501                "MEGABIT" => Some(Self::Megabit),
502                "GIGABIT" => Some(Self::Gigabit),
503                "TERABIT" => Some(Self::Terabit),
504                "PETABIT" => Some(Self::Petabit),
505                "BYTE" => Some(Self::Byte),
506                "KILOBYTE" => Some(Self::Kilobyte),
507                "MEGABYTE" => Some(Self::Megabyte),
508                "GIGABYTE" => Some(Self::Gigabyte),
509                "TERABYTE" => Some(Self::Terabyte),
510                "PETABYTE" => Some(Self::Petabyte),
511                "HERTZ" => Some(Self::Hertz),
512                "KILOHERTZ" => Some(Self::Kilohertz),
513                "MEGAHERTZ" => Some(Self::Megahertz),
514                "GIGAHERTZ" => Some(Self::Gigahertz),
515                "TERAHERTZ" => Some(Self::Terahertz),
516                "PETAHERTZ" => Some(Self::Petahertz),
517                "NANOSECOND" => Some(Self::Nanosecond),
518                "MICROSECOND" => Some(Self::Microsecond),
519                "MILLISECOND" => Some(Self::Millisecond),
520                "SECOND" => Some(Self::Second),
521                "MINUTE" => Some(Self::Minute),
522                "HOUR" => Some(Self::Hour),
523                "VERTEX" => Some(Self::Vertex),
524                "PIXEL" => Some(Self::Pixel),
525                "TRIANGLE" => Some(Self::Triangle),
526                "PRIMITIVE" => Some(Self::Primitive),
527                "FRAGMENT" => Some(Self::Fragment),
528                "MILLIWATT" => Some(Self::Milliwatt),
529                "WATT" => Some(Self::Watt),
530                "KILOWATT" => Some(Self::Kilowatt),
531                "JOULE" => Some(Self::Joule),
532                "VOLT" => Some(Self::Volt),
533                "AMPERE" => Some(Self::Ampere),
534                "CELSIUS" => Some(Self::Celsius),
535                "FAHRENHEIT" => Some(Self::Fahrenheit),
536                "KELVIN" => Some(Self::Kelvin),
537                "PERCENT" => Some(Self::Percent),
538                "INSTRUCTION" => Some(Self::Instruction),
539                _ => None,
540            }
541        }
542    }
543}
544#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
545pub struct TrackEventCategory {
546    #[prost(string, optional, tag = "1")]
547    pub name: ::core::option::Option<::prost::alloc::string::String>,
548    #[prost(string, optional, tag = "2")]
549    pub description: ::core::option::Option<::prost::alloc::string::String>,
550    #[prost(string, repeated, tag = "3")]
551    pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
552}
553#[derive(Clone, PartialEq, ::prost::Message)]
554pub struct TrackEventDescriptor {
555    #[prost(message, repeated, tag = "1")]
556    pub available_categories: ::prost::alloc::vec::Vec<TrackEventCategory>,
557}
558#[derive(Clone, PartialEq, ::prost::Message)]
559pub struct VmProgram {
560    #[prost(uint32, optional, tag = "1")]
561    pub version: ::core::option::Option<u32>,
562    #[prost(message, repeated, tag = "2")]
563    pub instructions: ::prost::alloc::vec::Vec<VmInstruction>,
564}
565#[derive(Clone, PartialEq, ::prost::Message)]
566pub struct VmInstruction {
567    #[prost(enumeration = "vm_instruction::AbortLevel", optional, tag = "6")]
568    pub abort_level: ::core::option::Option<i32>,
569    /// Sub-instructions executed if the current instruction succeeds
570    #[prost(message, repeated, tag = "7")]
571    pub nested_instructions: ::prost::alloc::vec::Vec<VmInstruction>,
572    #[prost(oneof = "vm_instruction::Operation", tags = "1, 2, 3, 4, 5")]
573    pub operation: ::core::option::Option<vm_instruction::Operation>,
574}
575/// Nested message and enum types in `VmInstruction`.
576pub mod vm_instruction {
577    #[derive(
578        Clone,
579        Copy,
580        Debug,
581        PartialEq,
582        Eq,
583        Hash,
584        PartialOrd,
585        Ord,
586        ::prost::Enumeration
587    )]
588    #[repr(i32)]
589    pub enum AbortLevel {
590        /// Skip current instruction but execute following ones
591        SkipCurrentInstruction = 1,
592        /// Skip current instruction as well as following ones (default)
593        SkipCurrentInstructionAndBreakOuter = 2,
594        /// Abort whole program
595        Abort = 3,
596    }
597    impl AbortLevel {
598        /// String value of the enum field names used in the ProtoBuf definition.
599        ///
600        /// The values are not transformed in any way and thus are considered stable
601        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
602        pub fn as_str_name(&self) -> &'static str {
603            match self {
604                Self::SkipCurrentInstruction => "SKIP_CURRENT_INSTRUCTION",
605                Self::SkipCurrentInstructionAndBreakOuter => {
606                    "SKIP_CURRENT_INSTRUCTION_AND_BREAK_OUTER"
607                }
608                Self::Abort => "ABORT",
609            }
610        }
611        /// Creates an enum from field names used in the ProtoBuf definition.
612        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
613            match value {
614                "SKIP_CURRENT_INSTRUCTION" => Some(Self::SkipCurrentInstruction),
615                "SKIP_CURRENT_INSTRUCTION_AND_BREAK_OUTER" => {
616                    Some(Self::SkipCurrentInstructionAndBreakOuter)
617                }
618                "ABORT" => Some(Self::Abort),
619                _ => None,
620            }
621        }
622    }
623    #[derive(Clone, PartialEq, ::prost::Oneof)]
624    pub enum Operation {
625        #[prost(message, tag = "1")]
626        Select(super::VmOpSelect),
627        #[prost(message, tag = "2")]
628        RegLoad(super::VmOpRegLoad),
629        #[prost(message, tag = "3")]
630        Merge(super::VmOpMerge),
631        #[prost(message, tag = "4")]
632        Set(super::VmOpSet),
633        #[prost(message, tag = "5")]
634        Del(super::VmOpDel),
635    }
636}
637#[derive(Clone, PartialEq, ::prost::Message)]
638pub struct VmOpSelect {
639    /// Enum SRC|DST|BOTH. Default=SRC.
640    #[prost(enumeration = "VmCursorEnum", optional, tag = "1")]
641    pub cursor: ::core::option::Option<i32>,
642    #[prost(message, repeated, tag = "2")]
643    pub relative_path: ::prost::alloc::vec::Vec<vm_op_select::PathComponent>,
644    /// Creates the submessage if doesn't exist in the DST cursor
645    /// (think of mkdir -p). Only valid when cursor=DST|BOTH.
646    #[prost(bool, optional, tag = "3")]
647    pub create_if_not_exist: ::core::option::Option<bool>,
648}
649/// Nested message and enum types in `VmOpSelect`.
650pub mod vm_op_select {
651    /// A path component is either: (1) a field id to descend into (common case);
652    /// (2) an array index (for repeated fields); (3) a map lookup operation (for
653    /// repeated fields, where we snoop a sub-field as a map key)
654    #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
655    pub struct PathComponent {
656        /// Only valid when using field_id. This makes select have foreach
657        /// semantics. This means that the body of nested_instructions is
658        /// executed several times, once per each repeated submessage.
659        #[prost(bool, optional, tag = "5")]
660        pub is_repeated: ::core::option::Option<bool>,
661        /// Only valid when using map_key_field_id. This defines which
662        /// register (R1..R32) should be used to match the key of the dict
663        /// in a map lookup operation.
664        /// In other words:
665        /// foreach msg in repeated message {
666        ///    if msg\[map_key_field_id\] == R\[register_to_match\] {
667        ///       break;  // Lookup succeeded, PathComponent resolves here.
668        ///    }
669        /// }
670        #[prost(uint32, optional, tag = "6")]
671        pub register_to_match: ::core::option::Option<u32>,
672        /// Only valid when using field_id and is_repeated=true. When iterating
673        /// over repeated fields, stores the current iteration index into the
674        /// the register R1..R32 defined below. This can be used to do complex
675        /// operations like "find the entry in the array that has width==100,
676        /// remember its offset in the SRC array and overwrite the matching
677        /// i-th element in the DST array. We will probably never implement
678        /// this but it's here for completeness.
679        #[prost(uint32, optional, tag = "7")]
680        pub store_foreach_index_into_register: ::core::option::Option<u32>,
681        #[prost(oneof = "path_component::Field", tags = "1, 2, 3")]
682        pub field: ::core::option::Option<path_component::Field>,
683    }
684    /// Nested message and enum types in `PathComponent`.
685    pub mod path_component {
686        #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
687        pub enum Field {
688            #[prost(uint32, tag = "1")]
689            FieldId(u32),
690            #[prost(uint32, tag = "2")]
691            ArrayIndex(u32),
692            /// The ID of the field in the repeated submessage that we
693            /// use as a key (e.g. LayerState.layer_id). When setting this
694            /// register_to_match must also be set, to tell what's the
695            /// expected value of the key we are looking up.
696            #[prost(uint32, tag = "3")]
697            MapKeyFieldId(u32),
698        }
699    }
700}
701#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
702pub struct VmOpRegLoad {
703    /// SRC(default) | DST.
704    #[prost(enumeration = "VmCursorEnum", optional, tag = "1")]
705    pub cursor: ::core::option::Option<i32>,
706    /// 1=R1, 2=R2... 32=R32
707    #[prost(uint32, optional, tag = "2")]
708    pub dst_register: ::core::option::Option<u32>,
709}
710/// Merges SRC into DST. Both need to point to a message (not a field).
711#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
712pub struct VmOpMerge {
713    /// When true, the merge operation will skip any field that is already
714    /// resolved as a message node in the destination tree.
715    ///
716    /// This is used to support merging of nested messages. Because ProtoVM
717    /// does not know the schema, a standard MERGE cannot distinguish
718    /// between a string and a message on the wire and it would overwrite
719    /// the entire blob, destroying granular updates.
720    ///
721    /// By setting this to true, a program can be implemented to do a
722    /// bottom-up, multi-step merge by traversing into and merging
723    /// the deepest submessages first, then moving up to the parent
724    /// message and merging it with skip_submessages = true.
725    #[prost(bool, optional, tag = "1")]
726    pub skip_submessages: ::core::option::Option<bool>,
727    /// When true, the merge operation will remove the dst field if the src field
728    /// is empty.
729    ///
730    /// This can be used to replicate the removal of a subobject within the
731    /// producer's state. E.g.
732    /// This event on the producer side: mProducerState.mSubobject = nullptr
733    /// can be represented by this patch: { producer_state { subobject {} }}
734    #[prost(bool, optional, tag = "2")]
735    pub del_if_src_empty: ::core::option::Option<bool>,
736}
737/// Copies SRC into DST. If a message, replaces the DST node, discarding any
738/// pre-existing field.
739#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
740pub struct VmOpSet {}
741/// Delete the field or message pointed by DST.
742#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
743pub struct VmOpDel {}
744#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
745#[repr(i32)]
746pub enum VmCursorEnum {
747    VmCursorUnspecified = 0,
748    VmCursorSrc = 1,
749    VmCursorDst = 2,
750    VmCursorBoth = 3,
751}
752impl VmCursorEnum {
753    /// String value of the enum field names used in the ProtoBuf definition.
754    ///
755    /// The values are not transformed in any way and thus are considered stable
756    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
757    pub fn as_str_name(&self) -> &'static str {
758        match self {
759            Self::VmCursorUnspecified => "VM_CURSOR_UNSPECIFIED",
760            Self::VmCursorSrc => "VM_CURSOR_SRC",
761            Self::VmCursorDst => "VM_CURSOR_DST",
762            Self::VmCursorBoth => "VM_CURSOR_BOTH",
763        }
764    }
765    /// Creates an enum from field names used in the ProtoBuf definition.
766    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
767        match value {
768            "VM_CURSOR_UNSPECIFIED" => Some(Self::VmCursorUnspecified),
769            "VM_CURSOR_SRC" => Some(Self::VmCursorSrc),
770            "VM_CURSOR_DST" => Some(Self::VmCursorDst),
771            "VM_CURSOR_BOTH" => Some(Self::VmCursorBoth),
772            _ => None,
773        }
774    }
775}
776/// This message is sent from Producer(s) to the tracing Service when registering
777/// to advertise their capabilities. It describes the structure of tracing
778/// protos that will be produced by the data source and the supported filters.
779#[derive(Clone, PartialEq, ::prost::Message)]
780pub struct DataSourceDescriptor {
781    /// e.g., "linux.ftrace", "chromium.tracing"
782    #[prost(string, optional, tag = "1")]
783    pub name: ::core::option::Option<::prost::alloc::string::String>,
784    /// When non-zero, this is a unique ID within the scope of the Producer for
785    /// this data source (it is NOT globally unique). This is useful to
786    /// differentiate between data sources with matching names when calling
787    /// UpdateDataSource(). This field has been introduced in November 2021
788    /// (v22, Android T) and is not supported on older versions.
789    #[prost(uint64, optional, tag = "7")]
790    pub id: ::core::option::Option<u64>,
791    /// When true the data source is expected to ack the stop request through the
792    /// NotifyDataSourceStopped() IPC. This field has been introduced after
793    /// Android P in Jul 2018 and is not supported on older versions.
794    #[prost(bool, optional, tag = "2")]
795    pub will_notify_on_stop: ::core::option::Option<bool>,
796    /// When true the data source is expected to ack the start request through the
797    /// NotifyDataSourceStarted() IPC. This field has been introduced after
798    /// Android P in March 2019 and is not supported on older versions.
799    #[prost(bool, optional, tag = "3")]
800    pub will_notify_on_start: ::core::option::Option<bool>,
801    /// If true, opt into receiving the ClearIncrementalState() IPC. This should be
802    /// set if the data source writes packets that refer to previous trace
803    /// contents, and knows how to stop referring to the already-emitted data.
804    #[prost(bool, optional, tag = "4")]
805    pub handles_incremental_state_clear: ::core::option::Option<bool>,
806    /// If true, indicates that the data source does nothing upon Flush. This
807    /// allows the service to reduce the flush-related IPC traffic and better deal
808    /// with frozen producers (see go/perfetto-frozen). This is usually the case
809    /// for data sources like 'track_event' that don't have access to the various
810    /// thread task runners to post a flush task and rely purely on server-side
811    /// scraping.
812    /// Introduced in v39 / Android V.
813    #[prost(bool, optional, tag = "9")]
814    pub no_flush: ::core::option::Option<bool>,
815    /// If present, the tracing service executes this program within a ProtoVM to
816    /// process overwritten packets (patches). The service computes a hash of the
817    /// program to detect and disambiguate between different versions; if multiple
818    /// versions (from different producers) are specified for the same data source,
819    /// the service instantiates a dedicated ProtoVM for each.
820    #[prost(message, optional, tag = "10")]
821    pub protovm_program: ::core::option::Option<VmProgram>,
822    /// Optional specification about available GPU counters.
823    #[prost(message, optional, tag = "5")]
824    pub gpu_counter_descriptor: ::core::option::Option<GpuCounterDescriptor>,
825    #[prost(message, optional, tag = "6")]
826    pub track_event_descriptor: ::core::option::Option<TrackEventDescriptor>,
827    #[prost(message, optional, tag = "8")]
828    pub ftrace_descriptor: ::core::option::Option<FtraceDescriptor>,
829}
830/// Reports the state of the tracing service. Used to gather details about the
831/// data sources connected.
832/// See ConsumerPort::QueryServiceState().
833#[derive(Clone, PartialEq, ::prost::Message)]
834pub struct TracingServiceState {
835    /// Lists all the producers connected.
836    #[prost(message, repeated, tag = "1")]
837    pub producers: ::prost::alloc::vec::Vec<tracing_service_state::Producer>,
838    /// Lists the data sources available.
839    #[prost(message, repeated, tag = "2")]
840    pub data_sources: ::prost::alloc::vec::Vec<tracing_service_state::DataSource>,
841    /// Lists the tracing sessions active AND owned by a consumer that has the same
842    /// UID of the caller (or all of them if the caller is root).
843    /// Introduced in v24 / Android T.
844    #[prost(message, repeated, tag = "6")]
845    pub tracing_sessions: ::prost::alloc::vec::Vec<
846        tracing_service_state::TracingSession,
847    >,
848    /// This is always set to true from v24 and beyond. This flag is only used to
849    /// tell the difference between: (1) talking to a recent service which happens
850    /// to have no tracing session active; (2) talking to an older version of the
851    /// service which will never report any tracing session.
852    #[prost(bool, optional, tag = "7")]
853    pub supports_tracing_sessions: ::core::option::Option<bool>,
854    /// Total number of tracing sessions.
855    #[prost(int32, optional, tag = "3")]
856    pub num_sessions: ::core::option::Option<i32>,
857    /// Number of tracing sessions in the started state. Always <= num_sessions.
858    #[prost(int32, optional, tag = "4")]
859    pub num_sessions_started: ::core::option::Option<i32>,
860    /// The version of traced (the same returned by `traced --version`).
861    /// This is a human readable string with and its format varies depending on
862    /// the build system and the repo (standalone vs AOSP).
863    /// This is intended for human debugging only.
864    #[prost(string, optional, tag = "5")]
865    pub tracing_service_version: ::core::option::Option<::prost::alloc::string::String>,
866}
867/// Nested message and enum types in `TracingServiceState`.
868pub mod tracing_service_state {
869    /// Describes a producer process.
870    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
871    pub struct Producer {
872        /// Unique ID of the producer (monotonic counter).
873        #[prost(int32, optional, tag = "1")]
874        pub id: ::core::option::Option<i32>,
875        /// Typically matches the process name.
876        #[prost(string, optional, tag = "2")]
877        pub name: ::core::option::Option<::prost::alloc::string::String>,
878        /// Unix pid of the remote process. Supported only on Linux-based systems.
879        /// Introduced in v24 / Android T.
880        #[prost(int32, optional, tag = "5")]
881        pub pid: ::core::option::Option<i32>,
882        /// Unix uid of the remote process.
883        #[prost(int32, optional, tag = "3")]
884        pub uid: ::core::option::Option<i32>,
885        /// The version of the client library used by the producer.
886        /// This is a human readable string with and its format varies depending on
887        /// the build system and the repo (standalone vs AOSP).
888        /// This is intended for human debugging only.
889        #[prost(string, optional, tag = "4")]
890        pub sdk_version: ::core::option::Option<::prost::alloc::string::String>,
891        /// Returns true if the process appears to be frozen (Android only).
892        /// Introduced in Perfetto V49 / Android 24Q4.
893        #[prost(bool, optional, tag = "6")]
894        pub frozen: ::core::option::Option<bool>,
895        /// Identifies the machine this producer is connected from in multi-machine
896        /// tracing setups (e.g. when going through traced_relay). Unset (or zero)
897        /// means the producer is connected from the local/host machine where the
898        /// tracing service is running.
899        /// Introduced in Perfetto V56 / Android 26Q3.
900        #[prost(uint32, optional, tag = "7")]
901        pub machine_id: ::core::option::Option<u32>,
902        /// Human-readable name of the machine, as advertised by the relay (usually
903        /// the value of PERFETTO_MACHINE_NAME on the remote, falling back to the
904        /// remote's `uname -s`). Only set when machine_id is non-zero.
905        /// Introduced in Perfetto V56 / Android 26Q3.
906        #[prost(string, optional, tag = "8")]
907        pub machine_name: ::core::option::Option<::prost::alloc::string::String>,
908    }
909    /// Describes a data source registered by a producer. Data sources are listed
910    /// regardless of the fact that they are being used or not.
911    #[derive(Clone, PartialEq, ::prost::Message)]
912    pub struct DataSource {
913        /// Descriptor passed by the data source when calling RegisterDataSource().
914        #[prost(message, optional, tag = "1")]
915        pub ds_descriptor: ::core::option::Option<super::DataSourceDescriptor>,
916        /// ID of the producer, as per Producer.id.
917        #[prost(int32, optional, tag = "2")]
918        pub producer_id: ::core::option::Option<i32>,
919    }
920    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
921    pub struct TracingSession {
922        /// The TracingSessionID.
923        #[prost(uint64, optional, tag = "1")]
924        pub id: ::core::option::Option<u64>,
925        /// The Unix uid of the consumer that started the session.
926        /// This is meaningful only if the caller is root. In all other cases only
927        /// tracing sessions that match the caller UID will be displayed.
928        #[prost(int32, optional, tag = "2")]
929        pub consumer_uid: ::core::option::Option<i32>,
930        /// Internal state of the tracing session.
931        /// These strings are FYI only and subjected to change.
932        #[prost(string, optional, tag = "3")]
933        pub state: ::core::option::Option<::prost::alloc::string::String>,
934        /// The unique_session_name as set in the trace config (might be empty).
935        #[prost(string, optional, tag = "4")]
936        pub unique_session_name: ::core::option::Option<::prost::alloc::string::String>,
937        /// The number and size of each buffer.
938        #[prost(uint32, repeated, packed = "false", tag = "5")]
939        pub buffer_size_kb: ::prost::alloc::vec::Vec<u32>,
940        /// Duration, as specified in the TraceConfig.duration_ms.
941        #[prost(uint32, optional, tag = "6")]
942        pub duration_ms: ::core::option::Option<u32>,
943        /// Number of data sources involved in the session.
944        #[prost(uint32, optional, tag = "7")]
945        pub num_data_sources: ::core::option::Option<u32>,
946        /// Time when the session was started, in the CLOCK_REALTIME domain.
947        /// Available only on Linux-based systems.
948        #[prost(int64, optional, tag = "8")]
949        pub start_realtime_ns: ::core::option::Option<i64>,
950        /// The bugreport_score, as set in TraceConfig.bugreport_score.
951        #[prost(int32, optional, tag = "9")]
952        pub bugreport_score: ::core::option::Option<i32>,
953        /// As per TraceConfig.bugreport_filename.
954        #[prost(string, optional, tag = "10")]
955        pub bugreport_filename: ::core::option::Option<::prost::alloc::string::String>,
956        /// If true, the session is in the STARTED state. If false the session is in
957        /// any other state (see `state` field).
958        #[prost(bool, optional, tag = "11")]
959        pub is_started: ::core::option::Option<bool>,
960    }
961}
962#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
963pub struct TracingServiceCapabilities {
964    /// Whether the service supports QueryCapabilities() at all or not.
965    /// This is only used at the C++ level to distinguish the case of talking to
966    /// an older version of the service that doesn't support QueryCapabilities().
967    /// In that case the IPC layer will just reject the unknown call, and the
968    /// consumer_ipc_client_impl.cc will return an empty message where this field
969    /// is false. In all other cases, this is always set to true.
970    #[prost(bool, optional, tag = "1")]
971    pub has_query_capabilities: ::core::option::Option<bool>,
972    /// The set of known events that can be passed to ConsumerPort.ObserveEvents().
973    #[prost(
974        enumeration = "observable_events::Type",
975        repeated,
976        packed = "false",
977        tag = "2"
978    )]
979    pub observable_events: ::prost::alloc::vec::Vec<i32>,
980    /// Whether the service supports TraceConfig.output_path (for asking traced to
981    /// create the output file instead of passing a file descriptor).
982    #[prost(bool, optional, tag = "3")]
983    pub has_trace_config_output_path: ::core::option::Option<bool>,
984    /// Whether the service supports CloneSession and CLONE_SNAPSHOT triggers.
985    #[prost(bool, optional, tag = "4")]
986    pub has_clone_session: ::core::option::Option<bool>,
987}
988/// Statistics for the internals of the tracing service.
989///
990/// Next id: 19.
991#[derive(Clone, PartialEq, ::prost::Message)]
992pub struct TraceStats {
993    /// Stats for the TraceBuffer(s) of the current trace session.
994    #[prost(message, repeated, tag = "1")]
995    pub buffer_stats: ::prost::alloc::vec::Vec<trace_stats::BufferStats>,
996    /// The thresholds of each the `writer_stats` histogram buckets. This is
997    /// emitted only once as all WriterStats share the same bucket layout.
998    /// This field has the same cardinality of the
999    /// `writer_stats.chunk_payload_histogram_{counts,sum}` - 1.
1000    /// (The -1 is because the last overflow bucket is not reported in the _def).
1001    /// An array of values \[10, 100, 1000\] in the _def array means that there are
1002    /// four buckets (3 + the implicit overflow bucket):
1003    /// \[0\]: x <= 10; \[1\]: 100 < x <= 1000; \[2\]: 1000 < x <= 1000; \[3\]: x > 1000.
1004    #[prost(int64, repeated, packed = "false", tag = "17")]
1005    pub chunk_payload_histogram_def: ::prost::alloc::vec::Vec<i64>,
1006    #[prost(message, repeated, tag = "18")]
1007    pub writer_stats: ::prost::alloc::vec::Vec<trace_stats::WriterStats>,
1008    /// Num. producers connected (whether they are involved in the current tracing
1009    /// session or not).
1010    #[prost(uint32, optional, tag = "2")]
1011    pub producers_connected: ::core::option::Option<u32>,
1012    /// Num. producers ever seen for all trace sessions since startup (it's a good
1013    /// proxy for inferring num. producers crashed / killed).
1014    #[prost(uint64, optional, tag = "3")]
1015    pub producers_seen: ::core::option::Option<u64>,
1016    /// Num. data sources registered for all trace sessions.
1017    #[prost(uint32, optional, tag = "4")]
1018    pub data_sources_registered: ::core::option::Option<u32>,
1019    /// Num. data sources ever seen for all trace sessions since startup.
1020    #[prost(uint64, optional, tag = "5")]
1021    pub data_sources_seen: ::core::option::Option<u64>,
1022    /// Num. concurrently active tracing sessions.
1023    #[prost(uint32, optional, tag = "6")]
1024    pub tracing_sessions: ::core::option::Option<u32>,
1025    /// Num. buffers for all tracing session (not just the current one). This will
1026    /// be >= buffer_stats.size(), because the latter is only about the current
1027    /// session.
1028    #[prost(uint32, optional, tag = "7")]
1029    pub total_buffers: ::core::option::Option<u32>,
1030    /// Num. chunks that were discarded by the service before attempting to commit
1031    /// them to a buffer, e.g. because the producer specified an invalid buffer ID.
1032    #[prost(uint64, optional, tag = "8")]
1033    pub chunks_discarded: ::core::option::Option<u64>,
1034    /// Num. patches that were discarded by the service before attempting to apply
1035    /// them to a buffer, e.g. because the producer specified an invalid buffer ID.
1036    #[prost(uint64, optional, tag = "9")]
1037    pub patches_discarded: ::core::option::Option<u64>,
1038    /// Packets that failed validation of the TrustedPacket. If this is > 0, there
1039    /// is a bug in the producer.
1040    #[prost(uint64, optional, tag = "10")]
1041    pub invalid_packets: ::core::option::Option<u64>,
1042    #[prost(message, optional, tag = "11")]
1043    pub filter_stats: ::core::option::Option<trace_stats::FilterStats>,
1044    /// Count of Flush() requests (either from the Consumer, or self-induced
1045    /// periodic flushes). The final Flush() is also included in the count.
1046    #[prost(uint64, optional, tag = "12")]
1047    pub flushes_requested: ::core::option::Option<u64>,
1048    /// The count of the Flush() requests that were completed successfully.
1049    /// In a well behaving trace this should always be == `flush_requests`.
1050    #[prost(uint64, optional, tag = "13")]
1051    pub flushes_succeeded: ::core::option::Option<u64>,
1052    /// The count of the Flush() requests that failed (in most timed out).
1053    /// In a well behaving trace this should always be == 0.
1054    #[prost(uint64, optional, tag = "14")]
1055    pub flushes_failed: ::core::option::Option<u64>,
1056    #[prost(enumeration = "trace_stats::FinalFlushOutcome", optional, tag = "15")]
1057    pub final_flush_outcome: ::core::option::Option<i32>,
1058}
1059/// Nested message and enum types in `TraceStats`.
1060pub mod trace_stats {
1061    /// From TraceBuffer::Stats.
1062    ///
1063    /// Next id: 23.
1064    #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1065    pub struct BufferStats {
1066        /// Size of the circular buffer in bytes.
1067        #[prost(uint64, optional, tag = "12")]
1068        pub buffer_size: ::core::option::Option<u64>,
1069        /// Num. bytes written into the circular buffer, including chunk headers.
1070        #[prost(uint64, optional, tag = "1")]
1071        pub bytes_written: ::core::option::Option<u64>,
1072        /// Num. bytes overwritten before they have been read (i.e. loss of data).
1073        #[prost(uint64, optional, tag = "13")]
1074        pub bytes_overwritten: ::core::option::Option<u64>,
1075        /// Total size of chunks that were fully read from the circular buffer by the
1076        /// consumer. This may not be equal to |bytes_written| either in the middle
1077        /// of tracing, or if |chunks_overwritten| is non-zero. Note that this is the
1078        /// size of the chunks read from the buffer, including chunk headers, which
1079        /// will be different from the total size of packets returned to the
1080        /// consumer.
1081        ///
1082        /// The current utilization of the trace buffer (mid-tracing) can be obtained
1083        /// by subtracting |bytes_read| and |bytes_overwritten| from |bytes_written|,
1084        /// adding the difference of |padding_bytes_written| and
1085        /// |padding_bytes_cleared|, and comparing this sum to the |buffer_size|.
1086        /// Note that this represents the total size of buffered data in the buffer,
1087        /// yet this data may be spread non-contiguously through the buffer and may
1088        /// be overridden before the utilization reaches 100%.
1089        #[prost(uint64, optional, tag = "14")]
1090        pub bytes_read: ::core::option::Option<u64>,
1091        /// Num. bytes that were allocated as padding between chunks in the circular
1092        /// buffer.
1093        #[prost(uint64, optional, tag = "15")]
1094        pub padding_bytes_written: ::core::option::Option<u64>,
1095        /// Num. of padding bytes that were removed from the circular buffer when
1096        /// they were overwritten.
1097        ///
1098        /// The difference between |padding_bytes_written| and
1099        /// |padding_bytes_cleared| denotes the total size of padding currently
1100        /// present in the buffer.
1101        #[prost(uint64, optional, tag = "16")]
1102        pub padding_bytes_cleared: ::core::option::Option<u64>,
1103        /// Num. chunks (!= packets) written into the buffer.
1104        #[prost(uint64, optional, tag = "2")]
1105        pub chunks_written: ::core::option::Option<u64>,
1106        /// Num. chunks (!= packets) rewritten into the buffer. This means we rewrote
1107        /// the same chunk with additional packets appended to the end.
1108        #[prost(uint64, optional, tag = "10")]
1109        pub chunks_rewritten: ::core::option::Option<u64>,
1110        /// TraceBufferV2 only. Num. chunks that we moved to the write cursor
1111        /// instead of rewriting in place. We do this for scraped chunks that have
1112        /// been fully read: their old position can be so close to the write cursor
1113        /// that the packets we just recovered would be overwritten before any read.
1114        ///
1115        /// Introduced in v59 / Android 26Q3+.
1116        #[prost(uint64, optional, tag = "20")]
1117        pub chunks_relocated: ::core::option::Option<u64>,
1118        /// Num. chunks overwritten before they have been read (i.e. loss of data).
1119        #[prost(uint64, optional, tag = "3")]
1120        pub chunks_overwritten: ::core::option::Option<u64>,
1121        /// Num. chunks discarded (i.e. loss of data). For SMB chunks, this can be
1122        /// > 0 only when a buffer is configured with FillPolicy == DISCARD.
1123        /// TraceBufferV2 also counts SMB v2 batches rejected because their
1124        /// producer has a ProtoVM on this buffer.
1125        #[prost(uint64, optional, tag = "18")]
1126        pub chunks_discarded: ::core::option::Option<u64>,
1127        /// Num. chunks (!= packets) that were fully read from the circular buffer by
1128        /// the consumer. This may not be equal to |chunks_written| either in the
1129        /// middle of tracing, or if |chunks_overwritten| is non-zero.
1130        #[prost(uint64, optional, tag = "17")]
1131        pub chunks_read: ::core::option::Option<u64>,
1132        /// Num. chunks that were committed out of order.
1133        #[prost(uint64, optional, tag = "11")]
1134        pub chunks_committed_out_of_order: ::core::option::Option<u64>,
1135        /// Num. times the ring buffer wrapped around.
1136        #[prost(uint64, optional, tag = "4")]
1137        pub write_wrap_count: ::core::option::Option<u64>,
1138        /// Num. out-of-band (OOB) patches that succeeded.
1139        #[prost(uint64, optional, tag = "5")]
1140        pub patches_succeeded: ::core::option::Option<u64>,
1141        /// Num. OOB patches that failed (e.g., the chunk to patch was gone).
1142        #[prost(uint64, optional, tag = "6")]
1143        pub patches_failed: ::core::option::Option<u64>,
1144        /// Num. readaheads (for large multi-chunk packet reads) that ended up in a
1145        /// successful packet read.
1146        #[prost(uint64, optional, tag = "7")]
1147        pub readaheads_succeeded: ::core::option::Option<u64>,
1148        /// Num. readaheads aborted because of missing chunks in the sequence stream.
1149        /// Note that a small number > 0 is totally expected: occasionally, when
1150        /// issuing a read, the very last packet in a sequence might be incomplete
1151        /// (because the producer is still writing it while we read). The read will
1152        /// stop at that point, for that sequence, increasing this counter.
1153        #[prost(uint64, optional, tag = "8")]
1154        pub readaheads_failed: ::core::option::Option<u64>,
1155        /// Num. of violations of the SharedMemoryABI or the shared ring buffer ABI
1156        /// found while writing or reading the buffer. This includes SMB v2 packets
1157        /// that TraceBufferV2 cannot rewrite because they are malformed or nest
1158        /// more than 128 groups. It also includes chunks whose writer ID already
1159        /// uses the other input format.
1160        /// This is an indication of either a bug in the producer(s) or malicious
1161        /// producer(s).
1162        #[prost(uint64, optional, tag = "9")]
1163        pub abi_violations: ::core::option::Option<u64>,
1164        /// Num. of times the service detected packet loss on a trace writer
1165        /// sequence. This is usually caused by exhaustion of available chunks in the
1166        /// writer process's SMB. Note that this relies on the client's TraceWriter
1167        /// indicating this loss to the service -- packets lost for other reasons are
1168        /// not reflected in this stat.
1169        #[prost(uint64, optional, tag = "19")]
1170        pub trace_writer_packet_loss: ::core::option::Option<u64>,
1171        /// TraceBufferV2 only. Num. SMB v2 packets dropped at read time because
1172        /// they contain a nested message larger than 256 MiB, the limit of the
1173        /// four-byte length field. The packet can be valid. Loss is reported on the
1174        /// next packet of the same sequence.
1175        #[prost(uint64, optional, tag = "22")]
1176        pub oversized_packets_dropped: ::core::option::Option<u64>,
1177    }
1178    /// Per TraceWriter stat. Each {producer, trace writer} tuple is publicly
1179    /// visible as a unique sequence ID in the trace.
1180    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1181    pub struct WriterStats {
1182        /// This matches the TracePacket.trusted_packet_sequence_id and is used to
1183        /// correlate the stats with the actual packet types.
1184        #[prost(uint64, optional, tag = "1")]
1185        pub sequence_id: ::core::option::Option<u64>,
1186        /// The buffer index (0..N, as defined in the TraceConfig).
1187        #[prost(uint32, optional, tag = "4")]
1188        pub buffer: ::core::option::Option<u32>,
1189        /// These two arrays have the same cardinality and match the cardinality of
1190        /// chunk_payload_histogram_def + 1 (for the overflow bucket, see below).
1191        /// `sum` contains the SUM(entries) and `counts` contains the COUNT(entries)
1192        /// for each bucket.
1193        #[prost(uint64, repeated, tag = "2")]
1194        pub chunk_payload_histogram_counts: ::prost::alloc::vec::Vec<u64>,
1195        #[prost(int64, repeated, tag = "3")]
1196        pub chunk_payload_histogram_sum: ::prost::alloc::vec::Vec<i64>,
1197    }
1198    /// This is set only when the TraceConfig specifies a TraceFilter.
1199    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1200    pub struct FilterStats {
1201        #[prost(uint64, optional, tag = "1")]
1202        pub input_packets: ::core::option::Option<u64>,
1203        #[prost(uint64, optional, tag = "2")]
1204        pub input_bytes: ::core::option::Option<u64>,
1205        #[prost(uint64, optional, tag = "3")]
1206        pub output_bytes: ::core::option::Option<u64>,
1207        #[prost(uint64, optional, tag = "4")]
1208        pub errors: ::core::option::Option<u64>,
1209        #[prost(uint64, optional, tag = "5")]
1210        pub time_taken_ns: ::core::option::Option<u64>,
1211        /// The number of bytes discarded by the filter (i.e. output - input).
1212        /// The array has one entry for each buffer defined in the config (unless no
1213        /// packets for that buffer were seen and hence filtered).
1214        /// Note: the SUM(bytes_discarded_per_buffer) will be <= but not == the total
1215        /// (output_bytes - input_bytes) because the filter might also discard
1216        /// server-generated synthetic packets, that have no buffer index.
1217        #[prost(uint64, repeated, packed = "false", tag = "20")]
1218        pub bytes_discarded_per_buffer: ::prost::alloc::vec::Vec<u64>,
1219    }
1220    #[derive(
1221        Clone,
1222        Copy,
1223        Debug,
1224        PartialEq,
1225        Eq,
1226        Hash,
1227        PartialOrd,
1228        Ord,
1229        ::prost::Enumeration
1230    )]
1231    #[repr(i32)]
1232    pub enum FinalFlushOutcome {
1233        FinalFlushUnspecified = 0,
1234        FinalFlushSucceeded = 1,
1235        FinalFlushFailed = 2,
1236    }
1237    impl FinalFlushOutcome {
1238        /// String value of the enum field names used in the ProtoBuf definition.
1239        ///
1240        /// The values are not transformed in any way and thus are considered stable
1241        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1242        pub fn as_str_name(&self) -> &'static str {
1243            match self {
1244                Self::FinalFlushUnspecified => "FINAL_FLUSH_UNSPECIFIED",
1245                Self::FinalFlushSucceeded => "FINAL_FLUSH_SUCCEEDED",
1246                Self::FinalFlushFailed => "FINAL_FLUSH_FAILED",
1247            }
1248        }
1249        /// Creates an enum from field names used in the ProtoBuf definition.
1250        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1251            match value {
1252                "FINAL_FLUSH_UNSPECIFIED" => Some(Self::FinalFlushUnspecified),
1253                "FINAL_FLUSH_SUCCEEDED" => Some(Self::FinalFlushSucceeded),
1254                "FINAL_FLUSH_FAILED" => Some(Self::FinalFlushFailed),
1255                _ => None,
1256            }
1257        }
1258    }
1259}
1260/// Builtin clock domains used in Perfetto traces.
1261///
1262/// The default trace time clock is BUILTIN_CLOCK_TRACE_FILE: a synthetic clock
1263/// representing the trace file's own timeline. Each trace file gets its own
1264/// instance (scoped by trace file index).
1265///
1266/// For backwards compatibility, Perfetto proto traces register BOOTTIME as a
1267/// fallback: if the first timestamp conversion uses a clock other than the
1268/// trace file clock and no explicit clock snapshot data exists, the trace time
1269/// is switched to BOOTTIME. This fallback does not fire for modern traces that
1270/// include ClockSnapshots or that only use the trace file clock directly.
1271///
1272/// The `primary_trace_clock` field in ClockSnapshot can definitively override
1273/// the trace time clock regardless of the above.
1274#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1275#[repr(i32)]
1276pub enum BuiltinClock {
1277    Unknown = 0,
1278    /// Corresponds to CLOCK_REALTIME. See clock_gettime(2).
1279    Realtime = 1,
1280    /// Corresponds to CLOCK_REALTIME_COARSE. See clock_gettime(2).
1281    RealtimeCoarse = 2,
1282    /// Corresponds to CLOCK_MONOTONIC. See clock_gettime(2).
1283    Monotonic = 3,
1284    /// Corresponds to CLOCK_MONOTONIC_COARSE. See clock_gettime(2).
1285    MonotonicCoarse = 4,
1286    /// Corresponds to CLOCK_MONOTONIC_RAW. See clock_gettime(2).
1287    MonotonicRaw = 5,
1288    /// Corresponds to CLOCK_BOOTTIME. See clock_gettime(2).
1289    /// For proto traces, this is used as a backwards-compatible fallback trace
1290    /// time clock when no explicit clock snapshots are present.
1291    Boottime = 6,
1292    /// TSC (Time Stamp Counter). Architecture-specific high-resolution counter.
1293    Tsc = 9,
1294    /// Corresponds to the perf event clock (PERF_CLOCK).
1295    Perf = 10,
1296    /// A synthetic clock representing the trace file's own timeline. Each trace
1297    /// file gets its own instance (scoped by trace file index). This is the
1298    /// default trace time clock before any clock snapshot or format-specific
1299    /// override takes effect.
1300    TraceFile = 11,
1301    MaxId = 63,
1302}
1303impl BuiltinClock {
1304    /// String value of the enum field names used in the ProtoBuf definition.
1305    ///
1306    /// The values are not transformed in any way and thus are considered stable
1307    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1308    pub fn as_str_name(&self) -> &'static str {
1309        match self {
1310            Self::Unknown => "BUILTIN_CLOCK_UNKNOWN",
1311            Self::Realtime => "BUILTIN_CLOCK_REALTIME",
1312            Self::RealtimeCoarse => "BUILTIN_CLOCK_REALTIME_COARSE",
1313            Self::Monotonic => "BUILTIN_CLOCK_MONOTONIC",
1314            Self::MonotonicCoarse => "BUILTIN_CLOCK_MONOTONIC_COARSE",
1315            Self::MonotonicRaw => "BUILTIN_CLOCK_MONOTONIC_RAW",
1316            Self::Boottime => "BUILTIN_CLOCK_BOOTTIME",
1317            Self::Tsc => "BUILTIN_CLOCK_TSC",
1318            Self::Perf => "BUILTIN_CLOCK_PERF",
1319            Self::TraceFile => "BUILTIN_CLOCK_TRACE_FILE",
1320            Self::MaxId => "BUILTIN_CLOCK_MAX_ID",
1321        }
1322    }
1323    /// Creates an enum from field names used in the ProtoBuf definition.
1324    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1325        match value {
1326            "BUILTIN_CLOCK_UNKNOWN" => Some(Self::Unknown),
1327            "BUILTIN_CLOCK_REALTIME" => Some(Self::Realtime),
1328            "BUILTIN_CLOCK_REALTIME_COARSE" => Some(Self::RealtimeCoarse),
1329            "BUILTIN_CLOCK_MONOTONIC" => Some(Self::Monotonic),
1330            "BUILTIN_CLOCK_MONOTONIC_COARSE" => Some(Self::MonotonicCoarse),
1331            "BUILTIN_CLOCK_MONOTONIC_RAW" => Some(Self::MonotonicRaw),
1332            "BUILTIN_CLOCK_BOOTTIME" => Some(Self::Boottime),
1333            "BUILTIN_CLOCK_TSC" => Some(Self::Tsc),
1334            "BUILTIN_CLOCK_PERF" => Some(Self::Perf),
1335            "BUILTIN_CLOCK_TRACE_FILE" => Some(Self::TraceFile),
1336            "BUILTIN_CLOCK_MAX_ID" => Some(Self::MaxId),
1337            _ => None,
1338        }
1339    }
1340}
1341/// Semantic types for string fields. This tells the filter what kind of
1342/// data the field contains, so it can apply the right filtering rules.
1343/// See /rfcs/0011-subset-string-filter-rules.md for design details.
1344/// Introduced in: Perfetto v54.
1345#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1346#[repr(i32)]
1347pub enum SemanticType {
1348    Unspecified = 0,
1349    Atrace = 1,
1350    Job = 2,
1351    Wakelock = 3,
1352}
1353impl SemanticType {
1354    /// String value of the enum field names used in the ProtoBuf definition.
1355    ///
1356    /// The values are not transformed in any way and thus are considered stable
1357    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1358    pub fn as_str_name(&self) -> &'static str {
1359        match self {
1360            Self::Unspecified => "SEMANTIC_TYPE_UNSPECIFIED",
1361            Self::Atrace => "SEMANTIC_TYPE_ATRACE",
1362            Self::Job => "SEMANTIC_TYPE_JOB",
1363            Self::Wakelock => "SEMANTIC_TYPE_WAKELOCK",
1364        }
1365    }
1366    /// Creates an enum from field names used in the ProtoBuf definition.
1367    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1368        match value {
1369            "SEMANTIC_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
1370            "SEMANTIC_TYPE_ATRACE" => Some(Self::Atrace),
1371            "SEMANTIC_TYPE_JOB" => Some(Self::Job),
1372            "SEMANTIC_TYPE_WAKELOCK" => Some(Self::Wakelock),
1373            _ => None,
1374        }
1375    }
1376}
1377/// Arbitrary key value pairs which can attached to a trace to provide context
1378/// about any facet of the trace. This can include, what data it contains,
1379/// properties of the host / machine the trace was collected on, and other
1380/// interesting information about a trace.
1381/// /
1382/// Examples include:
1383/// gradle_version = "9.0.10-alpha01"
1384/// java_major_version = 24
1385/// /
1386/// Attributes can be written as a TracePacket or set in
1387/// `TraceConfig.trace_attributes` (e.g. via `perfetto --add-attribute`).
1388/// /
1389/// All keys get prefixed with `trace_attribute.` in the UI and in
1390/// `traceprocessor`. If there are multiple trace attribute packets that use the
1391/// same key, then the latest value wins.
1392/// These key value pairs show up in the `Overview` section in
1393/// Perfetto UI. Additionally, these key, value pairs can also be queried using
1394/// Pefetto SQL by using the following query:
1395/// /
1396/// `SELECT * FROM metadata WHERE name GLOB 'trace_attribute.*';`
1397#[derive(Clone, PartialEq, ::prost::Message)]
1398pub struct TraceAttributes {
1399    #[prost(message, repeated, tag = "1")]
1400    pub attribute: ::prost::alloc::vec::Vec<trace_attributes::Attribute>,
1401}
1402/// Nested message and enum types in `TraceAttributes`.
1403pub mod trace_attributes {
1404    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1405    pub struct Attribute {
1406        /// The key
1407        #[prost(string, optional, tag = "1")]
1408        pub key: ::core::option::Option<::prost::alloc::string::String>,
1409        /// The value
1410        #[prost(oneof = "attribute::Value", tags = "2, 3")]
1411        pub value: ::core::option::Option<attribute::Value>,
1412    }
1413    /// Nested message and enum types in `Attribute`.
1414    pub mod attribute {
1415        /// The value
1416        #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
1417        pub enum Value {
1418            #[prost(int64, tag = "2")]
1419            LongValue(i64),
1420            #[prost(string, tag = "3")]
1421            StringValue(::prost::alloc::string::String),
1422        }
1423    }
1424}
1425/// Options for the android.aflags data source.
1426/// This data source captures snapshots of Android aconfig flags.
1427/// See <https://source.android.com/docs/setup/build/feature-flagging/declare-flag>
1428/// for more information on aconfig flags.
1429#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1430pub struct AndroidAflagsConfig {
1431    /// Frequency of polling. If absent or 0, the state will be recorded once,
1432    /// at the start of the trace.
1433    ///
1434    /// It is recommended to either leave this absent or set it to a large
1435    /// value as each invocation of the `aflags` tool can be time consuming
1436    /// (approx. 350ms) and also triggers an expensive flush. This is required to
1437    /// be > 1000ms if set, to avoid excessive CPU usage.
1438    #[prost(uint32, optional, tag = "1")]
1439    pub poll_ms: ::core::option::Option<u32>,
1440}
1441/// Data source that lists game modes and game interventions of games
1442/// on an Android device.
1443#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1444pub struct AndroidGameInterventionListConfig {
1445    /// If not empty, emit info about only the following list of package names
1446    /// (exact match, no regex). Otherwise, emit info about all packages.
1447    #[prost(string, repeated, tag = "1")]
1448    pub package_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1449}
1450/// Custom configuration for the "android.input.inputevent" data source.
1451///
1452/// NOTE: Input traces can only be taken on debuggable (userdebug/eng) builds!
1453///
1454/// Next ID: 6
1455#[derive(Clone, PartialEq, ::prost::Message)]
1456pub struct AndroidInputEventConfig {
1457    /// The tracing mode to use. If unspecified, it will default to
1458    /// TRACE_MODE_USE_RULES.
1459    #[prost(enumeration = "android_input_event_config::TraceMode", optional, tag = "1")]
1460    pub mode: ::core::option::Option<i32>,
1461    /// The list of rules to use to determine the trace level of events.
1462    /// Each event will be traced using the TraceLevel of the first rule that it
1463    /// triggers from this list. The rules are evaluated in the order in which they
1464    /// are specified. If an event does not match any of the rules,
1465    /// TRACE_LEVEL_NONE will be used by default.
1466    #[prost(message, repeated, tag = "2")]
1467    pub rules: ::prost::alloc::vec::Vec<android_input_event_config::TraceRule>,
1468    /// Trace input events processed by the system as they are being dispatched
1469    /// to application windows. All trace rules will apply.
1470    ///    - If this flag is used without enabling trace_dispatcher_window_dispatch,
1471    ///    it will
1472    ///      trace InputDispatcher's inbound events (which does not include events
1473    ///      synthesized within InputDispatcher) that match the rules.
1474    ///    - If used with trace_dispatcher_window_dispatch, all inbound and outbound
1475    ///    events
1476    ///      matching the rules, including all events synthesized within
1477    ///      InputDispatcher, will be traced.
1478    #[prost(bool, optional, tag = "3")]
1479    pub trace_dispatcher_input_events: ::core::option::Option<bool>,
1480    /// Trace details about which windows the system is sending each input event
1481    /// to. All trace rules will apply.
1482    #[prost(bool, optional, tag = "4")]
1483    pub trace_dispatcher_window_dispatch: ::core::option::Option<bool>,
1484    /// Trace evdev events received from the kernel, including device additions and
1485    /// removals.
1486    #[prost(bool, optional, tag = "5")]
1487    pub trace_evdev_events: ::core::option::Option<bool>,
1488}
1489/// Nested message and enum types in `AndroidInputEventConfig`.
1490pub mod android_input_event_config {
1491    /// A rule that specifies the TraceLevel for an event based on matching
1492    /// conditions. All matchers in the rule are optional. To trigger this rule, an
1493    /// event must match all of its specified matchers (i.e. the matchers function
1494    /// like a series of conditions connected by a logical 'AND' operator). A rule
1495    /// with no specified matchers will match all events. Next ID: 6
1496    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1497    pub struct TraceRule {
1498        /// The trace level to be used for events that trigger this rule.
1499        /// If unspecified, TRACE_LEVEL_NONE will be used by default.
1500        #[prost(enumeration = "TraceLevel", optional, tag = "1")]
1501        pub trace_level: ::core::option::Option<i32>,
1502        /// Package matchers
1503        ///
1504        /// Respectively matches if all or any of the target apps for this event are
1505        /// contained in the specified list of package names.
1506        ///
1507        /// Intended usage:
1508        ///    - Use match_all_packages to selectively allow tracing for the listed
1509        ///    packages.
1510        ///    - Use match_any_packages to selectively deny tracing for certain
1511        ///    packages.
1512        ///
1513        /// WARNING: Great care must be taken when designing rules for field tracing!
1514        ///           This is because each event is almost always sent to more than
1515        ///           one app.
1516        ///               For example, when allowing tracing for a package that has a
1517        ///               spy window
1518        ///           over the display (e.g. SystemUI) using match_any_packages,
1519        ///           essentially all input will be recorded on that display. This is
1520        ///           because the events will be sent to the spy as well as the
1521        ///           foreground app, and regardless of what the foreground app is,
1522        ///           the event will end up being traced.
1523        ///               Alternatively, when attempting to block tracing for specific
1524        ///               packages using
1525        ///           match_all_packages, no events will likely be blocked. This is
1526        ///           because the event will also be sent to other apps (such as, but
1527        ///           not limited to, ones with spy windows), so the matcher will not
1528        ///           match unless all other targets are also listed under the
1529        ///           match_all_packages list.
1530        #[prost(string, repeated, tag = "2")]
1531        pub match_all_packages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1532        #[prost(string, repeated, tag = "3")]
1533        pub match_any_packages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1534        /// Matches if the event is secure, which means that at least one of the
1535        /// targets of this event is using the window flag FLAG_SECURE.
1536        #[prost(bool, optional, tag = "4")]
1537        pub match_secure: ::core::option::Option<bool>,
1538        /// Matches if there was an active IME connection while this event was being
1539        /// processed.
1540        #[prost(bool, optional, tag = "5")]
1541        pub match_ime_connection_active: ::core::option::Option<bool>,
1542    }
1543    /// Trace modes are tracing presets that are included in the system.
1544    #[derive(
1545        Clone,
1546        Copy,
1547        Debug,
1548        PartialEq,
1549        Eq,
1550        Hash,
1551        PartialOrd,
1552        Ord,
1553        ::prost::Enumeration
1554    )]
1555    #[repr(i32)]
1556    pub enum TraceMode {
1557        /// Preset mode for maximal tracing.
1558        /// WARNING: This will bypass all privacy measures on debuggable builds, and
1559        /// will record all
1560        ///           input events processed by the system, regardless of the context
1561        ///           in which they were processed. It should only be used for tracing
1562        ///           on a local device or for tests. It should NEVER be used for
1563        ///           field tracing.
1564        TraceAll = 0,
1565        /// Use the tracing rules defined in this config to specify what events to
1566        /// trace.
1567        UseRules = 1,
1568    }
1569    impl TraceMode {
1570        /// String value of the enum field names used in the ProtoBuf definition.
1571        ///
1572        /// The values are not transformed in any way and thus are considered stable
1573        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1574        pub fn as_str_name(&self) -> &'static str {
1575            match self {
1576                Self::TraceAll => "TRACE_MODE_TRACE_ALL",
1577                Self::UseRules => "TRACE_MODE_USE_RULES",
1578            }
1579        }
1580        /// Creates an enum from field names used in the ProtoBuf definition.
1581        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1582            match value {
1583                "TRACE_MODE_TRACE_ALL" => Some(Self::TraceAll),
1584                "TRACE_MODE_USE_RULES" => Some(Self::UseRules),
1585                _ => None,
1586            }
1587        }
1588    }
1589    /// The level of tracing that should be applied to an event.
1590    #[derive(
1591        Clone,
1592        Copy,
1593        Debug,
1594        PartialEq,
1595        Eq,
1596        Hash,
1597        PartialOrd,
1598        Ord,
1599        ::prost::Enumeration
1600    )]
1601    #[repr(i32)]
1602    pub enum TraceLevel {
1603        /// Do not trace the input event.
1604        None = 0,
1605        /// Trace the event as a redacted event, where certain sensitive fields are
1606        /// omitted from the trace, including the coordinates of pointer events and
1607        /// the key/scan codes of key events.
1608        Redacted = 1,
1609        /// Trace the complete event.
1610        Complete = 2,
1611    }
1612    impl TraceLevel {
1613        /// String value of the enum field names used in the ProtoBuf definition.
1614        ///
1615        /// The values are not transformed in any way and thus are considered stable
1616        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1617        pub fn as_str_name(&self) -> &'static str {
1618            match self {
1619                Self::None => "TRACE_LEVEL_NONE",
1620                Self::Redacted => "TRACE_LEVEL_REDACTED",
1621                Self::Complete => "TRACE_LEVEL_COMPLETE",
1622            }
1623        }
1624        /// Creates an enum from field names used in the ProtoBuf definition.
1625        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1626            match value {
1627                "TRACE_LEVEL_NONE" => Some(Self::None),
1628                "TRACE_LEVEL_REDACTED" => Some(Self::Redacted),
1629                "TRACE_LEVEL_COMPLETE" => Some(Self::Complete),
1630                _ => None,
1631            }
1632        }
1633    }
1634}
1635/// Values from NDK's android/log.h.
1636#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1637#[repr(i32)]
1638pub enum AndroidLogId {
1639    /// MAIN.
1640    LidDefault = 0,
1641    LidRadio = 1,
1642    LidEvents = 2,
1643    LidSystem = 3,
1644    LidCrash = 4,
1645    LidStats = 5,
1646    LidSecurity = 6,
1647    LidKernel = 7,
1648}
1649impl AndroidLogId {
1650    /// String value of the enum field names used in the ProtoBuf definition.
1651    ///
1652    /// The values are not transformed in any way and thus are considered stable
1653    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1654    pub fn as_str_name(&self) -> &'static str {
1655        match self {
1656            Self::LidDefault => "LID_DEFAULT",
1657            Self::LidRadio => "LID_RADIO",
1658            Self::LidEvents => "LID_EVENTS",
1659            Self::LidSystem => "LID_SYSTEM",
1660            Self::LidCrash => "LID_CRASH",
1661            Self::LidStats => "LID_STATS",
1662            Self::LidSecurity => "LID_SECURITY",
1663            Self::LidKernel => "LID_KERNEL",
1664        }
1665    }
1666    /// Creates an enum from field names used in the ProtoBuf definition.
1667    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1668        match value {
1669            "LID_DEFAULT" => Some(Self::LidDefault),
1670            "LID_RADIO" => Some(Self::LidRadio),
1671            "LID_EVENTS" => Some(Self::LidEvents),
1672            "LID_SYSTEM" => Some(Self::LidSystem),
1673            "LID_CRASH" => Some(Self::LidCrash),
1674            "LID_STATS" => Some(Self::LidStats),
1675            "LID_SECURITY" => Some(Self::LidSecurity),
1676            "LID_KERNEL" => Some(Self::LidKernel),
1677            _ => None,
1678        }
1679    }
1680}
1681#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1682#[repr(i32)]
1683pub enum AndroidLogPriority {
1684    PrioUnspecified = 0,
1685    /// _DEFAULT, but should never be seen in logs.
1686    PrioUnused = 1,
1687    PrioVerbose = 2,
1688    PrioDebug = 3,
1689    PrioInfo = 4,
1690    PrioWarn = 5,
1691    PrioError = 6,
1692    PrioFatal = 7,
1693}
1694impl AndroidLogPriority {
1695    /// String value of the enum field names used in the ProtoBuf definition.
1696    ///
1697    /// The values are not transformed in any way and thus are considered stable
1698    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1699    pub fn as_str_name(&self) -> &'static str {
1700        match self {
1701            Self::PrioUnspecified => "PRIO_UNSPECIFIED",
1702            Self::PrioUnused => "PRIO_UNUSED",
1703            Self::PrioVerbose => "PRIO_VERBOSE",
1704            Self::PrioDebug => "PRIO_DEBUG",
1705            Self::PrioInfo => "PRIO_INFO",
1706            Self::PrioWarn => "PRIO_WARN",
1707            Self::PrioError => "PRIO_ERROR",
1708            Self::PrioFatal => "PRIO_FATAL",
1709        }
1710    }
1711    /// Creates an enum from field names used in the ProtoBuf definition.
1712    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1713        match value {
1714            "PRIO_UNSPECIFIED" => Some(Self::PrioUnspecified),
1715            "PRIO_UNUSED" => Some(Self::PrioUnused),
1716            "PRIO_VERBOSE" => Some(Self::PrioVerbose),
1717            "PRIO_DEBUG" => Some(Self::PrioDebug),
1718            "PRIO_INFO" => Some(Self::PrioInfo),
1719            "PRIO_WARN" => Some(Self::PrioWarn),
1720            "PRIO_ERROR" => Some(Self::PrioError),
1721            "PRIO_FATAL" => Some(Self::PrioFatal),
1722            _ => None,
1723        }
1724    }
1725}
1726#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1727pub struct AndroidLogConfig {
1728    #[prost(enumeration = "AndroidLogId", repeated, packed = "false", tag = "1")]
1729    pub log_ids: ::prost::alloc::vec::Vec<i32>,
1730    /// If set ignores all log messages whose prio is < the given value.
1731    #[prost(enumeration = "AndroidLogPriority", optional, tag = "3")]
1732    pub min_prio: ::core::option::Option<i32>,
1733    /// If non-empty ignores all log messages whose tag doesn't match one of the
1734    /// specified values.
1735    #[prost(string, repeated, tag = "4")]
1736    pub filter_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1737    /// If true, includes the contents of the logcat buffers that were already
1738    /// present before the data source started. By default (false), only new
1739    /// log entries produced after the data source starts are recorded.
1740    /// Can be useful for boot traces or situations where logs from before
1741    /// traced started are important.
1742    #[prost(bool, optional, tag = "5")]
1743    pub preserve_log_buffer: ::core::option::Option<bool>,
1744}
1745/// Data source that polls for display state. This should only be used for
1746/// backward-compatibility; AndroidSystemPropertyConfig should be preferred.
1747#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1748pub struct AndroidPolledStateConfig {
1749    /// Frequency of polling. If absent the state will be recorded once, at the
1750    /// start of the trace.
1751    /// This is required to be > 100ms to avoid excessive CPU usage.
1752    #[prost(uint32, optional, tag = "1")]
1753    pub poll_ms: ::core::option::Option<u32>,
1754}
1755/// Configuration for the "android.process_state" data source.
1756#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1757pub struct AndroidProcessStateConfig {
1758    /// If true, dumps process name, start seq id, and start time in the snapshot.
1759    /// When false (default), these fields are omitted to save trace buffer space.
1760    #[prost(bool, optional, tag = "1")]
1761    pub dump_process_metadata: ::core::option::Option<bool>,
1762}
1763/// Data source that polls for system properties.
1764#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1765pub struct AndroidSystemPropertyConfig {
1766    /// Frequency of polling. If absent the state will be recorded once, at the
1767    /// start of the trace.
1768    /// This is required to be > 100ms to avoid excessive CPU usage.
1769    #[prost(uint32, optional, tag = "1")]
1770    pub poll_ms: ::core::option::Option<u32>,
1771    /// Properties to poll. All property names must start with "debug.tracing.".
1772    #[prost(string, repeated, tag = "2")]
1773    pub property_name: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1774}
1775/// Data source that controls the system properties used to guard initialization
1776/// of track_event producers (i.e. Skia) in apps using HWUI, and certain
1777/// processes like SurfaceFlinger.
1778///
1779/// This data source only tells Skia to initialized the Perfetto SDK and start
1780/// routing data to the Track Event system instead of ATrace. For those events
1781/// to actually show up in a trace, the track_event data source must be used as
1782/// well. The Perfetto SDK cannot be de-initialized, so some long-lived apps and
1783/// processes may need to be restarted for Skia to revert to using ATrace if
1784/// Track Events are no longer desired.
1785///
1786/// In addition to switching Skia to use Perfetto's track_event data source,
1787/// this "guard" also controls Skia's "broad tracing", which removes Skia's
1788/// internal tracing constraints and allows the track_event config to specify
1789/// which categories should be traced. Filtering to the "skia.always" category
1790/// *tag* in a track_event config can be used to re-enable the standard
1791/// constraints typically used with ATrace.
1792///
1793/// Data source name: android.sdk_sysprop_guard
1794/// Introduced in Android 14 (U) QPR1.
1795/// Next id: 4
1796#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1797pub struct AndroidSdkSyspropGuardConfig {
1798    /// If true, configures SurfaceFlinger to initialize Skia's Perfetto
1799    /// integration with the track_event data source in RenderEngine.
1800    /// If false or omitted, the simpler ATrace fallback is used.
1801    ///
1802    /// NOTE: once enabled, Skia will only revert to ATrace if SurfaceFlinger is
1803    /// restarted.
1804    ///
1805    /// Specifically this sets the following system properties:
1806    ///    - debug.tracing.ctl.renderengine.skia_tracing_enabled
1807    ///    - debug.tracing.ctl.renderengine.skia_use_perfetto_track_events
1808    ///
1809    /// Does not affect actual track_event data *collection*, which must be
1810    /// configured separately.
1811    #[prost(bool, optional, tag = "1")]
1812    pub surfaceflinger_skia_track_events: ::core::option::Option<bool>,
1813    /// If true, configures HWUI apps to initialize Skia's Perfetto integration
1814    /// with the track_event data source. hwui_package_name_filter
1815    /// can be used to control which apps are affected.
1816    /// If false or omitted, the simpler ATrace fallback is used.
1817    ///
1818    /// NOTE: once enabled, Skia will only revert to ATrace if the app is
1819    /// restarted.
1820    ///
1821    /// ATTENTION: affects ALL HWUI APPS if hwui_package_name_filter is not set!
1822    /// If filtering is NOT set, this controls these GLOBAL system properties:
1823    ///    - debug.tracing.ctl.hwui.skia_tracing_enabled
1824    ///    - debug.tracing.ctl.hwui.skia_use_perfetto_track_events
1825    /// If filtering IS set, this controls these APP-SPECIFIC system properties,
1826    /// for each package listed in the filter:
1827    ///    - debug.tracing.ctl.hwui.skia_tracing_enabled.<package.name>
1828    ///    - debug.tracing.ctl.hwui.skia_use_perfetto_track_events.<package.name>
1829    ///
1830    /// Does not affect actual track_event data *collection*, which must be
1831    /// configured separately.
1832    #[prost(bool, optional, tag = "2")]
1833    pub hwui_skia_track_events: ::core::option::Option<bool>,
1834    /// If non-empty, hwui_skia_track_events applies to only the packages listed.
1835    /// Otherwise, hwui_skia_track_events applies globally to all HWUI apps.
1836    #[prost(string, repeated, tag = "3")]
1837    pub hwui_package_name_filter: ::prost::alloc::vec::Vec<
1838        ::prost::alloc::string::String,
1839    >,
1840}
1841/// Configuration for the android.app_wakelocks data source.
1842#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1843pub struct AppWakelocksConfig {
1844    /// Specifies the delay (in milliseconds) after which the data source will
1845    /// attempt to write events. Writing less frequently reduces the trace size by
1846    /// making better use of the packed arrays and reducing the total number of
1847    /// TracePackets needed (which each have dozens of bytes of overhead). The
1848    /// suggested delay is 5000ms.
1849    #[prost(int32, optional, tag = "1")]
1850    pub write_delay_ms: ::core::option::Option<i32>,
1851    /// When set, wakelocks held for less than this amount of time are filtered
1852    /// from the resulting trace. Note: duration is computed by matching wakelocks
1853    /// with identical attributes, not by tracking the underlying objects. The
1854    /// threshold should be < the trace's flush_period_ms.
1855    #[prost(int32, optional, tag = "2")]
1856    pub filter_duration_below_ms: ::core::option::Option<i32>,
1857    /// When true, the owner_pid is dropped from the resulting output, reducing the
1858    /// size of the interning tables.
1859    #[prost(bool, optional, tag = "3")]
1860    pub drop_owner_pid: ::core::option::Option<bool>,
1861}
1862/// Data source that records CPU per UID data.
1863#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1864pub struct CpuPerUidConfig {
1865    /// Record at this frequency.
1866    #[prost(uint32, optional, tag = "1")]
1867    pub poll_ms: ::core::option::Option<u32>,
1868}
1869/// Custom configuration for the "android.inputmethod" data source.
1870#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1871pub struct InputMethodConfig {
1872    /// If true, enables tracing in the clients.
1873    #[prost(bool, optional, tag = "1")]
1874    pub client: ::core::option::Option<bool>,
1875    /// If true, enables tracing in InputMethodService.
1876    #[prost(bool, optional, tag = "2")]
1877    pub service: ::core::option::Option<bool>,
1878    /// If true, enables tracing in InputMethodManagerService.
1879    #[prost(bool, optional, tag = "3")]
1880    pub manager_service: ::core::option::Option<bool>,
1881}
1882/// Data source that records kernel (and native) wakelock data.
1883#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1884pub struct KernelWakelocksConfig {
1885    /// Record at this frequency.
1886    #[prost(uint32, optional, tag = "1")]
1887    pub poll_ms: ::core::option::Option<u32>,
1888}
1889/// Network tracing data source that records details on all packets sent or
1890/// received by the network.
1891#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1892pub struct NetworkPacketTraceConfig {
1893    /// Polling frequency in milliseconds. Network tracing writes to a fixed size
1894    /// ring buffer. The polling interval should be such that the ring buffer is
1895    /// unlikely to fill in that interval (or that filling is an acceptable risk).
1896    /// The minimum polling rate is 100ms (values below this are ignored).
1897    /// Introduced in Android 14 (U).
1898    #[prost(uint32, optional, tag = "1")]
1899    pub poll_ms: ::core::option::Option<u32>,
1900    /// The aggregation_threshold is the number of packets at which an event will
1901    /// switch from per-packet details to aggregate details. For example, a value
1902    /// of 50 means that if a particular event (grouped by the unique combinations
1903    /// of metadata fields: {interface, direction, uid, etc}) has fewer than 50
1904    /// packets, the exact timestamp and length are recorded for each packet. If
1905    /// there were 50 or more packets in an event, it would only record the total
1906    /// duration, packets, and length. A value of zero or unspecified will always
1907    /// / record per-packet details. A value of 1 always records aggregate details.
1908    #[prost(uint32, optional, tag = "2")]
1909    pub aggregation_threshold: ::core::option::Option<u32>,
1910    /// Specifies the maximum number of packet contexts to intern at a time. This
1911    /// prevents the interning table from growing too large and controls whether
1912    /// interning is enabled or disabled (a value of zero disables interning and
1913    /// is the default). When a data sources interning table reaches this amount,
1914    /// packet contexts will be inlined into NetworkPacketEvents.
1915    #[prost(uint32, optional, tag = "3")]
1916    pub intern_limit: ::core::option::Option<u32>,
1917    /// The following fields specify whether certain fields should be dropped from
1918    /// the output. Dropping fields improves normalization results, reduces the
1919    /// size of the interning table, and slightly reduces event size.
1920    #[prost(bool, optional, tag = "4")]
1921    pub drop_local_port: ::core::option::Option<bool>,
1922    #[prost(bool, optional, tag = "5")]
1923    pub drop_remote_port: ::core::option::Option<bool>,
1924    #[prost(bool, optional, tag = "6")]
1925    pub drop_tcp_flags: ::core::option::Option<bool>,
1926}
1927/// Data source that lists details (such as version code) about packages on an
1928/// Android device.
1929#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1930pub struct PackagesListConfig {
1931    /// If not empty, emit info about only the following list of package names
1932    /// (exact match, no regex). Can be combined with
1933    /// |package_name_regex_filter|: a package is included if it matches either
1934    /// filter. If both filters are empty, emit info about all packages.
1935    #[prost(string, repeated, tag = "1")]
1936    pub package_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1937    /// If not empty, emit info about only the packages whose names match any of
1938    /// the following regexes (full match, not partial). Can be combined with
1939    /// |package_name_filter|: a package is included if it matches either filter.
1940    /// If both filters are empty, emit info about all packages.
1941    /// This field was introduced in Android 26Q2 (Perfetto v55).
1942    #[prost(string, repeated, tag = "3")]
1943    pub package_name_regex_filter: ::prost::alloc::vec::Vec<
1944        ::prost::alloc::string::String,
1945    >,
1946    /// If present and non-zero, the data source will periodically poll for CPU
1947    /// use by packages and only emit results for those that it sees. If absent,
1948    /// the data source will emit results for all packages at startup. The package
1949    /// name filters apply either way.
1950    #[prost(uint32, optional, tag = "2")]
1951    pub only_write_on_cpu_use_every_ms: ::core::option::Option<u32>,
1952}
1953/// Data source that records events from the modem.
1954#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1955pub struct PixelModemConfig {
1956    #[prost(enumeration = "pixel_modem_config::EventGroup", optional, tag = "1")]
1957    pub event_group: ::core::option::Option<i32>,
1958    /// If set, record only events with these hashes.
1959    #[prost(int64, repeated, packed = "false", tag = "2")]
1960    pub pigweed_hash_allow_list: ::prost::alloc::vec::Vec<i64>,
1961    /// If set and allow_list is not set, deny events with these hashes.
1962    #[prost(int64, repeated, packed = "false", tag = "3")]
1963    pub pigweed_hash_deny_list: ::prost::alloc::vec::Vec<i64>,
1964}
1965/// Nested message and enum types in `PixelModemConfig`.
1966pub mod pixel_modem_config {
1967    /// Event group to record, as defined by the modem.
1968    #[derive(
1969        Clone,
1970        Copy,
1971        Debug,
1972        PartialEq,
1973        Eq,
1974        Hash,
1975        PartialOrd,
1976        Ord,
1977        ::prost::Enumeration
1978    )]
1979    #[repr(i32)]
1980    pub enum EventGroup {
1981        Unknown = 0,
1982        /// Events suitable for low bandwidth tracing only.
1983        LowBandwidth = 1,
1984        /// Events suitable for high and low bandwidth tracing.
1985        HighAndLowBandwidth = 2,
1986    }
1987    impl EventGroup {
1988        /// String value of the enum field names used in the ProtoBuf definition.
1989        ///
1990        /// The values are not transformed in any way and thus are considered stable
1991        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1992        pub fn as_str_name(&self) -> &'static str {
1993            match self {
1994                Self::Unknown => "EVENT_GROUP_UNKNOWN",
1995                Self::LowBandwidth => "EVENT_GROUP_LOW_BANDWIDTH",
1996                Self::HighAndLowBandwidth => "EVENT_GROUP_HIGH_AND_LOW_BANDWIDTH",
1997            }
1998        }
1999        /// Creates an enum from field names used in the ProtoBuf definition.
2000        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2001            match value {
2002                "EVENT_GROUP_UNKNOWN" => Some(Self::Unknown),
2003                "EVENT_GROUP_LOW_BANDWIDTH" => Some(Self::LowBandwidth),
2004                "EVENT_GROUP_HIGH_AND_LOW_BANDWIDTH" => Some(Self::HighAndLowBandwidth),
2005                _ => None,
2006            }
2007        }
2008    }
2009}
2010/// Custom configuration for the "android.protolog" data source.
2011/// ProtoLog is a logging mechanism that is intented to be more efficient than
2012/// logcat. This configures what logs to capture in the tracing instance.
2013#[derive(Clone, PartialEq, ::prost::Message)]
2014pub struct ProtoLogConfig {
2015    /// Specified the configurations for each of the logging groups. If none is
2016    /// specified for a group the defaults will be used.
2017    #[prost(message, repeated, tag = "1")]
2018    pub group_overrides: ::prost::alloc::vec::Vec<ProtoLogGroup>,
2019    /// Specified what tracing mode to use for the tracing instance.
2020    #[prost(enumeration = "proto_log_config::TracingMode", optional, tag = "2")]
2021    pub tracing_mode: ::core::option::Option<i32>,
2022    /// If set, any message with log level higher than this level (inclusive) will
2023    /// be traced. Group overrides take precedence over this value.
2024    #[prost(enumeration = "ProtoLogLevel", optional, tag = "3")]
2025    pub default_log_from_level: ::core::option::Option<i32>,
2026}
2027/// Nested message and enum types in `ProtoLogConfig`.
2028pub mod proto_log_config {
2029    #[derive(
2030        Clone,
2031        Copy,
2032        Debug,
2033        PartialEq,
2034        Eq,
2035        Hash,
2036        PartialOrd,
2037        Ord,
2038        ::prost::Enumeration
2039    )]
2040    #[repr(i32)]
2041    pub enum TracingMode {
2042        /// When using the DEFAULT tracing mode, only log groups and levels specified
2043        /// in the group_overrides are traced.
2044        Default = 0,
2045        /// When using the ENABLE_ALL tracing mode, all log groups and levels are
2046        /// traced, unless specified in the group_overrides.
2047        EnableAll = 1,
2048    }
2049    impl TracingMode {
2050        /// String value of the enum field names used in the ProtoBuf definition.
2051        ///
2052        /// The values are not transformed in any way and thus are considered stable
2053        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2054        pub fn as_str_name(&self) -> &'static str {
2055            match self {
2056                Self::Default => "DEFAULT",
2057                Self::EnableAll => "ENABLE_ALL",
2058            }
2059        }
2060        /// Creates an enum from field names used in the ProtoBuf definition.
2061        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2062            match value {
2063                "DEFAULT" => Some(Self::Default),
2064                "ENABLE_ALL" => Some(Self::EnableAll),
2065                _ => None,
2066            }
2067        }
2068    }
2069}
2070#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2071pub struct ProtoLogGroup {
2072    /// The ProtoLog group name this configuration entry applies to.
2073    #[prost(string, optional, tag = "1")]
2074    pub group_name: ::core::option::Option<::prost::alloc::string::String>,
2075    /// Specify the level from which to start capturing protologs.
2076    /// e.g. if ProtoLogLevel.WARN is specified only warning, errors and fatal log
2077    /// message will be traced.
2078    #[prost(enumeration = "ProtoLogLevel", optional, tag = "2")]
2079    pub log_from: ::core::option::Option<i32>,
2080    /// When set to true we will collect the stacktrace for each protolog message
2081    /// in this group that we are tracing.
2082    #[prost(bool, optional, tag = "3")]
2083    pub collect_stacktrace: ::core::option::Option<bool>,
2084}
2085#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2086#[repr(i32)]
2087pub enum ProtoLogLevel {
2088    ProtologLevelUndefined = 0,
2089    ProtologLevelDebug = 1,
2090    ProtologLevelVerbose = 2,
2091    ProtologLevelInfo = 3,
2092    ProtologLevelWarn = 4,
2093    ProtologLevelError = 5,
2094    ProtologLevelWtf = 6,
2095}
2096impl ProtoLogLevel {
2097    /// String value of the enum field names used in the ProtoBuf definition.
2098    ///
2099    /// The values are not transformed in any way and thus are considered stable
2100    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2101    pub fn as_str_name(&self) -> &'static str {
2102        match self {
2103            Self::ProtologLevelUndefined => "PROTOLOG_LEVEL_UNDEFINED",
2104            Self::ProtologLevelDebug => "PROTOLOG_LEVEL_DEBUG",
2105            Self::ProtologLevelVerbose => "PROTOLOG_LEVEL_VERBOSE",
2106            Self::ProtologLevelInfo => "PROTOLOG_LEVEL_INFO",
2107            Self::ProtologLevelWarn => "PROTOLOG_LEVEL_WARN",
2108            Self::ProtologLevelError => "PROTOLOG_LEVEL_ERROR",
2109            Self::ProtologLevelWtf => "PROTOLOG_LEVEL_WTF",
2110        }
2111    }
2112    /// Creates an enum from field names used in the ProtoBuf definition.
2113    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2114        match value {
2115            "PROTOLOG_LEVEL_UNDEFINED" => Some(Self::ProtologLevelUndefined),
2116            "PROTOLOG_LEVEL_DEBUG" => Some(Self::ProtologLevelDebug),
2117            "PROTOLOG_LEVEL_VERBOSE" => Some(Self::ProtologLevelVerbose),
2118            "PROTOLOG_LEVEL_INFO" => Some(Self::ProtologLevelInfo),
2119            "PROTOLOG_LEVEL_WARN" => Some(Self::ProtologLevelWarn),
2120            "PROTOLOG_LEVEL_ERROR" => Some(Self::ProtologLevelError),
2121            "PROTOLOG_LEVEL_WTF" => Some(Self::ProtologLevelWtf),
2122            _ => None,
2123        }
2124    }
2125}
2126/// Config for the "android.display.video" data source. Unset/0 fields use
2127/// the producer's default.
2128#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2129pub struct DisplayVideoConfig {
2130    /// Scale applied to each display's resolution before capture (0.25 =
2131    /// quarter size).
2132    #[prost(float, optional, tag = "1")]
2133    pub scale: ::core::option::Option<f32>,
2134    #[prost(enumeration = "display_video_config::Format", optional, tag = "2")]
2135    pub format: ::core::option::Option<i32>,
2136    /// Keyframe interval in seconds. Smaller = snappier seeking, larger trace.
2137    #[prost(uint32, optional, tag = "3")]
2138    pub key_frame_interval_secs: ::core::option::Option<u32>,
2139    /// Per-display cap on emitted bytes. On reaching it the stream is torn
2140    /// down with a VideoFrameError (SIZE_CAP_HIT).
2141    #[prost(uint64, optional, tag = "4")]
2142    pub max_stream_size_bytes: ::core::option::Option<u64>,
2143    /// Target video encoder bitrate in bits per second. Controls quality vs
2144    /// trace size at a fixed resolution (unlike `scale`, which changes the
2145    /// resolution). Unset lets the producer pick a default from the (scaled)
2146    /// resolution and frame rate. Maps to MediaFormat.KEY_BIT_RATE.
2147    #[prost(uint32, optional, tag = "5")]
2148    pub bitrate_bps: ::core::option::Option<u32>,
2149}
2150/// Nested message and enum types in `DisplayVideoConfig`.
2151pub mod display_video_config {
2152    #[derive(
2153        Clone,
2154        Copy,
2155        Debug,
2156        PartialEq,
2157        Eq,
2158        Hash,
2159        PartialOrd,
2160        Ord,
2161        ::prost::Enumeration
2162    )]
2163    #[repr(i32)]
2164    pub enum Format {
2165        /// Default (H.264).
2166        Unspecified = 0,
2167        H264 = 1,
2168        Hevc = 2,
2169    }
2170    impl Format {
2171        /// String value of the enum field names used in the ProtoBuf definition.
2172        ///
2173        /// The values are not transformed in any way and thus are considered stable
2174        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2175        pub fn as_str_name(&self) -> &'static str {
2176            match self {
2177                Self::Unspecified => "FORMAT_UNSPECIFIED",
2178                Self::H264 => "FORMAT_H264",
2179                Self::Hevc => "FORMAT_HEVC",
2180            }
2181        }
2182        /// Creates an enum from field names used in the ProtoBuf definition.
2183        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2184            match value {
2185                "FORMAT_UNSPECIFIED" => Some(Self::Unspecified),
2186                "FORMAT_H264" => Some(Self::H264),
2187                "FORMAT_HEVC" => Some(Self::Hevc),
2188                _ => None,
2189            }
2190        }
2191    }
2192}
2193/// Custom configuration for the "android.surfaceflinger.layers" data source.
2194#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2195pub struct SurfaceFlingerLayersConfig {
2196    #[prost(enumeration = "surface_flinger_layers_config::Mode", optional, tag = "1")]
2197    pub mode: ::core::option::Option<i32>,
2198    #[prost(
2199        enumeration = "surface_flinger_layers_config::TraceFlag",
2200        repeated,
2201        packed = "false",
2202        tag = "2"
2203    )]
2204    pub trace_flags: ::prost::alloc::vec::Vec<i32>,
2205}
2206/// Nested message and enum types in `SurfaceFlingerLayersConfig`.
2207pub mod surface_flinger_layers_config {
2208    #[derive(
2209        Clone,
2210        Copy,
2211        Debug,
2212        PartialEq,
2213        Eq,
2214        Hash,
2215        PartialOrd,
2216        Ord,
2217        ::prost::Enumeration
2218    )]
2219    #[repr(i32)]
2220    pub enum Mode {
2221        Unspecified = 0,
2222        /// Trace layers snapshots. A snapshot is taken every time a layers change
2223        /// occurs.
2224        Active = 1,
2225        /// Generate layers snapshots from the transactions kept in the
2226        /// SurfaceFlinger's internal ring buffer.
2227        /// The layers snapshots generation occurs when this data source is flushed.
2228        Generated = 2,
2229        /// Trace a single layers snapshot.
2230        Dump = 3,
2231        /// Default mode (applied by SurfaceFlinger if no mode is specified).
2232        /// Same as MODE_GENERATED, but triggers the layers snapshots generation only
2233        /// when a bugreport is taken.
2234        GeneratedBugreportOnly = 4,
2235        /// Layer snapshots are generated by ProtoVM from layer patches
2236        Protovm = 5,
2237    }
2238    impl Mode {
2239        /// String value of the enum field names used in the ProtoBuf definition.
2240        ///
2241        /// The values are not transformed in any way and thus are considered stable
2242        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2243        pub fn as_str_name(&self) -> &'static str {
2244            match self {
2245                Self::Unspecified => "MODE_UNSPECIFIED",
2246                Self::Active => "MODE_ACTIVE",
2247                Self::Generated => "MODE_GENERATED",
2248                Self::Dump => "MODE_DUMP",
2249                Self::GeneratedBugreportOnly => "MODE_GENERATED_BUGREPORT_ONLY",
2250                Self::Protovm => "MODE_PROTOVM",
2251            }
2252        }
2253        /// Creates an enum from field names used in the ProtoBuf definition.
2254        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2255            match value {
2256                "MODE_UNSPECIFIED" => Some(Self::Unspecified),
2257                "MODE_ACTIVE" => Some(Self::Active),
2258                "MODE_GENERATED" => Some(Self::Generated),
2259                "MODE_DUMP" => Some(Self::Dump),
2260                "MODE_GENERATED_BUGREPORT_ONLY" => Some(Self::GeneratedBugreportOnly),
2261                "MODE_PROTOVM" => Some(Self::Protovm),
2262                _ => None,
2263            }
2264        }
2265    }
2266    #[derive(
2267        Clone,
2268        Copy,
2269        Debug,
2270        PartialEq,
2271        Eq,
2272        Hash,
2273        PartialOrd,
2274        Ord,
2275        ::prost::Enumeration
2276    )]
2277    #[repr(i32)]
2278    pub enum TraceFlag {
2279        Unspecified = 0,
2280        Input = 2,
2281        Composition = 4,
2282        Extra = 8,
2283        Hwc = 16,
2284        Buffers = 32,
2285        VirtualDisplays = 64,
2286        /// INPUT | COMPOSITION | EXTRA
2287        All = 14,
2288    }
2289    impl TraceFlag {
2290        /// String value of the enum field names used in the ProtoBuf definition.
2291        ///
2292        /// The values are not transformed in any way and thus are considered stable
2293        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2294        pub fn as_str_name(&self) -> &'static str {
2295            match self {
2296                Self::Unspecified => "TRACE_FLAG_UNSPECIFIED",
2297                Self::Input => "TRACE_FLAG_INPUT",
2298                Self::Composition => "TRACE_FLAG_COMPOSITION",
2299                Self::Extra => "TRACE_FLAG_EXTRA",
2300                Self::Hwc => "TRACE_FLAG_HWC",
2301                Self::Buffers => "TRACE_FLAG_BUFFERS",
2302                Self::VirtualDisplays => "TRACE_FLAG_VIRTUAL_DISPLAYS",
2303                Self::All => "TRACE_FLAG_ALL",
2304            }
2305        }
2306        /// Creates an enum from field names used in the ProtoBuf definition.
2307        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2308            match value {
2309                "TRACE_FLAG_UNSPECIFIED" => Some(Self::Unspecified),
2310                "TRACE_FLAG_INPUT" => Some(Self::Input),
2311                "TRACE_FLAG_COMPOSITION" => Some(Self::Composition),
2312                "TRACE_FLAG_EXTRA" => Some(Self::Extra),
2313                "TRACE_FLAG_HWC" => Some(Self::Hwc),
2314                "TRACE_FLAG_BUFFERS" => Some(Self::Buffers),
2315                "TRACE_FLAG_VIRTUAL_DISPLAYS" => Some(Self::VirtualDisplays),
2316                "TRACE_FLAG_ALL" => Some(Self::All),
2317                _ => None,
2318            }
2319        }
2320    }
2321}
2322/// Custom configuration for the "android.surfaceflinger.transactions" data
2323/// source.
2324#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
2325pub struct SurfaceFlingerTransactionsConfig {
2326    #[prost(
2327        enumeration = "surface_flinger_transactions_config::Mode",
2328        optional,
2329        tag = "1"
2330    )]
2331    pub mode: ::core::option::Option<i32>,
2332}
2333/// Nested message and enum types in `SurfaceFlingerTransactionsConfig`.
2334pub mod surface_flinger_transactions_config {
2335    #[derive(
2336        Clone,
2337        Copy,
2338        Debug,
2339        PartialEq,
2340        Eq,
2341        Hash,
2342        PartialOrd,
2343        Ord,
2344        ::prost::Enumeration
2345    )]
2346    #[repr(i32)]
2347    pub enum Mode {
2348        Unspecified = 0,
2349        /// Default mode (applied by SurfaceFlinger if no mode is specified).
2350        /// SurfaceFlinger writes its internal ring buffer of transactions every time
2351        /// the data source is flushed. The ring buffer contains the SurfaceFlinger's
2352        /// initial state and the latest transactions.
2353        Continuous = 1,
2354        /// SurfaceFlinger writes the initial state and then each incoming
2355        /// transaction until the data source is stopped.
2356        Active = 2,
2357    }
2358    impl Mode {
2359        /// String value of the enum field names used in the ProtoBuf definition.
2360        ///
2361        /// The values are not transformed in any way and thus are considered stable
2362        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2363        pub fn as_str_name(&self) -> &'static str {
2364            match self {
2365                Self::Unspecified => "MODE_UNSPECIFIED",
2366                Self::Continuous => "MODE_CONTINUOUS",
2367                Self::Active => "MODE_ACTIVE",
2368            }
2369        }
2370        /// Creates an enum from field names used in the ProtoBuf definition.
2371        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2372            match value {
2373                "MODE_UNSPECIFIED" => Some(Self::Unspecified),
2374                "MODE_CONTINUOUS" => Some(Self::Continuous),
2375                "MODE_ACTIVE" => Some(Self::Active),
2376                _ => None,
2377            }
2378        }
2379    }
2380}
2381/// Data source that lists details (such as version code) about users on an
2382/// Android device.
2383#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2384pub struct AndroidUserListConfig {
2385    /// An allowlist of user type strings, used to control the granularity of
2386    /// user type information emitted in the trace. Exact, case-sensitive string
2387    /// matching is used.
2388    ///
2389    /// Any user type read from the device that is NOT present in the
2390    /// effective allowlist will have its type reported as
2391    /// "android.os.usertype.FILTERED".
2392    ///
2393    /// The effective allowlist is determined as follows:
2394    ///
2395    /// 1. If this 'user_type_filter' field is provided and non-empty:
2396    ///     This list itself is the effective allowlist.
2397    ///     Example TraceConfig:
2398    ///     --------------------
2399    ///     data_sources {
2400    ///         config {
2401    ///             name: "android.user_list"
2402    ///             target_buffer: 0
2403    ///             user_list_config {
2404    ///               # Only report these specific types, others become FILTERED.
2405    ///               user_type_filter: "android.os.usertype.full.SYSTEM"
2406    ///               user_type_filter: "android.os.usertype.system.HEADLESS"
2407    ///             }
2408    ///         }
2409    ///     }
2410    ///
2411    ///
2412    /// Note: This field does not support regular expressions.
2413    #[prost(string, repeated, tag = "1")]
2414    pub user_type_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2415}
2416/// Custom configuration for the "android.windowmanager" data source.
2417#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
2418pub struct WindowManagerConfig {
2419    #[prost(enumeration = "window_manager_config::LogFrequency", optional, tag = "1")]
2420    pub log_frequency: ::core::option::Option<i32>,
2421    #[prost(enumeration = "window_manager_config::LogLevel", optional, tag = "2")]
2422    pub log_level: ::core::option::Option<i32>,
2423    #[prost(enumeration = "window_manager_config::LogMode", optional, tag = "3")]
2424    pub log_mode: ::core::option::Option<i32>,
2425}
2426/// Nested message and enum types in `WindowManagerConfig`.
2427pub mod window_manager_config {
2428    #[derive(
2429        Clone,
2430        Copy,
2431        Debug,
2432        PartialEq,
2433        Eq,
2434        Hash,
2435        PartialOrd,
2436        Ord,
2437        ::prost::Enumeration
2438    )]
2439    #[repr(i32)]
2440    pub enum LogFrequency {
2441        Unspecified = 0,
2442        /// Trace state snapshots when a frame is committed.
2443        Frame = 1,
2444        /// Trace state snapshots every time a transaction is committed.
2445        Transaction = 2,
2446        /// Trace single state snapshots when the data source is started.
2447        SingleDump = 3,
2448    }
2449    impl LogFrequency {
2450        /// String value of the enum field names used in the ProtoBuf definition.
2451        ///
2452        /// The values are not transformed in any way and thus are considered stable
2453        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2454        pub fn as_str_name(&self) -> &'static str {
2455            match self {
2456                Self::Unspecified => "LOG_FREQUENCY_UNSPECIFIED",
2457                Self::Frame => "LOG_FREQUENCY_FRAME",
2458                Self::Transaction => "LOG_FREQUENCY_TRANSACTION",
2459                Self::SingleDump => "LOG_FREQUENCY_SINGLE_DUMP",
2460            }
2461        }
2462        /// Creates an enum from field names used in the ProtoBuf definition.
2463        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2464            match value {
2465                "LOG_FREQUENCY_UNSPECIFIED" => Some(Self::Unspecified),
2466                "LOG_FREQUENCY_FRAME" => Some(Self::Frame),
2467                "LOG_FREQUENCY_TRANSACTION" => Some(Self::Transaction),
2468                "LOG_FREQUENCY_SINGLE_DUMP" => Some(Self::SingleDump),
2469                _ => None,
2470            }
2471        }
2472    }
2473    #[derive(
2474        Clone,
2475        Copy,
2476        Debug,
2477        PartialEq,
2478        Eq,
2479        Hash,
2480        PartialOrd,
2481        Ord,
2482        ::prost::Enumeration
2483    )]
2484    #[repr(i32)]
2485    pub enum LogLevel {
2486        Unspecified = 0,
2487        /// Logs all elements with maximum amount of information.
2488        Verbose = 1,
2489        /// Logs all elements but doesn't write all configuration data.
2490        Debug = 2,
2491        /// Logs only visible elements, with the minimum amount of performance
2492        /// overhead
2493        Critical = 3,
2494    }
2495    impl LogLevel {
2496        /// String value of the enum field names used in the ProtoBuf definition.
2497        ///
2498        /// The values are not transformed in any way and thus are considered stable
2499        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2500        pub fn as_str_name(&self) -> &'static str {
2501            match self {
2502                Self::Unspecified => "LOG_LEVEL_UNSPECIFIED",
2503                Self::Verbose => "LOG_LEVEL_VERBOSE",
2504                Self::Debug => "LOG_LEVEL_DEBUG",
2505                Self::Critical => "LOG_LEVEL_CRITICAL",
2506            }
2507        }
2508        /// Creates an enum from field names used in the ProtoBuf definition.
2509        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2510            match value {
2511                "LOG_LEVEL_UNSPECIFIED" => Some(Self::Unspecified),
2512                "LOG_LEVEL_VERBOSE" => Some(Self::Verbose),
2513                "LOG_LEVEL_DEBUG" => Some(Self::Debug),
2514                "LOG_LEVEL_CRITICAL" => Some(Self::Critical),
2515                _ => None,
2516            }
2517        }
2518    }
2519    #[derive(
2520        Clone,
2521        Copy,
2522        Debug,
2523        PartialEq,
2524        Eq,
2525        Hash,
2526        PartialOrd,
2527        Ord,
2528        ::prost::Enumeration
2529    )]
2530    #[repr(i32)]
2531    pub enum LogMode {
2532        Unspecified = 0,
2533        /// Always logs a full state dump of the window hierarchy.
2534        FullState = 1,
2535        /// Logs a full state dump of the window hierarchy only when tracing starts.
2536        /// The following trace packets are lightweight patches containing only the
2537        /// last changes.
2538        Incremental = 2,
2539    }
2540    impl LogMode {
2541        /// String value of the enum field names used in the ProtoBuf definition.
2542        ///
2543        /// The values are not transformed in any way and thus are considered stable
2544        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2545        pub fn as_str_name(&self) -> &'static str {
2546            match self {
2547                Self::Unspecified => "LOG_MODE_UNSPECIFIED",
2548                Self::FullState => "LOG_MODE_FULL_STATE",
2549                Self::Incremental => "LOG_MODE_INCREMENTAL",
2550            }
2551        }
2552        /// Creates an enum from field names used in the ProtoBuf definition.
2553        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2554            match value {
2555                "LOG_MODE_UNSPECIFIED" => Some(Self::Unspecified),
2556                "LOG_MODE_FULL_STATE" => Some(Self::FullState),
2557                "LOG_MODE_INCREMENTAL" => Some(Self::Incremental),
2558                _ => None,
2559            }
2560        }
2561    }
2562}
2563#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2564pub struct ChromeConfig {
2565    #[prost(string, optional, tag = "1")]
2566    pub trace_config: ::core::option::Option<::prost::alloc::string::String>,
2567    /// When enabled, the data source should only fill in fields in the output that
2568    /// are not potentially privacy sensitive.
2569    #[prost(bool, optional, tag = "2")]
2570    pub privacy_filtering_enabled: ::core::option::Option<bool>,
2571    /// Instead of emitting binary protobuf, convert the trace data to the legacy
2572    /// JSON format. Note that the trace data will still be returned as a series of
2573    /// TracePackets, but the embedded data will be JSON instead of serialized
2574    /// protobuf.
2575    #[prost(bool, optional, tag = "3")]
2576    pub convert_to_legacy_json: ::core::option::Option<bool>,
2577    #[prost(enumeration = "chrome_config::ClientPriority", optional, tag = "4")]
2578    pub client_priority: ::core::option::Option<i32>,
2579    /// Applicable only when using legacy JSON format.
2580    /// If |json_agent_label_filter| is not empty, only data pertaining to
2581    /// the specified tracing agent label (e.g. "traceEvents") will be returned.
2582    #[prost(string, optional, tag = "5")]
2583    pub json_agent_label_filter: ::core::option::Option<::prost::alloc::string::String>,
2584    ///   When enabled, event names should not contain package names.
2585    #[prost(bool, optional, tag = "6")]
2586    pub event_package_name_filter_enabled: ::core::option::Option<bool>,
2587}
2588/// Nested message and enum types in `ChromeConfig`.
2589pub mod chrome_config {
2590    /// Priority of the tracing session client. A higher priority session may
2591    /// preempt a lower priority one in configurations where concurrent sessions
2592    /// aren't supported.
2593    #[derive(
2594        Clone,
2595        Copy,
2596        Debug,
2597        PartialEq,
2598        Eq,
2599        Hash,
2600        PartialOrd,
2601        Ord,
2602        ::prost::Enumeration
2603    )]
2604    #[repr(i32)]
2605    pub enum ClientPriority {
2606        Unknown = 0,
2607        Background = 1,
2608        UserInitiated = 2,
2609    }
2610    impl ClientPriority {
2611        /// String value of the enum field names used in the ProtoBuf definition.
2612        ///
2613        /// The values are not transformed in any way and thus are considered stable
2614        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2615        pub fn as_str_name(&self) -> &'static str {
2616            match self {
2617                Self::Unknown => "UNKNOWN",
2618                Self::Background => "BACKGROUND",
2619                Self::UserInitiated => "USER_INITIATED",
2620            }
2621        }
2622        /// Creates an enum from field names used in the ProtoBuf definition.
2623        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2624            match value {
2625                "UNKNOWN" => Some(Self::Unknown),
2626                "BACKGROUND" => Some(Self::Background),
2627                "USER_INITIATED" => Some(Self::UserInitiated),
2628                _ => None,
2629            }
2630        }
2631    }
2632}
2633#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
2634pub struct V8Config {
2635    /// Whether to log the actual content of scripts (e.g. content of the JS file
2636    /// that was compiled to generate code).
2637    /// ATTENTION: This could considerably increase the size of the resuling trace
2638    ///             file.
2639    #[prost(bool, optional, tag = "1")]
2640    pub log_script_sources: ::core::option::Option<bool>,
2641    /// Whether to log the generated code for jitted functions (machine code or
2642    /// bytecode).
2643    /// ATTENTION: This could considerably increase the size of the resuling trace
2644    ///             file.
2645    #[prost(bool, optional, tag = "2")]
2646    pub log_instructions: ::core::option::Option<bool>,
2647}
2648/// Proto definition based on the struct _EVENT_TRACE_PROPERTIES definition
2649/// See: <https://learn.microsoft.com/en-us/windows/win32/api/evntrace/>
2650/// ns-evntrace-event_trace_properties
2651///
2652/// See the list of keywords for for individual providers.
2653/// <https://learn.microsoft.com/en-us/windows/win32/etw/system-providers>
2654#[derive(Clone, PartialEq, ::prost::Message)]
2655pub struct EtwConfig {
2656    /// The kernel_flags determines the flags that will be used by the etw tracing
2657    /// session. These kernel flags have been built to expose the useful events
2658    /// captured from the kernel mode only.
2659    #[deprecated]
2660    #[prost(
2661        enumeration = "etw_config::KernelFlag",
2662        repeated,
2663        packed = "false",
2664        tag = "1"
2665    )]
2666    pub kernel_flags: ::prost::alloc::vec::Vec<i32>,
2667    /// Provides events relating to the scheduler.
2668    #[prost(string, repeated, tag = "2")]
2669    pub scheduler_provider_events: ::prost::alloc::vec::Vec<
2670        ::prost::alloc::string::String,
2671    >,
2672    /// Provides events relating to the memory manager.
2673    #[prost(string, repeated, tag = "3")]
2674    pub memory_provider_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2675    /// Provides events relating to file I/O.
2676    #[deprecated]
2677    #[prost(string, repeated, tag = "4")]
2678    pub file_provider_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2679    /// Events for which stacks should be collected.
2680    #[prost(string, repeated, tag = "5")]
2681    pub stack_sampling_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2682    /// Provides events relating to disk I/O.
2683    #[deprecated]
2684    #[prost(string, repeated, tag = "6")]
2685    pub disk_provider_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2686    /// Provides events relating to multiple kinds of IO including disk, cache, and
2687    /// network.
2688    #[prost(string, repeated, tag = "7")]
2689    pub system_io_provider_events: ::prost::alloc::vec::Vec<
2690        ::prost::alloc::string::String,
2691    >,
2692    /// Debug IDs for images whose stack samples should be symbolized.
2693    #[prost(message, repeated, tag = "8")]
2694    pub stack_sampling_debug_ids: ::prost::alloc::vec::Vec<etw_config::DebugId>,
2695}
2696/// Nested message and enum types in `EtwConfig`.
2697pub mod etw_config {
2698    /// A debug ID that uniquely identifies an image (i.e., executable) for
2699    /// symbolization when stack sampling.
2700    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2701    pub struct DebugId {
2702        /// The full path to the image file.
2703        #[prost(string, optional, tag = "1")]
2704        pub path: ::core::option::Option<::prost::alloc::string::String>,
2705        /// The unique identifier for the image file.
2706        #[prost(string, optional, tag = "2")]
2707        pub debug_id: ::core::option::Option<::prost::alloc::string::String>,
2708    }
2709    /// The KernelFlag represent list of kernel flags that we are intrested in.
2710    /// To get a more extensive list run 'xperf -providers k'.
2711    #[derive(
2712        Clone,
2713        Copy,
2714        Debug,
2715        PartialEq,
2716        Eq,
2717        Hash,
2718        PartialOrd,
2719        Ord,
2720        ::prost::Enumeration
2721    )]
2722    #[repr(i32)]
2723    pub enum KernelFlag {
2724        Cswitch = 0,
2725        Dispatcher = 1,
2726    }
2727    impl KernelFlag {
2728        /// String value of the enum field names used in the ProtoBuf definition.
2729        ///
2730        /// The values are not transformed in any way and thus are considered stable
2731        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2732        pub fn as_str_name(&self) -> &'static str {
2733            match self {
2734                Self::Cswitch => "CSWITCH",
2735                Self::Dispatcher => "DISPATCHER",
2736            }
2737        }
2738        /// Creates an enum from field names used in the ProtoBuf definition.
2739        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2740            match value {
2741                "CSWITCH" => Some(Self::Cswitch),
2742                "DISPATCHER" => Some(Self::Dispatcher),
2743                _ => None,
2744            }
2745        }
2746    }
2747}
2748#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
2749pub struct ChromiumSystemMetricsConfig {
2750    /// Samples counters every X ms.
2751    #[prost(uint32, optional, tag = "1")]
2752    pub sampling_interval_ms: ::core::option::Option<u32>,
2753}
2754/// Next id: 38
2755#[derive(Clone, PartialEq, ::prost::Message)]
2756pub struct FtraceConfig {
2757    /// Ftrace events to record, example: "sched/sched_switch".
2758    #[prost(string, repeated, tag = "1")]
2759    pub ftrace_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2760    /// Android-specific event categories:
2761    #[prost(string, repeated, tag = "2")]
2762    pub atrace_categories: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2763    #[prost(string, repeated, tag = "3")]
2764    pub atrace_apps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2765    /// Some processes can emit data through atrace or through the perfetto SDK via
2766    /// the "track_event" data source. For these categories, the SDK will be
2767    /// preferred, if possible, for this config.
2768    #[prost(string, repeated, tag = "28")]
2769    pub atrace_categories_prefer_sdk: ::prost::alloc::vec::Vec<
2770        ::prost::alloc::string::String,
2771    >,
2772    /// If true, do *not* add in extra ftrace events when |atrace_categories| are
2773    /// set. This skips the legacy "atrace" behaviour of adding hardcoded ftrace
2774    /// events for convenience (and the vendor-specific events on top).
2775    /// Introduced in: perfetto v52.
2776    #[prost(bool, optional, tag = "34")]
2777    pub atrace_userspace_only: ::core::option::Option<bool>,
2778    /// Size of each per-cpu kernel ftrace ring buffer.
2779    /// Not guaranteed if there are multiple concurrent tracing sessions, as the
2780    /// buffers cannot be resized without pausing recording in the kernel.
2781    #[prost(uint32, optional, tag = "10")]
2782    pub buffer_size_kb: ::core::option::Option<u32>,
2783    /// If true, |buffer_size_kb| is interpreted as a lower bound, allowing the
2784    /// implementation to choose a bigger buffer size.
2785    ///
2786    /// Most configs for perfetto v43+ should simply leave both fields unset.
2787    ///
2788    /// If you need a config compatible with a range of perfetto builds and you
2789    /// used to set a non-default buffer_size_kb, consider setting both fields.
2790    /// Example:
2791    ///    buffer_size_kb: 4096
2792    ///    buffer_size_lower_bound: true
2793    /// On older builds, the per-cpu buffers will be exactly 4 MB.
2794    /// On v43+, buffers will be at least 4 MB.
2795    /// In both cases, neither is guaranteed if there are other concurrent
2796    /// perfetto ftrace sessions, as the buffers cannot be resized without pausing
2797    /// the recording in the kernel.
2798    /// Introduced in: perfetto v43.
2799    #[prost(bool, optional, tag = "27")]
2800    pub buffer_size_lower_bound: ::core::option::Option<bool>,
2801    /// If set, specifies how often the tracing daemon reads from the kernel ring
2802    /// buffer. Not guaranteed if there are multiple concurrent tracing sessions.
2803    /// Leave unset unless you're fine-tuning a local config.
2804    #[prost(uint32, optional, tag = "11")]
2805    pub drain_period_ms: ::core::option::Option<u32>,
2806    /// If set, the tracing daemon will read kernel ring buffers as soon as
2807    /// they're filled past this percentage of occupancy. In other words, a value
2808    /// of 50 means that a read pass is triggered as soon as any per-cpu buffer is
2809    /// half-full. Not guaranteed if there are multiple concurrent tracing
2810    /// sessions.
2811    /// Currently does nothing on Linux kernels below v6.9.
2812    /// Introduced in: perfetto v48.
2813    #[prost(uint32, optional, tag = "29")]
2814    pub drain_buffer_percent: ::core::option::Option<u32>,
2815    #[prost(message, optional, tag = "12")]
2816    pub compact_sched: ::core::option::Option<ftrace_config::CompactSchedConfig>,
2817    #[prost(message, optional, tag = "22")]
2818    pub print_filter: ::core::option::Option<ftrace_config::PrintFilter>,
2819    /// Enables symbol name resolution against /proc/kallsyms.
2820    /// It requires that either traced_probes is running as root or that
2821    /// kptr_restrict has been manually lowered.
2822    /// It does not disclose KASLR, symbol addresses are mangled.
2823    #[prost(bool, optional, tag = "13")]
2824    pub symbolize_ksyms: ::core::option::Option<bool>,
2825    #[prost(enumeration = "ftrace_config::KsymsMemPolicy", optional, tag = "17")]
2826    pub ksyms_mem_policy: ::core::option::Option<i32>,
2827    /// When this boolean is true AND the ftrace_events contains "kmem/rss_stat",
2828    /// this option causes traced_probes to enable the "kmem/rss_stat_throttled"
2829    /// event instead if present, and fall back to "kmem/rss_stat" if not present.
2830    /// The historical context for this is the following:
2831    /// - Up to Android S (12), the rss_stat was internally throttled in its
2832    ///    kernel implementation.
2833    /// - A change introduced in the kernels after S has introduced a new
2834    ///    "rss_stat_throttled" making the original "rss_stat" event unthrottled
2835    ///    (hence very spammy).
2836    /// - Not all Android T/13 devices will receive a new kernel though, hence we
2837    ///    need to deal with both cases.
2838    /// For more context: go/rss-stat-throttled.
2839    #[prost(bool, optional, tag = "15")]
2840    pub throttle_rss_stat: ::core::option::Option<bool>,
2841    /// If true, use self-describing proto messages when writing events not known
2842    /// at compile time (aka generic events). Each event bundle will have a set of
2843    /// serialised proto descriptors for events within that bundle.
2844    ///
2845    /// Default if unset:
2846    /// * v53+: true
2847    /// * before v53: false
2848    ///
2849    /// Added in: perfetto v50.
2850    #[prost(bool, optional, tag = "32")]
2851    pub denser_generic_event_encoding: ::core::option::Option<bool>,
2852    /// If true, avoid enabling events that aren't statically known by
2853    /// traced_probes. Otherwise, the default is to emit such events as
2854    /// GenericFtraceEvent protos.
2855    /// Prefer to keep this flag at its default. This was added for Android
2856    /// tracing, where atrace categories and/or atrace HAL requested events can
2857    /// expand to events that aren't of interest to the tracing user.
2858    /// Introduced in: Android T.
2859    #[prost(bool, optional, tag = "16")]
2860    pub disable_generic_events: ::core::option::Option<bool>,
2861    /// The subset of syscalls to record. To record all syscalls, leave this unset
2862    /// and add "ftrace_events: raw_syscalls/sys_{enter,exit}" to the config.
2863    /// * before perfetto v43, requires the config to also enable
2864    ///    raw_syscalls/sys_{enter,exit}.
2865    /// * perfetto v43+ does the right thing if you set only this field.
2866    /// Example: \["sys_read", "sys_open"\].
2867    /// Introduced in: Android U.
2868    #[prost(string, repeated, tag = "18")]
2869    pub syscall_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2870    /// If true, enable the "function_graph" kernel tracer that emits events
2871    /// whenever a kernel function is entered and exited
2872    /// (funcgraph_entry/funcgraph_exit).
2873    /// Notes on use:
2874    /// * Requires |symbolize_ksyms| for function name resolution.
2875    /// * Use |function_filters| or |function_graph_roots| to constrain the traced
2876    ///    set of functions, otherwise the event bandwidth will be too high for
2877    ///    practical use.
2878    /// * The data source might be rejected if there is already a concurrent
2879    ///    ftrace data source that does not use function graph itself, as we do not
2880    ///    support switching kernel tracers mid-trace.
2881    /// * Requires a kernel compiled with CONFIG_FUNCTION_GRAPH_TRACER. This is
2882    ///    enabled if "cat /sys/kernel/tracing/available_tracers" includes
2883    ///    "function_graph".
2884    /// Android:
2885    /// * Available only on debuggable builds.
2886    /// * Introduced in: Android U.
2887    #[prost(bool, optional, tag = "19")]
2888    pub enable_function_graph: ::core::option::Option<bool>,
2889    /// Constrains the set of functions traced when |enable_function_graph| is
2890    /// true. Supports globs, e.g. "sched*". You can specify multiple filters,
2891    /// in which case all matching functions will be traced. See kernel
2892    /// documentation on ftrace "set_ftrace_filter" file for more details.
2893    /// Android:
2894    /// * Available only on debuggable builds.
2895    /// * Introduced in: Android U.
2896    #[prost(string, repeated, tag = "20")]
2897    pub function_filters: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2898    /// If |enable_function_graph| is true, trace this set of functions *and* all
2899    /// of its callees. Supports globs. Can be set together with
2900    /// |function_filters|, in which case only callees matching the filter will be
2901    /// traced. If setting both, you most likely want all roots to also be
2902    /// included in |function_filters|.
2903    /// Android:
2904    /// * Available only on debuggable builds.
2905    /// * Introduced in: Android U.
2906    #[prost(string, repeated, tag = "21")]
2907    pub function_graph_roots: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2908    /// If |enable_function_graph| is true, only trace the specified
2909    /// number of calls down the stack. Sets the max_graph_depth value
2910    /// in sys/kernel/tracing/
2911    ///
2912    /// Only respected for the first tracing session that enables
2913    /// function_graph tracing.
2914    ///
2915    /// Introduced in: perfetto v51.
2916    /// Supported on: Android 25Q3+.
2917    #[prost(uint32, optional, tag = "33")]
2918    pub function_graph_max_depth: ::core::option::Option<u32>,
2919    /// Ftrace events to record, specific for kprobes and kretprobes
2920    #[prost(message, repeated, tag = "30")]
2921    pub kprobe_events: ::prost::alloc::vec::Vec<ftrace_config::KprobeEvent>,
2922    /// If true, does not clear kernel ftrace buffers when starting the trace.
2923    /// This makes sense only if this is the first ftrace data source instance
2924    /// created after the daemon has been started. Can be useful for gathering boot
2925    /// traces, if ftrace has been separately configured (e.g. via kernel
2926    /// commandline).
2927    /// NB: when configuring the pre-perfetto ftrace, prefer to set
2928    /// "/sys/kernel/tracing/trace_clock" to "boot" if your trace will contain
2929    /// anything besides ftrace. Otherwise timestamps might be skewed.
2930    #[prost(bool, optional, tag = "23")]
2931    pub preserve_ftrace_buffer: ::core::option::Option<bool>,
2932    /// If true, overrides the default timestamp clock and uses a raw hardware
2933    /// based monotonic clock for getting timestamps.
2934    /// * Introduced in: Android U.
2935    #[prost(bool, optional, tag = "24")]
2936    pub use_monotonic_raw_clock: ::core::option::Option<bool>,
2937    /// If |instance_name| is not empty, then attempt to use that tracefs instance
2938    /// for event recording. Normally, this means
2939    /// `/sys/kernel/tracing/instances/$instance_name`.
2940    ///
2941    /// Names "hyp" and "hypervisor" are reserved.
2942    ///
2943    /// The instance must already exist, the tracing daemon *will not* create it
2944    /// for you as it typically doesn't have such permissions.
2945    /// Only a subset of features is guaranteed to work with non-default instances,
2946    /// at the time of writing:
2947    ///   * ftrace_events
2948    ///   * buffer_size_kb
2949    #[prost(string, optional, tag = "25")]
2950    pub instance_name: ::core::option::Option<::prost::alloc::string::String>,
2951    /// For perfetto developer use. If true and on a debuggable android build,
2952    /// serialise raw tracing pages that the implementation cannot parse.
2953    #[prost(bool, optional, tag = "31")]
2954    pub debug_ftrace_abi: ::core::option::Option<bool>,
2955    /// Filter ftrace events by Thread ID (TID).
2956    /// This writes the TIDs to `/sys/kernel/tracing/set_event_pid`.
2957    ///
2958    /// Note: this is an exclusive feature, see:
2959    /// <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
2960    ///
2961    /// Introduced in: perfetto v52.
2962    /// Supported on: Android 25Q3+.
2963    #[prost(uint32, repeated, packed = "false", tag = "35")]
2964    pub tids_to_trace: ::prost::alloc::vec::Vec<u32>,
2965    #[prost(message, repeated, tag = "36")]
2966    pub tracefs_options: ::prost::alloc::vec::Vec<ftrace_config::TracefsOption>,
2967    /// This mask restricts tracing to a specific set of CPUs using a
2968    /// comma-separated hex mask. Each hex number (up to 8 digits) represents a
2969    /// 32-bit chunk of the CPU mask.
2970    ///
2971    /// The chunks are ordered from high CPUs to low CPUs (left to right):
2972    ///    - Rightmost chunk: CPUs 0-31
2973    ///    - 2nd chunk from right: CPUs 32-63
2974    ///    - ...and so on.
2975    ///
2976    /// Example (assuming NR_CPUS=128, requiring 4 chunks):
2977    /// The full mask would be in the format: "chunk3,chunk2,chunk1,chunk0"
2978    /// where chunk3 maps to CPUs 96-127, chunk2 to 64-95, chunk1 to 32-63, and
2979    /// chunk0 to 0-31.
2980    ///    - "ffffffff,0,0,0": Enables CPUs 96-127 only.
2981    ///    - "f,ff": Enables CPUs 0-7 (from "ff") and CPUs 32-35 (from "f").
2982    ///
2983    /// Note: This is an exclusive feature, see:
2984    /// <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
2985    ///
2986    /// Introduced in: perfetto v52.
2987    /// Supported on: Android 25Q3+.
2988    #[prost(string, optional, tag = "37")]
2989    pub tracing_cpumask: ::core::option::Option<::prost::alloc::string::String>,
2990    /// No-op in perfetto v28+. Name preserved because of existing references in
2991    /// textproto configs.
2992    #[deprecated]
2993    #[prost(bool, optional, tag = "14")]
2994    pub initialize_ksyms_synchronously_for_testing: ::core::option::Option<bool>,
2995}
2996/// Nested message and enum types in `FtraceConfig`.
2997pub mod ftrace_config {
2998    /// Configuration for compact encoding of scheduler events. When enabled (and
2999    /// recording the relevant ftrace events), specific high-volume events are
3000    /// encoded in a denser format than normal.
3001    #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
3002    pub struct CompactSchedConfig {
3003        /// If true, and sched_switch or sched_waking ftrace events are enabled,
3004        /// record those events in the compact format.
3005        ///
3006        /// If the field is unset, the default is:
3007        /// * perfetto v42.0+: enabled
3008        /// * before: disabled
3009        #[prost(bool, optional, tag = "1")]
3010        pub enabled: ::core::option::Option<bool>,
3011    }
3012    /// Optional filter for "ftrace/print" events.
3013    ///
3014    /// The filter consists of multiple rules. As soon as a rule matches (the rules
3015    /// are processed in order), its `allow` field will be used as the outcome: if
3016    /// `allow` is true, the event will be included in the trace, otherwise it will
3017    /// be discarded. If an event does not match any rule, it will be allowed by
3018    /// default (a rule with an empty prefix and allow=false, disallows everything
3019    /// by default).
3020    #[derive(Clone, PartialEq, ::prost::Message)]
3021    pub struct PrintFilter {
3022        #[prost(message, repeated, tag = "1")]
3023        pub rules: ::prost::alloc::vec::Vec<print_filter::Rule>,
3024    }
3025    /// Nested message and enum types in `PrintFilter`.
3026    pub mod print_filter {
3027        #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3028        pub struct Rule {
3029            #[prost(bool, optional, tag = "2")]
3030            pub allow: ::core::option::Option<bool>,
3031            #[prost(oneof = "rule::Match", tags = "1, 3")]
3032            pub r#match: ::core::option::Option<rule::Match>,
3033        }
3034        /// Nested message and enum types in `Rule`.
3035        pub mod rule {
3036            /// Matches an atrace message of the form:
3037            /// <type>|pid|<prefix>...
3038            #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3039            pub struct AtraceMessage {
3040                #[prost(string, optional, tag = "1")]
3041                pub r#type: ::core::option::Option<::prost::alloc::string::String>,
3042                #[prost(string, optional, tag = "2")]
3043                pub prefix: ::core::option::Option<::prost::alloc::string::String>,
3044            }
3045            #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
3046            pub enum Match {
3047                /// This rule matches if `prefix` matches exactly with the beginning of
3048                /// the "ftrace/print" "buf" field.
3049                #[prost(string, tag = "1")]
3050                Prefix(::prost::alloc::string::String),
3051                /// This rule matches if the "buf" field contains an atrace-style print
3052                /// message as specified in `atrace_msg`.
3053                #[prost(message, tag = "3")]
3054                AtraceMsg(AtraceMessage),
3055            }
3056        }
3057    }
3058    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3059    pub struct KprobeEvent {
3060        /// Kernel function name to attach to, for example "fuse_file_write_iter"
3061        #[prost(string, optional, tag = "1")]
3062        pub probe: ::core::option::Option<::prost::alloc::string::String>,
3063        #[prost(enumeration = "kprobe_event::KprobeType", optional, tag = "2")]
3064        pub r#type: ::core::option::Option<i32>,
3065    }
3066    /// Nested message and enum types in `KprobeEvent`.
3067    pub mod kprobe_event {
3068        #[derive(
3069            Clone,
3070            Copy,
3071            Debug,
3072            PartialEq,
3073            Eq,
3074            Hash,
3075            PartialOrd,
3076            Ord,
3077            ::prost::Enumeration
3078        )]
3079        #[repr(i32)]
3080        pub enum KprobeType {
3081            Unknown = 0,
3082            Kprobe = 1,
3083            Kretprobe = 2,
3084            Both = 3,
3085        }
3086        impl KprobeType {
3087            /// String value of the enum field names used in the ProtoBuf definition.
3088            ///
3089            /// The values are not transformed in any way and thus are considered stable
3090            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
3091            pub fn as_str_name(&self) -> &'static str {
3092                match self {
3093                    Self::Unknown => "KPROBE_TYPE_UNKNOWN",
3094                    Self::Kprobe => "KPROBE_TYPE_KPROBE",
3095                    Self::Kretprobe => "KPROBE_TYPE_KRETPROBE",
3096                    Self::Both => "KPROBE_TYPE_BOTH",
3097                }
3098            }
3099            /// Creates an enum from field names used in the ProtoBuf definition.
3100            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
3101                match value {
3102                    "KPROBE_TYPE_UNKNOWN" => Some(Self::Unknown),
3103                    "KPROBE_TYPE_KPROBE" => Some(Self::Kprobe),
3104                    "KPROBE_TYPE_KRETPROBE" => Some(Self::Kretprobe),
3105                    "KPROBE_TYPE_BOTH" => Some(Self::Both),
3106                    _ => None,
3107                }
3108            }
3109        }
3110    }
3111    /// Tracefs options to set directly in the tracefs instance. This is a very
3112    /// niche feature since almost all of the options deal with formatting textual
3113    /// output (the /trace file), which perfetto doesn't use.
3114    ///
3115    /// The options with a known use-case:
3116    /// * event-fork: when using `tids_to_trace` above, the kernel will
3117    ///    automatically add newly spawned descendant threads to the set of TIDs.
3118    ///
3119    /// Full list of options is available at
3120    /// <https://docs.kernel.org/trace/ftrace.html#trace-options.>
3121    ///
3122    /// Note: this is an exclusive feature, see:
3123    /// <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
3124    ///
3125    /// Introduced in: perfetto v52.
3126    /// Supported on: Android 25Q3+.
3127    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3128    pub struct TracefsOption {
3129        /// The name of the tracefs option as found in tracefs/trace_options (without
3130        /// the "no" prefix).
3131        #[prost(string, optional, tag = "1")]
3132        pub name: ::core::option::Option<::prost::alloc::string::String>,
3133        #[prost(enumeration = "tracefs_option::State", optional, tag = "2")]
3134        pub state: ::core::option::Option<i32>,
3135    }
3136    /// Nested message and enum types in `TracefsOption`.
3137    pub mod tracefs_option {
3138        #[derive(
3139            Clone,
3140            Copy,
3141            Debug,
3142            PartialEq,
3143            Eq,
3144            Hash,
3145            PartialOrd,
3146            Ord,
3147            ::prost::Enumeration
3148        )]
3149        #[repr(i32)]
3150        pub enum State {
3151            Unknown = 0,
3152            Enabled = 1,
3153            Disabled = 2,
3154        }
3155        impl State {
3156            /// String value of the enum field names used in the ProtoBuf definition.
3157            ///
3158            /// The values are not transformed in any way and thus are considered stable
3159            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
3160            pub fn as_str_name(&self) -> &'static str {
3161                match self {
3162                    Self::Unknown => "STATE_UNKNOWN",
3163                    Self::Enabled => "STATE_ENABLED",
3164                    Self::Disabled => "STATE_DISABLED",
3165                }
3166            }
3167            /// Creates an enum from field names used in the ProtoBuf definition.
3168            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
3169                match value {
3170                    "STATE_UNKNOWN" => Some(Self::Unknown),
3171                    "STATE_ENABLED" => Some(Self::Enabled),
3172                    "STATE_DISABLED" => Some(Self::Disabled),
3173                    _ => None,
3174                }
3175            }
3176        }
3177    }
3178    /// When symbolize_ksyms=true, determines whether the traced_probes daemon
3179    /// should keep the symbol map in memory (and reuse it for future tracing
3180    /// sessions) or clear it (saving memory) and re-create it on each tracing
3181    /// session (wasting cpu and wall time).
3182    /// The tradeoff is roughly:
3183    ///   KSYMS_RETAIN: pay a fixed ~1.2 MB cost after the first trace.
3184    ///   KSYMS_CLEANUP_ON_STOP: pay a ~300-500ms cost when starting each trace.
3185    /// Default behavior: KSYMS_CLEANUP_ON_STOP.
3186    #[derive(
3187        Clone,
3188        Copy,
3189        Debug,
3190        PartialEq,
3191        Eq,
3192        Hash,
3193        PartialOrd,
3194        Ord,
3195        ::prost::Enumeration
3196    )]
3197    #[repr(i32)]
3198    pub enum KsymsMemPolicy {
3199        KsymsUnspecified = 0,
3200        KsymsCleanupOnStop = 1,
3201        KsymsRetain = 2,
3202    }
3203    impl KsymsMemPolicy {
3204        /// String value of the enum field names used in the ProtoBuf definition.
3205        ///
3206        /// The values are not transformed in any way and thus are considered stable
3207        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
3208        pub fn as_str_name(&self) -> &'static str {
3209            match self {
3210                Self::KsymsUnspecified => "KSYMS_UNSPECIFIED",
3211                Self::KsymsCleanupOnStop => "KSYMS_CLEANUP_ON_STOP",
3212                Self::KsymsRetain => "KSYMS_RETAIN",
3213            }
3214        }
3215        /// Creates an enum from field names used in the ProtoBuf definition.
3216        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
3217            match value {
3218                "KSYMS_UNSPECIFIED" => Some(Self::KsymsUnspecified),
3219                "KSYMS_CLEANUP_ON_STOP" => Some(Self::KsymsCleanupOnStop),
3220                "KSYMS_RETAIN" => Some(Self::KsymsRetain),
3221                _ => None,
3222            }
3223        }
3224    }
3225}
3226#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3227pub struct FrozenFtraceConfig {
3228    /// The instance name which stores the previous boot ftrace data. Required.
3229    #[prost(string, optional, tag = "1")]
3230    pub instance_name: ::core::option::Option<::prost::alloc::string::String>,
3231}
3232#[derive(Clone, PartialEq, ::prost::Message)]
3233pub struct GpuCounterConfig {
3234    /// Desired sampling interval for counters.
3235    #[prost(uint64, optional, tag = "1")]
3236    pub counter_period_ns: ::core::option::Option<u64>,
3237    /// Selects which counters to sample. Use either counter_ids or counter_names,
3238    /// not both. Counter IDs and names correspond to the ones described in
3239    /// GpuCounterSpec in the data source descriptor.
3240    ///
3241    /// List of counter IDs to be sampled.
3242    #[prost(uint32, repeated, packed = "false", tag = "2")]
3243    pub counter_ids: ::prost::alloc::vec::Vec<u32>,
3244    /// List of counter names to be sampled. Requires producer support; check
3245    /// GpuCounterDescriptor.supports_counter_names in the data source descriptor.
3246    /// Glob patterns may be used to match multiple counters by name; check
3247    /// GpuCounterDescriptor.supports_counter_name_globs for support.
3248    #[prost(string, repeated, tag = "6")]
3249    pub counter_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3250    /// Fix gpu clock rate during trace session.
3251    #[prost(bool, optional, tag = "4")]
3252    pub fix_gpu_clock: ::core::option::Option<bool>,
3253    /// Sample counters by instrumenting command buffers.
3254    #[prost(oneof = "gpu_counter_config::InstrumentedSamplingMode", tags = "3, 5")]
3255    pub instrumented_sampling_mode: ::core::option::Option<
3256        gpu_counter_config::InstrumentedSamplingMode,
3257    >,
3258}
3259/// Nested message and enum types in `GpuCounterConfig`.
3260pub mod gpu_counter_config {
3261    /// Configuration for sampling counters by instrumenting command buffers.
3262    ///
3263    /// When instrumented_sampling_config is used (instead of the
3264    /// instrumented_sampling bool), the following steps determine whether
3265    /// instrumented counters are enabled for a given GPU activity:
3266    ///
3267    /// 1. Activity name filtering: If activity_name_filters is non-empty, the
3268    ///     activity must match at least one filter. If empty, all activities
3269    ///     pass this step.
3270    /// 2. TX range filtering: If activity_tx_include_globs is non-empty, the
3271    ///     activity must fall within a matching TX range. Activities in TX
3272    ///     ranges matching activity_tx_exclude_globs are excluded (excludes
3273    ///     take precedence over includes). If both are empty, all activities
3274    ///     pass this step.
3275    /// 3. Range-based sampling: If activity_ranges is non-empty, only
3276    ///     activities within the specified skip/count ranges are instrumented.
3277    ///     If empty, all activities that passed the previous steps are
3278    ///     instrumented.
3279    #[derive(Clone, PartialEq, ::prost::Message)]
3280    pub struct InstrumentedSamplingConfig {
3281        /// GPU activity name filters. An activity matches if it matches any filter.
3282        #[prost(message, repeated, tag = "3")]
3283        pub activity_name_filters: ::prost::alloc::vec::Vec<
3284            instrumented_sampling_config::ActivityNameFilter,
3285        >,
3286        /// Glob patterns to use for including GPU activities in TX ranges. TX
3287        /// ranges are in-process annotations that mark different sections of GPU
3288        /// work (e.g. NVTX ranges for CUDA). TX ranges can be nested, and an
3289        /// activity is included if any range in its nesting hierarchy matches.
3290        /// Only activities that fall within a matching TX range will be
3291        /// instrumented.
3292        #[prost(string, repeated, tag = "6")]
3293        pub activity_tx_include_globs: ::prost::alloc::vec::Vec<
3294            ::prost::alloc::string::String,
3295        >,
3296        /// Glob patterns to use for excluding GPU activities from TX ranges.
3297        /// TX ranges can be nested, and an activity is excluded if any range
3298        /// in its nesting hierarchy matches. Excludes take precedence over
3299        /// includes.
3300        #[prost(string, repeated, tag = "7")]
3301        pub activity_tx_exclude_globs: ::prost::alloc::vec::Vec<
3302            ::prost::alloc::string::String,
3303        >,
3304        /// Ranges of GPU activities to instrument. Applied after activity name
3305        /// and TX range filters. If empty, all activities that passed the
3306        /// previous filters are instrumented.
3307        #[prost(message, repeated, tag = "5")]
3308        pub activity_ranges: ::prost::alloc::vec::Vec<
3309            instrumented_sampling_config::ActivityRange,
3310        >,
3311    }
3312    /// Nested message and enum types in `InstrumentedSamplingConfig`.
3313    pub mod instrumented_sampling_config {
3314        /// Filters GPU activities by name. Each filter specifies a glob pattern
3315        /// and the basis for matching (mangled or demangled kernel name).
3316        #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3317        pub struct ActivityNameFilter {
3318            /// required. Glob pattern to use for GPU activity name filtering.
3319            #[prost(string, optional, tag = "1")]
3320            pub name_glob: ::core::option::Option<::prost::alloc::string::String>,
3321            /// Basis for name filtering. Defaults to MANGLED_KERNEL_NAME if not
3322            /// specified.
3323            #[prost(enumeration = "activity_name_filter::NameBase", optional, tag = "2")]
3324            pub name_base: ::core::option::Option<i32>,
3325        }
3326        /// Nested message and enum types in `ActivityNameFilter`.
3327        pub mod activity_name_filter {
3328            #[derive(
3329                Clone,
3330                Copy,
3331                Debug,
3332                PartialEq,
3333                Eq,
3334                Hash,
3335                PartialOrd,
3336                Ord,
3337                ::prost::Enumeration
3338            )]
3339            #[repr(i32)]
3340            pub enum NameBase {
3341                /// Match against the mangled (compiler-encoded) kernel name.
3342                /// Example: for a kernel whose demangled name is
3343                /// "matmul(float*,int,int)", the mangled name might be
3344                /// "_Z6matmulPfii". The glob pattern is matched against this
3345                /// mangled form.
3346                MangledKernelName = 0,
3347                /// Match against the fully demangled kernel name, including
3348                /// parameters, templates, and qualifiers.
3349                /// Example: "matmul(float*,int,int)". The glob pattern is
3350                /// matched against this full demangled form.
3351                DemangledKernelName = 1,
3352                /// Match against only the function name portion of the
3353                /// demangled kernel name, without parameters, templates,
3354                /// return types, or namespaces.
3355                /// Example: "matmul". The glob pattern is matched against
3356                /// just the bare function name.
3357                FunctionName = 2,
3358            }
3359            impl NameBase {
3360                /// String value of the enum field names used in the ProtoBuf definition.
3361                ///
3362                /// The values are not transformed in any way and thus are considered stable
3363                /// (if the ProtoBuf definition does not change) and safe for programmatic use.
3364                pub fn as_str_name(&self) -> &'static str {
3365                    match self {
3366                        Self::MangledKernelName => "MANGLED_KERNEL_NAME",
3367                        Self::DemangledKernelName => "DEMANGLED_KERNEL_NAME",
3368                        Self::FunctionName => "FUNCTION_NAME",
3369                    }
3370                }
3371                /// Creates an enum from field names used in the ProtoBuf definition.
3372                pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
3373                    match value {
3374                        "MANGLED_KERNEL_NAME" => Some(Self::MangledKernelName),
3375                        "DEMANGLED_KERNEL_NAME" => Some(Self::DemangledKernelName),
3376                        "FUNCTION_NAME" => Some(Self::FunctionName),
3377                        _ => None,
3378                    }
3379                }
3380            }
3381        }
3382        /// Defines a range of GPU activities to instrument.
3383        #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
3384        pub struct ActivityRange {
3385            /// Number of GPU activities to skip before starting to instrument
3386            /// command buffers. Defaults to 0 if not specified.
3387            #[prost(uint32, optional, tag = "1")]
3388            pub skip: ::core::option::Option<u32>,
3389            /// Limit for the number of GPU activities to sample counters for by
3390            /// instrumenting command buffers. Defaults to UINT32_MAX (all
3391            /// remaining activities) if not specified.
3392            #[prost(uint32, optional, tag = "2")]
3393            pub count: ::core::option::Option<u32>,
3394        }
3395    }
3396    /// Sample counters by instrumenting command buffers.
3397    #[derive(Clone, PartialEq, ::prost::Oneof)]
3398    pub enum InstrumentedSamplingMode {
3399        #[prost(bool, tag = "3")]
3400        InstrumentedSampling(bool),
3401        #[prost(message, tag = "5")]
3402        InstrumentedSamplingConfig(InstrumentedSamplingConfig),
3403    }
3404}
3405#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
3406pub struct VulkanMemoryConfig {
3407    /// Tracking driver memory usage events
3408    #[prost(bool, optional, tag = "1")]
3409    pub track_driver_memory_usage: ::core::option::Option<bool>,
3410    /// Tracking device memory usage events
3411    #[prost(bool, optional, tag = "2")]
3412    pub track_device_memory_usage: ::core::option::Option<bool>,
3413}
3414#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3415pub struct GpuRenderStagesConfig {
3416    /// Enable to separate the color and depth/stencil load and store stages
3417    /// into a separate stages. If disabled, the depth/stencil load and store
3418    /// stages will be combined.  Disabled by default. This option has no effect if
3419    /// Low Overhead mode is enabled.
3420    #[prost(bool, optional, tag = "1")]
3421    pub full_loadstore: ::core::option::Option<bool>,
3422    /// Use the low overhead mode for traces. In this mode render stages are
3423    /// combined into a single workload stage. This provides less granular data but
3424    /// induces minimal GPU overhead. Disabled by default.
3425    #[prost(bool, optional, tag = "2")]
3426    pub low_overhead: ::core::option::Option<bool>,
3427    /// Trace metrics to capture for each render stage
3428    #[prost(string, repeated, tag = "3")]
3429    pub trace_metrics: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3430    /// Enable per-draw-call slices, with real per-occurrence timestamps and metric
3431    /// values, on the gpu.renderstages data source. Disabled by default.
3432    /// When drawcall_stages is enabled, full_loadstore and low_overhead are
3433    /// ignored and their default values are used.
3434    #[prost(bool, optional, tag = "4")]
3435    pub drawcall_stages: ::core::option::Option<bool>,
3436}
3437/// WARNING: unmaintained and deprecated. Likely won't work at all on modern
3438/// systems.
3439#[derive(Clone, PartialEq, ::prost::Message)]
3440pub struct InodeFileConfig {
3441    /// How long to pause between batches.
3442    #[prost(uint32, optional, tag = "1")]
3443    pub scan_interval_ms: ::core::option::Option<u32>,
3444    /// How long to wait before the first scan in order to accumulate inodes.
3445    #[prost(uint32, optional, tag = "2")]
3446    pub scan_delay_ms: ::core::option::Option<u32>,
3447    /// How many inodes to scan in one batch.
3448    #[prost(uint32, optional, tag = "3")]
3449    pub scan_batch_size: ::core::option::Option<u32>,
3450    /// Do not scan for inodes not found in the static map.
3451    #[prost(bool, optional, tag = "4")]
3452    pub do_not_scan: ::core::option::Option<bool>,
3453    /// If non-empty, only scan inodes corresponding to block devices named in
3454    /// this list.
3455    #[prost(string, repeated, tag = "5")]
3456    pub scan_mount_points: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3457    /// When encountering an inode belonging to a block device corresponding
3458    /// to one of the mount points in this map, scan its scan_roots instead.
3459    #[prost(message, repeated, tag = "6")]
3460    pub mount_point_mapping: ::prost::alloc::vec::Vec<
3461        inode_file_config::MountPointMappingEntry,
3462    >,
3463}
3464/// Nested message and enum types in `InodeFileConfig`.
3465pub mod inode_file_config {
3466    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3467    pub struct MountPointMappingEntry {
3468        #[prost(string, optional, tag = "1")]
3469        pub mountpoint: ::core::option::Option<::prost::alloc::string::String>,
3470        #[prost(string, repeated, tag = "2")]
3471        pub scan_roots: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3472    }
3473}
3474#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
3475pub struct ConsoleConfig {
3476    #[prost(enumeration = "console_config::Output", optional, tag = "1")]
3477    pub output: ::core::option::Option<i32>,
3478    #[prost(bool, optional, tag = "2")]
3479    pub enable_colors: ::core::option::Option<bool>,
3480}
3481/// Nested message and enum types in `ConsoleConfig`.
3482pub mod console_config {
3483    #[derive(
3484        Clone,
3485        Copy,
3486        Debug,
3487        PartialEq,
3488        Eq,
3489        Hash,
3490        PartialOrd,
3491        Ord,
3492        ::prost::Enumeration
3493    )]
3494    #[repr(i32)]
3495    pub enum Output {
3496        Unspecified = 0,
3497        Stdout = 1,
3498        Stderr = 2,
3499    }
3500    impl Output {
3501        /// String value of the enum field names used in the ProtoBuf definition.
3502        ///
3503        /// The values are not transformed in any way and thus are considered stable
3504        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
3505        pub fn as_str_name(&self) -> &'static str {
3506            match self {
3507                Self::Unspecified => "OUTPUT_UNSPECIFIED",
3508                Self::Stdout => "OUTPUT_STDOUT",
3509                Self::Stderr => "OUTPUT_STDERR",
3510            }
3511        }
3512        /// Creates an enum from field names used in the ProtoBuf definition.
3513        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
3514            match value {
3515                "OUTPUT_UNSPECIFIED" => Some(Self::Unspecified),
3516                "OUTPUT_STDOUT" => Some(Self::Stdout),
3517                "OUTPUT_STDERR" => Some(Self::Stderr),
3518                _ => None,
3519            }
3520        }
3521    }
3522}
3523/// Configuration for trace packet interception. Used for diverting trace data to
3524/// non-Perfetto sources (e.g., logging to the console, ETW) when using the
3525/// Perfetto SDK.
3526#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3527pub struct InterceptorConfig {
3528    /// Matches the name given to RegisterInterceptor().
3529    #[prost(string, optional, tag = "1")]
3530    pub name: ::core::option::Option<::prost::alloc::string::String>,
3531    #[prost(message, optional, tag = "100")]
3532    pub console_config: ::core::option::Option<ConsoleConfig>,
3533}
3534#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3535pub struct AndroidPowerConfig {
3536    #[prost(uint32, optional, tag = "1")]
3537    pub battery_poll_ms: ::core::option::Option<u32>,
3538    #[prost(
3539        enumeration = "android_power_config::BatteryCounters",
3540        repeated,
3541        packed = "false",
3542        tag = "2"
3543    )]
3544    pub battery_counters: ::prost::alloc::vec::Vec<i32>,
3545    /// Where available enables per-power-rail measurements.
3546    #[prost(bool, optional, tag = "3")]
3547    pub collect_power_rails: ::core::option::Option<bool>,
3548    /// Provides a breakdown of energy estimation for various subsystem (e.g. GPU).
3549    /// Available from Android S.
3550    #[prost(bool, optional, tag = "4")]
3551    pub collect_energy_estimation_breakdown: ::core::option::Option<bool>,
3552    /// Provides a breakdown of time in state for various subsystems.
3553    /// Available from Android U.
3554    #[prost(bool, optional, tag = "5")]
3555    pub collect_entity_state_residency: ::core::option::Option<bool>,
3556}
3557/// Nested message and enum types in `AndroidPowerConfig`.
3558pub mod android_power_config {
3559    #[derive(
3560        Clone,
3561        Copy,
3562        Debug,
3563        PartialEq,
3564        Eq,
3565        Hash,
3566        PartialOrd,
3567        Ord,
3568        ::prost::Enumeration
3569    )]
3570    #[repr(i32)]
3571    pub enum BatteryCounters {
3572        BatteryCounterUnspecified = 0,
3573        /// Coulomb counter.
3574        BatteryCounterCharge = 1,
3575        /// Charge (%).
3576        BatteryCounterCapacityPercent = 2,
3577        /// Instantaneous current.
3578        BatteryCounterCurrent = 3,
3579        /// Avg current.
3580        BatteryCounterCurrentAvg = 4,
3581        /// Instantaneous voltage.
3582        BatteryCounterVoltage = 5,
3583    }
3584    impl BatteryCounters {
3585        /// String value of the enum field names used in the ProtoBuf definition.
3586        ///
3587        /// The values are not transformed in any way and thus are considered stable
3588        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
3589        pub fn as_str_name(&self) -> &'static str {
3590            match self {
3591                Self::BatteryCounterUnspecified => "BATTERY_COUNTER_UNSPECIFIED",
3592                Self::BatteryCounterCharge => "BATTERY_COUNTER_CHARGE",
3593                Self::BatteryCounterCapacityPercent => "BATTERY_COUNTER_CAPACITY_PERCENT",
3594                Self::BatteryCounterCurrent => "BATTERY_COUNTER_CURRENT",
3595                Self::BatteryCounterCurrentAvg => "BATTERY_COUNTER_CURRENT_AVG",
3596                Self::BatteryCounterVoltage => "BATTERY_COUNTER_VOLTAGE",
3597            }
3598        }
3599        /// Creates an enum from field names used in the ProtoBuf definition.
3600        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
3601            match value {
3602                "BATTERY_COUNTER_UNSPECIFIED" => Some(Self::BatteryCounterUnspecified),
3603                "BATTERY_COUNTER_CHARGE" => Some(Self::BatteryCounterCharge),
3604                "BATTERY_COUNTER_CAPACITY_PERCENT" => {
3605                    Some(Self::BatteryCounterCapacityPercent)
3606                }
3607                "BATTERY_COUNTER_CURRENT" => Some(Self::BatteryCounterCurrent),
3608                "BATTERY_COUNTER_CURRENT_AVG" => Some(Self::BatteryCounterCurrentAvg),
3609                "BATTERY_COUNTER_VOLTAGE" => Some(Self::BatteryCounterVoltage),
3610                _ => None,
3611            }
3612        }
3613    }
3614}
3615#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
3616pub struct ProtoVmConfig {
3617    #[prost(uint32, optional, tag = "1")]
3618    pub memory_limit_kb: ::core::option::Option<u32>,
3619}
3620/// This enum is obtained by post-processing
3621/// AOSP/frameworks/proto_logging/stats/atoms.proto through
3622/// AOSP/external/perfetto/tools/update-statsd-descriptor, which extracts one
3623/// enum value for each proto field defined in the upstream atoms.proto.
3624#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
3625#[repr(i32)]
3626pub enum AtomId {
3627    AtomUnspecified = 0,
3628    AtomBleScanStateChanged = 2,
3629    AtomProcessStateChanged = 3,
3630    AtomBleScanResultReceived = 4,
3631    AtomSensorStateChanged = 5,
3632    AtomGpsScanStateChanged = 6,
3633    AtomSyncStateChanged = 7,
3634    AtomScheduledJobStateChanged = 8,
3635    AtomScreenBrightnessChanged = 9,
3636    AtomWakelockStateChanged = 10,
3637    AtomLongPartialWakelockStateChanged = 11,
3638    AtomMobileRadioPowerStateChanged = 12,
3639    AtomWifiRadioPowerStateChanged = 13,
3640    AtomActivityManagerSleepStateChanged = 14,
3641    AtomMemoryFactorStateChanged = 15,
3642    AtomExcessiveCpuUsageReported = 16,
3643    AtomCachedKillReported = 17,
3644    AtomProcessMemoryStatReported = 18,
3645    AtomLauncherEvent = 19,
3646    AtomBatterySaverModeStateChanged = 20,
3647    AtomDeviceIdleModeStateChanged = 21,
3648    AtomDeviceIdlingModeStateChanged = 22,
3649    AtomAudioStateChanged = 23,
3650    AtomMediaCodecStateChanged = 24,
3651    AtomCameraStateChanged = 25,
3652    AtomFlashlightStateChanged = 26,
3653    AtomUidProcessStateChanged = 27,
3654    AtomProcessLifeCycleStateChanged = 28,
3655    AtomScreenStateChanged = 29,
3656    AtomBatteryLevelChanged = 30,
3657    AtomChargingStateChanged = 31,
3658    AtomPluggedStateChanged = 32,
3659    AtomInteractiveStateChanged = 33,
3660    AtomTouchEventReported = 34,
3661    AtomWakeupAlarmOccurred = 35,
3662    AtomKernelWakeupReported = 36,
3663    AtomWifiLockStateChanged = 37,
3664    AtomWifiSignalStrengthChanged = 38,
3665    AtomWifiScanStateChanged = 39,
3666    AtomPhoneSignalStrengthChanged = 40,
3667    AtomSettingChanged = 41,
3668    AtomActivityForegroundStateChanged = 42,
3669    AtomIsolatedUidChanged = 43,
3670    AtomPacketWakeupOccurred = 44,
3671    AtomWallClockTimeShifted = 45,
3672    AtomAnomalyDetected = 46,
3673    AtomAppBreadcrumbReported = 47,
3674    AtomAppStartOccurred = 48,
3675    AtomAppStartCanceled = 49,
3676    AtomAppStartFullyDrawn = 50,
3677    AtomLmkKillOccurred = 51,
3678    AtomPictureInPictureStateChanged = 52,
3679    AtomWifiMulticastLockStateChanged = 53,
3680    AtomAppStartMemoryStateCaptured = 55,
3681    AtomShutdownSequenceReported = 56,
3682    AtomBootSequenceReported = 57,
3683    AtomOverlayStateChanged = 59,
3684    AtomForegroundServiceStateChanged = 60,
3685    AtomCallStateChanged = 61,
3686    AtomKeyguardStateChanged = 62,
3687    AtomKeyguardBouncerStateChanged = 63,
3688    AtomKeyguardBouncerPasswordEntered = 64,
3689    AtomAppDied = 65,
3690    AtomResourceConfigurationChanged = 66,
3691    AtomBluetoothEnabledStateChanged = 67,
3692    AtomBluetoothConnectionStateChanged = 68,
3693    AtomGpsSignalQualityChanged = 69,
3694    AtomUsbConnectorStateChanged = 70,
3695    AtomSpeakerImpedanceReported = 71,
3696    AtomHardwareFailed = 72,
3697    AtomPhysicalDropDetected = 73,
3698    AtomChargeCyclesReported = 74,
3699    AtomMobileConnectionStateChanged = 75,
3700    AtomMobileRadioTechnologyChanged = 76,
3701    AtomUsbDeviceAttached = 77,
3702    AtomAppCrashOccurred = 78,
3703    AtomAnrOccurred = 79,
3704    AtomWtfOccurred = 80,
3705    AtomLowMemReported = 81,
3706    AtomGenericAtom = 82,
3707    AtomVibratorStateChanged = 84,
3708    AtomDeferredJobStatsReported = 85,
3709    AtomThermalThrottling = 86,
3710    AtomBiometricAcquired = 87,
3711    AtomBiometricAuthenticated = 88,
3712    AtomBiometricErrorOccurred = 89,
3713    AtomUiEventReported = 90,
3714    AtomBatteryHealthSnapshot = 91,
3715    AtomSlowIo = 92,
3716    AtomBatteryCausedShutdown = 93,
3717    AtomPhoneServiceStateChanged = 94,
3718    AtomPhoneStateChanged = 95,
3719    AtomUserRestrictionChanged = 96,
3720    AtomSettingsUiChanged = 97,
3721    AtomConnectivityStateChanged = 98,
3722    AtomServiceStateChanged = 99,
3723    AtomServiceLaunchReported = 100,
3724    AtomFlagFlipUpdateOccurred = 101,
3725    AtomBinaryPushStateChanged = 102,
3726    AtomDevicePolicyEvent = 103,
3727    AtomDocsUiFileOpCanceled = 104,
3728    AtomDocsUiFileOpCopyMoveModeReported = 105,
3729    AtomDocsUiFileOpFailure = 106,
3730    AtomDocsUiProviderFileOp = 107,
3731    AtomDocsUiInvalidScopedAccessRequest = 108,
3732    AtomDocsUiLaunchReported = 109,
3733    AtomDocsUiRootVisited = 110,
3734    AtomDocsUiStartupMs = 111,
3735    AtomDocsUiUserActionReported = 112,
3736    AtomWifiEnabledStateChanged = 113,
3737    AtomWifiRunningStateChanged = 114,
3738    AtomAppCompacted = 115,
3739    AtomNetworkDnsEventReported = 116,
3740    AtomDocsUiPickerLaunchedFromReported = 117,
3741    AtomDocsUiPickResultReported = 118,
3742    AtomDocsUiSearchModeReported = 119,
3743    AtomDocsUiSearchTypeReported = 120,
3744    AtomDataStallEvent = 121,
3745    AtomRescuePartyResetReported = 122,
3746    AtomSignedConfigReported = 123,
3747    AtomGnssNiEventReported = 124,
3748    AtomBluetoothLinkLayerConnectionEvent = 125,
3749    AtomBluetoothAclConnectionStateChanged = 126,
3750    AtomBluetoothScoConnectionStateChanged = 127,
3751    AtomAppDowngraded = 128,
3752    AtomAppOptimizedAfterDowngraded = 129,
3753    AtomLowStorageStateChanged = 130,
3754    AtomGnssNfwNotificationReported = 131,
3755    AtomGnssConfigurationReported = 132,
3756    AtomUsbPortOverheatEventReported = 133,
3757    AtomNfcErrorOccurred = 134,
3758    AtomNfcStateChanged = 135,
3759    AtomNfcBeamOccurred = 136,
3760    AtomNfcCardemulationOccurred = 137,
3761    AtomNfcTagOccurred = 138,
3762    AtomNfcHceTransactionOccurred = 139,
3763    AtomSeStateChanged = 140,
3764    AtomSeOmapiReported = 141,
3765    AtomBroadcastDispatchLatencyReported = 142,
3766    AtomAttentionManagerServiceResultReported = 143,
3767    AtomAdbConnectionChanged = 144,
3768    AtomSpeechDspStatReported = 145,
3769    AtomUsbContaminantReported = 146,
3770    AtomWatchdogRollbackOccurred = 147,
3771    AtomBiometricSystemHealthIssueDetected = 148,
3772    AtomBubbleUiChanged = 149,
3773    AtomScheduledJobConstraintChanged = 150,
3774    AtomBluetoothActiveDeviceChanged = 151,
3775    AtomBluetoothA2dpPlaybackStateChanged = 152,
3776    AtomBluetoothA2dpCodecConfigChanged = 153,
3777    AtomBluetoothA2dpCodecCapabilityChanged = 154,
3778    AtomBluetoothA2dpAudioUnderrunReported = 155,
3779    AtomBluetoothA2dpAudioOverrunReported = 156,
3780    AtomBluetoothDeviceRssiReported = 157,
3781    AtomBluetoothDeviceFailedContactCounterReported = 158,
3782    AtomBluetoothDeviceTxPowerLevelReported = 159,
3783    AtomBluetoothHciTimeoutReported = 160,
3784    AtomBluetoothQualityReportReported = 161,
3785    AtomBluetoothDeviceInfoReported = 162,
3786    AtomBluetoothRemoteVersionInfoReported = 163,
3787    AtomBluetoothSdpAttributeReported = 164,
3788    AtomBluetoothBondStateChanged = 165,
3789    AtomBluetoothClassicPairingEventReported = 166,
3790    AtomBluetoothSmpPairingEventReported = 167,
3791    AtomScreenTimeoutExtensionReported = 168,
3792    AtomProcessStartTime = 169,
3793    AtomPermissionGrantRequestResultReported = 170,
3794    AtomBluetoothSocketConnectionStateChanged = 171,
3795    AtomDeviceIdentifierAccessDenied = 172,
3796    AtomBubbleDeveloperErrorReported = 173,
3797    AtomAssistGestureStageReported = 174,
3798    AtomAssistGestureFeedbackReported = 175,
3799    AtomAssistGestureProgressReported = 176,
3800    AtomTouchGestureClassified = 177,
3801    AtomHiddenApiUsed = 178,
3802    AtomStyleUiChanged = 179,
3803    AtomPrivacyIndicatorsInteracted = 180,
3804    AtomAppInstallOnExternalStorageReported = 181,
3805    AtomNetworkStackReported = 182,
3806    AtomAppMovedStorageReported = 183,
3807    AtomBiometricEnrolled = 184,
3808    AtomSystemServerWatchdogOccurred = 185,
3809    AtomTombStoneOccurred = 186,
3810    AtomBluetoothClassOfDeviceReported = 187,
3811    AtomIntelligenceEventReported = 188,
3812    AtomThermalThrottlingSeverityStateChanged = 189,
3813    AtomRoleRequestResultReported = 190,
3814    AtomMediametricsAudiopolicyReported = 191,
3815    AtomMediametricsAudiorecordReported = 192,
3816    AtomMediametricsAudiothreadReported = 193,
3817    AtomMediametricsAudiotrackReported = 194,
3818    AtomMediametricsCodecReported = 195,
3819    AtomMediametricsDrmWidevineReported = 196,
3820    AtomMediametricsExtractorReported = 197,
3821    AtomMediametricsMediadrmReported = 198,
3822    AtomMediametricsNuplayerReported = 199,
3823    AtomMediametricsRecorderReported = 200,
3824    AtomMediametricsDrmmanagerReported = 201,
3825    AtomCarPowerStateChanged = 203,
3826    AtomGarageModeInfo = 204,
3827    AtomTestAtomReported = 205,
3828    AtomContentCaptureCallerMismatchReported = 206,
3829    AtomContentCaptureServiceEvents = 207,
3830    AtomContentCaptureSessionEvents = 208,
3831    AtomContentCaptureFlushed = 209,
3832    AtomLocationManagerApiUsageReported = 210,
3833    AtomReviewPermissionsFragmentResultReported = 211,
3834    AtomRuntimePermissionsUpgradeResult = 212,
3835    AtomGrantPermissionsActivityButtonActions = 213,
3836    AtomLocationAccessCheckNotificationAction = 214,
3837    AtomAppPermissionFragmentActionReported = 215,
3838    AtomAppPermissionFragmentViewed = 216,
3839    AtomAppPermissionsFragmentViewed = 217,
3840    AtomPermissionAppsFragmentViewed = 218,
3841    AtomTextSelectionEvent = 219,
3842    AtomTextLinkifyEvent = 220,
3843    AtomConversationActionsEvent = 221,
3844    AtomLanguageDetectionEvent = 222,
3845    AtomExclusionRectStateChanged = 223,
3846    AtomBackGestureReportedReported = 224,
3847    AtomUpdateEngineUpdateAttemptReported = 225,
3848    AtomUpdateEngineSuccessfulUpdateReported = 226,
3849    AtomCameraActionEvent = 227,
3850    AtomAppCompatibilityChangeReported = 228,
3851    AtomPerfettoUploaded = 229,
3852    AtomVmsClientConnectionStateChanged = 230,
3853    AtomMediaProviderScanOccurred = 233,
3854    AtomMediaContentDeleted = 234,
3855    AtomMediaProviderPermissionRequested = 235,
3856    AtomMediaProviderSchemaChanged = 236,
3857    AtomMediaProviderIdleMaintenanceFinished = 237,
3858    AtomRebootEscrowRecoveryReported = 238,
3859    AtomBootTimeEventDurationReported = 239,
3860    AtomBootTimeEventElapsedTimeReported = 240,
3861    AtomBootTimeEventUtcTimeReported = 241,
3862    AtomBootTimeEventErrorCodeReported = 242,
3863    AtomUserspaceRebootReported = 243,
3864    AtomNotificationReported = 244,
3865    AtomNotificationPanelReported = 245,
3866    AtomNotificationChannelModified = 246,
3867    AtomIntegrityCheckResultReported = 247,
3868    AtomIntegrityRulesPushed = 248,
3869    AtomCbMessageReported = 249,
3870    AtomCbMessageError = 250,
3871    AtomWifiHealthStatReported = 251,
3872    AtomWifiFailureStatReported = 252,
3873    AtomWifiConnectionResultReported = 253,
3874    AtomAppFreezeChanged = 254,
3875    AtomSnapshotMergeReported = 255,
3876    AtomForegroundServiceAppOpSessionEnded = 256,
3877    AtomDisplayJankReported = 257,
3878    AtomAppStandbyBucketChanged = 258,
3879    AtomSharesheetStarted = 259,
3880    AtomRankingSelected = 260,
3881    AtomTvsettingsUiInteracted = 261,
3882    AtomLauncherSnapshot = 262,
3883    AtomPackageInstallerV2Reported = 263,
3884    AtomUserLifecycleJourneyReported = 264,
3885    AtomUserLifecycleEventOccurred = 265,
3886    AtomAccessibilityShortcutReported = 266,
3887    AtomAccessibilityServiceReported = 267,
3888    AtomDocsUiDragAndDropReported = 268,
3889    AtomAppUsageEventOccurred = 269,
3890    AtomAutoRevokeNotificationClicked = 270,
3891    AtomAutoRevokeFragmentAppViewed = 271,
3892    AtomAutoRevokedAppInteraction = 272,
3893    AtomAppPermissionGroupsFragmentAutoRevokeAction = 273,
3894    AtomEvsUsageStatsReported = 274,
3895    AtomAudioPowerUsageDataReported = 275,
3896    AtomTvTunerStateChanged = 276,
3897    AtomMediaoutputOpSwitchReported = 277,
3898    AtomCbMessageFiltered = 278,
3899    AtomTvTunerDvrStatus = 279,
3900    AtomTvCasSessionOpenStatus = 280,
3901    AtomAssistantInvocationReported = 281,
3902    AtomDisplayWakeReported = 282,
3903    AtomCarUserHalModifyUserRequestReported = 283,
3904    AtomCarUserHalModifyUserResponseReported = 284,
3905    AtomCarUserHalPostSwitchResponseReported = 285,
3906    AtomCarUserHalInitialUserInfoRequestReported = 286,
3907    AtomCarUserHalInitialUserInfoResponseReported = 287,
3908    AtomCarUserHalUserAssociationRequestReported = 288,
3909    AtomCarUserHalSetUserAssociationResponseReported = 289,
3910    AtomNetworkIpProvisioningReported = 290,
3911    AtomNetworkDhcpRenewReported = 291,
3912    AtomNetworkValidationReported = 292,
3913    AtomNetworkStackQuirkReported = 293,
3914    AtomMediametricsAudiorecorddeviceusageReported = 294,
3915    AtomMediametricsAudiothreaddeviceusageReported = 295,
3916    AtomMediametricsAudiotrackdeviceusageReported = 296,
3917    AtomMediametricsAudiodeviceconnectionReported = 297,
3918    AtomBlobCommitted = 298,
3919    AtomBlobLeased = 299,
3920    AtomBlobOpened = 300,
3921    AtomContactsProviderStatusReported = 301,
3922    AtomKeystoreKeyEventReported = 302,
3923    AtomNetworkTetheringReported = 303,
3924    AtomImeTouchReported = 304,
3925    AtomUiInteractionFrameInfoReported = 305,
3926    AtomUiActionLatencyReported = 306,
3927    AtomWifiDisconnectReported = 307,
3928    AtomWifiConnectionStateChanged = 308,
3929    AtomHdmiCecActiveSourceChanged = 309,
3930    AtomHdmiCecMessageReported = 310,
3931    AtomAirplaneMode = 311,
3932    AtomModemRestart = 312,
3933    AtomCarrierIdMismatchReported = 313,
3934    AtomCarrierIdTableUpdated = 314,
3935    AtomDataStallRecoveryReported = 315,
3936    AtomMediametricsMediaparserReported = 316,
3937    AtomTlsHandshakeReported = 317,
3938    AtomTextClassifierApiUsageReported = 318,
3939    AtomCarWatchdogKillStatsReported = 319,
3940    AtomMediametricsPlaybackReported = 320,
3941    AtomMediaNetworkInfoChanged = 321,
3942    AtomMediaPlaybackStateChanged = 322,
3943    AtomMediaPlaybackErrorReported = 323,
3944    AtomMediaPlaybackTrackChanged = 324,
3945    AtomWifiScanReported = 325,
3946    AtomWifiPnoScanReported = 326,
3947    AtomTifTuneChanged = 327,
3948    AtomAutoRotateReported = 328,
3949    AtomPerfettoTrigger = 329,
3950    AtomTranscodingData = 330,
3951    AtomImsServiceEntitlementUpdated = 331,
3952    AtomDeviceRotated = 333,
3953    AtomSimSpecificSettingsRestored = 334,
3954    AtomTextClassifierDownloadReported = 335,
3955    AtomPinStorageEvent = 336,
3956    AtomFaceDownReported = 337,
3957    AtomBluetoothHalCrashReasonReported = 338,
3958    AtomRebootEscrowPreparationReported = 339,
3959    AtomRebootEscrowLskfCaptureReported = 340,
3960    AtomRebootEscrowRebootReported = 341,
3961    AtomBinderLatencyReported = 342,
3962    AtomMediametricsAaudiostreamReported = 343,
3963    AtomMediaTranscodingSessionEnded = 344,
3964    AtomMagnificationUsageReported = 345,
3965    AtomMagnificationModeWithImeOnReported = 346,
3966    AtomAppSearchCallStatsReported = 347,
3967    AtomAppSearchPutDocumentStatsReported = 348,
3968    AtomDeviceControlChanged = 349,
3969    AtomDeviceStateChanged = 350,
3970    AtomInputdeviceRegistered = 351,
3971    AtomSmartspaceCardReported = 352,
3972    AtomAuthPromptAuthenticateInvoked = 353,
3973    AtomAuthManagerCanAuthenticateInvoked = 354,
3974    AtomAuthEnrollActionInvoked = 355,
3975    AtomAuthDeprecatedApiUsed = 356,
3976    AtomUnattendedRebootOccurred = 357,
3977    AtomLongRebootBlockingReported = 358,
3978    AtomLocationTimeZoneProviderStateChanged = 359,
3979    AtomFdtrackEventOccurred = 364,
3980    AtomTimeoutAutoExtendedReported = 365,
3981    AtomAlarmBatchDelivered = 367,
3982    AtomAlarmScheduled = 368,
3983    AtomCarWatchdogIoOveruseStatsReported = 369,
3984    AtomUserLevelHibernationStateChanged = 370,
3985    AtomAppSearchInitializeStatsReported = 371,
3986    AtomAppSearchQueryStatsReported = 372,
3987    AtomAppProcessDied = 373,
3988    AtomNetworkIpReachabilityMonitorReported = 374,
3989    AtomSlowInputEventReported = 375,
3990    AtomAnrOccurredProcessingStarted = 376,
3991    AtomAppSearchRemoveStatsReported = 377,
3992    AtomMediaCodecReported = 378,
3993    AtomPermissionUsageFragmentInteraction = 379,
3994    AtomPermissionDetailsInteraction = 380,
3995    AtomPrivacySensorToggleInteraction = 381,
3996    AtomPrivacyToggleDialogInteraction = 382,
3997    AtomAppSearchOptimizeStatsReported = 383,
3998    AtomNonA11yToolServiceWarningReport = 384,
3999    AtomAppCompatStateChanged = 386,
4000    AtomSizeCompatRestartButtonEventReported = 387,
4001    AtomSplitscreenUiChanged = 388,
4002    AtomNetworkDnsHandshakeReported = 389,
4003    AtomBluetoothCodePathCounter = 390,
4004    AtomBluetoothLeBatchScanReportDelay = 392,
4005    AtomAccessibilityFloatingMenuUiChanged = 393,
4006    AtomNeuralnetworksCompilationCompleted = 394,
4007    AtomNeuralnetworksExecutionCompleted = 395,
4008    AtomNeuralnetworksCompilationFailed = 396,
4009    AtomNeuralnetworksExecutionFailed = 397,
4010    AtomContextHubBooted = 398,
4011    AtomContextHubRestarted = 399,
4012    AtomContextHubLoadedNanoappSnapshotReported = 400,
4013    AtomChreCodeDownloadTransacted = 401,
4014    AtomUwbSessionInited = 402,
4015    AtomUwbSessionClosed = 403,
4016    AtomUwbFirstRangingReceived = 404,
4017    AtomUwbRangingMeasurementReceived = 405,
4018    AtomTextClassifierDownloadWorkScheduled = 406,
4019    AtomTextClassifierDownloadWorkCompleted = 407,
4020    AtomClipboardCleared = 408,
4021    AtomVmCreationRequested = 409,
4022    AtomNearbyDeviceScanStateChanged = 410,
4023    AtomApplicationLocalesChanged = 412,
4024    AtomMediametricsAudiotrackstatusReported = 413,
4025    AtomFoldStateDurationReported = 414,
4026    AtomLocationTimeZoneProviderControllerStateChanged = 415,
4027    AtomDisplayHbmStateChanged = 416,
4028    AtomDisplayHbmBrightnessChanged = 417,
4029    AtomPersistentUriPermissionsFlushed = 418,
4030    AtomEarlyBootCompOsArtifactsCheckReported = 419,
4031    AtomVbmetaDigestReported = 420,
4032    AtomApexInfoGathered = 421,
4033    AtomPvmInfoGathered = 422,
4034    AtomWearSettingsUiInteracted = 423,
4035    AtomTracingServiceReportEvent = 424,
4036    AtomMediametricsAudiorecordstatusReported = 425,
4037    AtomLauncherLatency = 426,
4038    AtomDropboxEntryDropped = 427,
4039    AtomWifiP2pConnectionReported = 428,
4040    AtomGameStateChanged = 429,
4041    AtomHotwordDetectorCreateRequested = 430,
4042    AtomHotwordDetectionServiceInitResultReported = 431,
4043    AtomHotwordDetectionServiceRestarted = 432,
4044    AtomHotwordDetectorKeyphraseTriggered = 433,
4045    AtomHotwordDetectorEvents = 434,
4046    AtomBootCompletedBroadcastCompletionLatencyReported = 437,
4047    AtomContactsIndexerUpdateStatsReported = 440,
4048    AtomAppBackgroundRestrictionsInfo = 441,
4049    AtomMmsSmsProviderGetThreadIdFailed = 442,
4050    AtomMmsSmsDatabaseHelperOnUpgradeFailed = 443,
4051    AtomPermissionReminderNotificationInteracted = 444,
4052    AtomRecentPermissionDecisionsInteracted = 445,
4053    AtomGnssPsdsDownloadReported = 446,
4054    AtomLeAudioConnectionSessionReported = 447,
4055    AtomLeAudioBroadcastSessionReported = 448,
4056    AtomDreamUiEventReported = 449,
4057    AtomTaskManagerEventReported = 450,
4058    AtomCdmAssociationAction = 451,
4059    AtomMagnificationTripleTapAndHoldActivatedSessionReported = 452,
4060    AtomMagnificationFollowTypingFocusActivatedSessionReported = 453,
4061    AtomAccessibilityTextReadingOptionsChanged = 454,
4062    AtomWifiSetupFailureCrashReported = 455,
4063    AtomUwbDeviceErrorReported = 456,
4064    AtomIsolatedCompilationScheduled = 457,
4065    AtomIsolatedCompilationEnded = 458,
4066    AtomOnsOpportunisticEsimProvisioningComplete = 459,
4067    AtomSystemServerPreWatchdogOccurred = 460,
4068    AtomTelephonyAnomalyDetected = 461,
4069    AtomLetterboxPositionChanged = 462,
4070    AtomRemoteKeyProvisioningAttempt = 463,
4071    AtomRemoteKeyProvisioningNetworkInfo = 464,
4072    AtomRemoteKeyProvisioningTiming = 465,
4073    AtomMediaoutputOpInteractionReport = 466,
4074    AtomSyncExemptionOccurred = 468,
4075    AtomAutofillPresentationEventReported = 469,
4076    AtomDockStateChanged = 470,
4077    AtomSafetySourceStateCollected = 471,
4078    AtomSafetyCenterSystemEventReported = 472,
4079    AtomSafetyCenterInteractionReported = 473,
4080    AtomSettingsProviderSettingChanged = 474,
4081    AtomBroadcastDeliveryEventReported = 475,
4082    AtomServiceRequestEventReported = 476,
4083    AtomProviderAcquisitionEventReported = 477,
4084    AtomBluetoothDeviceNameReported = 478,
4085    AtomCbConfigUpdated = 479,
4086    AtomCbModuleErrorReported = 480,
4087    AtomCbServiceFeatureChanged = 481,
4088    AtomCbReceiverFeatureChanged = 482,
4089    AtomPrivacySignalNotificationInteraction = 484,
4090    AtomPrivacySignalIssueCardInteraction = 485,
4091    AtomPrivacySignalsJobFailure = 486,
4092    AtomVibrationReported = 487,
4093    AtomUwbRangingStart = 489,
4094    AtomAppCompactedV2 = 491,
4095    AtomDisplayBrightnessChanged = 494,
4096    AtomActivityActionBlocked = 495,
4097    AtomNetworkDnsServerSupportReported = 504,
4098    AtomVmBooted = 505,
4099    AtomVmExited = 506,
4100    AtomAmbientBrightnessStatsReported = 507,
4101    AtomMediametricsSpatializercapabilitiesReported = 508,
4102    AtomMediametricsSpatializerdeviceenabledReported = 509,
4103    AtomMediametricsHeadtrackerdeviceenabledReported = 510,
4104    AtomMediametricsHeadtrackerdevicesupportedReported = 511,
4105    AtomHearingAidInfoReported = 513,
4106    AtomDeviceWideJobConstraintChanged = 514,
4107    AtomAmbientModeChanged = 515,
4108    AtomAnrLatencyReported = 516,
4109    AtomResourceApiInfo = 517,
4110    AtomSystemDefaultNetworkChanged = 518,
4111    AtomIwlanSetupDataCallResultReported = 519,
4112    AtomIwlanPdnDisconnectedReasonReported = 520,
4113    AtomAirplaneModeSessionReported = 521,
4114    AtomVmCpuStatusReported = 522,
4115    AtomVmMemStatusReported = 523,
4116    AtomPackageInstallationSessionReported = 524,
4117    AtomDefaultNetworkRematchInfo = 525,
4118    AtomNetworkSelectionPerformance = 526,
4119    AtomNetworkNsdReported = 527,
4120    AtomBluetoothDisconnectionReasonReported = 529,
4121    AtomBluetoothLocalVersionsReported = 530,
4122    AtomBluetoothRemoteSupportedFeaturesReported = 531,
4123    AtomBluetoothLocalSupportedFeaturesReported = 532,
4124    AtomBluetoothGattAppInfo = 533,
4125    AtomBrightnessConfigurationUpdated = 534,
4126    AtomWearMediaOutputSwitcherLaunched = 538,
4127    AtomWearMediaOutputSwitcherFinished = 539,
4128    AtomWearMediaOutputSwitcherConnectionReported = 540,
4129    AtomWearMediaOutputSwitcherDeviceScanTriggered = 541,
4130    AtomWearMediaOutputSwitcherFirstDeviceScanLatency = 542,
4131    AtomWearMediaOutputSwitcherConnectDeviceLatency = 543,
4132    AtomPackageManagerSnapshotReported = 544,
4133    AtomPackageManagerAppsFilterCacheBuildReported = 545,
4134    AtomPackageManagerAppsFilterCacheUpdateReported = 546,
4135    AtomLauncherImpressionEvent = 547,
4136    AtomWearMediaOutputSwitcherAllDevicesScanLatency = 549,
4137    AtomWsWatchFaceEdited = 551,
4138    AtomWsWatchFaceFavoriteActionReported = 552,
4139    AtomWsWatchFaceSetActionReported = 553,
4140    AtomPackageUninstallationReported = 554,
4141    AtomGameModeChanged = 555,
4142    AtomGameModeConfigurationChanged = 556,
4143    AtomBedtimeModeStateChanged = 557,
4144    AtomNetworkSliceSessionEnded = 558,
4145    AtomNetworkSliceDailyDataUsageReported = 559,
4146    AtomNfcTagTypeOccurred = 560,
4147    AtomNfcAidConflictOccurred = 561,
4148    AtomNfcReaderConflictOccurred = 562,
4149    AtomWsTileListChanged = 563,
4150    AtomGetTypeAccessedWithoutPermission = 564,
4151    AtomMobileBundledAppInfoGathered = 566,
4152    AtomWsWatchFaceComplicationSetChanged = 567,
4153    AtomMediaDrmCreated = 568,
4154    AtomMediaDrmErrored = 569,
4155    AtomMediaDrmSessionOpened = 570,
4156    AtomMediaDrmSessionClosed = 571,
4157    AtomUserSelectedResolution = 572,
4158    AtomUnsafeIntentEventReported = 573,
4159    AtomPerformanceHintSessionReported = 574,
4160    AtomMediametricsMidiDeviceCloseReported = 576,
4161    AtomBiometricTouchReported = 577,
4162    AtomHotwordAudioEgressEventReported = 578,
4163    AtomLocationEnabledStateChanged = 580,
4164    AtomImeRequestFinished = 581,
4165    AtomUsbComplianceWarningsReported = 582,
4166    AtomAppSupportedLocalesChanged = 583,
4167    AtomMediaProviderVolumeRecoveryReported = 586,
4168    AtomBiometricPropertiesCollected = 587,
4169    AtomKernelWakeupAttributed = 588,
4170    AtomScreenStateChangedV2 = 589,
4171    AtomWsBackupActionReported = 590,
4172    AtomWsRestoreActionReported = 591,
4173    AtomDeviceLogAccessEventReported = 592,
4174    AtomMediaSessionUpdated = 594,
4175    AtomWearOobeStateChanged = 595,
4176    AtomWsNotificationUpdated = 596,
4177    AtomNetworkValidationFailureStatsDailyReported = 601,
4178    AtomWsComplicationTapped = 602,
4179    AtomWsNotificationBlocking = 780,
4180    AtomWsNotificationBridgemodeUpdated = 822,
4181    AtomWsNotificationDismissalActioned = 823,
4182    AtomWsNotificationActioned = 824,
4183    AtomWsNotificationLatency = 880,
4184    AtomWifiBytesTransfer = 10000,
4185    AtomWifiBytesTransferByFgBg = 10001,
4186    AtomMobileBytesTransfer = 10002,
4187    AtomMobileBytesTransferByFgBg = 10003,
4188    AtomBluetoothBytesTransfer = 10006,
4189    AtomKernelWakelock = 10004,
4190    AtomSubsystemSleepState = 10005,
4191    AtomCpuTimePerUid = 10009,
4192    AtomCpuTimePerUidFreq = 10010,
4193    AtomWifiActivityInfo = 10011,
4194    AtomModemActivityInfo = 10012,
4195    AtomBluetoothActivityInfo = 10007,
4196    AtomProcessMemoryState = 10013,
4197    AtomSystemElapsedRealtime = 10014,
4198    AtomSystemUptime = 10015,
4199    AtomCpuActiveTime = 10016,
4200    AtomCpuClusterTime = 10017,
4201    AtomDiskSpace = 10018,
4202    AtomRemainingBatteryCapacity = 10019,
4203    AtomFullBatteryCapacity = 10020,
4204    AtomTemperature = 10021,
4205    AtomBinderCalls = 10022,
4206    AtomBinderCallsExceptions = 10023,
4207    AtomLooperStats = 10024,
4208    AtomDiskStats = 10025,
4209    AtomDirectoryUsage = 10026,
4210    AtomAppSize = 10027,
4211    AtomCategorySize = 10028,
4212    AtomProcStats = 10029,
4213    AtomBatteryVoltage = 10030,
4214    AtomNumFingerprintsEnrolled = 10031,
4215    AtomDiskIo = 10032,
4216    AtomPowerProfile = 10033,
4217    AtomProcStatsPkgProc = 10034,
4218    AtomProcessCpuTime = 10035,
4219    AtomCpuTimePerThreadFreq = 10037,
4220    AtomOnDevicePowerMeasurement = 10038,
4221    AtomDeviceCalculatedPowerUse = 10039,
4222    AtomProcessMemoryHighWaterMark = 10042,
4223    AtomBatteryLevel = 10043,
4224    AtomBuildInformation = 10044,
4225    AtomBatteryCycleCount = 10045,
4226    AtomDebugElapsedClock = 10046,
4227    AtomDebugFailingElapsedClock = 10047,
4228    AtomNumFacesEnrolled = 10048,
4229    AtomRoleHolder = 10049,
4230    AtomDangerousPermissionState = 10050,
4231    AtomTrainInfo = 10051,
4232    AtomTimeZoneDataInfo = 10052,
4233    AtomExternalStorageInfo = 10053,
4234    AtomGpuStatsGlobalInfo = 10054,
4235    AtomGpuStatsAppInfo = 10055,
4236    AtomSystemIonHeapSize = 10056,
4237    AtomAppsOnExternalStorageInfo = 10057,
4238    AtomFaceSettings = 10058,
4239    AtomCoolingDevice = 10059,
4240    AtomAppOps = 10060,
4241    AtomProcessSystemIonHeapSize = 10061,
4242    AtomSurfaceflingerStatsGlobalInfo = 10062,
4243    AtomSurfaceflingerStatsLayerInfo = 10063,
4244    AtomProcessMemorySnapshot = 10064,
4245    AtomVmsClientStats = 10065,
4246    AtomNotificationRemoteViews = 10066,
4247    AtomDangerousPermissionStateSampled = 10067,
4248    AtomGraphicsStats = 10068,
4249    AtomRuntimeAppOpAccess = 10069,
4250    AtomIonHeapSize = 10070,
4251    AtomPackageNotificationPreferences = 10071,
4252    AtomPackageNotificationChannelPreferences = 10072,
4253    AtomPackageNotificationChannelGroupPreferences = 10073,
4254    AtomGnssStats = 10074,
4255    AtomAttributedAppOps = 10075,
4256    AtomVoiceCallSession = 10076,
4257    AtomVoiceCallRatUsage = 10077,
4258    AtomSimSlotState = 10078,
4259    AtomSupportedRadioAccessFamily = 10079,
4260    AtomSettingSnapshot = 10080,
4261    AtomBlobInfo = 10081,
4262    AtomDataUsageBytesTransfer = 10082,
4263    AtomBytesTransferByTagAndMetered = 10083,
4264    AtomDndModeRule = 10084,
4265    AtomGeneralExternalStorageAccessStats = 10085,
4266    AtomIncomingSms = 10086,
4267    AtomOutgoingSms = 10087,
4268    AtomCarrierIdTableVersion = 10088,
4269    AtomDataCallSession = 10089,
4270    AtomCellularServiceState = 10090,
4271    AtomCellularDataServiceSwitch = 10091,
4272    AtomSystemMemory = 10092,
4273    AtomImsRegistrationTermination = 10093,
4274    AtomImsRegistrationStats = 10094,
4275    AtomCpuTimePerClusterFreq = 10095,
4276    AtomCpuCyclesPerUidCluster = 10096,
4277    AtomDeviceRotatedData = 10097,
4278    AtomCpuCyclesPerThreadGroupCluster = 10098,
4279    AtomMediaDrmActivityInfo = 10099,
4280    AtomOemManagedBytesTransfer = 10100,
4281    AtomGnssPowerStats = 10101,
4282    AtomTimeZoneDetectorState = 10102,
4283    AtomKeystore2StorageStats = 10103,
4284    AtomRkpPoolStats = 10104,
4285    AtomProcessDmabufMemory = 10105,
4286    AtomPendingAlarmInfo = 10106,
4287    AtomUserLevelHibernatedApps = 10107,
4288    AtomLauncherLayoutSnapshot = 10108,
4289    AtomGlobalHibernatedApps = 10109,
4290    AtomInputEventLatencySketch = 10110,
4291    AtomBatteryUsageStatsBeforeReset = 10111,
4292    AtomBatteryUsageStatsSinceReset = 10112,
4293    AtomBatteryUsageStatsSinceResetUsingPowerProfileModel = 10113,
4294    AtomInstalledIncrementalPackage = 10114,
4295    AtomTelephonyNetworkRequests = 10115,
4296    AtomAppSearchStorageInfo = 10116,
4297    AtomVmstat = 10117,
4298    AtomKeystore2KeyCreationWithGeneralInfo = 10118,
4299    AtomKeystore2KeyCreationWithAuthInfo = 10119,
4300    AtomKeystore2KeyCreationWithPurposeAndModesInfo = 10120,
4301    AtomKeystore2AtomWithOverflow = 10121,
4302    AtomKeystore2KeyOperationWithPurposeAndModesInfo = 10122,
4303    AtomKeystore2KeyOperationWithGeneralInfo = 10123,
4304    AtomRkpErrorStats = 10124,
4305    AtomKeystore2CrashStats = 10125,
4306    AtomVendorApexInfo = 10126,
4307    AtomAccessibilityShortcutStats = 10127,
4308    AtomAccessibilityFloatingMenuStats = 10128,
4309    AtomDataUsageBytesTransferV2 = 10129,
4310    AtomMediaCapabilities = 10130,
4311    AtomCarWatchdogSystemIoUsageSummary = 10131,
4312    AtomCarWatchdogUidIoUsageSummary = 10132,
4313    AtomImsRegistrationFeatureTagStats = 10133,
4314    AtomRcsClientProvisioningStats = 10134,
4315    AtomRcsAcsProvisioningStats = 10135,
4316    AtomSipDelegateStats = 10136,
4317    AtomSipTransportFeatureTagStats = 10137,
4318    AtomSipMessageResponse = 10138,
4319    AtomSipTransportSession = 10139,
4320    AtomImsDedicatedBearerListenerEvent = 10140,
4321    AtomImsDedicatedBearerEvent = 10141,
4322    AtomImsRegistrationServiceDescStats = 10142,
4323    AtomUceEventStats = 10143,
4324    AtomPresenceNotifyEvent = 10144,
4325    AtomGbaEvent = 10145,
4326    AtomPerSimStatus = 10146,
4327    AtomGpuWorkPerUid = 10147,
4328    AtomPersistentUriPermissionsAmountPerPackage = 10148,
4329    AtomSignedPartitionInfo = 10149,
4330    AtomPinnedFileSizesPerPackage = 10150,
4331    AtomPendingIntentsPerPackage = 10151,
4332    AtomUserInfo = 10152,
4333    AtomTelephonyNetworkRequestsV2 = 10153,
4334    AtomDeviceTelephonyProperties = 10154,
4335    AtomRemoteKeyProvisioningErrorCounts = 10155,
4336    AtomSafetyState = 10156,
4337    AtomIncomingMms = 10157,
4338    AtomOutgoingMms = 10158,
4339    AtomMultiUserInfo = 10160,
4340    AtomNetworkBpfMapInfo = 10161,
4341    AtomOutgoingShortCodeSms = 10162,
4342    AtomConnectivityStateSample = 10163,
4343    AtomNetworkSelectionRematchReasonsInfo = 10164,
4344    AtomGameModeInfo = 10165,
4345    AtomGameModeConfiguration = 10166,
4346    AtomGameModeListener = 10167,
4347    AtomNetworkSliceRequestCount = 10168,
4348    AtomWsTileSnapshot = 10169,
4349    AtomWsActiveWatchFaceComplicationSetSnapshot = 10170,
4350    AtomProcessState = 10171,
4351    AtomProcessAssociation = 10172,
4352    AtomAdpfSystemComponentInfo = 10173,
4353    AtomNotificationMemoryUse = 10174,
4354    AtomHdrCapabilities = 10175,
4355    AtomWsFavouriteWatchFaceListSnapshot = 10176,
4356    AtomWifiAwareNdpReported = 638,
4357    AtomWifiAwareAttachReported = 639,
4358    AtomWifiSelfRecoveryTriggered = 661,
4359    AtomSoftApStarted = 680,
4360    AtomSoftApStopped = 681,
4361    AtomWifiLockReleased = 687,
4362    AtomWifiLockDeactivated = 688,
4363    AtomWifiConfigSaved = 689,
4364    AtomWifiAwareResourceUsingChanged = 690,
4365    AtomWifiAwareHalApiCalled = 691,
4366    AtomWifiLocalOnlyRequestReceived = 692,
4367    AtomWifiLocalOnlyRequestScanTriggered = 693,
4368    AtomWifiThreadTaskExecuted = 694,
4369    AtomWifiStateChanged = 700,
4370    AtomPnoScanStarted = 719,
4371    AtomPnoScanStopped = 720,
4372    AtomWifiIsUnusableReported = 722,
4373    AtomWifiApCapabilitiesReported = 723,
4374    AtomSoftApStateChanged = 805,
4375    AtomScorerPredictionResultReported = 884,
4376    AtomWifiAwareCapabilities = 10190,
4377    AtomWifiModuleInfo = 10193,
4378    AtomWifiSettingInfo = 10194,
4379    AtomWifiComplexSettingInfo = 10195,
4380    AtomWifiConfiguredNetworkInfo = 10198,
4381    AtomWearPowerMenuOpened = 731,
4382    AtomWearAssistantOpened = 755,
4383    AtomFirstOverlayStateChanged = 917,
4384    AtomWsWearTimeSession = 610,
4385    AtomWsIncomingCallActionReported = 626,
4386    AtomWsCallDisconnectionReported = 627,
4387    AtomWsCallDurationReported = 628,
4388    AtomWsCallUserExperienceLatencyReported = 629,
4389    AtomWsCallInteractionReported = 630,
4390    AtomWsOnBodyStateChanged = 787,
4391    AtomWsWatchFaceRestrictedComplicationsImpacted = 802,
4392    AtomWsWatchFaceDefaultRestrictedComplicationsRemoved = 803,
4393    AtomWsComplicationsImpactedNotificationEventReported = 804,
4394    AtomWsRemoteEventUsageReported = 920,
4395    AtomWsNotificationManagedDismissalSync = 941,
4396    AtomWsBugreportEventReported = 964,
4397    AtomWsStandaloneModeSnapshot = 10197,
4398    AtomWsFavoriteWatchFaceSnapshot = 10206,
4399    AtomWsPhotosWatchFaceFeatureSnapshot = 10225,
4400    AtomWsWatchFaceCustomizationSnapshot = 10227,
4401    AtomWearAdaptiveSuspendStatsReported = 619,
4402    AtomWearPowerAnomalyServiceOperationalStatsReported = 620,
4403    AtomWearPowerAnomalyServiceEventStatsReported = 621,
4404    AtomWearTimeSyncRequested = 911,
4405    AtomWearTimeUpdateStarted = 912,
4406    AtomWearTimeSyncAttemptCompleted = 913,
4407    AtomWearTimeChanged = 914,
4408    AtomWearSetupWizardDeviceStatusReported = 953,
4409    AtomWearSetupWizardPairingCompleted = 954,
4410    AtomWearSetupWizardConnectionEstablished = 955,
4411    AtomWearSetupWizardCheckinCompleted = 956,
4412    AtomWearSetupWizardCompanionTimeReported = 957,
4413    AtomWearSetupWizardStatusReported = 958,
4414    AtomWearSetupWizardHeartbeatReported = 959,
4415    AtomWearSetupWizardFrpTriggered = 960,
4416    AtomWearSetupWizardSystemUpdateTriggered = 961,
4417    AtomWearSetupWizardPhoneSwitchTriggered = 962,
4418    AtomRendererInitialized = 736,
4419    AtomSchemaVersionReceived = 737,
4420    AtomLayoutInspected = 741,
4421    AtomLayoutExpressionInspected = 742,
4422    AtomLayoutAnimationsInspected = 743,
4423    AtomMaterialComponentsInspected = 744,
4424    AtomTileRequested = 745,
4425    AtomStateResponseReceived = 746,
4426    AtomTileResponseReceived = 747,
4427    AtomInflationFinished = 748,
4428    AtomInflationFailed = 749,
4429    AtomIgnoredInflationFailuresReported = 750,
4430    AtomDrawableRendered = 751,
4431    AtomWearModeStateChanged = 715,
4432    AtomMediaActionReported = 608,
4433    AtomMediaControlsLaunched = 609,
4434    AtomMediaSessionStateChanged = 677,
4435    AtomMediaControlApiUsageReported = 966,
4436    AtomMediaSubscriptionChanged = 990,
4437    AtomWearMediaOutputSwitcherDeviceScanApiLatency = 757,
4438    AtomWearMediaOutputSwitcherSassDeviceUnavailable = 758,
4439    AtomWearMediaOutputSwitcherFastpairApiTimeout = 759,
4440    AtomMediatorUpdated = 721,
4441    AtomSysproxyBluetoothBytesTransfer = 10196,
4442    AtomSysproxyConnectionUpdated = 786,
4443    AtomWearCompanionConnectionState = 921,
4444    AtomSysproxyServiceStateUpdated = 949,
4445    AtomUwbActivityInfo = 10188,
4446    AtomTestUprobestatsAtomReported = 915,
4447    AtomTvLowPowerStandbyPolicy = 679,
4448    AtomExternalTvInputEvent = 717,
4449    AtomBootIntegrityInfoReported = 775,
4450    AtomThreadnetworkTelemetryDataReported = 738,
4451    AtomThreadnetworkTopoEntryRepeated = 739,
4452    AtomThreadnetworkDeviceInfoReported = 740,
4453    AtomCellularRadioPowerStateChanged = 713,
4454    AtomEmergencyNumbersInfo = 10180,
4455    AtomDataNetworkValidation = 10207,
4456    AtomDataRatStateChanged = 854,
4457    AtomConnectedChannelChanged = 882,
4458    AtomCellularIdentifierDisclosed = 800,
4459    AtomSatelliteController = 10182,
4460    AtomSatelliteSession = 10183,
4461    AtomSatelliteIncomingDatagram = 10184,
4462    AtomSatelliteOutgoingDatagram = 10185,
4463    AtomSatelliteProvision = 10186,
4464    AtomSatelliteSosMessageRecommender = 10187,
4465    AtomCarrierRoamingSatelliteSession = 10211,
4466    AtomCarrierRoamingSatelliteControllerStats = 10212,
4467    AtomControllerStatsPerPackage = 10213,
4468    AtomSatelliteEntitlement = 10214,
4469    AtomSatelliteConfigUpdater = 10215,
4470    AtomSatelliteAccessController = 10219,
4471    AtomQualifiedRatListChanged = 634,
4472    AtomQnsImsCallDropStats = 635,
4473    AtomQnsFallbackRestrictionChanged = 636,
4474    AtomQnsRatPreferenceMismatchInfo = 10177,
4475    AtomQnsHandoverTimeMillis = 10178,
4476    AtomQnsHandoverPingpong = 10179,
4477    AtomIwlanUnderlyingNetworkValidationResultReported = 923,
4478    AtomEmergencyNumberDialed = 637,
4479    AtomCallStats = 10221,
4480    AtomCallAudioRouteStats = 10222,
4481    AtomTelecomApiStats = 10223,
4482    AtomTelecomErrorStats = 10224,
4483    AtomLockscreenShortcutSelected = 611,
4484    AtomLockscreenShortcutTriggered = 612,
4485    AtomLauncherImpressionEventV2 = 716,
4486    AtomDisplaySwitchLatencyTracked = 753,
4487    AtomNotificationListenerService = 829,
4488    AtomNavHandleTouchPoints = 869,
4489    AtomCommunalHubWidgetEventReported = 908,
4490    AtomPeripheralTutorialLaunched = 942,
4491    AtomContextualEducationTriggered = 971,
4492    AtomCommunalHubSnapshot = 10226,
4493    AtomTestExtensionAtomReported = 660,
4494    AtomTestRestrictedAtomReported = 672,
4495    AtomStatsSocketLossReported = 752,
4496    AtomSettingsSpaReported = 622,
4497    AtomSelinuxAuditLog = 799,
4498    AtomSandboxApiCalled = 488,
4499    AtomSandboxActivityEventOccurred = 735,
4500    AtomSdkSandboxRestrictedAccessInSession = 796,
4501    AtomSandboxSdkStorage = 10159,
4502    AtomRkpdPoolStats = 664,
4503    AtomRkpdClientOperation = 665,
4504    AtomRangingSessionConfigured = 993,
4505    AtomRangingSessionStarted = 994,
4506    AtomRangingSessionClosed = 995,
4507    AtomRangingTechnologyStarted = 996,
4508    AtomRangingTechnologyStopped = 997,
4509    AtomMediaProviderDatabaseRollbackReported = 784,
4510    AtomBackupSetupStatusReported = 785,
4511    AtomScreenOffReported = 776,
4512    AtomScreenTimeoutOverrideReported = 836,
4513    AtomScreenInteractiveSessionReported = 837,
4514    AtomScreenDimReported = 867,
4515    AtomAtom9999 = 9999,
4516    AtomAtom99999 = 99999,
4517    AtomPhotopickerSessionInfoReported = 886,
4518    AtomPhotopickerApiInfoReported = 887,
4519    AtomPhotopickerUiEventLogged = 888,
4520    AtomPhotopickerMediaItemStatusReported = 889,
4521    AtomPhotopickerPreviewInfoLogged = 890,
4522    AtomPhotopickerMenuInteractionLogged = 891,
4523    AtomPhotopickerBannerInteractionLogged = 892,
4524    AtomPhotopickerMediaLibraryInfoLogged = 893,
4525    AtomPhotopickerPageInfoLogged = 894,
4526    AtomPhotopickerMediaGridSyncInfoReported = 895,
4527    AtomPhotopickerAlbumSyncInfoReported = 896,
4528    AtomPhotopickerSearchInfoReported = 897,
4529    AtomSearchDataExtractionDetailsReported = 898,
4530    AtomEmbeddedPhotopickerInfoReported = 899,
4531    AtomPermissionRationaleDialogViewed = 645,
4532    AtomPermissionRationaleDialogActionReported = 646,
4533    AtomAppDataSharingUpdatesNotificationInteraction = 647,
4534    AtomAppDataSharingUpdatesFragmentViewed = 648,
4535    AtomAppDataSharingUpdatesFragmentActionReported = 649,
4536    AtomEnhancedConfirmationDialogResultReported = 827,
4537    AtomEnhancedConfirmationRestrictionCleared = 828,
4538    AtomPressureStallInformation = 10229,
4539    AtomPdfLoadReported = 859,
4540    AtomPdfApiUsageReported = 860,
4541    AtomPdfSearchReported = 861,
4542    AtomComponentStateChangedReported = 863,
4543    AtomOndevicepersonalizationApiCalled = 711,
4544    AtomOndevicepersonalizationTraceEvent = 952,
4545    AtomNfcObserveModeStateChanged = 855,
4546    AtomNfcFieldChanged = 856,
4547    AtomNfcPollingLoopNotificationReported = 857,
4548    AtomNfcProprietaryCapabilitiesReported = 858,
4549    AtomNfcExitFrameTableChanged = 1036,
4550    AtomNfcAutoTransactReported = 1038,
4551    AtomMicroxrDeviceBootCompleteReported = 901,
4552    AtomMteState = 10181,
4553    AtomZramMaintenanceExecuted = 1015,
4554    AtomZramSetupExecuted = 1029,
4555    AtomZramMmStatMmd = 10232,
4556    AtomZramBdStatMmd = 10233,
4557    AtomMediaEditingEndedReported = 798,
4558    AtomMediaCodecReclaimRequestCompleted = 600,
4559    AtomMediaCodecStarted = 641,
4560    AtomMediaCodecStopped = 642,
4561    AtomMediaCodecRendered = 684,
4562    AtomEmergencyStateChanged = 633,
4563    AtomChreSignificantMotionStateChanged = 868,
4564    AtomPopulationDensityProviderLoadingReported = 1002,
4565    AtomDensityBasedCoarseLocationsUsageReported = 1003,
4566    AtomDensityBasedCoarseLocationsProviderQueryReported = 1004,
4567    AtomKernelOomKillOccurred = 754,
4568    AtomKeyboardConfigured = 682,
4569    AtomKeyboardSystemsEventReported = 683,
4570    AtomInputdeviceUsageReported = 686,
4571    AtomInputEventLatencyReported = 932,
4572    AtomTouchpadUsage = 10191,
4573    AtomIkeSessionTerminated = 678,
4574    AtomIkeLivenessCheckSessionValidated = 760,
4575    AtomNegotiatedSecurityAssociation = 821,
4576    AtomHotwordEgressSizeAtomReported = 761,
4577    AtomHealthConnectUiImpression = 623,
4578    AtomHealthConnectUiInteraction = 624,
4579    AtomHealthConnectAppOpenedReported = 625,
4580    AtomHealthConnectApiCalled = 616,
4581    AtomHealthConnectUsageStats = 617,
4582    AtomHealthConnectStorageStats = 618,
4583    AtomHealthConnectApiInvoked = 643,
4584    AtomExerciseRouteApiCalled = 654,
4585    AtomHealthConnectExportInvoked = 907,
4586    AtomHealthConnectImportInvoked = 918,
4587    AtomHealthConnectExportImportStatsReported = 919,
4588    AtomHealthConnectPermissionStats = 963,
4589    AtomHealthConnectPhrApiInvoked = 980,
4590    AtomHealthConnectPhrUsageStats = 981,
4591    AtomHealthConnectPhrStorageStats = 984,
4592    AtomHealthConnectRestrictedEcosystemStats = 985,
4593    AtomHealthConnectEcosystemStats = 986,
4594    AtomHdmiEarcStatusReported = 701,
4595    AtomHdmiSoundbarModeStatusReported = 724,
4596    AtomHdmiPowerStateChangeOnActiveSourceLostToggled = 991,
4597    AtomBatteryHealth = 10220,
4598    AtomBiometricUnenrolled = 944,
4599    AtomBiometricEnumerated = 945,
4600    AtomApplicationGrammaticalInflectionChanged = 584,
4601    AtomSystemGrammaticalInflectionChanged = 816,
4602    AtomFullScreenIntentLaunched = 631,
4603    AtomBalAllowed = 632,
4604    AtomInTaskActivityStarted = 685,
4605    AtomDeviceOrientationChanged = 906,
4606    AtomCachedAppsHighWatermark = 10189,
4607    AtomStylusPredictionMetricsReported = 718,
4608    AtomUserRiskEventReported = 725,
4609    AtomMediaProjectionStateChanged = 729,
4610    AtomMediaProjectionTargetChanged = 730,
4611    AtomExcessiveBinderProxyCountReported = 853,
4612    AtomProxyBytesTransferByFgBg = 10200,
4613    AtomMobileBytesTransferByProcState = 10204,
4614    AtomBiometricFrrNotification = 817,
4615    AtomSensitiveContentMediaProjectionSession = 830,
4616    AtomSensitiveNotificationAppProtectionSession = 831,
4617    AtomSensitiveNotificationAppProtectionApplied = 832,
4618    AtomSensitiveNotificationRedaction = 833,
4619    AtomSensitiveContentAppProtection = 835,
4620    AtomAppRestrictionStateChanged = 866,
4621    AtomBatteryUsageStatsPerUid = 10209,
4622    AtomPostgcMemorySnapshot = 924,
4623    AtomPowerSaveTempAllowlistChanged = 926,
4624    AtomAppOpAccessTracked = 931,
4625    AtomContentOrFileUriEventReported = 933,
4626    AtomDeviceIdleTempAllowlistUpdated = 940,
4627    AtomAppOpNoteOpOrCheckOpBinderApiCalled = 943,
4628    AtomFrameworkWakelockInfo = 10230,
4629    AtomJankFrameCountByWidgetReported = 950,
4630    AtomIntentCreatorTokenAdded = 978,
4631    AtomNotificationChannelClassification = 983,
4632    AtomCameraStatusForCompatibilityChanged = 999,
4633    AtomFederatedComputeApiCalled = 712,
4634    AtomFederatedComputeTrainingEventReported = 771,
4635    AtomExampleIteratorNextLatencyReported = 838,
4636    AtomFederatedComputeTraceEventReported = 992,
4637    AtomExpressEventReported = 528,
4638    AtomExpressHistogramSampleReported = 593,
4639    AtomExpressUidEventReported = 644,
4640    AtomExpressUidHistogramSampleReported = 658,
4641    AtomDreamSettingChanged = 705,
4642    AtomDreamSettingSnapshot = 10192,
4643    AtomDndStateChanged = 657,
4644    AtomExternalDisplayStateChanged = 806,
4645    AtomDisplayModeDirectorVoteChanged = 792,
4646    AtomDevicePolicyManagementMode = 10216,
4647    AtomDevicePolicyState = 10217,
4648    AtomDeviceLockCheckInRequestReported = 726,
4649    AtomDeviceLockProvisioningCompleteReported = 727,
4650    AtomDeviceLockKioskAppRequestReported = 728,
4651    AtomDeviceLockCheckInRetryReported = 789,
4652    AtomDeviceLockProvisionFailureReported = 790,
4653    AtomDeviceLockLockUnlockDeviceFailureReported = 791,
4654    AtomDesktopModeUiChanged = 818,
4655    AtomDesktopModeSessionTaskUpdate = 819,
4656    AtomDesktopModeTaskSizeUpdated = 935,
4657    AtomCronetEngineCreated = 703,
4658    AtomCronetTrafficReported = 704,
4659    AtomCronetEngineBuilderInitialized = 762,
4660    AtomCronetHttpFlagsInitialized = 763,
4661    AtomCronetInitialized = 764,
4662    AtomCredentialManagerApiCalled = 585,
4663    AtomCredentialManagerInitPhaseReported = 651,
4664    AtomCredentialManagerCandidatePhaseReported = 652,
4665    AtomCredentialManagerFinalPhaseReported = 653,
4666    AtomCredentialManagerTotalReported = 667,
4667    AtomCredentialManagerFinalnouidReported = 668,
4668    AtomCredentialManagerGetReported = 669,
4669    AtomCredentialManagerAuthClickReported = 670,
4670    AtomCredentialManagerApiv2Called = 671,
4671    AtomCpuPolicy = 10199,
4672    AtomVpnConnectionStateChanged = 850,
4673    AtomVpnConnectionReported = 851,
4674    AtomIpClientRaInfoReported = 778,
4675    AtomApfSessionInfoReported = 777,
4676    AtomCoreNetworkingTerribleErrorOccurred = 979,
4677    AtomNetworkStatsRecorderFileOperated = 783,
4678    AtomDailyKeepaliveInfoReported = 650,
4679    AtomNetworkRequestStateChanged = 779,
4680    AtomTetheringActiveSessionsReported = 925,
4681    AtomCertificateTransparencyLogListUpdateStateChanged = 972,
4682    AtomHardwareRendererEvent = 946,
4683    AtomTextureViewEvent = 947,
4684    AtomSurfaceControlEvent = 948,
4685    AtomImageDecoded = 977,
4686    AtomCertificateTransparencyLogListStateChanged = 934,
4687    AtomConscryptServiceUsed = 965,
4688    AtomCertificateTransparencyVerificationReported = 989,
4689    AtomCameraFeatureCombinationQueryEvent = 900,
4690    AtomBroadcastSent = 922,
4691    AtomBluetoothHashedDeviceNameReported = 613,
4692    AtomBluetoothL2capCocClientConnection = 614,
4693    AtomBluetoothL2capCocServerConnection = 615,
4694    AtomBluetoothLeSessionConnected = 656,
4695    AtomRestrictedBluetoothDeviceNameReported = 666,
4696    AtomBluetoothProfileConnectionAttempted = 696,
4697    AtomBluetoothContentProfileErrorReported = 781,
4698    AtomBluetoothRfcommConnectionAttempted = 782,
4699    AtomRemoteDeviceInformationWithMetricId = 862,
4700    AtomLeAppScanStateChanged = 870,
4701    AtomLeRadioScanStopped = 871,
4702    AtomLeScanResultReceived = 872,
4703    AtomLeScanAbused = 873,
4704    AtomLeAdvStateChanged = 874,
4705    AtomLeAdvErrorReported = 875,
4706    AtomA2dpSessionReported = 904,
4707    AtomBluetoothCrossLayerEventReported = 916,
4708    AtomBroadcastAudioSessionReported = 927,
4709    AtomBroadcastAudioSyncReported = 928,
4710    AtomBluetoothRfcommConnectionReportedAtClose = 982,
4711    AtomBluetoothLeConnection = 988,
4712    AtomHearingDeviceActiveEventReported = 1021,
4713    AtomBackportedFixStatusReported = 987,
4714    AtomPluginInitialized = 655,
4715    AtomCarSystemUiDataSubscriptionEventReported = 974,
4716    AtomCarSettingsDataSubscriptionEventReported = 975,
4717    AtomCarQcLibEventReported = 976,
4718    AtomCarWakeupFromSuspendReported = 852,
4719    AtomCarRecentsEventReported = 770,
4720    AtomCarCalmModeEventReported = 797,
4721    AtomAutofillUiEventReported = 603,
4722    AtomAutofillFillRequestReported = 604,
4723    AtomAutofillFillResponseReported = 605,
4724    AtomAutofillSaveEventReported = 606,
4725    AtomAutofillSessionCommitted = 607,
4726    AtomAutofillFieldClassificationEventReported = 659,
4727    AtomOdrefreshReported = 366,
4728    AtomOdsignReported = 548,
4729    AtomBackgroundDexoptJobEnded = 467,
4730    AtomPrerebootDexoptJobEnded = 883,
4731    AtomArtDatumReported = 332,
4732    AtomArtDeviceDatumReported = 550,
4733    AtomArtDatumDeltaReported = 565,
4734    AtomArtDex2oatReported = 929,
4735    AtomArtDeviceStatus = 10205,
4736    AtomAppSearchSetSchemaStatsReported = 385,
4737    AtomAppSearchSchemaMigrationStatsReported = 579,
4738    AtomAppSearchUsageSearchIntentStatsReported = 825,
4739    AtomAppSearchUsageSearchIntentRawQueryStatsReported = 826,
4740    AtomAppSearchAppsIndexerStatsReported = 909,
4741    AtomAppFunctionsRequestReported = 998,
4742    AtomApexInstallationRequested = 732,
4743    AtomApexInstallationStaged = 733,
4744    AtomApexInstallationEnded = 734,
4745    AtomAiWallpapersButtonPressed = 706,
4746    AtomAiWallpapersTemplateSelected = 707,
4747    AtomAiWallpapersTermSelected = 708,
4748    AtomAiWallpapersWallpaperSet = 709,
4749    AtomAiWallpapersSessionSummary = 710,
4750    AtomJsscriptengineLatencyReported = 483,
4751    AtomAdServicesApiCalled = 435,
4752    AtomAdServicesMesurementReportsUploaded = 436,
4753    AtomMobileDataDownloadFileGroupStatusReported = 490,
4754    AtomMobileDataDownloadDownloadResultReported = 502,
4755    AtomAdServicesSettingsUsageReported = 493,
4756    AtomBackgroundFetchProcessReported = 496,
4757    AtomUpdateCustomAudienceProcessReported = 497,
4758    AtomRunAdBiddingProcessReported = 498,
4759    AtomRunAdScoringProcessReported = 499,
4760    AtomRunAdSelectionProcessReported = 500,
4761    AtomRunAdBiddingPerCaProcessReported = 501,
4762    AtomMobileDataDownloadFileGroupStorageStatsReported = 503,
4763    AtomAdServicesMeasurementRegistrations = 512,
4764    AtomAdServicesGetTopicsReported = 535,
4765    AtomAdServicesEpochComputationGetTopTopicsReported = 536,
4766    AtomAdServicesEpochComputationClassifierReported = 537,
4767    AtomAdServicesBackCompatGetTopicsReported = 598,
4768    AtomAdServicesBackCompatEpochComputationClassifierReported = 599,
4769    AtomAdServicesMeasurementDebugKeys = 640,
4770    AtomAdServicesErrorReported = 662,
4771    AtomAdServicesBackgroundJobsExecutionReported = 663,
4772    AtomAdServicesMeasurementDelayedSourceRegistration = 673,
4773    AtomAdServicesMeasurementAttribution = 674,
4774    AtomAdServicesMeasurementJobs = 675,
4775    AtomAdServicesMeasurementWipeout = 676,
4776    AtomAdServicesMeasurementAdIdMatchForDebugKeys = 695,
4777    AtomAdServicesEnrollmentDataStored = 697,
4778    AtomAdServicesEnrollmentFileDownloaded = 698,
4779    AtomAdServicesEnrollmentMatched = 699,
4780    AtomAdServicesConsentMigrated = 702,
4781    AtomAdServicesEnrollmentFailed = 714,
4782    AtomAdServicesMeasurementClickVerification = 756,
4783    AtomAdServicesEncryptionKeyFetched = 765,
4784    AtomAdServicesEncryptionKeyDbTransactionEnded = 766,
4785    AtomDestinationRegisteredBeacons = 767,
4786    AtomReportInteractionApiCalled = 768,
4787    AtomInteractionReportingTableCleared = 769,
4788    AtomAppManifestConfigHelperCalled = 788,
4789    AtomAdFilteringProcessJoinCaReported = 793,
4790    AtomAdFilteringProcessAdSelectionReported = 794,
4791    AtomAdCounterHistogramUpdaterReported = 795,
4792    AtomSignatureVerification = 807,
4793    AtomKAnonImmediateSignJoinStatusReported = 808,
4794    AtomKAnonBackgroundJobStatusReported = 809,
4795    AtomKAnonInitializeStatusReported = 810,
4796    AtomKAnonSignStatusReported = 811,
4797    AtomKAnonJoinStatusReported = 812,
4798    AtomKAnonKeyAttestationStatusReported = 813,
4799    AtomGetAdSelectionDataApiCalled = 814,
4800    AtomGetAdSelectionDataBuyerInputGenerated = 815,
4801    AtomBackgroundJobSchedulingReported = 834,
4802    AtomTopicsEncryptionEpochComputationReported = 840,
4803    AtomTopicsEncryptionGetTopicsReported = 841,
4804    AtomAdservicesShellCommandCalled = 842,
4805    AtomUpdateSignalsApiCalled = 843,
4806    AtomEncodingJobRun = 844,
4807    AtomEncodingJsFetch = 845,
4808    AtomEncodingJsExecution = 846,
4809    AtomPersistAdSelectionResultCalled = 847,
4810    AtomServerAuctionKeyFetchCalled = 848,
4811    AtomServerAuctionBackgroundKeyFetchEnabled = 849,
4812    AtomAdServicesMeasurementProcessOdpRegistration = 864,
4813    AtomAdServicesMeasurementNotifyRegistrationToOdp = 865,
4814    AtomSelectAdsFromOutcomesApiCalled = 876,
4815    AtomReportImpressionApiCalled = 877,
4816    AtomAdServicesEnrollmentTransactionStats = 885,
4817    AtomAdServicesCobaltLoggerEventReported = 902,
4818    AtomAdServicesCobaltPeriodicJobEventReported = 903,
4819    AtomUpdateSignalsProcessReported = 905,
4820    AtomTopicsScheduleEpochJobSettingReported = 930,
4821    AtomScheduledCustomAudienceUpdateScheduleAttempted = 967,
4822    AtomScheduledCustomAudienceUpdatePerformed = 968,
4823    AtomScheduledCustomAudienceUpdatePerformedAttemptedFailureReported = 969,
4824    AtomScheduledCustomAudienceUpdateBackgroundJobRan = 970,
4825    AtomThermalStatusCalled = 772,
4826    AtomThermalHeadroomCalled = 773,
4827    AtomThermalHeadroomThresholdsCalled = 774,
4828    AtomAdpfHintSessionTidCleanup = 839,
4829    AtomThermalHeadroomThresholds = 10201,
4830    AtomAdpfSessionSnapshot = 10218,
4831    AtomAdaptiveAuthUnlockAfterLockReported = 820,
4832    AtomAccountManagerEvent = 951,
4833    AtomAccessibilityCheckResultReported = 910,
4834}
4835impl AtomId {
4836    /// String value of the enum field names used in the ProtoBuf definition.
4837    ///
4838    /// The values are not transformed in any way and thus are considered stable
4839    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
4840    pub fn as_str_name(&self) -> &'static str {
4841        match self {
4842            Self::AtomUnspecified => "ATOM_UNSPECIFIED",
4843            Self::AtomBleScanStateChanged => "ATOM_BLE_SCAN_STATE_CHANGED",
4844            Self::AtomProcessStateChanged => "ATOM_PROCESS_STATE_CHANGED",
4845            Self::AtomBleScanResultReceived => "ATOM_BLE_SCAN_RESULT_RECEIVED",
4846            Self::AtomSensorStateChanged => "ATOM_SENSOR_STATE_CHANGED",
4847            Self::AtomGpsScanStateChanged => "ATOM_GPS_SCAN_STATE_CHANGED",
4848            Self::AtomSyncStateChanged => "ATOM_SYNC_STATE_CHANGED",
4849            Self::AtomScheduledJobStateChanged => "ATOM_SCHEDULED_JOB_STATE_CHANGED",
4850            Self::AtomScreenBrightnessChanged => "ATOM_SCREEN_BRIGHTNESS_CHANGED",
4851            Self::AtomWakelockStateChanged => "ATOM_WAKELOCK_STATE_CHANGED",
4852            Self::AtomLongPartialWakelockStateChanged => {
4853                "ATOM_LONG_PARTIAL_WAKELOCK_STATE_CHANGED"
4854            }
4855            Self::AtomMobileRadioPowerStateChanged => {
4856                "ATOM_MOBILE_RADIO_POWER_STATE_CHANGED"
4857            }
4858            Self::AtomWifiRadioPowerStateChanged => "ATOM_WIFI_RADIO_POWER_STATE_CHANGED",
4859            Self::AtomActivityManagerSleepStateChanged => {
4860                "ATOM_ACTIVITY_MANAGER_SLEEP_STATE_CHANGED"
4861            }
4862            Self::AtomMemoryFactorStateChanged => "ATOM_MEMORY_FACTOR_STATE_CHANGED",
4863            Self::AtomExcessiveCpuUsageReported => "ATOM_EXCESSIVE_CPU_USAGE_REPORTED",
4864            Self::AtomCachedKillReported => "ATOM_CACHED_KILL_REPORTED",
4865            Self::AtomProcessMemoryStatReported => "ATOM_PROCESS_MEMORY_STAT_REPORTED",
4866            Self::AtomLauncherEvent => "ATOM_LAUNCHER_EVENT",
4867            Self::AtomBatterySaverModeStateChanged => {
4868                "ATOM_BATTERY_SAVER_MODE_STATE_CHANGED"
4869            }
4870            Self::AtomDeviceIdleModeStateChanged => "ATOM_DEVICE_IDLE_MODE_STATE_CHANGED",
4871            Self::AtomDeviceIdlingModeStateChanged => {
4872                "ATOM_DEVICE_IDLING_MODE_STATE_CHANGED"
4873            }
4874            Self::AtomAudioStateChanged => "ATOM_AUDIO_STATE_CHANGED",
4875            Self::AtomMediaCodecStateChanged => "ATOM_MEDIA_CODEC_STATE_CHANGED",
4876            Self::AtomCameraStateChanged => "ATOM_CAMERA_STATE_CHANGED",
4877            Self::AtomFlashlightStateChanged => "ATOM_FLASHLIGHT_STATE_CHANGED",
4878            Self::AtomUidProcessStateChanged => "ATOM_UID_PROCESS_STATE_CHANGED",
4879            Self::AtomProcessLifeCycleStateChanged => {
4880                "ATOM_PROCESS_LIFE_CYCLE_STATE_CHANGED"
4881            }
4882            Self::AtomScreenStateChanged => "ATOM_SCREEN_STATE_CHANGED",
4883            Self::AtomBatteryLevelChanged => "ATOM_BATTERY_LEVEL_CHANGED",
4884            Self::AtomChargingStateChanged => "ATOM_CHARGING_STATE_CHANGED",
4885            Self::AtomPluggedStateChanged => "ATOM_PLUGGED_STATE_CHANGED",
4886            Self::AtomInteractiveStateChanged => "ATOM_INTERACTIVE_STATE_CHANGED",
4887            Self::AtomTouchEventReported => "ATOM_TOUCH_EVENT_REPORTED",
4888            Self::AtomWakeupAlarmOccurred => "ATOM_WAKEUP_ALARM_OCCURRED",
4889            Self::AtomKernelWakeupReported => "ATOM_KERNEL_WAKEUP_REPORTED",
4890            Self::AtomWifiLockStateChanged => "ATOM_WIFI_LOCK_STATE_CHANGED",
4891            Self::AtomWifiSignalStrengthChanged => "ATOM_WIFI_SIGNAL_STRENGTH_CHANGED",
4892            Self::AtomWifiScanStateChanged => "ATOM_WIFI_SCAN_STATE_CHANGED",
4893            Self::AtomPhoneSignalStrengthChanged => "ATOM_PHONE_SIGNAL_STRENGTH_CHANGED",
4894            Self::AtomSettingChanged => "ATOM_SETTING_CHANGED",
4895            Self::AtomActivityForegroundStateChanged => {
4896                "ATOM_ACTIVITY_FOREGROUND_STATE_CHANGED"
4897            }
4898            Self::AtomIsolatedUidChanged => "ATOM_ISOLATED_UID_CHANGED",
4899            Self::AtomPacketWakeupOccurred => "ATOM_PACKET_WAKEUP_OCCURRED",
4900            Self::AtomWallClockTimeShifted => "ATOM_WALL_CLOCK_TIME_SHIFTED",
4901            Self::AtomAnomalyDetected => "ATOM_ANOMALY_DETECTED",
4902            Self::AtomAppBreadcrumbReported => "ATOM_APP_BREADCRUMB_REPORTED",
4903            Self::AtomAppStartOccurred => "ATOM_APP_START_OCCURRED",
4904            Self::AtomAppStartCanceled => "ATOM_APP_START_CANCELED",
4905            Self::AtomAppStartFullyDrawn => "ATOM_APP_START_FULLY_DRAWN",
4906            Self::AtomLmkKillOccurred => "ATOM_LMK_KILL_OCCURRED",
4907            Self::AtomPictureInPictureStateChanged => {
4908                "ATOM_PICTURE_IN_PICTURE_STATE_CHANGED"
4909            }
4910            Self::AtomWifiMulticastLockStateChanged => {
4911                "ATOM_WIFI_MULTICAST_LOCK_STATE_CHANGED"
4912            }
4913            Self::AtomAppStartMemoryStateCaptured => {
4914                "ATOM_APP_START_MEMORY_STATE_CAPTURED"
4915            }
4916            Self::AtomShutdownSequenceReported => "ATOM_SHUTDOWN_SEQUENCE_REPORTED",
4917            Self::AtomBootSequenceReported => "ATOM_BOOT_SEQUENCE_REPORTED",
4918            Self::AtomOverlayStateChanged => "ATOM_OVERLAY_STATE_CHANGED",
4919            Self::AtomForegroundServiceStateChanged => {
4920                "ATOM_FOREGROUND_SERVICE_STATE_CHANGED"
4921            }
4922            Self::AtomCallStateChanged => "ATOM_CALL_STATE_CHANGED",
4923            Self::AtomKeyguardStateChanged => "ATOM_KEYGUARD_STATE_CHANGED",
4924            Self::AtomKeyguardBouncerStateChanged => {
4925                "ATOM_KEYGUARD_BOUNCER_STATE_CHANGED"
4926            }
4927            Self::AtomKeyguardBouncerPasswordEntered => {
4928                "ATOM_KEYGUARD_BOUNCER_PASSWORD_ENTERED"
4929            }
4930            Self::AtomAppDied => "ATOM_APP_DIED",
4931            Self::AtomResourceConfigurationChanged => {
4932                "ATOM_RESOURCE_CONFIGURATION_CHANGED"
4933            }
4934            Self::AtomBluetoothEnabledStateChanged => {
4935                "ATOM_BLUETOOTH_ENABLED_STATE_CHANGED"
4936            }
4937            Self::AtomBluetoothConnectionStateChanged => {
4938                "ATOM_BLUETOOTH_CONNECTION_STATE_CHANGED"
4939            }
4940            Self::AtomGpsSignalQualityChanged => "ATOM_GPS_SIGNAL_QUALITY_CHANGED",
4941            Self::AtomUsbConnectorStateChanged => "ATOM_USB_CONNECTOR_STATE_CHANGED",
4942            Self::AtomSpeakerImpedanceReported => "ATOM_SPEAKER_IMPEDANCE_REPORTED",
4943            Self::AtomHardwareFailed => "ATOM_HARDWARE_FAILED",
4944            Self::AtomPhysicalDropDetected => "ATOM_PHYSICAL_DROP_DETECTED",
4945            Self::AtomChargeCyclesReported => "ATOM_CHARGE_CYCLES_REPORTED",
4946            Self::AtomMobileConnectionStateChanged => {
4947                "ATOM_MOBILE_CONNECTION_STATE_CHANGED"
4948            }
4949            Self::AtomMobileRadioTechnologyChanged => {
4950                "ATOM_MOBILE_RADIO_TECHNOLOGY_CHANGED"
4951            }
4952            Self::AtomUsbDeviceAttached => "ATOM_USB_DEVICE_ATTACHED",
4953            Self::AtomAppCrashOccurred => "ATOM_APP_CRASH_OCCURRED",
4954            Self::AtomAnrOccurred => "ATOM_ANR_OCCURRED",
4955            Self::AtomWtfOccurred => "ATOM_WTF_OCCURRED",
4956            Self::AtomLowMemReported => "ATOM_LOW_MEM_REPORTED",
4957            Self::AtomGenericAtom => "ATOM_GENERIC_ATOM",
4958            Self::AtomVibratorStateChanged => "ATOM_VIBRATOR_STATE_CHANGED",
4959            Self::AtomDeferredJobStatsReported => "ATOM_DEFERRED_JOB_STATS_REPORTED",
4960            Self::AtomThermalThrottling => "ATOM_THERMAL_THROTTLING",
4961            Self::AtomBiometricAcquired => "ATOM_BIOMETRIC_ACQUIRED",
4962            Self::AtomBiometricAuthenticated => "ATOM_BIOMETRIC_AUTHENTICATED",
4963            Self::AtomBiometricErrorOccurred => "ATOM_BIOMETRIC_ERROR_OCCURRED",
4964            Self::AtomUiEventReported => "ATOM_UI_EVENT_REPORTED",
4965            Self::AtomBatteryHealthSnapshot => "ATOM_BATTERY_HEALTH_SNAPSHOT",
4966            Self::AtomSlowIo => "ATOM_SLOW_IO",
4967            Self::AtomBatteryCausedShutdown => "ATOM_BATTERY_CAUSED_SHUTDOWN",
4968            Self::AtomPhoneServiceStateChanged => "ATOM_PHONE_SERVICE_STATE_CHANGED",
4969            Self::AtomPhoneStateChanged => "ATOM_PHONE_STATE_CHANGED",
4970            Self::AtomUserRestrictionChanged => "ATOM_USER_RESTRICTION_CHANGED",
4971            Self::AtomSettingsUiChanged => "ATOM_SETTINGS_UI_CHANGED",
4972            Self::AtomConnectivityStateChanged => "ATOM_CONNECTIVITY_STATE_CHANGED",
4973            Self::AtomServiceStateChanged => "ATOM_SERVICE_STATE_CHANGED",
4974            Self::AtomServiceLaunchReported => "ATOM_SERVICE_LAUNCH_REPORTED",
4975            Self::AtomFlagFlipUpdateOccurred => "ATOM_FLAG_FLIP_UPDATE_OCCURRED",
4976            Self::AtomBinaryPushStateChanged => "ATOM_BINARY_PUSH_STATE_CHANGED",
4977            Self::AtomDevicePolicyEvent => "ATOM_DEVICE_POLICY_EVENT",
4978            Self::AtomDocsUiFileOpCanceled => "ATOM_DOCS_UI_FILE_OP_CANCELED",
4979            Self::AtomDocsUiFileOpCopyMoveModeReported => {
4980                "ATOM_DOCS_UI_FILE_OP_COPY_MOVE_MODE_REPORTED"
4981            }
4982            Self::AtomDocsUiFileOpFailure => "ATOM_DOCS_UI_FILE_OP_FAILURE",
4983            Self::AtomDocsUiProviderFileOp => "ATOM_DOCS_UI_PROVIDER_FILE_OP",
4984            Self::AtomDocsUiInvalidScopedAccessRequest => {
4985                "ATOM_DOCS_UI_INVALID_SCOPED_ACCESS_REQUEST"
4986            }
4987            Self::AtomDocsUiLaunchReported => "ATOM_DOCS_UI_LAUNCH_REPORTED",
4988            Self::AtomDocsUiRootVisited => "ATOM_DOCS_UI_ROOT_VISITED",
4989            Self::AtomDocsUiStartupMs => "ATOM_DOCS_UI_STARTUP_MS",
4990            Self::AtomDocsUiUserActionReported => "ATOM_DOCS_UI_USER_ACTION_REPORTED",
4991            Self::AtomWifiEnabledStateChanged => "ATOM_WIFI_ENABLED_STATE_CHANGED",
4992            Self::AtomWifiRunningStateChanged => "ATOM_WIFI_RUNNING_STATE_CHANGED",
4993            Self::AtomAppCompacted => "ATOM_APP_COMPACTED",
4994            Self::AtomNetworkDnsEventReported => "ATOM_NETWORK_DNS_EVENT_REPORTED",
4995            Self::AtomDocsUiPickerLaunchedFromReported => {
4996                "ATOM_DOCS_UI_PICKER_LAUNCHED_FROM_REPORTED"
4997            }
4998            Self::AtomDocsUiPickResultReported => "ATOM_DOCS_UI_PICK_RESULT_REPORTED",
4999            Self::AtomDocsUiSearchModeReported => "ATOM_DOCS_UI_SEARCH_MODE_REPORTED",
5000            Self::AtomDocsUiSearchTypeReported => "ATOM_DOCS_UI_SEARCH_TYPE_REPORTED",
5001            Self::AtomDataStallEvent => "ATOM_DATA_STALL_EVENT",
5002            Self::AtomRescuePartyResetReported => "ATOM_RESCUE_PARTY_RESET_REPORTED",
5003            Self::AtomSignedConfigReported => "ATOM_SIGNED_CONFIG_REPORTED",
5004            Self::AtomGnssNiEventReported => "ATOM_GNSS_NI_EVENT_REPORTED",
5005            Self::AtomBluetoothLinkLayerConnectionEvent => {
5006                "ATOM_BLUETOOTH_LINK_LAYER_CONNECTION_EVENT"
5007            }
5008            Self::AtomBluetoothAclConnectionStateChanged => {
5009                "ATOM_BLUETOOTH_ACL_CONNECTION_STATE_CHANGED"
5010            }
5011            Self::AtomBluetoothScoConnectionStateChanged => {
5012                "ATOM_BLUETOOTH_SCO_CONNECTION_STATE_CHANGED"
5013            }
5014            Self::AtomAppDowngraded => "ATOM_APP_DOWNGRADED",
5015            Self::AtomAppOptimizedAfterDowngraded => {
5016                "ATOM_APP_OPTIMIZED_AFTER_DOWNGRADED"
5017            }
5018            Self::AtomLowStorageStateChanged => "ATOM_LOW_STORAGE_STATE_CHANGED",
5019            Self::AtomGnssNfwNotificationReported => {
5020                "ATOM_GNSS_NFW_NOTIFICATION_REPORTED"
5021            }
5022            Self::AtomGnssConfigurationReported => "ATOM_GNSS_CONFIGURATION_REPORTED",
5023            Self::AtomUsbPortOverheatEventReported => {
5024                "ATOM_USB_PORT_OVERHEAT_EVENT_REPORTED"
5025            }
5026            Self::AtomNfcErrorOccurred => "ATOM_NFC_ERROR_OCCURRED",
5027            Self::AtomNfcStateChanged => "ATOM_NFC_STATE_CHANGED",
5028            Self::AtomNfcBeamOccurred => "ATOM_NFC_BEAM_OCCURRED",
5029            Self::AtomNfcCardemulationOccurred => "ATOM_NFC_CARDEMULATION_OCCURRED",
5030            Self::AtomNfcTagOccurred => "ATOM_NFC_TAG_OCCURRED",
5031            Self::AtomNfcHceTransactionOccurred => "ATOM_NFC_HCE_TRANSACTION_OCCURRED",
5032            Self::AtomSeStateChanged => "ATOM_SE_STATE_CHANGED",
5033            Self::AtomSeOmapiReported => "ATOM_SE_OMAPI_REPORTED",
5034            Self::AtomBroadcastDispatchLatencyReported => {
5035                "ATOM_BROADCAST_DISPATCH_LATENCY_REPORTED"
5036            }
5037            Self::AtomAttentionManagerServiceResultReported => {
5038                "ATOM_ATTENTION_MANAGER_SERVICE_RESULT_REPORTED"
5039            }
5040            Self::AtomAdbConnectionChanged => "ATOM_ADB_CONNECTION_CHANGED",
5041            Self::AtomSpeechDspStatReported => "ATOM_SPEECH_DSP_STAT_REPORTED",
5042            Self::AtomUsbContaminantReported => "ATOM_USB_CONTAMINANT_REPORTED",
5043            Self::AtomWatchdogRollbackOccurred => "ATOM_WATCHDOG_ROLLBACK_OCCURRED",
5044            Self::AtomBiometricSystemHealthIssueDetected => {
5045                "ATOM_BIOMETRIC_SYSTEM_HEALTH_ISSUE_DETECTED"
5046            }
5047            Self::AtomBubbleUiChanged => "ATOM_BUBBLE_UI_CHANGED",
5048            Self::AtomScheduledJobConstraintChanged => {
5049                "ATOM_SCHEDULED_JOB_CONSTRAINT_CHANGED"
5050            }
5051            Self::AtomBluetoothActiveDeviceChanged => {
5052                "ATOM_BLUETOOTH_ACTIVE_DEVICE_CHANGED"
5053            }
5054            Self::AtomBluetoothA2dpPlaybackStateChanged => {
5055                "ATOM_BLUETOOTH_A2DP_PLAYBACK_STATE_CHANGED"
5056            }
5057            Self::AtomBluetoothA2dpCodecConfigChanged => {
5058                "ATOM_BLUETOOTH_A2DP_CODEC_CONFIG_CHANGED"
5059            }
5060            Self::AtomBluetoothA2dpCodecCapabilityChanged => {
5061                "ATOM_BLUETOOTH_A2DP_CODEC_CAPABILITY_CHANGED"
5062            }
5063            Self::AtomBluetoothA2dpAudioUnderrunReported => {
5064                "ATOM_BLUETOOTH_A2DP_AUDIO_UNDERRUN_REPORTED"
5065            }
5066            Self::AtomBluetoothA2dpAudioOverrunReported => {
5067                "ATOM_BLUETOOTH_A2DP_AUDIO_OVERRUN_REPORTED"
5068            }
5069            Self::AtomBluetoothDeviceRssiReported => {
5070                "ATOM_BLUETOOTH_DEVICE_RSSI_REPORTED"
5071            }
5072            Self::AtomBluetoothDeviceFailedContactCounterReported => {
5073                "ATOM_BLUETOOTH_DEVICE_FAILED_CONTACT_COUNTER_REPORTED"
5074            }
5075            Self::AtomBluetoothDeviceTxPowerLevelReported => {
5076                "ATOM_BLUETOOTH_DEVICE_TX_POWER_LEVEL_REPORTED"
5077            }
5078            Self::AtomBluetoothHciTimeoutReported => {
5079                "ATOM_BLUETOOTH_HCI_TIMEOUT_REPORTED"
5080            }
5081            Self::AtomBluetoothQualityReportReported => {
5082                "ATOM_BLUETOOTH_QUALITY_REPORT_REPORTED"
5083            }
5084            Self::AtomBluetoothDeviceInfoReported => {
5085                "ATOM_BLUETOOTH_DEVICE_INFO_REPORTED"
5086            }
5087            Self::AtomBluetoothRemoteVersionInfoReported => {
5088                "ATOM_BLUETOOTH_REMOTE_VERSION_INFO_REPORTED"
5089            }
5090            Self::AtomBluetoothSdpAttributeReported => {
5091                "ATOM_BLUETOOTH_SDP_ATTRIBUTE_REPORTED"
5092            }
5093            Self::AtomBluetoothBondStateChanged => "ATOM_BLUETOOTH_BOND_STATE_CHANGED",
5094            Self::AtomBluetoothClassicPairingEventReported => {
5095                "ATOM_BLUETOOTH_CLASSIC_PAIRING_EVENT_REPORTED"
5096            }
5097            Self::AtomBluetoothSmpPairingEventReported => {
5098                "ATOM_BLUETOOTH_SMP_PAIRING_EVENT_REPORTED"
5099            }
5100            Self::AtomScreenTimeoutExtensionReported => {
5101                "ATOM_SCREEN_TIMEOUT_EXTENSION_REPORTED"
5102            }
5103            Self::AtomProcessStartTime => "ATOM_PROCESS_START_TIME",
5104            Self::AtomPermissionGrantRequestResultReported => {
5105                "ATOM_PERMISSION_GRANT_REQUEST_RESULT_REPORTED"
5106            }
5107            Self::AtomBluetoothSocketConnectionStateChanged => {
5108                "ATOM_BLUETOOTH_SOCKET_CONNECTION_STATE_CHANGED"
5109            }
5110            Self::AtomDeviceIdentifierAccessDenied => {
5111                "ATOM_DEVICE_IDENTIFIER_ACCESS_DENIED"
5112            }
5113            Self::AtomBubbleDeveloperErrorReported => {
5114                "ATOM_BUBBLE_DEVELOPER_ERROR_REPORTED"
5115            }
5116            Self::AtomAssistGestureStageReported => "ATOM_ASSIST_GESTURE_STAGE_REPORTED",
5117            Self::AtomAssistGestureFeedbackReported => {
5118                "ATOM_ASSIST_GESTURE_FEEDBACK_REPORTED"
5119            }
5120            Self::AtomAssistGestureProgressReported => {
5121                "ATOM_ASSIST_GESTURE_PROGRESS_REPORTED"
5122            }
5123            Self::AtomTouchGestureClassified => "ATOM_TOUCH_GESTURE_CLASSIFIED",
5124            Self::AtomHiddenApiUsed => "ATOM_HIDDEN_API_USED",
5125            Self::AtomStyleUiChanged => "ATOM_STYLE_UI_CHANGED",
5126            Self::AtomPrivacyIndicatorsInteracted => "ATOM_PRIVACY_INDICATORS_INTERACTED",
5127            Self::AtomAppInstallOnExternalStorageReported => {
5128                "ATOM_APP_INSTALL_ON_EXTERNAL_STORAGE_REPORTED"
5129            }
5130            Self::AtomNetworkStackReported => "ATOM_NETWORK_STACK_REPORTED",
5131            Self::AtomAppMovedStorageReported => "ATOM_APP_MOVED_STORAGE_REPORTED",
5132            Self::AtomBiometricEnrolled => "ATOM_BIOMETRIC_ENROLLED",
5133            Self::AtomSystemServerWatchdogOccurred => {
5134                "ATOM_SYSTEM_SERVER_WATCHDOG_OCCURRED"
5135            }
5136            Self::AtomTombStoneOccurred => "ATOM_TOMB_STONE_OCCURRED",
5137            Self::AtomBluetoothClassOfDeviceReported => {
5138                "ATOM_BLUETOOTH_CLASS_OF_DEVICE_REPORTED"
5139            }
5140            Self::AtomIntelligenceEventReported => "ATOM_INTELLIGENCE_EVENT_REPORTED",
5141            Self::AtomThermalThrottlingSeverityStateChanged => {
5142                "ATOM_THERMAL_THROTTLING_SEVERITY_STATE_CHANGED"
5143            }
5144            Self::AtomRoleRequestResultReported => "ATOM_ROLE_REQUEST_RESULT_REPORTED",
5145            Self::AtomMediametricsAudiopolicyReported => {
5146                "ATOM_MEDIAMETRICS_AUDIOPOLICY_REPORTED"
5147            }
5148            Self::AtomMediametricsAudiorecordReported => {
5149                "ATOM_MEDIAMETRICS_AUDIORECORD_REPORTED"
5150            }
5151            Self::AtomMediametricsAudiothreadReported => {
5152                "ATOM_MEDIAMETRICS_AUDIOTHREAD_REPORTED"
5153            }
5154            Self::AtomMediametricsAudiotrackReported => {
5155                "ATOM_MEDIAMETRICS_AUDIOTRACK_REPORTED"
5156            }
5157            Self::AtomMediametricsCodecReported => "ATOM_MEDIAMETRICS_CODEC_REPORTED",
5158            Self::AtomMediametricsDrmWidevineReported => {
5159                "ATOM_MEDIAMETRICS_DRM_WIDEVINE_REPORTED"
5160            }
5161            Self::AtomMediametricsExtractorReported => {
5162                "ATOM_MEDIAMETRICS_EXTRACTOR_REPORTED"
5163            }
5164            Self::AtomMediametricsMediadrmReported => {
5165                "ATOM_MEDIAMETRICS_MEDIADRM_REPORTED"
5166            }
5167            Self::AtomMediametricsNuplayerReported => {
5168                "ATOM_MEDIAMETRICS_NUPLAYER_REPORTED"
5169            }
5170            Self::AtomMediametricsRecorderReported => {
5171                "ATOM_MEDIAMETRICS_RECORDER_REPORTED"
5172            }
5173            Self::AtomMediametricsDrmmanagerReported => {
5174                "ATOM_MEDIAMETRICS_DRMMANAGER_REPORTED"
5175            }
5176            Self::AtomCarPowerStateChanged => "ATOM_CAR_POWER_STATE_CHANGED",
5177            Self::AtomGarageModeInfo => "ATOM_GARAGE_MODE_INFO",
5178            Self::AtomTestAtomReported => "ATOM_TEST_ATOM_REPORTED",
5179            Self::AtomContentCaptureCallerMismatchReported => {
5180                "ATOM_CONTENT_CAPTURE_CALLER_MISMATCH_REPORTED"
5181            }
5182            Self::AtomContentCaptureServiceEvents => {
5183                "ATOM_CONTENT_CAPTURE_SERVICE_EVENTS"
5184            }
5185            Self::AtomContentCaptureSessionEvents => {
5186                "ATOM_CONTENT_CAPTURE_SESSION_EVENTS"
5187            }
5188            Self::AtomContentCaptureFlushed => "ATOM_CONTENT_CAPTURE_FLUSHED",
5189            Self::AtomLocationManagerApiUsageReported => {
5190                "ATOM_LOCATION_MANAGER_API_USAGE_REPORTED"
5191            }
5192            Self::AtomReviewPermissionsFragmentResultReported => {
5193                "ATOM_REVIEW_PERMISSIONS_FRAGMENT_RESULT_REPORTED"
5194            }
5195            Self::AtomRuntimePermissionsUpgradeResult => {
5196                "ATOM_RUNTIME_PERMISSIONS_UPGRADE_RESULT"
5197            }
5198            Self::AtomGrantPermissionsActivityButtonActions => {
5199                "ATOM_GRANT_PERMISSIONS_ACTIVITY_BUTTON_ACTIONS"
5200            }
5201            Self::AtomLocationAccessCheckNotificationAction => {
5202                "ATOM_LOCATION_ACCESS_CHECK_NOTIFICATION_ACTION"
5203            }
5204            Self::AtomAppPermissionFragmentActionReported => {
5205                "ATOM_APP_PERMISSION_FRAGMENT_ACTION_REPORTED"
5206            }
5207            Self::AtomAppPermissionFragmentViewed => {
5208                "ATOM_APP_PERMISSION_FRAGMENT_VIEWED"
5209            }
5210            Self::AtomAppPermissionsFragmentViewed => {
5211                "ATOM_APP_PERMISSIONS_FRAGMENT_VIEWED"
5212            }
5213            Self::AtomPermissionAppsFragmentViewed => {
5214                "ATOM_PERMISSION_APPS_FRAGMENT_VIEWED"
5215            }
5216            Self::AtomTextSelectionEvent => "ATOM_TEXT_SELECTION_EVENT",
5217            Self::AtomTextLinkifyEvent => "ATOM_TEXT_LINKIFY_EVENT",
5218            Self::AtomConversationActionsEvent => "ATOM_CONVERSATION_ACTIONS_EVENT",
5219            Self::AtomLanguageDetectionEvent => "ATOM_LANGUAGE_DETECTION_EVENT",
5220            Self::AtomExclusionRectStateChanged => "ATOM_EXCLUSION_RECT_STATE_CHANGED",
5221            Self::AtomBackGestureReportedReported => {
5222                "ATOM_BACK_GESTURE_REPORTED_REPORTED"
5223            }
5224            Self::AtomUpdateEngineUpdateAttemptReported => {
5225                "ATOM_UPDATE_ENGINE_UPDATE_ATTEMPT_REPORTED"
5226            }
5227            Self::AtomUpdateEngineSuccessfulUpdateReported => {
5228                "ATOM_UPDATE_ENGINE_SUCCESSFUL_UPDATE_REPORTED"
5229            }
5230            Self::AtomCameraActionEvent => "ATOM_CAMERA_ACTION_EVENT",
5231            Self::AtomAppCompatibilityChangeReported => {
5232                "ATOM_APP_COMPATIBILITY_CHANGE_REPORTED"
5233            }
5234            Self::AtomPerfettoUploaded => "ATOM_PERFETTO_UPLOADED",
5235            Self::AtomVmsClientConnectionStateChanged => {
5236                "ATOM_VMS_CLIENT_CONNECTION_STATE_CHANGED"
5237            }
5238            Self::AtomMediaProviderScanOccurred => "ATOM_MEDIA_PROVIDER_SCAN_OCCURRED",
5239            Self::AtomMediaContentDeleted => "ATOM_MEDIA_CONTENT_DELETED",
5240            Self::AtomMediaProviderPermissionRequested => {
5241                "ATOM_MEDIA_PROVIDER_PERMISSION_REQUESTED"
5242            }
5243            Self::AtomMediaProviderSchemaChanged => "ATOM_MEDIA_PROVIDER_SCHEMA_CHANGED",
5244            Self::AtomMediaProviderIdleMaintenanceFinished => {
5245                "ATOM_MEDIA_PROVIDER_IDLE_MAINTENANCE_FINISHED"
5246            }
5247            Self::AtomRebootEscrowRecoveryReported => {
5248                "ATOM_REBOOT_ESCROW_RECOVERY_REPORTED"
5249            }
5250            Self::AtomBootTimeEventDurationReported => {
5251                "ATOM_BOOT_TIME_EVENT_DURATION_REPORTED"
5252            }
5253            Self::AtomBootTimeEventElapsedTimeReported => {
5254                "ATOM_BOOT_TIME_EVENT_ELAPSED_TIME_REPORTED"
5255            }
5256            Self::AtomBootTimeEventUtcTimeReported => {
5257                "ATOM_BOOT_TIME_EVENT_UTC_TIME_REPORTED"
5258            }
5259            Self::AtomBootTimeEventErrorCodeReported => {
5260                "ATOM_BOOT_TIME_EVENT_ERROR_CODE_REPORTED"
5261            }
5262            Self::AtomUserspaceRebootReported => "ATOM_USERSPACE_REBOOT_REPORTED",
5263            Self::AtomNotificationReported => "ATOM_NOTIFICATION_REPORTED",
5264            Self::AtomNotificationPanelReported => "ATOM_NOTIFICATION_PANEL_REPORTED",
5265            Self::AtomNotificationChannelModified => "ATOM_NOTIFICATION_CHANNEL_MODIFIED",
5266            Self::AtomIntegrityCheckResultReported => {
5267                "ATOM_INTEGRITY_CHECK_RESULT_REPORTED"
5268            }
5269            Self::AtomIntegrityRulesPushed => "ATOM_INTEGRITY_RULES_PUSHED",
5270            Self::AtomCbMessageReported => "ATOM_CB_MESSAGE_REPORTED",
5271            Self::AtomCbMessageError => "ATOM_CB_MESSAGE_ERROR",
5272            Self::AtomWifiHealthStatReported => "ATOM_WIFI_HEALTH_STAT_REPORTED",
5273            Self::AtomWifiFailureStatReported => "ATOM_WIFI_FAILURE_STAT_REPORTED",
5274            Self::AtomWifiConnectionResultReported => {
5275                "ATOM_WIFI_CONNECTION_RESULT_REPORTED"
5276            }
5277            Self::AtomAppFreezeChanged => "ATOM_APP_FREEZE_CHANGED",
5278            Self::AtomSnapshotMergeReported => "ATOM_SNAPSHOT_MERGE_REPORTED",
5279            Self::AtomForegroundServiceAppOpSessionEnded => {
5280                "ATOM_FOREGROUND_SERVICE_APP_OP_SESSION_ENDED"
5281            }
5282            Self::AtomDisplayJankReported => "ATOM_DISPLAY_JANK_REPORTED",
5283            Self::AtomAppStandbyBucketChanged => "ATOM_APP_STANDBY_BUCKET_CHANGED",
5284            Self::AtomSharesheetStarted => "ATOM_SHARESHEET_STARTED",
5285            Self::AtomRankingSelected => "ATOM_RANKING_SELECTED",
5286            Self::AtomTvsettingsUiInteracted => "ATOM_TVSETTINGS_UI_INTERACTED",
5287            Self::AtomLauncherSnapshot => "ATOM_LAUNCHER_SNAPSHOT",
5288            Self::AtomPackageInstallerV2Reported => "ATOM_PACKAGE_INSTALLER_V2_REPORTED",
5289            Self::AtomUserLifecycleJourneyReported => {
5290                "ATOM_USER_LIFECYCLE_JOURNEY_REPORTED"
5291            }
5292            Self::AtomUserLifecycleEventOccurred => "ATOM_USER_LIFECYCLE_EVENT_OCCURRED",
5293            Self::AtomAccessibilityShortcutReported => {
5294                "ATOM_ACCESSIBILITY_SHORTCUT_REPORTED"
5295            }
5296            Self::AtomAccessibilityServiceReported => {
5297                "ATOM_ACCESSIBILITY_SERVICE_REPORTED"
5298            }
5299            Self::AtomDocsUiDragAndDropReported => "ATOM_DOCS_UI_DRAG_AND_DROP_REPORTED",
5300            Self::AtomAppUsageEventOccurred => "ATOM_APP_USAGE_EVENT_OCCURRED",
5301            Self::AtomAutoRevokeNotificationClicked => {
5302                "ATOM_AUTO_REVOKE_NOTIFICATION_CLICKED"
5303            }
5304            Self::AtomAutoRevokeFragmentAppViewed => {
5305                "ATOM_AUTO_REVOKE_FRAGMENT_APP_VIEWED"
5306            }
5307            Self::AtomAutoRevokedAppInteraction => "ATOM_AUTO_REVOKED_APP_INTERACTION",
5308            Self::AtomAppPermissionGroupsFragmentAutoRevokeAction => {
5309                "ATOM_APP_PERMISSION_GROUPS_FRAGMENT_AUTO_REVOKE_ACTION"
5310            }
5311            Self::AtomEvsUsageStatsReported => "ATOM_EVS_USAGE_STATS_REPORTED",
5312            Self::AtomAudioPowerUsageDataReported => {
5313                "ATOM_AUDIO_POWER_USAGE_DATA_REPORTED"
5314            }
5315            Self::AtomTvTunerStateChanged => "ATOM_TV_TUNER_STATE_CHANGED",
5316            Self::AtomMediaoutputOpSwitchReported => {
5317                "ATOM_MEDIAOUTPUT_OP_SWITCH_REPORTED"
5318            }
5319            Self::AtomCbMessageFiltered => "ATOM_CB_MESSAGE_FILTERED",
5320            Self::AtomTvTunerDvrStatus => "ATOM_TV_TUNER_DVR_STATUS",
5321            Self::AtomTvCasSessionOpenStatus => "ATOM_TV_CAS_SESSION_OPEN_STATUS",
5322            Self::AtomAssistantInvocationReported => "ATOM_ASSISTANT_INVOCATION_REPORTED",
5323            Self::AtomDisplayWakeReported => "ATOM_DISPLAY_WAKE_REPORTED",
5324            Self::AtomCarUserHalModifyUserRequestReported => {
5325                "ATOM_CAR_USER_HAL_MODIFY_USER_REQUEST_REPORTED"
5326            }
5327            Self::AtomCarUserHalModifyUserResponseReported => {
5328                "ATOM_CAR_USER_HAL_MODIFY_USER_RESPONSE_REPORTED"
5329            }
5330            Self::AtomCarUserHalPostSwitchResponseReported => {
5331                "ATOM_CAR_USER_HAL_POST_SWITCH_RESPONSE_REPORTED"
5332            }
5333            Self::AtomCarUserHalInitialUserInfoRequestReported => {
5334                "ATOM_CAR_USER_HAL_INITIAL_USER_INFO_REQUEST_REPORTED"
5335            }
5336            Self::AtomCarUserHalInitialUserInfoResponseReported => {
5337                "ATOM_CAR_USER_HAL_INITIAL_USER_INFO_RESPONSE_REPORTED"
5338            }
5339            Self::AtomCarUserHalUserAssociationRequestReported => {
5340                "ATOM_CAR_USER_HAL_USER_ASSOCIATION_REQUEST_REPORTED"
5341            }
5342            Self::AtomCarUserHalSetUserAssociationResponseReported => {
5343                "ATOM_CAR_USER_HAL_SET_USER_ASSOCIATION_RESPONSE_REPORTED"
5344            }
5345            Self::AtomNetworkIpProvisioningReported => {
5346                "ATOM_NETWORK_IP_PROVISIONING_REPORTED"
5347            }
5348            Self::AtomNetworkDhcpRenewReported => "ATOM_NETWORK_DHCP_RENEW_REPORTED",
5349            Self::AtomNetworkValidationReported => "ATOM_NETWORK_VALIDATION_REPORTED",
5350            Self::AtomNetworkStackQuirkReported => "ATOM_NETWORK_STACK_QUIRK_REPORTED",
5351            Self::AtomMediametricsAudiorecorddeviceusageReported => {
5352                "ATOM_MEDIAMETRICS_AUDIORECORDDEVICEUSAGE_REPORTED"
5353            }
5354            Self::AtomMediametricsAudiothreaddeviceusageReported => {
5355                "ATOM_MEDIAMETRICS_AUDIOTHREADDEVICEUSAGE_REPORTED"
5356            }
5357            Self::AtomMediametricsAudiotrackdeviceusageReported => {
5358                "ATOM_MEDIAMETRICS_AUDIOTRACKDEVICEUSAGE_REPORTED"
5359            }
5360            Self::AtomMediametricsAudiodeviceconnectionReported => {
5361                "ATOM_MEDIAMETRICS_AUDIODEVICECONNECTION_REPORTED"
5362            }
5363            Self::AtomBlobCommitted => "ATOM_BLOB_COMMITTED",
5364            Self::AtomBlobLeased => "ATOM_BLOB_LEASED",
5365            Self::AtomBlobOpened => "ATOM_BLOB_OPENED",
5366            Self::AtomContactsProviderStatusReported => {
5367                "ATOM_CONTACTS_PROVIDER_STATUS_REPORTED"
5368            }
5369            Self::AtomKeystoreKeyEventReported => "ATOM_KEYSTORE_KEY_EVENT_REPORTED",
5370            Self::AtomNetworkTetheringReported => "ATOM_NETWORK_TETHERING_REPORTED",
5371            Self::AtomImeTouchReported => "ATOM_IME_TOUCH_REPORTED",
5372            Self::AtomUiInteractionFrameInfoReported => {
5373                "ATOM_UI_INTERACTION_FRAME_INFO_REPORTED"
5374            }
5375            Self::AtomUiActionLatencyReported => "ATOM_UI_ACTION_LATENCY_REPORTED",
5376            Self::AtomWifiDisconnectReported => "ATOM_WIFI_DISCONNECT_REPORTED",
5377            Self::AtomWifiConnectionStateChanged => "ATOM_WIFI_CONNECTION_STATE_CHANGED",
5378            Self::AtomHdmiCecActiveSourceChanged => "ATOM_HDMI_CEC_ACTIVE_SOURCE_CHANGED",
5379            Self::AtomHdmiCecMessageReported => "ATOM_HDMI_CEC_MESSAGE_REPORTED",
5380            Self::AtomAirplaneMode => "ATOM_AIRPLANE_MODE",
5381            Self::AtomModemRestart => "ATOM_MODEM_RESTART",
5382            Self::AtomCarrierIdMismatchReported => "ATOM_CARRIER_ID_MISMATCH_REPORTED",
5383            Self::AtomCarrierIdTableUpdated => "ATOM_CARRIER_ID_TABLE_UPDATED",
5384            Self::AtomDataStallRecoveryReported => "ATOM_DATA_STALL_RECOVERY_REPORTED",
5385            Self::AtomMediametricsMediaparserReported => {
5386                "ATOM_MEDIAMETRICS_MEDIAPARSER_REPORTED"
5387            }
5388            Self::AtomTlsHandshakeReported => "ATOM_TLS_HANDSHAKE_REPORTED",
5389            Self::AtomTextClassifierApiUsageReported => {
5390                "ATOM_TEXT_CLASSIFIER_API_USAGE_REPORTED"
5391            }
5392            Self::AtomCarWatchdogKillStatsReported => {
5393                "ATOM_CAR_WATCHDOG_KILL_STATS_REPORTED"
5394            }
5395            Self::AtomMediametricsPlaybackReported => {
5396                "ATOM_MEDIAMETRICS_PLAYBACK_REPORTED"
5397            }
5398            Self::AtomMediaNetworkInfoChanged => "ATOM_MEDIA_NETWORK_INFO_CHANGED",
5399            Self::AtomMediaPlaybackStateChanged => "ATOM_MEDIA_PLAYBACK_STATE_CHANGED",
5400            Self::AtomMediaPlaybackErrorReported => "ATOM_MEDIA_PLAYBACK_ERROR_REPORTED",
5401            Self::AtomMediaPlaybackTrackChanged => "ATOM_MEDIA_PLAYBACK_TRACK_CHANGED",
5402            Self::AtomWifiScanReported => "ATOM_WIFI_SCAN_REPORTED",
5403            Self::AtomWifiPnoScanReported => "ATOM_WIFI_PNO_SCAN_REPORTED",
5404            Self::AtomTifTuneChanged => "ATOM_TIF_TUNE_CHANGED",
5405            Self::AtomAutoRotateReported => "ATOM_AUTO_ROTATE_REPORTED",
5406            Self::AtomPerfettoTrigger => "ATOM_PERFETTO_TRIGGER",
5407            Self::AtomTranscodingData => "ATOM_TRANSCODING_DATA",
5408            Self::AtomImsServiceEntitlementUpdated => {
5409                "ATOM_IMS_SERVICE_ENTITLEMENT_UPDATED"
5410            }
5411            Self::AtomDeviceRotated => "ATOM_DEVICE_ROTATED",
5412            Self::AtomSimSpecificSettingsRestored => {
5413                "ATOM_SIM_SPECIFIC_SETTINGS_RESTORED"
5414            }
5415            Self::AtomTextClassifierDownloadReported => {
5416                "ATOM_TEXT_CLASSIFIER_DOWNLOAD_REPORTED"
5417            }
5418            Self::AtomPinStorageEvent => "ATOM_PIN_STORAGE_EVENT",
5419            Self::AtomFaceDownReported => "ATOM_FACE_DOWN_REPORTED",
5420            Self::AtomBluetoothHalCrashReasonReported => {
5421                "ATOM_BLUETOOTH_HAL_CRASH_REASON_REPORTED"
5422            }
5423            Self::AtomRebootEscrowPreparationReported => {
5424                "ATOM_REBOOT_ESCROW_PREPARATION_REPORTED"
5425            }
5426            Self::AtomRebootEscrowLskfCaptureReported => {
5427                "ATOM_REBOOT_ESCROW_LSKF_CAPTURE_REPORTED"
5428            }
5429            Self::AtomRebootEscrowRebootReported => "ATOM_REBOOT_ESCROW_REBOOT_REPORTED",
5430            Self::AtomBinderLatencyReported => "ATOM_BINDER_LATENCY_REPORTED",
5431            Self::AtomMediametricsAaudiostreamReported => {
5432                "ATOM_MEDIAMETRICS_AAUDIOSTREAM_REPORTED"
5433            }
5434            Self::AtomMediaTranscodingSessionEnded => {
5435                "ATOM_MEDIA_TRANSCODING_SESSION_ENDED"
5436            }
5437            Self::AtomMagnificationUsageReported => "ATOM_MAGNIFICATION_USAGE_REPORTED",
5438            Self::AtomMagnificationModeWithImeOnReported => {
5439                "ATOM_MAGNIFICATION_MODE_WITH_IME_ON_REPORTED"
5440            }
5441            Self::AtomAppSearchCallStatsReported => "ATOM_APP_SEARCH_CALL_STATS_REPORTED",
5442            Self::AtomAppSearchPutDocumentStatsReported => {
5443                "ATOM_APP_SEARCH_PUT_DOCUMENT_STATS_REPORTED"
5444            }
5445            Self::AtomDeviceControlChanged => "ATOM_DEVICE_CONTROL_CHANGED",
5446            Self::AtomDeviceStateChanged => "ATOM_DEVICE_STATE_CHANGED",
5447            Self::AtomInputdeviceRegistered => "ATOM_INPUTDEVICE_REGISTERED",
5448            Self::AtomSmartspaceCardReported => "ATOM_SMARTSPACE_CARD_REPORTED",
5449            Self::AtomAuthPromptAuthenticateInvoked => {
5450                "ATOM_AUTH_PROMPT_AUTHENTICATE_INVOKED"
5451            }
5452            Self::AtomAuthManagerCanAuthenticateInvoked => {
5453                "ATOM_AUTH_MANAGER_CAN_AUTHENTICATE_INVOKED"
5454            }
5455            Self::AtomAuthEnrollActionInvoked => "ATOM_AUTH_ENROLL_ACTION_INVOKED",
5456            Self::AtomAuthDeprecatedApiUsed => "ATOM_AUTH_DEPRECATED_API_USED",
5457            Self::AtomUnattendedRebootOccurred => "ATOM_UNATTENDED_REBOOT_OCCURRED",
5458            Self::AtomLongRebootBlockingReported => "ATOM_LONG_REBOOT_BLOCKING_REPORTED",
5459            Self::AtomLocationTimeZoneProviderStateChanged => {
5460                "ATOM_LOCATION_TIME_ZONE_PROVIDER_STATE_CHANGED"
5461            }
5462            Self::AtomFdtrackEventOccurred => "ATOM_FDTRACK_EVENT_OCCURRED",
5463            Self::AtomTimeoutAutoExtendedReported => {
5464                "ATOM_TIMEOUT_AUTO_EXTENDED_REPORTED"
5465            }
5466            Self::AtomAlarmBatchDelivered => "ATOM_ALARM_BATCH_DELIVERED",
5467            Self::AtomAlarmScheduled => "ATOM_ALARM_SCHEDULED",
5468            Self::AtomCarWatchdogIoOveruseStatsReported => {
5469                "ATOM_CAR_WATCHDOG_IO_OVERUSE_STATS_REPORTED"
5470            }
5471            Self::AtomUserLevelHibernationStateChanged => {
5472                "ATOM_USER_LEVEL_HIBERNATION_STATE_CHANGED"
5473            }
5474            Self::AtomAppSearchInitializeStatsReported => {
5475                "ATOM_APP_SEARCH_INITIALIZE_STATS_REPORTED"
5476            }
5477            Self::AtomAppSearchQueryStatsReported => {
5478                "ATOM_APP_SEARCH_QUERY_STATS_REPORTED"
5479            }
5480            Self::AtomAppProcessDied => "ATOM_APP_PROCESS_DIED",
5481            Self::AtomNetworkIpReachabilityMonitorReported => {
5482                "ATOM_NETWORK_IP_REACHABILITY_MONITOR_REPORTED"
5483            }
5484            Self::AtomSlowInputEventReported => "ATOM_SLOW_INPUT_EVENT_REPORTED",
5485            Self::AtomAnrOccurredProcessingStarted => {
5486                "ATOM_ANR_OCCURRED_PROCESSING_STARTED"
5487            }
5488            Self::AtomAppSearchRemoveStatsReported => {
5489                "ATOM_APP_SEARCH_REMOVE_STATS_REPORTED"
5490            }
5491            Self::AtomMediaCodecReported => "ATOM_MEDIA_CODEC_REPORTED",
5492            Self::AtomPermissionUsageFragmentInteraction => {
5493                "ATOM_PERMISSION_USAGE_FRAGMENT_INTERACTION"
5494            }
5495            Self::AtomPermissionDetailsInteraction => {
5496                "ATOM_PERMISSION_DETAILS_INTERACTION"
5497            }
5498            Self::AtomPrivacySensorToggleInteraction => {
5499                "ATOM_PRIVACY_SENSOR_TOGGLE_INTERACTION"
5500            }
5501            Self::AtomPrivacyToggleDialogInteraction => {
5502                "ATOM_PRIVACY_TOGGLE_DIALOG_INTERACTION"
5503            }
5504            Self::AtomAppSearchOptimizeStatsReported => {
5505                "ATOM_APP_SEARCH_OPTIMIZE_STATS_REPORTED"
5506            }
5507            Self::AtomNonA11yToolServiceWarningReport => {
5508                "ATOM_NON_A11Y_TOOL_SERVICE_WARNING_REPORT"
5509            }
5510            Self::AtomAppCompatStateChanged => "ATOM_APP_COMPAT_STATE_CHANGED",
5511            Self::AtomSizeCompatRestartButtonEventReported => {
5512                "ATOM_SIZE_COMPAT_RESTART_BUTTON_EVENT_REPORTED"
5513            }
5514            Self::AtomSplitscreenUiChanged => "ATOM_SPLITSCREEN_UI_CHANGED",
5515            Self::AtomNetworkDnsHandshakeReported => {
5516                "ATOM_NETWORK_DNS_HANDSHAKE_REPORTED"
5517            }
5518            Self::AtomBluetoothCodePathCounter => "ATOM_BLUETOOTH_CODE_PATH_COUNTER",
5519            Self::AtomBluetoothLeBatchScanReportDelay => {
5520                "ATOM_BLUETOOTH_LE_BATCH_SCAN_REPORT_DELAY"
5521            }
5522            Self::AtomAccessibilityFloatingMenuUiChanged => {
5523                "ATOM_ACCESSIBILITY_FLOATING_MENU_UI_CHANGED"
5524            }
5525            Self::AtomNeuralnetworksCompilationCompleted => {
5526                "ATOM_NEURALNETWORKS_COMPILATION_COMPLETED"
5527            }
5528            Self::AtomNeuralnetworksExecutionCompleted => {
5529                "ATOM_NEURALNETWORKS_EXECUTION_COMPLETED"
5530            }
5531            Self::AtomNeuralnetworksCompilationFailed => {
5532                "ATOM_NEURALNETWORKS_COMPILATION_FAILED"
5533            }
5534            Self::AtomNeuralnetworksExecutionFailed => {
5535                "ATOM_NEURALNETWORKS_EXECUTION_FAILED"
5536            }
5537            Self::AtomContextHubBooted => "ATOM_CONTEXT_HUB_BOOTED",
5538            Self::AtomContextHubRestarted => "ATOM_CONTEXT_HUB_RESTARTED",
5539            Self::AtomContextHubLoadedNanoappSnapshotReported => {
5540                "ATOM_CONTEXT_HUB_LOADED_NANOAPP_SNAPSHOT_REPORTED"
5541            }
5542            Self::AtomChreCodeDownloadTransacted => "ATOM_CHRE_CODE_DOWNLOAD_TRANSACTED",
5543            Self::AtomUwbSessionInited => "ATOM_UWB_SESSION_INITED",
5544            Self::AtomUwbSessionClosed => "ATOM_UWB_SESSION_CLOSED",
5545            Self::AtomUwbFirstRangingReceived => "ATOM_UWB_FIRST_RANGING_RECEIVED",
5546            Self::AtomUwbRangingMeasurementReceived => {
5547                "ATOM_UWB_RANGING_MEASUREMENT_RECEIVED"
5548            }
5549            Self::AtomTextClassifierDownloadWorkScheduled => {
5550                "ATOM_TEXT_CLASSIFIER_DOWNLOAD_WORK_SCHEDULED"
5551            }
5552            Self::AtomTextClassifierDownloadWorkCompleted => {
5553                "ATOM_TEXT_CLASSIFIER_DOWNLOAD_WORK_COMPLETED"
5554            }
5555            Self::AtomClipboardCleared => "ATOM_CLIPBOARD_CLEARED",
5556            Self::AtomVmCreationRequested => "ATOM_VM_CREATION_REQUESTED",
5557            Self::AtomNearbyDeviceScanStateChanged => {
5558                "ATOM_NEARBY_DEVICE_SCAN_STATE_CHANGED"
5559            }
5560            Self::AtomApplicationLocalesChanged => "ATOM_APPLICATION_LOCALES_CHANGED",
5561            Self::AtomMediametricsAudiotrackstatusReported => {
5562                "ATOM_MEDIAMETRICS_AUDIOTRACKSTATUS_REPORTED"
5563            }
5564            Self::AtomFoldStateDurationReported => "ATOM_FOLD_STATE_DURATION_REPORTED",
5565            Self::AtomLocationTimeZoneProviderControllerStateChanged => {
5566                "ATOM_LOCATION_TIME_ZONE_PROVIDER_CONTROLLER_STATE_CHANGED"
5567            }
5568            Self::AtomDisplayHbmStateChanged => "ATOM_DISPLAY_HBM_STATE_CHANGED",
5569            Self::AtomDisplayHbmBrightnessChanged => {
5570                "ATOM_DISPLAY_HBM_BRIGHTNESS_CHANGED"
5571            }
5572            Self::AtomPersistentUriPermissionsFlushed => {
5573                "ATOM_PERSISTENT_URI_PERMISSIONS_FLUSHED"
5574            }
5575            Self::AtomEarlyBootCompOsArtifactsCheckReported => {
5576                "ATOM_EARLY_BOOT_COMP_OS_ARTIFACTS_CHECK_REPORTED"
5577            }
5578            Self::AtomVbmetaDigestReported => "ATOM_VBMETA_DIGEST_REPORTED",
5579            Self::AtomApexInfoGathered => "ATOM_APEX_INFO_GATHERED",
5580            Self::AtomPvmInfoGathered => "ATOM_PVM_INFO_GATHERED",
5581            Self::AtomWearSettingsUiInteracted => "ATOM_WEAR_SETTINGS_UI_INTERACTED",
5582            Self::AtomTracingServiceReportEvent => "ATOM_TRACING_SERVICE_REPORT_EVENT",
5583            Self::AtomMediametricsAudiorecordstatusReported => {
5584                "ATOM_MEDIAMETRICS_AUDIORECORDSTATUS_REPORTED"
5585            }
5586            Self::AtomLauncherLatency => "ATOM_LAUNCHER_LATENCY",
5587            Self::AtomDropboxEntryDropped => "ATOM_DROPBOX_ENTRY_DROPPED",
5588            Self::AtomWifiP2pConnectionReported => "ATOM_WIFI_P2P_CONNECTION_REPORTED",
5589            Self::AtomGameStateChanged => "ATOM_GAME_STATE_CHANGED",
5590            Self::AtomHotwordDetectorCreateRequested => {
5591                "ATOM_HOTWORD_DETECTOR_CREATE_REQUESTED"
5592            }
5593            Self::AtomHotwordDetectionServiceInitResultReported => {
5594                "ATOM_HOTWORD_DETECTION_SERVICE_INIT_RESULT_REPORTED"
5595            }
5596            Self::AtomHotwordDetectionServiceRestarted => {
5597                "ATOM_HOTWORD_DETECTION_SERVICE_RESTARTED"
5598            }
5599            Self::AtomHotwordDetectorKeyphraseTriggered => {
5600                "ATOM_HOTWORD_DETECTOR_KEYPHRASE_TRIGGERED"
5601            }
5602            Self::AtomHotwordDetectorEvents => "ATOM_HOTWORD_DETECTOR_EVENTS",
5603            Self::AtomBootCompletedBroadcastCompletionLatencyReported => {
5604                "ATOM_BOOT_COMPLETED_BROADCAST_COMPLETION_LATENCY_REPORTED"
5605            }
5606            Self::AtomContactsIndexerUpdateStatsReported => {
5607                "ATOM_CONTACTS_INDEXER_UPDATE_STATS_REPORTED"
5608            }
5609            Self::AtomAppBackgroundRestrictionsInfo => {
5610                "ATOM_APP_BACKGROUND_RESTRICTIONS_INFO"
5611            }
5612            Self::AtomMmsSmsProviderGetThreadIdFailed => {
5613                "ATOM_MMS_SMS_PROVIDER_GET_THREAD_ID_FAILED"
5614            }
5615            Self::AtomMmsSmsDatabaseHelperOnUpgradeFailed => {
5616                "ATOM_MMS_SMS_DATABASE_HELPER_ON_UPGRADE_FAILED"
5617            }
5618            Self::AtomPermissionReminderNotificationInteracted => {
5619                "ATOM_PERMISSION_REMINDER_NOTIFICATION_INTERACTED"
5620            }
5621            Self::AtomRecentPermissionDecisionsInteracted => {
5622                "ATOM_RECENT_PERMISSION_DECISIONS_INTERACTED"
5623            }
5624            Self::AtomGnssPsdsDownloadReported => "ATOM_GNSS_PSDS_DOWNLOAD_REPORTED",
5625            Self::AtomLeAudioConnectionSessionReported => {
5626                "ATOM_LE_AUDIO_CONNECTION_SESSION_REPORTED"
5627            }
5628            Self::AtomLeAudioBroadcastSessionReported => {
5629                "ATOM_LE_AUDIO_BROADCAST_SESSION_REPORTED"
5630            }
5631            Self::AtomDreamUiEventReported => "ATOM_DREAM_UI_EVENT_REPORTED",
5632            Self::AtomTaskManagerEventReported => "ATOM_TASK_MANAGER_EVENT_REPORTED",
5633            Self::AtomCdmAssociationAction => "ATOM_CDM_ASSOCIATION_ACTION",
5634            Self::AtomMagnificationTripleTapAndHoldActivatedSessionReported => {
5635                "ATOM_MAGNIFICATION_TRIPLE_TAP_AND_HOLD_ACTIVATED_SESSION_REPORTED"
5636            }
5637            Self::AtomMagnificationFollowTypingFocusActivatedSessionReported => {
5638                "ATOM_MAGNIFICATION_FOLLOW_TYPING_FOCUS_ACTIVATED_SESSION_REPORTED"
5639            }
5640            Self::AtomAccessibilityTextReadingOptionsChanged => {
5641                "ATOM_ACCESSIBILITY_TEXT_READING_OPTIONS_CHANGED"
5642            }
5643            Self::AtomWifiSetupFailureCrashReported => {
5644                "ATOM_WIFI_SETUP_FAILURE_CRASH_REPORTED"
5645            }
5646            Self::AtomUwbDeviceErrorReported => "ATOM_UWB_DEVICE_ERROR_REPORTED",
5647            Self::AtomIsolatedCompilationScheduled => {
5648                "ATOM_ISOLATED_COMPILATION_SCHEDULED"
5649            }
5650            Self::AtomIsolatedCompilationEnded => "ATOM_ISOLATED_COMPILATION_ENDED",
5651            Self::AtomOnsOpportunisticEsimProvisioningComplete => {
5652                "ATOM_ONS_OPPORTUNISTIC_ESIM_PROVISIONING_COMPLETE"
5653            }
5654            Self::AtomSystemServerPreWatchdogOccurred => {
5655                "ATOM_SYSTEM_SERVER_PRE_WATCHDOG_OCCURRED"
5656            }
5657            Self::AtomTelephonyAnomalyDetected => "ATOM_TELEPHONY_ANOMALY_DETECTED",
5658            Self::AtomLetterboxPositionChanged => "ATOM_LETTERBOX_POSITION_CHANGED",
5659            Self::AtomRemoteKeyProvisioningAttempt => {
5660                "ATOM_REMOTE_KEY_PROVISIONING_ATTEMPT"
5661            }
5662            Self::AtomRemoteKeyProvisioningNetworkInfo => {
5663                "ATOM_REMOTE_KEY_PROVISIONING_NETWORK_INFO"
5664            }
5665            Self::AtomRemoteKeyProvisioningTiming => {
5666                "ATOM_REMOTE_KEY_PROVISIONING_TIMING"
5667            }
5668            Self::AtomMediaoutputOpInteractionReport => {
5669                "ATOM_MEDIAOUTPUT_OP_INTERACTION_REPORT"
5670            }
5671            Self::AtomSyncExemptionOccurred => "ATOM_SYNC_EXEMPTION_OCCURRED",
5672            Self::AtomAutofillPresentationEventReported => {
5673                "ATOM_AUTOFILL_PRESENTATION_EVENT_REPORTED"
5674            }
5675            Self::AtomDockStateChanged => "ATOM_DOCK_STATE_CHANGED",
5676            Self::AtomSafetySourceStateCollected => "ATOM_SAFETY_SOURCE_STATE_COLLECTED",
5677            Self::AtomSafetyCenterSystemEventReported => {
5678                "ATOM_SAFETY_CENTER_SYSTEM_EVENT_REPORTED"
5679            }
5680            Self::AtomSafetyCenterInteractionReported => {
5681                "ATOM_SAFETY_CENTER_INTERACTION_REPORTED"
5682            }
5683            Self::AtomSettingsProviderSettingChanged => {
5684                "ATOM_SETTINGS_PROVIDER_SETTING_CHANGED"
5685            }
5686            Self::AtomBroadcastDeliveryEventReported => {
5687                "ATOM_BROADCAST_DELIVERY_EVENT_REPORTED"
5688            }
5689            Self::AtomServiceRequestEventReported => {
5690                "ATOM_SERVICE_REQUEST_EVENT_REPORTED"
5691            }
5692            Self::AtomProviderAcquisitionEventReported => {
5693                "ATOM_PROVIDER_ACQUISITION_EVENT_REPORTED"
5694            }
5695            Self::AtomBluetoothDeviceNameReported => {
5696                "ATOM_BLUETOOTH_DEVICE_NAME_REPORTED"
5697            }
5698            Self::AtomCbConfigUpdated => "ATOM_CB_CONFIG_UPDATED",
5699            Self::AtomCbModuleErrorReported => "ATOM_CB_MODULE_ERROR_REPORTED",
5700            Self::AtomCbServiceFeatureChanged => "ATOM_CB_SERVICE_FEATURE_CHANGED",
5701            Self::AtomCbReceiverFeatureChanged => "ATOM_CB_RECEIVER_FEATURE_CHANGED",
5702            Self::AtomPrivacySignalNotificationInteraction => {
5703                "ATOM_PRIVACY_SIGNAL_NOTIFICATION_INTERACTION"
5704            }
5705            Self::AtomPrivacySignalIssueCardInteraction => {
5706                "ATOM_PRIVACY_SIGNAL_ISSUE_CARD_INTERACTION"
5707            }
5708            Self::AtomPrivacySignalsJobFailure => "ATOM_PRIVACY_SIGNALS_JOB_FAILURE",
5709            Self::AtomVibrationReported => "ATOM_VIBRATION_REPORTED",
5710            Self::AtomUwbRangingStart => "ATOM_UWB_RANGING_START",
5711            Self::AtomAppCompactedV2 => "ATOM_APP_COMPACTED_V2",
5712            Self::AtomDisplayBrightnessChanged => "ATOM_DISPLAY_BRIGHTNESS_CHANGED",
5713            Self::AtomActivityActionBlocked => "ATOM_ACTIVITY_ACTION_BLOCKED",
5714            Self::AtomNetworkDnsServerSupportReported => {
5715                "ATOM_NETWORK_DNS_SERVER_SUPPORT_REPORTED"
5716            }
5717            Self::AtomVmBooted => "ATOM_VM_BOOTED",
5718            Self::AtomVmExited => "ATOM_VM_EXITED",
5719            Self::AtomAmbientBrightnessStatsReported => {
5720                "ATOM_AMBIENT_BRIGHTNESS_STATS_REPORTED"
5721            }
5722            Self::AtomMediametricsSpatializercapabilitiesReported => {
5723                "ATOM_MEDIAMETRICS_SPATIALIZERCAPABILITIES_REPORTED"
5724            }
5725            Self::AtomMediametricsSpatializerdeviceenabledReported => {
5726                "ATOM_MEDIAMETRICS_SPATIALIZERDEVICEENABLED_REPORTED"
5727            }
5728            Self::AtomMediametricsHeadtrackerdeviceenabledReported => {
5729                "ATOM_MEDIAMETRICS_HEADTRACKERDEVICEENABLED_REPORTED"
5730            }
5731            Self::AtomMediametricsHeadtrackerdevicesupportedReported => {
5732                "ATOM_MEDIAMETRICS_HEADTRACKERDEVICESUPPORTED_REPORTED"
5733            }
5734            Self::AtomHearingAidInfoReported => "ATOM_HEARING_AID_INFO_REPORTED",
5735            Self::AtomDeviceWideJobConstraintChanged => {
5736                "ATOM_DEVICE_WIDE_JOB_CONSTRAINT_CHANGED"
5737            }
5738            Self::AtomAmbientModeChanged => "ATOM_AMBIENT_MODE_CHANGED",
5739            Self::AtomAnrLatencyReported => "ATOM_ANR_LATENCY_REPORTED",
5740            Self::AtomResourceApiInfo => "ATOM_RESOURCE_API_INFO",
5741            Self::AtomSystemDefaultNetworkChanged => {
5742                "ATOM_SYSTEM_DEFAULT_NETWORK_CHANGED"
5743            }
5744            Self::AtomIwlanSetupDataCallResultReported => {
5745                "ATOM_IWLAN_SETUP_DATA_CALL_RESULT_REPORTED"
5746            }
5747            Self::AtomIwlanPdnDisconnectedReasonReported => {
5748                "ATOM_IWLAN_PDN_DISCONNECTED_REASON_REPORTED"
5749            }
5750            Self::AtomAirplaneModeSessionReported => {
5751                "ATOM_AIRPLANE_MODE_SESSION_REPORTED"
5752            }
5753            Self::AtomVmCpuStatusReported => "ATOM_VM_CPU_STATUS_REPORTED",
5754            Self::AtomVmMemStatusReported => "ATOM_VM_MEM_STATUS_REPORTED",
5755            Self::AtomPackageInstallationSessionReported => {
5756                "ATOM_PACKAGE_INSTALLATION_SESSION_REPORTED"
5757            }
5758            Self::AtomDefaultNetworkRematchInfo => "ATOM_DEFAULT_NETWORK_REMATCH_INFO",
5759            Self::AtomNetworkSelectionPerformance => "ATOM_NETWORK_SELECTION_PERFORMANCE",
5760            Self::AtomNetworkNsdReported => "ATOM_NETWORK_NSD_REPORTED",
5761            Self::AtomBluetoothDisconnectionReasonReported => {
5762                "ATOM_BLUETOOTH_DISCONNECTION_REASON_REPORTED"
5763            }
5764            Self::AtomBluetoothLocalVersionsReported => {
5765                "ATOM_BLUETOOTH_LOCAL_VERSIONS_REPORTED"
5766            }
5767            Self::AtomBluetoothRemoteSupportedFeaturesReported => {
5768                "ATOM_BLUETOOTH_REMOTE_SUPPORTED_FEATURES_REPORTED"
5769            }
5770            Self::AtomBluetoothLocalSupportedFeaturesReported => {
5771                "ATOM_BLUETOOTH_LOCAL_SUPPORTED_FEATURES_REPORTED"
5772            }
5773            Self::AtomBluetoothGattAppInfo => "ATOM_BLUETOOTH_GATT_APP_INFO",
5774            Self::AtomBrightnessConfigurationUpdated => {
5775                "ATOM_BRIGHTNESS_CONFIGURATION_UPDATED"
5776            }
5777            Self::AtomWearMediaOutputSwitcherLaunched => {
5778                "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_LAUNCHED"
5779            }
5780            Self::AtomWearMediaOutputSwitcherFinished => {
5781                "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FINISHED"
5782            }
5783            Self::AtomWearMediaOutputSwitcherConnectionReported => {
5784                "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_CONNECTION_REPORTED"
5785            }
5786            Self::AtomWearMediaOutputSwitcherDeviceScanTriggered => {
5787                "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_DEVICE_SCAN_TRIGGERED"
5788            }
5789            Self::AtomWearMediaOutputSwitcherFirstDeviceScanLatency => {
5790                "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FIRST_DEVICE_SCAN_LATENCY"
5791            }
5792            Self::AtomWearMediaOutputSwitcherConnectDeviceLatency => {
5793                "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_CONNECT_DEVICE_LATENCY"
5794            }
5795            Self::AtomPackageManagerSnapshotReported => {
5796                "ATOM_PACKAGE_MANAGER_SNAPSHOT_REPORTED"
5797            }
5798            Self::AtomPackageManagerAppsFilterCacheBuildReported => {
5799                "ATOM_PACKAGE_MANAGER_APPS_FILTER_CACHE_BUILD_REPORTED"
5800            }
5801            Self::AtomPackageManagerAppsFilterCacheUpdateReported => {
5802                "ATOM_PACKAGE_MANAGER_APPS_FILTER_CACHE_UPDATE_REPORTED"
5803            }
5804            Self::AtomLauncherImpressionEvent => "ATOM_LAUNCHER_IMPRESSION_EVENT",
5805            Self::AtomWearMediaOutputSwitcherAllDevicesScanLatency => {
5806                "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_ALL_DEVICES_SCAN_LATENCY"
5807            }
5808            Self::AtomWsWatchFaceEdited => "ATOM_WS_WATCH_FACE_EDITED",
5809            Self::AtomWsWatchFaceFavoriteActionReported => {
5810                "ATOM_WS_WATCH_FACE_FAVORITE_ACTION_REPORTED"
5811            }
5812            Self::AtomWsWatchFaceSetActionReported => {
5813                "ATOM_WS_WATCH_FACE_SET_ACTION_REPORTED"
5814            }
5815            Self::AtomPackageUninstallationReported => {
5816                "ATOM_PACKAGE_UNINSTALLATION_REPORTED"
5817            }
5818            Self::AtomGameModeChanged => "ATOM_GAME_MODE_CHANGED",
5819            Self::AtomGameModeConfigurationChanged => {
5820                "ATOM_GAME_MODE_CONFIGURATION_CHANGED"
5821            }
5822            Self::AtomBedtimeModeStateChanged => "ATOM_BEDTIME_MODE_STATE_CHANGED",
5823            Self::AtomNetworkSliceSessionEnded => "ATOM_NETWORK_SLICE_SESSION_ENDED",
5824            Self::AtomNetworkSliceDailyDataUsageReported => {
5825                "ATOM_NETWORK_SLICE_DAILY_DATA_USAGE_REPORTED"
5826            }
5827            Self::AtomNfcTagTypeOccurred => "ATOM_NFC_TAG_TYPE_OCCURRED",
5828            Self::AtomNfcAidConflictOccurred => "ATOM_NFC_AID_CONFLICT_OCCURRED",
5829            Self::AtomNfcReaderConflictOccurred => "ATOM_NFC_READER_CONFLICT_OCCURRED",
5830            Self::AtomWsTileListChanged => "ATOM_WS_TILE_LIST_CHANGED",
5831            Self::AtomGetTypeAccessedWithoutPermission => {
5832                "ATOM_GET_TYPE_ACCESSED_WITHOUT_PERMISSION"
5833            }
5834            Self::AtomMobileBundledAppInfoGathered => {
5835                "ATOM_MOBILE_BUNDLED_APP_INFO_GATHERED"
5836            }
5837            Self::AtomWsWatchFaceComplicationSetChanged => {
5838                "ATOM_WS_WATCH_FACE_COMPLICATION_SET_CHANGED"
5839            }
5840            Self::AtomMediaDrmCreated => "ATOM_MEDIA_DRM_CREATED",
5841            Self::AtomMediaDrmErrored => "ATOM_MEDIA_DRM_ERRORED",
5842            Self::AtomMediaDrmSessionOpened => "ATOM_MEDIA_DRM_SESSION_OPENED",
5843            Self::AtomMediaDrmSessionClosed => "ATOM_MEDIA_DRM_SESSION_CLOSED",
5844            Self::AtomUserSelectedResolution => "ATOM_USER_SELECTED_RESOLUTION",
5845            Self::AtomUnsafeIntentEventReported => "ATOM_UNSAFE_INTENT_EVENT_REPORTED",
5846            Self::AtomPerformanceHintSessionReported => {
5847                "ATOM_PERFORMANCE_HINT_SESSION_REPORTED"
5848            }
5849            Self::AtomMediametricsMidiDeviceCloseReported => {
5850                "ATOM_MEDIAMETRICS_MIDI_DEVICE_CLOSE_REPORTED"
5851            }
5852            Self::AtomBiometricTouchReported => "ATOM_BIOMETRIC_TOUCH_REPORTED",
5853            Self::AtomHotwordAudioEgressEventReported => {
5854                "ATOM_HOTWORD_AUDIO_EGRESS_EVENT_REPORTED"
5855            }
5856            Self::AtomLocationEnabledStateChanged => {
5857                "ATOM_LOCATION_ENABLED_STATE_CHANGED"
5858            }
5859            Self::AtomImeRequestFinished => "ATOM_IME_REQUEST_FINISHED",
5860            Self::AtomUsbComplianceWarningsReported => {
5861                "ATOM_USB_COMPLIANCE_WARNINGS_REPORTED"
5862            }
5863            Self::AtomAppSupportedLocalesChanged => "ATOM_APP_SUPPORTED_LOCALES_CHANGED",
5864            Self::AtomMediaProviderVolumeRecoveryReported => {
5865                "ATOM_MEDIA_PROVIDER_VOLUME_RECOVERY_REPORTED"
5866            }
5867            Self::AtomBiometricPropertiesCollected => {
5868                "ATOM_BIOMETRIC_PROPERTIES_COLLECTED"
5869            }
5870            Self::AtomKernelWakeupAttributed => "ATOM_KERNEL_WAKEUP_ATTRIBUTED",
5871            Self::AtomScreenStateChangedV2 => "ATOM_SCREEN_STATE_CHANGED_V2",
5872            Self::AtomWsBackupActionReported => "ATOM_WS_BACKUP_ACTION_REPORTED",
5873            Self::AtomWsRestoreActionReported => "ATOM_WS_RESTORE_ACTION_REPORTED",
5874            Self::AtomDeviceLogAccessEventReported => {
5875                "ATOM_DEVICE_LOG_ACCESS_EVENT_REPORTED"
5876            }
5877            Self::AtomMediaSessionUpdated => "ATOM_MEDIA_SESSION_UPDATED",
5878            Self::AtomWearOobeStateChanged => "ATOM_WEAR_OOBE_STATE_CHANGED",
5879            Self::AtomWsNotificationUpdated => "ATOM_WS_NOTIFICATION_UPDATED",
5880            Self::AtomNetworkValidationFailureStatsDailyReported => {
5881                "ATOM_NETWORK_VALIDATION_FAILURE_STATS_DAILY_REPORTED"
5882            }
5883            Self::AtomWsComplicationTapped => "ATOM_WS_COMPLICATION_TAPPED",
5884            Self::AtomWsNotificationBlocking => "ATOM_WS_NOTIFICATION_BLOCKING",
5885            Self::AtomWsNotificationBridgemodeUpdated => {
5886                "ATOM_WS_NOTIFICATION_BRIDGEMODE_UPDATED"
5887            }
5888            Self::AtomWsNotificationDismissalActioned => {
5889                "ATOM_WS_NOTIFICATION_DISMISSAL_ACTIONED"
5890            }
5891            Self::AtomWsNotificationActioned => "ATOM_WS_NOTIFICATION_ACTIONED",
5892            Self::AtomWsNotificationLatency => "ATOM_WS_NOTIFICATION_LATENCY",
5893            Self::AtomWifiBytesTransfer => "ATOM_WIFI_BYTES_TRANSFER",
5894            Self::AtomWifiBytesTransferByFgBg => "ATOM_WIFI_BYTES_TRANSFER_BY_FG_BG",
5895            Self::AtomMobileBytesTransfer => "ATOM_MOBILE_BYTES_TRANSFER",
5896            Self::AtomMobileBytesTransferByFgBg => "ATOM_MOBILE_BYTES_TRANSFER_BY_FG_BG",
5897            Self::AtomBluetoothBytesTransfer => "ATOM_BLUETOOTH_BYTES_TRANSFER",
5898            Self::AtomKernelWakelock => "ATOM_KERNEL_WAKELOCK",
5899            Self::AtomSubsystemSleepState => "ATOM_SUBSYSTEM_SLEEP_STATE",
5900            Self::AtomCpuTimePerUid => "ATOM_CPU_TIME_PER_UID",
5901            Self::AtomCpuTimePerUidFreq => "ATOM_CPU_TIME_PER_UID_FREQ",
5902            Self::AtomWifiActivityInfo => "ATOM_WIFI_ACTIVITY_INFO",
5903            Self::AtomModemActivityInfo => "ATOM_MODEM_ACTIVITY_INFO",
5904            Self::AtomBluetoothActivityInfo => "ATOM_BLUETOOTH_ACTIVITY_INFO",
5905            Self::AtomProcessMemoryState => "ATOM_PROCESS_MEMORY_STATE",
5906            Self::AtomSystemElapsedRealtime => "ATOM_SYSTEM_ELAPSED_REALTIME",
5907            Self::AtomSystemUptime => "ATOM_SYSTEM_UPTIME",
5908            Self::AtomCpuActiveTime => "ATOM_CPU_ACTIVE_TIME",
5909            Self::AtomCpuClusterTime => "ATOM_CPU_CLUSTER_TIME",
5910            Self::AtomDiskSpace => "ATOM_DISK_SPACE",
5911            Self::AtomRemainingBatteryCapacity => "ATOM_REMAINING_BATTERY_CAPACITY",
5912            Self::AtomFullBatteryCapacity => "ATOM_FULL_BATTERY_CAPACITY",
5913            Self::AtomTemperature => "ATOM_TEMPERATURE",
5914            Self::AtomBinderCalls => "ATOM_BINDER_CALLS",
5915            Self::AtomBinderCallsExceptions => "ATOM_BINDER_CALLS_EXCEPTIONS",
5916            Self::AtomLooperStats => "ATOM_LOOPER_STATS",
5917            Self::AtomDiskStats => "ATOM_DISK_STATS",
5918            Self::AtomDirectoryUsage => "ATOM_DIRECTORY_USAGE",
5919            Self::AtomAppSize => "ATOM_APP_SIZE",
5920            Self::AtomCategorySize => "ATOM_CATEGORY_SIZE",
5921            Self::AtomProcStats => "ATOM_PROC_STATS",
5922            Self::AtomBatteryVoltage => "ATOM_BATTERY_VOLTAGE",
5923            Self::AtomNumFingerprintsEnrolled => "ATOM_NUM_FINGERPRINTS_ENROLLED",
5924            Self::AtomDiskIo => "ATOM_DISK_IO",
5925            Self::AtomPowerProfile => "ATOM_POWER_PROFILE",
5926            Self::AtomProcStatsPkgProc => "ATOM_PROC_STATS_PKG_PROC",
5927            Self::AtomProcessCpuTime => "ATOM_PROCESS_CPU_TIME",
5928            Self::AtomCpuTimePerThreadFreq => "ATOM_CPU_TIME_PER_THREAD_FREQ",
5929            Self::AtomOnDevicePowerMeasurement => "ATOM_ON_DEVICE_POWER_MEASUREMENT",
5930            Self::AtomDeviceCalculatedPowerUse => "ATOM_DEVICE_CALCULATED_POWER_USE",
5931            Self::AtomProcessMemoryHighWaterMark => "ATOM_PROCESS_MEMORY_HIGH_WATER_MARK",
5932            Self::AtomBatteryLevel => "ATOM_BATTERY_LEVEL",
5933            Self::AtomBuildInformation => "ATOM_BUILD_INFORMATION",
5934            Self::AtomBatteryCycleCount => "ATOM_BATTERY_CYCLE_COUNT",
5935            Self::AtomDebugElapsedClock => "ATOM_DEBUG_ELAPSED_CLOCK",
5936            Self::AtomDebugFailingElapsedClock => "ATOM_DEBUG_FAILING_ELAPSED_CLOCK",
5937            Self::AtomNumFacesEnrolled => "ATOM_NUM_FACES_ENROLLED",
5938            Self::AtomRoleHolder => "ATOM_ROLE_HOLDER",
5939            Self::AtomDangerousPermissionState => "ATOM_DANGEROUS_PERMISSION_STATE",
5940            Self::AtomTrainInfo => "ATOM_TRAIN_INFO",
5941            Self::AtomTimeZoneDataInfo => "ATOM_TIME_ZONE_DATA_INFO",
5942            Self::AtomExternalStorageInfo => "ATOM_EXTERNAL_STORAGE_INFO",
5943            Self::AtomGpuStatsGlobalInfo => "ATOM_GPU_STATS_GLOBAL_INFO",
5944            Self::AtomGpuStatsAppInfo => "ATOM_GPU_STATS_APP_INFO",
5945            Self::AtomSystemIonHeapSize => "ATOM_SYSTEM_ION_HEAP_SIZE",
5946            Self::AtomAppsOnExternalStorageInfo => "ATOM_APPS_ON_EXTERNAL_STORAGE_INFO",
5947            Self::AtomFaceSettings => "ATOM_FACE_SETTINGS",
5948            Self::AtomCoolingDevice => "ATOM_COOLING_DEVICE",
5949            Self::AtomAppOps => "ATOM_APP_OPS",
5950            Self::AtomProcessSystemIonHeapSize => "ATOM_PROCESS_SYSTEM_ION_HEAP_SIZE",
5951            Self::AtomSurfaceflingerStatsGlobalInfo => {
5952                "ATOM_SURFACEFLINGER_STATS_GLOBAL_INFO"
5953            }
5954            Self::AtomSurfaceflingerStatsLayerInfo => {
5955                "ATOM_SURFACEFLINGER_STATS_LAYER_INFO"
5956            }
5957            Self::AtomProcessMemorySnapshot => "ATOM_PROCESS_MEMORY_SNAPSHOT",
5958            Self::AtomVmsClientStats => "ATOM_VMS_CLIENT_STATS",
5959            Self::AtomNotificationRemoteViews => "ATOM_NOTIFICATION_REMOTE_VIEWS",
5960            Self::AtomDangerousPermissionStateSampled => {
5961                "ATOM_DANGEROUS_PERMISSION_STATE_SAMPLED"
5962            }
5963            Self::AtomGraphicsStats => "ATOM_GRAPHICS_STATS",
5964            Self::AtomRuntimeAppOpAccess => "ATOM_RUNTIME_APP_OP_ACCESS",
5965            Self::AtomIonHeapSize => "ATOM_ION_HEAP_SIZE",
5966            Self::AtomPackageNotificationPreferences => {
5967                "ATOM_PACKAGE_NOTIFICATION_PREFERENCES"
5968            }
5969            Self::AtomPackageNotificationChannelPreferences => {
5970                "ATOM_PACKAGE_NOTIFICATION_CHANNEL_PREFERENCES"
5971            }
5972            Self::AtomPackageNotificationChannelGroupPreferences => {
5973                "ATOM_PACKAGE_NOTIFICATION_CHANNEL_GROUP_PREFERENCES"
5974            }
5975            Self::AtomGnssStats => "ATOM_GNSS_STATS",
5976            Self::AtomAttributedAppOps => "ATOM_ATTRIBUTED_APP_OPS",
5977            Self::AtomVoiceCallSession => "ATOM_VOICE_CALL_SESSION",
5978            Self::AtomVoiceCallRatUsage => "ATOM_VOICE_CALL_RAT_USAGE",
5979            Self::AtomSimSlotState => "ATOM_SIM_SLOT_STATE",
5980            Self::AtomSupportedRadioAccessFamily => "ATOM_SUPPORTED_RADIO_ACCESS_FAMILY",
5981            Self::AtomSettingSnapshot => "ATOM_SETTING_SNAPSHOT",
5982            Self::AtomBlobInfo => "ATOM_BLOB_INFO",
5983            Self::AtomDataUsageBytesTransfer => "ATOM_DATA_USAGE_BYTES_TRANSFER",
5984            Self::AtomBytesTransferByTagAndMetered => {
5985                "ATOM_BYTES_TRANSFER_BY_TAG_AND_METERED"
5986            }
5987            Self::AtomDndModeRule => "ATOM_DND_MODE_RULE",
5988            Self::AtomGeneralExternalStorageAccessStats => {
5989                "ATOM_GENERAL_EXTERNAL_STORAGE_ACCESS_STATS"
5990            }
5991            Self::AtomIncomingSms => "ATOM_INCOMING_SMS",
5992            Self::AtomOutgoingSms => "ATOM_OUTGOING_SMS",
5993            Self::AtomCarrierIdTableVersion => "ATOM_CARRIER_ID_TABLE_VERSION",
5994            Self::AtomDataCallSession => "ATOM_DATA_CALL_SESSION",
5995            Self::AtomCellularServiceState => "ATOM_CELLULAR_SERVICE_STATE",
5996            Self::AtomCellularDataServiceSwitch => "ATOM_CELLULAR_DATA_SERVICE_SWITCH",
5997            Self::AtomSystemMemory => "ATOM_SYSTEM_MEMORY",
5998            Self::AtomImsRegistrationTermination => "ATOM_IMS_REGISTRATION_TERMINATION",
5999            Self::AtomImsRegistrationStats => "ATOM_IMS_REGISTRATION_STATS",
6000            Self::AtomCpuTimePerClusterFreq => "ATOM_CPU_TIME_PER_CLUSTER_FREQ",
6001            Self::AtomCpuCyclesPerUidCluster => "ATOM_CPU_CYCLES_PER_UID_CLUSTER",
6002            Self::AtomDeviceRotatedData => "ATOM_DEVICE_ROTATED_DATA",
6003            Self::AtomCpuCyclesPerThreadGroupCluster => {
6004                "ATOM_CPU_CYCLES_PER_THREAD_GROUP_CLUSTER"
6005            }
6006            Self::AtomMediaDrmActivityInfo => "ATOM_MEDIA_DRM_ACTIVITY_INFO",
6007            Self::AtomOemManagedBytesTransfer => "ATOM_OEM_MANAGED_BYTES_TRANSFER",
6008            Self::AtomGnssPowerStats => "ATOM_GNSS_POWER_STATS",
6009            Self::AtomTimeZoneDetectorState => "ATOM_TIME_ZONE_DETECTOR_STATE",
6010            Self::AtomKeystore2StorageStats => "ATOM_KEYSTORE2_STORAGE_STATS",
6011            Self::AtomRkpPoolStats => "ATOM_RKP_POOL_STATS",
6012            Self::AtomProcessDmabufMemory => "ATOM_PROCESS_DMABUF_MEMORY",
6013            Self::AtomPendingAlarmInfo => "ATOM_PENDING_ALARM_INFO",
6014            Self::AtomUserLevelHibernatedApps => "ATOM_USER_LEVEL_HIBERNATED_APPS",
6015            Self::AtomLauncherLayoutSnapshot => "ATOM_LAUNCHER_LAYOUT_SNAPSHOT",
6016            Self::AtomGlobalHibernatedApps => "ATOM_GLOBAL_HIBERNATED_APPS",
6017            Self::AtomInputEventLatencySketch => "ATOM_INPUT_EVENT_LATENCY_SKETCH",
6018            Self::AtomBatteryUsageStatsBeforeReset => {
6019                "ATOM_BATTERY_USAGE_STATS_BEFORE_RESET"
6020            }
6021            Self::AtomBatteryUsageStatsSinceReset => {
6022                "ATOM_BATTERY_USAGE_STATS_SINCE_RESET"
6023            }
6024            Self::AtomBatteryUsageStatsSinceResetUsingPowerProfileModel => {
6025                "ATOM_BATTERY_USAGE_STATS_SINCE_RESET_USING_POWER_PROFILE_MODEL"
6026            }
6027            Self::AtomInstalledIncrementalPackage => "ATOM_INSTALLED_INCREMENTAL_PACKAGE",
6028            Self::AtomTelephonyNetworkRequests => "ATOM_TELEPHONY_NETWORK_REQUESTS",
6029            Self::AtomAppSearchStorageInfo => "ATOM_APP_SEARCH_STORAGE_INFO",
6030            Self::AtomVmstat => "ATOM_VMSTAT",
6031            Self::AtomKeystore2KeyCreationWithGeneralInfo => {
6032                "ATOM_KEYSTORE2_KEY_CREATION_WITH_GENERAL_INFO"
6033            }
6034            Self::AtomKeystore2KeyCreationWithAuthInfo => {
6035                "ATOM_KEYSTORE2_KEY_CREATION_WITH_AUTH_INFO"
6036            }
6037            Self::AtomKeystore2KeyCreationWithPurposeAndModesInfo => {
6038                "ATOM_KEYSTORE2_KEY_CREATION_WITH_PURPOSE_AND_MODES_INFO"
6039            }
6040            Self::AtomKeystore2AtomWithOverflow => "ATOM_KEYSTORE2_ATOM_WITH_OVERFLOW",
6041            Self::AtomKeystore2KeyOperationWithPurposeAndModesInfo => {
6042                "ATOM_KEYSTORE2_KEY_OPERATION_WITH_PURPOSE_AND_MODES_INFO"
6043            }
6044            Self::AtomKeystore2KeyOperationWithGeneralInfo => {
6045                "ATOM_KEYSTORE2_KEY_OPERATION_WITH_GENERAL_INFO"
6046            }
6047            Self::AtomRkpErrorStats => "ATOM_RKP_ERROR_STATS",
6048            Self::AtomKeystore2CrashStats => "ATOM_KEYSTORE2_CRASH_STATS",
6049            Self::AtomVendorApexInfo => "ATOM_VENDOR_APEX_INFO",
6050            Self::AtomAccessibilityShortcutStats => "ATOM_ACCESSIBILITY_SHORTCUT_STATS",
6051            Self::AtomAccessibilityFloatingMenuStats => {
6052                "ATOM_ACCESSIBILITY_FLOATING_MENU_STATS"
6053            }
6054            Self::AtomDataUsageBytesTransferV2 => "ATOM_DATA_USAGE_BYTES_TRANSFER_V2",
6055            Self::AtomMediaCapabilities => "ATOM_MEDIA_CAPABILITIES",
6056            Self::AtomCarWatchdogSystemIoUsageSummary => {
6057                "ATOM_CAR_WATCHDOG_SYSTEM_IO_USAGE_SUMMARY"
6058            }
6059            Self::AtomCarWatchdogUidIoUsageSummary => {
6060                "ATOM_CAR_WATCHDOG_UID_IO_USAGE_SUMMARY"
6061            }
6062            Self::AtomImsRegistrationFeatureTagStats => {
6063                "ATOM_IMS_REGISTRATION_FEATURE_TAG_STATS"
6064            }
6065            Self::AtomRcsClientProvisioningStats => "ATOM_RCS_CLIENT_PROVISIONING_STATS",
6066            Self::AtomRcsAcsProvisioningStats => "ATOM_RCS_ACS_PROVISIONING_STATS",
6067            Self::AtomSipDelegateStats => "ATOM_SIP_DELEGATE_STATS",
6068            Self::AtomSipTransportFeatureTagStats => {
6069                "ATOM_SIP_TRANSPORT_FEATURE_TAG_STATS"
6070            }
6071            Self::AtomSipMessageResponse => "ATOM_SIP_MESSAGE_RESPONSE",
6072            Self::AtomSipTransportSession => "ATOM_SIP_TRANSPORT_SESSION",
6073            Self::AtomImsDedicatedBearerListenerEvent => {
6074                "ATOM_IMS_DEDICATED_BEARER_LISTENER_EVENT"
6075            }
6076            Self::AtomImsDedicatedBearerEvent => "ATOM_IMS_DEDICATED_BEARER_EVENT",
6077            Self::AtomImsRegistrationServiceDescStats => {
6078                "ATOM_IMS_REGISTRATION_SERVICE_DESC_STATS"
6079            }
6080            Self::AtomUceEventStats => "ATOM_UCE_EVENT_STATS",
6081            Self::AtomPresenceNotifyEvent => "ATOM_PRESENCE_NOTIFY_EVENT",
6082            Self::AtomGbaEvent => "ATOM_GBA_EVENT",
6083            Self::AtomPerSimStatus => "ATOM_PER_SIM_STATUS",
6084            Self::AtomGpuWorkPerUid => "ATOM_GPU_WORK_PER_UID",
6085            Self::AtomPersistentUriPermissionsAmountPerPackage => {
6086                "ATOM_PERSISTENT_URI_PERMISSIONS_AMOUNT_PER_PACKAGE"
6087            }
6088            Self::AtomSignedPartitionInfo => "ATOM_SIGNED_PARTITION_INFO",
6089            Self::AtomPinnedFileSizesPerPackage => "ATOM_PINNED_FILE_SIZES_PER_PACKAGE",
6090            Self::AtomPendingIntentsPerPackage => "ATOM_PENDING_INTENTS_PER_PACKAGE",
6091            Self::AtomUserInfo => "ATOM_USER_INFO",
6092            Self::AtomTelephonyNetworkRequestsV2 => "ATOM_TELEPHONY_NETWORK_REQUESTS_V2",
6093            Self::AtomDeviceTelephonyProperties => "ATOM_DEVICE_TELEPHONY_PROPERTIES",
6094            Self::AtomRemoteKeyProvisioningErrorCounts => {
6095                "ATOM_REMOTE_KEY_PROVISIONING_ERROR_COUNTS"
6096            }
6097            Self::AtomSafetyState => "ATOM_SAFETY_STATE",
6098            Self::AtomIncomingMms => "ATOM_INCOMING_MMS",
6099            Self::AtomOutgoingMms => "ATOM_OUTGOING_MMS",
6100            Self::AtomMultiUserInfo => "ATOM_MULTI_USER_INFO",
6101            Self::AtomNetworkBpfMapInfo => "ATOM_NETWORK_BPF_MAP_INFO",
6102            Self::AtomOutgoingShortCodeSms => "ATOM_OUTGOING_SHORT_CODE_SMS",
6103            Self::AtomConnectivityStateSample => "ATOM_CONNECTIVITY_STATE_SAMPLE",
6104            Self::AtomNetworkSelectionRematchReasonsInfo => {
6105                "ATOM_NETWORK_SELECTION_REMATCH_REASONS_INFO"
6106            }
6107            Self::AtomGameModeInfo => "ATOM_GAME_MODE_INFO",
6108            Self::AtomGameModeConfiguration => "ATOM_GAME_MODE_CONFIGURATION",
6109            Self::AtomGameModeListener => "ATOM_GAME_MODE_LISTENER",
6110            Self::AtomNetworkSliceRequestCount => "ATOM_NETWORK_SLICE_REQUEST_COUNT",
6111            Self::AtomWsTileSnapshot => "ATOM_WS_TILE_SNAPSHOT",
6112            Self::AtomWsActiveWatchFaceComplicationSetSnapshot => {
6113                "ATOM_WS_ACTIVE_WATCH_FACE_COMPLICATION_SET_SNAPSHOT"
6114            }
6115            Self::AtomProcessState => "ATOM_PROCESS_STATE",
6116            Self::AtomProcessAssociation => "ATOM_PROCESS_ASSOCIATION",
6117            Self::AtomAdpfSystemComponentInfo => "ATOM_ADPF_SYSTEM_COMPONENT_INFO",
6118            Self::AtomNotificationMemoryUse => "ATOM_NOTIFICATION_MEMORY_USE",
6119            Self::AtomHdrCapabilities => "ATOM_HDR_CAPABILITIES",
6120            Self::AtomWsFavouriteWatchFaceListSnapshot => {
6121                "ATOM_WS_FAVOURITE_WATCH_FACE_LIST_SNAPSHOT"
6122            }
6123            Self::AtomWifiAwareNdpReported => "ATOM_WIFI_AWARE_NDP_REPORTED",
6124            Self::AtomWifiAwareAttachReported => "ATOM_WIFI_AWARE_ATTACH_REPORTED",
6125            Self::AtomWifiSelfRecoveryTriggered => "ATOM_WIFI_SELF_RECOVERY_TRIGGERED",
6126            Self::AtomSoftApStarted => "ATOM_SOFT_AP_STARTED",
6127            Self::AtomSoftApStopped => "ATOM_SOFT_AP_STOPPED",
6128            Self::AtomWifiLockReleased => "ATOM_WIFI_LOCK_RELEASED",
6129            Self::AtomWifiLockDeactivated => "ATOM_WIFI_LOCK_DEACTIVATED",
6130            Self::AtomWifiConfigSaved => "ATOM_WIFI_CONFIG_SAVED",
6131            Self::AtomWifiAwareResourceUsingChanged => {
6132                "ATOM_WIFI_AWARE_RESOURCE_USING_CHANGED"
6133            }
6134            Self::AtomWifiAwareHalApiCalled => "ATOM_WIFI_AWARE_HAL_API_CALLED",
6135            Self::AtomWifiLocalOnlyRequestReceived => {
6136                "ATOM_WIFI_LOCAL_ONLY_REQUEST_RECEIVED"
6137            }
6138            Self::AtomWifiLocalOnlyRequestScanTriggered => {
6139                "ATOM_WIFI_LOCAL_ONLY_REQUEST_SCAN_TRIGGERED"
6140            }
6141            Self::AtomWifiThreadTaskExecuted => "ATOM_WIFI_THREAD_TASK_EXECUTED",
6142            Self::AtomWifiStateChanged => "ATOM_WIFI_STATE_CHANGED",
6143            Self::AtomPnoScanStarted => "ATOM_PNO_SCAN_STARTED",
6144            Self::AtomPnoScanStopped => "ATOM_PNO_SCAN_STOPPED",
6145            Self::AtomWifiIsUnusableReported => "ATOM_WIFI_IS_UNUSABLE_REPORTED",
6146            Self::AtomWifiApCapabilitiesReported => "ATOM_WIFI_AP_CAPABILITIES_REPORTED",
6147            Self::AtomSoftApStateChanged => "ATOM_SOFT_AP_STATE_CHANGED",
6148            Self::AtomScorerPredictionResultReported => {
6149                "ATOM_SCORER_PREDICTION_RESULT_REPORTED"
6150            }
6151            Self::AtomWifiAwareCapabilities => "ATOM_WIFI_AWARE_CAPABILITIES",
6152            Self::AtomWifiModuleInfo => "ATOM_WIFI_MODULE_INFO",
6153            Self::AtomWifiSettingInfo => "ATOM_WIFI_SETTING_INFO",
6154            Self::AtomWifiComplexSettingInfo => "ATOM_WIFI_COMPLEX_SETTING_INFO",
6155            Self::AtomWifiConfiguredNetworkInfo => "ATOM_WIFI_CONFIGURED_NETWORK_INFO",
6156            Self::AtomWearPowerMenuOpened => "ATOM_WEAR_POWER_MENU_OPENED",
6157            Self::AtomWearAssistantOpened => "ATOM_WEAR_ASSISTANT_OPENED",
6158            Self::AtomFirstOverlayStateChanged => "ATOM_FIRST_OVERLAY_STATE_CHANGED",
6159            Self::AtomWsWearTimeSession => "ATOM_WS_WEAR_TIME_SESSION",
6160            Self::AtomWsIncomingCallActionReported => {
6161                "ATOM_WS_INCOMING_CALL_ACTION_REPORTED"
6162            }
6163            Self::AtomWsCallDisconnectionReported => {
6164                "ATOM_WS_CALL_DISCONNECTION_REPORTED"
6165            }
6166            Self::AtomWsCallDurationReported => "ATOM_WS_CALL_DURATION_REPORTED",
6167            Self::AtomWsCallUserExperienceLatencyReported => {
6168                "ATOM_WS_CALL_USER_EXPERIENCE_LATENCY_REPORTED"
6169            }
6170            Self::AtomWsCallInteractionReported => "ATOM_WS_CALL_INTERACTION_REPORTED",
6171            Self::AtomWsOnBodyStateChanged => "ATOM_WS_ON_BODY_STATE_CHANGED",
6172            Self::AtomWsWatchFaceRestrictedComplicationsImpacted => {
6173                "ATOM_WS_WATCH_FACE_RESTRICTED_COMPLICATIONS_IMPACTED"
6174            }
6175            Self::AtomWsWatchFaceDefaultRestrictedComplicationsRemoved => {
6176                "ATOM_WS_WATCH_FACE_DEFAULT_RESTRICTED_COMPLICATIONS_REMOVED"
6177            }
6178            Self::AtomWsComplicationsImpactedNotificationEventReported => {
6179                "ATOM_WS_COMPLICATIONS_IMPACTED_NOTIFICATION_EVENT_REPORTED"
6180            }
6181            Self::AtomWsRemoteEventUsageReported => "ATOM_WS_REMOTE_EVENT_USAGE_REPORTED",
6182            Self::AtomWsNotificationManagedDismissalSync => {
6183                "ATOM_WS_NOTIFICATION_MANAGED_DISMISSAL_SYNC"
6184            }
6185            Self::AtomWsBugreportEventReported => "ATOM_WS_BUGREPORT_EVENT_REPORTED",
6186            Self::AtomWsStandaloneModeSnapshot => "ATOM_WS_STANDALONE_MODE_SNAPSHOT",
6187            Self::AtomWsFavoriteWatchFaceSnapshot => {
6188                "ATOM_WS_FAVORITE_WATCH_FACE_SNAPSHOT"
6189            }
6190            Self::AtomWsPhotosWatchFaceFeatureSnapshot => {
6191                "ATOM_WS_PHOTOS_WATCH_FACE_FEATURE_SNAPSHOT"
6192            }
6193            Self::AtomWsWatchFaceCustomizationSnapshot => {
6194                "ATOM_WS_WATCH_FACE_CUSTOMIZATION_SNAPSHOT"
6195            }
6196            Self::AtomWearAdaptiveSuspendStatsReported => {
6197                "ATOM_WEAR_ADAPTIVE_SUSPEND_STATS_REPORTED"
6198            }
6199            Self::AtomWearPowerAnomalyServiceOperationalStatsReported => {
6200                "ATOM_WEAR_POWER_ANOMALY_SERVICE_OPERATIONAL_STATS_REPORTED"
6201            }
6202            Self::AtomWearPowerAnomalyServiceEventStatsReported => {
6203                "ATOM_WEAR_POWER_ANOMALY_SERVICE_EVENT_STATS_REPORTED"
6204            }
6205            Self::AtomWearTimeSyncRequested => "ATOM_WEAR_TIME_SYNC_REQUESTED",
6206            Self::AtomWearTimeUpdateStarted => "ATOM_WEAR_TIME_UPDATE_STARTED",
6207            Self::AtomWearTimeSyncAttemptCompleted => {
6208                "ATOM_WEAR_TIME_SYNC_ATTEMPT_COMPLETED"
6209            }
6210            Self::AtomWearTimeChanged => "ATOM_WEAR_TIME_CHANGED",
6211            Self::AtomWearSetupWizardDeviceStatusReported => {
6212                "ATOM_WEAR_SETUP_WIZARD_DEVICE_STATUS_REPORTED"
6213            }
6214            Self::AtomWearSetupWizardPairingCompleted => {
6215                "ATOM_WEAR_SETUP_WIZARD_PAIRING_COMPLETED"
6216            }
6217            Self::AtomWearSetupWizardConnectionEstablished => {
6218                "ATOM_WEAR_SETUP_WIZARD_CONNECTION_ESTABLISHED"
6219            }
6220            Self::AtomWearSetupWizardCheckinCompleted => {
6221                "ATOM_WEAR_SETUP_WIZARD_CHECKIN_COMPLETED"
6222            }
6223            Self::AtomWearSetupWizardCompanionTimeReported => {
6224                "ATOM_WEAR_SETUP_WIZARD_COMPANION_TIME_REPORTED"
6225            }
6226            Self::AtomWearSetupWizardStatusReported => {
6227                "ATOM_WEAR_SETUP_WIZARD_STATUS_REPORTED"
6228            }
6229            Self::AtomWearSetupWizardHeartbeatReported => {
6230                "ATOM_WEAR_SETUP_WIZARD_HEARTBEAT_REPORTED"
6231            }
6232            Self::AtomWearSetupWizardFrpTriggered => {
6233                "ATOM_WEAR_SETUP_WIZARD_FRP_TRIGGERED"
6234            }
6235            Self::AtomWearSetupWizardSystemUpdateTriggered => {
6236                "ATOM_WEAR_SETUP_WIZARD_SYSTEM_UPDATE_TRIGGERED"
6237            }
6238            Self::AtomWearSetupWizardPhoneSwitchTriggered => {
6239                "ATOM_WEAR_SETUP_WIZARD_PHONE_SWITCH_TRIGGERED"
6240            }
6241            Self::AtomRendererInitialized => "ATOM_RENDERER_INITIALIZED",
6242            Self::AtomSchemaVersionReceived => "ATOM_SCHEMA_VERSION_RECEIVED",
6243            Self::AtomLayoutInspected => "ATOM_LAYOUT_INSPECTED",
6244            Self::AtomLayoutExpressionInspected => "ATOM_LAYOUT_EXPRESSION_INSPECTED",
6245            Self::AtomLayoutAnimationsInspected => "ATOM_LAYOUT_ANIMATIONS_INSPECTED",
6246            Self::AtomMaterialComponentsInspected => "ATOM_MATERIAL_COMPONENTS_INSPECTED",
6247            Self::AtomTileRequested => "ATOM_TILE_REQUESTED",
6248            Self::AtomStateResponseReceived => "ATOM_STATE_RESPONSE_RECEIVED",
6249            Self::AtomTileResponseReceived => "ATOM_TILE_RESPONSE_RECEIVED",
6250            Self::AtomInflationFinished => "ATOM_INFLATION_FINISHED",
6251            Self::AtomInflationFailed => "ATOM_INFLATION_FAILED",
6252            Self::AtomIgnoredInflationFailuresReported => {
6253                "ATOM_IGNORED_INFLATION_FAILURES_REPORTED"
6254            }
6255            Self::AtomDrawableRendered => "ATOM_DRAWABLE_RENDERED",
6256            Self::AtomWearModeStateChanged => "ATOM_WEAR_MODE_STATE_CHANGED",
6257            Self::AtomMediaActionReported => "ATOM_MEDIA_ACTION_REPORTED",
6258            Self::AtomMediaControlsLaunched => "ATOM_MEDIA_CONTROLS_LAUNCHED",
6259            Self::AtomMediaSessionStateChanged => "ATOM_MEDIA_SESSION_STATE_CHANGED",
6260            Self::AtomMediaControlApiUsageReported => {
6261                "ATOM_MEDIA_CONTROL_API_USAGE_REPORTED"
6262            }
6263            Self::AtomMediaSubscriptionChanged => "ATOM_MEDIA_SUBSCRIPTION_CHANGED",
6264            Self::AtomWearMediaOutputSwitcherDeviceScanApiLatency => {
6265                "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_DEVICE_SCAN_API_LATENCY"
6266            }
6267            Self::AtomWearMediaOutputSwitcherSassDeviceUnavailable => {
6268                "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_SASS_DEVICE_UNAVAILABLE"
6269            }
6270            Self::AtomWearMediaOutputSwitcherFastpairApiTimeout => {
6271                "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FASTPAIR_API_TIMEOUT"
6272            }
6273            Self::AtomMediatorUpdated => "ATOM_MEDIATOR_UPDATED",
6274            Self::AtomSysproxyBluetoothBytesTransfer => {
6275                "ATOM_SYSPROXY_BLUETOOTH_BYTES_TRANSFER"
6276            }
6277            Self::AtomSysproxyConnectionUpdated => "ATOM_SYSPROXY_CONNECTION_UPDATED",
6278            Self::AtomWearCompanionConnectionState => {
6279                "ATOM_WEAR_COMPANION_CONNECTION_STATE"
6280            }
6281            Self::AtomSysproxyServiceStateUpdated => {
6282                "ATOM_SYSPROXY_SERVICE_STATE_UPDATED"
6283            }
6284            Self::AtomUwbActivityInfo => "ATOM_UWB_ACTIVITY_INFO",
6285            Self::AtomTestUprobestatsAtomReported => {
6286                "ATOM_TEST_UPROBESTATS_ATOM_REPORTED"
6287            }
6288            Self::AtomTvLowPowerStandbyPolicy => "ATOM_TV_LOW_POWER_STANDBY_POLICY",
6289            Self::AtomExternalTvInputEvent => "ATOM_EXTERNAL_TV_INPUT_EVENT",
6290            Self::AtomBootIntegrityInfoReported => "ATOM_BOOT_INTEGRITY_INFO_REPORTED",
6291            Self::AtomThreadnetworkTelemetryDataReported => {
6292                "ATOM_THREADNETWORK_TELEMETRY_DATA_REPORTED"
6293            }
6294            Self::AtomThreadnetworkTopoEntryRepeated => {
6295                "ATOM_THREADNETWORK_TOPO_ENTRY_REPEATED"
6296            }
6297            Self::AtomThreadnetworkDeviceInfoReported => {
6298                "ATOM_THREADNETWORK_DEVICE_INFO_REPORTED"
6299            }
6300            Self::AtomCellularRadioPowerStateChanged => {
6301                "ATOM_CELLULAR_RADIO_POWER_STATE_CHANGED"
6302            }
6303            Self::AtomEmergencyNumbersInfo => "ATOM_EMERGENCY_NUMBERS_INFO",
6304            Self::AtomDataNetworkValidation => "ATOM_DATA_NETWORK_VALIDATION",
6305            Self::AtomDataRatStateChanged => "ATOM_DATA_RAT_STATE_CHANGED",
6306            Self::AtomConnectedChannelChanged => "ATOM_CONNECTED_CHANNEL_CHANGED",
6307            Self::AtomCellularIdentifierDisclosed => "ATOM_CELLULAR_IDENTIFIER_DISCLOSED",
6308            Self::AtomSatelliteController => "ATOM_SATELLITE_CONTROLLER",
6309            Self::AtomSatelliteSession => "ATOM_SATELLITE_SESSION",
6310            Self::AtomSatelliteIncomingDatagram => "ATOM_SATELLITE_INCOMING_DATAGRAM",
6311            Self::AtomSatelliteOutgoingDatagram => "ATOM_SATELLITE_OUTGOING_DATAGRAM",
6312            Self::AtomSatelliteProvision => "ATOM_SATELLITE_PROVISION",
6313            Self::AtomSatelliteSosMessageRecommender => {
6314                "ATOM_SATELLITE_SOS_MESSAGE_RECOMMENDER"
6315            }
6316            Self::AtomCarrierRoamingSatelliteSession => {
6317                "ATOM_CARRIER_ROAMING_SATELLITE_SESSION"
6318            }
6319            Self::AtomCarrierRoamingSatelliteControllerStats => {
6320                "ATOM_CARRIER_ROAMING_SATELLITE_CONTROLLER_STATS"
6321            }
6322            Self::AtomControllerStatsPerPackage => "ATOM_CONTROLLER_STATS_PER_PACKAGE",
6323            Self::AtomSatelliteEntitlement => "ATOM_SATELLITE_ENTITLEMENT",
6324            Self::AtomSatelliteConfigUpdater => "ATOM_SATELLITE_CONFIG_UPDATER",
6325            Self::AtomSatelliteAccessController => "ATOM_SATELLITE_ACCESS_CONTROLLER",
6326            Self::AtomQualifiedRatListChanged => "ATOM_QUALIFIED_RAT_LIST_CHANGED",
6327            Self::AtomQnsImsCallDropStats => "ATOM_QNS_IMS_CALL_DROP_STATS",
6328            Self::AtomQnsFallbackRestrictionChanged => {
6329                "ATOM_QNS_FALLBACK_RESTRICTION_CHANGED"
6330            }
6331            Self::AtomQnsRatPreferenceMismatchInfo => {
6332                "ATOM_QNS_RAT_PREFERENCE_MISMATCH_INFO"
6333            }
6334            Self::AtomQnsHandoverTimeMillis => "ATOM_QNS_HANDOVER_TIME_MILLIS",
6335            Self::AtomQnsHandoverPingpong => "ATOM_QNS_HANDOVER_PINGPONG",
6336            Self::AtomIwlanUnderlyingNetworkValidationResultReported => {
6337                "ATOM_IWLAN_UNDERLYING_NETWORK_VALIDATION_RESULT_REPORTED"
6338            }
6339            Self::AtomEmergencyNumberDialed => "ATOM_EMERGENCY_NUMBER_DIALED",
6340            Self::AtomCallStats => "ATOM_CALL_STATS",
6341            Self::AtomCallAudioRouteStats => "ATOM_CALL_AUDIO_ROUTE_STATS",
6342            Self::AtomTelecomApiStats => "ATOM_TELECOM_API_STATS",
6343            Self::AtomTelecomErrorStats => "ATOM_TELECOM_ERROR_STATS",
6344            Self::AtomLockscreenShortcutSelected => "ATOM_LOCKSCREEN_SHORTCUT_SELECTED",
6345            Self::AtomLockscreenShortcutTriggered => "ATOM_LOCKSCREEN_SHORTCUT_TRIGGERED",
6346            Self::AtomLauncherImpressionEventV2 => "ATOM_LAUNCHER_IMPRESSION_EVENT_V2",
6347            Self::AtomDisplaySwitchLatencyTracked => {
6348                "ATOM_DISPLAY_SWITCH_LATENCY_TRACKED"
6349            }
6350            Self::AtomNotificationListenerService => "ATOM_NOTIFICATION_LISTENER_SERVICE",
6351            Self::AtomNavHandleTouchPoints => "ATOM_NAV_HANDLE_TOUCH_POINTS",
6352            Self::AtomCommunalHubWidgetEventReported => {
6353                "ATOM_COMMUNAL_HUB_WIDGET_EVENT_REPORTED"
6354            }
6355            Self::AtomPeripheralTutorialLaunched => "ATOM_PERIPHERAL_TUTORIAL_LAUNCHED",
6356            Self::AtomContextualEducationTriggered => {
6357                "ATOM_CONTEXTUAL_EDUCATION_TRIGGERED"
6358            }
6359            Self::AtomCommunalHubSnapshot => "ATOM_COMMUNAL_HUB_SNAPSHOT",
6360            Self::AtomTestExtensionAtomReported => "ATOM_TEST_EXTENSION_ATOM_REPORTED",
6361            Self::AtomTestRestrictedAtomReported => "ATOM_TEST_RESTRICTED_ATOM_REPORTED",
6362            Self::AtomStatsSocketLossReported => "ATOM_STATS_SOCKET_LOSS_REPORTED",
6363            Self::AtomSettingsSpaReported => "ATOM_SETTINGS_SPA_REPORTED",
6364            Self::AtomSelinuxAuditLog => "ATOM_SELINUX_AUDIT_LOG",
6365            Self::AtomSandboxApiCalled => "ATOM_SANDBOX_API_CALLED",
6366            Self::AtomSandboxActivityEventOccurred => {
6367                "ATOM_SANDBOX_ACTIVITY_EVENT_OCCURRED"
6368            }
6369            Self::AtomSdkSandboxRestrictedAccessInSession => {
6370                "ATOM_SDK_SANDBOX_RESTRICTED_ACCESS_IN_SESSION"
6371            }
6372            Self::AtomSandboxSdkStorage => "ATOM_SANDBOX_SDK_STORAGE",
6373            Self::AtomRkpdPoolStats => "ATOM_RKPD_POOL_STATS",
6374            Self::AtomRkpdClientOperation => "ATOM_RKPD_CLIENT_OPERATION",
6375            Self::AtomRangingSessionConfigured => "ATOM_RANGING_SESSION_CONFIGURED",
6376            Self::AtomRangingSessionStarted => "ATOM_RANGING_SESSION_STARTED",
6377            Self::AtomRangingSessionClosed => "ATOM_RANGING_SESSION_CLOSED",
6378            Self::AtomRangingTechnologyStarted => "ATOM_RANGING_TECHNOLOGY_STARTED",
6379            Self::AtomRangingTechnologyStopped => "ATOM_RANGING_TECHNOLOGY_STOPPED",
6380            Self::AtomMediaProviderDatabaseRollbackReported => {
6381                "ATOM_MEDIA_PROVIDER_DATABASE_ROLLBACK_REPORTED"
6382            }
6383            Self::AtomBackupSetupStatusReported => "ATOM_BACKUP_SETUP_STATUS_REPORTED",
6384            Self::AtomScreenOffReported => "ATOM_SCREEN_OFF_REPORTED",
6385            Self::AtomScreenTimeoutOverrideReported => {
6386                "ATOM_SCREEN_TIMEOUT_OVERRIDE_REPORTED"
6387            }
6388            Self::AtomScreenInteractiveSessionReported => {
6389                "ATOM_SCREEN_INTERACTIVE_SESSION_REPORTED"
6390            }
6391            Self::AtomScreenDimReported => "ATOM_SCREEN_DIM_REPORTED",
6392            Self::AtomAtom9999 => "ATOM_ATOM_9999",
6393            Self::AtomAtom99999 => "ATOM_ATOM_99999",
6394            Self::AtomPhotopickerSessionInfoReported => {
6395                "ATOM_PHOTOPICKER_SESSION_INFO_REPORTED"
6396            }
6397            Self::AtomPhotopickerApiInfoReported => "ATOM_PHOTOPICKER_API_INFO_REPORTED",
6398            Self::AtomPhotopickerUiEventLogged => "ATOM_PHOTOPICKER_UI_EVENT_LOGGED",
6399            Self::AtomPhotopickerMediaItemStatusReported => {
6400                "ATOM_PHOTOPICKER_MEDIA_ITEM_STATUS_REPORTED"
6401            }
6402            Self::AtomPhotopickerPreviewInfoLogged => {
6403                "ATOM_PHOTOPICKER_PREVIEW_INFO_LOGGED"
6404            }
6405            Self::AtomPhotopickerMenuInteractionLogged => {
6406                "ATOM_PHOTOPICKER_MENU_INTERACTION_LOGGED"
6407            }
6408            Self::AtomPhotopickerBannerInteractionLogged => {
6409                "ATOM_PHOTOPICKER_BANNER_INTERACTION_LOGGED"
6410            }
6411            Self::AtomPhotopickerMediaLibraryInfoLogged => {
6412                "ATOM_PHOTOPICKER_MEDIA_LIBRARY_INFO_LOGGED"
6413            }
6414            Self::AtomPhotopickerPageInfoLogged => "ATOM_PHOTOPICKER_PAGE_INFO_LOGGED",
6415            Self::AtomPhotopickerMediaGridSyncInfoReported => {
6416                "ATOM_PHOTOPICKER_MEDIA_GRID_SYNC_INFO_REPORTED"
6417            }
6418            Self::AtomPhotopickerAlbumSyncInfoReported => {
6419                "ATOM_PHOTOPICKER_ALBUM_SYNC_INFO_REPORTED"
6420            }
6421            Self::AtomPhotopickerSearchInfoReported => {
6422                "ATOM_PHOTOPICKER_SEARCH_INFO_REPORTED"
6423            }
6424            Self::AtomSearchDataExtractionDetailsReported => {
6425                "ATOM_SEARCH_DATA_EXTRACTION_DETAILS_REPORTED"
6426            }
6427            Self::AtomEmbeddedPhotopickerInfoReported => {
6428                "ATOM_EMBEDDED_PHOTOPICKER_INFO_REPORTED"
6429            }
6430            Self::AtomPermissionRationaleDialogViewed => {
6431                "ATOM_PERMISSION_RATIONALE_DIALOG_VIEWED"
6432            }
6433            Self::AtomPermissionRationaleDialogActionReported => {
6434                "ATOM_PERMISSION_RATIONALE_DIALOG_ACTION_REPORTED"
6435            }
6436            Self::AtomAppDataSharingUpdatesNotificationInteraction => {
6437                "ATOM_APP_DATA_SHARING_UPDATES_NOTIFICATION_INTERACTION"
6438            }
6439            Self::AtomAppDataSharingUpdatesFragmentViewed => {
6440                "ATOM_APP_DATA_SHARING_UPDATES_FRAGMENT_VIEWED"
6441            }
6442            Self::AtomAppDataSharingUpdatesFragmentActionReported => {
6443                "ATOM_APP_DATA_SHARING_UPDATES_FRAGMENT_ACTION_REPORTED"
6444            }
6445            Self::AtomEnhancedConfirmationDialogResultReported => {
6446                "ATOM_ENHANCED_CONFIRMATION_DIALOG_RESULT_REPORTED"
6447            }
6448            Self::AtomEnhancedConfirmationRestrictionCleared => {
6449                "ATOM_ENHANCED_CONFIRMATION_RESTRICTION_CLEARED"
6450            }
6451            Self::AtomPressureStallInformation => "ATOM_PRESSURE_STALL_INFORMATION",
6452            Self::AtomPdfLoadReported => "ATOM_PDF_LOAD_REPORTED",
6453            Self::AtomPdfApiUsageReported => "ATOM_PDF_API_USAGE_REPORTED",
6454            Self::AtomPdfSearchReported => "ATOM_PDF_SEARCH_REPORTED",
6455            Self::AtomComponentStateChangedReported => {
6456                "ATOM_COMPONENT_STATE_CHANGED_REPORTED"
6457            }
6458            Self::AtomOndevicepersonalizationApiCalled => {
6459                "ATOM_ONDEVICEPERSONALIZATION_API_CALLED"
6460            }
6461            Self::AtomOndevicepersonalizationTraceEvent => {
6462                "ATOM_ONDEVICEPERSONALIZATION_TRACE_EVENT"
6463            }
6464            Self::AtomNfcObserveModeStateChanged => "ATOM_NFC_OBSERVE_MODE_STATE_CHANGED",
6465            Self::AtomNfcFieldChanged => "ATOM_NFC_FIELD_CHANGED",
6466            Self::AtomNfcPollingLoopNotificationReported => {
6467                "ATOM_NFC_POLLING_LOOP_NOTIFICATION_REPORTED"
6468            }
6469            Self::AtomNfcProprietaryCapabilitiesReported => {
6470                "ATOM_NFC_PROPRIETARY_CAPABILITIES_REPORTED"
6471            }
6472            Self::AtomNfcExitFrameTableChanged => "ATOM_NFC_EXIT_FRAME_TABLE_CHANGED",
6473            Self::AtomNfcAutoTransactReported => "ATOM_NFC_AUTO_TRANSACT_REPORTED",
6474            Self::AtomMicroxrDeviceBootCompleteReported => {
6475                "ATOM_MICROXR_DEVICE_BOOT_COMPLETE_REPORTED"
6476            }
6477            Self::AtomMteState => "ATOM_MTE_STATE",
6478            Self::AtomZramMaintenanceExecuted => "ATOM_ZRAM_MAINTENANCE_EXECUTED",
6479            Self::AtomZramSetupExecuted => "ATOM_ZRAM_SETUP_EXECUTED",
6480            Self::AtomZramMmStatMmd => "ATOM_ZRAM_MM_STAT_MMD",
6481            Self::AtomZramBdStatMmd => "ATOM_ZRAM_BD_STAT_MMD",
6482            Self::AtomMediaEditingEndedReported => "ATOM_MEDIA_EDITING_ENDED_REPORTED",
6483            Self::AtomMediaCodecReclaimRequestCompleted => {
6484                "ATOM_MEDIA_CODEC_RECLAIM_REQUEST_COMPLETED"
6485            }
6486            Self::AtomMediaCodecStarted => "ATOM_MEDIA_CODEC_STARTED",
6487            Self::AtomMediaCodecStopped => "ATOM_MEDIA_CODEC_STOPPED",
6488            Self::AtomMediaCodecRendered => "ATOM_MEDIA_CODEC_RENDERED",
6489            Self::AtomEmergencyStateChanged => "ATOM_EMERGENCY_STATE_CHANGED",
6490            Self::AtomChreSignificantMotionStateChanged => {
6491                "ATOM_CHRE_SIGNIFICANT_MOTION_STATE_CHANGED"
6492            }
6493            Self::AtomPopulationDensityProviderLoadingReported => {
6494                "ATOM_POPULATION_DENSITY_PROVIDER_LOADING_REPORTED"
6495            }
6496            Self::AtomDensityBasedCoarseLocationsUsageReported => {
6497                "ATOM_DENSITY_BASED_COARSE_LOCATIONS_USAGE_REPORTED"
6498            }
6499            Self::AtomDensityBasedCoarseLocationsProviderQueryReported => {
6500                "ATOM_DENSITY_BASED_COARSE_LOCATIONS_PROVIDER_QUERY_REPORTED"
6501            }
6502            Self::AtomKernelOomKillOccurred => "ATOM_KERNEL_OOM_KILL_OCCURRED",
6503            Self::AtomKeyboardConfigured => "ATOM_KEYBOARD_CONFIGURED",
6504            Self::AtomKeyboardSystemsEventReported => {
6505                "ATOM_KEYBOARD_SYSTEMS_EVENT_REPORTED"
6506            }
6507            Self::AtomInputdeviceUsageReported => "ATOM_INPUTDEVICE_USAGE_REPORTED",
6508            Self::AtomInputEventLatencyReported => "ATOM_INPUT_EVENT_LATENCY_REPORTED",
6509            Self::AtomTouchpadUsage => "ATOM_TOUCHPAD_USAGE",
6510            Self::AtomIkeSessionTerminated => "ATOM_IKE_SESSION_TERMINATED",
6511            Self::AtomIkeLivenessCheckSessionValidated => {
6512                "ATOM_IKE_LIVENESS_CHECK_SESSION_VALIDATED"
6513            }
6514            Self::AtomNegotiatedSecurityAssociation => {
6515                "ATOM_NEGOTIATED_SECURITY_ASSOCIATION"
6516            }
6517            Self::AtomHotwordEgressSizeAtomReported => {
6518                "ATOM_HOTWORD_EGRESS_SIZE_ATOM_REPORTED"
6519            }
6520            Self::AtomHealthConnectUiImpression => "ATOM_HEALTH_CONNECT_UI_IMPRESSION",
6521            Self::AtomHealthConnectUiInteraction => "ATOM_HEALTH_CONNECT_UI_INTERACTION",
6522            Self::AtomHealthConnectAppOpenedReported => {
6523                "ATOM_HEALTH_CONNECT_APP_OPENED_REPORTED"
6524            }
6525            Self::AtomHealthConnectApiCalled => "ATOM_HEALTH_CONNECT_API_CALLED",
6526            Self::AtomHealthConnectUsageStats => "ATOM_HEALTH_CONNECT_USAGE_STATS",
6527            Self::AtomHealthConnectStorageStats => "ATOM_HEALTH_CONNECT_STORAGE_STATS",
6528            Self::AtomHealthConnectApiInvoked => "ATOM_HEALTH_CONNECT_API_INVOKED",
6529            Self::AtomExerciseRouteApiCalled => "ATOM_EXERCISE_ROUTE_API_CALLED",
6530            Self::AtomHealthConnectExportInvoked => "ATOM_HEALTH_CONNECT_EXPORT_INVOKED",
6531            Self::AtomHealthConnectImportInvoked => "ATOM_HEALTH_CONNECT_IMPORT_INVOKED",
6532            Self::AtomHealthConnectExportImportStatsReported => {
6533                "ATOM_HEALTH_CONNECT_EXPORT_IMPORT_STATS_REPORTED"
6534            }
6535            Self::AtomHealthConnectPermissionStats => {
6536                "ATOM_HEALTH_CONNECT_PERMISSION_STATS"
6537            }
6538            Self::AtomHealthConnectPhrApiInvoked => "ATOM_HEALTH_CONNECT_PHR_API_INVOKED",
6539            Self::AtomHealthConnectPhrUsageStats => "ATOM_HEALTH_CONNECT_PHR_USAGE_STATS",
6540            Self::AtomHealthConnectPhrStorageStats => {
6541                "ATOM_HEALTH_CONNECT_PHR_STORAGE_STATS"
6542            }
6543            Self::AtomHealthConnectRestrictedEcosystemStats => {
6544                "ATOM_HEALTH_CONNECT_RESTRICTED_ECOSYSTEM_STATS"
6545            }
6546            Self::AtomHealthConnectEcosystemStats => {
6547                "ATOM_HEALTH_CONNECT_ECOSYSTEM_STATS"
6548            }
6549            Self::AtomHdmiEarcStatusReported => "ATOM_HDMI_EARC_STATUS_REPORTED",
6550            Self::AtomHdmiSoundbarModeStatusReported => {
6551                "ATOM_HDMI_SOUNDBAR_MODE_STATUS_REPORTED"
6552            }
6553            Self::AtomHdmiPowerStateChangeOnActiveSourceLostToggled => {
6554                "ATOM_HDMI_POWER_STATE_CHANGE_ON_ACTIVE_SOURCE_LOST_TOGGLED"
6555            }
6556            Self::AtomBatteryHealth => "ATOM_BATTERY_HEALTH",
6557            Self::AtomBiometricUnenrolled => "ATOM_BIOMETRIC_UNENROLLED",
6558            Self::AtomBiometricEnumerated => "ATOM_BIOMETRIC_ENUMERATED",
6559            Self::AtomApplicationGrammaticalInflectionChanged => {
6560                "ATOM_APPLICATION_GRAMMATICAL_INFLECTION_CHANGED"
6561            }
6562            Self::AtomSystemGrammaticalInflectionChanged => {
6563                "ATOM_SYSTEM_GRAMMATICAL_INFLECTION_CHANGED"
6564            }
6565            Self::AtomFullScreenIntentLaunched => "ATOM_FULL_SCREEN_INTENT_LAUNCHED",
6566            Self::AtomBalAllowed => "ATOM_BAL_ALLOWED",
6567            Self::AtomInTaskActivityStarted => "ATOM_IN_TASK_ACTIVITY_STARTED",
6568            Self::AtomDeviceOrientationChanged => "ATOM_DEVICE_ORIENTATION_CHANGED",
6569            Self::AtomCachedAppsHighWatermark => "ATOM_CACHED_APPS_HIGH_WATERMARK",
6570            Self::AtomStylusPredictionMetricsReported => {
6571                "ATOM_STYLUS_PREDICTION_METRICS_REPORTED"
6572            }
6573            Self::AtomUserRiskEventReported => "ATOM_USER_RISK_EVENT_REPORTED",
6574            Self::AtomMediaProjectionStateChanged => {
6575                "ATOM_MEDIA_PROJECTION_STATE_CHANGED"
6576            }
6577            Self::AtomMediaProjectionTargetChanged => {
6578                "ATOM_MEDIA_PROJECTION_TARGET_CHANGED"
6579            }
6580            Self::AtomExcessiveBinderProxyCountReported => {
6581                "ATOM_EXCESSIVE_BINDER_PROXY_COUNT_REPORTED"
6582            }
6583            Self::AtomProxyBytesTransferByFgBg => "ATOM_PROXY_BYTES_TRANSFER_BY_FG_BG",
6584            Self::AtomMobileBytesTransferByProcState => {
6585                "ATOM_MOBILE_BYTES_TRANSFER_BY_PROC_STATE"
6586            }
6587            Self::AtomBiometricFrrNotification => "ATOM_BIOMETRIC_FRR_NOTIFICATION",
6588            Self::AtomSensitiveContentMediaProjectionSession => {
6589                "ATOM_SENSITIVE_CONTENT_MEDIA_PROJECTION_SESSION"
6590            }
6591            Self::AtomSensitiveNotificationAppProtectionSession => {
6592                "ATOM_SENSITIVE_NOTIFICATION_APP_PROTECTION_SESSION"
6593            }
6594            Self::AtomSensitiveNotificationAppProtectionApplied => {
6595                "ATOM_SENSITIVE_NOTIFICATION_APP_PROTECTION_APPLIED"
6596            }
6597            Self::AtomSensitiveNotificationRedaction => {
6598                "ATOM_SENSITIVE_NOTIFICATION_REDACTION"
6599            }
6600            Self::AtomSensitiveContentAppProtection => {
6601                "ATOM_SENSITIVE_CONTENT_APP_PROTECTION"
6602            }
6603            Self::AtomAppRestrictionStateChanged => "ATOM_APP_RESTRICTION_STATE_CHANGED",
6604            Self::AtomBatteryUsageStatsPerUid => "ATOM_BATTERY_USAGE_STATS_PER_UID",
6605            Self::AtomPostgcMemorySnapshot => "ATOM_POSTGC_MEMORY_SNAPSHOT",
6606            Self::AtomPowerSaveTempAllowlistChanged => {
6607                "ATOM_POWER_SAVE_TEMP_ALLOWLIST_CHANGED"
6608            }
6609            Self::AtomAppOpAccessTracked => "ATOM_APP_OP_ACCESS_TRACKED",
6610            Self::AtomContentOrFileUriEventReported => {
6611                "ATOM_CONTENT_OR_FILE_URI_EVENT_REPORTED"
6612            }
6613            Self::AtomDeviceIdleTempAllowlistUpdated => {
6614                "ATOM_DEVICE_IDLE_TEMP_ALLOWLIST_UPDATED"
6615            }
6616            Self::AtomAppOpNoteOpOrCheckOpBinderApiCalled => {
6617                "ATOM_APP_OP_NOTE_OP_OR_CHECK_OP_BINDER_API_CALLED"
6618            }
6619            Self::AtomFrameworkWakelockInfo => "ATOM_FRAMEWORK_WAKELOCK_INFO",
6620            Self::AtomJankFrameCountByWidgetReported => {
6621                "ATOM_JANK_FRAME_COUNT_BY_WIDGET_REPORTED"
6622            }
6623            Self::AtomIntentCreatorTokenAdded => "ATOM_INTENT_CREATOR_TOKEN_ADDED",
6624            Self::AtomNotificationChannelClassification => {
6625                "ATOM_NOTIFICATION_CHANNEL_CLASSIFICATION"
6626            }
6627            Self::AtomCameraStatusForCompatibilityChanged => {
6628                "ATOM_CAMERA_STATUS_FOR_COMPATIBILITY_CHANGED"
6629            }
6630            Self::AtomFederatedComputeApiCalled => "ATOM_FEDERATED_COMPUTE_API_CALLED",
6631            Self::AtomFederatedComputeTrainingEventReported => {
6632                "ATOM_FEDERATED_COMPUTE_TRAINING_EVENT_REPORTED"
6633            }
6634            Self::AtomExampleIteratorNextLatencyReported => {
6635                "ATOM_EXAMPLE_ITERATOR_NEXT_LATENCY_REPORTED"
6636            }
6637            Self::AtomFederatedComputeTraceEventReported => {
6638                "ATOM_FEDERATED_COMPUTE_TRACE_EVENT_REPORTED"
6639            }
6640            Self::AtomExpressEventReported => "ATOM_EXPRESS_EVENT_REPORTED",
6641            Self::AtomExpressHistogramSampleReported => {
6642                "ATOM_EXPRESS_HISTOGRAM_SAMPLE_REPORTED"
6643            }
6644            Self::AtomExpressUidEventReported => "ATOM_EXPRESS_UID_EVENT_REPORTED",
6645            Self::AtomExpressUidHistogramSampleReported => {
6646                "ATOM_EXPRESS_UID_HISTOGRAM_SAMPLE_REPORTED"
6647            }
6648            Self::AtomDreamSettingChanged => "ATOM_DREAM_SETTING_CHANGED",
6649            Self::AtomDreamSettingSnapshot => "ATOM_DREAM_SETTING_SNAPSHOT",
6650            Self::AtomDndStateChanged => "ATOM_DND_STATE_CHANGED",
6651            Self::AtomExternalDisplayStateChanged => {
6652                "ATOM_EXTERNAL_DISPLAY_STATE_CHANGED"
6653            }
6654            Self::AtomDisplayModeDirectorVoteChanged => {
6655                "ATOM_DISPLAY_MODE_DIRECTOR_VOTE_CHANGED"
6656            }
6657            Self::AtomDevicePolicyManagementMode => "ATOM_DEVICE_POLICY_MANAGEMENT_MODE",
6658            Self::AtomDevicePolicyState => "ATOM_DEVICE_POLICY_STATE",
6659            Self::AtomDeviceLockCheckInRequestReported => {
6660                "ATOM_DEVICE_LOCK_CHECK_IN_REQUEST_REPORTED"
6661            }
6662            Self::AtomDeviceLockProvisioningCompleteReported => {
6663                "ATOM_DEVICE_LOCK_PROVISIONING_COMPLETE_REPORTED"
6664            }
6665            Self::AtomDeviceLockKioskAppRequestReported => {
6666                "ATOM_DEVICE_LOCK_KIOSK_APP_REQUEST_REPORTED"
6667            }
6668            Self::AtomDeviceLockCheckInRetryReported => {
6669                "ATOM_DEVICE_LOCK_CHECK_IN_RETRY_REPORTED"
6670            }
6671            Self::AtomDeviceLockProvisionFailureReported => {
6672                "ATOM_DEVICE_LOCK_PROVISION_FAILURE_REPORTED"
6673            }
6674            Self::AtomDeviceLockLockUnlockDeviceFailureReported => {
6675                "ATOM_DEVICE_LOCK_LOCK_UNLOCK_DEVICE_FAILURE_REPORTED"
6676            }
6677            Self::AtomDesktopModeUiChanged => "ATOM_DESKTOP_MODE_UI_CHANGED",
6678            Self::AtomDesktopModeSessionTaskUpdate => {
6679                "ATOM_DESKTOP_MODE_SESSION_TASK_UPDATE"
6680            }
6681            Self::AtomDesktopModeTaskSizeUpdated => "ATOM_DESKTOP_MODE_TASK_SIZE_UPDATED",
6682            Self::AtomCronetEngineCreated => "ATOM_CRONET_ENGINE_CREATED",
6683            Self::AtomCronetTrafficReported => "ATOM_CRONET_TRAFFIC_REPORTED",
6684            Self::AtomCronetEngineBuilderInitialized => {
6685                "ATOM_CRONET_ENGINE_BUILDER_INITIALIZED"
6686            }
6687            Self::AtomCronetHttpFlagsInitialized => "ATOM_CRONET_HTTP_FLAGS_INITIALIZED",
6688            Self::AtomCronetInitialized => "ATOM_CRONET_INITIALIZED",
6689            Self::AtomCredentialManagerApiCalled => "ATOM_CREDENTIAL_MANAGER_API_CALLED",
6690            Self::AtomCredentialManagerInitPhaseReported => {
6691                "ATOM_CREDENTIAL_MANAGER_INIT_PHASE_REPORTED"
6692            }
6693            Self::AtomCredentialManagerCandidatePhaseReported => {
6694                "ATOM_CREDENTIAL_MANAGER_CANDIDATE_PHASE_REPORTED"
6695            }
6696            Self::AtomCredentialManagerFinalPhaseReported => {
6697                "ATOM_CREDENTIAL_MANAGER_FINAL_PHASE_REPORTED"
6698            }
6699            Self::AtomCredentialManagerTotalReported => {
6700                "ATOM_CREDENTIAL_MANAGER_TOTAL_REPORTED"
6701            }
6702            Self::AtomCredentialManagerFinalnouidReported => {
6703                "ATOM_CREDENTIAL_MANAGER_FINALNOUID_REPORTED"
6704            }
6705            Self::AtomCredentialManagerGetReported => {
6706                "ATOM_CREDENTIAL_MANAGER_GET_REPORTED"
6707            }
6708            Self::AtomCredentialManagerAuthClickReported => {
6709                "ATOM_CREDENTIAL_MANAGER_AUTH_CLICK_REPORTED"
6710            }
6711            Self::AtomCredentialManagerApiv2Called => {
6712                "ATOM_CREDENTIAL_MANAGER_APIV2_CALLED"
6713            }
6714            Self::AtomCpuPolicy => "ATOM_CPU_POLICY",
6715            Self::AtomVpnConnectionStateChanged => "ATOM_VPN_CONNECTION_STATE_CHANGED",
6716            Self::AtomVpnConnectionReported => "ATOM_VPN_CONNECTION_REPORTED",
6717            Self::AtomIpClientRaInfoReported => "ATOM_IP_CLIENT_RA_INFO_REPORTED",
6718            Self::AtomApfSessionInfoReported => "ATOM_APF_SESSION_INFO_REPORTED",
6719            Self::AtomCoreNetworkingTerribleErrorOccurred => {
6720                "ATOM_CORE_NETWORKING_TERRIBLE_ERROR_OCCURRED"
6721            }
6722            Self::AtomNetworkStatsRecorderFileOperated => {
6723                "ATOM_NETWORK_STATS_RECORDER_FILE_OPERATED"
6724            }
6725            Self::AtomDailyKeepaliveInfoReported => "ATOM_DAILY_KEEPALIVE_INFO_REPORTED",
6726            Self::AtomNetworkRequestStateChanged => "ATOM_NETWORK_REQUEST_STATE_CHANGED",
6727            Self::AtomTetheringActiveSessionsReported => {
6728                "ATOM_TETHERING_ACTIVE_SESSIONS_REPORTED"
6729            }
6730            Self::AtomCertificateTransparencyLogListUpdateStateChanged => {
6731                "ATOM_CERTIFICATE_TRANSPARENCY_LOG_LIST_UPDATE_STATE_CHANGED"
6732            }
6733            Self::AtomHardwareRendererEvent => "ATOM_HARDWARE_RENDERER_EVENT",
6734            Self::AtomTextureViewEvent => "ATOM_TEXTURE_VIEW_EVENT",
6735            Self::AtomSurfaceControlEvent => "ATOM_SURFACE_CONTROL_EVENT",
6736            Self::AtomImageDecoded => "ATOM_IMAGE_DECODED",
6737            Self::AtomCertificateTransparencyLogListStateChanged => {
6738                "ATOM_CERTIFICATE_TRANSPARENCY_LOG_LIST_STATE_CHANGED"
6739            }
6740            Self::AtomConscryptServiceUsed => "ATOM_CONSCRYPT_SERVICE_USED",
6741            Self::AtomCertificateTransparencyVerificationReported => {
6742                "ATOM_CERTIFICATE_TRANSPARENCY_VERIFICATION_REPORTED"
6743            }
6744            Self::AtomCameraFeatureCombinationQueryEvent => {
6745                "ATOM_CAMERA_FEATURE_COMBINATION_QUERY_EVENT"
6746            }
6747            Self::AtomBroadcastSent => "ATOM_BROADCAST_SENT",
6748            Self::AtomBluetoothHashedDeviceNameReported => {
6749                "ATOM_BLUETOOTH_HASHED_DEVICE_NAME_REPORTED"
6750            }
6751            Self::AtomBluetoothL2capCocClientConnection => {
6752                "ATOM_BLUETOOTH_L2CAP_COC_CLIENT_CONNECTION"
6753            }
6754            Self::AtomBluetoothL2capCocServerConnection => {
6755                "ATOM_BLUETOOTH_L2CAP_COC_SERVER_CONNECTION"
6756            }
6757            Self::AtomBluetoothLeSessionConnected => {
6758                "ATOM_BLUETOOTH_LE_SESSION_CONNECTED"
6759            }
6760            Self::AtomRestrictedBluetoothDeviceNameReported => {
6761                "ATOM_RESTRICTED_BLUETOOTH_DEVICE_NAME_REPORTED"
6762            }
6763            Self::AtomBluetoothProfileConnectionAttempted => {
6764                "ATOM_BLUETOOTH_PROFILE_CONNECTION_ATTEMPTED"
6765            }
6766            Self::AtomBluetoothContentProfileErrorReported => {
6767                "ATOM_BLUETOOTH_CONTENT_PROFILE_ERROR_REPORTED"
6768            }
6769            Self::AtomBluetoothRfcommConnectionAttempted => {
6770                "ATOM_BLUETOOTH_RFCOMM_CONNECTION_ATTEMPTED"
6771            }
6772            Self::AtomRemoteDeviceInformationWithMetricId => {
6773                "ATOM_REMOTE_DEVICE_INFORMATION_WITH_METRIC_ID"
6774            }
6775            Self::AtomLeAppScanStateChanged => "ATOM_LE_APP_SCAN_STATE_CHANGED",
6776            Self::AtomLeRadioScanStopped => "ATOM_LE_RADIO_SCAN_STOPPED",
6777            Self::AtomLeScanResultReceived => "ATOM_LE_SCAN_RESULT_RECEIVED",
6778            Self::AtomLeScanAbused => "ATOM_LE_SCAN_ABUSED",
6779            Self::AtomLeAdvStateChanged => "ATOM_LE_ADV_STATE_CHANGED",
6780            Self::AtomLeAdvErrorReported => "ATOM_LE_ADV_ERROR_REPORTED",
6781            Self::AtomA2dpSessionReported => "ATOM_A2DP_SESSION_REPORTED",
6782            Self::AtomBluetoothCrossLayerEventReported => {
6783                "ATOM_BLUETOOTH_CROSS_LAYER_EVENT_REPORTED"
6784            }
6785            Self::AtomBroadcastAudioSessionReported => {
6786                "ATOM_BROADCAST_AUDIO_SESSION_REPORTED"
6787            }
6788            Self::AtomBroadcastAudioSyncReported => "ATOM_BROADCAST_AUDIO_SYNC_REPORTED",
6789            Self::AtomBluetoothRfcommConnectionReportedAtClose => {
6790                "ATOM_BLUETOOTH_RFCOMM_CONNECTION_REPORTED_AT_CLOSE"
6791            }
6792            Self::AtomBluetoothLeConnection => "ATOM_BLUETOOTH_LE_CONNECTION",
6793            Self::AtomHearingDeviceActiveEventReported => {
6794                "ATOM_HEARING_DEVICE_ACTIVE_EVENT_REPORTED"
6795            }
6796            Self::AtomBackportedFixStatusReported => {
6797                "ATOM_BACKPORTED_FIX_STATUS_REPORTED"
6798            }
6799            Self::AtomPluginInitialized => "ATOM_PLUGIN_INITIALIZED",
6800            Self::AtomCarSystemUiDataSubscriptionEventReported => {
6801                "ATOM_CAR_SYSTEM_UI_DATA_SUBSCRIPTION_EVENT_REPORTED"
6802            }
6803            Self::AtomCarSettingsDataSubscriptionEventReported => {
6804                "ATOM_CAR_SETTINGS_DATA_SUBSCRIPTION_EVENT_REPORTED"
6805            }
6806            Self::AtomCarQcLibEventReported => "ATOM_CAR_QC_LIB_EVENT_REPORTED",
6807            Self::AtomCarWakeupFromSuspendReported => {
6808                "ATOM_CAR_WAKEUP_FROM_SUSPEND_REPORTED"
6809            }
6810            Self::AtomCarRecentsEventReported => "ATOM_CAR_RECENTS_EVENT_REPORTED",
6811            Self::AtomCarCalmModeEventReported => "ATOM_CAR_CALM_MODE_EVENT_REPORTED",
6812            Self::AtomAutofillUiEventReported => "ATOM_AUTOFILL_UI_EVENT_REPORTED",
6813            Self::AtomAutofillFillRequestReported => {
6814                "ATOM_AUTOFILL_FILL_REQUEST_REPORTED"
6815            }
6816            Self::AtomAutofillFillResponseReported => {
6817                "ATOM_AUTOFILL_FILL_RESPONSE_REPORTED"
6818            }
6819            Self::AtomAutofillSaveEventReported => "ATOM_AUTOFILL_SAVE_EVENT_REPORTED",
6820            Self::AtomAutofillSessionCommitted => "ATOM_AUTOFILL_SESSION_COMMITTED",
6821            Self::AtomAutofillFieldClassificationEventReported => {
6822                "ATOM_AUTOFILL_FIELD_CLASSIFICATION_EVENT_REPORTED"
6823            }
6824            Self::AtomOdrefreshReported => "ATOM_ODREFRESH_REPORTED",
6825            Self::AtomOdsignReported => "ATOM_ODSIGN_REPORTED",
6826            Self::AtomBackgroundDexoptJobEnded => "ATOM_BACKGROUND_DEXOPT_JOB_ENDED",
6827            Self::AtomPrerebootDexoptJobEnded => "ATOM_PREREBOOT_DEXOPT_JOB_ENDED",
6828            Self::AtomArtDatumReported => "ATOM_ART_DATUM_REPORTED",
6829            Self::AtomArtDeviceDatumReported => "ATOM_ART_DEVICE_DATUM_REPORTED",
6830            Self::AtomArtDatumDeltaReported => "ATOM_ART_DATUM_DELTA_REPORTED",
6831            Self::AtomArtDex2oatReported => "ATOM_ART_DEX2OAT_REPORTED",
6832            Self::AtomArtDeviceStatus => "ATOM_ART_DEVICE_STATUS",
6833            Self::AtomAppSearchSetSchemaStatsReported => {
6834                "ATOM_APP_SEARCH_SET_SCHEMA_STATS_REPORTED"
6835            }
6836            Self::AtomAppSearchSchemaMigrationStatsReported => {
6837                "ATOM_APP_SEARCH_SCHEMA_MIGRATION_STATS_REPORTED"
6838            }
6839            Self::AtomAppSearchUsageSearchIntentStatsReported => {
6840                "ATOM_APP_SEARCH_USAGE_SEARCH_INTENT_STATS_REPORTED"
6841            }
6842            Self::AtomAppSearchUsageSearchIntentRawQueryStatsReported => {
6843                "ATOM_APP_SEARCH_USAGE_SEARCH_INTENT_RAW_QUERY_STATS_REPORTED"
6844            }
6845            Self::AtomAppSearchAppsIndexerStatsReported => {
6846                "ATOM_APP_SEARCH_APPS_INDEXER_STATS_REPORTED"
6847            }
6848            Self::AtomAppFunctionsRequestReported => {
6849                "ATOM_APP_FUNCTIONS_REQUEST_REPORTED"
6850            }
6851            Self::AtomApexInstallationRequested => "ATOM_APEX_INSTALLATION_REQUESTED",
6852            Self::AtomApexInstallationStaged => "ATOM_APEX_INSTALLATION_STAGED",
6853            Self::AtomApexInstallationEnded => "ATOM_APEX_INSTALLATION_ENDED",
6854            Self::AtomAiWallpapersButtonPressed => "ATOM_AI_WALLPAPERS_BUTTON_PRESSED",
6855            Self::AtomAiWallpapersTemplateSelected => {
6856                "ATOM_AI_WALLPAPERS_TEMPLATE_SELECTED"
6857            }
6858            Self::AtomAiWallpapersTermSelected => "ATOM_AI_WALLPAPERS_TERM_SELECTED",
6859            Self::AtomAiWallpapersWallpaperSet => "ATOM_AI_WALLPAPERS_WALLPAPER_SET",
6860            Self::AtomAiWallpapersSessionSummary => "ATOM_AI_WALLPAPERS_SESSION_SUMMARY",
6861            Self::AtomJsscriptengineLatencyReported => {
6862                "ATOM_JSSCRIPTENGINE_LATENCY_REPORTED"
6863            }
6864            Self::AtomAdServicesApiCalled => "ATOM_AD_SERVICES_API_CALLED",
6865            Self::AtomAdServicesMesurementReportsUploaded => {
6866                "ATOM_AD_SERVICES_MESUREMENT_REPORTS_UPLOADED"
6867            }
6868            Self::AtomMobileDataDownloadFileGroupStatusReported => {
6869                "ATOM_MOBILE_DATA_DOWNLOAD_FILE_GROUP_STATUS_REPORTED"
6870            }
6871            Self::AtomMobileDataDownloadDownloadResultReported => {
6872                "ATOM_MOBILE_DATA_DOWNLOAD_DOWNLOAD_RESULT_REPORTED"
6873            }
6874            Self::AtomAdServicesSettingsUsageReported => {
6875                "ATOM_AD_SERVICES_SETTINGS_USAGE_REPORTED"
6876            }
6877            Self::AtomBackgroundFetchProcessReported => {
6878                "ATOM_BACKGROUND_FETCH_PROCESS_REPORTED"
6879            }
6880            Self::AtomUpdateCustomAudienceProcessReported => {
6881                "ATOM_UPDATE_CUSTOM_AUDIENCE_PROCESS_REPORTED"
6882            }
6883            Self::AtomRunAdBiddingProcessReported => {
6884                "ATOM_RUN_AD_BIDDING_PROCESS_REPORTED"
6885            }
6886            Self::AtomRunAdScoringProcessReported => {
6887                "ATOM_RUN_AD_SCORING_PROCESS_REPORTED"
6888            }
6889            Self::AtomRunAdSelectionProcessReported => {
6890                "ATOM_RUN_AD_SELECTION_PROCESS_REPORTED"
6891            }
6892            Self::AtomRunAdBiddingPerCaProcessReported => {
6893                "ATOM_RUN_AD_BIDDING_PER_CA_PROCESS_REPORTED"
6894            }
6895            Self::AtomMobileDataDownloadFileGroupStorageStatsReported => {
6896                "ATOM_MOBILE_DATA_DOWNLOAD_FILE_GROUP_STORAGE_STATS_REPORTED"
6897            }
6898            Self::AtomAdServicesMeasurementRegistrations => {
6899                "ATOM_AD_SERVICES_MEASUREMENT_REGISTRATIONS"
6900            }
6901            Self::AtomAdServicesGetTopicsReported => {
6902                "ATOM_AD_SERVICES_GET_TOPICS_REPORTED"
6903            }
6904            Self::AtomAdServicesEpochComputationGetTopTopicsReported => {
6905                "ATOM_AD_SERVICES_EPOCH_COMPUTATION_GET_TOP_TOPICS_REPORTED"
6906            }
6907            Self::AtomAdServicesEpochComputationClassifierReported => {
6908                "ATOM_AD_SERVICES_EPOCH_COMPUTATION_CLASSIFIER_REPORTED"
6909            }
6910            Self::AtomAdServicesBackCompatGetTopicsReported => {
6911                "ATOM_AD_SERVICES_BACK_COMPAT_GET_TOPICS_REPORTED"
6912            }
6913            Self::AtomAdServicesBackCompatEpochComputationClassifierReported => {
6914                "ATOM_AD_SERVICES_BACK_COMPAT_EPOCH_COMPUTATION_CLASSIFIER_REPORTED"
6915            }
6916            Self::AtomAdServicesMeasurementDebugKeys => {
6917                "ATOM_AD_SERVICES_MEASUREMENT_DEBUG_KEYS"
6918            }
6919            Self::AtomAdServicesErrorReported => "ATOM_AD_SERVICES_ERROR_REPORTED",
6920            Self::AtomAdServicesBackgroundJobsExecutionReported => {
6921                "ATOM_AD_SERVICES_BACKGROUND_JOBS_EXECUTION_REPORTED"
6922            }
6923            Self::AtomAdServicesMeasurementDelayedSourceRegistration => {
6924                "ATOM_AD_SERVICES_MEASUREMENT_DELAYED_SOURCE_REGISTRATION"
6925            }
6926            Self::AtomAdServicesMeasurementAttribution => {
6927                "ATOM_AD_SERVICES_MEASUREMENT_ATTRIBUTION"
6928            }
6929            Self::AtomAdServicesMeasurementJobs => "ATOM_AD_SERVICES_MEASUREMENT_JOBS",
6930            Self::AtomAdServicesMeasurementWipeout => {
6931                "ATOM_AD_SERVICES_MEASUREMENT_WIPEOUT"
6932            }
6933            Self::AtomAdServicesMeasurementAdIdMatchForDebugKeys => {
6934                "ATOM_AD_SERVICES_MEASUREMENT_AD_ID_MATCH_FOR_DEBUG_KEYS"
6935            }
6936            Self::AtomAdServicesEnrollmentDataStored => {
6937                "ATOM_AD_SERVICES_ENROLLMENT_DATA_STORED"
6938            }
6939            Self::AtomAdServicesEnrollmentFileDownloaded => {
6940                "ATOM_AD_SERVICES_ENROLLMENT_FILE_DOWNLOADED"
6941            }
6942            Self::AtomAdServicesEnrollmentMatched => {
6943                "ATOM_AD_SERVICES_ENROLLMENT_MATCHED"
6944            }
6945            Self::AtomAdServicesConsentMigrated => "ATOM_AD_SERVICES_CONSENT_MIGRATED",
6946            Self::AtomAdServicesEnrollmentFailed => "ATOM_AD_SERVICES_ENROLLMENT_FAILED",
6947            Self::AtomAdServicesMeasurementClickVerification => {
6948                "ATOM_AD_SERVICES_MEASUREMENT_CLICK_VERIFICATION"
6949            }
6950            Self::AtomAdServicesEncryptionKeyFetched => {
6951                "ATOM_AD_SERVICES_ENCRYPTION_KEY_FETCHED"
6952            }
6953            Self::AtomAdServicesEncryptionKeyDbTransactionEnded => {
6954                "ATOM_AD_SERVICES_ENCRYPTION_KEY_DB_TRANSACTION_ENDED"
6955            }
6956            Self::AtomDestinationRegisteredBeacons => {
6957                "ATOM_DESTINATION_REGISTERED_BEACONS"
6958            }
6959            Self::AtomReportInteractionApiCalled => "ATOM_REPORT_INTERACTION_API_CALLED",
6960            Self::AtomInteractionReportingTableCleared => {
6961                "ATOM_INTERACTION_REPORTING_TABLE_CLEARED"
6962            }
6963            Self::AtomAppManifestConfigHelperCalled => {
6964                "ATOM_APP_MANIFEST_CONFIG_HELPER_CALLED"
6965            }
6966            Self::AtomAdFilteringProcessJoinCaReported => {
6967                "ATOM_AD_FILTERING_PROCESS_JOIN_CA_REPORTED"
6968            }
6969            Self::AtomAdFilteringProcessAdSelectionReported => {
6970                "ATOM_AD_FILTERING_PROCESS_AD_SELECTION_REPORTED"
6971            }
6972            Self::AtomAdCounterHistogramUpdaterReported => {
6973                "ATOM_AD_COUNTER_HISTOGRAM_UPDATER_REPORTED"
6974            }
6975            Self::AtomSignatureVerification => "ATOM_SIGNATURE_VERIFICATION",
6976            Self::AtomKAnonImmediateSignJoinStatusReported => {
6977                "ATOM_K_ANON_IMMEDIATE_SIGN_JOIN_STATUS_REPORTED"
6978            }
6979            Self::AtomKAnonBackgroundJobStatusReported => {
6980                "ATOM_K_ANON_BACKGROUND_JOB_STATUS_REPORTED"
6981            }
6982            Self::AtomKAnonInitializeStatusReported => {
6983                "ATOM_K_ANON_INITIALIZE_STATUS_REPORTED"
6984            }
6985            Self::AtomKAnonSignStatusReported => "ATOM_K_ANON_SIGN_STATUS_REPORTED",
6986            Self::AtomKAnonJoinStatusReported => "ATOM_K_ANON_JOIN_STATUS_REPORTED",
6987            Self::AtomKAnonKeyAttestationStatusReported => {
6988                "ATOM_K_ANON_KEY_ATTESTATION_STATUS_REPORTED"
6989            }
6990            Self::AtomGetAdSelectionDataApiCalled => {
6991                "ATOM_GET_AD_SELECTION_DATA_API_CALLED"
6992            }
6993            Self::AtomGetAdSelectionDataBuyerInputGenerated => {
6994                "ATOM_GET_AD_SELECTION_DATA_BUYER_INPUT_GENERATED"
6995            }
6996            Self::AtomBackgroundJobSchedulingReported => {
6997                "ATOM_BACKGROUND_JOB_SCHEDULING_REPORTED"
6998            }
6999            Self::AtomTopicsEncryptionEpochComputationReported => {
7000                "ATOM_TOPICS_ENCRYPTION_EPOCH_COMPUTATION_REPORTED"
7001            }
7002            Self::AtomTopicsEncryptionGetTopicsReported => {
7003                "ATOM_TOPICS_ENCRYPTION_GET_TOPICS_REPORTED"
7004            }
7005            Self::AtomAdservicesShellCommandCalled => {
7006                "ATOM_ADSERVICES_SHELL_COMMAND_CALLED"
7007            }
7008            Self::AtomUpdateSignalsApiCalled => "ATOM_UPDATE_SIGNALS_API_CALLED",
7009            Self::AtomEncodingJobRun => "ATOM_ENCODING_JOB_RUN",
7010            Self::AtomEncodingJsFetch => "ATOM_ENCODING_JS_FETCH",
7011            Self::AtomEncodingJsExecution => "ATOM_ENCODING_JS_EXECUTION",
7012            Self::AtomPersistAdSelectionResultCalled => {
7013                "ATOM_PERSIST_AD_SELECTION_RESULT_CALLED"
7014            }
7015            Self::AtomServerAuctionKeyFetchCalled => {
7016                "ATOM_SERVER_AUCTION_KEY_FETCH_CALLED"
7017            }
7018            Self::AtomServerAuctionBackgroundKeyFetchEnabled => {
7019                "ATOM_SERVER_AUCTION_BACKGROUND_KEY_FETCH_ENABLED"
7020            }
7021            Self::AtomAdServicesMeasurementProcessOdpRegistration => {
7022                "ATOM_AD_SERVICES_MEASUREMENT_PROCESS_ODP_REGISTRATION"
7023            }
7024            Self::AtomAdServicesMeasurementNotifyRegistrationToOdp => {
7025                "ATOM_AD_SERVICES_MEASUREMENT_NOTIFY_REGISTRATION_TO_ODP"
7026            }
7027            Self::AtomSelectAdsFromOutcomesApiCalled => {
7028                "ATOM_SELECT_ADS_FROM_OUTCOMES_API_CALLED"
7029            }
7030            Self::AtomReportImpressionApiCalled => "ATOM_REPORT_IMPRESSION_API_CALLED",
7031            Self::AtomAdServicesEnrollmentTransactionStats => {
7032                "ATOM_AD_SERVICES_ENROLLMENT_TRANSACTION_STATS"
7033            }
7034            Self::AtomAdServicesCobaltLoggerEventReported => {
7035                "ATOM_AD_SERVICES_COBALT_LOGGER_EVENT_REPORTED"
7036            }
7037            Self::AtomAdServicesCobaltPeriodicJobEventReported => {
7038                "ATOM_AD_SERVICES_COBALT_PERIODIC_JOB_EVENT_REPORTED"
7039            }
7040            Self::AtomUpdateSignalsProcessReported => {
7041                "ATOM_UPDATE_SIGNALS_PROCESS_REPORTED"
7042            }
7043            Self::AtomTopicsScheduleEpochJobSettingReported => {
7044                "ATOM_TOPICS_SCHEDULE_EPOCH_JOB_SETTING_REPORTED"
7045            }
7046            Self::AtomScheduledCustomAudienceUpdateScheduleAttempted => {
7047                "ATOM_SCHEDULED_CUSTOM_AUDIENCE_UPDATE_SCHEDULE_ATTEMPTED"
7048            }
7049            Self::AtomScheduledCustomAudienceUpdatePerformed => {
7050                "ATOM_SCHEDULED_CUSTOM_AUDIENCE_UPDATE_PERFORMED"
7051            }
7052            Self::AtomScheduledCustomAudienceUpdatePerformedAttemptedFailureReported => {
7053                "ATOM_SCHEDULED_CUSTOM_AUDIENCE_UPDATE_PERFORMED_ATTEMPTED_FAILURE_REPORTED"
7054            }
7055            Self::AtomScheduledCustomAudienceUpdateBackgroundJobRan => {
7056                "ATOM_SCHEDULED_CUSTOM_AUDIENCE_UPDATE_BACKGROUND_JOB_RAN"
7057            }
7058            Self::AtomThermalStatusCalled => "ATOM_THERMAL_STATUS_CALLED",
7059            Self::AtomThermalHeadroomCalled => "ATOM_THERMAL_HEADROOM_CALLED",
7060            Self::AtomThermalHeadroomThresholdsCalled => {
7061                "ATOM_THERMAL_HEADROOM_THRESHOLDS_CALLED"
7062            }
7063            Self::AtomAdpfHintSessionTidCleanup => "ATOM_ADPF_HINT_SESSION_TID_CLEANUP",
7064            Self::AtomThermalHeadroomThresholds => "ATOM_THERMAL_HEADROOM_THRESHOLDS",
7065            Self::AtomAdpfSessionSnapshot => "ATOM_ADPF_SESSION_SNAPSHOT",
7066            Self::AtomAdaptiveAuthUnlockAfterLockReported => {
7067                "ATOM_ADAPTIVE_AUTH_UNLOCK_AFTER_LOCK_REPORTED"
7068            }
7069            Self::AtomAccountManagerEvent => "ATOM_ACCOUNT_MANAGER_EVENT",
7070            Self::AtomAccessibilityCheckResultReported => {
7071                "ATOM_ACCESSIBILITY_CHECK_RESULT_REPORTED"
7072            }
7073        }
7074    }
7075    /// Creates an enum from field names used in the ProtoBuf definition.
7076    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
7077        match value {
7078            "ATOM_UNSPECIFIED" => Some(Self::AtomUnspecified),
7079            "ATOM_BLE_SCAN_STATE_CHANGED" => Some(Self::AtomBleScanStateChanged),
7080            "ATOM_PROCESS_STATE_CHANGED" => Some(Self::AtomProcessStateChanged),
7081            "ATOM_BLE_SCAN_RESULT_RECEIVED" => Some(Self::AtomBleScanResultReceived),
7082            "ATOM_SENSOR_STATE_CHANGED" => Some(Self::AtomSensorStateChanged),
7083            "ATOM_GPS_SCAN_STATE_CHANGED" => Some(Self::AtomGpsScanStateChanged),
7084            "ATOM_SYNC_STATE_CHANGED" => Some(Self::AtomSyncStateChanged),
7085            "ATOM_SCHEDULED_JOB_STATE_CHANGED" => {
7086                Some(Self::AtomScheduledJobStateChanged)
7087            }
7088            "ATOM_SCREEN_BRIGHTNESS_CHANGED" => Some(Self::AtomScreenBrightnessChanged),
7089            "ATOM_WAKELOCK_STATE_CHANGED" => Some(Self::AtomWakelockStateChanged),
7090            "ATOM_LONG_PARTIAL_WAKELOCK_STATE_CHANGED" => {
7091                Some(Self::AtomLongPartialWakelockStateChanged)
7092            }
7093            "ATOM_MOBILE_RADIO_POWER_STATE_CHANGED" => {
7094                Some(Self::AtomMobileRadioPowerStateChanged)
7095            }
7096            "ATOM_WIFI_RADIO_POWER_STATE_CHANGED" => {
7097                Some(Self::AtomWifiRadioPowerStateChanged)
7098            }
7099            "ATOM_ACTIVITY_MANAGER_SLEEP_STATE_CHANGED" => {
7100                Some(Self::AtomActivityManagerSleepStateChanged)
7101            }
7102            "ATOM_MEMORY_FACTOR_STATE_CHANGED" => {
7103                Some(Self::AtomMemoryFactorStateChanged)
7104            }
7105            "ATOM_EXCESSIVE_CPU_USAGE_REPORTED" => {
7106                Some(Self::AtomExcessiveCpuUsageReported)
7107            }
7108            "ATOM_CACHED_KILL_REPORTED" => Some(Self::AtomCachedKillReported),
7109            "ATOM_PROCESS_MEMORY_STAT_REPORTED" => {
7110                Some(Self::AtomProcessMemoryStatReported)
7111            }
7112            "ATOM_LAUNCHER_EVENT" => Some(Self::AtomLauncherEvent),
7113            "ATOM_BATTERY_SAVER_MODE_STATE_CHANGED" => {
7114                Some(Self::AtomBatterySaverModeStateChanged)
7115            }
7116            "ATOM_DEVICE_IDLE_MODE_STATE_CHANGED" => {
7117                Some(Self::AtomDeviceIdleModeStateChanged)
7118            }
7119            "ATOM_DEVICE_IDLING_MODE_STATE_CHANGED" => {
7120                Some(Self::AtomDeviceIdlingModeStateChanged)
7121            }
7122            "ATOM_AUDIO_STATE_CHANGED" => Some(Self::AtomAudioStateChanged),
7123            "ATOM_MEDIA_CODEC_STATE_CHANGED" => Some(Self::AtomMediaCodecStateChanged),
7124            "ATOM_CAMERA_STATE_CHANGED" => Some(Self::AtomCameraStateChanged),
7125            "ATOM_FLASHLIGHT_STATE_CHANGED" => Some(Self::AtomFlashlightStateChanged),
7126            "ATOM_UID_PROCESS_STATE_CHANGED" => Some(Self::AtomUidProcessStateChanged),
7127            "ATOM_PROCESS_LIFE_CYCLE_STATE_CHANGED" => {
7128                Some(Self::AtomProcessLifeCycleStateChanged)
7129            }
7130            "ATOM_SCREEN_STATE_CHANGED" => Some(Self::AtomScreenStateChanged),
7131            "ATOM_BATTERY_LEVEL_CHANGED" => Some(Self::AtomBatteryLevelChanged),
7132            "ATOM_CHARGING_STATE_CHANGED" => Some(Self::AtomChargingStateChanged),
7133            "ATOM_PLUGGED_STATE_CHANGED" => Some(Self::AtomPluggedStateChanged),
7134            "ATOM_INTERACTIVE_STATE_CHANGED" => Some(Self::AtomInteractiveStateChanged),
7135            "ATOM_TOUCH_EVENT_REPORTED" => Some(Self::AtomTouchEventReported),
7136            "ATOM_WAKEUP_ALARM_OCCURRED" => Some(Self::AtomWakeupAlarmOccurred),
7137            "ATOM_KERNEL_WAKEUP_REPORTED" => Some(Self::AtomKernelWakeupReported),
7138            "ATOM_WIFI_LOCK_STATE_CHANGED" => Some(Self::AtomWifiLockStateChanged),
7139            "ATOM_WIFI_SIGNAL_STRENGTH_CHANGED" => {
7140                Some(Self::AtomWifiSignalStrengthChanged)
7141            }
7142            "ATOM_WIFI_SCAN_STATE_CHANGED" => Some(Self::AtomWifiScanStateChanged),
7143            "ATOM_PHONE_SIGNAL_STRENGTH_CHANGED" => {
7144                Some(Self::AtomPhoneSignalStrengthChanged)
7145            }
7146            "ATOM_SETTING_CHANGED" => Some(Self::AtomSettingChanged),
7147            "ATOM_ACTIVITY_FOREGROUND_STATE_CHANGED" => {
7148                Some(Self::AtomActivityForegroundStateChanged)
7149            }
7150            "ATOM_ISOLATED_UID_CHANGED" => Some(Self::AtomIsolatedUidChanged),
7151            "ATOM_PACKET_WAKEUP_OCCURRED" => Some(Self::AtomPacketWakeupOccurred),
7152            "ATOM_WALL_CLOCK_TIME_SHIFTED" => Some(Self::AtomWallClockTimeShifted),
7153            "ATOM_ANOMALY_DETECTED" => Some(Self::AtomAnomalyDetected),
7154            "ATOM_APP_BREADCRUMB_REPORTED" => Some(Self::AtomAppBreadcrumbReported),
7155            "ATOM_APP_START_OCCURRED" => Some(Self::AtomAppStartOccurred),
7156            "ATOM_APP_START_CANCELED" => Some(Self::AtomAppStartCanceled),
7157            "ATOM_APP_START_FULLY_DRAWN" => Some(Self::AtomAppStartFullyDrawn),
7158            "ATOM_LMK_KILL_OCCURRED" => Some(Self::AtomLmkKillOccurred),
7159            "ATOM_PICTURE_IN_PICTURE_STATE_CHANGED" => {
7160                Some(Self::AtomPictureInPictureStateChanged)
7161            }
7162            "ATOM_WIFI_MULTICAST_LOCK_STATE_CHANGED" => {
7163                Some(Self::AtomWifiMulticastLockStateChanged)
7164            }
7165            "ATOM_APP_START_MEMORY_STATE_CAPTURED" => {
7166                Some(Self::AtomAppStartMemoryStateCaptured)
7167            }
7168            "ATOM_SHUTDOWN_SEQUENCE_REPORTED" => Some(Self::AtomShutdownSequenceReported),
7169            "ATOM_BOOT_SEQUENCE_REPORTED" => Some(Self::AtomBootSequenceReported),
7170            "ATOM_OVERLAY_STATE_CHANGED" => Some(Self::AtomOverlayStateChanged),
7171            "ATOM_FOREGROUND_SERVICE_STATE_CHANGED" => {
7172                Some(Self::AtomForegroundServiceStateChanged)
7173            }
7174            "ATOM_CALL_STATE_CHANGED" => Some(Self::AtomCallStateChanged),
7175            "ATOM_KEYGUARD_STATE_CHANGED" => Some(Self::AtomKeyguardStateChanged),
7176            "ATOM_KEYGUARD_BOUNCER_STATE_CHANGED" => {
7177                Some(Self::AtomKeyguardBouncerStateChanged)
7178            }
7179            "ATOM_KEYGUARD_BOUNCER_PASSWORD_ENTERED" => {
7180                Some(Self::AtomKeyguardBouncerPasswordEntered)
7181            }
7182            "ATOM_APP_DIED" => Some(Self::AtomAppDied),
7183            "ATOM_RESOURCE_CONFIGURATION_CHANGED" => {
7184                Some(Self::AtomResourceConfigurationChanged)
7185            }
7186            "ATOM_BLUETOOTH_ENABLED_STATE_CHANGED" => {
7187                Some(Self::AtomBluetoothEnabledStateChanged)
7188            }
7189            "ATOM_BLUETOOTH_CONNECTION_STATE_CHANGED" => {
7190                Some(Self::AtomBluetoothConnectionStateChanged)
7191            }
7192            "ATOM_GPS_SIGNAL_QUALITY_CHANGED" => Some(Self::AtomGpsSignalQualityChanged),
7193            "ATOM_USB_CONNECTOR_STATE_CHANGED" => {
7194                Some(Self::AtomUsbConnectorStateChanged)
7195            }
7196            "ATOM_SPEAKER_IMPEDANCE_REPORTED" => Some(Self::AtomSpeakerImpedanceReported),
7197            "ATOM_HARDWARE_FAILED" => Some(Self::AtomHardwareFailed),
7198            "ATOM_PHYSICAL_DROP_DETECTED" => Some(Self::AtomPhysicalDropDetected),
7199            "ATOM_CHARGE_CYCLES_REPORTED" => Some(Self::AtomChargeCyclesReported),
7200            "ATOM_MOBILE_CONNECTION_STATE_CHANGED" => {
7201                Some(Self::AtomMobileConnectionStateChanged)
7202            }
7203            "ATOM_MOBILE_RADIO_TECHNOLOGY_CHANGED" => {
7204                Some(Self::AtomMobileRadioTechnologyChanged)
7205            }
7206            "ATOM_USB_DEVICE_ATTACHED" => Some(Self::AtomUsbDeviceAttached),
7207            "ATOM_APP_CRASH_OCCURRED" => Some(Self::AtomAppCrashOccurred),
7208            "ATOM_ANR_OCCURRED" => Some(Self::AtomAnrOccurred),
7209            "ATOM_WTF_OCCURRED" => Some(Self::AtomWtfOccurred),
7210            "ATOM_LOW_MEM_REPORTED" => Some(Self::AtomLowMemReported),
7211            "ATOM_GENERIC_ATOM" => Some(Self::AtomGenericAtom),
7212            "ATOM_VIBRATOR_STATE_CHANGED" => Some(Self::AtomVibratorStateChanged),
7213            "ATOM_DEFERRED_JOB_STATS_REPORTED" => {
7214                Some(Self::AtomDeferredJobStatsReported)
7215            }
7216            "ATOM_THERMAL_THROTTLING" => Some(Self::AtomThermalThrottling),
7217            "ATOM_BIOMETRIC_ACQUIRED" => Some(Self::AtomBiometricAcquired),
7218            "ATOM_BIOMETRIC_AUTHENTICATED" => Some(Self::AtomBiometricAuthenticated),
7219            "ATOM_BIOMETRIC_ERROR_OCCURRED" => Some(Self::AtomBiometricErrorOccurred),
7220            "ATOM_UI_EVENT_REPORTED" => Some(Self::AtomUiEventReported),
7221            "ATOM_BATTERY_HEALTH_SNAPSHOT" => Some(Self::AtomBatteryHealthSnapshot),
7222            "ATOM_SLOW_IO" => Some(Self::AtomSlowIo),
7223            "ATOM_BATTERY_CAUSED_SHUTDOWN" => Some(Self::AtomBatteryCausedShutdown),
7224            "ATOM_PHONE_SERVICE_STATE_CHANGED" => {
7225                Some(Self::AtomPhoneServiceStateChanged)
7226            }
7227            "ATOM_PHONE_STATE_CHANGED" => Some(Self::AtomPhoneStateChanged),
7228            "ATOM_USER_RESTRICTION_CHANGED" => Some(Self::AtomUserRestrictionChanged),
7229            "ATOM_SETTINGS_UI_CHANGED" => Some(Self::AtomSettingsUiChanged),
7230            "ATOM_CONNECTIVITY_STATE_CHANGED" => Some(Self::AtomConnectivityStateChanged),
7231            "ATOM_SERVICE_STATE_CHANGED" => Some(Self::AtomServiceStateChanged),
7232            "ATOM_SERVICE_LAUNCH_REPORTED" => Some(Self::AtomServiceLaunchReported),
7233            "ATOM_FLAG_FLIP_UPDATE_OCCURRED" => Some(Self::AtomFlagFlipUpdateOccurred),
7234            "ATOM_BINARY_PUSH_STATE_CHANGED" => Some(Self::AtomBinaryPushStateChanged),
7235            "ATOM_DEVICE_POLICY_EVENT" => Some(Self::AtomDevicePolicyEvent),
7236            "ATOM_DOCS_UI_FILE_OP_CANCELED" => Some(Self::AtomDocsUiFileOpCanceled),
7237            "ATOM_DOCS_UI_FILE_OP_COPY_MOVE_MODE_REPORTED" => {
7238                Some(Self::AtomDocsUiFileOpCopyMoveModeReported)
7239            }
7240            "ATOM_DOCS_UI_FILE_OP_FAILURE" => Some(Self::AtomDocsUiFileOpFailure),
7241            "ATOM_DOCS_UI_PROVIDER_FILE_OP" => Some(Self::AtomDocsUiProviderFileOp),
7242            "ATOM_DOCS_UI_INVALID_SCOPED_ACCESS_REQUEST" => {
7243                Some(Self::AtomDocsUiInvalidScopedAccessRequest)
7244            }
7245            "ATOM_DOCS_UI_LAUNCH_REPORTED" => Some(Self::AtomDocsUiLaunchReported),
7246            "ATOM_DOCS_UI_ROOT_VISITED" => Some(Self::AtomDocsUiRootVisited),
7247            "ATOM_DOCS_UI_STARTUP_MS" => Some(Self::AtomDocsUiStartupMs),
7248            "ATOM_DOCS_UI_USER_ACTION_REPORTED" => {
7249                Some(Self::AtomDocsUiUserActionReported)
7250            }
7251            "ATOM_WIFI_ENABLED_STATE_CHANGED" => Some(Self::AtomWifiEnabledStateChanged),
7252            "ATOM_WIFI_RUNNING_STATE_CHANGED" => Some(Self::AtomWifiRunningStateChanged),
7253            "ATOM_APP_COMPACTED" => Some(Self::AtomAppCompacted),
7254            "ATOM_NETWORK_DNS_EVENT_REPORTED" => Some(Self::AtomNetworkDnsEventReported),
7255            "ATOM_DOCS_UI_PICKER_LAUNCHED_FROM_REPORTED" => {
7256                Some(Self::AtomDocsUiPickerLaunchedFromReported)
7257            }
7258            "ATOM_DOCS_UI_PICK_RESULT_REPORTED" => {
7259                Some(Self::AtomDocsUiPickResultReported)
7260            }
7261            "ATOM_DOCS_UI_SEARCH_MODE_REPORTED" => {
7262                Some(Self::AtomDocsUiSearchModeReported)
7263            }
7264            "ATOM_DOCS_UI_SEARCH_TYPE_REPORTED" => {
7265                Some(Self::AtomDocsUiSearchTypeReported)
7266            }
7267            "ATOM_DATA_STALL_EVENT" => Some(Self::AtomDataStallEvent),
7268            "ATOM_RESCUE_PARTY_RESET_REPORTED" => {
7269                Some(Self::AtomRescuePartyResetReported)
7270            }
7271            "ATOM_SIGNED_CONFIG_REPORTED" => Some(Self::AtomSignedConfigReported),
7272            "ATOM_GNSS_NI_EVENT_REPORTED" => Some(Self::AtomGnssNiEventReported),
7273            "ATOM_BLUETOOTH_LINK_LAYER_CONNECTION_EVENT" => {
7274                Some(Self::AtomBluetoothLinkLayerConnectionEvent)
7275            }
7276            "ATOM_BLUETOOTH_ACL_CONNECTION_STATE_CHANGED" => {
7277                Some(Self::AtomBluetoothAclConnectionStateChanged)
7278            }
7279            "ATOM_BLUETOOTH_SCO_CONNECTION_STATE_CHANGED" => {
7280                Some(Self::AtomBluetoothScoConnectionStateChanged)
7281            }
7282            "ATOM_APP_DOWNGRADED" => Some(Self::AtomAppDowngraded),
7283            "ATOM_APP_OPTIMIZED_AFTER_DOWNGRADED" => {
7284                Some(Self::AtomAppOptimizedAfterDowngraded)
7285            }
7286            "ATOM_LOW_STORAGE_STATE_CHANGED" => Some(Self::AtomLowStorageStateChanged),
7287            "ATOM_GNSS_NFW_NOTIFICATION_REPORTED" => {
7288                Some(Self::AtomGnssNfwNotificationReported)
7289            }
7290            "ATOM_GNSS_CONFIGURATION_REPORTED" => {
7291                Some(Self::AtomGnssConfigurationReported)
7292            }
7293            "ATOM_USB_PORT_OVERHEAT_EVENT_REPORTED" => {
7294                Some(Self::AtomUsbPortOverheatEventReported)
7295            }
7296            "ATOM_NFC_ERROR_OCCURRED" => Some(Self::AtomNfcErrorOccurred),
7297            "ATOM_NFC_STATE_CHANGED" => Some(Self::AtomNfcStateChanged),
7298            "ATOM_NFC_BEAM_OCCURRED" => Some(Self::AtomNfcBeamOccurred),
7299            "ATOM_NFC_CARDEMULATION_OCCURRED" => Some(Self::AtomNfcCardemulationOccurred),
7300            "ATOM_NFC_TAG_OCCURRED" => Some(Self::AtomNfcTagOccurred),
7301            "ATOM_NFC_HCE_TRANSACTION_OCCURRED" => {
7302                Some(Self::AtomNfcHceTransactionOccurred)
7303            }
7304            "ATOM_SE_STATE_CHANGED" => Some(Self::AtomSeStateChanged),
7305            "ATOM_SE_OMAPI_REPORTED" => Some(Self::AtomSeOmapiReported),
7306            "ATOM_BROADCAST_DISPATCH_LATENCY_REPORTED" => {
7307                Some(Self::AtomBroadcastDispatchLatencyReported)
7308            }
7309            "ATOM_ATTENTION_MANAGER_SERVICE_RESULT_REPORTED" => {
7310                Some(Self::AtomAttentionManagerServiceResultReported)
7311            }
7312            "ATOM_ADB_CONNECTION_CHANGED" => Some(Self::AtomAdbConnectionChanged),
7313            "ATOM_SPEECH_DSP_STAT_REPORTED" => Some(Self::AtomSpeechDspStatReported),
7314            "ATOM_USB_CONTAMINANT_REPORTED" => Some(Self::AtomUsbContaminantReported),
7315            "ATOM_WATCHDOG_ROLLBACK_OCCURRED" => Some(Self::AtomWatchdogRollbackOccurred),
7316            "ATOM_BIOMETRIC_SYSTEM_HEALTH_ISSUE_DETECTED" => {
7317                Some(Self::AtomBiometricSystemHealthIssueDetected)
7318            }
7319            "ATOM_BUBBLE_UI_CHANGED" => Some(Self::AtomBubbleUiChanged),
7320            "ATOM_SCHEDULED_JOB_CONSTRAINT_CHANGED" => {
7321                Some(Self::AtomScheduledJobConstraintChanged)
7322            }
7323            "ATOM_BLUETOOTH_ACTIVE_DEVICE_CHANGED" => {
7324                Some(Self::AtomBluetoothActiveDeviceChanged)
7325            }
7326            "ATOM_BLUETOOTH_A2DP_PLAYBACK_STATE_CHANGED" => {
7327                Some(Self::AtomBluetoothA2dpPlaybackStateChanged)
7328            }
7329            "ATOM_BLUETOOTH_A2DP_CODEC_CONFIG_CHANGED" => {
7330                Some(Self::AtomBluetoothA2dpCodecConfigChanged)
7331            }
7332            "ATOM_BLUETOOTH_A2DP_CODEC_CAPABILITY_CHANGED" => {
7333                Some(Self::AtomBluetoothA2dpCodecCapabilityChanged)
7334            }
7335            "ATOM_BLUETOOTH_A2DP_AUDIO_UNDERRUN_REPORTED" => {
7336                Some(Self::AtomBluetoothA2dpAudioUnderrunReported)
7337            }
7338            "ATOM_BLUETOOTH_A2DP_AUDIO_OVERRUN_REPORTED" => {
7339                Some(Self::AtomBluetoothA2dpAudioOverrunReported)
7340            }
7341            "ATOM_BLUETOOTH_DEVICE_RSSI_REPORTED" => {
7342                Some(Self::AtomBluetoothDeviceRssiReported)
7343            }
7344            "ATOM_BLUETOOTH_DEVICE_FAILED_CONTACT_COUNTER_REPORTED" => {
7345                Some(Self::AtomBluetoothDeviceFailedContactCounterReported)
7346            }
7347            "ATOM_BLUETOOTH_DEVICE_TX_POWER_LEVEL_REPORTED" => {
7348                Some(Self::AtomBluetoothDeviceTxPowerLevelReported)
7349            }
7350            "ATOM_BLUETOOTH_HCI_TIMEOUT_REPORTED" => {
7351                Some(Self::AtomBluetoothHciTimeoutReported)
7352            }
7353            "ATOM_BLUETOOTH_QUALITY_REPORT_REPORTED" => {
7354                Some(Self::AtomBluetoothQualityReportReported)
7355            }
7356            "ATOM_BLUETOOTH_DEVICE_INFO_REPORTED" => {
7357                Some(Self::AtomBluetoothDeviceInfoReported)
7358            }
7359            "ATOM_BLUETOOTH_REMOTE_VERSION_INFO_REPORTED" => {
7360                Some(Self::AtomBluetoothRemoteVersionInfoReported)
7361            }
7362            "ATOM_BLUETOOTH_SDP_ATTRIBUTE_REPORTED" => {
7363                Some(Self::AtomBluetoothSdpAttributeReported)
7364            }
7365            "ATOM_BLUETOOTH_BOND_STATE_CHANGED" => {
7366                Some(Self::AtomBluetoothBondStateChanged)
7367            }
7368            "ATOM_BLUETOOTH_CLASSIC_PAIRING_EVENT_REPORTED" => {
7369                Some(Self::AtomBluetoothClassicPairingEventReported)
7370            }
7371            "ATOM_BLUETOOTH_SMP_PAIRING_EVENT_REPORTED" => {
7372                Some(Self::AtomBluetoothSmpPairingEventReported)
7373            }
7374            "ATOM_SCREEN_TIMEOUT_EXTENSION_REPORTED" => {
7375                Some(Self::AtomScreenTimeoutExtensionReported)
7376            }
7377            "ATOM_PROCESS_START_TIME" => Some(Self::AtomProcessStartTime),
7378            "ATOM_PERMISSION_GRANT_REQUEST_RESULT_REPORTED" => {
7379                Some(Self::AtomPermissionGrantRequestResultReported)
7380            }
7381            "ATOM_BLUETOOTH_SOCKET_CONNECTION_STATE_CHANGED" => {
7382                Some(Self::AtomBluetoothSocketConnectionStateChanged)
7383            }
7384            "ATOM_DEVICE_IDENTIFIER_ACCESS_DENIED" => {
7385                Some(Self::AtomDeviceIdentifierAccessDenied)
7386            }
7387            "ATOM_BUBBLE_DEVELOPER_ERROR_REPORTED" => {
7388                Some(Self::AtomBubbleDeveloperErrorReported)
7389            }
7390            "ATOM_ASSIST_GESTURE_STAGE_REPORTED" => {
7391                Some(Self::AtomAssistGestureStageReported)
7392            }
7393            "ATOM_ASSIST_GESTURE_FEEDBACK_REPORTED" => {
7394                Some(Self::AtomAssistGestureFeedbackReported)
7395            }
7396            "ATOM_ASSIST_GESTURE_PROGRESS_REPORTED" => {
7397                Some(Self::AtomAssistGestureProgressReported)
7398            }
7399            "ATOM_TOUCH_GESTURE_CLASSIFIED" => Some(Self::AtomTouchGestureClassified),
7400            "ATOM_HIDDEN_API_USED" => Some(Self::AtomHiddenApiUsed),
7401            "ATOM_STYLE_UI_CHANGED" => Some(Self::AtomStyleUiChanged),
7402            "ATOM_PRIVACY_INDICATORS_INTERACTED" => {
7403                Some(Self::AtomPrivacyIndicatorsInteracted)
7404            }
7405            "ATOM_APP_INSTALL_ON_EXTERNAL_STORAGE_REPORTED" => {
7406                Some(Self::AtomAppInstallOnExternalStorageReported)
7407            }
7408            "ATOM_NETWORK_STACK_REPORTED" => Some(Self::AtomNetworkStackReported),
7409            "ATOM_APP_MOVED_STORAGE_REPORTED" => Some(Self::AtomAppMovedStorageReported),
7410            "ATOM_BIOMETRIC_ENROLLED" => Some(Self::AtomBiometricEnrolled),
7411            "ATOM_SYSTEM_SERVER_WATCHDOG_OCCURRED" => {
7412                Some(Self::AtomSystemServerWatchdogOccurred)
7413            }
7414            "ATOM_TOMB_STONE_OCCURRED" => Some(Self::AtomTombStoneOccurred),
7415            "ATOM_BLUETOOTH_CLASS_OF_DEVICE_REPORTED" => {
7416                Some(Self::AtomBluetoothClassOfDeviceReported)
7417            }
7418            "ATOM_INTELLIGENCE_EVENT_REPORTED" => {
7419                Some(Self::AtomIntelligenceEventReported)
7420            }
7421            "ATOM_THERMAL_THROTTLING_SEVERITY_STATE_CHANGED" => {
7422                Some(Self::AtomThermalThrottlingSeverityStateChanged)
7423            }
7424            "ATOM_ROLE_REQUEST_RESULT_REPORTED" => {
7425                Some(Self::AtomRoleRequestResultReported)
7426            }
7427            "ATOM_MEDIAMETRICS_AUDIOPOLICY_REPORTED" => {
7428                Some(Self::AtomMediametricsAudiopolicyReported)
7429            }
7430            "ATOM_MEDIAMETRICS_AUDIORECORD_REPORTED" => {
7431                Some(Self::AtomMediametricsAudiorecordReported)
7432            }
7433            "ATOM_MEDIAMETRICS_AUDIOTHREAD_REPORTED" => {
7434                Some(Self::AtomMediametricsAudiothreadReported)
7435            }
7436            "ATOM_MEDIAMETRICS_AUDIOTRACK_REPORTED" => {
7437                Some(Self::AtomMediametricsAudiotrackReported)
7438            }
7439            "ATOM_MEDIAMETRICS_CODEC_REPORTED" => {
7440                Some(Self::AtomMediametricsCodecReported)
7441            }
7442            "ATOM_MEDIAMETRICS_DRM_WIDEVINE_REPORTED" => {
7443                Some(Self::AtomMediametricsDrmWidevineReported)
7444            }
7445            "ATOM_MEDIAMETRICS_EXTRACTOR_REPORTED" => {
7446                Some(Self::AtomMediametricsExtractorReported)
7447            }
7448            "ATOM_MEDIAMETRICS_MEDIADRM_REPORTED" => {
7449                Some(Self::AtomMediametricsMediadrmReported)
7450            }
7451            "ATOM_MEDIAMETRICS_NUPLAYER_REPORTED" => {
7452                Some(Self::AtomMediametricsNuplayerReported)
7453            }
7454            "ATOM_MEDIAMETRICS_RECORDER_REPORTED" => {
7455                Some(Self::AtomMediametricsRecorderReported)
7456            }
7457            "ATOM_MEDIAMETRICS_DRMMANAGER_REPORTED" => {
7458                Some(Self::AtomMediametricsDrmmanagerReported)
7459            }
7460            "ATOM_CAR_POWER_STATE_CHANGED" => Some(Self::AtomCarPowerStateChanged),
7461            "ATOM_GARAGE_MODE_INFO" => Some(Self::AtomGarageModeInfo),
7462            "ATOM_TEST_ATOM_REPORTED" => Some(Self::AtomTestAtomReported),
7463            "ATOM_CONTENT_CAPTURE_CALLER_MISMATCH_REPORTED" => {
7464                Some(Self::AtomContentCaptureCallerMismatchReported)
7465            }
7466            "ATOM_CONTENT_CAPTURE_SERVICE_EVENTS" => {
7467                Some(Self::AtomContentCaptureServiceEvents)
7468            }
7469            "ATOM_CONTENT_CAPTURE_SESSION_EVENTS" => {
7470                Some(Self::AtomContentCaptureSessionEvents)
7471            }
7472            "ATOM_CONTENT_CAPTURE_FLUSHED" => Some(Self::AtomContentCaptureFlushed),
7473            "ATOM_LOCATION_MANAGER_API_USAGE_REPORTED" => {
7474                Some(Self::AtomLocationManagerApiUsageReported)
7475            }
7476            "ATOM_REVIEW_PERMISSIONS_FRAGMENT_RESULT_REPORTED" => {
7477                Some(Self::AtomReviewPermissionsFragmentResultReported)
7478            }
7479            "ATOM_RUNTIME_PERMISSIONS_UPGRADE_RESULT" => {
7480                Some(Self::AtomRuntimePermissionsUpgradeResult)
7481            }
7482            "ATOM_GRANT_PERMISSIONS_ACTIVITY_BUTTON_ACTIONS" => {
7483                Some(Self::AtomGrantPermissionsActivityButtonActions)
7484            }
7485            "ATOM_LOCATION_ACCESS_CHECK_NOTIFICATION_ACTION" => {
7486                Some(Self::AtomLocationAccessCheckNotificationAction)
7487            }
7488            "ATOM_APP_PERMISSION_FRAGMENT_ACTION_REPORTED" => {
7489                Some(Self::AtomAppPermissionFragmentActionReported)
7490            }
7491            "ATOM_APP_PERMISSION_FRAGMENT_VIEWED" => {
7492                Some(Self::AtomAppPermissionFragmentViewed)
7493            }
7494            "ATOM_APP_PERMISSIONS_FRAGMENT_VIEWED" => {
7495                Some(Self::AtomAppPermissionsFragmentViewed)
7496            }
7497            "ATOM_PERMISSION_APPS_FRAGMENT_VIEWED" => {
7498                Some(Self::AtomPermissionAppsFragmentViewed)
7499            }
7500            "ATOM_TEXT_SELECTION_EVENT" => Some(Self::AtomTextSelectionEvent),
7501            "ATOM_TEXT_LINKIFY_EVENT" => Some(Self::AtomTextLinkifyEvent),
7502            "ATOM_CONVERSATION_ACTIONS_EVENT" => Some(Self::AtomConversationActionsEvent),
7503            "ATOM_LANGUAGE_DETECTION_EVENT" => Some(Self::AtomLanguageDetectionEvent),
7504            "ATOM_EXCLUSION_RECT_STATE_CHANGED" => {
7505                Some(Self::AtomExclusionRectStateChanged)
7506            }
7507            "ATOM_BACK_GESTURE_REPORTED_REPORTED" => {
7508                Some(Self::AtomBackGestureReportedReported)
7509            }
7510            "ATOM_UPDATE_ENGINE_UPDATE_ATTEMPT_REPORTED" => {
7511                Some(Self::AtomUpdateEngineUpdateAttemptReported)
7512            }
7513            "ATOM_UPDATE_ENGINE_SUCCESSFUL_UPDATE_REPORTED" => {
7514                Some(Self::AtomUpdateEngineSuccessfulUpdateReported)
7515            }
7516            "ATOM_CAMERA_ACTION_EVENT" => Some(Self::AtomCameraActionEvent),
7517            "ATOM_APP_COMPATIBILITY_CHANGE_REPORTED" => {
7518                Some(Self::AtomAppCompatibilityChangeReported)
7519            }
7520            "ATOM_PERFETTO_UPLOADED" => Some(Self::AtomPerfettoUploaded),
7521            "ATOM_VMS_CLIENT_CONNECTION_STATE_CHANGED" => {
7522                Some(Self::AtomVmsClientConnectionStateChanged)
7523            }
7524            "ATOM_MEDIA_PROVIDER_SCAN_OCCURRED" => {
7525                Some(Self::AtomMediaProviderScanOccurred)
7526            }
7527            "ATOM_MEDIA_CONTENT_DELETED" => Some(Self::AtomMediaContentDeleted),
7528            "ATOM_MEDIA_PROVIDER_PERMISSION_REQUESTED" => {
7529                Some(Self::AtomMediaProviderPermissionRequested)
7530            }
7531            "ATOM_MEDIA_PROVIDER_SCHEMA_CHANGED" => {
7532                Some(Self::AtomMediaProviderSchemaChanged)
7533            }
7534            "ATOM_MEDIA_PROVIDER_IDLE_MAINTENANCE_FINISHED" => {
7535                Some(Self::AtomMediaProviderIdleMaintenanceFinished)
7536            }
7537            "ATOM_REBOOT_ESCROW_RECOVERY_REPORTED" => {
7538                Some(Self::AtomRebootEscrowRecoveryReported)
7539            }
7540            "ATOM_BOOT_TIME_EVENT_DURATION_REPORTED" => {
7541                Some(Self::AtomBootTimeEventDurationReported)
7542            }
7543            "ATOM_BOOT_TIME_EVENT_ELAPSED_TIME_REPORTED" => {
7544                Some(Self::AtomBootTimeEventElapsedTimeReported)
7545            }
7546            "ATOM_BOOT_TIME_EVENT_UTC_TIME_REPORTED" => {
7547                Some(Self::AtomBootTimeEventUtcTimeReported)
7548            }
7549            "ATOM_BOOT_TIME_EVENT_ERROR_CODE_REPORTED" => {
7550                Some(Self::AtomBootTimeEventErrorCodeReported)
7551            }
7552            "ATOM_USERSPACE_REBOOT_REPORTED" => Some(Self::AtomUserspaceRebootReported),
7553            "ATOM_NOTIFICATION_REPORTED" => Some(Self::AtomNotificationReported),
7554            "ATOM_NOTIFICATION_PANEL_REPORTED" => {
7555                Some(Self::AtomNotificationPanelReported)
7556            }
7557            "ATOM_NOTIFICATION_CHANNEL_MODIFIED" => {
7558                Some(Self::AtomNotificationChannelModified)
7559            }
7560            "ATOM_INTEGRITY_CHECK_RESULT_REPORTED" => {
7561                Some(Self::AtomIntegrityCheckResultReported)
7562            }
7563            "ATOM_INTEGRITY_RULES_PUSHED" => Some(Self::AtomIntegrityRulesPushed),
7564            "ATOM_CB_MESSAGE_REPORTED" => Some(Self::AtomCbMessageReported),
7565            "ATOM_CB_MESSAGE_ERROR" => Some(Self::AtomCbMessageError),
7566            "ATOM_WIFI_HEALTH_STAT_REPORTED" => Some(Self::AtomWifiHealthStatReported),
7567            "ATOM_WIFI_FAILURE_STAT_REPORTED" => Some(Self::AtomWifiFailureStatReported),
7568            "ATOM_WIFI_CONNECTION_RESULT_REPORTED" => {
7569                Some(Self::AtomWifiConnectionResultReported)
7570            }
7571            "ATOM_APP_FREEZE_CHANGED" => Some(Self::AtomAppFreezeChanged),
7572            "ATOM_SNAPSHOT_MERGE_REPORTED" => Some(Self::AtomSnapshotMergeReported),
7573            "ATOM_FOREGROUND_SERVICE_APP_OP_SESSION_ENDED" => {
7574                Some(Self::AtomForegroundServiceAppOpSessionEnded)
7575            }
7576            "ATOM_DISPLAY_JANK_REPORTED" => Some(Self::AtomDisplayJankReported),
7577            "ATOM_APP_STANDBY_BUCKET_CHANGED" => Some(Self::AtomAppStandbyBucketChanged),
7578            "ATOM_SHARESHEET_STARTED" => Some(Self::AtomSharesheetStarted),
7579            "ATOM_RANKING_SELECTED" => Some(Self::AtomRankingSelected),
7580            "ATOM_TVSETTINGS_UI_INTERACTED" => Some(Self::AtomTvsettingsUiInteracted),
7581            "ATOM_LAUNCHER_SNAPSHOT" => Some(Self::AtomLauncherSnapshot),
7582            "ATOM_PACKAGE_INSTALLER_V2_REPORTED" => {
7583                Some(Self::AtomPackageInstallerV2Reported)
7584            }
7585            "ATOM_USER_LIFECYCLE_JOURNEY_REPORTED" => {
7586                Some(Self::AtomUserLifecycleJourneyReported)
7587            }
7588            "ATOM_USER_LIFECYCLE_EVENT_OCCURRED" => {
7589                Some(Self::AtomUserLifecycleEventOccurred)
7590            }
7591            "ATOM_ACCESSIBILITY_SHORTCUT_REPORTED" => {
7592                Some(Self::AtomAccessibilityShortcutReported)
7593            }
7594            "ATOM_ACCESSIBILITY_SERVICE_REPORTED" => {
7595                Some(Self::AtomAccessibilityServiceReported)
7596            }
7597            "ATOM_DOCS_UI_DRAG_AND_DROP_REPORTED" => {
7598                Some(Self::AtomDocsUiDragAndDropReported)
7599            }
7600            "ATOM_APP_USAGE_EVENT_OCCURRED" => Some(Self::AtomAppUsageEventOccurred),
7601            "ATOM_AUTO_REVOKE_NOTIFICATION_CLICKED" => {
7602                Some(Self::AtomAutoRevokeNotificationClicked)
7603            }
7604            "ATOM_AUTO_REVOKE_FRAGMENT_APP_VIEWED" => {
7605                Some(Self::AtomAutoRevokeFragmentAppViewed)
7606            }
7607            "ATOM_AUTO_REVOKED_APP_INTERACTION" => {
7608                Some(Self::AtomAutoRevokedAppInteraction)
7609            }
7610            "ATOM_APP_PERMISSION_GROUPS_FRAGMENT_AUTO_REVOKE_ACTION" => {
7611                Some(Self::AtomAppPermissionGroupsFragmentAutoRevokeAction)
7612            }
7613            "ATOM_EVS_USAGE_STATS_REPORTED" => Some(Self::AtomEvsUsageStatsReported),
7614            "ATOM_AUDIO_POWER_USAGE_DATA_REPORTED" => {
7615                Some(Self::AtomAudioPowerUsageDataReported)
7616            }
7617            "ATOM_TV_TUNER_STATE_CHANGED" => Some(Self::AtomTvTunerStateChanged),
7618            "ATOM_MEDIAOUTPUT_OP_SWITCH_REPORTED" => {
7619                Some(Self::AtomMediaoutputOpSwitchReported)
7620            }
7621            "ATOM_CB_MESSAGE_FILTERED" => Some(Self::AtomCbMessageFiltered),
7622            "ATOM_TV_TUNER_DVR_STATUS" => Some(Self::AtomTvTunerDvrStatus),
7623            "ATOM_TV_CAS_SESSION_OPEN_STATUS" => Some(Self::AtomTvCasSessionOpenStatus),
7624            "ATOM_ASSISTANT_INVOCATION_REPORTED" => {
7625                Some(Self::AtomAssistantInvocationReported)
7626            }
7627            "ATOM_DISPLAY_WAKE_REPORTED" => Some(Self::AtomDisplayWakeReported),
7628            "ATOM_CAR_USER_HAL_MODIFY_USER_REQUEST_REPORTED" => {
7629                Some(Self::AtomCarUserHalModifyUserRequestReported)
7630            }
7631            "ATOM_CAR_USER_HAL_MODIFY_USER_RESPONSE_REPORTED" => {
7632                Some(Self::AtomCarUserHalModifyUserResponseReported)
7633            }
7634            "ATOM_CAR_USER_HAL_POST_SWITCH_RESPONSE_REPORTED" => {
7635                Some(Self::AtomCarUserHalPostSwitchResponseReported)
7636            }
7637            "ATOM_CAR_USER_HAL_INITIAL_USER_INFO_REQUEST_REPORTED" => {
7638                Some(Self::AtomCarUserHalInitialUserInfoRequestReported)
7639            }
7640            "ATOM_CAR_USER_HAL_INITIAL_USER_INFO_RESPONSE_REPORTED" => {
7641                Some(Self::AtomCarUserHalInitialUserInfoResponseReported)
7642            }
7643            "ATOM_CAR_USER_HAL_USER_ASSOCIATION_REQUEST_REPORTED" => {
7644                Some(Self::AtomCarUserHalUserAssociationRequestReported)
7645            }
7646            "ATOM_CAR_USER_HAL_SET_USER_ASSOCIATION_RESPONSE_REPORTED" => {
7647                Some(Self::AtomCarUserHalSetUserAssociationResponseReported)
7648            }
7649            "ATOM_NETWORK_IP_PROVISIONING_REPORTED" => {
7650                Some(Self::AtomNetworkIpProvisioningReported)
7651            }
7652            "ATOM_NETWORK_DHCP_RENEW_REPORTED" => {
7653                Some(Self::AtomNetworkDhcpRenewReported)
7654            }
7655            "ATOM_NETWORK_VALIDATION_REPORTED" => {
7656                Some(Self::AtomNetworkValidationReported)
7657            }
7658            "ATOM_NETWORK_STACK_QUIRK_REPORTED" => {
7659                Some(Self::AtomNetworkStackQuirkReported)
7660            }
7661            "ATOM_MEDIAMETRICS_AUDIORECORDDEVICEUSAGE_REPORTED" => {
7662                Some(Self::AtomMediametricsAudiorecorddeviceusageReported)
7663            }
7664            "ATOM_MEDIAMETRICS_AUDIOTHREADDEVICEUSAGE_REPORTED" => {
7665                Some(Self::AtomMediametricsAudiothreaddeviceusageReported)
7666            }
7667            "ATOM_MEDIAMETRICS_AUDIOTRACKDEVICEUSAGE_REPORTED" => {
7668                Some(Self::AtomMediametricsAudiotrackdeviceusageReported)
7669            }
7670            "ATOM_MEDIAMETRICS_AUDIODEVICECONNECTION_REPORTED" => {
7671                Some(Self::AtomMediametricsAudiodeviceconnectionReported)
7672            }
7673            "ATOM_BLOB_COMMITTED" => Some(Self::AtomBlobCommitted),
7674            "ATOM_BLOB_LEASED" => Some(Self::AtomBlobLeased),
7675            "ATOM_BLOB_OPENED" => Some(Self::AtomBlobOpened),
7676            "ATOM_CONTACTS_PROVIDER_STATUS_REPORTED" => {
7677                Some(Self::AtomContactsProviderStatusReported)
7678            }
7679            "ATOM_KEYSTORE_KEY_EVENT_REPORTED" => {
7680                Some(Self::AtomKeystoreKeyEventReported)
7681            }
7682            "ATOM_NETWORK_TETHERING_REPORTED" => Some(Self::AtomNetworkTetheringReported),
7683            "ATOM_IME_TOUCH_REPORTED" => Some(Self::AtomImeTouchReported),
7684            "ATOM_UI_INTERACTION_FRAME_INFO_REPORTED" => {
7685                Some(Self::AtomUiInteractionFrameInfoReported)
7686            }
7687            "ATOM_UI_ACTION_LATENCY_REPORTED" => Some(Self::AtomUiActionLatencyReported),
7688            "ATOM_WIFI_DISCONNECT_REPORTED" => Some(Self::AtomWifiDisconnectReported),
7689            "ATOM_WIFI_CONNECTION_STATE_CHANGED" => {
7690                Some(Self::AtomWifiConnectionStateChanged)
7691            }
7692            "ATOM_HDMI_CEC_ACTIVE_SOURCE_CHANGED" => {
7693                Some(Self::AtomHdmiCecActiveSourceChanged)
7694            }
7695            "ATOM_HDMI_CEC_MESSAGE_REPORTED" => Some(Self::AtomHdmiCecMessageReported),
7696            "ATOM_AIRPLANE_MODE" => Some(Self::AtomAirplaneMode),
7697            "ATOM_MODEM_RESTART" => Some(Self::AtomModemRestart),
7698            "ATOM_CARRIER_ID_MISMATCH_REPORTED" => {
7699                Some(Self::AtomCarrierIdMismatchReported)
7700            }
7701            "ATOM_CARRIER_ID_TABLE_UPDATED" => Some(Self::AtomCarrierIdTableUpdated),
7702            "ATOM_DATA_STALL_RECOVERY_REPORTED" => {
7703                Some(Self::AtomDataStallRecoveryReported)
7704            }
7705            "ATOM_MEDIAMETRICS_MEDIAPARSER_REPORTED" => {
7706                Some(Self::AtomMediametricsMediaparserReported)
7707            }
7708            "ATOM_TLS_HANDSHAKE_REPORTED" => Some(Self::AtomTlsHandshakeReported),
7709            "ATOM_TEXT_CLASSIFIER_API_USAGE_REPORTED" => {
7710                Some(Self::AtomTextClassifierApiUsageReported)
7711            }
7712            "ATOM_CAR_WATCHDOG_KILL_STATS_REPORTED" => {
7713                Some(Self::AtomCarWatchdogKillStatsReported)
7714            }
7715            "ATOM_MEDIAMETRICS_PLAYBACK_REPORTED" => {
7716                Some(Self::AtomMediametricsPlaybackReported)
7717            }
7718            "ATOM_MEDIA_NETWORK_INFO_CHANGED" => Some(Self::AtomMediaNetworkInfoChanged),
7719            "ATOM_MEDIA_PLAYBACK_STATE_CHANGED" => {
7720                Some(Self::AtomMediaPlaybackStateChanged)
7721            }
7722            "ATOM_MEDIA_PLAYBACK_ERROR_REPORTED" => {
7723                Some(Self::AtomMediaPlaybackErrorReported)
7724            }
7725            "ATOM_MEDIA_PLAYBACK_TRACK_CHANGED" => {
7726                Some(Self::AtomMediaPlaybackTrackChanged)
7727            }
7728            "ATOM_WIFI_SCAN_REPORTED" => Some(Self::AtomWifiScanReported),
7729            "ATOM_WIFI_PNO_SCAN_REPORTED" => Some(Self::AtomWifiPnoScanReported),
7730            "ATOM_TIF_TUNE_CHANGED" => Some(Self::AtomTifTuneChanged),
7731            "ATOM_AUTO_ROTATE_REPORTED" => Some(Self::AtomAutoRotateReported),
7732            "ATOM_PERFETTO_TRIGGER" => Some(Self::AtomPerfettoTrigger),
7733            "ATOM_TRANSCODING_DATA" => Some(Self::AtomTranscodingData),
7734            "ATOM_IMS_SERVICE_ENTITLEMENT_UPDATED" => {
7735                Some(Self::AtomImsServiceEntitlementUpdated)
7736            }
7737            "ATOM_DEVICE_ROTATED" => Some(Self::AtomDeviceRotated),
7738            "ATOM_SIM_SPECIFIC_SETTINGS_RESTORED" => {
7739                Some(Self::AtomSimSpecificSettingsRestored)
7740            }
7741            "ATOM_TEXT_CLASSIFIER_DOWNLOAD_REPORTED" => {
7742                Some(Self::AtomTextClassifierDownloadReported)
7743            }
7744            "ATOM_PIN_STORAGE_EVENT" => Some(Self::AtomPinStorageEvent),
7745            "ATOM_FACE_DOWN_REPORTED" => Some(Self::AtomFaceDownReported),
7746            "ATOM_BLUETOOTH_HAL_CRASH_REASON_REPORTED" => {
7747                Some(Self::AtomBluetoothHalCrashReasonReported)
7748            }
7749            "ATOM_REBOOT_ESCROW_PREPARATION_REPORTED" => {
7750                Some(Self::AtomRebootEscrowPreparationReported)
7751            }
7752            "ATOM_REBOOT_ESCROW_LSKF_CAPTURE_REPORTED" => {
7753                Some(Self::AtomRebootEscrowLskfCaptureReported)
7754            }
7755            "ATOM_REBOOT_ESCROW_REBOOT_REPORTED" => {
7756                Some(Self::AtomRebootEscrowRebootReported)
7757            }
7758            "ATOM_BINDER_LATENCY_REPORTED" => Some(Self::AtomBinderLatencyReported),
7759            "ATOM_MEDIAMETRICS_AAUDIOSTREAM_REPORTED" => {
7760                Some(Self::AtomMediametricsAaudiostreamReported)
7761            }
7762            "ATOM_MEDIA_TRANSCODING_SESSION_ENDED" => {
7763                Some(Self::AtomMediaTranscodingSessionEnded)
7764            }
7765            "ATOM_MAGNIFICATION_USAGE_REPORTED" => {
7766                Some(Self::AtomMagnificationUsageReported)
7767            }
7768            "ATOM_MAGNIFICATION_MODE_WITH_IME_ON_REPORTED" => {
7769                Some(Self::AtomMagnificationModeWithImeOnReported)
7770            }
7771            "ATOM_APP_SEARCH_CALL_STATS_REPORTED" => {
7772                Some(Self::AtomAppSearchCallStatsReported)
7773            }
7774            "ATOM_APP_SEARCH_PUT_DOCUMENT_STATS_REPORTED" => {
7775                Some(Self::AtomAppSearchPutDocumentStatsReported)
7776            }
7777            "ATOM_DEVICE_CONTROL_CHANGED" => Some(Self::AtomDeviceControlChanged),
7778            "ATOM_DEVICE_STATE_CHANGED" => Some(Self::AtomDeviceStateChanged),
7779            "ATOM_INPUTDEVICE_REGISTERED" => Some(Self::AtomInputdeviceRegistered),
7780            "ATOM_SMARTSPACE_CARD_REPORTED" => Some(Self::AtomSmartspaceCardReported),
7781            "ATOM_AUTH_PROMPT_AUTHENTICATE_INVOKED" => {
7782                Some(Self::AtomAuthPromptAuthenticateInvoked)
7783            }
7784            "ATOM_AUTH_MANAGER_CAN_AUTHENTICATE_INVOKED" => {
7785                Some(Self::AtomAuthManagerCanAuthenticateInvoked)
7786            }
7787            "ATOM_AUTH_ENROLL_ACTION_INVOKED" => Some(Self::AtomAuthEnrollActionInvoked),
7788            "ATOM_AUTH_DEPRECATED_API_USED" => Some(Self::AtomAuthDeprecatedApiUsed),
7789            "ATOM_UNATTENDED_REBOOT_OCCURRED" => Some(Self::AtomUnattendedRebootOccurred),
7790            "ATOM_LONG_REBOOT_BLOCKING_REPORTED" => {
7791                Some(Self::AtomLongRebootBlockingReported)
7792            }
7793            "ATOM_LOCATION_TIME_ZONE_PROVIDER_STATE_CHANGED" => {
7794                Some(Self::AtomLocationTimeZoneProviderStateChanged)
7795            }
7796            "ATOM_FDTRACK_EVENT_OCCURRED" => Some(Self::AtomFdtrackEventOccurred),
7797            "ATOM_TIMEOUT_AUTO_EXTENDED_REPORTED" => {
7798                Some(Self::AtomTimeoutAutoExtendedReported)
7799            }
7800            "ATOM_ALARM_BATCH_DELIVERED" => Some(Self::AtomAlarmBatchDelivered),
7801            "ATOM_ALARM_SCHEDULED" => Some(Self::AtomAlarmScheduled),
7802            "ATOM_CAR_WATCHDOG_IO_OVERUSE_STATS_REPORTED" => {
7803                Some(Self::AtomCarWatchdogIoOveruseStatsReported)
7804            }
7805            "ATOM_USER_LEVEL_HIBERNATION_STATE_CHANGED" => {
7806                Some(Self::AtomUserLevelHibernationStateChanged)
7807            }
7808            "ATOM_APP_SEARCH_INITIALIZE_STATS_REPORTED" => {
7809                Some(Self::AtomAppSearchInitializeStatsReported)
7810            }
7811            "ATOM_APP_SEARCH_QUERY_STATS_REPORTED" => {
7812                Some(Self::AtomAppSearchQueryStatsReported)
7813            }
7814            "ATOM_APP_PROCESS_DIED" => Some(Self::AtomAppProcessDied),
7815            "ATOM_NETWORK_IP_REACHABILITY_MONITOR_REPORTED" => {
7816                Some(Self::AtomNetworkIpReachabilityMonitorReported)
7817            }
7818            "ATOM_SLOW_INPUT_EVENT_REPORTED" => Some(Self::AtomSlowInputEventReported),
7819            "ATOM_ANR_OCCURRED_PROCESSING_STARTED" => {
7820                Some(Self::AtomAnrOccurredProcessingStarted)
7821            }
7822            "ATOM_APP_SEARCH_REMOVE_STATS_REPORTED" => {
7823                Some(Self::AtomAppSearchRemoveStatsReported)
7824            }
7825            "ATOM_MEDIA_CODEC_REPORTED" => Some(Self::AtomMediaCodecReported),
7826            "ATOM_PERMISSION_USAGE_FRAGMENT_INTERACTION" => {
7827                Some(Self::AtomPermissionUsageFragmentInteraction)
7828            }
7829            "ATOM_PERMISSION_DETAILS_INTERACTION" => {
7830                Some(Self::AtomPermissionDetailsInteraction)
7831            }
7832            "ATOM_PRIVACY_SENSOR_TOGGLE_INTERACTION" => {
7833                Some(Self::AtomPrivacySensorToggleInteraction)
7834            }
7835            "ATOM_PRIVACY_TOGGLE_DIALOG_INTERACTION" => {
7836                Some(Self::AtomPrivacyToggleDialogInteraction)
7837            }
7838            "ATOM_APP_SEARCH_OPTIMIZE_STATS_REPORTED" => {
7839                Some(Self::AtomAppSearchOptimizeStatsReported)
7840            }
7841            "ATOM_NON_A11Y_TOOL_SERVICE_WARNING_REPORT" => {
7842                Some(Self::AtomNonA11yToolServiceWarningReport)
7843            }
7844            "ATOM_APP_COMPAT_STATE_CHANGED" => Some(Self::AtomAppCompatStateChanged),
7845            "ATOM_SIZE_COMPAT_RESTART_BUTTON_EVENT_REPORTED" => {
7846                Some(Self::AtomSizeCompatRestartButtonEventReported)
7847            }
7848            "ATOM_SPLITSCREEN_UI_CHANGED" => Some(Self::AtomSplitscreenUiChanged),
7849            "ATOM_NETWORK_DNS_HANDSHAKE_REPORTED" => {
7850                Some(Self::AtomNetworkDnsHandshakeReported)
7851            }
7852            "ATOM_BLUETOOTH_CODE_PATH_COUNTER" => {
7853                Some(Self::AtomBluetoothCodePathCounter)
7854            }
7855            "ATOM_BLUETOOTH_LE_BATCH_SCAN_REPORT_DELAY" => {
7856                Some(Self::AtomBluetoothLeBatchScanReportDelay)
7857            }
7858            "ATOM_ACCESSIBILITY_FLOATING_MENU_UI_CHANGED" => {
7859                Some(Self::AtomAccessibilityFloatingMenuUiChanged)
7860            }
7861            "ATOM_NEURALNETWORKS_COMPILATION_COMPLETED" => {
7862                Some(Self::AtomNeuralnetworksCompilationCompleted)
7863            }
7864            "ATOM_NEURALNETWORKS_EXECUTION_COMPLETED" => {
7865                Some(Self::AtomNeuralnetworksExecutionCompleted)
7866            }
7867            "ATOM_NEURALNETWORKS_COMPILATION_FAILED" => {
7868                Some(Self::AtomNeuralnetworksCompilationFailed)
7869            }
7870            "ATOM_NEURALNETWORKS_EXECUTION_FAILED" => {
7871                Some(Self::AtomNeuralnetworksExecutionFailed)
7872            }
7873            "ATOM_CONTEXT_HUB_BOOTED" => Some(Self::AtomContextHubBooted),
7874            "ATOM_CONTEXT_HUB_RESTARTED" => Some(Self::AtomContextHubRestarted),
7875            "ATOM_CONTEXT_HUB_LOADED_NANOAPP_SNAPSHOT_REPORTED" => {
7876                Some(Self::AtomContextHubLoadedNanoappSnapshotReported)
7877            }
7878            "ATOM_CHRE_CODE_DOWNLOAD_TRANSACTED" => {
7879                Some(Self::AtomChreCodeDownloadTransacted)
7880            }
7881            "ATOM_UWB_SESSION_INITED" => Some(Self::AtomUwbSessionInited),
7882            "ATOM_UWB_SESSION_CLOSED" => Some(Self::AtomUwbSessionClosed),
7883            "ATOM_UWB_FIRST_RANGING_RECEIVED" => Some(Self::AtomUwbFirstRangingReceived),
7884            "ATOM_UWB_RANGING_MEASUREMENT_RECEIVED" => {
7885                Some(Self::AtomUwbRangingMeasurementReceived)
7886            }
7887            "ATOM_TEXT_CLASSIFIER_DOWNLOAD_WORK_SCHEDULED" => {
7888                Some(Self::AtomTextClassifierDownloadWorkScheduled)
7889            }
7890            "ATOM_TEXT_CLASSIFIER_DOWNLOAD_WORK_COMPLETED" => {
7891                Some(Self::AtomTextClassifierDownloadWorkCompleted)
7892            }
7893            "ATOM_CLIPBOARD_CLEARED" => Some(Self::AtomClipboardCleared),
7894            "ATOM_VM_CREATION_REQUESTED" => Some(Self::AtomVmCreationRequested),
7895            "ATOM_NEARBY_DEVICE_SCAN_STATE_CHANGED" => {
7896                Some(Self::AtomNearbyDeviceScanStateChanged)
7897            }
7898            "ATOM_APPLICATION_LOCALES_CHANGED" => {
7899                Some(Self::AtomApplicationLocalesChanged)
7900            }
7901            "ATOM_MEDIAMETRICS_AUDIOTRACKSTATUS_REPORTED" => {
7902                Some(Self::AtomMediametricsAudiotrackstatusReported)
7903            }
7904            "ATOM_FOLD_STATE_DURATION_REPORTED" => {
7905                Some(Self::AtomFoldStateDurationReported)
7906            }
7907            "ATOM_LOCATION_TIME_ZONE_PROVIDER_CONTROLLER_STATE_CHANGED" => {
7908                Some(Self::AtomLocationTimeZoneProviderControllerStateChanged)
7909            }
7910            "ATOM_DISPLAY_HBM_STATE_CHANGED" => Some(Self::AtomDisplayHbmStateChanged),
7911            "ATOM_DISPLAY_HBM_BRIGHTNESS_CHANGED" => {
7912                Some(Self::AtomDisplayHbmBrightnessChanged)
7913            }
7914            "ATOM_PERSISTENT_URI_PERMISSIONS_FLUSHED" => {
7915                Some(Self::AtomPersistentUriPermissionsFlushed)
7916            }
7917            "ATOM_EARLY_BOOT_COMP_OS_ARTIFACTS_CHECK_REPORTED" => {
7918                Some(Self::AtomEarlyBootCompOsArtifactsCheckReported)
7919            }
7920            "ATOM_VBMETA_DIGEST_REPORTED" => Some(Self::AtomVbmetaDigestReported),
7921            "ATOM_APEX_INFO_GATHERED" => Some(Self::AtomApexInfoGathered),
7922            "ATOM_PVM_INFO_GATHERED" => Some(Self::AtomPvmInfoGathered),
7923            "ATOM_WEAR_SETTINGS_UI_INTERACTED" => {
7924                Some(Self::AtomWearSettingsUiInteracted)
7925            }
7926            "ATOM_TRACING_SERVICE_REPORT_EVENT" => {
7927                Some(Self::AtomTracingServiceReportEvent)
7928            }
7929            "ATOM_MEDIAMETRICS_AUDIORECORDSTATUS_REPORTED" => {
7930                Some(Self::AtomMediametricsAudiorecordstatusReported)
7931            }
7932            "ATOM_LAUNCHER_LATENCY" => Some(Self::AtomLauncherLatency),
7933            "ATOM_DROPBOX_ENTRY_DROPPED" => Some(Self::AtomDropboxEntryDropped),
7934            "ATOM_WIFI_P2P_CONNECTION_REPORTED" => {
7935                Some(Self::AtomWifiP2pConnectionReported)
7936            }
7937            "ATOM_GAME_STATE_CHANGED" => Some(Self::AtomGameStateChanged),
7938            "ATOM_HOTWORD_DETECTOR_CREATE_REQUESTED" => {
7939                Some(Self::AtomHotwordDetectorCreateRequested)
7940            }
7941            "ATOM_HOTWORD_DETECTION_SERVICE_INIT_RESULT_REPORTED" => {
7942                Some(Self::AtomHotwordDetectionServiceInitResultReported)
7943            }
7944            "ATOM_HOTWORD_DETECTION_SERVICE_RESTARTED" => {
7945                Some(Self::AtomHotwordDetectionServiceRestarted)
7946            }
7947            "ATOM_HOTWORD_DETECTOR_KEYPHRASE_TRIGGERED" => {
7948                Some(Self::AtomHotwordDetectorKeyphraseTriggered)
7949            }
7950            "ATOM_HOTWORD_DETECTOR_EVENTS" => Some(Self::AtomHotwordDetectorEvents),
7951            "ATOM_BOOT_COMPLETED_BROADCAST_COMPLETION_LATENCY_REPORTED" => {
7952                Some(Self::AtomBootCompletedBroadcastCompletionLatencyReported)
7953            }
7954            "ATOM_CONTACTS_INDEXER_UPDATE_STATS_REPORTED" => {
7955                Some(Self::AtomContactsIndexerUpdateStatsReported)
7956            }
7957            "ATOM_APP_BACKGROUND_RESTRICTIONS_INFO" => {
7958                Some(Self::AtomAppBackgroundRestrictionsInfo)
7959            }
7960            "ATOM_MMS_SMS_PROVIDER_GET_THREAD_ID_FAILED" => {
7961                Some(Self::AtomMmsSmsProviderGetThreadIdFailed)
7962            }
7963            "ATOM_MMS_SMS_DATABASE_HELPER_ON_UPGRADE_FAILED" => {
7964                Some(Self::AtomMmsSmsDatabaseHelperOnUpgradeFailed)
7965            }
7966            "ATOM_PERMISSION_REMINDER_NOTIFICATION_INTERACTED" => {
7967                Some(Self::AtomPermissionReminderNotificationInteracted)
7968            }
7969            "ATOM_RECENT_PERMISSION_DECISIONS_INTERACTED" => {
7970                Some(Self::AtomRecentPermissionDecisionsInteracted)
7971            }
7972            "ATOM_GNSS_PSDS_DOWNLOAD_REPORTED" => {
7973                Some(Self::AtomGnssPsdsDownloadReported)
7974            }
7975            "ATOM_LE_AUDIO_CONNECTION_SESSION_REPORTED" => {
7976                Some(Self::AtomLeAudioConnectionSessionReported)
7977            }
7978            "ATOM_LE_AUDIO_BROADCAST_SESSION_REPORTED" => {
7979                Some(Self::AtomLeAudioBroadcastSessionReported)
7980            }
7981            "ATOM_DREAM_UI_EVENT_REPORTED" => Some(Self::AtomDreamUiEventReported),
7982            "ATOM_TASK_MANAGER_EVENT_REPORTED" => {
7983                Some(Self::AtomTaskManagerEventReported)
7984            }
7985            "ATOM_CDM_ASSOCIATION_ACTION" => Some(Self::AtomCdmAssociationAction),
7986            "ATOM_MAGNIFICATION_TRIPLE_TAP_AND_HOLD_ACTIVATED_SESSION_REPORTED" => {
7987                Some(Self::AtomMagnificationTripleTapAndHoldActivatedSessionReported)
7988            }
7989            "ATOM_MAGNIFICATION_FOLLOW_TYPING_FOCUS_ACTIVATED_SESSION_REPORTED" => {
7990                Some(Self::AtomMagnificationFollowTypingFocusActivatedSessionReported)
7991            }
7992            "ATOM_ACCESSIBILITY_TEXT_READING_OPTIONS_CHANGED" => {
7993                Some(Self::AtomAccessibilityTextReadingOptionsChanged)
7994            }
7995            "ATOM_WIFI_SETUP_FAILURE_CRASH_REPORTED" => {
7996                Some(Self::AtomWifiSetupFailureCrashReported)
7997            }
7998            "ATOM_UWB_DEVICE_ERROR_REPORTED" => Some(Self::AtomUwbDeviceErrorReported),
7999            "ATOM_ISOLATED_COMPILATION_SCHEDULED" => {
8000                Some(Self::AtomIsolatedCompilationScheduled)
8001            }
8002            "ATOM_ISOLATED_COMPILATION_ENDED" => Some(Self::AtomIsolatedCompilationEnded),
8003            "ATOM_ONS_OPPORTUNISTIC_ESIM_PROVISIONING_COMPLETE" => {
8004                Some(Self::AtomOnsOpportunisticEsimProvisioningComplete)
8005            }
8006            "ATOM_SYSTEM_SERVER_PRE_WATCHDOG_OCCURRED" => {
8007                Some(Self::AtomSystemServerPreWatchdogOccurred)
8008            }
8009            "ATOM_TELEPHONY_ANOMALY_DETECTED" => Some(Self::AtomTelephonyAnomalyDetected),
8010            "ATOM_LETTERBOX_POSITION_CHANGED" => Some(Self::AtomLetterboxPositionChanged),
8011            "ATOM_REMOTE_KEY_PROVISIONING_ATTEMPT" => {
8012                Some(Self::AtomRemoteKeyProvisioningAttempt)
8013            }
8014            "ATOM_REMOTE_KEY_PROVISIONING_NETWORK_INFO" => {
8015                Some(Self::AtomRemoteKeyProvisioningNetworkInfo)
8016            }
8017            "ATOM_REMOTE_KEY_PROVISIONING_TIMING" => {
8018                Some(Self::AtomRemoteKeyProvisioningTiming)
8019            }
8020            "ATOM_MEDIAOUTPUT_OP_INTERACTION_REPORT" => {
8021                Some(Self::AtomMediaoutputOpInteractionReport)
8022            }
8023            "ATOM_SYNC_EXEMPTION_OCCURRED" => Some(Self::AtomSyncExemptionOccurred),
8024            "ATOM_AUTOFILL_PRESENTATION_EVENT_REPORTED" => {
8025                Some(Self::AtomAutofillPresentationEventReported)
8026            }
8027            "ATOM_DOCK_STATE_CHANGED" => Some(Self::AtomDockStateChanged),
8028            "ATOM_SAFETY_SOURCE_STATE_COLLECTED" => {
8029                Some(Self::AtomSafetySourceStateCollected)
8030            }
8031            "ATOM_SAFETY_CENTER_SYSTEM_EVENT_REPORTED" => {
8032                Some(Self::AtomSafetyCenterSystemEventReported)
8033            }
8034            "ATOM_SAFETY_CENTER_INTERACTION_REPORTED" => {
8035                Some(Self::AtomSafetyCenterInteractionReported)
8036            }
8037            "ATOM_SETTINGS_PROVIDER_SETTING_CHANGED" => {
8038                Some(Self::AtomSettingsProviderSettingChanged)
8039            }
8040            "ATOM_BROADCAST_DELIVERY_EVENT_REPORTED" => {
8041                Some(Self::AtomBroadcastDeliveryEventReported)
8042            }
8043            "ATOM_SERVICE_REQUEST_EVENT_REPORTED" => {
8044                Some(Self::AtomServiceRequestEventReported)
8045            }
8046            "ATOM_PROVIDER_ACQUISITION_EVENT_REPORTED" => {
8047                Some(Self::AtomProviderAcquisitionEventReported)
8048            }
8049            "ATOM_BLUETOOTH_DEVICE_NAME_REPORTED" => {
8050                Some(Self::AtomBluetoothDeviceNameReported)
8051            }
8052            "ATOM_CB_CONFIG_UPDATED" => Some(Self::AtomCbConfigUpdated),
8053            "ATOM_CB_MODULE_ERROR_REPORTED" => Some(Self::AtomCbModuleErrorReported),
8054            "ATOM_CB_SERVICE_FEATURE_CHANGED" => Some(Self::AtomCbServiceFeatureChanged),
8055            "ATOM_CB_RECEIVER_FEATURE_CHANGED" => {
8056                Some(Self::AtomCbReceiverFeatureChanged)
8057            }
8058            "ATOM_PRIVACY_SIGNAL_NOTIFICATION_INTERACTION" => {
8059                Some(Self::AtomPrivacySignalNotificationInteraction)
8060            }
8061            "ATOM_PRIVACY_SIGNAL_ISSUE_CARD_INTERACTION" => {
8062                Some(Self::AtomPrivacySignalIssueCardInteraction)
8063            }
8064            "ATOM_PRIVACY_SIGNALS_JOB_FAILURE" => {
8065                Some(Self::AtomPrivacySignalsJobFailure)
8066            }
8067            "ATOM_VIBRATION_REPORTED" => Some(Self::AtomVibrationReported),
8068            "ATOM_UWB_RANGING_START" => Some(Self::AtomUwbRangingStart),
8069            "ATOM_APP_COMPACTED_V2" => Some(Self::AtomAppCompactedV2),
8070            "ATOM_DISPLAY_BRIGHTNESS_CHANGED" => Some(Self::AtomDisplayBrightnessChanged),
8071            "ATOM_ACTIVITY_ACTION_BLOCKED" => Some(Self::AtomActivityActionBlocked),
8072            "ATOM_NETWORK_DNS_SERVER_SUPPORT_REPORTED" => {
8073                Some(Self::AtomNetworkDnsServerSupportReported)
8074            }
8075            "ATOM_VM_BOOTED" => Some(Self::AtomVmBooted),
8076            "ATOM_VM_EXITED" => Some(Self::AtomVmExited),
8077            "ATOM_AMBIENT_BRIGHTNESS_STATS_REPORTED" => {
8078                Some(Self::AtomAmbientBrightnessStatsReported)
8079            }
8080            "ATOM_MEDIAMETRICS_SPATIALIZERCAPABILITIES_REPORTED" => {
8081                Some(Self::AtomMediametricsSpatializercapabilitiesReported)
8082            }
8083            "ATOM_MEDIAMETRICS_SPATIALIZERDEVICEENABLED_REPORTED" => {
8084                Some(Self::AtomMediametricsSpatializerdeviceenabledReported)
8085            }
8086            "ATOM_MEDIAMETRICS_HEADTRACKERDEVICEENABLED_REPORTED" => {
8087                Some(Self::AtomMediametricsHeadtrackerdeviceenabledReported)
8088            }
8089            "ATOM_MEDIAMETRICS_HEADTRACKERDEVICESUPPORTED_REPORTED" => {
8090                Some(Self::AtomMediametricsHeadtrackerdevicesupportedReported)
8091            }
8092            "ATOM_HEARING_AID_INFO_REPORTED" => Some(Self::AtomHearingAidInfoReported),
8093            "ATOM_DEVICE_WIDE_JOB_CONSTRAINT_CHANGED" => {
8094                Some(Self::AtomDeviceWideJobConstraintChanged)
8095            }
8096            "ATOM_AMBIENT_MODE_CHANGED" => Some(Self::AtomAmbientModeChanged),
8097            "ATOM_ANR_LATENCY_REPORTED" => Some(Self::AtomAnrLatencyReported),
8098            "ATOM_RESOURCE_API_INFO" => Some(Self::AtomResourceApiInfo),
8099            "ATOM_SYSTEM_DEFAULT_NETWORK_CHANGED" => {
8100                Some(Self::AtomSystemDefaultNetworkChanged)
8101            }
8102            "ATOM_IWLAN_SETUP_DATA_CALL_RESULT_REPORTED" => {
8103                Some(Self::AtomIwlanSetupDataCallResultReported)
8104            }
8105            "ATOM_IWLAN_PDN_DISCONNECTED_REASON_REPORTED" => {
8106                Some(Self::AtomIwlanPdnDisconnectedReasonReported)
8107            }
8108            "ATOM_AIRPLANE_MODE_SESSION_REPORTED" => {
8109                Some(Self::AtomAirplaneModeSessionReported)
8110            }
8111            "ATOM_VM_CPU_STATUS_REPORTED" => Some(Self::AtomVmCpuStatusReported),
8112            "ATOM_VM_MEM_STATUS_REPORTED" => Some(Self::AtomVmMemStatusReported),
8113            "ATOM_PACKAGE_INSTALLATION_SESSION_REPORTED" => {
8114                Some(Self::AtomPackageInstallationSessionReported)
8115            }
8116            "ATOM_DEFAULT_NETWORK_REMATCH_INFO" => {
8117                Some(Self::AtomDefaultNetworkRematchInfo)
8118            }
8119            "ATOM_NETWORK_SELECTION_PERFORMANCE" => {
8120                Some(Self::AtomNetworkSelectionPerformance)
8121            }
8122            "ATOM_NETWORK_NSD_REPORTED" => Some(Self::AtomNetworkNsdReported),
8123            "ATOM_BLUETOOTH_DISCONNECTION_REASON_REPORTED" => {
8124                Some(Self::AtomBluetoothDisconnectionReasonReported)
8125            }
8126            "ATOM_BLUETOOTH_LOCAL_VERSIONS_REPORTED" => {
8127                Some(Self::AtomBluetoothLocalVersionsReported)
8128            }
8129            "ATOM_BLUETOOTH_REMOTE_SUPPORTED_FEATURES_REPORTED" => {
8130                Some(Self::AtomBluetoothRemoteSupportedFeaturesReported)
8131            }
8132            "ATOM_BLUETOOTH_LOCAL_SUPPORTED_FEATURES_REPORTED" => {
8133                Some(Self::AtomBluetoothLocalSupportedFeaturesReported)
8134            }
8135            "ATOM_BLUETOOTH_GATT_APP_INFO" => Some(Self::AtomBluetoothGattAppInfo),
8136            "ATOM_BRIGHTNESS_CONFIGURATION_UPDATED" => {
8137                Some(Self::AtomBrightnessConfigurationUpdated)
8138            }
8139            "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_LAUNCHED" => {
8140                Some(Self::AtomWearMediaOutputSwitcherLaunched)
8141            }
8142            "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FINISHED" => {
8143                Some(Self::AtomWearMediaOutputSwitcherFinished)
8144            }
8145            "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_CONNECTION_REPORTED" => {
8146                Some(Self::AtomWearMediaOutputSwitcherConnectionReported)
8147            }
8148            "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_DEVICE_SCAN_TRIGGERED" => {
8149                Some(Self::AtomWearMediaOutputSwitcherDeviceScanTriggered)
8150            }
8151            "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FIRST_DEVICE_SCAN_LATENCY" => {
8152                Some(Self::AtomWearMediaOutputSwitcherFirstDeviceScanLatency)
8153            }
8154            "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_CONNECT_DEVICE_LATENCY" => {
8155                Some(Self::AtomWearMediaOutputSwitcherConnectDeviceLatency)
8156            }
8157            "ATOM_PACKAGE_MANAGER_SNAPSHOT_REPORTED" => {
8158                Some(Self::AtomPackageManagerSnapshotReported)
8159            }
8160            "ATOM_PACKAGE_MANAGER_APPS_FILTER_CACHE_BUILD_REPORTED" => {
8161                Some(Self::AtomPackageManagerAppsFilterCacheBuildReported)
8162            }
8163            "ATOM_PACKAGE_MANAGER_APPS_FILTER_CACHE_UPDATE_REPORTED" => {
8164                Some(Self::AtomPackageManagerAppsFilterCacheUpdateReported)
8165            }
8166            "ATOM_LAUNCHER_IMPRESSION_EVENT" => Some(Self::AtomLauncherImpressionEvent),
8167            "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_ALL_DEVICES_SCAN_LATENCY" => {
8168                Some(Self::AtomWearMediaOutputSwitcherAllDevicesScanLatency)
8169            }
8170            "ATOM_WS_WATCH_FACE_EDITED" => Some(Self::AtomWsWatchFaceEdited),
8171            "ATOM_WS_WATCH_FACE_FAVORITE_ACTION_REPORTED" => {
8172                Some(Self::AtomWsWatchFaceFavoriteActionReported)
8173            }
8174            "ATOM_WS_WATCH_FACE_SET_ACTION_REPORTED" => {
8175                Some(Self::AtomWsWatchFaceSetActionReported)
8176            }
8177            "ATOM_PACKAGE_UNINSTALLATION_REPORTED" => {
8178                Some(Self::AtomPackageUninstallationReported)
8179            }
8180            "ATOM_GAME_MODE_CHANGED" => Some(Self::AtomGameModeChanged),
8181            "ATOM_GAME_MODE_CONFIGURATION_CHANGED" => {
8182                Some(Self::AtomGameModeConfigurationChanged)
8183            }
8184            "ATOM_BEDTIME_MODE_STATE_CHANGED" => Some(Self::AtomBedtimeModeStateChanged),
8185            "ATOM_NETWORK_SLICE_SESSION_ENDED" => {
8186                Some(Self::AtomNetworkSliceSessionEnded)
8187            }
8188            "ATOM_NETWORK_SLICE_DAILY_DATA_USAGE_REPORTED" => {
8189                Some(Self::AtomNetworkSliceDailyDataUsageReported)
8190            }
8191            "ATOM_NFC_TAG_TYPE_OCCURRED" => Some(Self::AtomNfcTagTypeOccurred),
8192            "ATOM_NFC_AID_CONFLICT_OCCURRED" => Some(Self::AtomNfcAidConflictOccurred),
8193            "ATOM_NFC_READER_CONFLICT_OCCURRED" => {
8194                Some(Self::AtomNfcReaderConflictOccurred)
8195            }
8196            "ATOM_WS_TILE_LIST_CHANGED" => Some(Self::AtomWsTileListChanged),
8197            "ATOM_GET_TYPE_ACCESSED_WITHOUT_PERMISSION" => {
8198                Some(Self::AtomGetTypeAccessedWithoutPermission)
8199            }
8200            "ATOM_MOBILE_BUNDLED_APP_INFO_GATHERED" => {
8201                Some(Self::AtomMobileBundledAppInfoGathered)
8202            }
8203            "ATOM_WS_WATCH_FACE_COMPLICATION_SET_CHANGED" => {
8204                Some(Self::AtomWsWatchFaceComplicationSetChanged)
8205            }
8206            "ATOM_MEDIA_DRM_CREATED" => Some(Self::AtomMediaDrmCreated),
8207            "ATOM_MEDIA_DRM_ERRORED" => Some(Self::AtomMediaDrmErrored),
8208            "ATOM_MEDIA_DRM_SESSION_OPENED" => Some(Self::AtomMediaDrmSessionOpened),
8209            "ATOM_MEDIA_DRM_SESSION_CLOSED" => Some(Self::AtomMediaDrmSessionClosed),
8210            "ATOM_USER_SELECTED_RESOLUTION" => Some(Self::AtomUserSelectedResolution),
8211            "ATOM_UNSAFE_INTENT_EVENT_REPORTED" => {
8212                Some(Self::AtomUnsafeIntentEventReported)
8213            }
8214            "ATOM_PERFORMANCE_HINT_SESSION_REPORTED" => {
8215                Some(Self::AtomPerformanceHintSessionReported)
8216            }
8217            "ATOM_MEDIAMETRICS_MIDI_DEVICE_CLOSE_REPORTED" => {
8218                Some(Self::AtomMediametricsMidiDeviceCloseReported)
8219            }
8220            "ATOM_BIOMETRIC_TOUCH_REPORTED" => Some(Self::AtomBiometricTouchReported),
8221            "ATOM_HOTWORD_AUDIO_EGRESS_EVENT_REPORTED" => {
8222                Some(Self::AtomHotwordAudioEgressEventReported)
8223            }
8224            "ATOM_LOCATION_ENABLED_STATE_CHANGED" => {
8225                Some(Self::AtomLocationEnabledStateChanged)
8226            }
8227            "ATOM_IME_REQUEST_FINISHED" => Some(Self::AtomImeRequestFinished),
8228            "ATOM_USB_COMPLIANCE_WARNINGS_REPORTED" => {
8229                Some(Self::AtomUsbComplianceWarningsReported)
8230            }
8231            "ATOM_APP_SUPPORTED_LOCALES_CHANGED" => {
8232                Some(Self::AtomAppSupportedLocalesChanged)
8233            }
8234            "ATOM_MEDIA_PROVIDER_VOLUME_RECOVERY_REPORTED" => {
8235                Some(Self::AtomMediaProviderVolumeRecoveryReported)
8236            }
8237            "ATOM_BIOMETRIC_PROPERTIES_COLLECTED" => {
8238                Some(Self::AtomBiometricPropertiesCollected)
8239            }
8240            "ATOM_KERNEL_WAKEUP_ATTRIBUTED" => Some(Self::AtomKernelWakeupAttributed),
8241            "ATOM_SCREEN_STATE_CHANGED_V2" => Some(Self::AtomScreenStateChangedV2),
8242            "ATOM_WS_BACKUP_ACTION_REPORTED" => Some(Self::AtomWsBackupActionReported),
8243            "ATOM_WS_RESTORE_ACTION_REPORTED" => Some(Self::AtomWsRestoreActionReported),
8244            "ATOM_DEVICE_LOG_ACCESS_EVENT_REPORTED" => {
8245                Some(Self::AtomDeviceLogAccessEventReported)
8246            }
8247            "ATOM_MEDIA_SESSION_UPDATED" => Some(Self::AtomMediaSessionUpdated),
8248            "ATOM_WEAR_OOBE_STATE_CHANGED" => Some(Self::AtomWearOobeStateChanged),
8249            "ATOM_WS_NOTIFICATION_UPDATED" => Some(Self::AtomWsNotificationUpdated),
8250            "ATOM_NETWORK_VALIDATION_FAILURE_STATS_DAILY_REPORTED" => {
8251                Some(Self::AtomNetworkValidationFailureStatsDailyReported)
8252            }
8253            "ATOM_WS_COMPLICATION_TAPPED" => Some(Self::AtomWsComplicationTapped),
8254            "ATOM_WS_NOTIFICATION_BLOCKING" => Some(Self::AtomWsNotificationBlocking),
8255            "ATOM_WS_NOTIFICATION_BRIDGEMODE_UPDATED" => {
8256                Some(Self::AtomWsNotificationBridgemodeUpdated)
8257            }
8258            "ATOM_WS_NOTIFICATION_DISMISSAL_ACTIONED" => {
8259                Some(Self::AtomWsNotificationDismissalActioned)
8260            }
8261            "ATOM_WS_NOTIFICATION_ACTIONED" => Some(Self::AtomWsNotificationActioned),
8262            "ATOM_WS_NOTIFICATION_LATENCY" => Some(Self::AtomWsNotificationLatency),
8263            "ATOM_WIFI_BYTES_TRANSFER" => Some(Self::AtomWifiBytesTransfer),
8264            "ATOM_WIFI_BYTES_TRANSFER_BY_FG_BG" => {
8265                Some(Self::AtomWifiBytesTransferByFgBg)
8266            }
8267            "ATOM_MOBILE_BYTES_TRANSFER" => Some(Self::AtomMobileBytesTransfer),
8268            "ATOM_MOBILE_BYTES_TRANSFER_BY_FG_BG" => {
8269                Some(Self::AtomMobileBytesTransferByFgBg)
8270            }
8271            "ATOM_BLUETOOTH_BYTES_TRANSFER" => Some(Self::AtomBluetoothBytesTransfer),
8272            "ATOM_KERNEL_WAKELOCK" => Some(Self::AtomKernelWakelock),
8273            "ATOM_SUBSYSTEM_SLEEP_STATE" => Some(Self::AtomSubsystemSleepState),
8274            "ATOM_CPU_TIME_PER_UID" => Some(Self::AtomCpuTimePerUid),
8275            "ATOM_CPU_TIME_PER_UID_FREQ" => Some(Self::AtomCpuTimePerUidFreq),
8276            "ATOM_WIFI_ACTIVITY_INFO" => Some(Self::AtomWifiActivityInfo),
8277            "ATOM_MODEM_ACTIVITY_INFO" => Some(Self::AtomModemActivityInfo),
8278            "ATOM_BLUETOOTH_ACTIVITY_INFO" => Some(Self::AtomBluetoothActivityInfo),
8279            "ATOM_PROCESS_MEMORY_STATE" => Some(Self::AtomProcessMemoryState),
8280            "ATOM_SYSTEM_ELAPSED_REALTIME" => Some(Self::AtomSystemElapsedRealtime),
8281            "ATOM_SYSTEM_UPTIME" => Some(Self::AtomSystemUptime),
8282            "ATOM_CPU_ACTIVE_TIME" => Some(Self::AtomCpuActiveTime),
8283            "ATOM_CPU_CLUSTER_TIME" => Some(Self::AtomCpuClusterTime),
8284            "ATOM_DISK_SPACE" => Some(Self::AtomDiskSpace),
8285            "ATOM_REMAINING_BATTERY_CAPACITY" => Some(Self::AtomRemainingBatteryCapacity),
8286            "ATOM_FULL_BATTERY_CAPACITY" => Some(Self::AtomFullBatteryCapacity),
8287            "ATOM_TEMPERATURE" => Some(Self::AtomTemperature),
8288            "ATOM_BINDER_CALLS" => Some(Self::AtomBinderCalls),
8289            "ATOM_BINDER_CALLS_EXCEPTIONS" => Some(Self::AtomBinderCallsExceptions),
8290            "ATOM_LOOPER_STATS" => Some(Self::AtomLooperStats),
8291            "ATOM_DISK_STATS" => Some(Self::AtomDiskStats),
8292            "ATOM_DIRECTORY_USAGE" => Some(Self::AtomDirectoryUsage),
8293            "ATOM_APP_SIZE" => Some(Self::AtomAppSize),
8294            "ATOM_CATEGORY_SIZE" => Some(Self::AtomCategorySize),
8295            "ATOM_PROC_STATS" => Some(Self::AtomProcStats),
8296            "ATOM_BATTERY_VOLTAGE" => Some(Self::AtomBatteryVoltage),
8297            "ATOM_NUM_FINGERPRINTS_ENROLLED" => Some(Self::AtomNumFingerprintsEnrolled),
8298            "ATOM_DISK_IO" => Some(Self::AtomDiskIo),
8299            "ATOM_POWER_PROFILE" => Some(Self::AtomPowerProfile),
8300            "ATOM_PROC_STATS_PKG_PROC" => Some(Self::AtomProcStatsPkgProc),
8301            "ATOM_PROCESS_CPU_TIME" => Some(Self::AtomProcessCpuTime),
8302            "ATOM_CPU_TIME_PER_THREAD_FREQ" => Some(Self::AtomCpuTimePerThreadFreq),
8303            "ATOM_ON_DEVICE_POWER_MEASUREMENT" => {
8304                Some(Self::AtomOnDevicePowerMeasurement)
8305            }
8306            "ATOM_DEVICE_CALCULATED_POWER_USE" => {
8307                Some(Self::AtomDeviceCalculatedPowerUse)
8308            }
8309            "ATOM_PROCESS_MEMORY_HIGH_WATER_MARK" => {
8310                Some(Self::AtomProcessMemoryHighWaterMark)
8311            }
8312            "ATOM_BATTERY_LEVEL" => Some(Self::AtomBatteryLevel),
8313            "ATOM_BUILD_INFORMATION" => Some(Self::AtomBuildInformation),
8314            "ATOM_BATTERY_CYCLE_COUNT" => Some(Self::AtomBatteryCycleCount),
8315            "ATOM_DEBUG_ELAPSED_CLOCK" => Some(Self::AtomDebugElapsedClock),
8316            "ATOM_DEBUG_FAILING_ELAPSED_CLOCK" => {
8317                Some(Self::AtomDebugFailingElapsedClock)
8318            }
8319            "ATOM_NUM_FACES_ENROLLED" => Some(Self::AtomNumFacesEnrolled),
8320            "ATOM_ROLE_HOLDER" => Some(Self::AtomRoleHolder),
8321            "ATOM_DANGEROUS_PERMISSION_STATE" => Some(Self::AtomDangerousPermissionState),
8322            "ATOM_TRAIN_INFO" => Some(Self::AtomTrainInfo),
8323            "ATOM_TIME_ZONE_DATA_INFO" => Some(Self::AtomTimeZoneDataInfo),
8324            "ATOM_EXTERNAL_STORAGE_INFO" => Some(Self::AtomExternalStorageInfo),
8325            "ATOM_GPU_STATS_GLOBAL_INFO" => Some(Self::AtomGpuStatsGlobalInfo),
8326            "ATOM_GPU_STATS_APP_INFO" => Some(Self::AtomGpuStatsAppInfo),
8327            "ATOM_SYSTEM_ION_HEAP_SIZE" => Some(Self::AtomSystemIonHeapSize),
8328            "ATOM_APPS_ON_EXTERNAL_STORAGE_INFO" => {
8329                Some(Self::AtomAppsOnExternalStorageInfo)
8330            }
8331            "ATOM_FACE_SETTINGS" => Some(Self::AtomFaceSettings),
8332            "ATOM_COOLING_DEVICE" => Some(Self::AtomCoolingDevice),
8333            "ATOM_APP_OPS" => Some(Self::AtomAppOps),
8334            "ATOM_PROCESS_SYSTEM_ION_HEAP_SIZE" => {
8335                Some(Self::AtomProcessSystemIonHeapSize)
8336            }
8337            "ATOM_SURFACEFLINGER_STATS_GLOBAL_INFO" => {
8338                Some(Self::AtomSurfaceflingerStatsGlobalInfo)
8339            }
8340            "ATOM_SURFACEFLINGER_STATS_LAYER_INFO" => {
8341                Some(Self::AtomSurfaceflingerStatsLayerInfo)
8342            }
8343            "ATOM_PROCESS_MEMORY_SNAPSHOT" => Some(Self::AtomProcessMemorySnapshot),
8344            "ATOM_VMS_CLIENT_STATS" => Some(Self::AtomVmsClientStats),
8345            "ATOM_NOTIFICATION_REMOTE_VIEWS" => Some(Self::AtomNotificationRemoteViews),
8346            "ATOM_DANGEROUS_PERMISSION_STATE_SAMPLED" => {
8347                Some(Self::AtomDangerousPermissionStateSampled)
8348            }
8349            "ATOM_GRAPHICS_STATS" => Some(Self::AtomGraphicsStats),
8350            "ATOM_RUNTIME_APP_OP_ACCESS" => Some(Self::AtomRuntimeAppOpAccess),
8351            "ATOM_ION_HEAP_SIZE" => Some(Self::AtomIonHeapSize),
8352            "ATOM_PACKAGE_NOTIFICATION_PREFERENCES" => {
8353                Some(Self::AtomPackageNotificationPreferences)
8354            }
8355            "ATOM_PACKAGE_NOTIFICATION_CHANNEL_PREFERENCES" => {
8356                Some(Self::AtomPackageNotificationChannelPreferences)
8357            }
8358            "ATOM_PACKAGE_NOTIFICATION_CHANNEL_GROUP_PREFERENCES" => {
8359                Some(Self::AtomPackageNotificationChannelGroupPreferences)
8360            }
8361            "ATOM_GNSS_STATS" => Some(Self::AtomGnssStats),
8362            "ATOM_ATTRIBUTED_APP_OPS" => Some(Self::AtomAttributedAppOps),
8363            "ATOM_VOICE_CALL_SESSION" => Some(Self::AtomVoiceCallSession),
8364            "ATOM_VOICE_CALL_RAT_USAGE" => Some(Self::AtomVoiceCallRatUsage),
8365            "ATOM_SIM_SLOT_STATE" => Some(Self::AtomSimSlotState),
8366            "ATOM_SUPPORTED_RADIO_ACCESS_FAMILY" => {
8367                Some(Self::AtomSupportedRadioAccessFamily)
8368            }
8369            "ATOM_SETTING_SNAPSHOT" => Some(Self::AtomSettingSnapshot),
8370            "ATOM_BLOB_INFO" => Some(Self::AtomBlobInfo),
8371            "ATOM_DATA_USAGE_BYTES_TRANSFER" => Some(Self::AtomDataUsageBytesTransfer),
8372            "ATOM_BYTES_TRANSFER_BY_TAG_AND_METERED" => {
8373                Some(Self::AtomBytesTransferByTagAndMetered)
8374            }
8375            "ATOM_DND_MODE_RULE" => Some(Self::AtomDndModeRule),
8376            "ATOM_GENERAL_EXTERNAL_STORAGE_ACCESS_STATS" => {
8377                Some(Self::AtomGeneralExternalStorageAccessStats)
8378            }
8379            "ATOM_INCOMING_SMS" => Some(Self::AtomIncomingSms),
8380            "ATOM_OUTGOING_SMS" => Some(Self::AtomOutgoingSms),
8381            "ATOM_CARRIER_ID_TABLE_VERSION" => Some(Self::AtomCarrierIdTableVersion),
8382            "ATOM_DATA_CALL_SESSION" => Some(Self::AtomDataCallSession),
8383            "ATOM_CELLULAR_SERVICE_STATE" => Some(Self::AtomCellularServiceState),
8384            "ATOM_CELLULAR_DATA_SERVICE_SWITCH" => {
8385                Some(Self::AtomCellularDataServiceSwitch)
8386            }
8387            "ATOM_SYSTEM_MEMORY" => Some(Self::AtomSystemMemory),
8388            "ATOM_IMS_REGISTRATION_TERMINATION" => {
8389                Some(Self::AtomImsRegistrationTermination)
8390            }
8391            "ATOM_IMS_REGISTRATION_STATS" => Some(Self::AtomImsRegistrationStats),
8392            "ATOM_CPU_TIME_PER_CLUSTER_FREQ" => Some(Self::AtomCpuTimePerClusterFreq),
8393            "ATOM_CPU_CYCLES_PER_UID_CLUSTER" => Some(Self::AtomCpuCyclesPerUidCluster),
8394            "ATOM_DEVICE_ROTATED_DATA" => Some(Self::AtomDeviceRotatedData),
8395            "ATOM_CPU_CYCLES_PER_THREAD_GROUP_CLUSTER" => {
8396                Some(Self::AtomCpuCyclesPerThreadGroupCluster)
8397            }
8398            "ATOM_MEDIA_DRM_ACTIVITY_INFO" => Some(Self::AtomMediaDrmActivityInfo),
8399            "ATOM_OEM_MANAGED_BYTES_TRANSFER" => Some(Self::AtomOemManagedBytesTransfer),
8400            "ATOM_GNSS_POWER_STATS" => Some(Self::AtomGnssPowerStats),
8401            "ATOM_TIME_ZONE_DETECTOR_STATE" => Some(Self::AtomTimeZoneDetectorState),
8402            "ATOM_KEYSTORE2_STORAGE_STATS" => Some(Self::AtomKeystore2StorageStats),
8403            "ATOM_RKP_POOL_STATS" => Some(Self::AtomRkpPoolStats),
8404            "ATOM_PROCESS_DMABUF_MEMORY" => Some(Self::AtomProcessDmabufMemory),
8405            "ATOM_PENDING_ALARM_INFO" => Some(Self::AtomPendingAlarmInfo),
8406            "ATOM_USER_LEVEL_HIBERNATED_APPS" => Some(Self::AtomUserLevelHibernatedApps),
8407            "ATOM_LAUNCHER_LAYOUT_SNAPSHOT" => Some(Self::AtomLauncherLayoutSnapshot),
8408            "ATOM_GLOBAL_HIBERNATED_APPS" => Some(Self::AtomGlobalHibernatedApps),
8409            "ATOM_INPUT_EVENT_LATENCY_SKETCH" => Some(Self::AtomInputEventLatencySketch),
8410            "ATOM_BATTERY_USAGE_STATS_BEFORE_RESET" => {
8411                Some(Self::AtomBatteryUsageStatsBeforeReset)
8412            }
8413            "ATOM_BATTERY_USAGE_STATS_SINCE_RESET" => {
8414                Some(Self::AtomBatteryUsageStatsSinceReset)
8415            }
8416            "ATOM_BATTERY_USAGE_STATS_SINCE_RESET_USING_POWER_PROFILE_MODEL" => {
8417                Some(Self::AtomBatteryUsageStatsSinceResetUsingPowerProfileModel)
8418            }
8419            "ATOM_INSTALLED_INCREMENTAL_PACKAGE" => {
8420                Some(Self::AtomInstalledIncrementalPackage)
8421            }
8422            "ATOM_TELEPHONY_NETWORK_REQUESTS" => Some(Self::AtomTelephonyNetworkRequests),
8423            "ATOM_APP_SEARCH_STORAGE_INFO" => Some(Self::AtomAppSearchStorageInfo),
8424            "ATOM_VMSTAT" => Some(Self::AtomVmstat),
8425            "ATOM_KEYSTORE2_KEY_CREATION_WITH_GENERAL_INFO" => {
8426                Some(Self::AtomKeystore2KeyCreationWithGeneralInfo)
8427            }
8428            "ATOM_KEYSTORE2_KEY_CREATION_WITH_AUTH_INFO" => {
8429                Some(Self::AtomKeystore2KeyCreationWithAuthInfo)
8430            }
8431            "ATOM_KEYSTORE2_KEY_CREATION_WITH_PURPOSE_AND_MODES_INFO" => {
8432                Some(Self::AtomKeystore2KeyCreationWithPurposeAndModesInfo)
8433            }
8434            "ATOM_KEYSTORE2_ATOM_WITH_OVERFLOW" => {
8435                Some(Self::AtomKeystore2AtomWithOverflow)
8436            }
8437            "ATOM_KEYSTORE2_KEY_OPERATION_WITH_PURPOSE_AND_MODES_INFO" => {
8438                Some(Self::AtomKeystore2KeyOperationWithPurposeAndModesInfo)
8439            }
8440            "ATOM_KEYSTORE2_KEY_OPERATION_WITH_GENERAL_INFO" => {
8441                Some(Self::AtomKeystore2KeyOperationWithGeneralInfo)
8442            }
8443            "ATOM_RKP_ERROR_STATS" => Some(Self::AtomRkpErrorStats),
8444            "ATOM_KEYSTORE2_CRASH_STATS" => Some(Self::AtomKeystore2CrashStats),
8445            "ATOM_VENDOR_APEX_INFO" => Some(Self::AtomVendorApexInfo),
8446            "ATOM_ACCESSIBILITY_SHORTCUT_STATS" => {
8447                Some(Self::AtomAccessibilityShortcutStats)
8448            }
8449            "ATOM_ACCESSIBILITY_FLOATING_MENU_STATS" => {
8450                Some(Self::AtomAccessibilityFloatingMenuStats)
8451            }
8452            "ATOM_DATA_USAGE_BYTES_TRANSFER_V2" => {
8453                Some(Self::AtomDataUsageBytesTransferV2)
8454            }
8455            "ATOM_MEDIA_CAPABILITIES" => Some(Self::AtomMediaCapabilities),
8456            "ATOM_CAR_WATCHDOG_SYSTEM_IO_USAGE_SUMMARY" => {
8457                Some(Self::AtomCarWatchdogSystemIoUsageSummary)
8458            }
8459            "ATOM_CAR_WATCHDOG_UID_IO_USAGE_SUMMARY" => {
8460                Some(Self::AtomCarWatchdogUidIoUsageSummary)
8461            }
8462            "ATOM_IMS_REGISTRATION_FEATURE_TAG_STATS" => {
8463                Some(Self::AtomImsRegistrationFeatureTagStats)
8464            }
8465            "ATOM_RCS_CLIENT_PROVISIONING_STATS" => {
8466                Some(Self::AtomRcsClientProvisioningStats)
8467            }
8468            "ATOM_RCS_ACS_PROVISIONING_STATS" => Some(Self::AtomRcsAcsProvisioningStats),
8469            "ATOM_SIP_DELEGATE_STATS" => Some(Self::AtomSipDelegateStats),
8470            "ATOM_SIP_TRANSPORT_FEATURE_TAG_STATS" => {
8471                Some(Self::AtomSipTransportFeatureTagStats)
8472            }
8473            "ATOM_SIP_MESSAGE_RESPONSE" => Some(Self::AtomSipMessageResponse),
8474            "ATOM_SIP_TRANSPORT_SESSION" => Some(Self::AtomSipTransportSession),
8475            "ATOM_IMS_DEDICATED_BEARER_LISTENER_EVENT" => {
8476                Some(Self::AtomImsDedicatedBearerListenerEvent)
8477            }
8478            "ATOM_IMS_DEDICATED_BEARER_EVENT" => Some(Self::AtomImsDedicatedBearerEvent),
8479            "ATOM_IMS_REGISTRATION_SERVICE_DESC_STATS" => {
8480                Some(Self::AtomImsRegistrationServiceDescStats)
8481            }
8482            "ATOM_UCE_EVENT_STATS" => Some(Self::AtomUceEventStats),
8483            "ATOM_PRESENCE_NOTIFY_EVENT" => Some(Self::AtomPresenceNotifyEvent),
8484            "ATOM_GBA_EVENT" => Some(Self::AtomGbaEvent),
8485            "ATOM_PER_SIM_STATUS" => Some(Self::AtomPerSimStatus),
8486            "ATOM_GPU_WORK_PER_UID" => Some(Self::AtomGpuWorkPerUid),
8487            "ATOM_PERSISTENT_URI_PERMISSIONS_AMOUNT_PER_PACKAGE" => {
8488                Some(Self::AtomPersistentUriPermissionsAmountPerPackage)
8489            }
8490            "ATOM_SIGNED_PARTITION_INFO" => Some(Self::AtomSignedPartitionInfo),
8491            "ATOM_PINNED_FILE_SIZES_PER_PACKAGE" => {
8492                Some(Self::AtomPinnedFileSizesPerPackage)
8493            }
8494            "ATOM_PENDING_INTENTS_PER_PACKAGE" => {
8495                Some(Self::AtomPendingIntentsPerPackage)
8496            }
8497            "ATOM_USER_INFO" => Some(Self::AtomUserInfo),
8498            "ATOM_TELEPHONY_NETWORK_REQUESTS_V2" => {
8499                Some(Self::AtomTelephonyNetworkRequestsV2)
8500            }
8501            "ATOM_DEVICE_TELEPHONY_PROPERTIES" => {
8502                Some(Self::AtomDeviceTelephonyProperties)
8503            }
8504            "ATOM_REMOTE_KEY_PROVISIONING_ERROR_COUNTS" => {
8505                Some(Self::AtomRemoteKeyProvisioningErrorCounts)
8506            }
8507            "ATOM_SAFETY_STATE" => Some(Self::AtomSafetyState),
8508            "ATOM_INCOMING_MMS" => Some(Self::AtomIncomingMms),
8509            "ATOM_OUTGOING_MMS" => Some(Self::AtomOutgoingMms),
8510            "ATOM_MULTI_USER_INFO" => Some(Self::AtomMultiUserInfo),
8511            "ATOM_NETWORK_BPF_MAP_INFO" => Some(Self::AtomNetworkBpfMapInfo),
8512            "ATOM_OUTGOING_SHORT_CODE_SMS" => Some(Self::AtomOutgoingShortCodeSms),
8513            "ATOM_CONNECTIVITY_STATE_SAMPLE" => Some(Self::AtomConnectivityStateSample),
8514            "ATOM_NETWORK_SELECTION_REMATCH_REASONS_INFO" => {
8515                Some(Self::AtomNetworkSelectionRematchReasonsInfo)
8516            }
8517            "ATOM_GAME_MODE_INFO" => Some(Self::AtomGameModeInfo),
8518            "ATOM_GAME_MODE_CONFIGURATION" => Some(Self::AtomGameModeConfiguration),
8519            "ATOM_GAME_MODE_LISTENER" => Some(Self::AtomGameModeListener),
8520            "ATOM_NETWORK_SLICE_REQUEST_COUNT" => {
8521                Some(Self::AtomNetworkSliceRequestCount)
8522            }
8523            "ATOM_WS_TILE_SNAPSHOT" => Some(Self::AtomWsTileSnapshot),
8524            "ATOM_WS_ACTIVE_WATCH_FACE_COMPLICATION_SET_SNAPSHOT" => {
8525                Some(Self::AtomWsActiveWatchFaceComplicationSetSnapshot)
8526            }
8527            "ATOM_PROCESS_STATE" => Some(Self::AtomProcessState),
8528            "ATOM_PROCESS_ASSOCIATION" => Some(Self::AtomProcessAssociation),
8529            "ATOM_ADPF_SYSTEM_COMPONENT_INFO" => Some(Self::AtomAdpfSystemComponentInfo),
8530            "ATOM_NOTIFICATION_MEMORY_USE" => Some(Self::AtomNotificationMemoryUse),
8531            "ATOM_HDR_CAPABILITIES" => Some(Self::AtomHdrCapabilities),
8532            "ATOM_WS_FAVOURITE_WATCH_FACE_LIST_SNAPSHOT" => {
8533                Some(Self::AtomWsFavouriteWatchFaceListSnapshot)
8534            }
8535            "ATOM_WIFI_AWARE_NDP_REPORTED" => Some(Self::AtomWifiAwareNdpReported),
8536            "ATOM_WIFI_AWARE_ATTACH_REPORTED" => Some(Self::AtomWifiAwareAttachReported),
8537            "ATOM_WIFI_SELF_RECOVERY_TRIGGERED" => {
8538                Some(Self::AtomWifiSelfRecoveryTriggered)
8539            }
8540            "ATOM_SOFT_AP_STARTED" => Some(Self::AtomSoftApStarted),
8541            "ATOM_SOFT_AP_STOPPED" => Some(Self::AtomSoftApStopped),
8542            "ATOM_WIFI_LOCK_RELEASED" => Some(Self::AtomWifiLockReleased),
8543            "ATOM_WIFI_LOCK_DEACTIVATED" => Some(Self::AtomWifiLockDeactivated),
8544            "ATOM_WIFI_CONFIG_SAVED" => Some(Self::AtomWifiConfigSaved),
8545            "ATOM_WIFI_AWARE_RESOURCE_USING_CHANGED" => {
8546                Some(Self::AtomWifiAwareResourceUsingChanged)
8547            }
8548            "ATOM_WIFI_AWARE_HAL_API_CALLED" => Some(Self::AtomWifiAwareHalApiCalled),
8549            "ATOM_WIFI_LOCAL_ONLY_REQUEST_RECEIVED" => {
8550                Some(Self::AtomWifiLocalOnlyRequestReceived)
8551            }
8552            "ATOM_WIFI_LOCAL_ONLY_REQUEST_SCAN_TRIGGERED" => {
8553                Some(Self::AtomWifiLocalOnlyRequestScanTriggered)
8554            }
8555            "ATOM_WIFI_THREAD_TASK_EXECUTED" => Some(Self::AtomWifiThreadTaskExecuted),
8556            "ATOM_WIFI_STATE_CHANGED" => Some(Self::AtomWifiStateChanged),
8557            "ATOM_PNO_SCAN_STARTED" => Some(Self::AtomPnoScanStarted),
8558            "ATOM_PNO_SCAN_STOPPED" => Some(Self::AtomPnoScanStopped),
8559            "ATOM_WIFI_IS_UNUSABLE_REPORTED" => Some(Self::AtomWifiIsUnusableReported),
8560            "ATOM_WIFI_AP_CAPABILITIES_REPORTED" => {
8561                Some(Self::AtomWifiApCapabilitiesReported)
8562            }
8563            "ATOM_SOFT_AP_STATE_CHANGED" => Some(Self::AtomSoftApStateChanged),
8564            "ATOM_SCORER_PREDICTION_RESULT_REPORTED" => {
8565                Some(Self::AtomScorerPredictionResultReported)
8566            }
8567            "ATOM_WIFI_AWARE_CAPABILITIES" => Some(Self::AtomWifiAwareCapabilities),
8568            "ATOM_WIFI_MODULE_INFO" => Some(Self::AtomWifiModuleInfo),
8569            "ATOM_WIFI_SETTING_INFO" => Some(Self::AtomWifiSettingInfo),
8570            "ATOM_WIFI_COMPLEX_SETTING_INFO" => Some(Self::AtomWifiComplexSettingInfo),
8571            "ATOM_WIFI_CONFIGURED_NETWORK_INFO" => {
8572                Some(Self::AtomWifiConfiguredNetworkInfo)
8573            }
8574            "ATOM_WEAR_POWER_MENU_OPENED" => Some(Self::AtomWearPowerMenuOpened),
8575            "ATOM_WEAR_ASSISTANT_OPENED" => Some(Self::AtomWearAssistantOpened),
8576            "ATOM_FIRST_OVERLAY_STATE_CHANGED" => {
8577                Some(Self::AtomFirstOverlayStateChanged)
8578            }
8579            "ATOM_WS_WEAR_TIME_SESSION" => Some(Self::AtomWsWearTimeSession),
8580            "ATOM_WS_INCOMING_CALL_ACTION_REPORTED" => {
8581                Some(Self::AtomWsIncomingCallActionReported)
8582            }
8583            "ATOM_WS_CALL_DISCONNECTION_REPORTED" => {
8584                Some(Self::AtomWsCallDisconnectionReported)
8585            }
8586            "ATOM_WS_CALL_DURATION_REPORTED" => Some(Self::AtomWsCallDurationReported),
8587            "ATOM_WS_CALL_USER_EXPERIENCE_LATENCY_REPORTED" => {
8588                Some(Self::AtomWsCallUserExperienceLatencyReported)
8589            }
8590            "ATOM_WS_CALL_INTERACTION_REPORTED" => {
8591                Some(Self::AtomWsCallInteractionReported)
8592            }
8593            "ATOM_WS_ON_BODY_STATE_CHANGED" => Some(Self::AtomWsOnBodyStateChanged),
8594            "ATOM_WS_WATCH_FACE_RESTRICTED_COMPLICATIONS_IMPACTED" => {
8595                Some(Self::AtomWsWatchFaceRestrictedComplicationsImpacted)
8596            }
8597            "ATOM_WS_WATCH_FACE_DEFAULT_RESTRICTED_COMPLICATIONS_REMOVED" => {
8598                Some(Self::AtomWsWatchFaceDefaultRestrictedComplicationsRemoved)
8599            }
8600            "ATOM_WS_COMPLICATIONS_IMPACTED_NOTIFICATION_EVENT_REPORTED" => {
8601                Some(Self::AtomWsComplicationsImpactedNotificationEventReported)
8602            }
8603            "ATOM_WS_REMOTE_EVENT_USAGE_REPORTED" => {
8604                Some(Self::AtomWsRemoteEventUsageReported)
8605            }
8606            "ATOM_WS_NOTIFICATION_MANAGED_DISMISSAL_SYNC" => {
8607                Some(Self::AtomWsNotificationManagedDismissalSync)
8608            }
8609            "ATOM_WS_BUGREPORT_EVENT_REPORTED" => {
8610                Some(Self::AtomWsBugreportEventReported)
8611            }
8612            "ATOM_WS_STANDALONE_MODE_SNAPSHOT" => {
8613                Some(Self::AtomWsStandaloneModeSnapshot)
8614            }
8615            "ATOM_WS_FAVORITE_WATCH_FACE_SNAPSHOT" => {
8616                Some(Self::AtomWsFavoriteWatchFaceSnapshot)
8617            }
8618            "ATOM_WS_PHOTOS_WATCH_FACE_FEATURE_SNAPSHOT" => {
8619                Some(Self::AtomWsPhotosWatchFaceFeatureSnapshot)
8620            }
8621            "ATOM_WS_WATCH_FACE_CUSTOMIZATION_SNAPSHOT" => {
8622                Some(Self::AtomWsWatchFaceCustomizationSnapshot)
8623            }
8624            "ATOM_WEAR_ADAPTIVE_SUSPEND_STATS_REPORTED" => {
8625                Some(Self::AtomWearAdaptiveSuspendStatsReported)
8626            }
8627            "ATOM_WEAR_POWER_ANOMALY_SERVICE_OPERATIONAL_STATS_REPORTED" => {
8628                Some(Self::AtomWearPowerAnomalyServiceOperationalStatsReported)
8629            }
8630            "ATOM_WEAR_POWER_ANOMALY_SERVICE_EVENT_STATS_REPORTED" => {
8631                Some(Self::AtomWearPowerAnomalyServiceEventStatsReported)
8632            }
8633            "ATOM_WEAR_TIME_SYNC_REQUESTED" => Some(Self::AtomWearTimeSyncRequested),
8634            "ATOM_WEAR_TIME_UPDATE_STARTED" => Some(Self::AtomWearTimeUpdateStarted),
8635            "ATOM_WEAR_TIME_SYNC_ATTEMPT_COMPLETED" => {
8636                Some(Self::AtomWearTimeSyncAttemptCompleted)
8637            }
8638            "ATOM_WEAR_TIME_CHANGED" => Some(Self::AtomWearTimeChanged),
8639            "ATOM_WEAR_SETUP_WIZARD_DEVICE_STATUS_REPORTED" => {
8640                Some(Self::AtomWearSetupWizardDeviceStatusReported)
8641            }
8642            "ATOM_WEAR_SETUP_WIZARD_PAIRING_COMPLETED" => {
8643                Some(Self::AtomWearSetupWizardPairingCompleted)
8644            }
8645            "ATOM_WEAR_SETUP_WIZARD_CONNECTION_ESTABLISHED" => {
8646                Some(Self::AtomWearSetupWizardConnectionEstablished)
8647            }
8648            "ATOM_WEAR_SETUP_WIZARD_CHECKIN_COMPLETED" => {
8649                Some(Self::AtomWearSetupWizardCheckinCompleted)
8650            }
8651            "ATOM_WEAR_SETUP_WIZARD_COMPANION_TIME_REPORTED" => {
8652                Some(Self::AtomWearSetupWizardCompanionTimeReported)
8653            }
8654            "ATOM_WEAR_SETUP_WIZARD_STATUS_REPORTED" => {
8655                Some(Self::AtomWearSetupWizardStatusReported)
8656            }
8657            "ATOM_WEAR_SETUP_WIZARD_HEARTBEAT_REPORTED" => {
8658                Some(Self::AtomWearSetupWizardHeartbeatReported)
8659            }
8660            "ATOM_WEAR_SETUP_WIZARD_FRP_TRIGGERED" => {
8661                Some(Self::AtomWearSetupWizardFrpTriggered)
8662            }
8663            "ATOM_WEAR_SETUP_WIZARD_SYSTEM_UPDATE_TRIGGERED" => {
8664                Some(Self::AtomWearSetupWizardSystemUpdateTriggered)
8665            }
8666            "ATOM_WEAR_SETUP_WIZARD_PHONE_SWITCH_TRIGGERED" => {
8667                Some(Self::AtomWearSetupWizardPhoneSwitchTriggered)
8668            }
8669            "ATOM_RENDERER_INITIALIZED" => Some(Self::AtomRendererInitialized),
8670            "ATOM_SCHEMA_VERSION_RECEIVED" => Some(Self::AtomSchemaVersionReceived),
8671            "ATOM_LAYOUT_INSPECTED" => Some(Self::AtomLayoutInspected),
8672            "ATOM_LAYOUT_EXPRESSION_INSPECTED" => {
8673                Some(Self::AtomLayoutExpressionInspected)
8674            }
8675            "ATOM_LAYOUT_ANIMATIONS_INSPECTED" => {
8676                Some(Self::AtomLayoutAnimationsInspected)
8677            }
8678            "ATOM_MATERIAL_COMPONENTS_INSPECTED" => {
8679                Some(Self::AtomMaterialComponentsInspected)
8680            }
8681            "ATOM_TILE_REQUESTED" => Some(Self::AtomTileRequested),
8682            "ATOM_STATE_RESPONSE_RECEIVED" => Some(Self::AtomStateResponseReceived),
8683            "ATOM_TILE_RESPONSE_RECEIVED" => Some(Self::AtomTileResponseReceived),
8684            "ATOM_INFLATION_FINISHED" => Some(Self::AtomInflationFinished),
8685            "ATOM_INFLATION_FAILED" => Some(Self::AtomInflationFailed),
8686            "ATOM_IGNORED_INFLATION_FAILURES_REPORTED" => {
8687                Some(Self::AtomIgnoredInflationFailuresReported)
8688            }
8689            "ATOM_DRAWABLE_RENDERED" => Some(Self::AtomDrawableRendered),
8690            "ATOM_WEAR_MODE_STATE_CHANGED" => Some(Self::AtomWearModeStateChanged),
8691            "ATOM_MEDIA_ACTION_REPORTED" => Some(Self::AtomMediaActionReported),
8692            "ATOM_MEDIA_CONTROLS_LAUNCHED" => Some(Self::AtomMediaControlsLaunched),
8693            "ATOM_MEDIA_SESSION_STATE_CHANGED" => {
8694                Some(Self::AtomMediaSessionStateChanged)
8695            }
8696            "ATOM_MEDIA_CONTROL_API_USAGE_REPORTED" => {
8697                Some(Self::AtomMediaControlApiUsageReported)
8698            }
8699            "ATOM_MEDIA_SUBSCRIPTION_CHANGED" => Some(Self::AtomMediaSubscriptionChanged),
8700            "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_DEVICE_SCAN_API_LATENCY" => {
8701                Some(Self::AtomWearMediaOutputSwitcherDeviceScanApiLatency)
8702            }
8703            "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_SASS_DEVICE_UNAVAILABLE" => {
8704                Some(Self::AtomWearMediaOutputSwitcherSassDeviceUnavailable)
8705            }
8706            "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FASTPAIR_API_TIMEOUT" => {
8707                Some(Self::AtomWearMediaOutputSwitcherFastpairApiTimeout)
8708            }
8709            "ATOM_MEDIATOR_UPDATED" => Some(Self::AtomMediatorUpdated),
8710            "ATOM_SYSPROXY_BLUETOOTH_BYTES_TRANSFER" => {
8711                Some(Self::AtomSysproxyBluetoothBytesTransfer)
8712            }
8713            "ATOM_SYSPROXY_CONNECTION_UPDATED" => {
8714                Some(Self::AtomSysproxyConnectionUpdated)
8715            }
8716            "ATOM_WEAR_COMPANION_CONNECTION_STATE" => {
8717                Some(Self::AtomWearCompanionConnectionState)
8718            }
8719            "ATOM_SYSPROXY_SERVICE_STATE_UPDATED" => {
8720                Some(Self::AtomSysproxyServiceStateUpdated)
8721            }
8722            "ATOM_UWB_ACTIVITY_INFO" => Some(Self::AtomUwbActivityInfo),
8723            "ATOM_TEST_UPROBESTATS_ATOM_REPORTED" => {
8724                Some(Self::AtomTestUprobestatsAtomReported)
8725            }
8726            "ATOM_TV_LOW_POWER_STANDBY_POLICY" => Some(Self::AtomTvLowPowerStandbyPolicy),
8727            "ATOM_EXTERNAL_TV_INPUT_EVENT" => Some(Self::AtomExternalTvInputEvent),
8728            "ATOM_BOOT_INTEGRITY_INFO_REPORTED" => {
8729                Some(Self::AtomBootIntegrityInfoReported)
8730            }
8731            "ATOM_THREADNETWORK_TELEMETRY_DATA_REPORTED" => {
8732                Some(Self::AtomThreadnetworkTelemetryDataReported)
8733            }
8734            "ATOM_THREADNETWORK_TOPO_ENTRY_REPEATED" => {
8735                Some(Self::AtomThreadnetworkTopoEntryRepeated)
8736            }
8737            "ATOM_THREADNETWORK_DEVICE_INFO_REPORTED" => {
8738                Some(Self::AtomThreadnetworkDeviceInfoReported)
8739            }
8740            "ATOM_CELLULAR_RADIO_POWER_STATE_CHANGED" => {
8741                Some(Self::AtomCellularRadioPowerStateChanged)
8742            }
8743            "ATOM_EMERGENCY_NUMBERS_INFO" => Some(Self::AtomEmergencyNumbersInfo),
8744            "ATOM_DATA_NETWORK_VALIDATION" => Some(Self::AtomDataNetworkValidation),
8745            "ATOM_DATA_RAT_STATE_CHANGED" => Some(Self::AtomDataRatStateChanged),
8746            "ATOM_CONNECTED_CHANNEL_CHANGED" => Some(Self::AtomConnectedChannelChanged),
8747            "ATOM_CELLULAR_IDENTIFIER_DISCLOSED" => {
8748                Some(Self::AtomCellularIdentifierDisclosed)
8749            }
8750            "ATOM_SATELLITE_CONTROLLER" => Some(Self::AtomSatelliteController),
8751            "ATOM_SATELLITE_SESSION" => Some(Self::AtomSatelliteSession),
8752            "ATOM_SATELLITE_INCOMING_DATAGRAM" => {
8753                Some(Self::AtomSatelliteIncomingDatagram)
8754            }
8755            "ATOM_SATELLITE_OUTGOING_DATAGRAM" => {
8756                Some(Self::AtomSatelliteOutgoingDatagram)
8757            }
8758            "ATOM_SATELLITE_PROVISION" => Some(Self::AtomSatelliteProvision),
8759            "ATOM_SATELLITE_SOS_MESSAGE_RECOMMENDER" => {
8760                Some(Self::AtomSatelliteSosMessageRecommender)
8761            }
8762            "ATOM_CARRIER_ROAMING_SATELLITE_SESSION" => {
8763                Some(Self::AtomCarrierRoamingSatelliteSession)
8764            }
8765            "ATOM_CARRIER_ROAMING_SATELLITE_CONTROLLER_STATS" => {
8766                Some(Self::AtomCarrierRoamingSatelliteControllerStats)
8767            }
8768            "ATOM_CONTROLLER_STATS_PER_PACKAGE" => {
8769                Some(Self::AtomControllerStatsPerPackage)
8770            }
8771            "ATOM_SATELLITE_ENTITLEMENT" => Some(Self::AtomSatelliteEntitlement),
8772            "ATOM_SATELLITE_CONFIG_UPDATER" => Some(Self::AtomSatelliteConfigUpdater),
8773            "ATOM_SATELLITE_ACCESS_CONTROLLER" => {
8774                Some(Self::AtomSatelliteAccessController)
8775            }
8776            "ATOM_QUALIFIED_RAT_LIST_CHANGED" => Some(Self::AtomQualifiedRatListChanged),
8777            "ATOM_QNS_IMS_CALL_DROP_STATS" => Some(Self::AtomQnsImsCallDropStats),
8778            "ATOM_QNS_FALLBACK_RESTRICTION_CHANGED" => {
8779                Some(Self::AtomQnsFallbackRestrictionChanged)
8780            }
8781            "ATOM_QNS_RAT_PREFERENCE_MISMATCH_INFO" => {
8782                Some(Self::AtomQnsRatPreferenceMismatchInfo)
8783            }
8784            "ATOM_QNS_HANDOVER_TIME_MILLIS" => Some(Self::AtomQnsHandoverTimeMillis),
8785            "ATOM_QNS_HANDOVER_PINGPONG" => Some(Self::AtomQnsHandoverPingpong),
8786            "ATOM_IWLAN_UNDERLYING_NETWORK_VALIDATION_RESULT_REPORTED" => {
8787                Some(Self::AtomIwlanUnderlyingNetworkValidationResultReported)
8788            }
8789            "ATOM_EMERGENCY_NUMBER_DIALED" => Some(Self::AtomEmergencyNumberDialed),
8790            "ATOM_CALL_STATS" => Some(Self::AtomCallStats),
8791            "ATOM_CALL_AUDIO_ROUTE_STATS" => Some(Self::AtomCallAudioRouteStats),
8792            "ATOM_TELECOM_API_STATS" => Some(Self::AtomTelecomApiStats),
8793            "ATOM_TELECOM_ERROR_STATS" => Some(Self::AtomTelecomErrorStats),
8794            "ATOM_LOCKSCREEN_SHORTCUT_SELECTED" => {
8795                Some(Self::AtomLockscreenShortcutSelected)
8796            }
8797            "ATOM_LOCKSCREEN_SHORTCUT_TRIGGERED" => {
8798                Some(Self::AtomLockscreenShortcutTriggered)
8799            }
8800            "ATOM_LAUNCHER_IMPRESSION_EVENT_V2" => {
8801                Some(Self::AtomLauncherImpressionEventV2)
8802            }
8803            "ATOM_DISPLAY_SWITCH_LATENCY_TRACKED" => {
8804                Some(Self::AtomDisplaySwitchLatencyTracked)
8805            }
8806            "ATOM_NOTIFICATION_LISTENER_SERVICE" => {
8807                Some(Self::AtomNotificationListenerService)
8808            }
8809            "ATOM_NAV_HANDLE_TOUCH_POINTS" => Some(Self::AtomNavHandleTouchPoints),
8810            "ATOM_COMMUNAL_HUB_WIDGET_EVENT_REPORTED" => {
8811                Some(Self::AtomCommunalHubWidgetEventReported)
8812            }
8813            "ATOM_PERIPHERAL_TUTORIAL_LAUNCHED" => {
8814                Some(Self::AtomPeripheralTutorialLaunched)
8815            }
8816            "ATOM_CONTEXTUAL_EDUCATION_TRIGGERED" => {
8817                Some(Self::AtomContextualEducationTriggered)
8818            }
8819            "ATOM_COMMUNAL_HUB_SNAPSHOT" => Some(Self::AtomCommunalHubSnapshot),
8820            "ATOM_TEST_EXTENSION_ATOM_REPORTED" => {
8821                Some(Self::AtomTestExtensionAtomReported)
8822            }
8823            "ATOM_TEST_RESTRICTED_ATOM_REPORTED" => {
8824                Some(Self::AtomTestRestrictedAtomReported)
8825            }
8826            "ATOM_STATS_SOCKET_LOSS_REPORTED" => Some(Self::AtomStatsSocketLossReported),
8827            "ATOM_SETTINGS_SPA_REPORTED" => Some(Self::AtomSettingsSpaReported),
8828            "ATOM_SELINUX_AUDIT_LOG" => Some(Self::AtomSelinuxAuditLog),
8829            "ATOM_SANDBOX_API_CALLED" => Some(Self::AtomSandboxApiCalled),
8830            "ATOM_SANDBOX_ACTIVITY_EVENT_OCCURRED" => {
8831                Some(Self::AtomSandboxActivityEventOccurred)
8832            }
8833            "ATOM_SDK_SANDBOX_RESTRICTED_ACCESS_IN_SESSION" => {
8834                Some(Self::AtomSdkSandboxRestrictedAccessInSession)
8835            }
8836            "ATOM_SANDBOX_SDK_STORAGE" => Some(Self::AtomSandboxSdkStorage),
8837            "ATOM_RKPD_POOL_STATS" => Some(Self::AtomRkpdPoolStats),
8838            "ATOM_RKPD_CLIENT_OPERATION" => Some(Self::AtomRkpdClientOperation),
8839            "ATOM_RANGING_SESSION_CONFIGURED" => Some(Self::AtomRangingSessionConfigured),
8840            "ATOM_RANGING_SESSION_STARTED" => Some(Self::AtomRangingSessionStarted),
8841            "ATOM_RANGING_SESSION_CLOSED" => Some(Self::AtomRangingSessionClosed),
8842            "ATOM_RANGING_TECHNOLOGY_STARTED" => Some(Self::AtomRangingTechnologyStarted),
8843            "ATOM_RANGING_TECHNOLOGY_STOPPED" => Some(Self::AtomRangingTechnologyStopped),
8844            "ATOM_MEDIA_PROVIDER_DATABASE_ROLLBACK_REPORTED" => {
8845                Some(Self::AtomMediaProviderDatabaseRollbackReported)
8846            }
8847            "ATOM_BACKUP_SETUP_STATUS_REPORTED" => {
8848                Some(Self::AtomBackupSetupStatusReported)
8849            }
8850            "ATOM_SCREEN_OFF_REPORTED" => Some(Self::AtomScreenOffReported),
8851            "ATOM_SCREEN_TIMEOUT_OVERRIDE_REPORTED" => {
8852                Some(Self::AtomScreenTimeoutOverrideReported)
8853            }
8854            "ATOM_SCREEN_INTERACTIVE_SESSION_REPORTED" => {
8855                Some(Self::AtomScreenInteractiveSessionReported)
8856            }
8857            "ATOM_SCREEN_DIM_REPORTED" => Some(Self::AtomScreenDimReported),
8858            "ATOM_ATOM_9999" => Some(Self::AtomAtom9999),
8859            "ATOM_ATOM_99999" => Some(Self::AtomAtom99999),
8860            "ATOM_PHOTOPICKER_SESSION_INFO_REPORTED" => {
8861                Some(Self::AtomPhotopickerSessionInfoReported)
8862            }
8863            "ATOM_PHOTOPICKER_API_INFO_REPORTED" => {
8864                Some(Self::AtomPhotopickerApiInfoReported)
8865            }
8866            "ATOM_PHOTOPICKER_UI_EVENT_LOGGED" => {
8867                Some(Self::AtomPhotopickerUiEventLogged)
8868            }
8869            "ATOM_PHOTOPICKER_MEDIA_ITEM_STATUS_REPORTED" => {
8870                Some(Self::AtomPhotopickerMediaItemStatusReported)
8871            }
8872            "ATOM_PHOTOPICKER_PREVIEW_INFO_LOGGED" => {
8873                Some(Self::AtomPhotopickerPreviewInfoLogged)
8874            }
8875            "ATOM_PHOTOPICKER_MENU_INTERACTION_LOGGED" => {
8876                Some(Self::AtomPhotopickerMenuInteractionLogged)
8877            }
8878            "ATOM_PHOTOPICKER_BANNER_INTERACTION_LOGGED" => {
8879                Some(Self::AtomPhotopickerBannerInteractionLogged)
8880            }
8881            "ATOM_PHOTOPICKER_MEDIA_LIBRARY_INFO_LOGGED" => {
8882                Some(Self::AtomPhotopickerMediaLibraryInfoLogged)
8883            }
8884            "ATOM_PHOTOPICKER_PAGE_INFO_LOGGED" => {
8885                Some(Self::AtomPhotopickerPageInfoLogged)
8886            }
8887            "ATOM_PHOTOPICKER_MEDIA_GRID_SYNC_INFO_REPORTED" => {
8888                Some(Self::AtomPhotopickerMediaGridSyncInfoReported)
8889            }
8890            "ATOM_PHOTOPICKER_ALBUM_SYNC_INFO_REPORTED" => {
8891                Some(Self::AtomPhotopickerAlbumSyncInfoReported)
8892            }
8893            "ATOM_PHOTOPICKER_SEARCH_INFO_REPORTED" => {
8894                Some(Self::AtomPhotopickerSearchInfoReported)
8895            }
8896            "ATOM_SEARCH_DATA_EXTRACTION_DETAILS_REPORTED" => {
8897                Some(Self::AtomSearchDataExtractionDetailsReported)
8898            }
8899            "ATOM_EMBEDDED_PHOTOPICKER_INFO_REPORTED" => {
8900                Some(Self::AtomEmbeddedPhotopickerInfoReported)
8901            }
8902            "ATOM_PERMISSION_RATIONALE_DIALOG_VIEWED" => {
8903                Some(Self::AtomPermissionRationaleDialogViewed)
8904            }
8905            "ATOM_PERMISSION_RATIONALE_DIALOG_ACTION_REPORTED" => {
8906                Some(Self::AtomPermissionRationaleDialogActionReported)
8907            }
8908            "ATOM_APP_DATA_SHARING_UPDATES_NOTIFICATION_INTERACTION" => {
8909                Some(Self::AtomAppDataSharingUpdatesNotificationInteraction)
8910            }
8911            "ATOM_APP_DATA_SHARING_UPDATES_FRAGMENT_VIEWED" => {
8912                Some(Self::AtomAppDataSharingUpdatesFragmentViewed)
8913            }
8914            "ATOM_APP_DATA_SHARING_UPDATES_FRAGMENT_ACTION_REPORTED" => {
8915                Some(Self::AtomAppDataSharingUpdatesFragmentActionReported)
8916            }
8917            "ATOM_ENHANCED_CONFIRMATION_DIALOG_RESULT_REPORTED" => {
8918                Some(Self::AtomEnhancedConfirmationDialogResultReported)
8919            }
8920            "ATOM_ENHANCED_CONFIRMATION_RESTRICTION_CLEARED" => {
8921                Some(Self::AtomEnhancedConfirmationRestrictionCleared)
8922            }
8923            "ATOM_PRESSURE_STALL_INFORMATION" => Some(Self::AtomPressureStallInformation),
8924            "ATOM_PDF_LOAD_REPORTED" => Some(Self::AtomPdfLoadReported),
8925            "ATOM_PDF_API_USAGE_REPORTED" => Some(Self::AtomPdfApiUsageReported),
8926            "ATOM_PDF_SEARCH_REPORTED" => Some(Self::AtomPdfSearchReported),
8927            "ATOM_COMPONENT_STATE_CHANGED_REPORTED" => {
8928                Some(Self::AtomComponentStateChangedReported)
8929            }
8930            "ATOM_ONDEVICEPERSONALIZATION_API_CALLED" => {
8931                Some(Self::AtomOndevicepersonalizationApiCalled)
8932            }
8933            "ATOM_ONDEVICEPERSONALIZATION_TRACE_EVENT" => {
8934                Some(Self::AtomOndevicepersonalizationTraceEvent)
8935            }
8936            "ATOM_NFC_OBSERVE_MODE_STATE_CHANGED" => {
8937                Some(Self::AtomNfcObserveModeStateChanged)
8938            }
8939            "ATOM_NFC_FIELD_CHANGED" => Some(Self::AtomNfcFieldChanged),
8940            "ATOM_NFC_POLLING_LOOP_NOTIFICATION_REPORTED" => {
8941                Some(Self::AtomNfcPollingLoopNotificationReported)
8942            }
8943            "ATOM_NFC_PROPRIETARY_CAPABILITIES_REPORTED" => {
8944                Some(Self::AtomNfcProprietaryCapabilitiesReported)
8945            }
8946            "ATOM_NFC_EXIT_FRAME_TABLE_CHANGED" => {
8947                Some(Self::AtomNfcExitFrameTableChanged)
8948            }
8949            "ATOM_NFC_AUTO_TRANSACT_REPORTED" => Some(Self::AtomNfcAutoTransactReported),
8950            "ATOM_MICROXR_DEVICE_BOOT_COMPLETE_REPORTED" => {
8951                Some(Self::AtomMicroxrDeviceBootCompleteReported)
8952            }
8953            "ATOM_MTE_STATE" => Some(Self::AtomMteState),
8954            "ATOM_ZRAM_MAINTENANCE_EXECUTED" => Some(Self::AtomZramMaintenanceExecuted),
8955            "ATOM_ZRAM_SETUP_EXECUTED" => Some(Self::AtomZramSetupExecuted),
8956            "ATOM_ZRAM_MM_STAT_MMD" => Some(Self::AtomZramMmStatMmd),
8957            "ATOM_ZRAM_BD_STAT_MMD" => Some(Self::AtomZramBdStatMmd),
8958            "ATOM_MEDIA_EDITING_ENDED_REPORTED" => {
8959                Some(Self::AtomMediaEditingEndedReported)
8960            }
8961            "ATOM_MEDIA_CODEC_RECLAIM_REQUEST_COMPLETED" => {
8962                Some(Self::AtomMediaCodecReclaimRequestCompleted)
8963            }
8964            "ATOM_MEDIA_CODEC_STARTED" => Some(Self::AtomMediaCodecStarted),
8965            "ATOM_MEDIA_CODEC_STOPPED" => Some(Self::AtomMediaCodecStopped),
8966            "ATOM_MEDIA_CODEC_RENDERED" => Some(Self::AtomMediaCodecRendered),
8967            "ATOM_EMERGENCY_STATE_CHANGED" => Some(Self::AtomEmergencyStateChanged),
8968            "ATOM_CHRE_SIGNIFICANT_MOTION_STATE_CHANGED" => {
8969                Some(Self::AtomChreSignificantMotionStateChanged)
8970            }
8971            "ATOM_POPULATION_DENSITY_PROVIDER_LOADING_REPORTED" => {
8972                Some(Self::AtomPopulationDensityProviderLoadingReported)
8973            }
8974            "ATOM_DENSITY_BASED_COARSE_LOCATIONS_USAGE_REPORTED" => {
8975                Some(Self::AtomDensityBasedCoarseLocationsUsageReported)
8976            }
8977            "ATOM_DENSITY_BASED_COARSE_LOCATIONS_PROVIDER_QUERY_REPORTED" => {
8978                Some(Self::AtomDensityBasedCoarseLocationsProviderQueryReported)
8979            }
8980            "ATOM_KERNEL_OOM_KILL_OCCURRED" => Some(Self::AtomKernelOomKillOccurred),
8981            "ATOM_KEYBOARD_CONFIGURED" => Some(Self::AtomKeyboardConfigured),
8982            "ATOM_KEYBOARD_SYSTEMS_EVENT_REPORTED" => {
8983                Some(Self::AtomKeyboardSystemsEventReported)
8984            }
8985            "ATOM_INPUTDEVICE_USAGE_REPORTED" => Some(Self::AtomInputdeviceUsageReported),
8986            "ATOM_INPUT_EVENT_LATENCY_REPORTED" => {
8987                Some(Self::AtomInputEventLatencyReported)
8988            }
8989            "ATOM_TOUCHPAD_USAGE" => Some(Self::AtomTouchpadUsage),
8990            "ATOM_IKE_SESSION_TERMINATED" => Some(Self::AtomIkeSessionTerminated),
8991            "ATOM_IKE_LIVENESS_CHECK_SESSION_VALIDATED" => {
8992                Some(Self::AtomIkeLivenessCheckSessionValidated)
8993            }
8994            "ATOM_NEGOTIATED_SECURITY_ASSOCIATION" => {
8995                Some(Self::AtomNegotiatedSecurityAssociation)
8996            }
8997            "ATOM_HOTWORD_EGRESS_SIZE_ATOM_REPORTED" => {
8998                Some(Self::AtomHotwordEgressSizeAtomReported)
8999            }
9000            "ATOM_HEALTH_CONNECT_UI_IMPRESSION" => {
9001                Some(Self::AtomHealthConnectUiImpression)
9002            }
9003            "ATOM_HEALTH_CONNECT_UI_INTERACTION" => {
9004                Some(Self::AtomHealthConnectUiInteraction)
9005            }
9006            "ATOM_HEALTH_CONNECT_APP_OPENED_REPORTED" => {
9007                Some(Self::AtomHealthConnectAppOpenedReported)
9008            }
9009            "ATOM_HEALTH_CONNECT_API_CALLED" => Some(Self::AtomHealthConnectApiCalled),
9010            "ATOM_HEALTH_CONNECT_USAGE_STATS" => Some(Self::AtomHealthConnectUsageStats),
9011            "ATOM_HEALTH_CONNECT_STORAGE_STATS" => {
9012                Some(Self::AtomHealthConnectStorageStats)
9013            }
9014            "ATOM_HEALTH_CONNECT_API_INVOKED" => Some(Self::AtomHealthConnectApiInvoked),
9015            "ATOM_EXERCISE_ROUTE_API_CALLED" => Some(Self::AtomExerciseRouteApiCalled),
9016            "ATOM_HEALTH_CONNECT_EXPORT_INVOKED" => {
9017                Some(Self::AtomHealthConnectExportInvoked)
9018            }
9019            "ATOM_HEALTH_CONNECT_IMPORT_INVOKED" => {
9020                Some(Self::AtomHealthConnectImportInvoked)
9021            }
9022            "ATOM_HEALTH_CONNECT_EXPORT_IMPORT_STATS_REPORTED" => {
9023                Some(Self::AtomHealthConnectExportImportStatsReported)
9024            }
9025            "ATOM_HEALTH_CONNECT_PERMISSION_STATS" => {
9026                Some(Self::AtomHealthConnectPermissionStats)
9027            }
9028            "ATOM_HEALTH_CONNECT_PHR_API_INVOKED" => {
9029                Some(Self::AtomHealthConnectPhrApiInvoked)
9030            }
9031            "ATOM_HEALTH_CONNECT_PHR_USAGE_STATS" => {
9032                Some(Self::AtomHealthConnectPhrUsageStats)
9033            }
9034            "ATOM_HEALTH_CONNECT_PHR_STORAGE_STATS" => {
9035                Some(Self::AtomHealthConnectPhrStorageStats)
9036            }
9037            "ATOM_HEALTH_CONNECT_RESTRICTED_ECOSYSTEM_STATS" => {
9038                Some(Self::AtomHealthConnectRestrictedEcosystemStats)
9039            }
9040            "ATOM_HEALTH_CONNECT_ECOSYSTEM_STATS" => {
9041                Some(Self::AtomHealthConnectEcosystemStats)
9042            }
9043            "ATOM_HDMI_EARC_STATUS_REPORTED" => Some(Self::AtomHdmiEarcStatusReported),
9044            "ATOM_HDMI_SOUNDBAR_MODE_STATUS_REPORTED" => {
9045                Some(Self::AtomHdmiSoundbarModeStatusReported)
9046            }
9047            "ATOM_HDMI_POWER_STATE_CHANGE_ON_ACTIVE_SOURCE_LOST_TOGGLED" => {
9048                Some(Self::AtomHdmiPowerStateChangeOnActiveSourceLostToggled)
9049            }
9050            "ATOM_BATTERY_HEALTH" => Some(Self::AtomBatteryHealth),
9051            "ATOM_BIOMETRIC_UNENROLLED" => Some(Self::AtomBiometricUnenrolled),
9052            "ATOM_BIOMETRIC_ENUMERATED" => Some(Self::AtomBiometricEnumerated),
9053            "ATOM_APPLICATION_GRAMMATICAL_INFLECTION_CHANGED" => {
9054                Some(Self::AtomApplicationGrammaticalInflectionChanged)
9055            }
9056            "ATOM_SYSTEM_GRAMMATICAL_INFLECTION_CHANGED" => {
9057                Some(Self::AtomSystemGrammaticalInflectionChanged)
9058            }
9059            "ATOM_FULL_SCREEN_INTENT_LAUNCHED" => {
9060                Some(Self::AtomFullScreenIntentLaunched)
9061            }
9062            "ATOM_BAL_ALLOWED" => Some(Self::AtomBalAllowed),
9063            "ATOM_IN_TASK_ACTIVITY_STARTED" => Some(Self::AtomInTaskActivityStarted),
9064            "ATOM_DEVICE_ORIENTATION_CHANGED" => Some(Self::AtomDeviceOrientationChanged),
9065            "ATOM_CACHED_APPS_HIGH_WATERMARK" => Some(Self::AtomCachedAppsHighWatermark),
9066            "ATOM_STYLUS_PREDICTION_METRICS_REPORTED" => {
9067                Some(Self::AtomStylusPredictionMetricsReported)
9068            }
9069            "ATOM_USER_RISK_EVENT_REPORTED" => Some(Self::AtomUserRiskEventReported),
9070            "ATOM_MEDIA_PROJECTION_STATE_CHANGED" => {
9071                Some(Self::AtomMediaProjectionStateChanged)
9072            }
9073            "ATOM_MEDIA_PROJECTION_TARGET_CHANGED" => {
9074                Some(Self::AtomMediaProjectionTargetChanged)
9075            }
9076            "ATOM_EXCESSIVE_BINDER_PROXY_COUNT_REPORTED" => {
9077                Some(Self::AtomExcessiveBinderProxyCountReported)
9078            }
9079            "ATOM_PROXY_BYTES_TRANSFER_BY_FG_BG" => {
9080                Some(Self::AtomProxyBytesTransferByFgBg)
9081            }
9082            "ATOM_MOBILE_BYTES_TRANSFER_BY_PROC_STATE" => {
9083                Some(Self::AtomMobileBytesTransferByProcState)
9084            }
9085            "ATOM_BIOMETRIC_FRR_NOTIFICATION" => Some(Self::AtomBiometricFrrNotification),
9086            "ATOM_SENSITIVE_CONTENT_MEDIA_PROJECTION_SESSION" => {
9087                Some(Self::AtomSensitiveContentMediaProjectionSession)
9088            }
9089            "ATOM_SENSITIVE_NOTIFICATION_APP_PROTECTION_SESSION" => {
9090                Some(Self::AtomSensitiveNotificationAppProtectionSession)
9091            }
9092            "ATOM_SENSITIVE_NOTIFICATION_APP_PROTECTION_APPLIED" => {
9093                Some(Self::AtomSensitiveNotificationAppProtectionApplied)
9094            }
9095            "ATOM_SENSITIVE_NOTIFICATION_REDACTION" => {
9096                Some(Self::AtomSensitiveNotificationRedaction)
9097            }
9098            "ATOM_SENSITIVE_CONTENT_APP_PROTECTION" => {
9099                Some(Self::AtomSensitiveContentAppProtection)
9100            }
9101            "ATOM_APP_RESTRICTION_STATE_CHANGED" => {
9102                Some(Self::AtomAppRestrictionStateChanged)
9103            }
9104            "ATOM_BATTERY_USAGE_STATS_PER_UID" => Some(Self::AtomBatteryUsageStatsPerUid),
9105            "ATOM_POSTGC_MEMORY_SNAPSHOT" => Some(Self::AtomPostgcMemorySnapshot),
9106            "ATOM_POWER_SAVE_TEMP_ALLOWLIST_CHANGED" => {
9107                Some(Self::AtomPowerSaveTempAllowlistChanged)
9108            }
9109            "ATOM_APP_OP_ACCESS_TRACKED" => Some(Self::AtomAppOpAccessTracked),
9110            "ATOM_CONTENT_OR_FILE_URI_EVENT_REPORTED" => {
9111                Some(Self::AtomContentOrFileUriEventReported)
9112            }
9113            "ATOM_DEVICE_IDLE_TEMP_ALLOWLIST_UPDATED" => {
9114                Some(Self::AtomDeviceIdleTempAllowlistUpdated)
9115            }
9116            "ATOM_APP_OP_NOTE_OP_OR_CHECK_OP_BINDER_API_CALLED" => {
9117                Some(Self::AtomAppOpNoteOpOrCheckOpBinderApiCalled)
9118            }
9119            "ATOM_FRAMEWORK_WAKELOCK_INFO" => Some(Self::AtomFrameworkWakelockInfo),
9120            "ATOM_JANK_FRAME_COUNT_BY_WIDGET_REPORTED" => {
9121                Some(Self::AtomJankFrameCountByWidgetReported)
9122            }
9123            "ATOM_INTENT_CREATOR_TOKEN_ADDED" => Some(Self::AtomIntentCreatorTokenAdded),
9124            "ATOM_NOTIFICATION_CHANNEL_CLASSIFICATION" => {
9125                Some(Self::AtomNotificationChannelClassification)
9126            }
9127            "ATOM_CAMERA_STATUS_FOR_COMPATIBILITY_CHANGED" => {
9128                Some(Self::AtomCameraStatusForCompatibilityChanged)
9129            }
9130            "ATOM_FEDERATED_COMPUTE_API_CALLED" => {
9131                Some(Self::AtomFederatedComputeApiCalled)
9132            }
9133            "ATOM_FEDERATED_COMPUTE_TRAINING_EVENT_REPORTED" => {
9134                Some(Self::AtomFederatedComputeTrainingEventReported)
9135            }
9136            "ATOM_EXAMPLE_ITERATOR_NEXT_LATENCY_REPORTED" => {
9137                Some(Self::AtomExampleIteratorNextLatencyReported)
9138            }
9139            "ATOM_FEDERATED_COMPUTE_TRACE_EVENT_REPORTED" => {
9140                Some(Self::AtomFederatedComputeTraceEventReported)
9141            }
9142            "ATOM_EXPRESS_EVENT_REPORTED" => Some(Self::AtomExpressEventReported),
9143            "ATOM_EXPRESS_HISTOGRAM_SAMPLE_REPORTED" => {
9144                Some(Self::AtomExpressHistogramSampleReported)
9145            }
9146            "ATOM_EXPRESS_UID_EVENT_REPORTED" => Some(Self::AtomExpressUidEventReported),
9147            "ATOM_EXPRESS_UID_HISTOGRAM_SAMPLE_REPORTED" => {
9148                Some(Self::AtomExpressUidHistogramSampleReported)
9149            }
9150            "ATOM_DREAM_SETTING_CHANGED" => Some(Self::AtomDreamSettingChanged),
9151            "ATOM_DREAM_SETTING_SNAPSHOT" => Some(Self::AtomDreamSettingSnapshot),
9152            "ATOM_DND_STATE_CHANGED" => Some(Self::AtomDndStateChanged),
9153            "ATOM_EXTERNAL_DISPLAY_STATE_CHANGED" => {
9154                Some(Self::AtomExternalDisplayStateChanged)
9155            }
9156            "ATOM_DISPLAY_MODE_DIRECTOR_VOTE_CHANGED" => {
9157                Some(Self::AtomDisplayModeDirectorVoteChanged)
9158            }
9159            "ATOM_DEVICE_POLICY_MANAGEMENT_MODE" => {
9160                Some(Self::AtomDevicePolicyManagementMode)
9161            }
9162            "ATOM_DEVICE_POLICY_STATE" => Some(Self::AtomDevicePolicyState),
9163            "ATOM_DEVICE_LOCK_CHECK_IN_REQUEST_REPORTED" => {
9164                Some(Self::AtomDeviceLockCheckInRequestReported)
9165            }
9166            "ATOM_DEVICE_LOCK_PROVISIONING_COMPLETE_REPORTED" => {
9167                Some(Self::AtomDeviceLockProvisioningCompleteReported)
9168            }
9169            "ATOM_DEVICE_LOCK_KIOSK_APP_REQUEST_REPORTED" => {
9170                Some(Self::AtomDeviceLockKioskAppRequestReported)
9171            }
9172            "ATOM_DEVICE_LOCK_CHECK_IN_RETRY_REPORTED" => {
9173                Some(Self::AtomDeviceLockCheckInRetryReported)
9174            }
9175            "ATOM_DEVICE_LOCK_PROVISION_FAILURE_REPORTED" => {
9176                Some(Self::AtomDeviceLockProvisionFailureReported)
9177            }
9178            "ATOM_DEVICE_LOCK_LOCK_UNLOCK_DEVICE_FAILURE_REPORTED" => {
9179                Some(Self::AtomDeviceLockLockUnlockDeviceFailureReported)
9180            }
9181            "ATOM_DESKTOP_MODE_UI_CHANGED" => Some(Self::AtomDesktopModeUiChanged),
9182            "ATOM_DESKTOP_MODE_SESSION_TASK_UPDATE" => {
9183                Some(Self::AtomDesktopModeSessionTaskUpdate)
9184            }
9185            "ATOM_DESKTOP_MODE_TASK_SIZE_UPDATED" => {
9186                Some(Self::AtomDesktopModeTaskSizeUpdated)
9187            }
9188            "ATOM_CRONET_ENGINE_CREATED" => Some(Self::AtomCronetEngineCreated),
9189            "ATOM_CRONET_TRAFFIC_REPORTED" => Some(Self::AtomCronetTrafficReported),
9190            "ATOM_CRONET_ENGINE_BUILDER_INITIALIZED" => {
9191                Some(Self::AtomCronetEngineBuilderInitialized)
9192            }
9193            "ATOM_CRONET_HTTP_FLAGS_INITIALIZED" => {
9194                Some(Self::AtomCronetHttpFlagsInitialized)
9195            }
9196            "ATOM_CRONET_INITIALIZED" => Some(Self::AtomCronetInitialized),
9197            "ATOM_CREDENTIAL_MANAGER_API_CALLED" => {
9198                Some(Self::AtomCredentialManagerApiCalled)
9199            }
9200            "ATOM_CREDENTIAL_MANAGER_INIT_PHASE_REPORTED" => {
9201                Some(Self::AtomCredentialManagerInitPhaseReported)
9202            }
9203            "ATOM_CREDENTIAL_MANAGER_CANDIDATE_PHASE_REPORTED" => {
9204                Some(Self::AtomCredentialManagerCandidatePhaseReported)
9205            }
9206            "ATOM_CREDENTIAL_MANAGER_FINAL_PHASE_REPORTED" => {
9207                Some(Self::AtomCredentialManagerFinalPhaseReported)
9208            }
9209            "ATOM_CREDENTIAL_MANAGER_TOTAL_REPORTED" => {
9210                Some(Self::AtomCredentialManagerTotalReported)
9211            }
9212            "ATOM_CREDENTIAL_MANAGER_FINALNOUID_REPORTED" => {
9213                Some(Self::AtomCredentialManagerFinalnouidReported)
9214            }
9215            "ATOM_CREDENTIAL_MANAGER_GET_REPORTED" => {
9216                Some(Self::AtomCredentialManagerGetReported)
9217            }
9218            "ATOM_CREDENTIAL_MANAGER_AUTH_CLICK_REPORTED" => {
9219                Some(Self::AtomCredentialManagerAuthClickReported)
9220            }
9221            "ATOM_CREDENTIAL_MANAGER_APIV2_CALLED" => {
9222                Some(Self::AtomCredentialManagerApiv2Called)
9223            }
9224            "ATOM_CPU_POLICY" => Some(Self::AtomCpuPolicy),
9225            "ATOM_VPN_CONNECTION_STATE_CHANGED" => {
9226                Some(Self::AtomVpnConnectionStateChanged)
9227            }
9228            "ATOM_VPN_CONNECTION_REPORTED" => Some(Self::AtomVpnConnectionReported),
9229            "ATOM_IP_CLIENT_RA_INFO_REPORTED" => Some(Self::AtomIpClientRaInfoReported),
9230            "ATOM_APF_SESSION_INFO_REPORTED" => Some(Self::AtomApfSessionInfoReported),
9231            "ATOM_CORE_NETWORKING_TERRIBLE_ERROR_OCCURRED" => {
9232                Some(Self::AtomCoreNetworkingTerribleErrorOccurred)
9233            }
9234            "ATOM_NETWORK_STATS_RECORDER_FILE_OPERATED" => {
9235                Some(Self::AtomNetworkStatsRecorderFileOperated)
9236            }
9237            "ATOM_DAILY_KEEPALIVE_INFO_REPORTED" => {
9238                Some(Self::AtomDailyKeepaliveInfoReported)
9239            }
9240            "ATOM_NETWORK_REQUEST_STATE_CHANGED" => {
9241                Some(Self::AtomNetworkRequestStateChanged)
9242            }
9243            "ATOM_TETHERING_ACTIVE_SESSIONS_REPORTED" => {
9244                Some(Self::AtomTetheringActiveSessionsReported)
9245            }
9246            "ATOM_CERTIFICATE_TRANSPARENCY_LOG_LIST_UPDATE_STATE_CHANGED" => {
9247                Some(Self::AtomCertificateTransparencyLogListUpdateStateChanged)
9248            }
9249            "ATOM_HARDWARE_RENDERER_EVENT" => Some(Self::AtomHardwareRendererEvent),
9250            "ATOM_TEXTURE_VIEW_EVENT" => Some(Self::AtomTextureViewEvent),
9251            "ATOM_SURFACE_CONTROL_EVENT" => Some(Self::AtomSurfaceControlEvent),
9252            "ATOM_IMAGE_DECODED" => Some(Self::AtomImageDecoded),
9253            "ATOM_CERTIFICATE_TRANSPARENCY_LOG_LIST_STATE_CHANGED" => {
9254                Some(Self::AtomCertificateTransparencyLogListStateChanged)
9255            }
9256            "ATOM_CONSCRYPT_SERVICE_USED" => Some(Self::AtomConscryptServiceUsed),
9257            "ATOM_CERTIFICATE_TRANSPARENCY_VERIFICATION_REPORTED" => {
9258                Some(Self::AtomCertificateTransparencyVerificationReported)
9259            }
9260            "ATOM_CAMERA_FEATURE_COMBINATION_QUERY_EVENT" => {
9261                Some(Self::AtomCameraFeatureCombinationQueryEvent)
9262            }
9263            "ATOM_BROADCAST_SENT" => Some(Self::AtomBroadcastSent),
9264            "ATOM_BLUETOOTH_HASHED_DEVICE_NAME_REPORTED" => {
9265                Some(Self::AtomBluetoothHashedDeviceNameReported)
9266            }
9267            "ATOM_BLUETOOTH_L2CAP_COC_CLIENT_CONNECTION" => {
9268                Some(Self::AtomBluetoothL2capCocClientConnection)
9269            }
9270            "ATOM_BLUETOOTH_L2CAP_COC_SERVER_CONNECTION" => {
9271                Some(Self::AtomBluetoothL2capCocServerConnection)
9272            }
9273            "ATOM_BLUETOOTH_LE_SESSION_CONNECTED" => {
9274                Some(Self::AtomBluetoothLeSessionConnected)
9275            }
9276            "ATOM_RESTRICTED_BLUETOOTH_DEVICE_NAME_REPORTED" => {
9277                Some(Self::AtomRestrictedBluetoothDeviceNameReported)
9278            }
9279            "ATOM_BLUETOOTH_PROFILE_CONNECTION_ATTEMPTED" => {
9280                Some(Self::AtomBluetoothProfileConnectionAttempted)
9281            }
9282            "ATOM_BLUETOOTH_CONTENT_PROFILE_ERROR_REPORTED" => {
9283                Some(Self::AtomBluetoothContentProfileErrorReported)
9284            }
9285            "ATOM_BLUETOOTH_RFCOMM_CONNECTION_ATTEMPTED" => {
9286                Some(Self::AtomBluetoothRfcommConnectionAttempted)
9287            }
9288            "ATOM_REMOTE_DEVICE_INFORMATION_WITH_METRIC_ID" => {
9289                Some(Self::AtomRemoteDeviceInformationWithMetricId)
9290            }
9291            "ATOM_LE_APP_SCAN_STATE_CHANGED" => Some(Self::AtomLeAppScanStateChanged),
9292            "ATOM_LE_RADIO_SCAN_STOPPED" => Some(Self::AtomLeRadioScanStopped),
9293            "ATOM_LE_SCAN_RESULT_RECEIVED" => Some(Self::AtomLeScanResultReceived),
9294            "ATOM_LE_SCAN_ABUSED" => Some(Self::AtomLeScanAbused),
9295            "ATOM_LE_ADV_STATE_CHANGED" => Some(Self::AtomLeAdvStateChanged),
9296            "ATOM_LE_ADV_ERROR_REPORTED" => Some(Self::AtomLeAdvErrorReported),
9297            "ATOM_A2DP_SESSION_REPORTED" => Some(Self::AtomA2dpSessionReported),
9298            "ATOM_BLUETOOTH_CROSS_LAYER_EVENT_REPORTED" => {
9299                Some(Self::AtomBluetoothCrossLayerEventReported)
9300            }
9301            "ATOM_BROADCAST_AUDIO_SESSION_REPORTED" => {
9302                Some(Self::AtomBroadcastAudioSessionReported)
9303            }
9304            "ATOM_BROADCAST_AUDIO_SYNC_REPORTED" => {
9305                Some(Self::AtomBroadcastAudioSyncReported)
9306            }
9307            "ATOM_BLUETOOTH_RFCOMM_CONNECTION_REPORTED_AT_CLOSE" => {
9308                Some(Self::AtomBluetoothRfcommConnectionReportedAtClose)
9309            }
9310            "ATOM_BLUETOOTH_LE_CONNECTION" => Some(Self::AtomBluetoothLeConnection),
9311            "ATOM_HEARING_DEVICE_ACTIVE_EVENT_REPORTED" => {
9312                Some(Self::AtomHearingDeviceActiveEventReported)
9313            }
9314            "ATOM_BACKPORTED_FIX_STATUS_REPORTED" => {
9315                Some(Self::AtomBackportedFixStatusReported)
9316            }
9317            "ATOM_PLUGIN_INITIALIZED" => Some(Self::AtomPluginInitialized),
9318            "ATOM_CAR_SYSTEM_UI_DATA_SUBSCRIPTION_EVENT_REPORTED" => {
9319                Some(Self::AtomCarSystemUiDataSubscriptionEventReported)
9320            }
9321            "ATOM_CAR_SETTINGS_DATA_SUBSCRIPTION_EVENT_REPORTED" => {
9322                Some(Self::AtomCarSettingsDataSubscriptionEventReported)
9323            }
9324            "ATOM_CAR_QC_LIB_EVENT_REPORTED" => Some(Self::AtomCarQcLibEventReported),
9325            "ATOM_CAR_WAKEUP_FROM_SUSPEND_REPORTED" => {
9326                Some(Self::AtomCarWakeupFromSuspendReported)
9327            }
9328            "ATOM_CAR_RECENTS_EVENT_REPORTED" => Some(Self::AtomCarRecentsEventReported),
9329            "ATOM_CAR_CALM_MODE_EVENT_REPORTED" => {
9330                Some(Self::AtomCarCalmModeEventReported)
9331            }
9332            "ATOM_AUTOFILL_UI_EVENT_REPORTED" => Some(Self::AtomAutofillUiEventReported),
9333            "ATOM_AUTOFILL_FILL_REQUEST_REPORTED" => {
9334                Some(Self::AtomAutofillFillRequestReported)
9335            }
9336            "ATOM_AUTOFILL_FILL_RESPONSE_REPORTED" => {
9337                Some(Self::AtomAutofillFillResponseReported)
9338            }
9339            "ATOM_AUTOFILL_SAVE_EVENT_REPORTED" => {
9340                Some(Self::AtomAutofillSaveEventReported)
9341            }
9342            "ATOM_AUTOFILL_SESSION_COMMITTED" => Some(Self::AtomAutofillSessionCommitted),
9343            "ATOM_AUTOFILL_FIELD_CLASSIFICATION_EVENT_REPORTED" => {
9344                Some(Self::AtomAutofillFieldClassificationEventReported)
9345            }
9346            "ATOM_ODREFRESH_REPORTED" => Some(Self::AtomOdrefreshReported),
9347            "ATOM_ODSIGN_REPORTED" => Some(Self::AtomOdsignReported),
9348            "ATOM_BACKGROUND_DEXOPT_JOB_ENDED" => {
9349                Some(Self::AtomBackgroundDexoptJobEnded)
9350            }
9351            "ATOM_PREREBOOT_DEXOPT_JOB_ENDED" => Some(Self::AtomPrerebootDexoptJobEnded),
9352            "ATOM_ART_DATUM_REPORTED" => Some(Self::AtomArtDatumReported),
9353            "ATOM_ART_DEVICE_DATUM_REPORTED" => Some(Self::AtomArtDeviceDatumReported),
9354            "ATOM_ART_DATUM_DELTA_REPORTED" => Some(Self::AtomArtDatumDeltaReported),
9355            "ATOM_ART_DEX2OAT_REPORTED" => Some(Self::AtomArtDex2oatReported),
9356            "ATOM_ART_DEVICE_STATUS" => Some(Self::AtomArtDeviceStatus),
9357            "ATOM_APP_SEARCH_SET_SCHEMA_STATS_REPORTED" => {
9358                Some(Self::AtomAppSearchSetSchemaStatsReported)
9359            }
9360            "ATOM_APP_SEARCH_SCHEMA_MIGRATION_STATS_REPORTED" => {
9361                Some(Self::AtomAppSearchSchemaMigrationStatsReported)
9362            }
9363            "ATOM_APP_SEARCH_USAGE_SEARCH_INTENT_STATS_REPORTED" => {
9364                Some(Self::AtomAppSearchUsageSearchIntentStatsReported)
9365            }
9366            "ATOM_APP_SEARCH_USAGE_SEARCH_INTENT_RAW_QUERY_STATS_REPORTED" => {
9367                Some(Self::AtomAppSearchUsageSearchIntentRawQueryStatsReported)
9368            }
9369            "ATOM_APP_SEARCH_APPS_INDEXER_STATS_REPORTED" => {
9370                Some(Self::AtomAppSearchAppsIndexerStatsReported)
9371            }
9372            "ATOM_APP_FUNCTIONS_REQUEST_REPORTED" => {
9373                Some(Self::AtomAppFunctionsRequestReported)
9374            }
9375            "ATOM_APEX_INSTALLATION_REQUESTED" => {
9376                Some(Self::AtomApexInstallationRequested)
9377            }
9378            "ATOM_APEX_INSTALLATION_STAGED" => Some(Self::AtomApexInstallationStaged),
9379            "ATOM_APEX_INSTALLATION_ENDED" => Some(Self::AtomApexInstallationEnded),
9380            "ATOM_AI_WALLPAPERS_BUTTON_PRESSED" => {
9381                Some(Self::AtomAiWallpapersButtonPressed)
9382            }
9383            "ATOM_AI_WALLPAPERS_TEMPLATE_SELECTED" => {
9384                Some(Self::AtomAiWallpapersTemplateSelected)
9385            }
9386            "ATOM_AI_WALLPAPERS_TERM_SELECTED" => {
9387                Some(Self::AtomAiWallpapersTermSelected)
9388            }
9389            "ATOM_AI_WALLPAPERS_WALLPAPER_SET" => {
9390                Some(Self::AtomAiWallpapersWallpaperSet)
9391            }
9392            "ATOM_AI_WALLPAPERS_SESSION_SUMMARY" => {
9393                Some(Self::AtomAiWallpapersSessionSummary)
9394            }
9395            "ATOM_JSSCRIPTENGINE_LATENCY_REPORTED" => {
9396                Some(Self::AtomJsscriptengineLatencyReported)
9397            }
9398            "ATOM_AD_SERVICES_API_CALLED" => Some(Self::AtomAdServicesApiCalled),
9399            "ATOM_AD_SERVICES_MESUREMENT_REPORTS_UPLOADED" => {
9400                Some(Self::AtomAdServicesMesurementReportsUploaded)
9401            }
9402            "ATOM_MOBILE_DATA_DOWNLOAD_FILE_GROUP_STATUS_REPORTED" => {
9403                Some(Self::AtomMobileDataDownloadFileGroupStatusReported)
9404            }
9405            "ATOM_MOBILE_DATA_DOWNLOAD_DOWNLOAD_RESULT_REPORTED" => {
9406                Some(Self::AtomMobileDataDownloadDownloadResultReported)
9407            }
9408            "ATOM_AD_SERVICES_SETTINGS_USAGE_REPORTED" => {
9409                Some(Self::AtomAdServicesSettingsUsageReported)
9410            }
9411            "ATOM_BACKGROUND_FETCH_PROCESS_REPORTED" => {
9412                Some(Self::AtomBackgroundFetchProcessReported)
9413            }
9414            "ATOM_UPDATE_CUSTOM_AUDIENCE_PROCESS_REPORTED" => {
9415                Some(Self::AtomUpdateCustomAudienceProcessReported)
9416            }
9417            "ATOM_RUN_AD_BIDDING_PROCESS_REPORTED" => {
9418                Some(Self::AtomRunAdBiddingProcessReported)
9419            }
9420            "ATOM_RUN_AD_SCORING_PROCESS_REPORTED" => {
9421                Some(Self::AtomRunAdScoringProcessReported)
9422            }
9423            "ATOM_RUN_AD_SELECTION_PROCESS_REPORTED" => {
9424                Some(Self::AtomRunAdSelectionProcessReported)
9425            }
9426            "ATOM_RUN_AD_BIDDING_PER_CA_PROCESS_REPORTED" => {
9427                Some(Self::AtomRunAdBiddingPerCaProcessReported)
9428            }
9429            "ATOM_MOBILE_DATA_DOWNLOAD_FILE_GROUP_STORAGE_STATS_REPORTED" => {
9430                Some(Self::AtomMobileDataDownloadFileGroupStorageStatsReported)
9431            }
9432            "ATOM_AD_SERVICES_MEASUREMENT_REGISTRATIONS" => {
9433                Some(Self::AtomAdServicesMeasurementRegistrations)
9434            }
9435            "ATOM_AD_SERVICES_GET_TOPICS_REPORTED" => {
9436                Some(Self::AtomAdServicesGetTopicsReported)
9437            }
9438            "ATOM_AD_SERVICES_EPOCH_COMPUTATION_GET_TOP_TOPICS_REPORTED" => {
9439                Some(Self::AtomAdServicesEpochComputationGetTopTopicsReported)
9440            }
9441            "ATOM_AD_SERVICES_EPOCH_COMPUTATION_CLASSIFIER_REPORTED" => {
9442                Some(Self::AtomAdServicesEpochComputationClassifierReported)
9443            }
9444            "ATOM_AD_SERVICES_BACK_COMPAT_GET_TOPICS_REPORTED" => {
9445                Some(Self::AtomAdServicesBackCompatGetTopicsReported)
9446            }
9447            "ATOM_AD_SERVICES_BACK_COMPAT_EPOCH_COMPUTATION_CLASSIFIER_REPORTED" => {
9448                Some(Self::AtomAdServicesBackCompatEpochComputationClassifierReported)
9449            }
9450            "ATOM_AD_SERVICES_MEASUREMENT_DEBUG_KEYS" => {
9451                Some(Self::AtomAdServicesMeasurementDebugKeys)
9452            }
9453            "ATOM_AD_SERVICES_ERROR_REPORTED" => Some(Self::AtomAdServicesErrorReported),
9454            "ATOM_AD_SERVICES_BACKGROUND_JOBS_EXECUTION_REPORTED" => {
9455                Some(Self::AtomAdServicesBackgroundJobsExecutionReported)
9456            }
9457            "ATOM_AD_SERVICES_MEASUREMENT_DELAYED_SOURCE_REGISTRATION" => {
9458                Some(Self::AtomAdServicesMeasurementDelayedSourceRegistration)
9459            }
9460            "ATOM_AD_SERVICES_MEASUREMENT_ATTRIBUTION" => {
9461                Some(Self::AtomAdServicesMeasurementAttribution)
9462            }
9463            "ATOM_AD_SERVICES_MEASUREMENT_JOBS" => {
9464                Some(Self::AtomAdServicesMeasurementJobs)
9465            }
9466            "ATOM_AD_SERVICES_MEASUREMENT_WIPEOUT" => {
9467                Some(Self::AtomAdServicesMeasurementWipeout)
9468            }
9469            "ATOM_AD_SERVICES_MEASUREMENT_AD_ID_MATCH_FOR_DEBUG_KEYS" => {
9470                Some(Self::AtomAdServicesMeasurementAdIdMatchForDebugKeys)
9471            }
9472            "ATOM_AD_SERVICES_ENROLLMENT_DATA_STORED" => {
9473                Some(Self::AtomAdServicesEnrollmentDataStored)
9474            }
9475            "ATOM_AD_SERVICES_ENROLLMENT_FILE_DOWNLOADED" => {
9476                Some(Self::AtomAdServicesEnrollmentFileDownloaded)
9477            }
9478            "ATOM_AD_SERVICES_ENROLLMENT_MATCHED" => {
9479                Some(Self::AtomAdServicesEnrollmentMatched)
9480            }
9481            "ATOM_AD_SERVICES_CONSENT_MIGRATED" => {
9482                Some(Self::AtomAdServicesConsentMigrated)
9483            }
9484            "ATOM_AD_SERVICES_ENROLLMENT_FAILED" => {
9485                Some(Self::AtomAdServicesEnrollmentFailed)
9486            }
9487            "ATOM_AD_SERVICES_MEASUREMENT_CLICK_VERIFICATION" => {
9488                Some(Self::AtomAdServicesMeasurementClickVerification)
9489            }
9490            "ATOM_AD_SERVICES_ENCRYPTION_KEY_FETCHED" => {
9491                Some(Self::AtomAdServicesEncryptionKeyFetched)
9492            }
9493            "ATOM_AD_SERVICES_ENCRYPTION_KEY_DB_TRANSACTION_ENDED" => {
9494                Some(Self::AtomAdServicesEncryptionKeyDbTransactionEnded)
9495            }
9496            "ATOM_DESTINATION_REGISTERED_BEACONS" => {
9497                Some(Self::AtomDestinationRegisteredBeacons)
9498            }
9499            "ATOM_REPORT_INTERACTION_API_CALLED" => {
9500                Some(Self::AtomReportInteractionApiCalled)
9501            }
9502            "ATOM_INTERACTION_REPORTING_TABLE_CLEARED" => {
9503                Some(Self::AtomInteractionReportingTableCleared)
9504            }
9505            "ATOM_APP_MANIFEST_CONFIG_HELPER_CALLED" => {
9506                Some(Self::AtomAppManifestConfigHelperCalled)
9507            }
9508            "ATOM_AD_FILTERING_PROCESS_JOIN_CA_REPORTED" => {
9509                Some(Self::AtomAdFilteringProcessJoinCaReported)
9510            }
9511            "ATOM_AD_FILTERING_PROCESS_AD_SELECTION_REPORTED" => {
9512                Some(Self::AtomAdFilteringProcessAdSelectionReported)
9513            }
9514            "ATOM_AD_COUNTER_HISTOGRAM_UPDATER_REPORTED" => {
9515                Some(Self::AtomAdCounterHistogramUpdaterReported)
9516            }
9517            "ATOM_SIGNATURE_VERIFICATION" => Some(Self::AtomSignatureVerification),
9518            "ATOM_K_ANON_IMMEDIATE_SIGN_JOIN_STATUS_REPORTED" => {
9519                Some(Self::AtomKAnonImmediateSignJoinStatusReported)
9520            }
9521            "ATOM_K_ANON_BACKGROUND_JOB_STATUS_REPORTED" => {
9522                Some(Self::AtomKAnonBackgroundJobStatusReported)
9523            }
9524            "ATOM_K_ANON_INITIALIZE_STATUS_REPORTED" => {
9525                Some(Self::AtomKAnonInitializeStatusReported)
9526            }
9527            "ATOM_K_ANON_SIGN_STATUS_REPORTED" => Some(Self::AtomKAnonSignStatusReported),
9528            "ATOM_K_ANON_JOIN_STATUS_REPORTED" => Some(Self::AtomKAnonJoinStatusReported),
9529            "ATOM_K_ANON_KEY_ATTESTATION_STATUS_REPORTED" => {
9530                Some(Self::AtomKAnonKeyAttestationStatusReported)
9531            }
9532            "ATOM_GET_AD_SELECTION_DATA_API_CALLED" => {
9533                Some(Self::AtomGetAdSelectionDataApiCalled)
9534            }
9535            "ATOM_GET_AD_SELECTION_DATA_BUYER_INPUT_GENERATED" => {
9536                Some(Self::AtomGetAdSelectionDataBuyerInputGenerated)
9537            }
9538            "ATOM_BACKGROUND_JOB_SCHEDULING_REPORTED" => {
9539                Some(Self::AtomBackgroundJobSchedulingReported)
9540            }
9541            "ATOM_TOPICS_ENCRYPTION_EPOCH_COMPUTATION_REPORTED" => {
9542                Some(Self::AtomTopicsEncryptionEpochComputationReported)
9543            }
9544            "ATOM_TOPICS_ENCRYPTION_GET_TOPICS_REPORTED" => {
9545                Some(Self::AtomTopicsEncryptionGetTopicsReported)
9546            }
9547            "ATOM_ADSERVICES_SHELL_COMMAND_CALLED" => {
9548                Some(Self::AtomAdservicesShellCommandCalled)
9549            }
9550            "ATOM_UPDATE_SIGNALS_API_CALLED" => Some(Self::AtomUpdateSignalsApiCalled),
9551            "ATOM_ENCODING_JOB_RUN" => Some(Self::AtomEncodingJobRun),
9552            "ATOM_ENCODING_JS_FETCH" => Some(Self::AtomEncodingJsFetch),
9553            "ATOM_ENCODING_JS_EXECUTION" => Some(Self::AtomEncodingJsExecution),
9554            "ATOM_PERSIST_AD_SELECTION_RESULT_CALLED" => {
9555                Some(Self::AtomPersistAdSelectionResultCalled)
9556            }
9557            "ATOM_SERVER_AUCTION_KEY_FETCH_CALLED" => {
9558                Some(Self::AtomServerAuctionKeyFetchCalled)
9559            }
9560            "ATOM_SERVER_AUCTION_BACKGROUND_KEY_FETCH_ENABLED" => {
9561                Some(Self::AtomServerAuctionBackgroundKeyFetchEnabled)
9562            }
9563            "ATOM_AD_SERVICES_MEASUREMENT_PROCESS_ODP_REGISTRATION" => {
9564                Some(Self::AtomAdServicesMeasurementProcessOdpRegistration)
9565            }
9566            "ATOM_AD_SERVICES_MEASUREMENT_NOTIFY_REGISTRATION_TO_ODP" => {
9567                Some(Self::AtomAdServicesMeasurementNotifyRegistrationToOdp)
9568            }
9569            "ATOM_SELECT_ADS_FROM_OUTCOMES_API_CALLED" => {
9570                Some(Self::AtomSelectAdsFromOutcomesApiCalled)
9571            }
9572            "ATOM_REPORT_IMPRESSION_API_CALLED" => {
9573                Some(Self::AtomReportImpressionApiCalled)
9574            }
9575            "ATOM_AD_SERVICES_ENROLLMENT_TRANSACTION_STATS" => {
9576                Some(Self::AtomAdServicesEnrollmentTransactionStats)
9577            }
9578            "ATOM_AD_SERVICES_COBALT_LOGGER_EVENT_REPORTED" => {
9579                Some(Self::AtomAdServicesCobaltLoggerEventReported)
9580            }
9581            "ATOM_AD_SERVICES_COBALT_PERIODIC_JOB_EVENT_REPORTED" => {
9582                Some(Self::AtomAdServicesCobaltPeriodicJobEventReported)
9583            }
9584            "ATOM_UPDATE_SIGNALS_PROCESS_REPORTED" => {
9585                Some(Self::AtomUpdateSignalsProcessReported)
9586            }
9587            "ATOM_TOPICS_SCHEDULE_EPOCH_JOB_SETTING_REPORTED" => {
9588                Some(Self::AtomTopicsScheduleEpochJobSettingReported)
9589            }
9590            "ATOM_SCHEDULED_CUSTOM_AUDIENCE_UPDATE_SCHEDULE_ATTEMPTED" => {
9591                Some(Self::AtomScheduledCustomAudienceUpdateScheduleAttempted)
9592            }
9593            "ATOM_SCHEDULED_CUSTOM_AUDIENCE_UPDATE_PERFORMED" => {
9594                Some(Self::AtomScheduledCustomAudienceUpdatePerformed)
9595            }
9596            "ATOM_SCHEDULED_CUSTOM_AUDIENCE_UPDATE_PERFORMED_ATTEMPTED_FAILURE_REPORTED" => {
9597                Some(
9598                    Self::AtomScheduledCustomAudienceUpdatePerformedAttemptedFailureReported,
9599                )
9600            }
9601            "ATOM_SCHEDULED_CUSTOM_AUDIENCE_UPDATE_BACKGROUND_JOB_RAN" => {
9602                Some(Self::AtomScheduledCustomAudienceUpdateBackgroundJobRan)
9603            }
9604            "ATOM_THERMAL_STATUS_CALLED" => Some(Self::AtomThermalStatusCalled),
9605            "ATOM_THERMAL_HEADROOM_CALLED" => Some(Self::AtomThermalHeadroomCalled),
9606            "ATOM_THERMAL_HEADROOM_THRESHOLDS_CALLED" => {
9607                Some(Self::AtomThermalHeadroomThresholdsCalled)
9608            }
9609            "ATOM_ADPF_HINT_SESSION_TID_CLEANUP" => {
9610                Some(Self::AtomAdpfHintSessionTidCleanup)
9611            }
9612            "ATOM_THERMAL_HEADROOM_THRESHOLDS" => {
9613                Some(Self::AtomThermalHeadroomThresholds)
9614            }
9615            "ATOM_ADPF_SESSION_SNAPSHOT" => Some(Self::AtomAdpfSessionSnapshot),
9616            "ATOM_ADAPTIVE_AUTH_UNLOCK_AFTER_LOCK_REPORTED" => {
9617                Some(Self::AtomAdaptiveAuthUnlockAfterLockReported)
9618            }
9619            "ATOM_ACCOUNT_MANAGER_EVENT" => Some(Self::AtomAccountManagerEvent),
9620            "ATOM_ACCESSIBILITY_CHECK_RESULT_REPORTED" => {
9621                Some(Self::AtomAccessibilityCheckResultReported)
9622            }
9623            _ => None,
9624        }
9625    }
9626}
9627/// This file is named 'statsd_tracing_config.proto' rather than
9628/// 'statsd_config.proto' (which would be more consistent with the other
9629/// config protos) so it doesn't show up and confuse folks looking for
9630/// the existing statsd_config.proto for configuring statsd itself.
9631/// Same for the config proto itself.
9632#[derive(Clone, PartialEq, ::prost::Message)]
9633pub struct StatsdTracingConfig {
9634    /// This is for the common case of the atom id being known in the enum AtomId.
9635    #[prost(enumeration = "AtomId", repeated, packed = "false", tag = "1")]
9636    pub push_atom_id: ::prost::alloc::vec::Vec<i32>,
9637    /// Escape hatch for Atom IDs that are not yet in the AtomId enum
9638    /// (e.g. non-upstream atoms that don't exist in AOSP).
9639    #[prost(int32, repeated, packed = "false", tag = "2")]
9640    pub raw_push_atom_id: ::prost::alloc::vec::Vec<i32>,
9641    #[prost(message, repeated, tag = "3")]
9642    pub pull_config: ::prost::alloc::vec::Vec<StatsdPullAtomConfig>,
9643}
9644#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
9645pub struct StatsdPullAtomConfig {
9646    #[prost(enumeration = "AtomId", repeated, packed = "false", tag = "1")]
9647    pub pull_atom_id: ::prost::alloc::vec::Vec<i32>,
9648    #[prost(int32, repeated, packed = "false", tag = "2")]
9649    pub raw_pull_atom_id: ::prost::alloc::vec::Vec<i32>,
9650    #[prost(int32, optional, tag = "3")]
9651    pub pull_frequency_ms: ::core::option::Option<i32>,
9652    #[prost(string, repeated, tag = "4")]
9653    pub packages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
9654}
9655/// Configuration that allows to boost the priority of the 'traced' or
9656/// 'traced_probs' processes, by changing the scheduler configuration.
9657/// Only supported on Linux and Android the boosted process must have
9658/// 'CAP_SYS_NICE' capability.
9659#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
9660pub struct PriorityBoostConfig {
9661    #[prost(enumeration = "priority_boost_config::BoostPolicy", optional, tag = "1")]
9662    pub policy: ::core::option::Option<i32>,
9663    #[prost(uint32, optional, tag = "2")]
9664    pub priority: ::core::option::Option<u32>,
9665}
9666/// Nested message and enum types in `PriorityBoostConfig`.
9667pub mod priority_boost_config {
9668    #[derive(
9669        Clone,
9670        Copy,
9671        Debug,
9672        PartialEq,
9673        Eq,
9674        Hash,
9675        PartialOrd,
9676        Ord,
9677        ::prost::Enumeration
9678    )]
9679    #[repr(i32)]
9680    pub enum BoostPolicy {
9681        PolicyUnspecified = 0,
9682        /// The default policy (e.g., CFS on Linux). Priority range: \[0; 20\]
9683        /// priority is interpreted as -(nice), i.e., 1 is slightly higher prio
9684        /// than default 0, 20 is the highest priority.
9685        /// Note: this is the opposite semantic of the cmdline nice, and is done for
9686        /// consistency with POLICY_SCHED_FIFO, so higher number == higher prio.
9687        PolicySchedOther = 1,
9688        /// The Real-time policy, Priority range: \[1; 99\]
9689        PolicySchedFifo = 2,
9690    }
9691    impl BoostPolicy {
9692        /// String value of the enum field names used in the ProtoBuf definition.
9693        ///
9694        /// The values are not transformed in any way and thus are considered stable
9695        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
9696        pub fn as_str_name(&self) -> &'static str {
9697            match self {
9698                Self::PolicyUnspecified => "POLICY_UNSPECIFIED",
9699                Self::PolicySchedOther => "POLICY_SCHED_OTHER",
9700                Self::PolicySchedFifo => "POLICY_SCHED_FIFO",
9701            }
9702        }
9703        /// Creates an enum from field names used in the ProtoBuf definition.
9704        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
9705            match value {
9706                "POLICY_UNSPECIFIED" => Some(Self::PolicyUnspecified),
9707                "POLICY_SCHED_OTHER" => Some(Self::PolicySchedOther),
9708                "POLICY_SCHED_FIFO" => Some(Self::PolicySchedFifo),
9709                _ => None,
9710            }
9711        }
9712    }
9713}
9714/// Config for polling process-related information from /proc/pid/status and
9715/// related files on Linux.
9716///
9717/// Data source name: "linux.process_stats".
9718#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
9719pub struct ProcessStatsConfig {
9720    #[prost(
9721        enumeration = "process_stats_config::Quirks",
9722        repeated,
9723        packed = "false",
9724        tag = "1"
9725    )]
9726    pub quirks: ::prost::alloc::vec::Vec<i32>,
9727    /// If enabled all processes will be scanned and dumped when the trace starts.
9728    #[prost(bool, optional, tag = "2")]
9729    pub scan_all_processes_on_start: ::core::option::Option<bool>,
9730    /// If enabled thread names are also recoded (this is redundant if sched_switch
9731    /// is enabled).
9732    #[prost(bool, optional, tag = "3")]
9733    pub record_thread_names: ::core::option::Option<bool>,
9734    /// If > 0 samples counters (see process_stats.proto) from
9735    /// /proc/pid/status and oom_score_adj every X ms.
9736    /// This is required to be > 100ms to avoid excessive CPU usage.
9737    #[prost(uint32, optional, tag = "4")]
9738    pub proc_stats_poll_ms: ::core::option::Option<u32>,
9739    /// Explicit caching period during which the polling won't re-emit identical
9740    /// counter values. This is required to be either = 0 or a multiple of
9741    /// |proc_stats_poll_ms| (default: |proc_stats_poll_ms|). Non-multiples will be
9742    /// rounded down to the nearest multiple.
9743    #[prost(uint32, optional, tag = "6")]
9744    pub proc_stats_cache_ttl_ms: ::core::option::Option<u32>,
9745    /// If true and |proc_stats_poll_ms| is set, sample memory stats from
9746    /// /proc/pid/smaps_rollup.
9747    ///
9748    /// Android: does NOT work with the system daemons by default, as it requires
9749    /// running the recording process (traced_probes or tracebox) as root. It is
9750    /// possible to avoid the root requirement, but the exact steps depend on the
9751    /// Linux distibution. The proc file requires passing a PTRACE_MODE_READ
9752    /// check, and might be further covered by the procfs "hidepid" mount option.
9753    #[prost(bool, optional, tag = "10")]
9754    pub scan_smaps_rollup: ::core::option::Option<bool>,
9755    /// If true: process descriptions will include process age (starttime in
9756    /// /proc/pid/stat).
9757    /// Introduced in: perfetto v44.
9758    #[prost(bool, optional, tag = "11")]
9759    pub record_process_age: ::core::option::Option<bool>,
9760    /// If true and |proc_stats_poll_ms| is set, process stats will include time
9761    /// spent running in user/kernel mode (utime/stime in /proc/pid/stat).
9762    /// Introduced in: perfetto v44.
9763    #[prost(bool, optional, tag = "12")]
9764    pub record_process_runtime: ::core::option::Option<bool>,
9765    /// If true obtain per-process dmabuf resident set size from
9766    /// /proc/pid/dmabuf_rss.
9767    /// This feature is not in upstream linux, and is available only on some
9768    /// Android kernels.
9769    #[prost(bool, optional, tag = "13")]
9770    pub record_process_dmabuf_rss: ::core::option::Option<bool>,
9771    /// WARNING: unmaintained and deprecated. If true this will resolve file
9772    /// descriptors for each process so these can be mapped to their actual device
9773    /// or file. Requires raw_syscalls/sys_{enter,exit} ftrace events to be enabled
9774    /// or new fds opened after initially scanning a process will not be
9775    /// recognized.
9776    #[prost(bool, optional, tag = "9")]
9777    pub resolve_process_fds: ::core::option::Option<bool>,
9778    /// If true, do *not* write a ProcessTree::Thread message for the main thread
9779    /// of a process. This was the default behaviour before perfetto v58.
9780    ///
9781    /// Added in perfetto v58.
9782    #[prost(bool, optional, tag = "14")]
9783    pub skip_main_thread_message: ::core::option::Option<bool>,
9784}
9785/// Nested message and enum types in `ProcessStatsConfig`.
9786pub mod process_stats_config {
9787    #[derive(
9788        Clone,
9789        Copy,
9790        Debug,
9791        PartialEq,
9792        Eq,
9793        Hash,
9794        PartialOrd,
9795        Ord,
9796        ::prost::Enumeration
9797    )]
9798    #[repr(i32)]
9799    pub enum Quirks {
9800        Unspecified = 0,
9801        /// This has been deprecated and ignored as per 2018-05-01. Full scan at
9802        /// startup is now disabled by default and can be re-enabled using the
9803        /// |scan_all_processes_on_start| arg.
9804        #[deprecated]
9805        DisableInitialDump = 1,
9806        /// If set, disables the special interaction with "linux.ftrace" data source,
9807        /// where the process stats rescrapes any thread id seen in the ftrace
9808        /// stream.
9809        DisableOnDemand = 2,
9810    }
9811    impl Quirks {
9812        /// String value of the enum field names used in the ProtoBuf definition.
9813        ///
9814        /// The values are not transformed in any way and thus are considered stable
9815        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
9816        pub fn as_str_name(&self) -> &'static str {
9817            match self {
9818                Self::Unspecified => "QUIRKS_UNSPECIFIED",
9819                #[allow(deprecated)]
9820                Self::DisableInitialDump => "DISABLE_INITIAL_DUMP",
9821                Self::DisableOnDemand => "DISABLE_ON_DEMAND",
9822            }
9823        }
9824        /// Creates an enum from field names used in the ProtoBuf definition.
9825        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
9826            match value {
9827                "QUIRKS_UNSPECIFIED" => Some(Self::Unspecified),
9828                "DISABLE_INITIAL_DUMP" => {
9829                    Some(#[allow(deprecated)] Self::DisableInitialDump)
9830                }
9831                "DISABLE_ON_DEMAND" => Some(Self::DisableOnDemand),
9832                _ => None,
9833            }
9834        }
9835    }
9836}
9837/// Configuration for go/heapprofd.
9838/// Next id: 28
9839#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
9840pub struct HeapprofdConfig {
9841    /// Sampling rate for all heaps not specified via heap_sampling_intervals.
9842    ///
9843    /// These are:
9844    /// * All heaps if heap_sampling_intervals is empty.
9845    /// * Those profiled due to all_heaps and not named in heaps if
9846    ///    heap_sampling_intervals is not empty.
9847    /// * The implicit libc.malloc heap if heaps is empty.
9848    ///
9849    /// Set to 1 for perfect accuracy.
9850    /// Otherwise, sample every sample_interval_bytes on average.
9851    ///
9852    /// See
9853    /// <https://perfetto.dev/docs/data-sources/native-heap-profiler#sampling-interval>
9854    /// for more details.
9855    ///
9856    /// BUGS
9857    /// Before Android 12, setting this to 0 would crash the target process.
9858    ///
9859    /// N.B. This must be explicitly set to a non-zero value for all heaps (with
9860    /// this field or with heap_sampling_intervals), otherwise the producer will
9861    /// not start.
9862    #[prost(uint64, optional, tag = "1")]
9863    pub sampling_interval_bytes: ::core::option::Option<u64>,
9864    /// If less than the given numbers of bytes are left free in the shared
9865    /// memory buffer, increase sampling interval by a factor of two.
9866    /// Adaptive sampling is disabled when set to 0.
9867    #[prost(uint64, optional, tag = "24")]
9868    pub adaptive_sampling_shmem_threshold: ::core::option::Option<u64>,
9869    /// Stop doubling the sampling_interval once the sampling interval has reached
9870    /// this value.
9871    #[prost(uint64, optional, tag = "25")]
9872    pub adaptive_sampling_max_sampling_interval_bytes: ::core::option::Option<u64>,
9873    /// Names of process cmdlines to profile. The semantics before perfetto v57 are
9874    /// as the following section (A), and on newer versions are both (A) and (B):
9875    ///
9876    /// (A) E.g. surfaceflinger, com.android.phone
9877    /// This input is normalized in the following way: if it contains slashes,
9878    /// everything up to the last slash is discarded. If it contains "@",
9879    /// everything after the first @ is discared.
9880    /// E.g. /system/bin/surfaceflinger@1.0 normalizes to surfaceflinger.
9881    /// This transformation is also applied to the processes' command lines when
9882    /// matching.
9883    ///
9884    /// (B) Perfetto v57+: a pattern may also contain a wildcard ('*'), in which
9885    /// case it is matched against running processes' command lines using glob
9886    /// semantics. If the pattern starts with '/' it is matched against the full
9887    /// argv0 (e.g. "/system/bin/*"), otherwise it is matched against the binary
9888    /// name part of argv0 (e.g. "system_*"). Wildcard patterns are *not*
9889    /// normalized as described above.
9890    /// Wildcard patterns are supported only for profiling already-running
9891    /// processes. A config must set no_startup=true if using wildcards, or it will
9892    /// be rejected.
9893    #[prost(string, repeated, tag = "2")]
9894    pub process_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
9895    /// For watermark based triggering or local debugging.
9896    #[prost(uint64, repeated, packed = "false", tag = "4")]
9897    pub pid: ::prost::alloc::vec::Vec<u64>,
9898    /// Only profile target if it was installed by one of the packages given.
9899    /// Special values are:
9900    /// * @system: installed on the system partition
9901    /// * @product: installed on the product partition
9902    /// * @null: sideloaded
9903    /// Supported on Android 12+.
9904    #[prost(string, repeated, tag = "26")]
9905    pub target_installed_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
9906    /// Which heaps to sample, e.g. "libc.malloc". If left empty, only samples
9907    /// "malloc".
9908    ///
9909    /// Introduced in Android 12.
9910    #[prost(string, repeated, tag = "20")]
9911    pub heaps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
9912    /// Which heaps not to sample, e.g. "libc.malloc". This is useful when used in
9913    /// combination with all_heaps;
9914    ///
9915    /// Introduced in Android 12.
9916    #[prost(string, repeated, tag = "27")]
9917    pub exclude_heaps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
9918    #[prost(bool, optional, tag = "23")]
9919    pub stream_allocations: ::core::option::Option<bool>,
9920    /// If given, needs to be the same length as heaps and gives the sampling
9921    /// interval for the respective entry in heaps.
9922    ///
9923    /// Otherwise, sampling_interval_bytes is used.
9924    ///
9925    /// It is recommended to set sampling_interval_bytes to a reasonable default
9926    /// value when using this, as a value of 0 for sampling_interval_bytes will
9927    /// crash the target process before Android 12.
9928    ///
9929    /// Introduced in Android 12.
9930    ///
9931    /// All values must be non-zero or the producer will not start.
9932    #[prost(uint64, repeated, packed = "false", tag = "22")]
9933    pub heap_sampling_intervals: ::prost::alloc::vec::Vec<u64>,
9934    /// Sample all heaps registered by target process. Introduced in Android 12.
9935    #[prost(bool, optional, tag = "21")]
9936    pub all_heaps: ::core::option::Option<bool>,
9937    /// Profile all processes eligible for profiling on the system.
9938    /// See
9939    /// <https://perfetto.dev/docs/data-sources/native-heap-profiler#heapprofd-targets>
9940    /// for which processes are eligible.
9941    ///
9942    /// On unmodified userdebug builds, this will lead to system crashes. Zygote
9943    /// will crash when trying to launch a new process as it will have an
9944    /// unexpected open socket to heapprofd.
9945    ///
9946    /// heapprofd will likely be overloaded by the amount of data for low
9947    /// sampling intervals.
9948    #[prost(bool, optional, tag = "5")]
9949    pub all: ::core::option::Option<bool>,
9950    /// Do not profile processes whose anon RSS + swap < given value.
9951    /// Introduced in Android 11.
9952    #[prost(uint32, optional, tag = "15")]
9953    pub min_anonymous_memory_kb: ::core::option::Option<u32>,
9954    /// Stop profile if heapprofd memory usage goes beyond the given value.
9955    /// Introduced in Android 11.
9956    #[prost(uint32, optional, tag = "16")]
9957    pub max_heapprofd_memory_kb: ::core::option::Option<u32>,
9958    /// Stop profile if heapprofd CPU time since start of this data-source
9959    /// goes beyond given value.
9960    /// Introduced in Android 11.
9961    #[prost(uint64, optional, tag = "17")]
9962    pub max_heapprofd_cpu_secs: ::core::option::Option<u64>,
9963    /// Do not emit function names for mappings starting with this prefix.
9964    /// E.g. /system to not emit symbols for any system libraries.
9965    #[prost(string, repeated, tag = "7")]
9966    pub skip_symbol_prefix: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
9967    /// Dump at a predefined interval.
9968    #[prost(message, optional, tag = "6")]
9969    pub continuous_dump_config: ::core::option::Option<
9970        heapprofd_config::ContinuousDumpConfig,
9971    >,
9972    /// Size of the shared memory buffer between the profiled processes and
9973    /// heapprofd. Defaults to 8 MiB. If larger than 500 MiB, truncated to 500
9974    /// MiB.
9975    ///
9976    /// Needs to be:
9977    /// * at least 8192,
9978    /// * a power of two,
9979    /// * a multiple of 4096.
9980    #[prost(uint64, optional, tag = "8")]
9981    pub shmem_size_bytes: ::core::option::Option<u64>,
9982    /// When the shmem buffer is full, block the client instead of ending the
9983    /// trace. Use with caution as this will significantly slow down the target
9984    /// process.
9985    #[prost(bool, optional, tag = "9")]
9986    pub block_client: ::core::option::Option<bool>,
9987    /// If set, stop the trace session after blocking the client for this
9988    /// timeout. Needs to be larger than 100 us, otherwise no retries are done.
9989    /// Introduced in Android 11.
9990    #[prost(uint32, optional, tag = "14")]
9991    pub block_client_timeout_us: ::core::option::Option<u32>,
9992    /// Do not profile processes from startup, only match already running
9993    /// processes.
9994    ///
9995    /// Can not be set at the same time as no_running.
9996    /// Introduced in Android 11.
9997    #[prost(bool, optional, tag = "10")]
9998    pub no_startup: ::core::option::Option<bool>,
9999    /// Do not profile running processes. Only match processes on startup.
10000    ///
10001    /// Can not be set at the same time as no_startup.
10002    /// Introduced in Android 11.
10003    #[prost(bool, optional, tag = "11")]
10004    pub no_running: ::core::option::Option<bool>,
10005    /// Cause heapprofd to emit a single dump at the end, showing the memory usage
10006    /// at the point in time when the sampled heap usage of the process was at its
10007    /// maximum. This causes ProfilePacket.HeapSample.self_max to be set, and
10008    /// self_allocated and self_freed to not be set.
10009    /// Introduced in Android 11.
10010    #[prost(bool, optional, tag = "13")]
10011    pub dump_at_max: ::core::option::Option<bool>,
10012    /// Escape hatch if the session is being torn down because of a forked child
10013    /// that shares memory space, but is not correctly identified as a vforked
10014    /// child.
10015    /// Introduced in Android 11.
10016    #[prost(bool, optional, tag = "18")]
10017    pub disable_fork_teardown: ::core::option::Option<bool>,
10018    /// We try to automatically detect when a target applicatation vforks but then
10019    /// does a memory allocation (or free). This auto-detection can be disabled
10020    /// with this.
10021    /// Introduced in Android 11.
10022    #[prost(bool, optional, tag = "19")]
10023    pub disable_vfork_detection: ::core::option::Option<bool>,
10024}
10025/// Nested message and enum types in `HeapprofdConfig`.
10026pub mod heapprofd_config {
10027    #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
10028    pub struct ContinuousDumpConfig {
10029        /// ms to wait before first dump.
10030        #[prost(uint32, optional, tag = "5")]
10031        pub dump_phase_ms: ::core::option::Option<u32>,
10032        /// ms to wait between following dumps.
10033        #[prost(uint32, optional, tag = "6")]
10034        pub dump_interval_ms: ::core::option::Option<u32>,
10035    }
10036}
10037/// Config for the "linux.smaps" data source, describes one-shot or periodic
10038/// /proc/pid/smaps collection.
10039///
10040/// A valid config must specify at least one |target_cmdline|. Example:
10041///
10042/// data_sources {
10043///    config {
10044///      name: "linux.smaps"
10045///      process_smaps_config {
10046///        scope {
10047///          target_cmdline: "top"
10048///          target_cmdline: "tmux"
10049///        }
10050///      }
10051///    }
10052/// }
10053#[derive(Clone, PartialEq, ::prost::Message)]
10054pub struct ProcessSmapsConfig {
10055    /// Which fields to record per process.
10056    /// If unset, defaults to {size, rss, anon, swap}, aggregated by path name.
10057    #[prost(message, optional, tag = "1")]
10058    pub smaps_config: ::core::option::Option<SmapsConfig>,
10059    #[prost(message, optional, tag = "2")]
10060    pub scope: ::core::option::Option<process_smaps_config::Scope>,
10061    /// How often to recapture the smaps, including re-evaluating which processes
10062    /// match the |scope|. May be overridden by the implementation (at the time of
10063    /// writing, \[1s, 24hr\] range).
10064    /// If zero or unset, each process is captured only once at start.
10065    #[prost(uint32, optional, tag = "3")]
10066    pub read_period_ms: ::core::option::Option<u32>,
10067}
10068/// Nested message and enum types in `ProcessSmapsConfig`.
10069pub mod process_smaps_config {
10070    /// Which processes to record. At least one field must be set.
10071    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
10072    pub struct Scope {
10073        /// Command line allowlist, matched against the /proc/<pid>/cmdline (not the
10074        /// comm string).
10075        ///
10076        /// This field can specify a single wildcard (*), and the profiler will
10077        /// attempt to match it in two possible ways:
10078        /// * if the pattern starts with a '/', then it is matched against the first
10079        ///    segment of the cmdline (i.e. argv0). For example "/bin/e*" would match
10080        ///    "/bin/echo".
10081        /// * otherwise the pattern is matched against the part of argv0
10082        ///    corresponding to the binary name (this is unrelated to /proc/pid/exe).
10083        ///    For example "echo" would match "/bin/echo".
10084        ///
10085        /// Implementation note: at most 511 characters of cmdline are considered.
10086        #[prost(string, repeated, tag = "1")]
10087        pub target_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
10088    }
10089}
10090/// Describes what to record from /proc/pid/smaps.
10091#[derive(Clone, PartialEq, ::prost::Message)]
10092pub struct SmapsConfig {
10093    /// Set of fields to collect.
10094    /// If unset, defaults to: size, rss, anonymous, swap.
10095    #[prost(
10096        enumeration = "smaps_config::VmaField",
10097        repeated,
10098        packed = "false",
10099        tag = "1"
10100    )]
10101    pub vma_fields: ::prost::alloc::vec::Vec<i32>,
10102    /// If false, mappings are aggregated by their path name.
10103    /// If true, each mapping is serialised separately.
10104    #[prost(bool, optional, tag = "2")]
10105    pub unaggregated: ::core::option::Option<bool>,
10106    /// Optional ordered list of redaction rules for the name of the mapping.
10107    /// Note that all mappings will still be emitted, these rules only affect the
10108    /// emitted name.
10109    /// If unset, all names are written as is.
10110    /// If set, the first matching rule decides on the action.
10111    /// If no rules match, the name is written as is.
10112    #[prost(message, repeated, tag = "3")]
10113    pub name_redaction_rules: ::prost::alloc::vec::Vec<RedactionRule>,
10114}
10115/// Nested message and enum types in `SmapsConfig`.
10116pub mod smaps_config {
10117    #[derive(
10118        Clone,
10119        Copy,
10120        Debug,
10121        PartialEq,
10122        Eq,
10123        Hash,
10124        PartialOrd,
10125        Ord,
10126        ::prost::Enumeration
10127    )]
10128    #[repr(i32)]
10129    pub enum VmaField {
10130        Unknown = 0,
10131        Size = 1,
10132        Rss = 2,
10133        Anonymous = 3,
10134        Swap = 4,
10135        SharedClean = 5,
10136        SharedDirty = 6,
10137        PrivateClean = 7,
10138        PrivateDirty = 8,
10139        Locked = 9,
10140        Pss = 10,
10141        PssDirty = 11,
10142        SwapPss = 12,
10143    }
10144    impl VmaField {
10145        /// String value of the enum field names used in the ProtoBuf definition.
10146        ///
10147        /// The values are not transformed in any way and thus are considered stable
10148        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
10149        pub fn as_str_name(&self) -> &'static str {
10150            match self {
10151                Self::Unknown => "VMA_FIELD_UNKNOWN",
10152                Self::Size => "VMA_FIELD_SIZE",
10153                Self::Rss => "VMA_FIELD_RSS",
10154                Self::Anonymous => "VMA_FIELD_ANONYMOUS",
10155                Self::Swap => "VMA_FIELD_SWAP",
10156                Self::SharedClean => "VMA_FIELD_SHARED_CLEAN",
10157                Self::SharedDirty => "VMA_FIELD_SHARED_DIRTY",
10158                Self::PrivateClean => "VMA_FIELD_PRIVATE_CLEAN",
10159                Self::PrivateDirty => "VMA_FIELD_PRIVATE_DIRTY",
10160                Self::Locked => "VMA_FIELD_LOCKED",
10161                Self::Pss => "VMA_FIELD_PSS",
10162                Self::PssDirty => "VMA_FIELD_PSS_DIRTY",
10163                Self::SwapPss => "VMA_FIELD_SWAP_PSS",
10164            }
10165        }
10166        /// Creates an enum from field names used in the ProtoBuf definition.
10167        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
10168            match value {
10169                "VMA_FIELD_UNKNOWN" => Some(Self::Unknown),
10170                "VMA_FIELD_SIZE" => Some(Self::Size),
10171                "VMA_FIELD_RSS" => Some(Self::Rss),
10172                "VMA_FIELD_ANONYMOUS" => Some(Self::Anonymous),
10173                "VMA_FIELD_SWAP" => Some(Self::Swap),
10174                "VMA_FIELD_SHARED_CLEAN" => Some(Self::SharedClean),
10175                "VMA_FIELD_SHARED_DIRTY" => Some(Self::SharedDirty),
10176                "VMA_FIELD_PRIVATE_CLEAN" => Some(Self::PrivateClean),
10177                "VMA_FIELD_PRIVATE_DIRTY" => Some(Self::PrivateDirty),
10178                "VMA_FIELD_LOCKED" => Some(Self::Locked),
10179                "VMA_FIELD_PSS" => Some(Self::Pss),
10180                "VMA_FIELD_PSS_DIRTY" => Some(Self::PssDirty),
10181                "VMA_FIELD_SWAP_PSS" => Some(Self::SwapPss),
10182                _ => None,
10183            }
10184        }
10185    }
10186}
10187#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
10188pub struct RedactionRule {
10189    /// The pattern to match against.
10190    #[prost(string, optional, tag = "1")]
10191    pub pattern: ::core::option::Option<::prost::alloc::string::String>,
10192    #[prost(enumeration = "redaction_rule::MatchMode", optional, tag = "2")]
10193    pub match_mode: ::core::option::Option<i32>,
10194    /// If the pattern matches, keep the entire name. In other words, do not
10195    /// redact. This option exists since the rules are evaluated in order, so a
10196    /// more specific allow rule with keep_full can match before a more general
10197    /// deny rule. This option is mutually exclusive with |keep_file_extension| and
10198    /// |keep_path_elements|.
10199    #[prost(bool, optional, tag = "3")]
10200    pub keep_full: ::core::option::Option<bool>,
10201    /// If the pattern matches, replace the name with this string (defaulting to
10202    /// <pf_redacted> if unset). The final emitted name might be further augmented
10203    /// by the options below keeping parts of the original name.
10204    #[prost(string, optional, tag = "4")]
10205    pub replacement_name: ::core::option::Option<::prost::alloc::string::String>,
10206    /// If the pattern matches, keep the file extension, if any.
10207    /// Can be combined with |keep_path_elements|.
10208    #[prost(bool, optional, tag = "5")]
10209    pub keep_file_extension: ::core::option::Option<bool>,
10210    /// If the pattern matches, keep the first N path elements (as separated by
10211    /// '/'). If the name is not a path, this option does nothing. Can be combined
10212    /// with |keep_file_extension|.
10213    #[prost(uint32, optional, tag = "6")]
10214    pub keep_path_elements: ::core::option::Option<u32>,
10215}
10216/// Nested message and enum types in `RedactionRule`.
10217pub mod redaction_rule {
10218    /// How to match |pattern| against the name of the mapping.
10219    /// Note for future extensions: unrecognised enums are treated as always
10220    /// matching.
10221    #[derive(
10222        Clone,
10223        Copy,
10224        Debug,
10225        PartialEq,
10226        Eq,
10227        Hash,
10228        PartialOrd,
10229        Ord,
10230        ::prost::Enumeration
10231    )]
10232    #[repr(i32)]
10233    pub enum MatchMode {
10234        Unknown = 0,
10235        /// The pattern matches if it is a prefix of the mapping name.
10236        Prefix = 1,
10237        /// The pattern is matched against the mapping name as a pathname glob
10238        /// (see "man 7 glob" and FNM_PATHNAME in "man 3 fnmatch").
10239        /// The key distinction is that path separators in the name are *not* matched
10240        /// against wildcards. So a pattern of the form "/usr/*/llvm" would match
10241        /// "/usr/lib/llvm" but not "/usr/lib/nested/llvm".
10242        /// Note: any "(deleted)" suffix is excluded before matching.
10243        GlobPath = 2,
10244        /// The pattern is matched against the mapping name without special-casing
10245        /// path separators. So a pattern of the form "/usr/*/llvm" would match
10246        /// both "/usr/lib/llvm" and "/usr/lib/nested/llvm".
10247        /// Note: any "(deleted)" suffix is excluded before matching.
10248        GlobString = 3,
10249    }
10250    impl MatchMode {
10251        /// String value of the enum field names used in the ProtoBuf definition.
10252        ///
10253        /// The values are not transformed in any way and thus are considered stable
10254        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
10255        pub fn as_str_name(&self) -> &'static str {
10256            match self {
10257                Self::Unknown => "MATCH_MODE_UNKNOWN",
10258                Self::Prefix => "MATCH_MODE_PREFIX",
10259                Self::GlobPath => "MATCH_MODE_GLOB_PATH",
10260                Self::GlobString => "MATCH_MODE_GLOB_STRING",
10261            }
10262        }
10263        /// Creates an enum from field names used in the ProtoBuf definition.
10264        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
10265            match value {
10266                "MATCH_MODE_UNKNOWN" => Some(Self::Unknown),
10267                "MATCH_MODE_PREFIX" => Some(Self::Prefix),
10268                "MATCH_MODE_GLOB_PATH" => Some(Self::GlobPath),
10269                "MATCH_MODE_GLOB_STRING" => Some(Self::GlobString),
10270                _ => None,
10271            }
10272        }
10273    }
10274}
10275/// Configuration for managed app heap graph snapshots.
10276#[derive(Clone, PartialEq, ::prost::Message)]
10277pub struct JavaHprofConfig {
10278    /// Command line allowlist, matched against the /proc/<pid>/cmdline (not the
10279    /// comm string). The semantics of this field were changed since its original
10280    /// introduction.
10281    ///
10282    /// On Android T+ (13+), this field can specify a single wildcard (*), and
10283    /// the profiler will attempt to match it in two possible ways:
10284    /// * if the pattern starts with a '/', then it is matched against the first
10285    ///    segment of the cmdline (i.e. argv0). For example "/bin/e*" would match
10286    ///    "/bin/echo".
10287    /// * otherwise the pattern is matched against the part of argv0
10288    ///    corresponding to the binary name (this is unrelated to /proc/pid/exe).
10289    ///    For example "echo" would match "/bin/echo".
10290    ///
10291    /// On Android S (12) and below, both this pattern and /proc/pid/cmdline get
10292    /// normalized prior to an exact string comparison. Normalization is as
10293    /// follows: (1) trim everything beyond the first null or "@" byte; (2) if
10294    /// the string contains forward slashes, trim everything up to and including
10295    /// the last one.
10296    ///
10297    /// Implementation note: in either case, at most 511 characters of cmdline
10298    /// are considered.
10299    #[prost(string, repeated, tag = "1")]
10300    pub process_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
10301    /// For watermark based triggering or local debugging.
10302    #[prost(uint64, repeated, packed = "false", tag = "2")]
10303    pub pid: ::prost::alloc::vec::Vec<u64>,
10304    /// Only profile target if it was installed by one of the packages given.
10305    /// Special values are:
10306    /// * @system: installed on the system partition
10307    /// * @product: installed on the product partition
10308    /// * @null: sideloaded
10309    /// Supported on Android 12+.
10310    #[prost(string, repeated, tag = "7")]
10311    pub target_installed_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
10312    /// Dump at a predefined interval.
10313    #[prost(message, optional, tag = "3")]
10314    pub continuous_dump_config: ::core::option::Option<
10315        java_hprof_config::ContinuousDumpConfig,
10316    >,
10317    /// Do not profile processes whose anon RSS + swap < given value.
10318    #[prost(uint32, optional, tag = "4")]
10319    pub min_anonymous_memory_kb: ::core::option::Option<u32>,
10320    /// Do not profile processes whose Java heap size < given value.
10321    #[prost(uint32, optional, tag = "9")]
10322    pub min_java_heap_size_kb: ::core::option::Option<u32>,
10323    /// Include the process' /proc/self/smaps.
10324    /// This only shows maps that:
10325    /// * start with /system
10326    /// * start with /vendor
10327    /// * start with /data/app
10328    /// * contain "extracted in memory from Y", where Y matches any of the above
10329    ///
10330    /// Superseded by |smaps_config| in perfetto v58+.
10331    #[prost(bool, optional, tag = "5")]
10332    pub dump_smaps: ::core::option::Option<bool>,
10333    /// If set, include /proc/self/smaps memory mappings.
10334    ///
10335    /// Added in perfetto v58.
10336    #[prost(message, optional, tag = "8")]
10337    pub smaps_config: ::core::option::Option<SmapsConfig>,
10338    /// Exclude objects of the following types from the profile. This can be
10339    /// useful if lots of uninteresting objects, e.g. "sun.misc.Cleaner".
10340    #[prost(string, repeated, tag = "6")]
10341    pub ignored_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
10342    /// Dump the callsite of the thread triggering the OutOfMemoryError.
10343    /// Only applicable to OutOfMemoryError heap dumps
10344    #[prost(bool, optional, tag = "10")]
10345    pub dump_oome_callstack: ::core::option::Option<bool>,
10346}
10347/// Nested message and enum types in `JavaHprofConfig`.
10348pub mod java_hprof_config {
10349    /// If dump_interval_ms != 0, the following configuration is used.
10350    #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
10351    pub struct ContinuousDumpConfig {
10352        /// ms to wait before first continuous dump.
10353        /// A dump is always created at the beginning of the trace.
10354        #[prost(uint32, optional, tag = "1")]
10355        pub dump_phase_ms: ::core::option::Option<u32>,
10356        /// ms to wait between following dumps.
10357        #[prost(uint32, optional, tag = "2")]
10358        pub dump_interval_ms: ::core::option::Option<u32>,
10359        /// If true, scans all the processes to find `process_cmdline` and filter by
10360        /// `min_anonymous_memory_kb` only at data source start. Default on Android
10361        /// S-.
10362        ///
10363        /// If false, rescans all the processes to find on every dump. Default on
10364        /// Android T+.
10365        #[prost(bool, optional, tag = "3")]
10366        pub scan_pids_only_on_start: ::core::option::Option<bool>,
10367    }
10368}
10369#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
10370pub struct PerfEvents {}
10371/// Nested message and enum types in `PerfEvents`.
10372pub mod perf_events {
10373    /// The primary event to count. If recording multiple events, this
10374    /// counter is the "group leader".
10375    /// Commented from the perspective of its use in |PerfEventConfig|.
10376    /// Next id: 13
10377    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
10378    pub struct Timebase {
10379        /// Optional modifiers for the event. Modelled after the perftool's
10380        /// <https://man7.org/linux/man-pages/man1/perf-list.1.html#EVENT_MODIFIERS>
10381        /// Currently supported: count scoping such as :u, :k, :uk, ...
10382        /// Modifiers can differ between the timebase and followers.
10383        #[prost(enumeration = "EventModifier", repeated, packed = "false", tag = "12")]
10384        pub modifiers: ::prost::alloc::vec::Vec<i32>,
10385        /// If set, samples will be timestamped with the given clock.
10386        /// If unset, the clock is chosen by the implementation.
10387        /// For software events, prefer PERF_CLOCK_BOOTTIME. However it cannot be
10388        /// used for hardware events (due to interrupt safety), for which the
10389        /// recommendation is to use one of the monotonic clocks.
10390        #[prost(enumeration = "PerfClock", optional, tag = "11")]
10391        pub timestamp_clock: ::core::option::Option<i32>,
10392        /// Optional arbitrary name for the event, to identify it in the parsed
10393        /// trace. Does *not* affect the profiling itself. If unset, the trace
10394        /// parser will choose a suitable name.
10395        #[prost(string, optional, tag = "10")]
10396        pub name: ::core::option::Option<::prost::alloc::string::String>,
10397        /// How often to snapshot the counter, along with any follower events and
10398        /// any additional sampled data such as callstacks.
10399        ///
10400        /// This choice also controls how the readings are taken:
10401        /// * With |frequency| or |period|, samples are taken by the kernel
10402        ///    into a ring buffer. Analogous to `perf record`.
10403        /// * With |poll_period_ms|, the userspace periodically snapshots
10404        ///    the counters using the read syscall. Analogous to `perf stat -I`.
10405        /// Prefer the sampling options unless you're recording PMUs whose
10406        /// perf drivers only support the reading mode.
10407        ///
10408        /// If unset, an implementation-defined sampling default is used.
10409        #[prost(oneof = "timebase::Interval", tags = "2, 1, 6")]
10410        pub interval: ::core::option::Option<timebase::Interval>,
10411        /// Counting event to use as the timebase.
10412        /// If unset, implies the CPU timer (SW_CPU_CLOCK) as the event,
10413        /// which is what you usually want.
10414        #[prost(oneof = "timebase::Event", tags = "4, 3, 5")]
10415        pub event: ::core::option::Option<timebase::Event>,
10416    }
10417    /// Nested message and enum types in `Timebase`.
10418    pub mod timebase {
10419        /// How often to snapshot the counter, along with any follower events and
10420        /// any additional sampled data such as callstacks.
10421        ///
10422        /// This choice also controls how the readings are taken:
10423        /// * With |frequency| or |period|, samples are taken by the kernel
10424        ///    into a ring buffer. Analogous to `perf record`.
10425        /// * With |poll_period_ms|, the userspace periodically snapshots
10426        ///    the counters using the read syscall. Analogous to `perf stat -I`.
10427        /// Prefer the sampling options unless you're recording PMUs whose
10428        /// perf drivers only support the reading mode.
10429        ///
10430        /// If unset, an implementation-defined sampling default is used.
10431        #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
10432        pub enum Interval {
10433            /// Per-cpu sampling frequency in Hz, as requested from the kernel. Not the
10434            /// same as 1/period.
10435            /// Details: the actual sampling will still be based on a period, but the
10436            /// kernel will dynamically adjust it based on the observed event rate, to
10437            /// approximate this frequency. Works best with steady-rate events like
10438            /// timers.
10439            /// Not guaranteed to be honored as the kernel can throttle the sampling
10440            /// rate if it's too high.
10441            #[prost(uint64, tag = "2")]
10442            Frequency(u64),
10443            /// Per-cpu sampling will occur every |period| counts of |event|.
10444            /// Prefer |frequency| by default, as it's easier to oversample with a
10445            /// fixed period.
10446            /// Not guaranteed to be honored as the kernel can throttle the sampling
10447            /// rate if it's too high.
10448            #[prost(uint64, tag = "1")]
10449            Period(u64),
10450            /// Per-cpu values are read by the userspace every interval. If using this
10451            /// mode, only follower events are supported. Options such as
10452            /// |PerfEventConfig.CallstackSampling| are incompatible.
10453            /// The period can't be guaranteed to be exact since the readings are taken
10454            /// by userspace.
10455            #[prost(uint32, tag = "6")]
10456            PollPeriodMs(u32),
10457        }
10458        /// Counting event to use as the timebase.
10459        /// If unset, implies the CPU timer (SW_CPU_CLOCK) as the event,
10460        /// which is what you usually want.
10461        #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
10462        pub enum Event {
10463            #[prost(enumeration = "super::Counter", tag = "4")]
10464            Counter(i32),
10465            #[prost(message, tag = "3")]
10466            Tracepoint(super::Tracepoint),
10467            #[prost(message, tag = "5")]
10468            RawEvent(super::RawEvent),
10469        }
10470    }
10471    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
10472    pub struct Tracepoint {
10473        /// Group and name for the tracepoint, acceptable forms:
10474        /// * "sched/sched_switch"
10475        /// * "sched:sched_switch"
10476        #[prost(string, optional, tag = "1")]
10477        pub name: ::core::option::Option<::prost::alloc::string::String>,
10478        /// Optional field-level filter for the tracepoint. Only events matching this
10479        /// filter will be counted (and therefore contribute to the sampling period).
10480        /// Example: "prev_pid >= 42 && next_pid == 0".
10481        /// For full syntax, see kernel documentation on "Event filtering":
10482        /// <https://www.kernel.org/doc/Documentation/trace/events.txt>
10483        #[prost(string, optional, tag = "2")]
10484        pub filter: ::core::option::Option<::prost::alloc::string::String>,
10485    }
10486    /// Syscall-level description of the event, propagated to the perf_event_attr
10487    /// struct. Primarily for local use-cases, since the event availability and
10488    /// encoding is hardware-specific.
10489    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
10490    pub struct RawEvent {
10491        /// Either |type| or |pmu_name| can be set.
10492        #[prost(uint32, optional, tag = "1")]
10493        pub r#type: ::core::option::Option<u32>,
10494        #[prost(uint64, optional, tag = "2")]
10495        pub config: ::core::option::Option<u64>,
10496        #[prost(uint64, optional, tag = "3")]
10497        pub config1: ::core::option::Option<u64>,
10498        #[prost(uint64, optional, tag = "4")]
10499        pub config2: ::core::option::Option<u64>,
10500        /// The name of a dynamic PMU under /sys/bus/event_source/devices
10501        /// (e.g. "armv8_pmuv3").
10502        /// If set, leave |type| unset.
10503        /// Android: the relevant sysfs paths are not allowlisted by default, so
10504        /// this option will require a rooted device with selinux disabled.
10505        #[prost(string, optional, tag = "5")]
10506        pub pmu_name: ::core::option::Option<::prost::alloc::string::String>,
10507    }
10508    /// Builtin counter names from the uapi header. Commented with their perf tool
10509    /// aliases.
10510    /// TODO(rsavitski): consider generating enums for cache events (should be
10511    /// finite), and generally make this list as extensive as possible. Excluding
10512    /// things like dynamic PMUs since those don't fit into a static enum.
10513    /// Next id: 21
10514    #[derive(
10515        Clone,
10516        Copy,
10517        Debug,
10518        PartialEq,
10519        Eq,
10520        Hash,
10521        PartialOrd,
10522        Ord,
10523        ::prost::Enumeration
10524    )]
10525    #[repr(i32)]
10526    pub enum Counter {
10527        UnknownCounter = 0,
10528        /// cpu-clock
10529        SwCpuClock = 1,
10530        /// page-faults, faults
10531        SwPageFaults = 2,
10532        /// task-clock
10533        SwTaskClock = 3,
10534        /// context-switches, cs
10535        SwContextSwitches = 4,
10536        /// cpu-migrations, migrations
10537        SwCpuMigrations = 5,
10538        /// minor-faults
10539        SwPageFaultsMin = 6,
10540        /// major-faults
10541        SwPageFaultsMaj = 7,
10542        /// alignment-faults
10543        SwAlignmentFaults = 8,
10544        /// emulation-faults
10545        SwEmulationFaults = 9,
10546        /// dummy
10547        SwDummy = 20,
10548        /// cpu-cycles, cycles
10549        HwCpuCycles = 10,
10550        /// instructions
10551        HwInstructions = 11,
10552        /// cache-references
10553        HwCacheReferences = 12,
10554        /// cache-misses
10555        HwCacheMisses = 13,
10556        /// branch-instructions, branches
10557        HwBranchInstructions = 14,
10558        /// branch-misses
10559        HwBranchMisses = 15,
10560        /// bus-cycles
10561        HwBusCycles = 16,
10562        /// stalled-cycles-frontend, idle-cycles-frontend
10563        HwStalledCyclesFrontend = 17,
10564        /// stalled-cycles-backend, idle-cycles-backend
10565        HwStalledCyclesBackend = 18,
10566        /// ref-cycles
10567        HwRefCpuCycles = 19,
10568    }
10569    impl Counter {
10570        /// String value of the enum field names used in the ProtoBuf definition.
10571        ///
10572        /// The values are not transformed in any way and thus are considered stable
10573        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
10574        pub fn as_str_name(&self) -> &'static str {
10575            match self {
10576                Self::UnknownCounter => "UNKNOWN_COUNTER",
10577                Self::SwCpuClock => "SW_CPU_CLOCK",
10578                Self::SwPageFaults => "SW_PAGE_FAULTS",
10579                Self::SwTaskClock => "SW_TASK_CLOCK",
10580                Self::SwContextSwitches => "SW_CONTEXT_SWITCHES",
10581                Self::SwCpuMigrations => "SW_CPU_MIGRATIONS",
10582                Self::SwPageFaultsMin => "SW_PAGE_FAULTS_MIN",
10583                Self::SwPageFaultsMaj => "SW_PAGE_FAULTS_MAJ",
10584                Self::SwAlignmentFaults => "SW_ALIGNMENT_FAULTS",
10585                Self::SwEmulationFaults => "SW_EMULATION_FAULTS",
10586                Self::SwDummy => "SW_DUMMY",
10587                Self::HwCpuCycles => "HW_CPU_CYCLES",
10588                Self::HwInstructions => "HW_INSTRUCTIONS",
10589                Self::HwCacheReferences => "HW_CACHE_REFERENCES",
10590                Self::HwCacheMisses => "HW_CACHE_MISSES",
10591                Self::HwBranchInstructions => "HW_BRANCH_INSTRUCTIONS",
10592                Self::HwBranchMisses => "HW_BRANCH_MISSES",
10593                Self::HwBusCycles => "HW_BUS_CYCLES",
10594                Self::HwStalledCyclesFrontend => "HW_STALLED_CYCLES_FRONTEND",
10595                Self::HwStalledCyclesBackend => "HW_STALLED_CYCLES_BACKEND",
10596                Self::HwRefCpuCycles => "HW_REF_CPU_CYCLES",
10597            }
10598        }
10599        /// Creates an enum from field names used in the ProtoBuf definition.
10600        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
10601            match value {
10602                "UNKNOWN_COUNTER" => Some(Self::UnknownCounter),
10603                "SW_CPU_CLOCK" => Some(Self::SwCpuClock),
10604                "SW_PAGE_FAULTS" => Some(Self::SwPageFaults),
10605                "SW_TASK_CLOCK" => Some(Self::SwTaskClock),
10606                "SW_CONTEXT_SWITCHES" => Some(Self::SwContextSwitches),
10607                "SW_CPU_MIGRATIONS" => Some(Self::SwCpuMigrations),
10608                "SW_PAGE_FAULTS_MIN" => Some(Self::SwPageFaultsMin),
10609                "SW_PAGE_FAULTS_MAJ" => Some(Self::SwPageFaultsMaj),
10610                "SW_ALIGNMENT_FAULTS" => Some(Self::SwAlignmentFaults),
10611                "SW_EMULATION_FAULTS" => Some(Self::SwEmulationFaults),
10612                "SW_DUMMY" => Some(Self::SwDummy),
10613                "HW_CPU_CYCLES" => Some(Self::HwCpuCycles),
10614                "HW_INSTRUCTIONS" => Some(Self::HwInstructions),
10615                "HW_CACHE_REFERENCES" => Some(Self::HwCacheReferences),
10616                "HW_CACHE_MISSES" => Some(Self::HwCacheMisses),
10617                "HW_BRANCH_INSTRUCTIONS" => Some(Self::HwBranchInstructions),
10618                "HW_BRANCH_MISSES" => Some(Self::HwBranchMisses),
10619                "HW_BUS_CYCLES" => Some(Self::HwBusCycles),
10620                "HW_STALLED_CYCLES_FRONTEND" => Some(Self::HwStalledCyclesFrontend),
10621                "HW_STALLED_CYCLES_BACKEND" => Some(Self::HwStalledCyclesBackend),
10622                "HW_REF_CPU_CYCLES" => Some(Self::HwRefCpuCycles),
10623                _ => None,
10624            }
10625        }
10626    }
10627    /// Subset of clocks that is supported by perf timestamping.
10628    /// CLOCK_TAI is excluded since it's not expected to be used in practice, but
10629    /// would require additions to the trace clock synchronisation logic.
10630    #[derive(
10631        Clone,
10632        Copy,
10633        Debug,
10634        PartialEq,
10635        Eq,
10636        Hash,
10637        PartialOrd,
10638        Ord,
10639        ::prost::Enumeration
10640    )]
10641    #[repr(i32)]
10642    pub enum PerfClock {
10643        UnknownPerfClock = 0,
10644        Realtime = 1,
10645        Monotonic = 2,
10646        MonotonicRaw = 3,
10647        Boottime = 4,
10648    }
10649    impl PerfClock {
10650        /// String value of the enum field names used in the ProtoBuf definition.
10651        ///
10652        /// The values are not transformed in any way and thus are considered stable
10653        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
10654        pub fn as_str_name(&self) -> &'static str {
10655            match self {
10656                Self::UnknownPerfClock => "UNKNOWN_PERF_CLOCK",
10657                Self::Realtime => "PERF_CLOCK_REALTIME",
10658                Self::Monotonic => "PERF_CLOCK_MONOTONIC",
10659                Self::MonotonicRaw => "PERF_CLOCK_MONOTONIC_RAW",
10660                Self::Boottime => "PERF_CLOCK_BOOTTIME",
10661            }
10662        }
10663        /// Creates an enum from field names used in the ProtoBuf definition.
10664        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
10665            match value {
10666                "UNKNOWN_PERF_CLOCK" => Some(Self::UnknownPerfClock),
10667                "PERF_CLOCK_REALTIME" => Some(Self::Realtime),
10668                "PERF_CLOCK_MONOTONIC" => Some(Self::Monotonic),
10669                "PERF_CLOCK_MONOTONIC_RAW" => Some(Self::MonotonicRaw),
10670                "PERF_CLOCK_BOOTTIME" => Some(Self::Boottime),
10671                _ => None,
10672            }
10673        }
10674    }
10675    #[derive(
10676        Clone,
10677        Copy,
10678        Debug,
10679        PartialEq,
10680        Eq,
10681        Hash,
10682        PartialOrd,
10683        Ord,
10684        ::prost::Enumeration
10685    )]
10686    #[repr(i32)]
10687    pub enum EventModifier {
10688        UnknownEventModifier = 0,
10689        /// count only while in userspace
10690        CountUserspace = 1,
10691        /// count only while in kernel
10692        CountKernel = 2,
10693        /// count only while in hypervisor
10694        CountHypervisor = 3,
10695    }
10696    impl EventModifier {
10697        /// String value of the enum field names used in the ProtoBuf definition.
10698        ///
10699        /// The values are not transformed in any way and thus are considered stable
10700        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
10701        pub fn as_str_name(&self) -> &'static str {
10702            match self {
10703                Self::UnknownEventModifier => "UNKNOWN_EVENT_MODIFIER",
10704                Self::CountUserspace => "EVENT_MODIFIER_COUNT_USERSPACE",
10705                Self::CountKernel => "EVENT_MODIFIER_COUNT_KERNEL",
10706                Self::CountHypervisor => "EVENT_MODIFIER_COUNT_HYPERVISOR",
10707            }
10708        }
10709        /// Creates an enum from field names used in the ProtoBuf definition.
10710        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
10711            match value {
10712                "UNKNOWN_EVENT_MODIFIER" => Some(Self::UnknownEventModifier),
10713                "EVENT_MODIFIER_COUNT_USERSPACE" => Some(Self::CountUserspace),
10714                "EVENT_MODIFIER_COUNT_KERNEL" => Some(Self::CountKernel),
10715                "EVENT_MODIFIER_COUNT_HYPERVISOR" => Some(Self::CountHypervisor),
10716                _ => None,
10717            }
10718        }
10719    }
10720}
10721/// Additional events associated with a leader.
10722/// See <https://man7.org/linux/man-pages/man1/perf-list.1.html#LEADER_SAMPLING>
10723#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
10724pub struct FollowerEvent {
10725    /// Modifiers can differ between the timebase and followers.
10726    #[prost(
10727        enumeration = "perf_events::EventModifier",
10728        repeated,
10729        packed = "false",
10730        tag = "5"
10731    )]
10732    pub modifiers: ::prost::alloc::vec::Vec<i32>,
10733    /// Optional arbitrary name for the event, to identify it in the parsed
10734    /// trace. Does *not* affect the profiling itself. If unset, the trace
10735    /// parser will choose a suitable name.
10736    #[prost(string, optional, tag = "4")]
10737    pub name: ::core::option::Option<::prost::alloc::string::String>,
10738    #[prost(oneof = "follower_event::Event", tags = "1, 2, 3")]
10739    pub event: ::core::option::Option<follower_event::Event>,
10740}
10741/// Nested message and enum types in `FollowerEvent`.
10742pub mod follower_event {
10743    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
10744    pub enum Event {
10745        #[prost(enumeration = "super::perf_events::Counter", tag = "1")]
10746        Counter(i32),
10747        #[prost(message, tag = "2")]
10748        Tracepoint(super::perf_events::Tracepoint),
10749        #[prost(message, tag = "3")]
10750        RawEvent(super::perf_events::RawEvent),
10751    }
10752}
10753/// Configuration for the traced_perf profiler.
10754///
10755/// Example config for basic cpu profiling:
10756///    perf_event_config {
10757///      timebase {
10758///        frequency: 80
10759///      }
10760///      callstack_sampling {
10761///        scope {
10762///          target_cmdline: "surfaceflinger"
10763///          target_cmdline: "system_server"
10764///        }
10765///        kernel_frames: true
10766///      }
10767///    }
10768///
10769/// Next id: 23
10770#[derive(Clone, PartialEq, ::prost::Message)]
10771pub struct PerfEventConfig {
10772    /// What event to sample on, and how often.
10773    /// Defined in common/perf_events.proto.
10774    #[prost(message, optional, tag = "15")]
10775    pub timebase: ::core::option::Option<perf_events::Timebase>,
10776    /// Other events associated with the leader described in the timebase.
10777    #[prost(message, repeated, tag = "19")]
10778    pub followers: ::prost::alloc::vec::Vec<FollowerEvent>,
10779    /// If set, the profiler will sample userspace processes' callstacks at the
10780    /// interval specified by the |timebase|.
10781    /// If unset, the profiler will record only the event counts.
10782    #[prost(message, optional, tag = "16")]
10783    pub callstack_sampling: ::core::option::Option<perf_event_config::CallstackSampling>,
10784    /// List of cpu indices for counting. If empty, the default is all cpus.
10785    ///
10786    /// Note: this is not inside |callstack_sampling.scope| as it also applies to
10787    /// counter-only traces. A future change will likely reorganise the options,
10788    /// but this field will continue to be supported.
10789    ///
10790    /// Available since: perfetto v50.
10791    #[prost(uint32, repeated, packed = "false", tag = "20")]
10792    pub target_cpu: ::prost::alloc::vec::Vec<u32>,
10793    /// Allow failure of perf_event_open
10794    #[prost(bool, optional, tag = "21")]
10795    pub ignore_open_failure: ::core::option::Option<bool>,
10796    /// If not empty, consider only CPUs whose CPUID matches one of these values.
10797    #[prost(string, repeated, tag = "22")]
10798    pub cpuid: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
10799    /// How often the per-cpu ring buffers are read by the producer.
10800    /// If unset, an implementation-defined default is used.
10801    #[prost(uint32, optional, tag = "8")]
10802    pub ring_buffer_read_period_ms: ::core::option::Option<u32>,
10803    /// Size (in 4k pages) of each per-cpu ring buffer that is filled by the
10804    /// kernel. If set, must be a power of two.
10805    /// If unset, an implementation-defined default is used.
10806    #[prost(uint32, optional, tag = "3")]
10807    pub ring_buffer_pages: ::core::option::Option<u32>,
10808    /// Drop samples if the heap memory held by the samples in the unwinder queue
10809    /// is above the given limit. This counts the memory across all concurrent data
10810    /// sources (not just this one's), and there is no fairness guarantee - the
10811    /// whole quota might be used up by a concurrent source.
10812    #[prost(uint64, optional, tag = "17")]
10813    pub max_enqueued_footprint_kb: ::core::option::Option<u64>,
10814    /// Stop the data source if traced_perf's combined {RssAnon + Swap} memory
10815    /// footprint exceeds this value.
10816    #[prost(uint32, optional, tag = "13")]
10817    pub max_daemon_memory_kb: ::core::option::Option<u32>,
10818    /// Timeout for the remote /proc/<pid>/{maps,mem} file descriptors for a
10819    /// sampled process. This is primarily for Android, where this lookup is
10820    /// asynchronous. As long as the producer is waiting, the associated samples
10821    /// will be kept enqueued (putting pressure on the capacity of the shared
10822    /// unwinding queue). Once a lookup for a process expires, all associated
10823    /// samples are discarded. However, if the lookup still succeeds after the
10824    /// timeout, future samples will be handled normally.
10825    /// If unset, an implementation-defined default is used.
10826    #[prost(uint32, optional, tag = "9")]
10827    pub remote_descriptor_timeout_ms: ::core::option::Option<u32>,
10828    /// Optional period for clearing state cached by the userspace unwinder. This
10829    /// is a heavy operation that is only necessary for traces that target a wide
10830    /// set of processes, and require the memory footprint to be reset
10831    /// periodically. To effectively disable the cache clearing, set to a value
10832    /// greater than your trace duration.
10833    ///
10834    /// Relevant only if |callstack_sampling.user_frames| is set to UNWIND_DWARF.
10835    ///
10836    /// If zero or unset:
10837    /// * before perfetto v52: no cache clearing.
10838    /// * perfetto v52+: implementation chooses an infrequent default.
10839    #[prost(uint32, optional, tag = "10")]
10840    pub unwind_state_clear_period_ms: ::core::option::Option<u32>,
10841    /// If set, only profile target if it was installed by a package with one of
10842    /// these names. Special values:
10843    /// * "@system": installed on the system partition
10844    /// * "@product": installed on the product partition
10845    /// * "@null": sideloaded
10846    /// Supported on Android 12+.
10847    #[prost(string, repeated, tag = "18")]
10848    pub target_installed_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
10849    /// Note: legacy configs had to set |all_cpus| to true to pass parsing.
10850    /// We rely on this to detect such configs.
10851    #[prost(bool, optional, tag = "1")]
10852    pub all_cpus: ::core::option::Option<bool>,
10853    #[prost(uint32, optional, tag = "2")]
10854    pub sampling_frequency: ::core::option::Option<u32>,
10855    #[prost(bool, optional, tag = "12")]
10856    pub kernel_frames: ::core::option::Option<bool>,
10857    #[prost(int32, repeated, packed = "false", tag = "4")]
10858    pub target_pid: ::prost::alloc::vec::Vec<i32>,
10859    #[prost(string, repeated, tag = "5")]
10860    pub target_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
10861    #[prost(int32, repeated, packed = "false", tag = "6")]
10862    pub exclude_pid: ::prost::alloc::vec::Vec<i32>,
10863    #[prost(string, repeated, tag = "7")]
10864    pub exclude_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
10865    #[prost(uint32, optional, tag = "11")]
10866    pub additional_cmdline_count: ::core::option::Option<u32>,
10867}
10868/// Nested message and enum types in `PerfEventConfig`.
10869pub mod perf_event_config {
10870    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
10871    pub struct CallstackSampling {
10872        /// Defines a set of processes for which samples are retained/skipped. If
10873        /// unset, all samples are kept, but beware that it will be very heavy on the
10874        /// stack unwinder, which might start dropping samples due to overload.
10875        #[prost(message, optional, tag = "1")]
10876        pub scope: ::core::option::Option<Scope>,
10877        /// If true, callstacks will include the kernel-space frames. Such frames can
10878        /// be identified by a magical "kernel" string as their mapping name.
10879        /// Requires traced_perf to be running as root, or kptr_restrict to have been
10880        /// manually unrestricted. On Android, the platform should do the right thing
10881        /// on debug builds.
10882        /// This does *not* disclose KASLR, as only the function names are emitted.
10883        #[prost(bool, optional, tag = "2")]
10884        pub kernel_frames: ::core::option::Option<bool>,
10885        /// Whether to record and unwind userspace callstacks. If unset, defaults to
10886        /// including userspace (UNWIND_DWARF) both for backwards compatibility and
10887        /// as the most common default (this defaulting is only applicable if the
10888        /// outer CallstackSampling message is explicitly set).
10889        #[prost(enumeration = "UnwindMode", optional, tag = "3")]
10890        pub user_frames: ::core::option::Option<i32>,
10891    }
10892    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
10893    pub struct Scope {
10894        /// Process ID (TGID) allowlist. If this list is not empty, only matching
10895        /// samples will be retained. If multiple allow/deny-lists are
10896        /// specified by the config, then all of them are evaluated for each sampled
10897        /// process.
10898        #[prost(int32, repeated, packed = "false", tag = "1")]
10899        pub target_pid: ::prost::alloc::vec::Vec<i32>,
10900        /// Command line allowlist, matched against the /proc/<pid>/cmdline (not the
10901        /// comm string). The semantics of this field were changed since its original
10902        /// introduction.
10903        ///
10904        /// On Android T+ (13+), this field can specify a single wildcard (*), and
10905        /// the profiler will attempt to match it in two possible ways:
10906        /// * if the pattern starts with a '/', then it is matched against the first
10907        ///    segment of the cmdline (i.e. argv0). For example "/bin/e*" would match
10908        ///    "/bin/echo".
10909        /// * otherwise the pattern is matched against the part of argv0
10910        ///    corresponding to the binary name (this is unrelated to /proc/pid/exe).
10911        ///    For example "echo" would match "/bin/echo".
10912        ///
10913        /// On Android S (12) and below, both this pattern and /proc/pid/cmdline get
10914        /// normalized prior to an exact string comparison. Normalization is as
10915        /// follows: (1) trim everything beyond the first null or "@" byte; (2) if
10916        /// the string contains forward slashes, trim everything up to and including
10917        /// the last one.
10918        ///
10919        /// Implementation note: in either case, at most 511 characters of cmdline
10920        /// are considered.
10921        #[prost(string, repeated, tag = "2")]
10922        pub target_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
10923        /// List of excluded pids.
10924        #[prost(int32, repeated, packed = "false", tag = "3")]
10925        pub exclude_pid: ::prost::alloc::vec::Vec<i32>,
10926        /// List of excluded cmdlines. See description of |target_cmdline| for how
10927        /// this is handled.
10928        #[prost(string, repeated, tag = "4")]
10929        pub exclude_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
10930        /// Number of additional command lines to sample. Only those which are
10931        /// neither explicitly included nor excluded will be considered. Processes
10932        /// are accepted on a first come, first served basis.
10933        #[prost(uint32, optional, tag = "5")]
10934        pub additional_cmdline_count: ::core::option::Option<u32>,
10935        /// If set to N, all encountered processes will be put into one of the N
10936        /// possible bins, and only one randomly-chosen bin will be selected for
10937        /// unwinding. The binning is simply "pid % N", under the assumption that
10938        /// low-order bits of pids are roughly uniformly distributed. Other explicit
10939        /// inclusions/exclusions in this |Scope| message are still respected.
10940        ///
10941        /// The profiler will report the chosen shard in PerfSampleDefaults, and the
10942        /// values will be queryable in trace processor under the "stats" table as
10943        /// "perf_process_shard_count" and "perf_chosen_process_shard".
10944        ///
10945        /// NB: all data sources in a config that set |process_shard_count| must set
10946        /// it to the same value. The profiler will choose one bin for all those data
10947        /// sources.
10948        #[prost(uint32, optional, tag = "6")]
10949        pub process_shard_count: ::core::option::Option<u32>,
10950    }
10951    /// Userspace unwinding mode.
10952    #[derive(
10953        Clone,
10954        Copy,
10955        Debug,
10956        PartialEq,
10957        Eq,
10958        Hash,
10959        PartialOrd,
10960        Ord,
10961        ::prost::Enumeration
10962    )]
10963    #[repr(i32)]
10964    pub enum UnwindMode {
10965        UnwindUnknown = 0,
10966        /// Do not unwind userspace:
10967        UnwindSkip = 1,
10968        /// Use libunwindstack (default):
10969        UnwindDwarf = 2,
10970        /// Use userspace frame pointer unwinder:
10971        UnwindFramePointer = 3,
10972        /// Ask the kernel to unwind the userspace stack via frame pointers, using
10973        /// PERF_SAMPLE_CALLCHAIN. The user stack bytes are not copied into the
10974        /// sample, which avoids the per-sample copy cost and the depth limit
10975        /// imposed by PERF_SAMPLE_STACK_USER. Requires that the userspace code
10976        /// (including system libraries) is built with frame pointers - the kernel
10977        /// walks the chain and returns instruction addresses, which still need to
10978        /// be symbolized offline using the recorded process mappings.
10979        UnwindKernelFramePointer = 4,
10980    }
10981    impl UnwindMode {
10982        /// String value of the enum field names used in the ProtoBuf definition.
10983        ///
10984        /// The values are not transformed in any way and thus are considered stable
10985        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
10986        pub fn as_str_name(&self) -> &'static str {
10987            match self {
10988                Self::UnwindUnknown => "UNWIND_UNKNOWN",
10989                Self::UnwindSkip => "UNWIND_SKIP",
10990                Self::UnwindDwarf => "UNWIND_DWARF",
10991                Self::UnwindFramePointer => "UNWIND_FRAME_POINTER",
10992                Self::UnwindKernelFramePointer => "UNWIND_KERNEL_FRAME_POINTER",
10993            }
10994        }
10995        /// Creates an enum from field names used in the ProtoBuf definition.
10996        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
10997            match value {
10998                "UNWIND_UNKNOWN" => Some(Self::UnwindUnknown),
10999                "UNWIND_SKIP" => Some(Self::UnwindSkip),
11000                "UNWIND_DWARF" => Some(Self::UnwindDwarf),
11001                "UNWIND_FRAME_POINTER" => Some(Self::UnwindFramePointer),
11002                "UNWIND_KERNEL_FRAME_POINTER" => Some(Self::UnwindKernelFramePointer),
11003                _ => None,
11004            }
11005        }
11006    }
11007}
11008/// When editing entries here remember also to update "sys_stats_counters.h" with
11009/// the corresponding string definitions for the actual /proc files parser.
11010///
11011/// Counter definitions for Linux's /proc/meminfo.
11012#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
11013#[repr(i32)]
11014pub enum MeminfoCounters {
11015    MeminfoUnspecified = 0,
11016    MeminfoMemTotal = 1,
11017    MeminfoMemFree = 2,
11018    MeminfoMemAvailable = 3,
11019    MeminfoBuffers = 4,
11020    MeminfoCached = 5,
11021    MeminfoSwapCached = 6,
11022    MeminfoActive = 7,
11023    MeminfoInactive = 8,
11024    MeminfoActiveAnon = 9,
11025    MeminfoInactiveAnon = 10,
11026    MeminfoActiveFile = 11,
11027    MeminfoInactiveFile = 12,
11028    MeminfoUnevictable = 13,
11029    MeminfoMlocked = 14,
11030    MeminfoSwapTotal = 15,
11031    MeminfoSwapFree = 16,
11032    MeminfoDirty = 17,
11033    MeminfoWriteback = 18,
11034    MeminfoAnonPages = 19,
11035    MeminfoMapped = 20,
11036    MeminfoShmem = 21,
11037    MeminfoSlab = 22,
11038    MeminfoSlabReclaimable = 23,
11039    MeminfoSlabUnreclaimable = 24,
11040    MeminfoKernelStack = 25,
11041    MeminfoPageTables = 26,
11042    MeminfoCommitLimit = 27,
11043    MeminfoCommitedAs = 28,
11044    MeminfoVmallocTotal = 29,
11045    MeminfoVmallocUsed = 30,
11046    MeminfoVmallocChunk = 31,
11047    MeminfoCmaTotal = 32,
11048    MeminfoCmaFree = 33,
11049    MeminfoGpu = 34,
11050    MeminfoZram = 35,
11051    MeminfoMisc = 36,
11052    MeminfoIonHeap = 37,
11053    MeminfoIonHeapPool = 38,
11054}
11055impl MeminfoCounters {
11056    /// String value of the enum field names used in the ProtoBuf definition.
11057    ///
11058    /// The values are not transformed in any way and thus are considered stable
11059    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
11060    pub fn as_str_name(&self) -> &'static str {
11061        match self {
11062            Self::MeminfoUnspecified => "MEMINFO_UNSPECIFIED",
11063            Self::MeminfoMemTotal => "MEMINFO_MEM_TOTAL",
11064            Self::MeminfoMemFree => "MEMINFO_MEM_FREE",
11065            Self::MeminfoMemAvailable => "MEMINFO_MEM_AVAILABLE",
11066            Self::MeminfoBuffers => "MEMINFO_BUFFERS",
11067            Self::MeminfoCached => "MEMINFO_CACHED",
11068            Self::MeminfoSwapCached => "MEMINFO_SWAP_CACHED",
11069            Self::MeminfoActive => "MEMINFO_ACTIVE",
11070            Self::MeminfoInactive => "MEMINFO_INACTIVE",
11071            Self::MeminfoActiveAnon => "MEMINFO_ACTIVE_ANON",
11072            Self::MeminfoInactiveAnon => "MEMINFO_INACTIVE_ANON",
11073            Self::MeminfoActiveFile => "MEMINFO_ACTIVE_FILE",
11074            Self::MeminfoInactiveFile => "MEMINFO_INACTIVE_FILE",
11075            Self::MeminfoUnevictable => "MEMINFO_UNEVICTABLE",
11076            Self::MeminfoMlocked => "MEMINFO_MLOCKED",
11077            Self::MeminfoSwapTotal => "MEMINFO_SWAP_TOTAL",
11078            Self::MeminfoSwapFree => "MEMINFO_SWAP_FREE",
11079            Self::MeminfoDirty => "MEMINFO_DIRTY",
11080            Self::MeminfoWriteback => "MEMINFO_WRITEBACK",
11081            Self::MeminfoAnonPages => "MEMINFO_ANON_PAGES",
11082            Self::MeminfoMapped => "MEMINFO_MAPPED",
11083            Self::MeminfoShmem => "MEMINFO_SHMEM",
11084            Self::MeminfoSlab => "MEMINFO_SLAB",
11085            Self::MeminfoSlabReclaimable => "MEMINFO_SLAB_RECLAIMABLE",
11086            Self::MeminfoSlabUnreclaimable => "MEMINFO_SLAB_UNRECLAIMABLE",
11087            Self::MeminfoKernelStack => "MEMINFO_KERNEL_STACK",
11088            Self::MeminfoPageTables => "MEMINFO_PAGE_TABLES",
11089            Self::MeminfoCommitLimit => "MEMINFO_COMMIT_LIMIT",
11090            Self::MeminfoCommitedAs => "MEMINFO_COMMITED_AS",
11091            Self::MeminfoVmallocTotal => "MEMINFO_VMALLOC_TOTAL",
11092            Self::MeminfoVmallocUsed => "MEMINFO_VMALLOC_USED",
11093            Self::MeminfoVmallocChunk => "MEMINFO_VMALLOC_CHUNK",
11094            Self::MeminfoCmaTotal => "MEMINFO_CMA_TOTAL",
11095            Self::MeminfoCmaFree => "MEMINFO_CMA_FREE",
11096            Self::MeminfoGpu => "MEMINFO_GPU",
11097            Self::MeminfoZram => "MEMINFO_ZRAM",
11098            Self::MeminfoMisc => "MEMINFO_MISC",
11099            Self::MeminfoIonHeap => "MEMINFO_ION_HEAP",
11100            Self::MeminfoIonHeapPool => "MEMINFO_ION_HEAP_POOL",
11101        }
11102    }
11103    /// Creates an enum from field names used in the ProtoBuf definition.
11104    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
11105        match value {
11106            "MEMINFO_UNSPECIFIED" => Some(Self::MeminfoUnspecified),
11107            "MEMINFO_MEM_TOTAL" => Some(Self::MeminfoMemTotal),
11108            "MEMINFO_MEM_FREE" => Some(Self::MeminfoMemFree),
11109            "MEMINFO_MEM_AVAILABLE" => Some(Self::MeminfoMemAvailable),
11110            "MEMINFO_BUFFERS" => Some(Self::MeminfoBuffers),
11111            "MEMINFO_CACHED" => Some(Self::MeminfoCached),
11112            "MEMINFO_SWAP_CACHED" => Some(Self::MeminfoSwapCached),
11113            "MEMINFO_ACTIVE" => Some(Self::MeminfoActive),
11114            "MEMINFO_INACTIVE" => Some(Self::MeminfoInactive),
11115            "MEMINFO_ACTIVE_ANON" => Some(Self::MeminfoActiveAnon),
11116            "MEMINFO_INACTIVE_ANON" => Some(Self::MeminfoInactiveAnon),
11117            "MEMINFO_ACTIVE_FILE" => Some(Self::MeminfoActiveFile),
11118            "MEMINFO_INACTIVE_FILE" => Some(Self::MeminfoInactiveFile),
11119            "MEMINFO_UNEVICTABLE" => Some(Self::MeminfoUnevictable),
11120            "MEMINFO_MLOCKED" => Some(Self::MeminfoMlocked),
11121            "MEMINFO_SWAP_TOTAL" => Some(Self::MeminfoSwapTotal),
11122            "MEMINFO_SWAP_FREE" => Some(Self::MeminfoSwapFree),
11123            "MEMINFO_DIRTY" => Some(Self::MeminfoDirty),
11124            "MEMINFO_WRITEBACK" => Some(Self::MeminfoWriteback),
11125            "MEMINFO_ANON_PAGES" => Some(Self::MeminfoAnonPages),
11126            "MEMINFO_MAPPED" => Some(Self::MeminfoMapped),
11127            "MEMINFO_SHMEM" => Some(Self::MeminfoShmem),
11128            "MEMINFO_SLAB" => Some(Self::MeminfoSlab),
11129            "MEMINFO_SLAB_RECLAIMABLE" => Some(Self::MeminfoSlabReclaimable),
11130            "MEMINFO_SLAB_UNRECLAIMABLE" => Some(Self::MeminfoSlabUnreclaimable),
11131            "MEMINFO_KERNEL_STACK" => Some(Self::MeminfoKernelStack),
11132            "MEMINFO_PAGE_TABLES" => Some(Self::MeminfoPageTables),
11133            "MEMINFO_COMMIT_LIMIT" => Some(Self::MeminfoCommitLimit),
11134            "MEMINFO_COMMITED_AS" => Some(Self::MeminfoCommitedAs),
11135            "MEMINFO_VMALLOC_TOTAL" => Some(Self::MeminfoVmallocTotal),
11136            "MEMINFO_VMALLOC_USED" => Some(Self::MeminfoVmallocUsed),
11137            "MEMINFO_VMALLOC_CHUNK" => Some(Self::MeminfoVmallocChunk),
11138            "MEMINFO_CMA_TOTAL" => Some(Self::MeminfoCmaTotal),
11139            "MEMINFO_CMA_FREE" => Some(Self::MeminfoCmaFree),
11140            "MEMINFO_GPU" => Some(Self::MeminfoGpu),
11141            "MEMINFO_ZRAM" => Some(Self::MeminfoZram),
11142            "MEMINFO_MISC" => Some(Self::MeminfoMisc),
11143            "MEMINFO_ION_HEAP" => Some(Self::MeminfoIonHeap),
11144            "MEMINFO_ION_HEAP_POOL" => Some(Self::MeminfoIonHeapPool),
11145            _ => None,
11146        }
11147    }
11148}
11149/// Counter definitions for Linux's /proc/vmstat.
11150#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
11151#[repr(i32)]
11152pub enum VmstatCounters {
11153    VmstatUnspecified = 0,
11154    VmstatNrFreePages = 1,
11155    VmstatNrAllocBatch = 2,
11156    VmstatNrInactiveAnon = 3,
11157    VmstatNrActiveAnon = 4,
11158    VmstatNrInactiveFile = 5,
11159    VmstatNrActiveFile = 6,
11160    VmstatNrUnevictable = 7,
11161    VmstatNrMlock = 8,
11162    VmstatNrAnonPages = 9,
11163    VmstatNrMapped = 10,
11164    VmstatNrFilePages = 11,
11165    VmstatNrDirty = 12,
11166    VmstatNrWriteback = 13,
11167    VmstatNrSlabReclaimable = 14,
11168    VmstatNrSlabUnreclaimable = 15,
11169    VmstatNrPageTablePages = 16,
11170    VmstatNrKernelStack = 17,
11171    VmstatNrOverhead = 18,
11172    VmstatNrUnstable = 19,
11173    VmstatNrBounce = 20,
11174    VmstatNrVmscanWrite = 21,
11175    VmstatNrVmscanImmediateReclaim = 22,
11176    VmstatNrWritebackTemp = 23,
11177    VmstatNrIsolatedAnon = 24,
11178    VmstatNrIsolatedFile = 25,
11179    VmstatNrShmem = 26,
11180    VmstatNrDirtied = 27,
11181    VmstatNrWritten = 28,
11182    VmstatNrPagesScanned = 29,
11183    VmstatWorkingsetRefault = 30,
11184    VmstatWorkingsetActivate = 31,
11185    VmstatWorkingsetNodereclaim = 32,
11186    VmstatNrAnonTransparentHugepages = 33,
11187    VmstatNrFreeCma = 34,
11188    VmstatNrSwapcache = 35,
11189    VmstatNrDirtyThreshold = 36,
11190    VmstatNrDirtyBackgroundThreshold = 37,
11191    VmstatPgpgin = 38,
11192    VmstatPgpgout = 39,
11193    VmstatPgpgoutclean = 40,
11194    VmstatPswpin = 41,
11195    VmstatPswpout = 42,
11196    VmstatPgallocDma = 43,
11197    VmstatPgallocNormal = 44,
11198    VmstatPgallocMovable = 45,
11199    VmstatPgfree = 46,
11200    VmstatPgactivate = 47,
11201    VmstatPgdeactivate = 48,
11202    VmstatPgfault = 49,
11203    VmstatPgmajfault = 50,
11204    VmstatPgrefillDma = 51,
11205    VmstatPgrefillNormal = 52,
11206    VmstatPgrefillMovable = 53,
11207    VmstatPgstealKswapdDma = 54,
11208    VmstatPgstealKswapdNormal = 55,
11209    VmstatPgstealKswapdMovable = 56,
11210    VmstatPgstealDirectDma = 57,
11211    VmstatPgstealDirectNormal = 58,
11212    VmstatPgstealDirectMovable = 59,
11213    VmstatPgscanKswapdDma = 60,
11214    VmstatPgscanKswapdNormal = 61,
11215    VmstatPgscanKswapdMovable = 62,
11216    VmstatPgscanDirectDma = 63,
11217    VmstatPgscanDirectNormal = 64,
11218    VmstatPgscanDirectMovable = 65,
11219    VmstatPgscanDirectThrottle = 66,
11220    VmstatPginodesteal = 67,
11221    VmstatSlabsScanned = 68,
11222    VmstatKswapdInodesteal = 69,
11223    VmstatKswapdLowWmarkHitQuickly = 70,
11224    VmstatKswapdHighWmarkHitQuickly = 71,
11225    VmstatPageoutrun = 72,
11226    VmstatAllocstall = 73,
11227    VmstatPgrotated = 74,
11228    VmstatDropPagecache = 75,
11229    VmstatDropSlab = 76,
11230    VmstatPgmigrateSuccess = 77,
11231    VmstatPgmigrateFail = 78,
11232    VmstatCompactMigrateScanned = 79,
11233    VmstatCompactFreeScanned = 80,
11234    VmstatCompactIsolated = 81,
11235    VmstatCompactStall = 82,
11236    VmstatCompactFail = 83,
11237    VmstatCompactSuccess = 84,
11238    VmstatCompactDaemonWake = 85,
11239    VmstatUnevictablePgsCulled = 86,
11240    VmstatUnevictablePgsScanned = 87,
11241    VmstatUnevictablePgsRescued = 88,
11242    VmstatUnevictablePgsMlocked = 89,
11243    VmstatUnevictablePgsMunlocked = 90,
11244    VmstatUnevictablePgsCleared = 91,
11245    VmstatUnevictablePgsStranded = 92,
11246    VmstatNrZspages = 93,
11247    VmstatNrIonHeap = 94,
11248    VmstatNrGpuHeap = 95,
11249    VmstatAllocstallDma = 96,
11250    VmstatAllocstallMovable = 97,
11251    VmstatAllocstallNormal = 98,
11252    VmstatCompactDaemonFreeScanned = 99,
11253    VmstatCompactDaemonMigrateScanned = 100,
11254    VmstatNrFastrpc = 101,
11255    VmstatNrIndirectlyReclaimable = 102,
11256    VmstatNrIonHeapPool = 103,
11257    VmstatNrKernelMiscReclaimable = 104,
11258    VmstatNrShadowCallStackBytes = 105,
11259    VmstatNrShmemHugepages = 106,
11260    VmstatNrShmemPmdmapped = 107,
11261    VmstatNrUnreclaimablePages = 108,
11262    VmstatNrZoneActiveAnon = 109,
11263    VmstatNrZoneActiveFile = 110,
11264    VmstatNrZoneInactiveAnon = 111,
11265    VmstatNrZoneInactiveFile = 112,
11266    VmstatNrZoneUnevictable = 113,
11267    VmstatNrZoneWritePending = 114,
11268    VmstatOomKill = 115,
11269    VmstatPglazyfree = 116,
11270    VmstatPglazyfreed = 117,
11271    VmstatPgrefill = 118,
11272    VmstatPgscanDirect = 119,
11273    VmstatPgscanKswapd = 120,
11274    VmstatPgskipDma = 121,
11275    VmstatPgskipMovable = 122,
11276    VmstatPgskipNormal = 123,
11277    VmstatPgstealDirect = 124,
11278    VmstatPgstealKswapd = 125,
11279    VmstatSwapRa = 126,
11280    VmstatSwapRaHit = 127,
11281    VmstatWorkingsetRestore = 128,
11282    VmstatAllocstallDevice = 129,
11283    VmstatAllocstallDma32 = 130,
11284    VmstatBalloonDeflate = 131,
11285    VmstatBalloonInflate = 132,
11286    VmstatBalloonMigrate = 133,
11287    VmstatCmaAllocFail = 134,
11288    VmstatCmaAllocSuccess = 135,
11289    VmstatNrFileHugepages = 136,
11290    VmstatNrFilePmdmapped = 137,
11291    VmstatNrFollPinAcquired = 138,
11292    VmstatNrFollPinReleased = 139,
11293    VmstatNrSecPageTablePages = 140,
11294    VmstatNrShadowCallStack = 141,
11295    VmstatNrSwapcached = 142,
11296    VmstatNrThrottledWritten = 143,
11297    VmstatPgallocDevice = 144,
11298    VmstatPgallocDma32 = 145,
11299    VmstatPgdemoteDirect = 146,
11300    VmstatPgdemoteKswapd = 147,
11301    VmstatPgreuse = 148,
11302    VmstatPgscanAnon = 149,
11303    VmstatPgscanFile = 150,
11304    VmstatPgskipDevice = 151,
11305    VmstatPgskipDma32 = 152,
11306    VmstatPgstealAnon = 153,
11307    VmstatPgstealFile = 154,
11308    VmstatThpCollapseAlloc = 155,
11309    VmstatThpCollapseAllocFailed = 156,
11310    VmstatThpDeferredSplitPage = 157,
11311    VmstatThpFaultAlloc = 158,
11312    VmstatThpFaultFallback = 159,
11313    VmstatThpFaultFallbackCharge = 160,
11314    VmstatThpFileAlloc = 161,
11315    VmstatThpFileFallback = 162,
11316    VmstatThpFileFallbackCharge = 163,
11317    VmstatThpFileMapped = 164,
11318    VmstatThpMigrationFail = 165,
11319    VmstatThpMigrationSplit = 166,
11320    VmstatThpMigrationSuccess = 167,
11321    VmstatThpScanExceedNonePte = 168,
11322    VmstatThpScanExceedSharePte = 169,
11323    VmstatThpScanExceedSwapPte = 170,
11324    VmstatThpSplitPage = 171,
11325    VmstatThpSplitPageFailed = 172,
11326    VmstatThpSplitPmd = 173,
11327    VmstatThpSwpout = 174,
11328    VmstatThpSwpoutFallback = 175,
11329    VmstatThpZeroPageAlloc = 176,
11330    VmstatThpZeroPageAllocFailed = 177,
11331    VmstatVmaLockAbort = 178,
11332    VmstatVmaLockMiss = 179,
11333    VmstatVmaLockRetry = 180,
11334    VmstatVmaLockSuccess = 181,
11335    VmstatWorkingsetActivateAnon = 182,
11336    VmstatWorkingsetActivateFile = 183,
11337    VmstatWorkingsetNodes = 184,
11338    VmstatWorkingsetRefaultAnon = 185,
11339    VmstatWorkingsetRefaultFile = 186,
11340    VmstatWorkingsetRestoreAnon = 187,
11341    VmstatWorkingsetRestoreFile = 188,
11342}
11343impl VmstatCounters {
11344    /// String value of the enum field names used in the ProtoBuf definition.
11345    ///
11346    /// The values are not transformed in any way and thus are considered stable
11347    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
11348    pub fn as_str_name(&self) -> &'static str {
11349        match self {
11350            Self::VmstatUnspecified => "VMSTAT_UNSPECIFIED",
11351            Self::VmstatNrFreePages => "VMSTAT_NR_FREE_PAGES",
11352            Self::VmstatNrAllocBatch => "VMSTAT_NR_ALLOC_BATCH",
11353            Self::VmstatNrInactiveAnon => "VMSTAT_NR_INACTIVE_ANON",
11354            Self::VmstatNrActiveAnon => "VMSTAT_NR_ACTIVE_ANON",
11355            Self::VmstatNrInactiveFile => "VMSTAT_NR_INACTIVE_FILE",
11356            Self::VmstatNrActiveFile => "VMSTAT_NR_ACTIVE_FILE",
11357            Self::VmstatNrUnevictable => "VMSTAT_NR_UNEVICTABLE",
11358            Self::VmstatNrMlock => "VMSTAT_NR_MLOCK",
11359            Self::VmstatNrAnonPages => "VMSTAT_NR_ANON_PAGES",
11360            Self::VmstatNrMapped => "VMSTAT_NR_MAPPED",
11361            Self::VmstatNrFilePages => "VMSTAT_NR_FILE_PAGES",
11362            Self::VmstatNrDirty => "VMSTAT_NR_DIRTY",
11363            Self::VmstatNrWriteback => "VMSTAT_NR_WRITEBACK",
11364            Self::VmstatNrSlabReclaimable => "VMSTAT_NR_SLAB_RECLAIMABLE",
11365            Self::VmstatNrSlabUnreclaimable => "VMSTAT_NR_SLAB_UNRECLAIMABLE",
11366            Self::VmstatNrPageTablePages => "VMSTAT_NR_PAGE_TABLE_PAGES",
11367            Self::VmstatNrKernelStack => "VMSTAT_NR_KERNEL_STACK",
11368            Self::VmstatNrOverhead => "VMSTAT_NR_OVERHEAD",
11369            Self::VmstatNrUnstable => "VMSTAT_NR_UNSTABLE",
11370            Self::VmstatNrBounce => "VMSTAT_NR_BOUNCE",
11371            Self::VmstatNrVmscanWrite => "VMSTAT_NR_VMSCAN_WRITE",
11372            Self::VmstatNrVmscanImmediateReclaim => "VMSTAT_NR_VMSCAN_IMMEDIATE_RECLAIM",
11373            Self::VmstatNrWritebackTemp => "VMSTAT_NR_WRITEBACK_TEMP",
11374            Self::VmstatNrIsolatedAnon => "VMSTAT_NR_ISOLATED_ANON",
11375            Self::VmstatNrIsolatedFile => "VMSTAT_NR_ISOLATED_FILE",
11376            Self::VmstatNrShmem => "VMSTAT_NR_SHMEM",
11377            Self::VmstatNrDirtied => "VMSTAT_NR_DIRTIED",
11378            Self::VmstatNrWritten => "VMSTAT_NR_WRITTEN",
11379            Self::VmstatNrPagesScanned => "VMSTAT_NR_PAGES_SCANNED",
11380            Self::VmstatWorkingsetRefault => "VMSTAT_WORKINGSET_REFAULT",
11381            Self::VmstatWorkingsetActivate => "VMSTAT_WORKINGSET_ACTIVATE",
11382            Self::VmstatWorkingsetNodereclaim => "VMSTAT_WORKINGSET_NODERECLAIM",
11383            Self::VmstatNrAnonTransparentHugepages => {
11384                "VMSTAT_NR_ANON_TRANSPARENT_HUGEPAGES"
11385            }
11386            Self::VmstatNrFreeCma => "VMSTAT_NR_FREE_CMA",
11387            Self::VmstatNrSwapcache => "VMSTAT_NR_SWAPCACHE",
11388            Self::VmstatNrDirtyThreshold => "VMSTAT_NR_DIRTY_THRESHOLD",
11389            Self::VmstatNrDirtyBackgroundThreshold => {
11390                "VMSTAT_NR_DIRTY_BACKGROUND_THRESHOLD"
11391            }
11392            Self::VmstatPgpgin => "VMSTAT_PGPGIN",
11393            Self::VmstatPgpgout => "VMSTAT_PGPGOUT",
11394            Self::VmstatPgpgoutclean => "VMSTAT_PGPGOUTCLEAN",
11395            Self::VmstatPswpin => "VMSTAT_PSWPIN",
11396            Self::VmstatPswpout => "VMSTAT_PSWPOUT",
11397            Self::VmstatPgallocDma => "VMSTAT_PGALLOC_DMA",
11398            Self::VmstatPgallocNormal => "VMSTAT_PGALLOC_NORMAL",
11399            Self::VmstatPgallocMovable => "VMSTAT_PGALLOC_MOVABLE",
11400            Self::VmstatPgfree => "VMSTAT_PGFREE",
11401            Self::VmstatPgactivate => "VMSTAT_PGACTIVATE",
11402            Self::VmstatPgdeactivate => "VMSTAT_PGDEACTIVATE",
11403            Self::VmstatPgfault => "VMSTAT_PGFAULT",
11404            Self::VmstatPgmajfault => "VMSTAT_PGMAJFAULT",
11405            Self::VmstatPgrefillDma => "VMSTAT_PGREFILL_DMA",
11406            Self::VmstatPgrefillNormal => "VMSTAT_PGREFILL_NORMAL",
11407            Self::VmstatPgrefillMovable => "VMSTAT_PGREFILL_MOVABLE",
11408            Self::VmstatPgstealKswapdDma => "VMSTAT_PGSTEAL_KSWAPD_DMA",
11409            Self::VmstatPgstealKswapdNormal => "VMSTAT_PGSTEAL_KSWAPD_NORMAL",
11410            Self::VmstatPgstealKswapdMovable => "VMSTAT_PGSTEAL_KSWAPD_MOVABLE",
11411            Self::VmstatPgstealDirectDma => "VMSTAT_PGSTEAL_DIRECT_DMA",
11412            Self::VmstatPgstealDirectNormal => "VMSTAT_PGSTEAL_DIRECT_NORMAL",
11413            Self::VmstatPgstealDirectMovable => "VMSTAT_PGSTEAL_DIRECT_MOVABLE",
11414            Self::VmstatPgscanKswapdDma => "VMSTAT_PGSCAN_KSWAPD_DMA",
11415            Self::VmstatPgscanKswapdNormal => "VMSTAT_PGSCAN_KSWAPD_NORMAL",
11416            Self::VmstatPgscanKswapdMovable => "VMSTAT_PGSCAN_KSWAPD_MOVABLE",
11417            Self::VmstatPgscanDirectDma => "VMSTAT_PGSCAN_DIRECT_DMA",
11418            Self::VmstatPgscanDirectNormal => "VMSTAT_PGSCAN_DIRECT_NORMAL",
11419            Self::VmstatPgscanDirectMovable => "VMSTAT_PGSCAN_DIRECT_MOVABLE",
11420            Self::VmstatPgscanDirectThrottle => "VMSTAT_PGSCAN_DIRECT_THROTTLE",
11421            Self::VmstatPginodesteal => "VMSTAT_PGINODESTEAL",
11422            Self::VmstatSlabsScanned => "VMSTAT_SLABS_SCANNED",
11423            Self::VmstatKswapdInodesteal => "VMSTAT_KSWAPD_INODESTEAL",
11424            Self::VmstatKswapdLowWmarkHitQuickly => "VMSTAT_KSWAPD_LOW_WMARK_HIT_QUICKLY",
11425            Self::VmstatKswapdHighWmarkHitQuickly => {
11426                "VMSTAT_KSWAPD_HIGH_WMARK_HIT_QUICKLY"
11427            }
11428            Self::VmstatPageoutrun => "VMSTAT_PAGEOUTRUN",
11429            Self::VmstatAllocstall => "VMSTAT_ALLOCSTALL",
11430            Self::VmstatPgrotated => "VMSTAT_PGROTATED",
11431            Self::VmstatDropPagecache => "VMSTAT_DROP_PAGECACHE",
11432            Self::VmstatDropSlab => "VMSTAT_DROP_SLAB",
11433            Self::VmstatPgmigrateSuccess => "VMSTAT_PGMIGRATE_SUCCESS",
11434            Self::VmstatPgmigrateFail => "VMSTAT_PGMIGRATE_FAIL",
11435            Self::VmstatCompactMigrateScanned => "VMSTAT_COMPACT_MIGRATE_SCANNED",
11436            Self::VmstatCompactFreeScanned => "VMSTAT_COMPACT_FREE_SCANNED",
11437            Self::VmstatCompactIsolated => "VMSTAT_COMPACT_ISOLATED",
11438            Self::VmstatCompactStall => "VMSTAT_COMPACT_STALL",
11439            Self::VmstatCompactFail => "VMSTAT_COMPACT_FAIL",
11440            Self::VmstatCompactSuccess => "VMSTAT_COMPACT_SUCCESS",
11441            Self::VmstatCompactDaemonWake => "VMSTAT_COMPACT_DAEMON_WAKE",
11442            Self::VmstatUnevictablePgsCulled => "VMSTAT_UNEVICTABLE_PGS_CULLED",
11443            Self::VmstatUnevictablePgsScanned => "VMSTAT_UNEVICTABLE_PGS_SCANNED",
11444            Self::VmstatUnevictablePgsRescued => "VMSTAT_UNEVICTABLE_PGS_RESCUED",
11445            Self::VmstatUnevictablePgsMlocked => "VMSTAT_UNEVICTABLE_PGS_MLOCKED",
11446            Self::VmstatUnevictablePgsMunlocked => "VMSTAT_UNEVICTABLE_PGS_MUNLOCKED",
11447            Self::VmstatUnevictablePgsCleared => "VMSTAT_UNEVICTABLE_PGS_CLEARED",
11448            Self::VmstatUnevictablePgsStranded => "VMSTAT_UNEVICTABLE_PGS_STRANDED",
11449            Self::VmstatNrZspages => "VMSTAT_NR_ZSPAGES",
11450            Self::VmstatNrIonHeap => "VMSTAT_NR_ION_HEAP",
11451            Self::VmstatNrGpuHeap => "VMSTAT_NR_GPU_HEAP",
11452            Self::VmstatAllocstallDma => "VMSTAT_ALLOCSTALL_DMA",
11453            Self::VmstatAllocstallMovable => "VMSTAT_ALLOCSTALL_MOVABLE",
11454            Self::VmstatAllocstallNormal => "VMSTAT_ALLOCSTALL_NORMAL",
11455            Self::VmstatCompactDaemonFreeScanned => "VMSTAT_COMPACT_DAEMON_FREE_SCANNED",
11456            Self::VmstatCompactDaemonMigrateScanned => {
11457                "VMSTAT_COMPACT_DAEMON_MIGRATE_SCANNED"
11458            }
11459            Self::VmstatNrFastrpc => "VMSTAT_NR_FASTRPC",
11460            Self::VmstatNrIndirectlyReclaimable => "VMSTAT_NR_INDIRECTLY_RECLAIMABLE",
11461            Self::VmstatNrIonHeapPool => "VMSTAT_NR_ION_HEAP_POOL",
11462            Self::VmstatNrKernelMiscReclaimable => "VMSTAT_NR_KERNEL_MISC_RECLAIMABLE",
11463            Self::VmstatNrShadowCallStackBytes => "VMSTAT_NR_SHADOW_CALL_STACK_BYTES",
11464            Self::VmstatNrShmemHugepages => "VMSTAT_NR_SHMEM_HUGEPAGES",
11465            Self::VmstatNrShmemPmdmapped => "VMSTAT_NR_SHMEM_PMDMAPPED",
11466            Self::VmstatNrUnreclaimablePages => "VMSTAT_NR_UNRECLAIMABLE_PAGES",
11467            Self::VmstatNrZoneActiveAnon => "VMSTAT_NR_ZONE_ACTIVE_ANON",
11468            Self::VmstatNrZoneActiveFile => "VMSTAT_NR_ZONE_ACTIVE_FILE",
11469            Self::VmstatNrZoneInactiveAnon => "VMSTAT_NR_ZONE_INACTIVE_ANON",
11470            Self::VmstatNrZoneInactiveFile => "VMSTAT_NR_ZONE_INACTIVE_FILE",
11471            Self::VmstatNrZoneUnevictable => "VMSTAT_NR_ZONE_UNEVICTABLE",
11472            Self::VmstatNrZoneWritePending => "VMSTAT_NR_ZONE_WRITE_PENDING",
11473            Self::VmstatOomKill => "VMSTAT_OOM_KILL",
11474            Self::VmstatPglazyfree => "VMSTAT_PGLAZYFREE",
11475            Self::VmstatPglazyfreed => "VMSTAT_PGLAZYFREED",
11476            Self::VmstatPgrefill => "VMSTAT_PGREFILL",
11477            Self::VmstatPgscanDirect => "VMSTAT_PGSCAN_DIRECT",
11478            Self::VmstatPgscanKswapd => "VMSTAT_PGSCAN_KSWAPD",
11479            Self::VmstatPgskipDma => "VMSTAT_PGSKIP_DMA",
11480            Self::VmstatPgskipMovable => "VMSTAT_PGSKIP_MOVABLE",
11481            Self::VmstatPgskipNormal => "VMSTAT_PGSKIP_NORMAL",
11482            Self::VmstatPgstealDirect => "VMSTAT_PGSTEAL_DIRECT",
11483            Self::VmstatPgstealKswapd => "VMSTAT_PGSTEAL_KSWAPD",
11484            Self::VmstatSwapRa => "VMSTAT_SWAP_RA",
11485            Self::VmstatSwapRaHit => "VMSTAT_SWAP_RA_HIT",
11486            Self::VmstatWorkingsetRestore => "VMSTAT_WORKINGSET_RESTORE",
11487            Self::VmstatAllocstallDevice => "VMSTAT_ALLOCSTALL_DEVICE",
11488            Self::VmstatAllocstallDma32 => "VMSTAT_ALLOCSTALL_DMA32",
11489            Self::VmstatBalloonDeflate => "VMSTAT_BALLOON_DEFLATE",
11490            Self::VmstatBalloonInflate => "VMSTAT_BALLOON_INFLATE",
11491            Self::VmstatBalloonMigrate => "VMSTAT_BALLOON_MIGRATE",
11492            Self::VmstatCmaAllocFail => "VMSTAT_CMA_ALLOC_FAIL",
11493            Self::VmstatCmaAllocSuccess => "VMSTAT_CMA_ALLOC_SUCCESS",
11494            Self::VmstatNrFileHugepages => "VMSTAT_NR_FILE_HUGEPAGES",
11495            Self::VmstatNrFilePmdmapped => "VMSTAT_NR_FILE_PMDMAPPED",
11496            Self::VmstatNrFollPinAcquired => "VMSTAT_NR_FOLL_PIN_ACQUIRED",
11497            Self::VmstatNrFollPinReleased => "VMSTAT_NR_FOLL_PIN_RELEASED",
11498            Self::VmstatNrSecPageTablePages => "VMSTAT_NR_SEC_PAGE_TABLE_PAGES",
11499            Self::VmstatNrShadowCallStack => "VMSTAT_NR_SHADOW_CALL_STACK",
11500            Self::VmstatNrSwapcached => "VMSTAT_NR_SWAPCACHED",
11501            Self::VmstatNrThrottledWritten => "VMSTAT_NR_THROTTLED_WRITTEN",
11502            Self::VmstatPgallocDevice => "VMSTAT_PGALLOC_DEVICE",
11503            Self::VmstatPgallocDma32 => "VMSTAT_PGALLOC_DMA32",
11504            Self::VmstatPgdemoteDirect => "VMSTAT_PGDEMOTE_DIRECT",
11505            Self::VmstatPgdemoteKswapd => "VMSTAT_PGDEMOTE_KSWAPD",
11506            Self::VmstatPgreuse => "VMSTAT_PGREUSE",
11507            Self::VmstatPgscanAnon => "VMSTAT_PGSCAN_ANON",
11508            Self::VmstatPgscanFile => "VMSTAT_PGSCAN_FILE",
11509            Self::VmstatPgskipDevice => "VMSTAT_PGSKIP_DEVICE",
11510            Self::VmstatPgskipDma32 => "VMSTAT_PGSKIP_DMA32",
11511            Self::VmstatPgstealAnon => "VMSTAT_PGSTEAL_ANON",
11512            Self::VmstatPgstealFile => "VMSTAT_PGSTEAL_FILE",
11513            Self::VmstatThpCollapseAlloc => "VMSTAT_THP_COLLAPSE_ALLOC",
11514            Self::VmstatThpCollapseAllocFailed => "VMSTAT_THP_COLLAPSE_ALLOC_FAILED",
11515            Self::VmstatThpDeferredSplitPage => "VMSTAT_THP_DEFERRED_SPLIT_PAGE",
11516            Self::VmstatThpFaultAlloc => "VMSTAT_THP_FAULT_ALLOC",
11517            Self::VmstatThpFaultFallback => "VMSTAT_THP_FAULT_FALLBACK",
11518            Self::VmstatThpFaultFallbackCharge => "VMSTAT_THP_FAULT_FALLBACK_CHARGE",
11519            Self::VmstatThpFileAlloc => "VMSTAT_THP_FILE_ALLOC",
11520            Self::VmstatThpFileFallback => "VMSTAT_THP_FILE_FALLBACK",
11521            Self::VmstatThpFileFallbackCharge => "VMSTAT_THP_FILE_FALLBACK_CHARGE",
11522            Self::VmstatThpFileMapped => "VMSTAT_THP_FILE_MAPPED",
11523            Self::VmstatThpMigrationFail => "VMSTAT_THP_MIGRATION_FAIL",
11524            Self::VmstatThpMigrationSplit => "VMSTAT_THP_MIGRATION_SPLIT",
11525            Self::VmstatThpMigrationSuccess => "VMSTAT_THP_MIGRATION_SUCCESS",
11526            Self::VmstatThpScanExceedNonePte => "VMSTAT_THP_SCAN_EXCEED_NONE_PTE",
11527            Self::VmstatThpScanExceedSharePte => "VMSTAT_THP_SCAN_EXCEED_SHARE_PTE",
11528            Self::VmstatThpScanExceedSwapPte => "VMSTAT_THP_SCAN_EXCEED_SWAP_PTE",
11529            Self::VmstatThpSplitPage => "VMSTAT_THP_SPLIT_PAGE",
11530            Self::VmstatThpSplitPageFailed => "VMSTAT_THP_SPLIT_PAGE_FAILED",
11531            Self::VmstatThpSplitPmd => "VMSTAT_THP_SPLIT_PMD",
11532            Self::VmstatThpSwpout => "VMSTAT_THP_SWPOUT",
11533            Self::VmstatThpSwpoutFallback => "VMSTAT_THP_SWPOUT_FALLBACK",
11534            Self::VmstatThpZeroPageAlloc => "VMSTAT_THP_ZERO_PAGE_ALLOC",
11535            Self::VmstatThpZeroPageAllocFailed => "VMSTAT_THP_ZERO_PAGE_ALLOC_FAILED",
11536            Self::VmstatVmaLockAbort => "VMSTAT_VMA_LOCK_ABORT",
11537            Self::VmstatVmaLockMiss => "VMSTAT_VMA_LOCK_MISS",
11538            Self::VmstatVmaLockRetry => "VMSTAT_VMA_LOCK_RETRY",
11539            Self::VmstatVmaLockSuccess => "VMSTAT_VMA_LOCK_SUCCESS",
11540            Self::VmstatWorkingsetActivateAnon => "VMSTAT_WORKINGSET_ACTIVATE_ANON",
11541            Self::VmstatWorkingsetActivateFile => "VMSTAT_WORKINGSET_ACTIVATE_FILE",
11542            Self::VmstatWorkingsetNodes => "VMSTAT_WORKINGSET_NODES",
11543            Self::VmstatWorkingsetRefaultAnon => "VMSTAT_WORKINGSET_REFAULT_ANON",
11544            Self::VmstatWorkingsetRefaultFile => "VMSTAT_WORKINGSET_REFAULT_FILE",
11545            Self::VmstatWorkingsetRestoreAnon => "VMSTAT_WORKINGSET_RESTORE_ANON",
11546            Self::VmstatWorkingsetRestoreFile => "VMSTAT_WORKINGSET_RESTORE_FILE",
11547        }
11548    }
11549    /// Creates an enum from field names used in the ProtoBuf definition.
11550    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
11551        match value {
11552            "VMSTAT_UNSPECIFIED" => Some(Self::VmstatUnspecified),
11553            "VMSTAT_NR_FREE_PAGES" => Some(Self::VmstatNrFreePages),
11554            "VMSTAT_NR_ALLOC_BATCH" => Some(Self::VmstatNrAllocBatch),
11555            "VMSTAT_NR_INACTIVE_ANON" => Some(Self::VmstatNrInactiveAnon),
11556            "VMSTAT_NR_ACTIVE_ANON" => Some(Self::VmstatNrActiveAnon),
11557            "VMSTAT_NR_INACTIVE_FILE" => Some(Self::VmstatNrInactiveFile),
11558            "VMSTAT_NR_ACTIVE_FILE" => Some(Self::VmstatNrActiveFile),
11559            "VMSTAT_NR_UNEVICTABLE" => Some(Self::VmstatNrUnevictable),
11560            "VMSTAT_NR_MLOCK" => Some(Self::VmstatNrMlock),
11561            "VMSTAT_NR_ANON_PAGES" => Some(Self::VmstatNrAnonPages),
11562            "VMSTAT_NR_MAPPED" => Some(Self::VmstatNrMapped),
11563            "VMSTAT_NR_FILE_PAGES" => Some(Self::VmstatNrFilePages),
11564            "VMSTAT_NR_DIRTY" => Some(Self::VmstatNrDirty),
11565            "VMSTAT_NR_WRITEBACK" => Some(Self::VmstatNrWriteback),
11566            "VMSTAT_NR_SLAB_RECLAIMABLE" => Some(Self::VmstatNrSlabReclaimable),
11567            "VMSTAT_NR_SLAB_UNRECLAIMABLE" => Some(Self::VmstatNrSlabUnreclaimable),
11568            "VMSTAT_NR_PAGE_TABLE_PAGES" => Some(Self::VmstatNrPageTablePages),
11569            "VMSTAT_NR_KERNEL_STACK" => Some(Self::VmstatNrKernelStack),
11570            "VMSTAT_NR_OVERHEAD" => Some(Self::VmstatNrOverhead),
11571            "VMSTAT_NR_UNSTABLE" => Some(Self::VmstatNrUnstable),
11572            "VMSTAT_NR_BOUNCE" => Some(Self::VmstatNrBounce),
11573            "VMSTAT_NR_VMSCAN_WRITE" => Some(Self::VmstatNrVmscanWrite),
11574            "VMSTAT_NR_VMSCAN_IMMEDIATE_RECLAIM" => {
11575                Some(Self::VmstatNrVmscanImmediateReclaim)
11576            }
11577            "VMSTAT_NR_WRITEBACK_TEMP" => Some(Self::VmstatNrWritebackTemp),
11578            "VMSTAT_NR_ISOLATED_ANON" => Some(Self::VmstatNrIsolatedAnon),
11579            "VMSTAT_NR_ISOLATED_FILE" => Some(Self::VmstatNrIsolatedFile),
11580            "VMSTAT_NR_SHMEM" => Some(Self::VmstatNrShmem),
11581            "VMSTAT_NR_DIRTIED" => Some(Self::VmstatNrDirtied),
11582            "VMSTAT_NR_WRITTEN" => Some(Self::VmstatNrWritten),
11583            "VMSTAT_NR_PAGES_SCANNED" => Some(Self::VmstatNrPagesScanned),
11584            "VMSTAT_WORKINGSET_REFAULT" => Some(Self::VmstatWorkingsetRefault),
11585            "VMSTAT_WORKINGSET_ACTIVATE" => Some(Self::VmstatWorkingsetActivate),
11586            "VMSTAT_WORKINGSET_NODERECLAIM" => Some(Self::VmstatWorkingsetNodereclaim),
11587            "VMSTAT_NR_ANON_TRANSPARENT_HUGEPAGES" => {
11588                Some(Self::VmstatNrAnonTransparentHugepages)
11589            }
11590            "VMSTAT_NR_FREE_CMA" => Some(Self::VmstatNrFreeCma),
11591            "VMSTAT_NR_SWAPCACHE" => Some(Self::VmstatNrSwapcache),
11592            "VMSTAT_NR_DIRTY_THRESHOLD" => Some(Self::VmstatNrDirtyThreshold),
11593            "VMSTAT_NR_DIRTY_BACKGROUND_THRESHOLD" => {
11594                Some(Self::VmstatNrDirtyBackgroundThreshold)
11595            }
11596            "VMSTAT_PGPGIN" => Some(Self::VmstatPgpgin),
11597            "VMSTAT_PGPGOUT" => Some(Self::VmstatPgpgout),
11598            "VMSTAT_PGPGOUTCLEAN" => Some(Self::VmstatPgpgoutclean),
11599            "VMSTAT_PSWPIN" => Some(Self::VmstatPswpin),
11600            "VMSTAT_PSWPOUT" => Some(Self::VmstatPswpout),
11601            "VMSTAT_PGALLOC_DMA" => Some(Self::VmstatPgallocDma),
11602            "VMSTAT_PGALLOC_NORMAL" => Some(Self::VmstatPgallocNormal),
11603            "VMSTAT_PGALLOC_MOVABLE" => Some(Self::VmstatPgallocMovable),
11604            "VMSTAT_PGFREE" => Some(Self::VmstatPgfree),
11605            "VMSTAT_PGACTIVATE" => Some(Self::VmstatPgactivate),
11606            "VMSTAT_PGDEACTIVATE" => Some(Self::VmstatPgdeactivate),
11607            "VMSTAT_PGFAULT" => Some(Self::VmstatPgfault),
11608            "VMSTAT_PGMAJFAULT" => Some(Self::VmstatPgmajfault),
11609            "VMSTAT_PGREFILL_DMA" => Some(Self::VmstatPgrefillDma),
11610            "VMSTAT_PGREFILL_NORMAL" => Some(Self::VmstatPgrefillNormal),
11611            "VMSTAT_PGREFILL_MOVABLE" => Some(Self::VmstatPgrefillMovable),
11612            "VMSTAT_PGSTEAL_KSWAPD_DMA" => Some(Self::VmstatPgstealKswapdDma),
11613            "VMSTAT_PGSTEAL_KSWAPD_NORMAL" => Some(Self::VmstatPgstealKswapdNormal),
11614            "VMSTAT_PGSTEAL_KSWAPD_MOVABLE" => Some(Self::VmstatPgstealKswapdMovable),
11615            "VMSTAT_PGSTEAL_DIRECT_DMA" => Some(Self::VmstatPgstealDirectDma),
11616            "VMSTAT_PGSTEAL_DIRECT_NORMAL" => Some(Self::VmstatPgstealDirectNormal),
11617            "VMSTAT_PGSTEAL_DIRECT_MOVABLE" => Some(Self::VmstatPgstealDirectMovable),
11618            "VMSTAT_PGSCAN_KSWAPD_DMA" => Some(Self::VmstatPgscanKswapdDma),
11619            "VMSTAT_PGSCAN_KSWAPD_NORMAL" => Some(Self::VmstatPgscanKswapdNormal),
11620            "VMSTAT_PGSCAN_KSWAPD_MOVABLE" => Some(Self::VmstatPgscanKswapdMovable),
11621            "VMSTAT_PGSCAN_DIRECT_DMA" => Some(Self::VmstatPgscanDirectDma),
11622            "VMSTAT_PGSCAN_DIRECT_NORMAL" => Some(Self::VmstatPgscanDirectNormal),
11623            "VMSTAT_PGSCAN_DIRECT_MOVABLE" => Some(Self::VmstatPgscanDirectMovable),
11624            "VMSTAT_PGSCAN_DIRECT_THROTTLE" => Some(Self::VmstatPgscanDirectThrottle),
11625            "VMSTAT_PGINODESTEAL" => Some(Self::VmstatPginodesteal),
11626            "VMSTAT_SLABS_SCANNED" => Some(Self::VmstatSlabsScanned),
11627            "VMSTAT_KSWAPD_INODESTEAL" => Some(Self::VmstatKswapdInodesteal),
11628            "VMSTAT_KSWAPD_LOW_WMARK_HIT_QUICKLY" => {
11629                Some(Self::VmstatKswapdLowWmarkHitQuickly)
11630            }
11631            "VMSTAT_KSWAPD_HIGH_WMARK_HIT_QUICKLY" => {
11632                Some(Self::VmstatKswapdHighWmarkHitQuickly)
11633            }
11634            "VMSTAT_PAGEOUTRUN" => Some(Self::VmstatPageoutrun),
11635            "VMSTAT_ALLOCSTALL" => Some(Self::VmstatAllocstall),
11636            "VMSTAT_PGROTATED" => Some(Self::VmstatPgrotated),
11637            "VMSTAT_DROP_PAGECACHE" => Some(Self::VmstatDropPagecache),
11638            "VMSTAT_DROP_SLAB" => Some(Self::VmstatDropSlab),
11639            "VMSTAT_PGMIGRATE_SUCCESS" => Some(Self::VmstatPgmigrateSuccess),
11640            "VMSTAT_PGMIGRATE_FAIL" => Some(Self::VmstatPgmigrateFail),
11641            "VMSTAT_COMPACT_MIGRATE_SCANNED" => Some(Self::VmstatCompactMigrateScanned),
11642            "VMSTAT_COMPACT_FREE_SCANNED" => Some(Self::VmstatCompactFreeScanned),
11643            "VMSTAT_COMPACT_ISOLATED" => Some(Self::VmstatCompactIsolated),
11644            "VMSTAT_COMPACT_STALL" => Some(Self::VmstatCompactStall),
11645            "VMSTAT_COMPACT_FAIL" => Some(Self::VmstatCompactFail),
11646            "VMSTAT_COMPACT_SUCCESS" => Some(Self::VmstatCompactSuccess),
11647            "VMSTAT_COMPACT_DAEMON_WAKE" => Some(Self::VmstatCompactDaemonWake),
11648            "VMSTAT_UNEVICTABLE_PGS_CULLED" => Some(Self::VmstatUnevictablePgsCulled),
11649            "VMSTAT_UNEVICTABLE_PGS_SCANNED" => Some(Self::VmstatUnevictablePgsScanned),
11650            "VMSTAT_UNEVICTABLE_PGS_RESCUED" => Some(Self::VmstatUnevictablePgsRescued),
11651            "VMSTAT_UNEVICTABLE_PGS_MLOCKED" => Some(Self::VmstatUnevictablePgsMlocked),
11652            "VMSTAT_UNEVICTABLE_PGS_MUNLOCKED" => {
11653                Some(Self::VmstatUnevictablePgsMunlocked)
11654            }
11655            "VMSTAT_UNEVICTABLE_PGS_CLEARED" => Some(Self::VmstatUnevictablePgsCleared),
11656            "VMSTAT_UNEVICTABLE_PGS_STRANDED" => Some(Self::VmstatUnevictablePgsStranded),
11657            "VMSTAT_NR_ZSPAGES" => Some(Self::VmstatNrZspages),
11658            "VMSTAT_NR_ION_HEAP" => Some(Self::VmstatNrIonHeap),
11659            "VMSTAT_NR_GPU_HEAP" => Some(Self::VmstatNrGpuHeap),
11660            "VMSTAT_ALLOCSTALL_DMA" => Some(Self::VmstatAllocstallDma),
11661            "VMSTAT_ALLOCSTALL_MOVABLE" => Some(Self::VmstatAllocstallMovable),
11662            "VMSTAT_ALLOCSTALL_NORMAL" => Some(Self::VmstatAllocstallNormal),
11663            "VMSTAT_COMPACT_DAEMON_FREE_SCANNED" => {
11664                Some(Self::VmstatCompactDaemonFreeScanned)
11665            }
11666            "VMSTAT_COMPACT_DAEMON_MIGRATE_SCANNED" => {
11667                Some(Self::VmstatCompactDaemonMigrateScanned)
11668            }
11669            "VMSTAT_NR_FASTRPC" => Some(Self::VmstatNrFastrpc),
11670            "VMSTAT_NR_INDIRECTLY_RECLAIMABLE" => {
11671                Some(Self::VmstatNrIndirectlyReclaimable)
11672            }
11673            "VMSTAT_NR_ION_HEAP_POOL" => Some(Self::VmstatNrIonHeapPool),
11674            "VMSTAT_NR_KERNEL_MISC_RECLAIMABLE" => {
11675                Some(Self::VmstatNrKernelMiscReclaimable)
11676            }
11677            "VMSTAT_NR_SHADOW_CALL_STACK_BYTES" => {
11678                Some(Self::VmstatNrShadowCallStackBytes)
11679            }
11680            "VMSTAT_NR_SHMEM_HUGEPAGES" => Some(Self::VmstatNrShmemHugepages),
11681            "VMSTAT_NR_SHMEM_PMDMAPPED" => Some(Self::VmstatNrShmemPmdmapped),
11682            "VMSTAT_NR_UNRECLAIMABLE_PAGES" => Some(Self::VmstatNrUnreclaimablePages),
11683            "VMSTAT_NR_ZONE_ACTIVE_ANON" => Some(Self::VmstatNrZoneActiveAnon),
11684            "VMSTAT_NR_ZONE_ACTIVE_FILE" => Some(Self::VmstatNrZoneActiveFile),
11685            "VMSTAT_NR_ZONE_INACTIVE_ANON" => Some(Self::VmstatNrZoneInactiveAnon),
11686            "VMSTAT_NR_ZONE_INACTIVE_FILE" => Some(Self::VmstatNrZoneInactiveFile),
11687            "VMSTAT_NR_ZONE_UNEVICTABLE" => Some(Self::VmstatNrZoneUnevictable),
11688            "VMSTAT_NR_ZONE_WRITE_PENDING" => Some(Self::VmstatNrZoneWritePending),
11689            "VMSTAT_OOM_KILL" => Some(Self::VmstatOomKill),
11690            "VMSTAT_PGLAZYFREE" => Some(Self::VmstatPglazyfree),
11691            "VMSTAT_PGLAZYFREED" => Some(Self::VmstatPglazyfreed),
11692            "VMSTAT_PGREFILL" => Some(Self::VmstatPgrefill),
11693            "VMSTAT_PGSCAN_DIRECT" => Some(Self::VmstatPgscanDirect),
11694            "VMSTAT_PGSCAN_KSWAPD" => Some(Self::VmstatPgscanKswapd),
11695            "VMSTAT_PGSKIP_DMA" => Some(Self::VmstatPgskipDma),
11696            "VMSTAT_PGSKIP_MOVABLE" => Some(Self::VmstatPgskipMovable),
11697            "VMSTAT_PGSKIP_NORMAL" => Some(Self::VmstatPgskipNormal),
11698            "VMSTAT_PGSTEAL_DIRECT" => Some(Self::VmstatPgstealDirect),
11699            "VMSTAT_PGSTEAL_KSWAPD" => Some(Self::VmstatPgstealKswapd),
11700            "VMSTAT_SWAP_RA" => Some(Self::VmstatSwapRa),
11701            "VMSTAT_SWAP_RA_HIT" => Some(Self::VmstatSwapRaHit),
11702            "VMSTAT_WORKINGSET_RESTORE" => Some(Self::VmstatWorkingsetRestore),
11703            "VMSTAT_ALLOCSTALL_DEVICE" => Some(Self::VmstatAllocstallDevice),
11704            "VMSTAT_ALLOCSTALL_DMA32" => Some(Self::VmstatAllocstallDma32),
11705            "VMSTAT_BALLOON_DEFLATE" => Some(Self::VmstatBalloonDeflate),
11706            "VMSTAT_BALLOON_INFLATE" => Some(Self::VmstatBalloonInflate),
11707            "VMSTAT_BALLOON_MIGRATE" => Some(Self::VmstatBalloonMigrate),
11708            "VMSTAT_CMA_ALLOC_FAIL" => Some(Self::VmstatCmaAllocFail),
11709            "VMSTAT_CMA_ALLOC_SUCCESS" => Some(Self::VmstatCmaAllocSuccess),
11710            "VMSTAT_NR_FILE_HUGEPAGES" => Some(Self::VmstatNrFileHugepages),
11711            "VMSTAT_NR_FILE_PMDMAPPED" => Some(Self::VmstatNrFilePmdmapped),
11712            "VMSTAT_NR_FOLL_PIN_ACQUIRED" => Some(Self::VmstatNrFollPinAcquired),
11713            "VMSTAT_NR_FOLL_PIN_RELEASED" => Some(Self::VmstatNrFollPinReleased),
11714            "VMSTAT_NR_SEC_PAGE_TABLE_PAGES" => Some(Self::VmstatNrSecPageTablePages),
11715            "VMSTAT_NR_SHADOW_CALL_STACK" => Some(Self::VmstatNrShadowCallStack),
11716            "VMSTAT_NR_SWAPCACHED" => Some(Self::VmstatNrSwapcached),
11717            "VMSTAT_NR_THROTTLED_WRITTEN" => Some(Self::VmstatNrThrottledWritten),
11718            "VMSTAT_PGALLOC_DEVICE" => Some(Self::VmstatPgallocDevice),
11719            "VMSTAT_PGALLOC_DMA32" => Some(Self::VmstatPgallocDma32),
11720            "VMSTAT_PGDEMOTE_DIRECT" => Some(Self::VmstatPgdemoteDirect),
11721            "VMSTAT_PGDEMOTE_KSWAPD" => Some(Self::VmstatPgdemoteKswapd),
11722            "VMSTAT_PGREUSE" => Some(Self::VmstatPgreuse),
11723            "VMSTAT_PGSCAN_ANON" => Some(Self::VmstatPgscanAnon),
11724            "VMSTAT_PGSCAN_FILE" => Some(Self::VmstatPgscanFile),
11725            "VMSTAT_PGSKIP_DEVICE" => Some(Self::VmstatPgskipDevice),
11726            "VMSTAT_PGSKIP_DMA32" => Some(Self::VmstatPgskipDma32),
11727            "VMSTAT_PGSTEAL_ANON" => Some(Self::VmstatPgstealAnon),
11728            "VMSTAT_PGSTEAL_FILE" => Some(Self::VmstatPgstealFile),
11729            "VMSTAT_THP_COLLAPSE_ALLOC" => Some(Self::VmstatThpCollapseAlloc),
11730            "VMSTAT_THP_COLLAPSE_ALLOC_FAILED" => {
11731                Some(Self::VmstatThpCollapseAllocFailed)
11732            }
11733            "VMSTAT_THP_DEFERRED_SPLIT_PAGE" => Some(Self::VmstatThpDeferredSplitPage),
11734            "VMSTAT_THP_FAULT_ALLOC" => Some(Self::VmstatThpFaultAlloc),
11735            "VMSTAT_THP_FAULT_FALLBACK" => Some(Self::VmstatThpFaultFallback),
11736            "VMSTAT_THP_FAULT_FALLBACK_CHARGE" => {
11737                Some(Self::VmstatThpFaultFallbackCharge)
11738            }
11739            "VMSTAT_THP_FILE_ALLOC" => Some(Self::VmstatThpFileAlloc),
11740            "VMSTAT_THP_FILE_FALLBACK" => Some(Self::VmstatThpFileFallback),
11741            "VMSTAT_THP_FILE_FALLBACK_CHARGE" => Some(Self::VmstatThpFileFallbackCharge),
11742            "VMSTAT_THP_FILE_MAPPED" => Some(Self::VmstatThpFileMapped),
11743            "VMSTAT_THP_MIGRATION_FAIL" => Some(Self::VmstatThpMigrationFail),
11744            "VMSTAT_THP_MIGRATION_SPLIT" => Some(Self::VmstatThpMigrationSplit),
11745            "VMSTAT_THP_MIGRATION_SUCCESS" => Some(Self::VmstatThpMigrationSuccess),
11746            "VMSTAT_THP_SCAN_EXCEED_NONE_PTE" => Some(Self::VmstatThpScanExceedNonePte),
11747            "VMSTAT_THP_SCAN_EXCEED_SHARE_PTE" => Some(Self::VmstatThpScanExceedSharePte),
11748            "VMSTAT_THP_SCAN_EXCEED_SWAP_PTE" => Some(Self::VmstatThpScanExceedSwapPte),
11749            "VMSTAT_THP_SPLIT_PAGE" => Some(Self::VmstatThpSplitPage),
11750            "VMSTAT_THP_SPLIT_PAGE_FAILED" => Some(Self::VmstatThpSplitPageFailed),
11751            "VMSTAT_THP_SPLIT_PMD" => Some(Self::VmstatThpSplitPmd),
11752            "VMSTAT_THP_SWPOUT" => Some(Self::VmstatThpSwpout),
11753            "VMSTAT_THP_SWPOUT_FALLBACK" => Some(Self::VmstatThpSwpoutFallback),
11754            "VMSTAT_THP_ZERO_PAGE_ALLOC" => Some(Self::VmstatThpZeroPageAlloc),
11755            "VMSTAT_THP_ZERO_PAGE_ALLOC_FAILED" => {
11756                Some(Self::VmstatThpZeroPageAllocFailed)
11757            }
11758            "VMSTAT_VMA_LOCK_ABORT" => Some(Self::VmstatVmaLockAbort),
11759            "VMSTAT_VMA_LOCK_MISS" => Some(Self::VmstatVmaLockMiss),
11760            "VMSTAT_VMA_LOCK_RETRY" => Some(Self::VmstatVmaLockRetry),
11761            "VMSTAT_VMA_LOCK_SUCCESS" => Some(Self::VmstatVmaLockSuccess),
11762            "VMSTAT_WORKINGSET_ACTIVATE_ANON" => Some(Self::VmstatWorkingsetActivateAnon),
11763            "VMSTAT_WORKINGSET_ACTIVATE_FILE" => Some(Self::VmstatWorkingsetActivateFile),
11764            "VMSTAT_WORKINGSET_NODES" => Some(Self::VmstatWorkingsetNodes),
11765            "VMSTAT_WORKINGSET_REFAULT_ANON" => Some(Self::VmstatWorkingsetRefaultAnon),
11766            "VMSTAT_WORKINGSET_REFAULT_FILE" => Some(Self::VmstatWorkingsetRefaultFile),
11767            "VMSTAT_WORKINGSET_RESTORE_ANON" => Some(Self::VmstatWorkingsetRestoreAnon),
11768            "VMSTAT_WORKINGSET_RESTORE_FILE" => Some(Self::VmstatWorkingsetRestoreFile),
11769            _ => None,
11770        }
11771    }
11772}
11773/// This file defines the configuration for the Linux /proc poller data source,
11774/// which injects counters in the trace.
11775/// Counters that are needed in the trace must be explicitly listed in the
11776/// *_counters fields. This is to avoid spamming the trace with all counters
11777/// at all times.
11778/// The sampling rate is configurable. All polling rates (*_period_ms) need
11779/// to be integer multiples of each other.
11780/// OK:     \[10ms, 10ms, 10ms\],  \[10ms, 20ms, 10ms\],  \[10ms, 20ms, 60ms\]
11781/// Not OK: \[10ms, 10ms, 11ms\],  \[10ms, 15ms, 20ms\]
11782#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
11783pub struct SysStatsConfig {
11784    /// Polls /proc/meminfo every X ms, if non-zero.
11785    /// This is required to be > 10ms to avoid excessive CPU usage.
11786    /// Cost: 0.3 ms \[read\] + 0.07 ms \[parse + trace injection\]
11787    #[prost(uint32, optional, tag = "1")]
11788    pub meminfo_period_ms: ::core::option::Option<u32>,
11789    /// If empty all known counters are reported. Otherwise, only the counters
11790    /// specified below are reported.
11791    #[prost(enumeration = "MeminfoCounters", repeated, packed = "false", tag = "2")]
11792    pub meminfo_counters: ::prost::alloc::vec::Vec<i32>,
11793    /// Polls /proc/vmstat every X ms, if non-zero.
11794    /// This is required to be > 10ms to avoid excessive CPU usage.
11795    /// Cost: 0.2 ms \[read\] + 0.3 ms \[parse + trace injection\]
11796    #[prost(uint32, optional, tag = "3")]
11797    pub vmstat_period_ms: ::core::option::Option<u32>,
11798    #[prost(enumeration = "VmstatCounters", repeated, packed = "false", tag = "4")]
11799    pub vmstat_counters: ::prost::alloc::vec::Vec<i32>,
11800    /// Pols /proc/stat every X ms, if non-zero.
11801    /// This is required to be > 10ms to avoid excessive CPU usage.
11802    /// Cost: 4.1 ms \[read\] + 1.9 ms \[parse + trace injection\]
11803    #[prost(uint32, optional, tag = "5")]
11804    pub stat_period_ms: ::core::option::Option<u32>,
11805    #[prost(
11806        enumeration = "sys_stats_config::StatCounters",
11807        repeated,
11808        packed = "false",
11809        tag = "6"
11810    )]
11811    pub stat_counters: ::prost::alloc::vec::Vec<i32>,
11812    /// Polls /sys/devfreq/*/curfreq every X ms, if non-zero.
11813    /// This is required to be > 10ms to avoid excessive CPU usage.
11814    /// This option can be used to record unchanging values.
11815    /// Updates from frequency changes can come from ftrace/set_clock_rate.
11816    #[prost(uint32, optional, tag = "7")]
11817    pub devfreq_period_ms: ::core::option::Option<u32>,
11818    /// Polls /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq every X ms.
11819    /// This is required to be > 10ms to avoid excessive CPU usage.
11820    #[prost(uint32, optional, tag = "8")]
11821    pub cpufreq_period_ms: ::core::option::Option<u32>,
11822    /// Polls /proc/buddyinfo every X ms, if non-zero.
11823    /// This is required to be > 10ms to avoid excessive CPU usage.
11824    #[prost(uint32, optional, tag = "9")]
11825    pub buddyinfo_period_ms: ::core::option::Option<u32>,
11826    /// Polls /proc/diskstats every X ms, if non-zero.
11827    /// This is required to be > 10ms to avoid excessive CPU usage.
11828    #[prost(uint32, optional, tag = "10")]
11829    pub diskstat_period_ms: ::core::option::Option<u32>,
11830    /// Polls /proc/pressure/* every X ms, if non-zero.
11831    /// This is required to be > 10ms to avoid excessive CPU usage.
11832    #[prost(uint32, optional, tag = "11")]
11833    pub psi_period_ms: ::core::option::Option<u32>,
11834    /// Polls /sys/class/thermal/* every X ms, if non-zero.
11835    /// This is required to be > 10ms to avoid excessive CPU usage.
11836    #[prost(uint32, optional, tag = "12")]
11837    pub thermal_period_ms: ::core::option::Option<u32>,
11838    /// Polls /sys/devices/system/cpu/cpu*/cpuidle/state* every X ms, if non-zero.
11839    /// This is required to be > 10ms to avoid excessive CPU usage.
11840    #[prost(uint32, optional, tag = "13")]
11841    pub cpuidle_period_ms: ::core::option::Option<u32>,
11842    /// Polls device-specific GPU frequency info every X ms, if non-zero.
11843    /// This is required to be > 10ms to avoid excessive CPU usage.
11844    #[prost(uint32, optional, tag = "14")]
11845    pub gpufreq_period_ms: ::core::option::Option<u32>,
11846    /// Polls /proc/slabinfo every X ms, if non-zero.
11847    /// This is required to be > 10ms to avoid excessive CPU usage.
11848    #[prost(uint32, optional, tag = "15")]
11849    pub slab_period_ms: ::core::option::Option<u32>,
11850}
11851/// Nested message and enum types in `SysStatsConfig`.
11852pub mod sys_stats_config {
11853    #[derive(
11854        Clone,
11855        Copy,
11856        Debug,
11857        PartialEq,
11858        Eq,
11859        Hash,
11860        PartialOrd,
11861        Ord,
11862        ::prost::Enumeration
11863    )]
11864    #[repr(i32)]
11865    pub enum StatCounters {
11866        StatUnspecified = 0,
11867        StatCpuTimes = 1,
11868        StatIrqCounts = 2,
11869        StatSoftirqCounts = 3,
11870        StatForkCount = 4,
11871    }
11872    impl StatCounters {
11873        /// String value of the enum field names used in the ProtoBuf definition.
11874        ///
11875        /// The values are not transformed in any way and thus are considered stable
11876        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
11877        pub fn as_str_name(&self) -> &'static str {
11878            match self {
11879                Self::StatUnspecified => "STAT_UNSPECIFIED",
11880                Self::StatCpuTimes => "STAT_CPU_TIMES",
11881                Self::StatIrqCounts => "STAT_IRQ_COUNTS",
11882                Self::StatSoftirqCounts => "STAT_SOFTIRQ_COUNTS",
11883                Self::StatForkCount => "STAT_FORK_COUNT",
11884            }
11885        }
11886        /// Creates an enum from field names used in the ProtoBuf definition.
11887        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
11888            match value {
11889                "STAT_UNSPECIFIED" => Some(Self::StatUnspecified),
11890                "STAT_CPU_TIMES" => Some(Self::StatCpuTimes),
11891                "STAT_IRQ_COUNTS" => Some(Self::StatIrqCounts),
11892                "STAT_SOFTIRQ_COUNTS" => Some(Self::StatSoftirqCounts),
11893                "STAT_FORK_COUNT" => Some(Self::StatForkCount),
11894                _ => None,
11895            }
11896        }
11897    }
11898}
11899/// The configuration for a fake producer used in tests.
11900#[derive(Clone, PartialEq, ::prost::Message)]
11901pub struct TestConfig {
11902    /// The number of messages the fake producer should send.
11903    #[prost(uint32, optional, tag = "1")]
11904    pub message_count: ::core::option::Option<u32>,
11905    /// The maximum number of messages which should be sent each second.
11906    /// The actual obserced speed may be lower if the producer is unable to
11907    /// work fast enough.
11908    /// If this is zero or unset, the producer will send as fast as possible.
11909    #[prost(uint32, optional, tag = "2")]
11910    pub max_messages_per_second: ::core::option::Option<u32>,
11911    /// The seed value for a simple multiplicative congruential pseudo-random
11912    /// number sequence.
11913    #[prost(uint32, optional, tag = "3")]
11914    pub seed: ::core::option::Option<u32>,
11915    /// The size of each message in bytes. Should be greater than or equal 5 to
11916    /// account for the number of bytes needed to encode the random number and a
11917    /// null byte for the string.
11918    #[prost(uint32, optional, tag = "4")]
11919    pub message_size: ::core::option::Option<u32>,
11920    /// Whether the producer should send a event batch when the data source is
11921    /// is initially registered.
11922    #[prost(bool, optional, tag = "5")]
11923    pub send_batch_on_register: ::core::option::Option<bool>,
11924    #[prost(message, optional, tag = "6")]
11925    pub dummy_fields: ::core::option::Option<test_config::DummyFields>,
11926}
11927/// Nested message and enum types in `TestConfig`.
11928pub mod test_config {
11929    #[derive(Clone, PartialEq, ::prost::Message)]
11930    pub struct DummyFields {
11931        #[prost(uint32, optional, tag = "1")]
11932        pub field_uint32: ::core::option::Option<u32>,
11933        #[prost(int32, optional, tag = "2")]
11934        pub field_int32: ::core::option::Option<i32>,
11935        #[prost(uint64, optional, tag = "3")]
11936        pub field_uint64: ::core::option::Option<u64>,
11937        #[prost(int64, optional, tag = "4")]
11938        pub field_int64: ::core::option::Option<i64>,
11939        #[prost(fixed64, optional, tag = "5")]
11940        pub field_fixed64: ::core::option::Option<u64>,
11941        #[prost(sfixed64, optional, tag = "6")]
11942        pub field_sfixed64: ::core::option::Option<i64>,
11943        #[prost(fixed32, optional, tag = "7")]
11944        pub field_fixed32: ::core::option::Option<u32>,
11945        #[prost(sfixed32, optional, tag = "8")]
11946        pub field_sfixed32: ::core::option::Option<i32>,
11947        #[prost(double, optional, tag = "9")]
11948        pub field_double: ::core::option::Option<f64>,
11949        #[prost(float, optional, tag = "10")]
11950        pub field_float: ::core::option::Option<f32>,
11951        #[prost(sint64, optional, tag = "11")]
11952        pub field_sint64: ::core::option::Option<i64>,
11953        #[prost(sint32, optional, tag = "12")]
11954        pub field_sint32: ::core::option::Option<i32>,
11955        #[prost(string, optional, tag = "13")]
11956        pub field_string: ::core::option::Option<::prost::alloc::string::String>,
11957        #[prost(bytes = "vec", optional, tag = "14")]
11958        pub field_bytes: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
11959    }
11960}
11961/// The following fields define the set of enabled trace categories. Each list
11962/// item is a glob.
11963///
11964/// To determine if category is enabled, it is checked against the filters in
11965/// the following order:
11966///
11967///    1. Exact matches in enabled categories.
11968///    2. Exact matches in enabled tags.
11969///    3. Exact matches in disabled categories.
11970///    4. Exact matches in disabled tags.
11971///    5. Pattern matches in enabled categories.
11972///    6. Pattern matches in enabled tags.
11973///    7. Pattern matches in disabled categories.
11974///    8. Pattern matches in disabled tags.
11975///
11976/// If none of the steps produced a match:
11977///   - In the C++ SDK (`perfetto::Category`), categories are enabled by
11978///   default.
11979///   - In the C SDK (`PerfettoTeCategory`), categories are disabled by default.
11980///
11981/// Examples:
11982///
11983///   - To enable all non-slow/debug categories:
11984///
11985///        enabled_categories: "*"
11986///
11987///   - To enable specific categories:
11988///
11989///        disabled_categories: "*"
11990///        enabled_categories: "my_category"
11991///        enabled_categories: "my_category2"
11992///
11993///   - To enable only categories with a specific tag:
11994///
11995///        disabled_tags: "*"
11996///        enabled_tags: "my_tag"
11997///
11998#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
11999pub struct TrackEventConfig {
12000    /// Default: \[\]
12001    #[prost(string, repeated, tag = "1")]
12002    pub disabled_categories: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
12003    /// Default: \[\]
12004    #[prost(string, repeated, tag = "2")]
12005    pub enabled_categories: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
12006    /// Default: \["slow", "debug"\]
12007    #[prost(string, repeated, tag = "3")]
12008    pub disabled_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
12009    /// Default: \[\]
12010    #[prost(string, repeated, tag = "4")]
12011    pub enabled_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
12012    /// Default: false (i.e. enabled by default)
12013    #[prost(bool, optional, tag = "5")]
12014    pub disable_incremental_timestamps: ::core::option::Option<bool>,
12015    /// Allows to specify a custom unit different than the default (ns).
12016    /// Also affects thread timestamps if enable_thread_time_sampling = true.
12017    /// A multiplier of 1000 means that a timestamp = 3 should be interpreted as
12018    /// 3000 ns = 3 us.
12019    /// Default: 1 (if unset, it should be read as 1).
12020    #[prost(uint64, optional, tag = "6")]
12021    pub timestamp_unit_multiplier: ::core::option::Option<u64>,
12022    /// Default: false (i.e. debug_annotations is NOT filtered out by default)
12023    /// When true, any debug annotations provided as arguments to the
12024    /// TRACE_EVENT macros are not written into the trace. Typed arguments will
12025    /// still be emitted even if set to true.
12026    #[prost(bool, optional, tag = "7")]
12027    pub filter_debug_annotations: ::core::option::Option<bool>,
12028    /// Default: false (i.e. disabled)
12029    /// When true, the SDK samples and emits the current thread time counter value
12030    /// for each event on the current thread's track. This value represents the
12031    /// total CPU time consumed by that thread since its creation.
12032    /// Learn more: "CLOCK_THREAD_CPUTIME_ID" flag at
12033    /// <https://man7.org/linux/man-pages/man3/clock_gettime.3.html>
12034    #[prost(bool, optional, tag = "8")]
12035    pub enable_thread_time_sampling: ::core::option::Option<bool>,
12036    /// When enable_thread_time_sampling is true, and this is specified, thread
12037    /// time is sampled only if the elapsed wall time >
12038    /// `thread_time_subsampling_ns`. Otherwise, thread time is considered nil.
12039    /// Effectively, this means thread time will have a leeway of
12040    /// `thread_time_subsampling_ns` and won't be emitted for shorter events.
12041    #[prost(uint64, optional, tag = "10")]
12042    pub thread_time_subsampling_ns: ::core::option::Option<u64>,
12043    /// Default: false (i.e. dynamic event names are NOT filtered out by default)
12044    /// When true, event_names wrapped in perfetto::DynamicString will be filtered
12045    /// out.
12046    #[prost(bool, optional, tag = "9")]
12047    pub filter_dynamic_event_names: ::core::option::Option<bool>,
12048}
12049/// This data-source does a one-off recording of system information when
12050/// the trace starts.
12051/// Currently this includes:
12052/// - Values of
12053/// /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies This
12054/// datasource has no configuration options at present.
12055#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
12056pub struct SystemInfoConfig {
12057    /// If true, records hardware interrupt ID-to-name mappings from
12058    /// /proc/interrupts.
12059    #[prost(bool, optional, tag = "1")]
12060    pub irq_names: ::core::option::Option<bool>,
12061}
12062#[derive(Clone, PartialEq, ::prost::Message)]
12063pub struct ChromiumHistogramSamplesConfig {
12064    /// List of histograms to record. If no histogram is specified, all histograms
12065    /// are recorded.
12066    #[prost(message, repeated, tag = "1")]
12067    pub histograms: ::prost::alloc::vec::Vec<
12068        chromium_histogram_samples_config::HistogramSample,
12069    >,
12070    /// Default: false (i.e. histogram names are NOT filtered out by default)
12071    /// When true, histogram_name will be filtered out.
12072    #[prost(bool, optional, tag = "2")]
12073    pub filter_histogram_names: ::core::option::Option<bool>,
12074}
12075/// Nested message and enum types in `ChromiumHistogramSamplesConfig`.
12076pub mod chromium_histogram_samples_config {
12077    /// Records when a value within the specified bounds \[min_value, max_value\] is
12078    /// emitted into a Chrome histogram.
12079    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
12080    pub struct HistogramSample {
12081        #[prost(string, optional, tag = "1")]
12082        pub histogram_name: ::core::option::Option<::prost::alloc::string::String>,
12083        #[prost(int64, optional, tag = "2")]
12084        pub min_value: ::core::option::Option<i64>,
12085        #[prost(int64, optional, tag = "3")]
12086        pub max_value: ::core::option::Option<i64>,
12087    }
12088}
12089#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
12090pub struct ChromiumSamplingHeapProfilerConfig {
12091    /// Sampling interval in bytes.
12092    #[prost(uint64, optional, tag = "1")]
12093    pub sampling_interval_bytes: ::core::option::Option<u64>,
12094    /// Sampling interval in milliseconds.
12095    #[prost(uint32, optional, tag = "2")]
12096    pub sampling_interval_ms: ::core::option::Option<u32>,
12097}
12098#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
12099pub struct ChromiumStackSamplingProfilerConfig {
12100    /// Sampling interval in milliseconds.
12101    #[prost(uint32, optional, tag = "1")]
12102    pub sampling_interval_ms: ::core::option::Option<u32>,
12103}
12104/// Configuration for the "linux.systemd_journald" data source.
12105/// Next field id: 4
12106#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
12107pub struct SystemdJournaldConfig {
12108    /// Minimum syslog priority level to capture (inclusive).
12109    /// 0=EMERG, 1=ALERT, 2=CRIT, 3=ERR, 4=WARNING, 5=NOTICE, 6=INFO, 7=DEBUG.
12110    /// Default (0 / unset): capture all priorities (equivalent to 7).
12111    #[prost(uint32, optional, tag = "1")]
12112    pub min_prio: ::core::option::Option<u32>,
12113    /// If non-empty, only capture journal entries whose SYSLOG_IDENTIFIER
12114    /// matches one of these strings.
12115    #[prost(string, repeated, tag = "2")]
12116    pub filter_identifiers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
12117    /// If non-empty, only capture journal entries from these systemd unit names.
12118    #[prost(string, repeated, tag = "3")]
12119    pub filter_units: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
12120}
12121/// QnxConfig is used with trace_qnx_probes build from
12122/// <https://github.com/qnx-ports/perfetto>
12123#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
12124pub struct QnxConfig {
12125    /// The number of buffers that tracelog will init for the QNX trace.
12126    #[prost(uint32, optional, tag = "1")]
12127    pub qnx_kernel_buffers: ::core::option::Option<u32>,
12128    /// The number of kernel buffers that tracelog will init for the QNX trace.
12129    #[prost(uint32, optional, tag = "2")]
12130    pub qnx_kernel_kbuffers: ::core::option::Option<u32>,
12131    /// Flag indicating whether the QNX kernel tracing should produce wide
12132    /// events which contain additional data or fast events which are most
12133    /// concise. In fast mode we lose the priority information
12134    #[prost(bool, optional, tag = "3")]
12135    pub qnx_kernel_wide_events: ::core::option::Option<bool>,
12136    /// The number of pages initialized by default the parser's page cache.
12137    #[prost(uint32, optional, tag = "4")]
12138    pub qnx_cache_pages: ::core::option::Option<u32>,
12139    /// The max pages the page cache should allocate (must be at least as big)
12140    /// as the qnx_cache_pages value. Using -1 will allow the cache to grow
12141    /// unbounded. The cache will prefer to re-use existing pages so growth will
12142    /// only happen when needed (when parser is not keeping up).
12143    #[prost(int32, optional, tag = "5")]
12144    pub qnx_cache_max_pages: ::core::option::Option<i32>,
12145    /// The initial size of the the buffer used to hold the trace header values
12146    /// this dynamic buffer will grow as needed but reallocs can be avoided by
12147    /// selecting an initial size large enough to hold all the initial header
12148    /// data.
12149    #[prost(uint32, optional, tag = "6")]
12150    pub qnx_trace_buffer_init_bytes: ::core::option::Option<u32>,
12151}
12152/// The configuration that is passed to each data source when starting tracing.
12153///
12154/// Keep the lower IDs (up to 99) for fields that are *not* specific to
12155/// data-sources and needs to be processed by the traced daemon.
12156///
12157/// All data source config fields must be marked as \[lazy=true\]. This prevents
12158/// the proto-to-cpp generator from recursing into those when generating the
12159/// cpp classes and polluting tracing/core with data-source-specific classes.
12160/// Instead they are treated as opaque strings containing raw proto bytes.
12161///
12162/// Next id: 147
12163#[derive(Clone, PartialEq, ::prost::Message)]
12164pub struct DataSourceConfig {
12165    /// Data source unique name, e.g., "linux.ftrace". This must match
12166    /// the name passed by the data source when it registers (see
12167    /// RegisterDataSource()).
12168    #[prost(string, optional, tag = "1")]
12169    pub name: ::core::option::Option<::prost::alloc::string::String>,
12170    /// The index of the logging buffer where TracePacket(s) will be stored.
12171    /// This field is quite subtle as it has a double semantic:
12172    /// 1) When the config is passed, this field is a 0-based index relative to the
12173    ///     buffer array in the TraceConfig and defines the mapping between data
12174    ///     sources and config. From v54 this is optional because the user can
12175    ///     instead use target_buffer_name.
12176    /// 2) When the TracingService issues a SetupDataSource/StartDataSource to the
12177    ///     producer, it overwrites this field with the global buffer index (which
12178    ///     depends on other tracing sessions active). This tells the producer which
12179    ///     buffer id should be passed to CreateTraceWriter. In this case, the trace
12180    ///     service always sets the resolved global id, even when using
12181    ///     `target_buffer_name`.
12182    /// In hindsight we should have used two different fields given even in v0 they
12183    /// had a different semantic. But now it's too late as this would be a major
12184    /// protocol breaking change.
12185    #[prost(uint32, optional, tag = "2")]
12186    pub target_buffer: ::core::option::Option<u32>,
12187    /// Alternative to |target_buffer|. References a buffer by name (as specified
12188    /// in TraceConfig.BufferConfig.name) rather than by index. This is more
12189    /// readable and less error-prone than using buffer indices.
12190    /// If both |target_buffer| and |target_buffer_name| are specified, they must
12191    /// refer to the same buffer, otherwise the service will reject the config.
12192    /// Using both fields allows configs to work with both old and new versions
12193    /// of the tracing service. Introduced in v54.
12194    #[prost(string, optional, tag = "11")]
12195    pub target_buffer_name: ::core::option::Option<::prost::alloc::string::String>,
12196    /// Set by the service to indicate the duration of the trace.
12197    /// DO NOT SET in consumer as this will be overridden by the service.
12198    #[prost(uint32, optional, tag = "3")]
12199    pub trace_duration_ms: ::core::option::Option<u32>,
12200    /// If true, |trace_duration_ms| should count also time in suspend. This
12201    /// is propagated from TraceConfig.prefer_suspend_clock_for_duration.
12202    #[prost(bool, optional, tag = "122")]
12203    pub prefer_suspend_clock_for_duration: ::core::option::Option<bool>,
12204    /// Set by the service to indicate how long it waits after StopDataSource.
12205    /// DO NOT SET in consumer as this will be overridden by the service.
12206    #[prost(uint32, optional, tag = "7")]
12207    pub stop_timeout_ms: ::core::option::Option<u32>,
12208    /// Set by the service to indicate whether this tracing session has extra
12209    /// guardrails.
12210    /// DO NOT SET in consumer as this will be overridden by the service.
12211    #[prost(bool, optional, tag = "6")]
12212    pub enable_extra_guardrails: ::core::option::Option<bool>,
12213    /// Set by the service to indicate which user initiated this trace.
12214    /// DO NOT SET in consumer as this will be overridden by the service.
12215    #[prost(enumeration = "data_source_config::SessionInitiator", optional, tag = "8")]
12216    pub session_initiator: ::core::option::Option<i32>,
12217    /// Set by the service to indicate which tracing session the data source
12218    /// belongs to. The intended use case for this is checking if two data sources,
12219    /// one of which produces metadata for the other one, belong to the same trace
12220    /// session and hence should be linked together.
12221    /// This field was introduced in Aug 2018 after Android P.
12222    /// DO NOT SET in consumer as this will be overridden by the service.
12223    #[prost(uint64, optional, tag = "4")]
12224    pub tracing_session_id: ::core::option::Option<u64>,
12225    /// How to behave when the producer runs out of space in the shared memory
12226    /// buffer. This is only honored by some data sources (in the SDK, the data
12227    /// sources registered with a configurable buffer exhausted policy).
12228    #[prost(
12229        enumeration = "data_source_config::BufferExhaustedPolicy",
12230        optional,
12231        tag = "9"
12232    )]
12233    pub buffer_exhausted_policy: ::core::option::Option<i32>,
12234    #[prost(message, optional, tag = "10")]
12235    pub priority_boost: ::core::option::Option<PriorityBoostConfig>,
12236    /// If specified, the data source requires the tracing service to process
12237    /// overwritten packets (patches) using a ProtoVM instance with this config.
12238    /// The ProtoVM program is specified at data source registration time through
12239    /// the descriptor.
12240    ///
12241    /// TODO(primiano): today when we enable a protovm_config, we actually accept
12242    /// that if N producers advertise M different versions of the same program we
12243    /// will create M instances of that program.
12244    /// To overcome this, we could move the program to the TraceConfig. But doing
12245    /// so would bloat the trace config size too big and create problems to statsd.
12246    /// Once the config store (b/482305876) exists we should move protovm programs
12247    /// onto that.
12248    #[prost(message, optional, tag = "12")]
12249    pub protovm_config: ::core::option::Option<ProtoVmConfig>,
12250    /// Data source name: linux.ftrace
12251    #[prost(message, optional, tag = "100")]
12252    pub ftrace_config: ::core::option::Option<FtraceConfig>,
12253    /// Data source name: linux.inode_file_map
12254    #[prost(message, optional, tag = "102")]
12255    pub inode_file_config: ::core::option::Option<InodeFileConfig>,
12256    /// Data source name: linux.process_stats
12257    #[prost(message, optional, tag = "103")]
12258    pub process_stats_config: ::core::option::Option<ProcessStatsConfig>,
12259    /// Data source name: linux.sys_stats
12260    #[prost(message, optional, tag = "104")]
12261    pub sys_stats_config: ::core::option::Option<SysStatsConfig>,
12262    /// Data source name: android.heapprofd
12263    /// Introduced in Android 10.
12264    #[prost(message, optional, tag = "105")]
12265    pub heapprofd_config: ::core::option::Option<HeapprofdConfig>,
12266    /// Data source name: android.java_hprof
12267    /// Introduced in Android 11.
12268    #[prost(message, optional, tag = "110")]
12269    pub java_hprof_config: ::core::option::Option<JavaHprofConfig>,
12270    /// Data source name: android.power
12271    #[prost(message, optional, tag = "106")]
12272    pub android_power_config: ::core::option::Option<AndroidPowerConfig>,
12273    /// Data source name: android.log
12274    #[prost(message, optional, tag = "107")]
12275    pub android_log_config: ::core::option::Option<AndroidLogConfig>,
12276    /// Data source name: gpu.counters
12277    #[prost(message, optional, tag = "108")]
12278    pub gpu_counter_config: ::core::option::Option<GpuCounterConfig>,
12279    /// Data source name: android.game_interventions
12280    #[prost(message, optional, tag = "116")]
12281    pub android_game_intervention_list_config: ::core::option::Option<
12282        AndroidGameInterventionListConfig,
12283    >,
12284    /// Data source name: android.packages_list
12285    #[prost(message, optional, tag = "109")]
12286    pub packages_list_config: ::core::option::Option<PackagesListConfig>,
12287    /// Data source name: linux.perf
12288    #[prost(message, optional, tag = "111")]
12289    pub perf_event_config: ::core::option::Option<PerfEventConfig>,
12290    /// Data source name: vulkan.memory_tracker
12291    #[prost(message, optional, tag = "112")]
12292    pub vulkan_memory_config: ::core::option::Option<VulkanMemoryConfig>,
12293    /// Data source name: track_event
12294    #[prost(message, optional, tag = "113")]
12295    pub track_event_config: ::core::option::Option<TrackEventConfig>,
12296    /// Data source name: android.polled_state
12297    #[prost(message, optional, tag = "114")]
12298    pub android_polled_state_config: ::core::option::Option<AndroidPolledStateConfig>,
12299    /// Data source name: android.system_property
12300    #[prost(message, optional, tag = "118")]
12301    pub android_system_property_config: ::core::option::Option<
12302        AndroidSystemPropertyConfig,
12303    >,
12304    /// Data source name: android.statsd
12305    #[prost(message, optional, tag = "117")]
12306    pub statsd_tracing_config: ::core::option::Option<StatsdTracingConfig>,
12307    /// Data source name: linux.system_info
12308    #[prost(message, optional, tag = "119")]
12309    pub system_info_config: ::core::option::Option<SystemInfoConfig>,
12310    /// Data source name: linux.frozen_ftrace
12311    #[prost(message, optional, tag = "136")]
12312    pub frozen_ftrace_config: ::core::option::Option<FrozenFtraceConfig>,
12313    /// Chrome is special as it doesn't use the perfetto IPC layer. We want to
12314    /// avoid proto serialization and de-serialization there because that would
12315    /// just add extra hops on top of the Mojo ser/des. Instead we auto-generate a
12316    /// C++ class for it so it can pass around plain C++ objets.
12317    #[prost(message, optional, tag = "101")]
12318    pub chrome_config: ::core::option::Option<ChromeConfig>,
12319    /// Data source name: code.v8.dev
12320    #[prost(message, optional, tag = "127")]
12321    pub v8_config: ::core::option::Option<V8Config>,
12322    /// If an interceptor is specified here, packets for this data source will be
12323    /// rerouted to the interceptor instead of the main trace buffer. This can be
12324    /// used, for example, to write trace data into ETW or for logging trace points
12325    /// to the console.
12326    ///
12327    /// Note that interceptors are only supported by data sources registered
12328    /// through the Perfetto SDK API. Data sources that don't use that API (e.g.,
12329    /// traced_probes) may not support interception.
12330    #[prost(message, optional, tag = "115")]
12331    pub interceptor_config: ::core::option::Option<InterceptorConfig>,
12332    /// Data source name: android.network_packets.
12333    /// Introduced in Android 14 (U).
12334    #[prost(message, optional, tag = "120")]
12335    pub network_packet_trace_config: ::core::option::Option<NetworkPacketTraceConfig>,
12336    /// Data source name: android.surfaceflinger.layers
12337    #[prost(message, optional, tag = "121")]
12338    pub surfaceflinger_layers_config: ::core::option::Option<SurfaceFlingerLayersConfig>,
12339    /// Data source name: android.surfaceflinger.transactions
12340    #[prost(message, optional, tag = "123")]
12341    pub surfaceflinger_transactions_config: ::core::option::Option<
12342        SurfaceFlingerTransactionsConfig,
12343    >,
12344    /// Data source name: android.sdk_sysprop_guard
12345    /// Introduced in Android 14 (U) QPR1.
12346    #[prost(message, optional, tag = "124")]
12347    pub android_sdk_sysprop_guard_config: ::core::option::Option<
12348        AndroidSdkSyspropGuardConfig,
12349    >,
12350    /// Data source name: windows.etw
12351    #[prost(message, optional, tag = "125")]
12352    pub etw_config: ::core::option::Option<EtwConfig>,
12353    /// Data source name: android.protolog
12354    #[prost(message, optional, tag = "126")]
12355    pub protolog_config: ::core::option::Option<ProtoLogConfig>,
12356    /// Data source name: android.input.inputevent
12357    #[prost(message, optional, tag = "128")]
12358    pub android_input_event_config: ::core::option::Option<AndroidInputEventConfig>,
12359    /// Data source name: android.pixel.modem
12360    #[prost(message, optional, tag = "129")]
12361    pub pixel_modem_config: ::core::option::Option<PixelModemConfig>,
12362    /// Data source name: android.windowmanager
12363    #[prost(message, optional, tag = "130")]
12364    pub windowmanager_config: ::core::option::Option<WindowManagerConfig>,
12365    /// Data source name: org.chromium.system_metrics
12366    #[prost(message, optional, tag = "131")]
12367    pub chromium_system_metrics: ::core::option::Option<ChromiumSystemMetricsConfig>,
12368    /// Data source name: android.kernel_wakelocks
12369    #[prost(message, optional, tag = "132")]
12370    pub kernel_wakelocks_config: ::core::option::Option<KernelWakelocksConfig>,
12371    /// Data source name: gpu.renderstages
12372    #[prost(message, optional, tag = "133")]
12373    pub gpu_renderstages_config: ::core::option::Option<GpuRenderStagesConfig>,
12374    /// Data source name: org.chromium.histogram_samples
12375    #[prost(message, optional, tag = "134")]
12376    pub chromium_histogram_samples: ::core::option::Option<
12377        ChromiumHistogramSamplesConfig,
12378    >,
12379    /// Data source name: android.app_wakelocks
12380    #[prost(message, optional, tag = "135")]
12381    pub app_wakelocks_config: ::core::option::Option<AppWakelocksConfig>,
12382    /// Data source name: android.cpu_per_uid
12383    #[prost(message, optional, tag = "137")]
12384    pub cpu_per_uid_config: ::core::option::Option<CpuPerUidConfig>,
12385    /// Data source name: android.user_list
12386    #[prost(message, optional, tag = "138")]
12387    pub user_list_config: ::core::option::Option<AndroidUserListConfig>,
12388    /// Data source name: android.inputmethod
12389    #[prost(message, optional, tag = "139")]
12390    pub inputmethod_config: ::core::option::Option<InputMethodConfig>,
12391    /// Data source name: android.aflags
12392    #[prost(message, optional, tag = "140")]
12393    pub android_aflags_config: ::core::option::Option<AndroidAflagsConfig>,
12394    /// Data source name: linux.systemd_journald
12395    #[prost(message, optional, tag = "141")]
12396    pub journald_config: ::core::option::Option<SystemdJournaldConfig>,
12397    /// Data source name: android.display.video
12398    #[prost(message, optional, tag = "142")]
12399    pub display_video_config: ::core::option::Option<DisplayVideoConfig>,
12400    /// Data source name: org.chromium.sampler_profiler
12401    #[prost(message, optional, tag = "143")]
12402    pub chromium_stack_sampling_profiler: ::core::option::Option<
12403        ChromiumStackSamplingProfilerConfig,
12404    >,
12405    /// Data source name: org.chromium.native_heap_profiler
12406    #[prost(message, optional, tag = "144")]
12407    pub chromium_sampling_heap_profiler: ::core::option::Option<
12408        ChromiumSamplingHeapProfilerConfig,
12409    >,
12410    /// Data source name: android.process_state
12411    #[prost(message, optional, tag = "145")]
12412    pub android_process_state_config: ::core::option::Option<AndroidProcessStateConfig>,
12413    /// Data source name: linux.smaps
12414    #[prost(message, optional, tag = "146")]
12415    pub process_smaps_config: ::core::option::Option<ProcessSmapsConfig>,
12416    /// Data source name: qnx.kernel
12417    #[prost(message, optional, tag = "150")]
12418    pub qnx_config: ::core::option::Option<QnxConfig>,
12419    /// This is a fallback mechanism to send a free-form text config to the
12420    /// producer. In theory this should never be needed. All the code that
12421    /// is part of the platform (i.e. traced service) is supposed to *not* truncate
12422    /// the trace config proto and propagate unknown fields. However, if anything
12423    /// in the pipeline (client or backend) ends up breaking this forward compat
12424    /// plan, this field will become the escape hatch to allow future data sources
12425    /// to get some meaningful configuration.
12426    #[prost(string, optional, tag = "1000")]
12427    pub legacy_config: ::core::option::Option<::prost::alloc::string::String>,
12428    /// This field is only used for testing.
12429    #[prost(message, optional, tag = "1001")]
12430    pub for_testing: ::core::option::Option<TestConfig>,
12431}
12432/// Nested message and enum types in `DataSourceConfig`.
12433pub mod data_source_config {
12434    #[derive(
12435        Clone,
12436        Copy,
12437        Debug,
12438        PartialEq,
12439        Eq,
12440        Hash,
12441        PartialOrd,
12442        Ord,
12443        ::prost::Enumeration
12444    )]
12445    #[repr(i32)]
12446    pub enum SessionInitiator {
12447        Unspecified = 0,
12448        /// This trace was initiated from a trusted system app has DUMP and
12449        /// USAGE_STATS permission. This system app is expected to not expose the
12450        /// trace to the user of the device.
12451        /// This is determined by checking the UID initiating the trace.
12452        TrustedSystem = 1,
12453    }
12454    impl SessionInitiator {
12455        /// String value of the enum field names used in the ProtoBuf definition.
12456        ///
12457        /// The values are not transformed in any way and thus are considered stable
12458        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
12459        pub fn as_str_name(&self) -> &'static str {
12460            match self {
12461                Self::Unspecified => "SESSION_INITIATOR_UNSPECIFIED",
12462                Self::TrustedSystem => "SESSION_INITIATOR_TRUSTED_SYSTEM",
12463            }
12464        }
12465        /// Creates an enum from field names used in the ProtoBuf definition.
12466        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
12467            match value {
12468                "SESSION_INITIATOR_UNSPECIFIED" => Some(Self::Unspecified),
12469                "SESSION_INITIATOR_TRUSTED_SYSTEM" => Some(Self::TrustedSystem),
12470                _ => None,
12471            }
12472        }
12473    }
12474    #[derive(
12475        Clone,
12476        Copy,
12477        Debug,
12478        PartialEq,
12479        Eq,
12480        Hash,
12481        PartialOrd,
12482        Ord,
12483        ::prost::Enumeration
12484    )]
12485    #[repr(i32)]
12486    pub enum BufferExhaustedPolicy {
12487        /// The data source will use its default buffer exhausted policy, specified
12488        /// by the code when the data source is registered.
12489        BufferExhaustedUnspecified = 0,
12490        /// The data source will drop packets when there's no space in the shared
12491        /// memory buffer.
12492        BufferExhaustedDrop = 1,
12493        /// The data source will wait when there's no space in the shared memory
12494        /// buffer. If there's still not space, after a few seconds, the whole
12495        /// producer process will be aborted.
12496        BufferExhaustedStallThenAbort = 2,
12497        /// The data source will wait when there's no space in the shared memory
12498        /// buffer.  If there's still not space, after a few seconds, the data source
12499        /// will drop packets.
12500        BufferExhaustedStallThenDrop = 3,
12501    }
12502    impl BufferExhaustedPolicy {
12503        /// String value of the enum field names used in the ProtoBuf definition.
12504        ///
12505        /// The values are not transformed in any way and thus are considered stable
12506        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
12507        pub fn as_str_name(&self) -> &'static str {
12508            match self {
12509                Self::BufferExhaustedUnspecified => "BUFFER_EXHAUSTED_UNSPECIFIED",
12510                Self::BufferExhaustedDrop => "BUFFER_EXHAUSTED_DROP",
12511                Self::BufferExhaustedStallThenAbort => {
12512                    "BUFFER_EXHAUSTED_STALL_THEN_ABORT"
12513                }
12514                Self::BufferExhaustedStallThenDrop => "BUFFER_EXHAUSTED_STALL_THEN_DROP",
12515            }
12516        }
12517        /// Creates an enum from field names used in the ProtoBuf definition.
12518        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
12519            match value {
12520                "BUFFER_EXHAUSTED_UNSPECIFIED" => Some(Self::BufferExhaustedUnspecified),
12521                "BUFFER_EXHAUSTED_DROP" => Some(Self::BufferExhaustedDrop),
12522                "BUFFER_EXHAUSTED_STALL_THEN_ABORT" => {
12523                    Some(Self::BufferExhaustedStallThenAbort)
12524                }
12525                "BUFFER_EXHAUSTED_STALL_THEN_DROP" => {
12526                    Some(Self::BufferExhaustedStallThenDrop)
12527                }
12528                _ => None,
12529            }
12530        }
12531    }
12532}
12533/// The overall config that is used when starting a new tracing session through
12534/// ProducerPort::StartTracing().
12535/// It contains the general config for the logging buffer(s) and the configs for
12536/// all the data source being enabled.
12537///
12538/// Next id: 50.
12539#[derive(Clone, PartialEq, ::prost::Message)]
12540pub struct TraceConfig {
12541    #[prost(message, repeated, tag = "1")]
12542    pub buffers: ::prost::alloc::vec::Vec<trace_config::BufferConfig>,
12543    #[prost(message, repeated, tag = "2")]
12544    pub data_sources: ::prost::alloc::vec::Vec<trace_config::DataSource>,
12545    #[prost(message, optional, tag = "20")]
12546    pub builtin_data_sources: ::core::option::Option<trace_config::BuiltinDataSource>,
12547    /// If specified, the trace will be stopped |duration_ms| after starting.
12548    /// This does *not* count the time the system is suspended, so we will run
12549    /// for duration_ms of system activity, not wall time.
12550    ///
12551    /// However in case of traces with triggers, see
12552    /// TriggerConfig.trigger_timeout_ms instead.
12553    #[prost(uint32, optional, tag = "3")]
12554    pub duration_ms: ::core::option::Option<u32>,
12555    /// If true, tries to use CLOCK_BOOTTIME for duration_ms rather than
12556    /// CLOCK_MONOTONIC (which doesn't count time in suspend). Supported only on
12557    /// Linux/Android, no-op on other platforms. This is used when dealing with
12558    /// long (e.g. 24h) traces, where suspend can inflate them to weeks of
12559    /// wall-time, making them more likely to hit device reboots (and hence loss).
12560    /// This option also changes consistently the semantic of
12561    /// TriggerConfig.stop_delay_ms.
12562    #[prost(bool, optional, tag = "36")]
12563    pub prefer_suspend_clock_for_duration: ::core::option::Option<bool>,
12564    /// This is set when --dropbox is passed to the Perfetto command line client
12565    /// and enables guardrails that limit resource usage for traces requested
12566    /// by statsd.
12567    #[prost(bool, optional, tag = "4")]
12568    pub enable_extra_guardrails: ::core::option::Option<bool>,
12569    /// Reject producers that are not running under the same UID as the tracing
12570    /// service.
12571    #[prost(enumeration = "trace_config::LockdownModeOperation", optional, tag = "5")]
12572    pub lockdown_mode: ::core::option::Option<i32>,
12573    #[prost(message, repeated, tag = "6")]
12574    pub producers: ::prost::alloc::vec::Vec<trace_config::ProducerConfig>,
12575    /// Statsd-specific metadata.
12576    #[prost(message, optional, tag = "7")]
12577    pub statsd_metadata: ::core::option::Option<trace_config::StatsdMetadata>,
12578    /// When true && |output_path| is empty, the EnableTracing() request must
12579    /// provide a file descriptor. The service will then periodically read packets
12580    /// out of the trace buffer and store it into the passed file.
12581    /// If |output_path| is not empty no fd should be passed, the service
12582    /// will create a new file and write into that (see comment below).
12583    #[prost(bool, optional, tag = "8")]
12584    pub write_into_file: ::core::option::Option<bool>,
12585    /// This must point to a non-existing file. If the file exists the service
12586    /// will NOT overwrite and will fail instead as a security precaution.
12587    /// On Android, when this is used with the system traced, the path must be
12588    /// within /data/misc/perfetto-traces/ or the trace will fail.
12589    /// This option has been introduced in Android R. Before R write_into_file
12590    /// can be used only with the "pass a file descriptor over IPC" mode.
12591    #[prost(string, optional, tag = "29")]
12592    pub output_path: ::core::option::Option<::prost::alloc::string::String>,
12593    /// Optional. If non-zero tunes the write period. A min value of 100ms is
12594    /// enforced (i.e. smaller values are ignored).
12595    #[prost(uint32, optional, tag = "9")]
12596    pub file_write_period_ms: ::core::option::Option<u32>,
12597    /// Optional. When non zero the periodic write stops once at most X bytes
12598    /// have been written into the file. Tracing is disabled when this limit is
12599    /// reached, even if |duration_ms| has not been reached yet.
12600    #[prost(uint64, optional, tag = "10")]
12601    pub max_file_size_bytes: ::core::option::Option<u64>,
12602    #[prost(message, optional, tag = "11")]
12603    pub guardrail_overrides: ::core::option::Option<trace_config::GuardrailOverrides>,
12604    /// When true, data sources are not started until an explicit call to
12605    /// StartTracing() on the consumer port. This is to support early
12606    /// initialization and fast trace triggering. This can be used only when the
12607    /// Consumer explicitly triggers the StartTracing() method.
12608    /// This should not be used in a remote trace config via statsd, doing so will
12609    /// result in a hung trace session.
12610    #[prost(bool, optional, tag = "12")]
12611    pub deferred_start: ::core::option::Option<bool>,
12612    /// When set, it periodically issues a Flush() to all data source, forcing them
12613    /// to commit their data into the tracing service. This can be used for
12614    /// quasi-real-time streaming mode and to guarantee some partial ordering of
12615    /// events in the trace in windows of X ms.
12616    ///
12617    /// Warning: Perfetto automatically handles periodic flushing so in most
12618    /// scenarios setting this field is not needed. High frequency flushing can
12619    /// significantly impact performance.
12620    #[prost(uint32, optional, tag = "13")]
12621    pub flush_period_ms: ::core::option::Option<u32>,
12622    /// Wait for this long for producers to acknowledge flush requests.
12623    /// Default 5s.
12624    #[prost(uint32, optional, tag = "14")]
12625    pub flush_timeout_ms: ::core::option::Option<u32>,
12626    /// Wait for this long for producers to acknowledge stop requests.
12627    /// Default 5s.
12628    #[prost(uint32, optional, tag = "23")]
12629    pub data_source_stop_timeout_ms: ::core::option::Option<u32>,
12630    /// Android-only. If set, sends an intent to the Traceur system app when the
12631    /// trace ends to notify it about the trace readiness.
12632    #[prost(bool, optional, tag = "16")]
12633    pub notify_traceur: ::core::option::Option<bool>,
12634    /// This field was introduced in Android S.
12635    /// Android-only. If set to a value > 0, marks the trace session as a candidate
12636    /// for being attached to a bugreport. This field effectively acts as a z-index
12637    /// for bugreports. When Android's dumpstate runs perfetto
12638    /// --save-for-bugreport, traced will pick the tracing session with the highest
12639    /// score (score <= 0 is ignored) and:
12640    /// On Android S, T:  will steal its contents, save the trace into
12641    ///      a known path and stop prematurely.
12642    /// On Android U+: will create a read-only snapshot and save that into a known
12643    ///      path, without stoppin the original tracing session.
12644    /// When this field is set the tracing session becomes eligible to be cloned
12645    /// by other UIDs.
12646    #[prost(int32, optional, tag = "30")]
12647    pub bugreport_score: ::core::option::Option<i32>,
12648    /// When set, defines name of the file that will be saved under
12649    /// /data/misc/perfetto-traces/bugreport/ when using --save-all-for-bugreport.
12650    /// If omitted, traces will be named systrace.pftrace, systrace_1.pftrace, etc,
12651    /// starting from the highest `bugreport_score`.
12652    /// Introduced in v42 / Android V.
12653    #[prost(string, optional, tag = "38")]
12654    pub bugreport_filename: ::core::option::Option<::prost::alloc::string::String>,
12655    #[prost(message, optional, tag = "17")]
12656    pub trigger_config: ::core::option::Option<trace_config::TriggerConfig>,
12657    /// When this is non-empty the perfetto command line tool will ignore the rest
12658    /// of this TraceConfig and instead connect to the perfetto service as a
12659    /// producer and send these triggers, potentially stopping or starting traces
12660    /// that were previous configured to use a TriggerConfig.
12661    #[prost(string, repeated, tag = "18")]
12662    pub activate_triggers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
12663    #[prost(message, optional, tag = "21")]
12664    pub incremental_state_config: ::core::option::Option<
12665        trace_config::IncrementalStateConfig,
12666    >,
12667    /// No longer needed as we unconditionally allow tracing on user builds.
12668    #[deprecated]
12669    #[prost(bool, optional, tag = "19")]
12670    pub allow_user_build_tracing: ::core::option::Option<bool>,
12671    /// If set the tracing service will ensure there is at most one tracing session
12672    /// with this key.
12673    #[prost(string, optional, tag = "22")]
12674    pub unique_session_name: ::core::option::Option<::prost::alloc::string::String>,
12675    #[deprecated]
12676    #[prost(enumeration = "trace_config::CompressionType", optional, tag = "24")]
12677    pub compression_type: ::core::option::Option<i32>,
12678    #[prost(message, optional, tag = "47")]
12679    pub compression: ::core::option::Option<trace_config::CompressionConfig>,
12680    #[prost(message, optional, tag = "25")]
12681    pub incident_report_config: ::core::option::Option<
12682        trace_config::IncidentReportConfig,
12683    >,
12684    /// Android-only. Not for general use. If specified, sets the logging to statsd
12685    /// of guardrails and checkpoints in the tracing service. perfetto_cmd sets
12686    /// this to enabled (if not explicitly set in the config) when specifying
12687    /// --upload.
12688    #[prost(enumeration = "trace_config::StatsdLogging", optional, tag = "31")]
12689    pub statsd_logging: ::core::option::Option<i32>,
12690    /// An identifier clients can use to tie this trace to other logging.
12691    /// DEPRECATED as per v32. See TracePacket.trace_uuid for the authoritative
12692    /// Trace UUID. If this field is set, the tracing service will respect the
12693    /// requested UUID (i.e. TracePacket.trace_uuid == this field) but only if
12694    /// gap-less snapshotting is not used.
12695    #[deprecated]
12696    #[prost(int64, optional, tag = "27")]
12697    pub trace_uuid_msb: ::core::option::Option<i64>,
12698    #[deprecated]
12699    #[prost(int64, optional, tag = "28")]
12700    pub trace_uuid_lsb: ::core::option::Option<i64>,
12701    #[prost(message, optional, tag = "33")]
12702    pub trace_filter: ::core::option::Option<trace_config::TraceFilter>,
12703    #[prost(message, optional, tag = "34")]
12704    pub android_report_config: ::core::option::Option<trace_config::AndroidReportConfig>,
12705    #[prost(message, optional, tag = "35")]
12706    pub cmd_trace_start_delay: ::core::option::Option<trace_config::CmdTraceStartDelay>,
12707    #[prost(message, repeated, tag = "39")]
12708    pub session_semaphores: ::prost::alloc::vec::Vec<trace_config::SessionSemaphore>,
12709    /// Priority boost to be applied to the traced process, when the session is
12710    /// running.
12711    #[prost(message, optional, tag = "40")]
12712    pub priority_boost: ::core::option::Option<PriorityBoostConfig>,
12713    /// When set to a value > 0, this tracing session will be started in
12714    /// "exclusive mode". This has the following semantics:
12715    /// - It can only be set by shell or root users.
12716    /// - A new exclusive session will only be started if its priority is strictly
12717    ///    higher than any other active tracing session.
12718    /// - If a new exclusive session is started, all other existing tracing
12719    ///    sessions (exclusive or not) are aborted.
12720    /// - While an exclusive session is active, any new non-exclusive session (or
12721    ///    any exclusive session with a lower or equal priority) will be rejected.
12722    ///
12723    /// Introduced in: perfetto v52.
12724    /// Supported on: Android 25Q3+.
12725    #[prost(uint32, optional, tag = "41")]
12726    pub exclusive_prio: ::core::option::Option<u32>,
12727    /// Configures how the service should handle flushing data from producers
12728    /// before periodically writing the trace into the output file.
12729    /// Only applicable when |write_into_file| is true.
12730    ///
12731    /// By default, if |write_into_file| is set, the service periodically issues
12732    /// a Flush() to all data sources before writing buffers into the file.
12733    /// This ensures the file always contains the latest available data.
12734    ///
12735    /// Introduced in: perfetto v54.
12736    /// Supported on: Android 26Q1+.
12737    #[prost(enumeration = "trace_config::WriteFlushMode", optional, tag = "44")]
12738    pub write_flush_mode: ::core::option::Option<i32>,
12739    /// Whether to sync the output file to storage after each periodic write pass.
12740    /// Only applicable when |write_into_file| is true.
12741    ///
12742    /// By default, no fflush is invoked. FFLUSH_ENABLED must be set to explicitly
12743    /// sync to storage on every write.
12744    ///
12745    /// Introduced in: perfetto v54.
12746    /// Supported on: Android 26Q1+.
12747    #[prost(enumeration = "trace_config::FFlushMode", optional, tag = "45")]
12748    pub fflush_post_write: ::core::option::Option<i32>,
12749    /// When true, data sources in remote producers (machines connected via
12750    /// traced_relay) will be matched by default. When false (the default), data
12751    /// sources only match the host machine. In either case, an explicit
12752    /// |DataSource.machine_name_filter| takes priority.
12753    ///
12754    /// NB: perfetto versions before v54 do not have this option and match across
12755    /// machines by default. To be compatible across this version boundary, either
12756    /// set this field to true, or set an explicit machine_name_filter on all data
12757    /// sources.
12758    ///
12759    /// Introduced in: perfetto v54.
12760    #[prost(bool, optional, tag = "43")]
12761    pub trace_all_machines: ::core::option::Option<bool>,
12762    /// Trace attributes: arbitrary key/value pairs describing the trace, saved
12763    /// into it and surfaced by trace_processor in the `metadata` table (see
12764    /// common/trace_attributes.proto). Typically set via
12765    /// `perfetto --add-attribute key=value`.
12766    ///
12767    /// Introduced in: perfetto v58.
12768    #[prost(message, optional, tag = "48")]
12769    pub trace_attributes: ::core::option::Option<TraceAttributes>,
12770    /// Android-only. Not for general use. If set to true, writes trace chunks to a
12771    /// persistent file
12772    /// (/data/misc/perfetto-traces/persistent/$unique_session_name.tmp) that
12773    /// survives device reboots (e.g. during OTA updates or battery depletion).
12774    ///
12775    /// Introduced in: perfetto v59.
12776    /// Supported on: Android 26Q4+.
12777    #[prost(bool, optional, tag = "49")]
12778    pub persist_trace_across_reboots: ::core::option::Option<bool>,
12779}
12780/// Nested message and enum types in `TraceConfig`.
12781pub mod trace_config {
12782    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
12783    pub struct BufferConfig {
12784        #[prost(uint32, optional, tag = "1")]
12785        pub size_kb: ::core::option::Option<u32>,
12786        #[prost(enumeration = "buffer_config::FillPolicy", optional, tag = "4")]
12787        pub fill_policy: ::core::option::Option<i32>,
12788        /// When true the buffer is moved (rather than copied) onto the cloned
12789        /// session, and an empty buffer of the same size is allocated in the source
12790        /// tracing session. This feature will likely get deprecated in the future.
12791        /// It been introduced mainly to support the surfaceflinger snapshot dump
12792        /// for bugreports, where SF can dumps O(400MB) into the bugreport trace. In
12793        /// that case we don't want to retain another in-memory copy of the buffer.
12794        #[prost(bool, optional, tag = "5")]
12795        pub transfer_on_clone: ::core::option::Option<bool>,
12796        /// Used in conjunction with transfer_on_clone. When true the buffer is
12797        /// cleared before issuing the Flush(reason=kTraceClone). This is to ensure
12798        /// that if the data source took too long to write the data in a previous
12799        /// clone-related flush, we don't end up with a mixture of leftovers from
12800        /// the previous write and new data.
12801        #[prost(bool, optional, tag = "6")]
12802        pub clear_before_clone: ::core::option::Option<bool>,
12803        /// Optional name for this buffer. If set, data sources can reference this
12804        /// buffer by name using |target_buffer_name| in DataSourceConfig instead of
12805        /// using the buffer index. Buffer names must be unique within a tracing
12806        /// session. This provides a more human-readable and less error-prone way to
12807        /// configure which buffer a data source writes to.
12808        #[prost(string, optional, tag = "7")]
12809        pub name: ::core::option::Option<::prost::alloc::string::String>,
12810        #[prost(enumeration = "buffer_config::ExperimentalMode", optional, tag = "8")]
12811        pub experimental_mode: ::core::option::Option<i32>,
12812    }
12813    /// Nested message and enum types in `BufferConfig`.
12814    pub mod buffer_config {
12815        #[derive(
12816            Clone,
12817            Copy,
12818            Debug,
12819            PartialEq,
12820            Eq,
12821            Hash,
12822            PartialOrd,
12823            Ord,
12824            ::prost::Enumeration
12825        )]
12826        #[repr(i32)]
12827        pub enum FillPolicy {
12828            Unspecified = 0,
12829            /// Default behavior. The buffer operates as a conventional ring buffer.
12830            /// If the writer is faster than the reader (or if the reader reads only
12831            /// after tracing is stopped) newly written packets will overwrite old
12832            /// packets.
12833            RingBuffer = 1,
12834            /// Behaves like RING_BUFFER as long as there is space in the buffer or
12835            /// the reader catches up with the writer. As soon as the writer hits
12836            /// an unread chunk, it stops accepting new data in the buffer.
12837            Discard = 2,
12838        }
12839        impl FillPolicy {
12840            /// String value of the enum field names used in the ProtoBuf definition.
12841            ///
12842            /// The values are not transformed in any way and thus are considered stable
12843            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
12844            pub fn as_str_name(&self) -> &'static str {
12845                match self {
12846                    Self::Unspecified => "UNSPECIFIED",
12847                    Self::RingBuffer => "RING_BUFFER",
12848                    Self::Discard => "DISCARD",
12849                }
12850            }
12851            /// Creates an enum from field names used in the ProtoBuf definition.
12852            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
12853                match value {
12854                    "UNSPECIFIED" => Some(Self::Unspecified),
12855                    "RING_BUFFER" => Some(Self::RingBuffer),
12856                    "DISCARD" => Some(Self::Discard),
12857                    _ => None,
12858                }
12859            }
12860        }
12861        /// When true, uses the experimental TraceBufferV2 implementation for this
12862        /// buffer. This is for testing purposes only and may be removed in future
12863        /// versions.
12864        #[derive(
12865            Clone,
12866            Copy,
12867            Debug,
12868            PartialEq,
12869            Eq,
12870            Hash,
12871            PartialOrd,
12872            Ord,
12873            ::prost::Enumeration
12874        )]
12875        #[repr(i32)]
12876        pub enum ExperimentalMode {
12877            /// Use the default V1 implementation.
12878            ModeUnspecified = 0,
12879            /// Use TraceBufferV2.
12880            TraceBufferV2 = 1,
12881        }
12882        impl ExperimentalMode {
12883            /// String value of the enum field names used in the ProtoBuf definition.
12884            ///
12885            /// The values are not transformed in any way and thus are considered stable
12886            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
12887            pub fn as_str_name(&self) -> &'static str {
12888                match self {
12889                    Self::ModeUnspecified => "MODE_UNSPECIFIED",
12890                    Self::TraceBufferV2 => "TRACE_BUFFER_V2",
12891                }
12892            }
12893            /// Creates an enum from field names used in the ProtoBuf definition.
12894            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
12895                match value {
12896                    "MODE_UNSPECIFIED" => Some(Self::ModeUnspecified),
12897                    "TRACE_BUFFER_V2" => Some(Self::TraceBufferV2),
12898                    _ => None,
12899                }
12900            }
12901        }
12902    }
12903    #[derive(Clone, PartialEq, ::prost::Message)]
12904    pub struct DataSource {
12905        /// Filters and data-source specific config. It contains also the unique name
12906        /// of the data source, the one passed in the  DataSourceDescriptor when they
12907        /// register on the service.
12908        #[prost(message, optional, tag = "1")]
12909        pub config: ::core::option::Option<super::DataSourceConfig>,
12910        /// Optional. If multiple producers (~processes) expose the same data source
12911        /// and either |producer_name_filter| or |producer_name_regex_filter| is set,
12912        /// the data source is enabled only for producers whose names match any of
12913        /// the filters.
12914        /// |producer_name_filter| has to be an exact match, while
12915        /// |producer_name_regex_filter| is a regular expression.
12916        /// This allows to enable a data source only for specific processes.
12917        /// The "repeated" fields have OR semantics: specifying a filter ["foo",
12918        /// "bar"] will enable data sources on both "foo" and "bar" (if they exist).
12919        #[prost(string, repeated, tag = "2")]
12920        pub producer_name_filter: ::prost::alloc::vec::Vec<
12921            ::prost::alloc::string::String,
12922        >,
12923        #[prost(string, repeated, tag = "3")]
12924        pub producer_name_regex_filter: ::prost::alloc::vec::Vec<
12925            ::prost::alloc::string::String,
12926        >,
12927        /// Filter by machine names. The name of a machine is determined by the
12928        /// PERFETTO_MACHINE_NAME env variable. In Android systems, if the env
12929        /// variable is not set then the
12930        /// persist.traced_relay.machine_name system property is used. If the
12931        /// sysprop isn't set or not in an Android system, then the machine name by
12932        /// default is set to the utsname sysname (e.g. Linux), which can be obtained
12933        /// via the 'uname -s' command. As a convenience, one can use "host" to refer
12934        /// to the host machine, which is the machine running traced.
12935        #[prost(string, repeated, tag = "4")]
12936        pub machine_name_filter: ::prost::alloc::vec::Vec<
12937            ::prost::alloc::string::String,
12938        >,
12939    }
12940    /// Config for disabling builtin data sources in the tracing service.
12941    #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
12942    pub struct BuiltinDataSource {
12943        /// Disable emitting clock timestamps into the trace.
12944        #[prost(bool, optional, tag = "1")]
12945        pub disable_clock_snapshotting: ::core::option::Option<bool>,
12946        /// Disable echoing the original trace config in the trace.
12947        #[prost(bool, optional, tag = "2")]
12948        pub disable_trace_config: ::core::option::Option<bool>,
12949        /// Disable emitting system info (build fingerprint, cpuinfo, etc).
12950        #[prost(bool, optional, tag = "3")]
12951        pub disable_system_info: ::core::option::Option<bool>,
12952        /// Disable emitting events for data-source state changes (e.g. the marker
12953        /// for all data sources having ACKed the start of the trace).
12954        #[prost(bool, optional, tag = "4")]
12955        pub disable_service_events: ::core::option::Option<bool>,
12956        /// The authoritative clock domain for the trace. Defaults to BOOTTIME. See
12957        /// also ClockSnapshot's primary_trace_clock. The configured value is written
12958        /// into the trace as part of the ClockSnapshots emitted by the service.
12959        /// Trace processor will attempt to translate packet/event timestamps from
12960        /// various data sources (and their chosen clock domains) to this domain
12961        /// during import. Added in Android R.
12962        #[prost(enumeration = "super::BuiltinClock", optional, tag = "5")]
12963        pub primary_trace_clock: ::core::option::Option<i32>,
12964        /// Time interval in between snapshotting of sync markers, clock snapshots,
12965        /// stats, and other periodic service-emitted events. Note that the service
12966        /// only keeps track of the first and the most recent snapshot until
12967        /// ReadBuffers() is called.
12968        #[prost(uint32, optional, tag = "6")]
12969        pub snapshot_interval_ms: ::core::option::Option<u32>,
12970        /// Hints to the service that a suspend-aware (i.e. counting time in suspend)
12971        /// clock should be used for periodic snapshots of service-emitted events.
12972        /// This means, if a snapshot *should* have happened during suspend, it will
12973        /// happen immediately after the device resumes.
12974        ///
12975        /// Choosing a clock like this is done on best-effort basis; not all
12976        /// platforms (e.g. Windows) expose a clock which can be used for periodic
12977        /// tasks counting suspend. If such a clock is not available, the service
12978        /// falls back to the best-available alternative.
12979        ///
12980        /// Introduced in Android S.
12981        /// TODO(lalitm): deprecate this in T and make this the default if nothing
12982        /// crashes in S.
12983        #[prost(bool, optional, tag = "7")]
12984        pub prefer_suspend_clock_for_snapshot: ::core::option::Option<bool>,
12985        /// Disables the reporting of per-trace-writer histograms in TraceStats.
12986        #[prost(bool, optional, tag = "8")]
12987        pub disable_chunk_usage_histograms: ::core::option::Option<bool>,
12988        /// Disable emitting extension descriptors into the trace.
12989        #[prost(bool, optional, tag = "9")]
12990        pub disable_extension_descriptors: ::core::option::Option<bool>,
12991        /// Emit state changes of other tracing sessions running concurrently
12992        /// with this one (see ConcurrentSessionEvent).
12993        ///
12994        /// Introduced in v58 / Android 26Q3+.
12995        #[prost(bool, optional, tag = "10")]
12996        pub enable_concurrent_session_events: ::core::option::Option<bool>,
12997    }
12998    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
12999    pub struct ProducerConfig {
13000        /// Identifies the producer for which this config is for.
13001        #[prost(string, optional, tag = "1")]
13002        pub producer_name: ::core::option::Option<::prost::alloc::string::String>,
13003        /// Specifies the preferred size of the shared memory buffer. If the size is
13004        /// larger than the max size, the max will be used. If it is smaller than
13005        /// the page size or doesn't fit pages evenly into it, it will fall back to
13006        /// the size specified by the producer or finally the default shared memory
13007        /// size.
13008        #[prost(uint32, optional, tag = "2")]
13009        pub shm_size_kb: ::core::option::Option<u32>,
13010        /// Specifies the preferred size of each page in the shared memory buffer.
13011        /// Must be an integer multiple of 4K.
13012        #[prost(uint32, optional, tag = "3")]
13013        pub page_size_kb: ::core::option::Option<u32>,
13014    }
13015    /// Contains statsd-specific metadata about an alert associated with the trace.
13016    #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
13017    pub struct StatsdMetadata {
13018        /// The identifier of the alert which triggered this trace.
13019        #[prost(int64, optional, tag = "1")]
13020        pub triggering_alert_id: ::core::option::Option<i64>,
13021        /// The uid which registered the triggering configuration with statsd.
13022        #[prost(int32, optional, tag = "2")]
13023        pub triggering_config_uid: ::core::option::Option<i32>,
13024        /// The identifier of the config which triggered the alert.
13025        #[prost(int64, optional, tag = "3")]
13026        pub triggering_config_id: ::core::option::Option<i64>,
13027        /// The identifier of the subscription which triggered this trace.
13028        #[prost(int64, optional, tag = "4")]
13029        pub triggering_subscription_id: ::core::option::Option<i64>,
13030    }
13031    /// Contains flags which override the default values of the guardrails inside
13032    /// Perfetto.
13033    #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
13034    pub struct GuardrailOverrides {
13035        /// Override the default limit (in bytes) for uploading data to server within
13036        /// a 24 hour period.
13037        /// On R-, this override only affected userdebug builds. Since S, it also
13038        /// affects user builds.
13039        /// In 24Q3+ (V+), this override is a noop because upload guardrail logic
13040        /// was removed from Perfetto.
13041        #[deprecated]
13042        #[prost(uint64, optional, tag = "1")]
13043        pub max_upload_per_day_bytes: ::core::option::Option<u64>,
13044        /// Overrides the guardrail for maximum trace buffer size.
13045        /// Available on U+
13046        #[prost(uint32, optional, tag = "2")]
13047        pub max_tracing_buffer_size_kb: ::core::option::Option<u32>,
13048    }
13049    /// Triggers allow producers to start or stop the tracing session when an event
13050    /// occurs.
13051    ///
13052    /// For example if we are tracing probabilistically, most traces will be
13053    /// uninteresting. Triggers allow us to keep only the interesting ones such as
13054    /// those traces during which the device temperature reached a certain
13055    /// threshold. In this case the producer can activate a trigger to keep
13056    /// (STOP_TRACING) the trace, otherwise it can also begin a trace
13057    /// (START_TRACING) because it knows something is about to happen.
13058    #[derive(Clone, PartialEq, ::prost::Message)]
13059    pub struct TriggerConfig {
13060        #[prost(enumeration = "trigger_config::TriggerMode", optional, tag = "1")]
13061        pub trigger_mode: ::core::option::Option<i32>,
13062        /// This flag is really a workaround for b/274931668. This is needed only
13063        /// when deploying configs to different versions of the tracing service.
13064        /// When this is set to true this has the same effect of setting trigger_mode
13065        /// to CLONE_SNAPSHOT on newer versions of the service. This boolean has been
13066        /// introduced to allow to have configs that use CLONE_SNAPSHOT on newer
13067        /// versions of Android and fall back to STOP_TRACING on older versions where
13068        /// CLONE_SNAPSHOT did not exist.
13069        /// When using this flag, trigger_mode must be set to STOP_TRACING.
13070        #[prost(bool, optional, tag = "5")]
13071        pub use_clone_snapshot_if_available: ::core::option::Option<bool>,
13072        /// A list of triggers which are related to this configuration. If ANY
13073        /// trigger is seen then an action will be performed based on |trigger_mode|.
13074        #[prost(message, repeated, tag = "2")]
13075        pub triggers: ::prost::alloc::vec::Vec<trigger_config::Trigger>,
13076        /// Required and must be positive if a TriggerConfig is specified. This is
13077        /// how long this TraceConfig should wait for a trigger to arrive. After this
13078        /// period of time if no trigger is seen the TracingSession will be cleaned
13079        /// up.
13080        #[prost(uint32, optional, tag = "3")]
13081        pub trigger_timeout_ms: ::core::option::Option<u32>,
13082    }
13083    /// Nested message and enum types in `TriggerConfig`.
13084    pub mod trigger_config {
13085        #[derive(Clone, PartialEq, ::prost::Message)]
13086        pub struct Trigger {
13087            /// The producer must specify this name to activate the trigger.
13088            #[prost(string, optional, tag = "1")]
13089            pub name: ::core::option::Option<::prost::alloc::string::String>,
13090            /// An std::regex that will match the producer that can activate this
13091            /// trigger. This is optional. If unset any producers can activate this
13092            /// trigger.
13093            #[prost(string, optional, tag = "2")]
13094            pub producer_name_regex: ::core::option::Option<
13095                ::prost::alloc::string::String,
13096            >,
13097            /// After a trigger is received either in START_TRACING or STOP_TRACING
13098            /// mode then the trace will end |stop_delay_ms| after triggering.
13099            /// In CLONE_SNAPSHOT mode, this is the delay between the trigger and the
13100            /// snapshot.
13101            /// If |prefer_suspend_clock_for_duration| is set, the duration will be
13102            /// based on wall-clock, counting also time in suspend.
13103            #[prost(uint32, optional, tag = "3")]
13104            pub stop_delay_ms: ::core::option::Option<u32>,
13105            /// Limits the number of traces this trigger can start/stop in a rolling
13106            /// 24 hour window. If this field is unset or zero, no limit is applied and
13107            /// activiation of this trigger *always* starts/stops the trace.
13108            #[prost(uint32, optional, tag = "4")]
13109            pub max_per_24_h: ::core::option::Option<u32>,
13110            /// A value between 0 and 1 which encodes the probability of skipping a
13111            /// trigger with this name. This is useful for reducing the probability
13112            /// of high-frequency triggers from dominating trace finaization. If this
13113            /// field is unset or zero, the trigger will *never* be skipped. If this
13114            /// field is greater than or equal to 1, this trigger will *always* be
13115            /// skipped i.e. it will be as if this trigger was never included in the
13116            /// first place.
13117            /// This probability check is applied *before* any other limits. For
13118            /// example, if |max_per_24_h| is also set, first we will check if the
13119            /// probability bar is met and only then will we check the |max_per_24_h|
13120            /// limit.
13121            #[prost(double, optional, tag = "5")]
13122            pub skip_probability: ::core::option::Option<f64>,
13123        }
13124        #[derive(
13125            Clone,
13126            Copy,
13127            Debug,
13128            PartialEq,
13129            Eq,
13130            Hash,
13131            PartialOrd,
13132            Ord,
13133            ::prost::Enumeration
13134        )]
13135        #[repr(i32)]
13136        pub enum TriggerMode {
13137            Unspecified = 0,
13138            /// When this mode is chosen, data sources are not started until one of the
13139            /// |triggers| are received. This supports early initialization and fast
13140            /// starting of the tracing system. On triggering, the session will then
13141            /// record for |stop_delay_ms|. However if no trigger is seen
13142            /// after |trigger_timeout_ms| the session will be stopped and no data will
13143            /// be returned.
13144            StartTracing = 1,
13145            /// When this mode is chosen, the session will be started via the normal
13146            /// EnableTracing() & StartTracing(). If no trigger is ever seen
13147            /// the session will be stopped after |trigger_timeout_ms| and no data will
13148            /// be returned. However if triggered the trace will stop after
13149            /// |stop_delay_ms| and any data in the buffer will be returned to the
13150            /// consumer.
13151            StopTracing = 2,
13152            /// When this mode is chosen, this causes a snapshot of the current tracing
13153            /// session to be created after |stop_delay_ms| while the current tracing
13154            /// session continues undisturbed (% an extra flush). This mode can be
13155            /// used only when the tracing session is handled by the "perfetto" cmdline
13156            /// client (which is true in 90% of cases). Part of the business logic
13157            /// necessary for this behavior, and ensuing file handling, lives in
13158            /// perfetto_cmd.cc . On other consumers, this causes only a notification
13159            /// of the trigger through a CloneTriggerHit ObservableEvent. The custom
13160            /// consumer is supposed to call CloneSession() itself after the event.
13161            /// Use use_clone_snapshot_if_available=true when targeting older versions
13162            /// of perfetto.
13163            ///
13164            /// NOTE: CLONE_SNAPSHOT should be used only when we targeting Android V+
13165            /// (15+) / Perfetto v38+. A bug in older versions of the tracing service
13166            /// might cause indefinitely long tracing sessions (see b/274931668).
13167            CloneSnapshot = 4,
13168        }
13169        impl TriggerMode {
13170            /// String value of the enum field names used in the ProtoBuf definition.
13171            ///
13172            /// The values are not transformed in any way and thus are considered stable
13173            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
13174            pub fn as_str_name(&self) -> &'static str {
13175                match self {
13176                    Self::Unspecified => "UNSPECIFIED",
13177                    Self::StartTracing => "START_TRACING",
13178                    Self::StopTracing => "STOP_TRACING",
13179                    Self::CloneSnapshot => "CLONE_SNAPSHOT",
13180                }
13181            }
13182            /// Creates an enum from field names used in the ProtoBuf definition.
13183            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
13184                match value {
13185                    "UNSPECIFIED" => Some(Self::Unspecified),
13186                    "START_TRACING" => Some(Self::StartTracing),
13187                    "STOP_TRACING" => Some(Self::StopTracing),
13188                    "CLONE_SNAPSHOT" => Some(Self::CloneSnapshot),
13189                    _ => None,
13190                }
13191            }
13192        }
13193    }
13194    /// Configuration for trace contents that reference earlier trace data. For
13195    /// example, a data source might intern strings, and emit packets containing
13196    /// {interned id : string} pairs. Future packets from that data source can then
13197    /// use the interned ids instead of duplicating the raw string contents. The
13198    /// trace parser will then need to use that interning table to fully interpret
13199    /// the rest of the trace.
13200    #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
13201    pub struct IncrementalStateConfig {
13202        /// If nonzero, notify eligible data sources to clear their incremental state
13203        /// periodically, with the given period. The notification is sent only to
13204        /// data sources that have |handles_incremental_state_clear| set in their
13205        /// DataSourceDescriptor. The notification requests that the data source
13206        /// stops referring to past trace contents. This is particularly useful when
13207        /// tracing in ring buffer mode, where it is not exceptional to overwrite old
13208        /// trace data.
13209        ///
13210        /// Warning: this time-based global clearing is likely to be removed in the
13211        /// future, to be replaced with a smarter way of sending the notifications
13212        /// only when necessary.
13213        #[prost(uint32, optional, tag = "1")]
13214        pub clear_period_ms: ::core::option::Option<u32>,
13215    }
13216    /// Selects and configures the compression codec, superseding
13217    /// |compression_type|. The codec is chosen by which sub-message is set; when
13218    /// several are set the service picks the highest-numbered one it supports and
13219    /// ignores codecs it doesn't know, so a single config can target old and new
13220    /// services. Falls back to |compression_type| (deflate-only), if given.
13221    ///
13222    /// Introduced in: perfetto v58.
13223    /// Supported on: Android 26Q3+.
13224    #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
13225    pub struct CompressionConfig {
13226        /// If a config sets more than one of these, the service picks the one with
13227        /// the highest field number (see the rule above): e.g. with deflate (1) and
13228        /// zstd (2) both set, zstd wins.
13229        #[prost(message, optional, tag = "1")]
13230        pub deflate: ::core::option::Option<compression_config::Deflate>,
13231        #[prost(message, optional, tag = "2")]
13232        pub zstd: ::core::option::Option<compression_config::Zstd>,
13233    }
13234    /// Nested message and enum types in `CompressionConfig`.
13235    pub mod compression_config {
13236        /// Deflate (zlib), equivalent to the legacy `COMPRESSION_TYPE_DEFLATE`.
13237        #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
13238        pub struct Deflate {}
13239        #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
13240        pub struct Zstd {
13241            /// Compression level, 1 (fast) to 22 (smallest); 0/unset uses zstd's
13242            /// default (3). Levels above the max are clamped; negatives are valid
13243            /// faster, lower-ratio modes.
13244            #[prost(int32, optional, tag = "1")]
13245            pub level: ::core::option::Option<i32>,
13246        }
13247    }
13248    /// Android-only. Not for general use. If set, saves the trace into an
13249    /// incident. This field is read by perfetto_cmd, rather than the tracing
13250    /// service. This field must be set when passing the --upload flag to
13251    /// perfetto_cmd.
13252    /// In this message, either:
13253    ///   * all of |destination_package|, |destination_class| and |privacy_level|
13254    ///     must be set.
13255    ///   * |skip_incidentd| must be explicitly set to true.
13256    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
13257    pub struct IncidentReportConfig {
13258        #[prost(string, optional, tag = "1")]
13259        pub destination_package: ::core::option::Option<::prost::alloc::string::String>,
13260        #[prost(string, optional, tag = "2")]
13261        pub destination_class: ::core::option::Option<::prost::alloc::string::String>,
13262        /// Level of filtering in the requested incident. See |Destination| in
13263        /// frameworks/base/core/proto/android/privacy.proto.
13264        #[prost(int32, optional, tag = "3")]
13265        pub privacy_level: ::core::option::Option<i32>,
13266        /// If true, then skips saving the trace to incidentd.
13267        ///
13268        /// This flag is useful in testing (e.g. Perfetto-statsd integration tests)
13269        /// or when we explicitly don't want traces to go to incidentd even when they
13270        /// usually would (e.g. configs deployed using statsd but only used for
13271        /// inclusion in bugreports using |bugreport_score|).
13272        ///
13273        /// The motivation for having this flag, instead of just not setting
13274        /// |incident_report_config|, is prevent accidents where
13275        /// |incident_report_config| is omitted by mistake.
13276        #[prost(bool, optional, tag = "5")]
13277        pub skip_incidentd: ::core::option::Option<bool>,
13278        /// If true, do not write the trace into dropbox (i.e. incident only).
13279        /// Otherwise, write to both dropbox and incident.
13280        /// TODO(lalitm): remove this field as we no longer use Dropbox.
13281        #[deprecated]
13282        #[prost(bool, optional, tag = "4")]
13283        pub skip_dropbox: ::core::option::Option<bool>,
13284    }
13285    /// When set applies a post-filter to the trace contents using the filter
13286    /// provided. The filter is applied at ReadBuffers() time and works both in the
13287    /// case of IPC readback and write_into_file. This filter can be generated
13288    /// using `tools/proto_filter -s schema.proto -F filter_out.bytes` or
13289    /// `-T filter_out.escaped_string` (for .pbtx). See go/trace-filtering for
13290    /// design.
13291    ///
13292    /// Introduced in Android S, but it was broken (b/195065199). Reintroduced in
13293    /// Android T with a different field number. Updated in Android U with a new
13294    /// bytecode version which supports string filtering.
13295    ///
13296    /// The principles and terminology of string filtering is heavily inspired by
13297    /// iptables. A "rule" decide how strings should be filtered. Each rule
13298    /// contains a "policy" which indicates the algorithm to use for filtering.
13299    /// A "chain" is a list of rules which will be sequentially checked against
13300    /// each string.
13301    ///
13302    /// The first rule which applies to the string terminates filtering for that
13303    /// string. If no rules apply, the string is left unchanged.
13304    ///
13305    /// =========================
13306    /// Filter bytecode.
13307    /// =========================
13308    #[derive(Clone, PartialEq, ::prost::Message)]
13309    pub struct TraceFilter {
13310        /// The bytecode as implemented in Android T.
13311        #[prost(bytes = "vec", optional, tag = "1")]
13312        pub bytecode: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
13313        /// The bytecode as implemented in Android U. Adds support for string
13314        /// filtering.
13315        #[prost(bytes = "vec", optional, tag = "2")]
13316        pub bytecode_v2: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
13317        #[prost(message, optional, tag = "3")]
13318        pub string_filter_chain: ::core::option::Option<trace_filter::StringFilterChain>,
13319        /// Bytecode overlay for Perfetto v54+. This overlay is applied on top of
13320        /// bytecode_v2 to upgrade specific simple fields to new values. Old Perfetto
13321        /// versions ignore this field; new versions apply it.
13322        ///
13323        /// The motivation for this is that adding new opcodes in a backwards
13324        /// compatible way while also minimizing config size is hard. Instead, the
13325        /// overlay mechanism allows us to "patch" specific fields in the original
13326        /// bytecode_v2 with new semantics.
13327        ///
13328        /// See RFC 0011-subset-string-filter-rules.md for more info.
13329        ///
13330        /// Note:
13331        /// Unlike bytecode_v2 (which uses implicit message indices via EndOfMessage
13332        /// markers), this overlay uses a triplet format with explicit indices:
13333        ///    \[msg_index, field_id << 3 | opcode, argument\] ... \[checksum\]
13334        /// Each entry is exactly 3 varints. The argument is 0 when not needed.
13335        /// Entries must be sorted by (msg_index, field_id).
13336        ///
13337        /// The parser processes bytecode_v2 and this overlay simultaneously:
13338        ///   - any field not mentioned in the overlay is parsed as usual
13339        ///   - any field in the overlay but *not* in the bytecode_v2 is added
13340        ///     with its overlay value
13341        ///   - any field in both the overlay and bytecode_v2 takes the value in the
13342        ///     overlay, the bytecode_v2 value is ignored.
13343        ///
13344        /// Note: despite the name, this was broken in v54 (the overlay was not
13345        /// passed through to the bytecode parser). Only works in v55+.
13346        #[prost(bytes = "vec", optional, tag = "4")]
13347        pub bytecode_overlay_v54: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
13348        /// String filter chain for Perfetto v54+. Rules in this chain either
13349        /// overwrite rules in string_filter_chain (if the name matches) or are
13350        /// appended (if the name doesn't match). This allows modifying existing
13351        /// rules (e.g., changing policy) without duplicating the entire chain.
13352        /// Rules without a name are always appended.
13353        /// See /rfcs/0011-subset-string-filter-rules.md for design details.
13354        /// Introduced in: Perfetto v54.
13355        #[prost(message, optional, tag = "5")]
13356        pub string_filter_chain_v54: ::core::option::Option<
13357            trace_filter::StringFilterChain,
13358        >,
13359    }
13360    /// Nested message and enum types in `TraceFilter`.
13361    pub mod trace_filter {
13362        /// A rule specifies how strings should be filtered.
13363        #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
13364        pub struct StringFilterRule {
13365            /// The policy (i.e. algorithm) dictating how strings matching this rule
13366            /// should be handled.
13367            #[prost(enumeration = "StringFilterPolicy", optional, tag = "1")]
13368            pub policy: ::core::option::Option<i32>,
13369            /// The regex pattern used to match against each string.
13370            #[prost(string, optional, tag = "2")]
13371            pub regex_pattern: ::core::option::Option<::prost::alloc::string::String>,
13372            /// The string which should appear after the tgid in atrace tracepoint
13373            /// strings.
13374            #[prost(string, optional, tag = "3")]
13375            pub atrace_payload_starts_with: ::core::option::Option<
13376                ::prost::alloc::string::String,
13377            >,
13378            /// Optional name for the rule. When merging chains (e.g. via
13379            /// string_filter_chain_v54), rules with matching names in the newer chain
13380            /// will overwrite rules in the base chain. Rules without a name (empty or
13381            /// unset) are always treated as distinct and will be appended.
13382            /// See /rfcs/0011-subset-string-filter-rules.md for design details.
13383            /// Introduced in: Perfetto v54.
13384            #[prost(string, optional, tag = "4")]
13385            pub name: ::core::option::Option<::prost::alloc::string::String>,
13386            /// The semantic types this rule applies to.
13387            ///
13388            /// SEMANTIC_TYPE_UNSPECIFIED (0) is treated as its own distinct category:
13389            /// - If empty, the rule applies only to fields with UNSPECIFIED type.
13390            /// - If non-empty, the rule applies only to fields whose semantic type
13391            ///    is explicitly listed. To match UNSPECIFIED fields, you must include
13392            ///    SEMANTIC_TYPE_UNSPECIFIED in the list.
13393            ///
13394            /// Examples:
13395            ///    semantic_type: \[\]           -> matches only UNSPECIFIED fields
13396            ///    semantic_type: \[ATRACE\]     -> matches only ATRACE fields
13397            ///    semantic_type: \[UNSPECIFIED, ATRACE\] -> matches both
13398            ///
13399            /// See /rfcs/0011-subset-string-filter-rules.md for design details.
13400            /// Introduced in: Perfetto v54.
13401            #[prost(
13402                enumeration = "super::super::SemanticType",
13403                repeated,
13404                packed = "false",
13405                tag = "5"
13406            )]
13407            pub semantic_type: ::prost::alloc::vec::Vec<i32>,
13408        }
13409        /// A chain is a list of rules which string will be sequentially checked
13410        /// against.
13411        #[derive(Clone, PartialEq, ::prost::Message)]
13412        pub struct StringFilterChain {
13413            #[prost(message, repeated, tag = "1")]
13414            pub rules: ::prost::alloc::vec::Vec<StringFilterRule>,
13415        }
13416        /// A policy specifies which algorithm should be used for filtering the
13417        /// string.
13418        #[derive(
13419            Clone,
13420            Copy,
13421            Debug,
13422            PartialEq,
13423            Eq,
13424            Hash,
13425            PartialOrd,
13426            Ord,
13427            ::prost::Enumeration
13428        )]
13429        #[repr(i32)]
13430        pub enum StringFilterPolicy {
13431            SfpUnspecified = 0,
13432            /// Tries to match the string field against |regex_pattern|. If it
13433            /// matches, all matching groups are "redacted" (i.e. replaced with a
13434            /// constant string) and filtering is terminated (i.e. no further rules are
13435            /// checked). If it doesn't match, the string is left unchanged and the
13436            /// next rule in chain is considered.
13437            SfpMatchRedactGroups = 1,
13438            /// Like |SFP_MATCH_REDACT_GROUPS| but tries to do some pre-work before
13439            /// checking the regex. Specifically, it tries to parse the string field as
13440            /// an atrace tracepoint and checks if the post-tgid field starts with
13441            /// |atrace_post_tgid_starts_with|. The regex matching is only performed if
13442            /// this check succeeds.
13443            SfpAtraceMatchRedactGroups = 2,
13444            /// Tries to match the string field against |regex_pattern|. If it
13445            /// matches, filtering is terminated (i.e. no further rules are checked).
13446            /// If it doesn't match, the string is left unchanged and the next rule in
13447            /// chain is considered.
13448            SfpMatchBreak = 3,
13449            /// Like |SFP_MATCH_BREAK| but tries to do some pre-work before checking
13450            /// the regex. Specifically, it tries to parse the string field as an
13451            /// atrace tracepoint and checks if the post-tgid field starts with
13452            /// |atrace_post_tgid_starts_with|. The regex matching is only performed if
13453            /// this check succeeds.
13454            SfpAtraceMatchBreak = 4,
13455            /// Tries to repeatedly search (i.e. find substrings of) the string field
13456            /// with |regex_pattern|. For each match, redacts any matching groups (i.e.
13457            /// replaced with a constant string). Once there are no further matches,
13458            /// filtering is terminated (i.e. no further rules are checked).
13459            ///
13460            /// Note that this is policy is a "search" policy not a "match" policy
13461            /// unlike the above policies:
13462            ///   * Match policies require matching the full string i.e. there is an
13463            ///     implicit leading `^` and trailing `$`.
13464            ///   * Search policies perform repeated partial matching of the string
13465            ///     e.g.
13466            ///       - String: `foo=aaa,bar=123,foo=bbb,baz=456`
13467            ///       - Pattern: `foo=(\d+)`
13468            ///       - Output: `foo=P6O,bar=123,foo=P6O,baz=456`
13469            ///     where P6O is the redaction string
13470            ///
13471            /// All of this is only performed after some pre-work where we try to parse
13472            /// the string field as an atrace tracepoint and check if the post-tgid
13473            /// field starts with |atrace_post_tgid_starts_with|.
13474            ///
13475            /// If there are no partial matches, the string is left unchanged and the
13476            /// next rule in chain is considered.
13477            SfpAtraceRepeatedSearchRedactGroups = 5,
13478        }
13479        impl StringFilterPolicy {
13480            /// String value of the enum field names used in the ProtoBuf definition.
13481            ///
13482            /// The values are not transformed in any way and thus are considered stable
13483            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
13484            pub fn as_str_name(&self) -> &'static str {
13485                match self {
13486                    Self::SfpUnspecified => "SFP_UNSPECIFIED",
13487                    Self::SfpMatchRedactGroups => "SFP_MATCH_REDACT_GROUPS",
13488                    Self::SfpAtraceMatchRedactGroups => "SFP_ATRACE_MATCH_REDACT_GROUPS",
13489                    Self::SfpMatchBreak => "SFP_MATCH_BREAK",
13490                    Self::SfpAtraceMatchBreak => "SFP_ATRACE_MATCH_BREAK",
13491                    Self::SfpAtraceRepeatedSearchRedactGroups => {
13492                        "SFP_ATRACE_REPEATED_SEARCH_REDACT_GROUPS"
13493                    }
13494                }
13495            }
13496            /// Creates an enum from field names used in the ProtoBuf definition.
13497            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
13498                match value {
13499                    "SFP_UNSPECIFIED" => Some(Self::SfpUnspecified),
13500                    "SFP_MATCH_REDACT_GROUPS" => Some(Self::SfpMatchRedactGroups),
13501                    "SFP_ATRACE_MATCH_REDACT_GROUPS" => {
13502                        Some(Self::SfpAtraceMatchRedactGroups)
13503                    }
13504                    "SFP_MATCH_BREAK" => Some(Self::SfpMatchBreak),
13505                    "SFP_ATRACE_MATCH_BREAK" => Some(Self::SfpAtraceMatchBreak),
13506                    "SFP_ATRACE_REPEATED_SEARCH_REDACT_GROUPS" => {
13507                        Some(Self::SfpAtraceRepeatedSearchRedactGroups)
13508                    }
13509                    _ => None,
13510                }
13511            }
13512        }
13513    }
13514    /// Android-only. Not for general use. If set, reports the trace to the
13515    /// Android framework. This field is read by perfetto_cmd, rather than the
13516    /// tracing service. This field must be set when passing the --upload flag to
13517    /// perfetto_cmd.
13518    /// In this message, either:
13519    ///   * |reporter_service_package| and |reporter_service_class| must be set.
13520    ///   * |skip_reporting| must be explicitly set to true.
13521    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
13522    pub struct AndroidReportConfig {
13523        #[prost(string, optional, tag = "1")]
13524        pub reporter_service_package: ::core::option::Option<
13525            ::prost::alloc::string::String,
13526        >,
13527        #[prost(string, optional, tag = "2")]
13528        pub reporter_service_class: ::core::option::Option<
13529            ::prost::alloc::string::String,
13530        >,
13531        /// If true, then skips reporting the trace to Android framework.
13532        ///
13533        /// This flag is useful in testing (e.g. Perfetto-statsd integration tests)
13534        /// or when we explicitly don't want to report traces to the framework even
13535        /// when they usually would (e.g. configs deployed using statsd but only
13536        /// used for inclusion in bugreports using |bugreport_score|).
13537        ///
13538        /// The motivation for having this flag, instead of just not setting
13539        /// |framework_report_config|, is prevent accidents where
13540        /// |framework_report_config| is omitted by mistake.
13541        #[prost(bool, optional, tag = "3")]
13542        pub skip_report: ::core::option::Option<bool>,
13543        /// If true, will direct the Android framework to read the data in trace
13544        /// file and pass it to the reporter class over a pipe instead of passing
13545        /// the file descriptor directly.
13546        ///
13547        /// This flag is needed because the Android test framework does not
13548        /// currently support priv-app helper apps (in terms of SELinux) and we
13549        /// really don't want to add an allow rule for untrusted_app to receive
13550        /// trace fds.
13551        ///
13552        /// Because of this, we instead will direct the framework to create a new
13553        /// pipe and pass this to the reporter process instead. As the pipe is
13554        /// created by the framework, we won't have any problems with SELinux
13555        /// (system_server is already allowed to pass pipe fds, even
13556        /// to untrusted apps).
13557        ///
13558        /// As the name suggests this option *MUST* only be used for testing.
13559        /// Note that the framework will reject (and drop) files which are too
13560        /// large both for simplicity and to be minimize the amount of data we
13561        /// pass to a non-priv app (note that the framework will still check
13562        /// manifest permissions even though SELinux permissions are worked around).
13563        #[prost(bool, optional, tag = "4")]
13564        pub use_pipe_in_framework_for_testing: ::core::option::Option<bool>,
13565    }
13566    /// If set, delays the start of tracing by a random duration. The duration is
13567    /// chosen from a uniform distribution between the specified minimum and
13568    /// maximum.
13569    /// Note: this delay is implemented by perfetto_cmd *not* by traced so will
13570    /// not work if you communicate with traced directly over the consumer API.
13571    /// Introduced in Android T.
13572    #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
13573    pub struct CmdTraceStartDelay {
13574        #[prost(uint32, optional, tag = "1")]
13575        pub min_delay_ms: ::core::option::Option<u32>,
13576        #[prost(uint32, optional, tag = "2")]
13577        pub max_delay_ms: ::core::option::Option<u32>,
13578    }
13579    /// When non-empty, ensures that for a each semaphore named `name at most
13580    /// `max_other_session_count`` *other* sessions (whose value is taken of the
13581    /// minimum of all values specified by this config or any already-running
13582    /// session) can be be running.
13583    ///
13584    /// If a semaphore "acquisition" fails, EnableTracing will return an error
13585    /// and the tracing session will not be started (or elgible to start in
13586    /// the case of deferred sessions).
13587    ///
13588    /// This is easiest to explain with an example. Suppose the tracing service has
13589    /// the following active tracing sessions:
13590    ///    S1 = [{name=foo, max_other_session_count=2},
13591    ///          {name=bar, max_other_session_count=0}]
13592    ///    S2 = [{name=foo, max_other_session_count=1},
13593    ///          {name=baz, max_other_session_count=1}]
13594    ///
13595    /// Then, for a new session, the following would be the expected behaviour of
13596    /// EnableSession given the state of `session_semaphores`.
13597    ///    Q: session_semaphores = \[\]
13598    ///    A: Allowed because it does not specify any semaphores. Will be allowed
13599    ///       no matter the state of any other tracing session.
13600    ///    Q: session_semaphores = \[{name=baz, max_other_session_count=1}\]
13601    ///    A: Allowed because both S2 and this config specify
13602    ///       max_other_session_count=1 for baz.
13603    ///    Q: session_semaphores = \[{name=foo, max_other_session_count=3}\]
13604    ///    A: Denied because S2 specified max_other_session_count=1 for foo and S1
13605    ///       takes that slot.
13606    ///    Q: session_semaphores = \[{name=bar, max_other_session_count=0}\]
13607    ///    A: Denied because S1 takes the the slot specified by both S1 and
13608    ///       this config.
13609    ///
13610    /// Introduced in 24Q3 (Android V).
13611    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
13612    pub struct SessionSemaphore {
13613        /// The name of the semaphore. Acts as a unique identifier across all
13614        /// tracing sessions (including the one being started).
13615        #[prost(string, optional, tag = "1")]
13616        pub name: ::core::option::Option<::prost::alloc::string::String>,
13617        /// The maximum number of *other* sesssions which specify the same semaphore
13618        /// which can be active. The minimum of this value across all tracing
13619        /// sessions and the value specified by the config is used when deciding
13620        /// whether the tracing session can be started.
13621        #[prost(uint64, optional, tag = "2")]
13622        pub max_other_session_count: ::core::option::Option<u64>,
13623    }
13624    #[derive(
13625        Clone,
13626        Copy,
13627        Debug,
13628        PartialEq,
13629        Eq,
13630        Hash,
13631        PartialOrd,
13632        Ord,
13633        ::prost::Enumeration
13634    )]
13635    #[repr(i32)]
13636    pub enum LockdownModeOperation {
13637        LockdownUnchanged = 0,
13638        LockdownClear = 1,
13639        LockdownSet = 2,
13640    }
13641    impl LockdownModeOperation {
13642        /// String value of the enum field names used in the ProtoBuf definition.
13643        ///
13644        /// The values are not transformed in any way and thus are considered stable
13645        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
13646        pub fn as_str_name(&self) -> &'static str {
13647            match self {
13648                Self::LockdownUnchanged => "LOCKDOWN_UNCHANGED",
13649                Self::LockdownClear => "LOCKDOWN_CLEAR",
13650                Self::LockdownSet => "LOCKDOWN_SET",
13651            }
13652        }
13653        /// Creates an enum from field names used in the ProtoBuf definition.
13654        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
13655            match value {
13656                "LOCKDOWN_UNCHANGED" => Some(Self::LockdownUnchanged),
13657                "LOCKDOWN_CLEAR" => Some(Self::LockdownClear),
13658                "LOCKDOWN_SET" => Some(Self::LockdownSet),
13659                _ => None,
13660            }
13661        }
13662    }
13663    /// Deprecated: use |compression| (CompressionConfig) instead. Legacy selector
13664    /// that only ever selects deflate. Kept for backwards compatibility with
13665    /// Perfetto <= v57, whose services predate |compression|. Best effort.
13666    #[derive(
13667        Clone,
13668        Copy,
13669        Debug,
13670        PartialEq,
13671        Eq,
13672        Hash,
13673        PartialOrd,
13674        Ord,
13675        ::prost::Enumeration
13676    )]
13677    #[repr(i32)]
13678    pub enum CompressionType {
13679        Unspecified = 0,
13680        Deflate = 1,
13681    }
13682    impl CompressionType {
13683        /// String value of the enum field names used in the ProtoBuf definition.
13684        ///
13685        /// The values are not transformed in any way and thus are considered stable
13686        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
13687        pub fn as_str_name(&self) -> &'static str {
13688            match self {
13689                Self::Unspecified => "COMPRESSION_TYPE_UNSPECIFIED",
13690                Self::Deflate => "COMPRESSION_TYPE_DEFLATE",
13691            }
13692        }
13693        /// Creates an enum from field names used in the ProtoBuf definition.
13694        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
13695            match value {
13696                "COMPRESSION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
13697                "COMPRESSION_TYPE_DEFLATE" => Some(Self::Deflate),
13698                _ => None,
13699            }
13700        }
13701    }
13702    #[derive(
13703        Clone,
13704        Copy,
13705        Debug,
13706        PartialEq,
13707        Eq,
13708        Hash,
13709        PartialOrd,
13710        Ord,
13711        ::prost::Enumeration
13712    )]
13713    #[repr(i32)]
13714    pub enum StatsdLogging {
13715        Unspecified = 0,
13716        Enabled = 1,
13717        Disabled = 2,
13718    }
13719    impl StatsdLogging {
13720        /// String value of the enum field names used in the ProtoBuf definition.
13721        ///
13722        /// The values are not transformed in any way and thus are considered stable
13723        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
13724        pub fn as_str_name(&self) -> &'static str {
13725            match self {
13726                Self::Unspecified => "STATSD_LOGGING_UNSPECIFIED",
13727                Self::Enabled => "STATSD_LOGGING_ENABLED",
13728                Self::Disabled => "STATSD_LOGGING_DISABLED",
13729            }
13730        }
13731        /// Creates an enum from field names used in the ProtoBuf definition.
13732        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
13733            match value {
13734                "STATSD_LOGGING_UNSPECIFIED" => Some(Self::Unspecified),
13735                "STATSD_LOGGING_ENABLED" => Some(Self::Enabled),
13736                "STATSD_LOGGING_DISABLED" => Some(Self::Disabled),
13737                _ => None,
13738            }
13739        }
13740    }
13741    #[derive(
13742        Clone,
13743        Copy,
13744        Debug,
13745        PartialEq,
13746        Eq,
13747        Hash,
13748        PartialOrd,
13749        Ord,
13750        ::prost::Enumeration
13751    )]
13752    #[repr(i32)]
13753    pub enum WriteFlushMode {
13754        /// Same as WRITE_FLUSH_AUTO.
13755        WriteFlushUnspecified = 0,
13756        /// Default mode. The service automatically determines the flush frequency
13757        /// to balance performance and data freshness:
13758        /// 1) If file_write_period_ms <= 5s (kDefaultWriteIntoFilePeriodMs):
13759        ///     Flushes are NOT issued on every write. Instead, a periodic flush is
13760        ///     issued every 5s.
13761        /// 2) If file_write_period_ms > 5s:
13762        ///     A flush is issued before every periodic write into the file.
13763        WriteFlushAuto = 1,
13764        /// The following modes are intended for advanced usage and not recommended
13765        /// for general use.
13766        ///
13767        /// Do not flush buffers before periodic writes into the file.
13768        /// Use this mode if you want to minimize the performance impact of flushes
13769        /// and can tolerate potentially missing the most recent data in the trace
13770        /// file until the end of the session or an explicit flush.
13771        /// When this mode is selected, |flush_period_ms| is respected.
13772        WriteFlushDisabled = 2,
13773        /// Issue a flush before every periodic write into the file.
13774        /// This ensures that each write into the file contains the most up-to-date
13775        /// data from all data sources, but may have a higher performance overhead.
13776        WriteFlushEnabled = 3,
13777    }
13778    impl WriteFlushMode {
13779        /// String value of the enum field names used in the ProtoBuf definition.
13780        ///
13781        /// The values are not transformed in any way and thus are considered stable
13782        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
13783        pub fn as_str_name(&self) -> &'static str {
13784            match self {
13785                Self::WriteFlushUnspecified => "WRITE_FLUSH_UNSPECIFIED",
13786                Self::WriteFlushAuto => "WRITE_FLUSH_AUTO",
13787                Self::WriteFlushDisabled => "WRITE_FLUSH_DISABLED",
13788                Self::WriteFlushEnabled => "WRITE_FLUSH_ENABLED",
13789            }
13790        }
13791        /// Creates an enum from field names used in the ProtoBuf definition.
13792        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
13793            match value {
13794                "WRITE_FLUSH_UNSPECIFIED" => Some(Self::WriteFlushUnspecified),
13795                "WRITE_FLUSH_AUTO" => Some(Self::WriteFlushAuto),
13796                "WRITE_FLUSH_DISABLED" => Some(Self::WriteFlushDisabled),
13797                "WRITE_FLUSH_ENABLED" => Some(Self::WriteFlushEnabled),
13798                _ => None,
13799            }
13800        }
13801    }
13802    #[derive(
13803        Clone,
13804        Copy,
13805        Debug,
13806        PartialEq,
13807        Eq,
13808        Hash,
13809        PartialOrd,
13810        Ord,
13811        ::prost::Enumeration
13812    )]
13813    #[repr(i32)]
13814    pub enum FFlushMode {
13815        /// Default: same as FFLUSH_DISABLED.
13816        FflushUnspecified = 0,
13817        /// Do not explicitly sync the file to storage after each write pass.
13818        FflushDisabled = 1,
13819        /// Explicitly sync the file to storage (via fdatasync) after each periodic
13820        /// write pass. Increases data durability at the cost of higher disk I/O
13821        /// overhead.
13822        FflushEnabled = 2,
13823    }
13824    impl FFlushMode {
13825        /// String value of the enum field names used in the ProtoBuf definition.
13826        ///
13827        /// The values are not transformed in any way and thus are considered stable
13828        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
13829        pub fn as_str_name(&self) -> &'static str {
13830            match self {
13831                Self::FflushUnspecified => "FFLUSH_UNSPECIFIED",
13832                Self::FflushDisabled => "FFLUSH_DISABLED",
13833                Self::FflushEnabled => "FFLUSH_ENABLED",
13834            }
13835        }
13836        /// Creates an enum from field names used in the ProtoBuf definition.
13837        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
13838            match value {
13839                "FFLUSH_UNSPECIFIED" => Some(Self::FflushUnspecified),
13840                "FFLUSH_DISABLED" => Some(Self::FflushDisabled),
13841                "FFLUSH_ENABLED" => Some(Self::FflushEnabled),
13842                _ => None,
13843            }
13844        }
13845    }
13846}
13847/// Arguments for rpc EnableTracing().
13848#[derive(Clone, PartialEq, ::prost::Message)]
13849pub struct EnableTracingRequest {
13850    #[prost(message, optional, tag = "1")]
13851    pub trace_config: ::core::option::Option<TraceConfig>,
13852    /// Introduced in Android Q. This is used for re-attaching to the end-of-trace
13853    /// EnableTracingResponse notification after a Detach+Attach request.
13854    /// When this flag is set the |trace_config| is ignored and no method is called
13855    /// on the tracing service.
13856    #[prost(bool, optional, tag = "2")]
13857    pub attach_notification_only: ::core::option::Option<bool>,
13858}
13859#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
13860pub struct EnableTracingResponse {
13861    /// If present and non-empty tracing was disabled because of an error.
13862    /// Introduced in Android S.
13863    #[prost(string, optional, tag = "3")]
13864    pub error: ::core::option::Option<::prost::alloc::string::String>,
13865    #[prost(oneof = "enable_tracing_response::State", tags = "1")]
13866    pub state: ::core::option::Option<enable_tracing_response::State>,
13867}
13868/// Nested message and enum types in `EnableTracingResponse`.
13869pub mod enable_tracing_response {
13870    #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
13871    pub enum State {
13872        #[prost(bool, tag = "1")]
13873        Disabled(bool),
13874    }
13875}
13876/// Arguments for rpc StartTracing().
13877#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
13878pub struct StartTracingRequest {}
13879#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
13880pub struct StartTracingResponse {}
13881/// Arguments for rpc ChangeTraceConfig().
13882#[derive(Clone, PartialEq, ::prost::Message)]
13883pub struct ChangeTraceConfigRequest {
13884    #[prost(message, optional, tag = "1")]
13885    pub trace_config: ::core::option::Option<TraceConfig>,
13886}
13887#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
13888pub struct ChangeTraceConfigResponse {}
13889/// Arguments for rpc DisableTracing().
13890///
13891/// TODO: not supported yet, selectively disable only some data sources.
13892/// repeated string data_source_name;
13893#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
13894pub struct DisableTracingRequest {}
13895#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
13896pub struct DisableTracingResponse {}
13897/// Arguments for rpc ReadBuffers().
13898///
13899/// The |id|s of the buffer, as passed to CreateBuffers().
13900/// TODO: repeated uint32 buffer_ids = 1;
13901#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
13902pub struct ReadBuffersRequest {}
13903/// TODO: uint32 buffer_id = 1;
13904#[derive(Clone, PartialEq, ::prost::Message)]
13905pub struct ReadBuffersResponse {
13906    #[prost(message, repeated, tag = "2")]
13907    pub slices: ::prost::alloc::vec::Vec<read_buffers_response::Slice>,
13908}
13909/// Nested message and enum types in `ReadBuffersResponse`.
13910pub mod read_buffers_response {
13911    /// Each streaming reply returns one or more slices for one or more trace
13912    /// packets, or even just a portion of it (if it's too big to fit within one
13913    /// IPC). The returned slices are ordered and contiguous: packets' slices are
13914    /// not interleaved and slices are sent only once all slices for a packet are
13915    /// available (i.e. the consumer will never see any gap).
13916    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
13917    pub struct Slice {
13918        #[prost(bytes = "vec", optional, tag = "1")]
13919        pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
13920        /// When true, this is the last slice for the packet. A ReadBufferResponse
13921        /// might have no slices marked as |last_slice_for_packet|==true, in the case
13922        /// of a very large packet that gets chunked into several IPCs (in which case
13923        /// only the last IPC for the packet will have this flag set).
13924        #[prost(bool, optional, tag = "2")]
13925        pub last_slice_for_packet: ::core::option::Option<bool>,
13926    }
13927}
13928/// Arguments for rpc FreeBuffers().
13929#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
13930pub struct FreeBuffersRequest {
13931    /// The |id|s of the buffer, as passed to CreateBuffers().
13932    #[prost(uint32, repeated, packed = "false", tag = "1")]
13933    pub buffer_ids: ::prost::alloc::vec::Vec<u32>,
13934}
13935#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
13936pub struct FreeBuffersResponse {}
13937/// Arguments for rpc Flush().
13938#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
13939pub struct FlushRequest {
13940    #[prost(uint32, optional, tag = "1")]
13941    pub timeout_ms: ::core::option::Option<u32>,
13942    /// More details such as flush reason and originator. Introduced in v38 / V.
13943    /// See FlushFlags in include/perfetto/ext/tracing/core/flush_flags.h.
13944    #[prost(uint64, optional, tag = "2")]
13945    pub flags: ::core::option::Option<u64>,
13946}
13947#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
13948pub struct FlushResponse {}
13949/// Arguments for rpc Detach
13950#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
13951pub struct DetachRequest {
13952    #[prost(string, optional, tag = "1")]
13953    pub key: ::core::option::Option<::prost::alloc::string::String>,
13954}
13955#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
13956pub struct DetachResponse {}
13957/// Arguments for rpc Attach.
13958#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
13959pub struct AttachRequest {
13960    #[prost(string, optional, tag = "1")]
13961    pub key: ::core::option::Option<::prost::alloc::string::String>,
13962}
13963#[derive(Clone, PartialEq, ::prost::Message)]
13964pub struct AttachResponse {
13965    #[prost(message, optional, tag = "1")]
13966    pub trace_config: ::core::option::Option<TraceConfig>,
13967}
13968/// Arguments for rpc GetTraceStats.
13969#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
13970pub struct GetTraceStatsRequest {}
13971#[derive(Clone, PartialEq, ::prost::Message)]
13972pub struct GetTraceStatsResponse {
13973    #[prost(message, optional, tag = "1")]
13974    pub trace_stats: ::core::option::Option<TraceStats>,
13975}
13976/// Arguments for rpc ObserveEvents.
13977///
13978/// To stop observing events of a certain type, send a request with the remaining
13979/// types. To stop observing completely, send an empty request.
13980#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
13981pub struct ObserveEventsRequest {
13982    #[prost(
13983        enumeration = "observable_events::Type",
13984        repeated,
13985        packed = "false",
13986        tag = "1"
13987    )]
13988    pub events_to_observe: ::prost::alloc::vec::Vec<i32>,
13989}
13990#[derive(Clone, PartialEq, ::prost::Message)]
13991pub struct ObserveEventsResponse {
13992    #[prost(message, optional, tag = "1")]
13993    pub events: ::core::option::Option<ObservableEvents>,
13994}
13995/// Arguments for rpc QueryServiceState.
13996#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
13997pub struct QueryServiceStateRequest {
13998    /// If set, only the TracingServiceState.tracing_sessions is filled. Producers
13999    /// and data sources are omitted.
14000    #[prost(bool, optional, tag = "1")]
14001    pub sessions_only: ::core::option::Option<bool>,
14002}
14003#[derive(Clone, PartialEq, ::prost::Message)]
14004pub struct QueryServiceStateResponse {
14005    /// In order to avoid hitting IPC message size limitations, the service will
14006    /// return >1 replies for each query, chunking the TracingServiceState. The
14007    /// receiver is expected to merge replies together and parse that when the
14008    /// last reply is received (i.e. when IPC's |has_more| == false).
14009    #[prost(message, optional, tag = "1")]
14010    pub service_state: ::core::option::Option<TracingServiceState>,
14011}
14012/// Arguments for rpc QueryCapabilities.
14013#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
14014pub struct QueryCapabilitiesRequest {}
14015#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
14016pub struct QueryCapabilitiesResponse {
14017    #[prost(message, optional, tag = "1")]
14018    pub capabilities: ::core::option::Option<TracingServiceCapabilities>,
14019}
14020/// Arguments for rpc SaveTraceForBugreport.
14021#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
14022pub struct SaveTraceForBugreportRequest {}
14023/// This response is sent only after the trace was saved into file (if succeeded)
14024/// or something failed.
14025#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
14026pub struct SaveTraceForBugreportResponse {
14027    /// If true, an eligible the trace was saved into a known location (on Android
14028    /// /data/misc/perfetto-traces, see GetBugreportTracePath()).
14029    /// If false no trace with bugreport_score > 0 was found or an error occurred.
14030    /// see |msg| in that case for details about the failure.
14031    #[prost(bool, optional, tag = "1")]
14032    pub success: ::core::option::Option<bool>,
14033    #[prost(string, optional, tag = "2")]
14034    pub msg: ::core::option::Option<::prost::alloc::string::String>,
14035}
14036/// Arguments for rpc CloneSession.
14037/// Consumer may also send a file descriptor with this rpc message. If the
14038/// descriptor is valid, and the session that should be cloned is
14039/// 'write_into_file' session, traced writes the cloned session content to that
14040/// file descriptor, instead of writing it in the cloned session buffers.
14041#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
14042pub struct CloneSessionRequest {
14043    /// If set, the trace filter will not have effect on the cloned session.
14044    /// Used for bugreports.
14045    #[prost(bool, optional, tag = "2")]
14046    pub skip_trace_filter: ::core::option::Option<bool>,
14047    /// If set, affects the generation of the FlushFlags::CloneTarget to be set
14048    /// to kBugreport when requesting the flush to the producers.
14049    #[prost(bool, optional, tag = "3")]
14050    pub for_bugreport: ::core::option::Option<bool>,
14051    /// If set, this is stored in the trace as name of the trigger that caused the
14052    /// clone.
14053    #[prost(string, optional, tag = "5")]
14054    pub clone_trigger_name: ::core::option::Option<::prost::alloc::string::String>,
14055    /// If set, this is stored in the trace as name of the producer that triggered
14056    /// the clone.
14057    #[prost(string, optional, tag = "6")]
14058    pub clone_trigger_producer_name: ::core::option::Option<
14059        ::prost::alloc::string::String,
14060    >,
14061    /// If set, this is stored in the trace as uid of the producer that triggered
14062    /// the clone.
14063    #[prost(int32, optional, tag = "7")]
14064    pub clone_trigger_trusted_producer_uid: ::core::option::Option<i32>,
14065    /// If set, this is stored in the trace as timestamp of the trigger that caused
14066    /// the clone.
14067    #[prost(uint64, optional, tag = "8")]
14068    pub clone_trigger_boot_time_ns: ::core::option::Option<u64>,
14069    /// If set, this is stored in the trace as the configured delay of the trigger
14070    /// that caused the clone.
14071    #[prost(uint64, optional, tag = "9")]
14072    pub clone_trigger_delay_ms: ::core::option::Option<u64>,
14073    #[prost(oneof = "clone_session_request::Selector", tags = "1, 4")]
14074    pub selector: ::core::option::Option<clone_session_request::Selector>,
14075}
14076/// Nested message and enum types in `CloneSessionRequest`.
14077pub mod clone_session_request {
14078    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
14079    pub enum Selector {
14080        /// The session ID to clone. If session_id == kBugreportSessionId (0xff...ff)
14081        /// the session with the highest bugreport score is cloned (if any exists).
14082        #[prost(uint64, tag = "1")]
14083        SessionId(u64),
14084        /// The unique_session_name of the tracing session to clone. Tracing sessions
14085        /// that are clones of other tracing sessions are ignored.
14086        #[prost(string, tag = "4")]
14087        UniqueSessionName(::prost::alloc::string::String),
14088    }
14089}
14090#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
14091pub struct CloneSessionResponse {
14092    /// If true, the clone was successful. If false it failed and |error| contains
14093    /// the details about the failure.
14094    #[prost(bool, optional, tag = "1")]
14095    pub success: ::core::option::Option<bool>,
14096    #[prost(string, optional, tag = "2")]
14097    pub error: ::core::option::Option<::prost::alloc::string::String>,
14098    /// The UUID of the cloned session.
14099    #[prost(int64, optional, tag = "3")]
14100    pub uuid_msb: ::core::option::Option<i64>,
14101    #[prost(int64, optional, tag = "4")]
14102    pub uuid_lsb: ::core::option::Option<i64>,
14103    /// TracingService sets this when the cloned session was write_into_file=true.
14104    /// The consumer cannot know upfront if a session is WIF or not.
14105    /// Introduced in v53.
14106    #[prost(bool, optional, tag = "5")]
14107    pub was_write_into_file: ::core::option::Option<bool>,
14108}
14109#[derive(Clone, PartialEq, ::prost::Message)]
14110pub struct CommitDataRequest {
14111    #[prost(message, repeated, tag = "1")]
14112    pub chunks_to_move: ::prost::alloc::vec::Vec<commit_data_request::ChunksToMove>,
14113    #[prost(message, repeated, tag = "2")]
14114    pub chunks_to_patch: ::prost::alloc::vec::Vec<commit_data_request::ChunkToPatch>,
14115    /// Optional. If this commit is made in response to a Flush(id) request coming
14116    /// from the service, copy back the id of the request so the service can tell
14117    /// when the flush happened.
14118    #[prost(uint64, optional, tag = "3")]
14119    pub flush_request_id: ::core::option::Option<u64>,
14120}
14121/// Nested message and enum types in `CommitDataRequest`.
14122pub mod commit_data_request {
14123    /// When |chunks_to_move| is present, the producer is requesting the service to
14124    /// move the given chunks form the share memory buffer into the central
14125    /// trace buffer(s).
14126    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
14127    pub struct ChunksToMove {
14128        /// The 0-based index of the page in the Shared Memory Buffer.
14129        #[prost(uint32, optional, tag = "1")]
14130        pub page: ::core::option::Option<u32>,
14131        /// The 0-based chunk index \[0..13\] within the page.
14132        #[prost(uint32, optional, tag = "2")]
14133        pub chunk: ::core::option::Option<u32>,
14134        /// The target buffer it should be moved onto. The service will check that
14135        /// the producer is allowed to write into that buffer before the move.
14136        #[prost(uint32, optional, tag = "3")]
14137        pub target_buffer: ::core::option::Option<u32>,
14138        /// Sending the chunk data over the wire. Used for transports that don't
14139        /// support shared memory (e.g. vsock or TCP sockets). In the default case
14140        /// (tracing protocol over a Unix socket), this field is not used and tracing
14141        /// data is stored in the shmem buffer and referenced by the fields above.
14142        /// See |use_shemem_emulation| in the codebase for reference.
14143        #[prost(bytes = "vec", optional, tag = "4")]
14144        pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
14145        /// Set to true when scraping data in shmem emulation (aka commits-over-ipc)
14146        /// AND the chunk was still in kChunkBeingWritten. This is necessary because
14147        /// in emulation mode, the service cannot tell whether this is a complete
14148        /// chunk coming from a regular TraceWriter commit, or a scraped one.
14149        /// This field is only set when `data` is present. It is never set (and is
14150        /// ignored by the service) for the regular case of doing commits over
14151        /// shmem. Introduced in Perfetto v54.
14152        /// See /rfcs/0010-smb-scraping-remote-producers.md .
14153        #[prost(bool, optional, tag = "5")]
14154        pub chunk_incomplete: ::core::option::Option<bool>,
14155    }
14156    /// Used to patch chunks that have already been sent to the service. The chunk
14157    /// might not be in the shared memory buffer anymore as it could have been
14158    /// moved by the service in response to a prior CommitDataRequest.
14159    /// It is perfectly valid to patch a chunk that is being notified in the same
14160    /// message (a chunk can show up both in the |changed_pages| and |patches|
14161    /// field within the same CommitDataRequest message).
14162    /// In other words, |chunks_to_patch| is always processed after
14163    /// |chunks_to_move|.
14164    #[derive(Clone, PartialEq, ::prost::Message)]
14165    pub struct ChunkToPatch {
14166        #[prost(uint32, optional, tag = "1")]
14167        pub target_buffer: ::core::option::Option<u32>,
14168        /// {WriterID, ChunkID} uniquely identify a chunk for the current producer.
14169        #[prost(uint32, optional, tag = "2")]
14170        pub writer_id: ::core::option::Option<u32>,
14171        #[prost(uint32, optional, tag = "3")]
14172        pub chunk_id: ::core::option::Option<u32>,
14173        /// List of patches to apply to the given chunk.
14174        #[prost(message, repeated, tag = "4")]
14175        pub patches: ::prost::alloc::vec::Vec<chunk_to_patch::Patch>,
14176        /// When true more patches will follow in future requests and the chunk
14177        /// should be still considered as patch-pending. When false the chunk becomes
14178        /// eligible for reading.
14179        #[prost(bool, optional, tag = "5")]
14180        pub has_more_patches: ::core::option::Option<bool>,
14181    }
14182    /// Nested message and enum types in `ChunkToPatch`.
14183    pub mod chunk_to_patch {
14184        #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
14185        pub struct Patch {
14186            /// Offset in bytes from the start of the chunk payload. e.g., offset == 0
14187            /// corresponds to the first byte of the first packet (or fragment) in the
14188            /// chunk.
14189            #[prost(uint32, optional, tag = "1")]
14190            pub offset: ::core::option::Option<u32>,
14191            /// Bytes to patch at the given offset.
14192            #[prost(bytes = "vec", optional, tag = "2")]
14193            pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
14194        }
14195    }
14196}
14197/// Arguments for rpc InitializeConnection().
14198#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
14199pub struct InitializeConnectionRequest {
14200    /// Optional. Provides a hint to the tracing service about the suggested size
14201    /// of the shared memory buffer pages. The service is not required to respect
14202    /// this if it has already another value in the configuration or if the hint
14203    /// is unreasonably large. Must be an integer multiple of 4096. See tradeoff
14204    /// considerations in shared_memory_abi.h.
14205    #[prost(uint32, optional, tag = "1")]
14206    pub shared_memory_page_size_hint_bytes: ::core::option::Option<u32>,
14207    /// Optional. Provides a hint to the tracing service about the suggested size
14208    /// of the shared memory buffer. The service is not required to respect this
14209    /// and might return a smaller buffer.
14210    #[prost(uint32, optional, tag = "2")]
14211    pub shared_memory_size_hint_bytes: ::core::option::Option<u32>,
14212    /// Required to match the producer config set by the service to the correct
14213    /// producer.
14214    #[prost(string, optional, tag = "3")]
14215    pub producer_name: ::core::option::Option<::prost::alloc::string::String>,
14216    /// If provided, overrides the service's SMB scraping setting for the producer.
14217    #[prost(
14218        enumeration = "initialize_connection_request::ProducerSmbScrapingMode",
14219        optional,
14220        tag = "4"
14221    )]
14222    pub smb_scraping_mode: ::core::option::Option<i32>,
14223    /// Since Android R, this request can also transport an FD for the producer's
14224    /// shared memory buffer, if allocated by the producer (e.g. for startup
14225    /// tracing). In this case, |shared_memory_page_size_hint_bytes| is a required
14226    /// field, and describes the SMB's page size. Note that the service may not
14227    /// accept this SMB (e.g. because it is too old or its size / page size are
14228    /// invalid) and instead allocate a new SMB which is provided in the
14229    /// SetupTracing response. See TracingService::ConnectProducer() and
14230    /// |using_shmem_provided_by_producer| in InitializeConnectionResponse.
14231    #[prost(bool, optional, tag = "6")]
14232    pub producer_provided_shmem: ::core::option::Option<bool>,
14233    /// The version of the client library used by the producer.
14234    /// This is a human readable string with and its format varies depending on
14235    /// the build system that is used to build the code and the repo (standalone
14236    /// vs AOSP). This is intended for human debugging only.
14237    #[prost(string, optional, tag = "8")]
14238    pub sdk_version: ::core::option::Option<::prost::alloc::string::String>,
14239    /// On Windows, when producer_provided_shmem = true, the client creates a named
14240    /// SHM region and passes the name (an unguessable token) back to the service.
14241    /// Introduced in v13.
14242    #[prost(string, optional, tag = "7")]
14243    pub shm_key_windows: ::core::option::Option<::prost::alloc::string::String>,
14244}
14245/// Nested message and enum types in `InitializeConnectionRequest`.
14246pub mod initialize_connection_request {
14247    #[derive(
14248        Clone,
14249        Copy,
14250        Debug,
14251        PartialEq,
14252        Eq,
14253        Hash,
14254        PartialOrd,
14255        Ord,
14256        ::prost::Enumeration
14257    )]
14258    #[repr(i32)]
14259    pub enum ProducerSmbScrapingMode {
14260        /// Use the service's default setting for SMB scraping.
14261        SmbScrapingUnspecified = 0,
14262        /// Enable scraping of uncommitted chunks from the producer's shared memory
14263        /// buffer.
14264        SmbScrapingEnabled = 1,
14265        /// Disable scraping of uncommitted chunks from the producer's shared memory
14266        /// buffer.
14267        SmbScrapingDisabled = 2,
14268    }
14269    impl ProducerSmbScrapingMode {
14270        /// String value of the enum field names used in the ProtoBuf definition.
14271        ///
14272        /// The values are not transformed in any way and thus are considered stable
14273        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
14274        pub fn as_str_name(&self) -> &'static str {
14275            match self {
14276                Self::SmbScrapingUnspecified => "SMB_SCRAPING_UNSPECIFIED",
14277                Self::SmbScrapingEnabled => "SMB_SCRAPING_ENABLED",
14278                Self::SmbScrapingDisabled => "SMB_SCRAPING_DISABLED",
14279            }
14280        }
14281        /// Creates an enum from field names used in the ProtoBuf definition.
14282        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
14283            match value {
14284                "SMB_SCRAPING_UNSPECIFIED" => Some(Self::SmbScrapingUnspecified),
14285                "SMB_SCRAPING_ENABLED" => Some(Self::SmbScrapingEnabled),
14286                "SMB_SCRAPING_DISABLED" => Some(Self::SmbScrapingDisabled),
14287                _ => None,
14288            }
14289        }
14290    }
14291}
14292#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
14293pub struct InitializeConnectionResponse {
14294    /// Indicates whether the service accepted the SMB provided by the producer in
14295    /// InitializeConnectionRequest (if any). If false, the shared memory buffer FD
14296    /// will provided by the service via the SetupTracing async command.
14297    #[prost(bool, optional, tag = "1")]
14298    pub using_shmem_provided_by_producer: ::core::option::Option<bool>,
14299    /// Indicates to the producer that the service allows direct SMB patching of
14300    /// chunks that have not yet been committed to it.
14301    /// This field has been introduced in Android S.
14302    #[prost(bool, optional, tag = "2")]
14303    pub direct_smb_patching_supported: ::core::option::Option<bool>,
14304    /// Indicates whether the service would like to use SMB emulation for the
14305    /// connection, and request the client to send chunk data over the socket e.g.
14306    /// for remote connection from a VM guest.
14307    #[prost(bool, optional, tag = "3")]
14308    pub use_shmem_emulation: ::core::option::Option<bool>,
14309}
14310/// Arguments for rpc RegisterDataSource().
14311#[derive(Clone, PartialEq, ::prost::Message)]
14312pub struct RegisterDataSourceRequest {
14313    #[prost(message, optional, tag = "1")]
14314    pub data_source_descriptor: ::core::option::Option<DataSourceDescriptor>,
14315}
14316#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
14317pub struct RegisterDataSourceResponse {
14318    /// Only set in case of errors, when |data_source_id| == 0.
14319    #[prost(string, optional, tag = "1")]
14320    pub error: ::core::option::Option<::prost::alloc::string::String>,
14321}
14322/// Arguments for rpc UpdateDataSource().
14323#[derive(Clone, PartialEq, ::prost::Message)]
14324pub struct UpdateDataSourceRequest {
14325    /// The new data_source_descriptor.{id, name} must match {id, name} of a
14326    /// data source previously registered via RegisterDataSource().
14327    #[prost(message, optional, tag = "1")]
14328    pub data_source_descriptor: ::core::option::Option<DataSourceDescriptor>,
14329}
14330#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
14331pub struct UpdateDataSourceResponse {}
14332/// Arguments for rpc UnregisterDataSource().
14333#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
14334pub struct UnregisterDataSourceRequest {
14335    /// The name of the data source to unregister, as previously passed in
14336    /// |RegisterDataSourceRequest.name|.
14337    #[prost(string, optional, tag = "1")]
14338    pub data_source_name: ::core::option::Option<::prost::alloc::string::String>,
14339}
14340#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
14341pub struct UnregisterDataSourceResponse {}
14342/// Arguments for rpc RegisterTraceWriter().
14343#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
14344pub struct RegisterTraceWriterRequest {
14345    /// The ID of a producer's trace writer.
14346    #[prost(uint32, optional, tag = "1")]
14347    pub trace_writer_id: ::core::option::Option<u32>,
14348    /// The ID of the target buffer that the trace writer commits its chunks to.
14349    #[prost(uint32, optional, tag = "2")]
14350    pub target_buffer: ::core::option::Option<u32>,
14351}
14352#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
14353pub struct RegisterTraceWriterResponse {}
14354/// Arguments for rpc UnregisterTraceWriter().
14355#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
14356pub struct UnregisterTraceWriterRequest {
14357    /// The ID of a producer's trace writer.
14358    #[prost(uint32, optional, tag = "1")]
14359    pub trace_writer_id: ::core::option::Option<u32>,
14360}
14361#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
14362pub struct UnregisterTraceWriterResponse {}
14363/// Arguments for rpc CommitData().
14364/// See commit_data_request.proto for CommitDataRequest. That has its own file
14365/// because it is used also as input to generate C++ classes (xxx.gen.h).
14366#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
14367pub struct CommitDataResponse {}
14368/// Arguments for rpc NotifyDataSourceStarted().
14369#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
14370pub struct NotifyDataSourceStartedRequest {
14371    /// ID of the data source that has successfully started.
14372    #[prost(uint64, optional, tag = "1")]
14373    pub data_source_id: ::core::option::Option<u64>,
14374}
14375#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
14376pub struct NotifyDataSourceStartedResponse {}
14377/// Arguments for rpc NotifyDataSourceStopped().
14378#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
14379pub struct NotifyDataSourceStoppedRequest {
14380    /// ID of the data source that has successfully stopped.
14381    #[prost(uint64, optional, tag = "1")]
14382    pub data_source_id: ::core::option::Option<u64>,
14383}
14384#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
14385pub struct NotifyDataSourceStoppedResponse {}
14386/// Arguments for rpc ActivateTriggersRequest().
14387#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
14388pub struct ActivateTriggersRequest {
14389    #[prost(string, repeated, tag = "1")]
14390    pub trigger_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
14391}
14392#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
14393pub struct ActivateTriggersResponse {}
14394/// Arguments for rpc GetAsyncCommand().
14395#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
14396pub struct GetAsyncCommandRequest {}
14397#[derive(Clone, PartialEq, ::prost::Message)]
14398pub struct GetAsyncCommandResponse {
14399    /// Next id: 8.
14400    #[prost(oneof = "get_async_command_response::Cmd", tags = "3, 6, 1, 2, 5, 7")]
14401    pub cmd: ::core::option::Option<get_async_command_response::Cmd>,
14402}
14403/// Nested message and enum types in `GetAsyncCommandResponse`.
14404pub mod get_async_command_response {
14405    /// Called after SetupTracing and before StartDataSource.
14406    /// This message was introduced in Android Q.
14407    #[derive(Clone, PartialEq, ::prost::Message)]
14408    pub struct SetupDataSource {
14409        #[prost(uint64, optional, tag = "1")]
14410        pub new_instance_id: ::core::option::Option<u64>,
14411        #[prost(message, optional, tag = "2")]
14412        pub config: ::core::option::Option<super::DataSourceConfig>,
14413    }
14414    #[derive(Clone, PartialEq, ::prost::Message)]
14415    pub struct StartDataSource {
14416        #[prost(uint64, optional, tag = "1")]
14417        pub new_instance_id: ::core::option::Option<u64>,
14418        /// For backwards compat reasons (with Android P), the config passed here
14419        /// is identical to the one passed to SetupDataSource.config.
14420        #[prost(message, optional, tag = "2")]
14421        pub config: ::core::option::Option<super::DataSourceConfig>,
14422    }
14423    #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
14424    pub struct StopDataSource {
14425        #[prost(uint64, optional, tag = "1")]
14426        pub instance_id: ::core::option::Option<u64>,
14427    }
14428    /// On Android/Linux/Mac this message also transports the file descriptor for
14429    /// the shared memory buffer (not a proto field).
14430    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
14431    pub struct SetupTracing {
14432        #[prost(uint32, optional, tag = "1")]
14433        pub shared_buffer_page_size_kb: ::core::option::Option<u32>,
14434        /// On Windows, instead, we pass the name (an unguessable token) of a shared
14435        /// memory region that can be attached by the other process by name.
14436        /// Introduced in v13.
14437        #[prost(string, optional, tag = "2")]
14438        pub shm_key_windows: ::core::option::Option<::prost::alloc::string::String>,
14439    }
14440    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
14441    pub struct Flush {
14442        /// The instance id (i.e. StartDataSource.new_instance_id) of the data
14443        /// sources to flush.
14444        #[prost(uint64, repeated, packed = "false", tag = "1")]
14445        pub data_source_ids: ::prost::alloc::vec::Vec<u64>,
14446        /// A monotonic counter generated by the service. The producer is simply
14447        /// expected to copy this value back into the CommitDataRequest, so the
14448        /// service can tell when the data for this flush has been committed.
14449        #[prost(uint64, optional, tag = "2")]
14450        pub request_id: ::core::option::Option<u64>,
14451        /// More details such as flush reason and originator. Introduced in v38 / V.
14452        /// See FlushFlags in include/perfetto/ext/tracing/core/flush_flags.h.
14453        #[prost(uint64, optional, tag = "3")]
14454        pub flags: ::core::option::Option<u64>,
14455    }
14456    /// Instructs the given data sources to stop referring to any trace contents
14457    /// emitted so far. Sent only to active data sources that set
14458    /// |handles_incremental_state_clear| in their DataSourceDescriptor.
14459    ///
14460    /// Added to perfetto tree in May 2019.
14461    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
14462    pub struct ClearIncrementalState {
14463        /// The instance id (i.e. StartDataSource.new_instance_id) of the data
14464        /// sources that should clear their incremental state.
14465        #[prost(uint64, repeated, packed = "false", tag = "1")]
14466        pub data_source_ids: ::prost::alloc::vec::Vec<u64>,
14467    }
14468    /// Next id: 8.
14469    #[derive(Clone, PartialEq, ::prost::Oneof)]
14470    pub enum Cmd {
14471        #[prost(message, tag = "3")]
14472        SetupTracing(SetupTracing),
14473        #[prost(message, tag = "6")]
14474        SetupDataSource(SetupDataSource),
14475        #[prost(message, tag = "1")]
14476        StartDataSource(StartDataSource),
14477        #[prost(message, tag = "2")]
14478        StopDataSource(StopDataSource),
14479        /// id == 4 was teardown_tracing, never implemented.
14480        #[prost(message, tag = "5")]
14481        Flush(Flush),
14482        #[prost(message, tag = "7")]
14483        ClearIncrementalState(ClearIncrementalState),
14484    }
14485}
14486/// Arguments for rpc Sync().
14487#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
14488pub struct SyncRequest {}
14489#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
14490pub struct SyncResponse {}
14491#[derive(Clone, PartialEq, ::prost::Message)]
14492pub struct IpcFrame {
14493    /// The client is expected to send requests with monotonically increasing
14494    /// request_id. The host will match the request_id sent from the client.
14495    /// In the case of a Streaming response (has_more = true) the host will send
14496    /// several InvokeMethodReply with the same request_id.
14497    #[prost(uint64, optional, tag = "2")]
14498    pub request_id: ::core::option::Option<u64>,
14499    /// Used only in unittests to generate a parsable message of arbitrary size.
14500    #[prost(bytes = "vec", repeated, tag = "1")]
14501    pub data_for_testing: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
14502    #[prost(oneof = "ipc_frame::Msg", tags = "3, 4, 5, 6, 7, 8")]
14503    pub msg: ::core::option::Option<ipc_frame::Msg>,
14504}
14505/// Nested message and enum types in `IPCFrame`.
14506pub mod ipc_frame {
14507    /// Client -> Host.
14508    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
14509    pub struct BindService {
14510        #[prost(string, optional, tag = "1")]
14511        pub service_name: ::core::option::Option<::prost::alloc::string::String>,
14512    }
14513    /// Host -> Client.
14514    #[derive(Clone, PartialEq, ::prost::Message)]
14515    pub struct BindServiceReply {
14516        #[prost(bool, optional, tag = "1")]
14517        pub success: ::core::option::Option<bool>,
14518        #[prost(uint32, optional, tag = "2")]
14519        pub service_id: ::core::option::Option<u32>,
14520        #[prost(message, repeated, tag = "3")]
14521        pub methods: ::prost::alloc::vec::Vec<bind_service_reply::MethodInfo>,
14522    }
14523    /// Nested message and enum types in `BindServiceReply`.
14524    pub mod bind_service_reply {
14525        #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
14526        pub struct MethodInfo {
14527            #[prost(uint32, optional, tag = "1")]
14528            pub id: ::core::option::Option<u32>,
14529            #[prost(string, optional, tag = "2")]
14530            pub name: ::core::option::Option<::prost::alloc::string::String>,
14531        }
14532    }
14533    /// Client -> Host.
14534    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
14535    pub struct InvokeMethod {
14536        /// BindServiceReply.id.
14537        #[prost(uint32, optional, tag = "1")]
14538        pub service_id: ::core::option::Option<u32>,
14539        /// BindServiceReply.method.id.
14540        #[prost(uint32, optional, tag = "2")]
14541        pub method_id: ::core::option::Option<u32>,
14542        /// Proto-encoded request argument.
14543        #[prost(bytes = "vec", optional, tag = "3")]
14544        pub args_proto: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
14545        /// When true the client specifies that a reply is not needed. The use case
14546        /// is a method with an empty, where the client doesn't care about the
14547        /// success/failure of the method invocation and rather prefers avoiding the
14548        /// IPC roundtrip + context switch associated with the reply.
14549        #[prost(bool, optional, tag = "4")]
14550        pub drop_reply: ::core::option::Option<bool>,
14551    }
14552    /// Host -> Client.
14553    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
14554    pub struct InvokeMethodReply {
14555        #[prost(bool, optional, tag = "1")]
14556        pub success: ::core::option::Option<bool>,
14557        /// only for streaming RPCs.
14558        #[prost(bool, optional, tag = "2")]
14559        pub has_more: ::core::option::Option<bool>,
14560        /// proto-encoded response value.
14561        #[prost(bytes = "vec", optional, tag = "3")]
14562        pub reply_proto: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
14563    }
14564    /// Host -> Client.
14565    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
14566    pub struct RequestError {
14567        #[prost(string, optional, tag = "1")]
14568        pub error: ::core::option::Option<::prost::alloc::string::String>,
14569    }
14570    /// Client (relay service) -> Host. This is generated by the relay service to
14571    /// fill the producer identity in the guest. This message is sent to the host
14572    /// service *before* any IPCFrame is from a local producer is relayed. This is
14573    /// accepted only on AF_VSOCK and AF_INET sockets, where we cannot validate the
14574    /// endpoont of the connection. for AF_UNIX sockets, this is ignored and traced
14575    /// uses instead the SO_PEERCRED.
14576    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
14577    pub struct SetPeerIdentity {
14578        /// The UID and PID of the producer process.
14579        #[prost(int32, optional, tag = "1")]
14580        pub pid: ::core::option::Option<i32>,
14581        #[prost(int32, optional, tag = "2")]
14582        pub uid: ::core::option::Option<i32>,
14583        /// The hint for the tracing service to infer the machine ID. This field
14584        /// should satisfy the requriement that different machines should have
14585        /// different values. In practice, this filed contains the Linux kernel
14586        /// boot_id, or a hash of kernel bootup timestamp and uname(2) if boot_id
14587        /// isn't available.
14588        #[prost(string, optional, tag = "3")]
14589        pub machine_id_hint: ::core::option::Option<::prost::alloc::string::String>,
14590        /// Human-readable name associated to the producer's machine. Provides the
14591        /// tracing service a new dimension to filter data sources on. Given the
14592        /// perfetto machine name is provided by users, there is no expectation of
14593        /// uniqueness across machines in a tracing session.
14594        #[prost(string, optional, tag = "4")]
14595        pub machine_name: ::core::option::Option<::prost::alloc::string::String>,
14596    }
14597    #[derive(Clone, PartialEq, ::prost::Oneof)]
14598    pub enum Msg {
14599        #[prost(message, tag = "3")]
14600        MsgBindService(BindService),
14601        #[prost(message, tag = "4")]
14602        MsgBindServiceReply(BindServiceReply),
14603        #[prost(message, tag = "5")]
14604        MsgInvokeMethod(InvokeMethod),
14605        #[prost(message, tag = "6")]
14606        MsgInvokeMethodReply(InvokeMethodReply),
14607        #[prost(message, tag = "7")]
14608        MsgRequestError(RequestError),
14609        #[prost(message, tag = "8")]
14610        SetPeerIdentity(SetPeerIdentity),
14611    }
14612}